OSDN Git Service

* interpret.cc (DEBUG): Rename this ...
[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 ANTLR_JAR CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE BUILD_LIBGCJ_REDUCED_REFLECTION_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 INSTALL_BINARIES_TRUE INSTALL_BINARIES_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gcjsubdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here python_mod_dir python_mod_dir_expanded MAKE INSTALL_AOT_RPM_TRUE INSTALL_AOT_RPM_FALSE CREATE_JAVA_HOME_TRUE CREATE_JAVA_HOME_FALSE gcc_suffix JAVA_VERSION BUILD_VERSION JVM_ROOT_DIR JVM_JAR_ROOT_DIR JVM_JAR_DIR JRE_DIR JRE_LNK SDK_LNK SDK_BIN_DIR SDK_LIB_DIR SDK_INCLUDE_DIR JRE_BIN_DIR JRE_LIB_DIR GCJ_BIN_DIR CPU OS LIBDIR 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   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1021                           default=yes
1022   --enable-java-maintainer-mode
1023                           allow rebuilding of .class and .h files
1024   --disable-dependency-tracking  speeds up one-time build
1025   --enable-dependency-tracking   do not reject slow dependency extractors
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --enable-libgcj-debug   enable runtime debugging code
1029   --enable-java-awt       list of AWT peer implementations to be built
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --disable-getenv-properties
1038                           don't set system properties from GCJ_PROPERTIES
1039   --enable-hash-synchronization
1040                           use global hash table for monitor locks
1041   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1042                           libgcj
1043   --enable-reduced-reflection
1044                           enable or disable(default) -freduced-reflection when
1045                           building portions of libgcj
1046   --enable-gc-debug       include full support for pointer backtracing etc.
1047   --enable-interpreter    enable interpreter
1048   --enable-sjlj-exceptions
1049                           force use of builtin_setjmp for exceptions
1050   --disable-java-net      disable java.net
1051   --disable-jvmpi         disable JVMPI support
1052   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1053   --disable-rpath         do not hardcode runtime library paths
1054   --enable-tls            Use thread-local storage [default=yes]
1055   --enable-aot-compile-rpm
1056                           enable installation of aot-compile-rpm [default=no]
1057   --enable-java-home      create a standard JDK-style directory layout in the
1058                           install tree [default=no]
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1064   --with-target-subdir=SUBDIR
1065                           configure in a subdirectory
1066   --with-cross-host=HOST  configure with a cross compiler from HOST
1067   --with-newlib           configure with newlib
1068   --with-antlr-jar=file   Use ANTLR from the specified jar file
1069   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1073   --with-ecj-jar=FILE     use preinstalled ecj jar
1074   --with-java-home=DIRECTORY
1075                           value of java.home system property
1076   --with-win32-nlsapi=ansi or unicows or unicode
1077                           native MinGW libgcj Win32 OS API (default is ansi)
1078   --without-libffi        don't use libffi
1079   --with-ecos             enable runtime eCos target support
1080   --with-system-zlib      use installed libz
1081   --with-x                use the X Window System
1082   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1083   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1084   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1085   --with-system-libunwind use installed libunwind
1086   --with-python-dir       the location to install Python modules. This path
1087                           should NOT include the prefix.
1088   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1089   --with-arch-directory   the arch directory under jre/lib (defaults to
1090                           auto-detect)
1091   --with-os-directory     the os directory under include (defaults to
1092                           auto-detect)
1093   --with-origin-name      the JPackage origin name of this package (default is
1094                           gcj${gcc_suffix}
1095   --with-arch-suffix      the arch directory suffix (default is the empty
1096                           string
1097   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1098   --with-jvm-jar-dir      where to install jars (default is
1099                           ${prefix}/lib/jvm-exports)
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CXX         C++ compiler command
1109   CXXFLAGS    C++ compiler flags
1110   CPP         C preprocessor
1111   CXXCPP      C++ preprocessor
1112
1113 Use these variables to override the choices made by `configure' or to help
1114 it to find libraries and programs with nonstandard names/locations.
1115
1116 _ACEOF
1117 fi
1118
1119 if test "$ac_init_help" = "recursive"; then
1120   # If there are subdirs, report their specific --help.
1121   ac_popdir=`pwd`
1122   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1123     test -d $ac_dir || continue
1124     ac_builddir=.
1125
1126 if test "$ac_dir" != .; then
1127   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1128   # A "../" for each directory in $ac_dir_suffix.
1129   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130 else
1131   ac_dir_suffix= ac_top_builddir=
1132 fi
1133
1134 case $srcdir in
1135   .)  # No --srcdir option.  We are building in place.
1136     ac_srcdir=.
1137     if test -z "$ac_top_builddir"; then
1138        ac_top_srcdir=.
1139     else
1140        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141     fi ;;
1142   [\\/]* | ?:[\\/]* )  # Absolute path.
1143     ac_srcdir=$srcdir$ac_dir_suffix;
1144     ac_top_srcdir=$srcdir ;;
1145   *) # Relative path.
1146     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1147     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 esac
1149
1150 # Do not use `cd foo && pwd` to compute absolute paths, because
1151 # the directories may not exist.
1152 case `pwd` in
1153 .) ac_abs_builddir="$ac_dir";;
1154 *)
1155   case "$ac_dir" in
1156   .) ac_abs_builddir=`pwd`;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1158   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *)
1164   case ${ac_top_builddir}. in
1165   .) ac_abs_top_builddir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1167   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_srcdir=$ac_srcdir;;
1172 *)
1173   case $ac_srcdir in
1174   .) ac_abs_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1176   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177   esac;;
1178 esac
1179 case $ac_abs_builddir in
1180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *)
1182   case $ac_top_srcdir in
1183   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1184   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1185   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186   esac;;
1187 esac
1188
1189     cd $ac_dir
1190     # Check for guested configure; otherwise get Cygnus style configure.
1191     if test -f $ac_srcdir/configure.gnu; then
1192       echo
1193       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1194     elif test -f $ac_srcdir/configure; then
1195       echo
1196       $SHELL $ac_srcdir/configure  --help=recursive
1197     elif test -f $ac_srcdir/configure.ac ||
1198            test -f $ac_srcdir/configure.in; then
1199       echo
1200       $ac_configure --help
1201     else
1202       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203     fi
1204     cd $ac_popdir
1205   done
1206 fi
1207
1208 test -n "$ac_init_help" && exit 0
1209 if $ac_init_version; then
1210   cat <<\_ACEOF
1211 libjava configure version-unused
1212 generated by GNU Autoconf 2.59
1213
1214 Copyright (C) 2003 Free Software Foundation, Inc.
1215 This configure script is free software; the Free Software Foundation
1216 gives unlimited permission to copy, distribute and modify it.
1217 _ACEOF
1218   exit 0
1219 fi
1220 exec 5>config.log
1221 cat >&5 <<_ACEOF
1222 This file contains any messages produced by compilers while
1223 running configure, to aid debugging if configure makes a mistake.
1224
1225 It was created by libjava $as_me version-unused, which was
1226 generated by GNU Autoconf 2.59.  Invocation command line was
1227
1228   $ $0 $@
1229
1230 _ACEOF
1231 {
1232 cat <<_ASUNAME
1233 ## --------- ##
1234 ## Platform. ##
1235 ## --------- ##
1236
1237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242
1243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1244 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1245
1246 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1247 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1249 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1250 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1251 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1252 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1253
1254 _ASUNAME
1255
1256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 for as_dir in $PATH
1258 do
1259   IFS=$as_save_IFS
1260   test -z "$as_dir" && as_dir=.
1261   echo "PATH: $as_dir"
1262 done
1263
1264 } >&5
1265
1266 cat >&5 <<_ACEOF
1267
1268
1269 ## ----------- ##
1270 ## Core tests. ##
1271 ## ----------- ##
1272
1273 _ACEOF
1274
1275
1276 # Keep a trace of the command line.
1277 # Strip out --no-create and --no-recursion so they do not pile up.
1278 # Strip out --silent because we don't want to record it for future runs.
1279 # Also quote any args containing shell meta-characters.
1280 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_configure_args=
1282 ac_configure_args0=
1283 ac_configure_args1=
1284 ac_sep=
1285 ac_must_keep_next=false
1286 for ac_pass in 1 2
1287 do
1288   for ac_arg
1289   do
1290     case $ac_arg in
1291     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1292     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293     | -silent | --silent | --silen | --sile | --sil)
1294       continue ;;
1295     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297     esac
1298     case $ac_pass in
1299     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300     2)
1301       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1302       if test $ac_must_keep_next = true; then
1303         ac_must_keep_next=false # Got value, back to normal.
1304       else
1305         case $ac_arg in
1306           *=* | --config-cache | -C | -disable-* | --disable-* \
1307           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1308           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1309           | -with-* | --with-* | -without-* | --without-* | --x)
1310             case "$ac_configure_args0 " in
1311               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312             esac
1313             ;;
1314           -* ) ac_must_keep_next=true ;;
1315         esac
1316       fi
1317       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1318       # Get rid of the leading space.
1319       ac_sep=" "
1320       ;;
1321     esac
1322   done
1323 done
1324 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1325 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326
1327 # When interrupted or exit'd, cleanup temporary files, and complete
1328 # config.log.  We remove comments because anyway the quotes in there
1329 # would cause problems or look ugly.
1330 # WARNING: Be sure not to use single quotes in there, as some shells,
1331 # such as our DU 5.0 friend, will then `close' the trap.
1332 trap 'exit_status=$?
1333   # Save into config.log some information that might help in debugging.
1334   {
1335     echo
1336
1337     cat <<\_ASBOX
1338 ## ---------------- ##
1339 ## Cache variables. ##
1340 ## ---------------- ##
1341 _ASBOX
1342     echo
1343     # The following way of writing the cache mishandles newlines in values,
1344 {
1345   (set) 2>&1 |
1346     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347     *ac_space=\ *)
1348       sed -n \
1349         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351       ;;
1352     *)
1353       sed -n \
1354         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1355       ;;
1356     esac;
1357 }
1358     echo
1359
1360     cat <<\_ASBOX
1361 ## ----------------- ##
1362 ## Output variables. ##
1363 ## ----------------- ##
1364 _ASBOX
1365     echo
1366     for ac_var in $ac_subst_vars
1367     do
1368       eval ac_val=$`echo $ac_var`
1369       echo "$ac_var='"'"'$ac_val'"'"'"
1370     done | sort
1371     echo
1372
1373     if test -n "$ac_subst_files"; then
1374       cat <<\_ASBOX
1375 ## ------------- ##
1376 ## Output files. ##
1377 ## ------------- ##
1378 _ASBOX
1379       echo
1380       for ac_var in $ac_subst_files
1381       do
1382         eval ac_val=$`echo $ac_var`
1383         echo "$ac_var='"'"'$ac_val'"'"'"
1384       done | sort
1385       echo
1386     fi
1387
1388     if test -s confdefs.h; then
1389       cat <<\_ASBOX
1390 ## ----------- ##
1391 ## confdefs.h. ##
1392 ## ----------- ##
1393 _ASBOX
1394       echo
1395       sed "/^$/d" confdefs.h | sort
1396       echo
1397     fi
1398     test "$ac_signal" != 0 &&
1399       echo "$as_me: caught signal $ac_signal"
1400     echo "$as_me: exit $exit_status"
1401   } >&5
1402   rm -f core *.core &&
1403   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404     exit $exit_status
1405      ' 0
1406 for ac_signal in 1 2 13 15; do
1407   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 done
1409 ac_signal=0
1410
1411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1412 rm -rf conftest* confdefs.h
1413 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 echo >confdefs.h
1415
1416 # Predefined preprocessor variables.
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 _ACEOF
1436
1437
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 _ACEOF
1441
1442
1443 # Let the site file select an alternate cache file if it wants to.
1444 # Prefer explicitly selected file to automatically selected ones.
1445 if test -z "$CONFIG_SITE"; then
1446   if test "x$prefix" != xNONE; then
1447     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448   else
1449     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450   fi
1451 fi
1452 for ac_site_file in $CONFIG_SITE; do
1453   if test -r "$ac_site_file"; then
1454     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1455 echo "$as_me: loading site script $ac_site_file" >&6;}
1456     sed 's/^/| /' "$ac_site_file" >&5
1457     . "$ac_site_file"
1458   fi
1459 done
1460
1461 if test -r "$cache_file"; then
1462   # Some versions of bash will fail to source /dev/null (special
1463   # files actually), so we avoid doing that.
1464   if test -f "$cache_file"; then
1465     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1466 echo "$as_me: loading cache $cache_file" >&6;}
1467     case $cache_file in
1468       [\\/]* | ?:[\\/]* ) . $cache_file;;
1469       *)                      . ./$cache_file;;
1470     esac
1471   fi
1472 else
1473   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1474 echo "$as_me: creating cache $cache_file" >&6;}
1475   >$cache_file
1476 fi
1477
1478 # Check that the precious variables saved in the cache have kept the same
1479 # value.
1480 ac_cache_corrupted=false
1481 for ac_var in `(set) 2>&1 |
1482                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1483   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1484   eval ac_new_set=\$ac_env_${ac_var}_set
1485   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1486   eval ac_new_val="\$ac_env_${ac_var}_value"
1487   case $ac_old_set,$ac_new_set in
1488     set,)
1489       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1490 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1491       ac_cache_corrupted=: ;;
1492     ,set)
1493       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1495       ac_cache_corrupted=: ;;
1496     ,);;
1497     *)
1498       if test "x$ac_old_val" != "x$ac_new_val"; then
1499         # differences in whitespace do not lead to failure.
1500         ac_old_val_w=`echo x $ac_old_val`
1501         ac_new_val_w=`echo x $ac_new_val`
1502         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1503           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1504 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1505           ac_cache_corrupted=:
1506         else
1507           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1508 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1509           eval $ac_var=\$ac_old_val
1510         fi
1511         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1512 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1513         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1514 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1532 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1533   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578 ac_aux_dir=
1579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1580   if test -f $ac_dir/install-sh; then
1581     ac_aux_dir=$ac_dir
1582     ac_install_sh="$ac_aux_dir/install-sh -c"
1583     break
1584   elif test -f $ac_dir/install.sh; then
1585     ac_aux_dir=$ac_dir
1586     ac_install_sh="$ac_aux_dir/install.sh -c"
1587     break
1588   elif test -f $ac_dir/shtool; then
1589     ac_aux_dir=$ac_dir
1590     ac_install_sh="$ac_aux_dir/shtool install -c"
1591     break
1592   fi
1593 done
1594 if test -z "$ac_aux_dir"; then
1595   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1596 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1597    { (exit 1); exit 1; }; }
1598 fi
1599 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1600 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1601 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1602
1603 # Make sure we can run config.sub.
1604 $ac_config_sub sun4 >/dev/null 2>&1 ||
1605   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1606 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1607    { (exit 1); exit 1; }; }
1608
1609 echo "$as_me:$LINENO: checking build system type" >&5
1610 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1611 if test "${ac_cv_build+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   ac_cv_build_alias=$build_alias
1615 test -z "$ac_cv_build_alias" &&
1616   ac_cv_build_alias=`$ac_config_guess`
1617 test -z "$ac_cv_build_alias" &&
1618   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1619 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1620    { (exit 1); exit 1; }; }
1621 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1622   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1624    { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1628 echo "${ECHO_T}$ac_cv_build" >&6
1629 build=$ac_cv_build
1630 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635  case ${build_alias} in
1636   "") build_noncanonical=${build} ;;
1637   *) build_noncanonical=${build_alias} ;;
1638 esac
1639
1640  case ${host_alias} in
1641   "") host_noncanonical=${build_noncanonical} ;;
1642   *) host_noncanonical=${host_alias} ;;
1643 esac
1644
1645  case ${target_alias} in
1646   "") target_noncanonical=${host_noncanonical} ;;
1647   *) target_noncanonical=${target_alias} ;;
1648 esac
1649
1650
1651 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1652 # have matching libraries, they should use host libraries: Makefile.tpl
1653 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1654 # However, they still use the build modules, because the corresponding
1655 # host modules (e.g. bison) are only built for the host when bootstrap
1656 # finishes. So:
1657 # - build_subdir is where we find build modules, and never changes.
1658 # - build_libsubdir is where we find build libraries, and can be overridden.
1659
1660 # Prefix 'build-' so this never conflicts with target_subdir.
1661 build_subdir="build-${build_noncanonical}"
1662
1663 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1664 if test "${with_build_libsubdir+set}" = set; then
1665   withval="$with_build_libsubdir"
1666   build_libsubdir="$withval"
1667 else
1668   build_libsubdir="$build_subdir"
1669 fi;
1670 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1671 if ( test $srcdir = . && test -d gcc ) \
1672    || test -d $srcdir/../host-${host_noncanonical}; then
1673   host_subdir="host-${host_noncanonical}"
1674 else
1675   host_subdir=.
1676 fi
1677 # No prefix.
1678 target_subdir=${target_noncanonical}
1679
1680
1681 # We use these options to decide which functions to include.
1682
1683 # Check whether --with-target-subdir or --without-target-subdir was given.
1684 if test "${with_target_subdir+set}" = set; then
1685   withval="$with_target_subdir"
1686
1687 fi;
1688
1689 # We may get other options which we don't document:
1690 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1691
1692 # Find the rest of the source tree framework.
1693 # Default to --enable-multilib
1694 # Check whether --enable-multilib or --disable-multilib was given.
1695 if test "${enable_multilib+set}" = set; then
1696   enableval="$enable_multilib"
1697   case "$enableval" in
1698   yes) multilib=yes ;;
1699   no)  multilib=no ;;
1700   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1701 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1702    { (exit 1); exit 1; }; } ;;
1703  esac
1704 else
1705   multilib=yes
1706 fi;
1707
1708 # We may get other options which we leave undocumented:
1709 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1710 # See config-ml.in if you want the gory details.
1711
1712 if test "$srcdir" = "."; then
1713   if test "$with_target_subdir" != "."; then
1714     multi_basedir="$srcdir/$with_multisrctop../.."
1715   else
1716     multi_basedir="$srcdir/$with_multisrctop.."
1717   fi
1718 else
1719   multi_basedir="$srcdir/.."
1720 fi
1721
1722
1723 # Even if the default multilib is not a cross compilation,
1724 # it may be that some of the other multilibs are.
1725 if test $cross_compiling = no && test $multilib = yes \
1726    && test "x${with_multisubdir}" != x ; then
1727    cross_compiling=maybe
1728 fi
1729
1730           ac_config_commands="$ac_config_commands default-1"
1731
1732
1733 echo "$as_me:$LINENO: checking host system type" >&5
1734 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1735 if test "${ac_cv_host+set}" = set; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   ac_cv_host_alias=$host_alias
1739 test -z "$ac_cv_host_alias" &&
1740   ac_cv_host_alias=$ac_cv_build_alias
1741 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1742   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1743 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 fi
1747 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1748 echo "${ECHO_T}$ac_cv_host" >&6
1749 host=$ac_cv_host
1750 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755 echo "$as_me:$LINENO: checking target system type" >&5
1756 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1757 if test "${ac_cv_target+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   ac_cv_target_alias=$target_alias
1761 test "x$ac_cv_target_alias" = "x" &&
1762   ac_cv_target_alias=$ac_cv_host_alias
1763 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1764   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1765 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1766    { (exit 1); exit 1; }; }
1767
1768 fi
1769 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1770 echo "${ECHO_T}$ac_cv_target" >&6
1771 target=$ac_cv_target
1772 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777 # The aliases save the names the user supplied, while $host etc.
1778 # will get canonicalized.
1779 test -n "$target_alias" &&
1780   test "$program_prefix$program_suffix$program_transform_name" = \
1781     NONENONEs,x,x, &&
1782   program_prefix=${target_alias}-
1783  case ${build_alias} in
1784   "") build_noncanonical=${build} ;;
1785   *) build_noncanonical=${build_alias} ;;
1786 esac
1787
1788  case ${target_alias} in
1789   "") target_noncanonical=${host_noncanonical} ;;
1790   *) target_noncanonical=${target_alias} ;;
1791 esac
1792
1793
1794
1795
1796 # This works around the fact that libtool configuration may change LD
1797 # for this particular configuration, but some shells, instead of
1798 # keeping the changes in LD private, export them just because LD is
1799 # exported.
1800 ORIGINAL_LD_FOR_MULTILIBS=$LD
1801
1802 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1803 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1804 LN_S=$as_ln_s
1805 if test "$LN_S" = "ln -s"; then
1806   echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 else
1809   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1810 echo "${ECHO_T}no, using $LN_S" >&6
1811 fi
1812
1813
1814 # This works around an automake problem.
1815 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1816
1817
1818
1819 # Check whether --with-cross-host or --without-cross-host was given.
1820 if test "${with_cross_host+set}" = set; then
1821   withval="$with_cross_host"
1822
1823 fi;
1824
1825
1826 # Check whether --with-newlib or --without-newlib was given.
1827 if test "${with_newlib+set}" = set; then
1828   withval="$with_newlib"
1829
1830 fi;
1831
1832 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1833 if test "${enable_version_specific_runtime_libs+set}" = set; then
1834   enableval="$enable_version_specific_runtime_libs"
1835   case "$enableval" in
1836       yes) version_specific_libs=yes ;;
1837       no)  version_specific_libs=no ;;
1838       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1839 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1840    { (exit 1); exit 1; }; };;
1841      esac
1842 else
1843   version_specific_libs=no
1844
1845 fi;
1846
1847 # Check whether --enable-plugin or --disable-plugin was given.
1848 if test "${enable_plugin+set}" = set; then
1849   enableval="$enable_plugin"
1850   case "$enableval" in
1851       yes) plugin_enabled=yes ;;
1852       no)  plugin_enabled=no ;;
1853       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1854 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1855    { (exit 1); exit 1; }; };;
1856      esac
1857 else
1858   plugin_enabled=no
1859
1860 fi;
1861
1862 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1863 if test "${enable_gconf_peer+set}" = set; then
1864   enableval="$enable_gconf_peer"
1865   case "$enableval" in
1866       yes) gconf_enabled=yes ;;
1867       no)  gconf_enabled=no ;;
1868       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1869 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1870    { (exit 1); exit 1; }; };;
1871      esac
1872 else
1873   gconf_enabled=no
1874
1875 fi;
1876
1877
1878 # Check whether --with-antlr-jar or --without-antlr-jar was given.
1879 if test "${with_antlr_jar+set}" = set; then
1880   withval="$with_antlr_jar"
1881
1882              ANTLR_JAR=$withval
1883
1884 else
1885
1886              ANTLR_JAR=
1887
1888 fi;
1889
1890 echo "$as_me:$LINENO: checking for antlr.jar" >&5
1891 echo $ECHO_N "checking for antlr.jar... $ECHO_C" >&6
1892 if test "x$ANTLR_JAR" = x; then
1893     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
1894         /usr/share/antlr/lib /usr/share/java /usr/lib;
1895     do
1896         if test -f "$antlr_lib_home/antlr.jar"; then
1897             # FIXME: version check for antlr needed without using a VM
1898             ANTLR_JAR="$antlr_lib_home/antlr.jar"
1899             break
1900         fi
1901     done
1902     if test "x$ANTLR_JAR" = x; then
1903         echo "$as_me:$LINENO: result: not found" >&5
1904 echo "${ECHO_T}not found" >&6
1905     else
1906         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1907 echo "${ECHO_T}$ANTLR_JAR" >&6
1908     fi
1909 else
1910     if test -f "${ANTLR_JAR}"; then
1911         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1912 echo "${ECHO_T}$ANTLR_JAR" >&6
1913     else
1914         { { echo "$as_me:$LINENO: error: antlr jar file not found: $ANTLR_JAR" >&5
1915 echo "$as_me: error: antlr jar file not found: $ANTLR_JAR" >&2;}
1916    { (exit 1); exit 1; }; }
1917     fi
1918 fi
1919
1920
1921 # Check whether --enable-gjdoc or --disable-gjdoc was given.
1922 if test "${enable_gjdoc+set}" = set; then
1923   enableval="$enable_gjdoc"
1924   case "${enableval}" in
1925                 yes) BUILD_GJDOC=yes ;;
1926                 no) BUILD_GJDOC=no ;;
1927                 *) BUILD_GJDOC=yes ;;
1928               esac
1929 else
1930   BUILD_GJDOC=maybe
1931 fi;
1932
1933 echo "$as_me:$LINENO: checking whether to build gjdoc" >&5
1934 echo $ECHO_N "checking whether to build gjdoc... $ECHO_C" >&6
1935 if test "x$BUILD_GJDOC" = xmaybe; then
1936     if test -f "${ANTLR_JAR}"; then
1937         BUILD_GJDOC=yes
1938         echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1940     else
1941         BUILD_GJDOC=no
1942         echo "$as_me:$LINENO: result: no, antlr.jar not found" >&5
1943 echo "${ECHO_T}no, antlr.jar not found" >&6
1944     fi
1945 else
1946     echo "$as_me:$LINENO: result: $BUILD_GJDOC" >&5
1947 echo "${ECHO_T}$BUILD_GJDOC" >&6
1948 fi
1949
1950
1951 if test "x${BUILD_GJDOC}" = xyes; then
1952   CREATE_GJDOC_TRUE=
1953   CREATE_GJDOC_FALSE='#'
1954 else
1955   CREATE_GJDOC_TRUE='#'
1956   CREATE_GJDOC_FALSE=
1957 fi
1958
1959
1960 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1961 if test "${enable_java_maintainer_mode+set}" = set; then
1962   enableval="$enable_java_maintainer_mode"
1963
1964 fi;
1965
1966
1967 if test "$enable_java_maintainer_mode" = yes; then
1968   JAVA_MAINTAINER_MODE_TRUE=
1969   JAVA_MAINTAINER_MODE_FALSE='#'
1970 else
1971   JAVA_MAINTAINER_MODE_TRUE='#'
1972   JAVA_MAINTAINER_MODE_FALSE=
1973 fi
1974
1975
1976 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1977
1978
1979 # (1) We use an abnormal CXX (without library references), so we
1980 # must cache it under a different name.
1981 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1982 # the non-multilib-adjusted value will be used in multilibs.
1983 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1984 # (4) As another side effect, automake doesn't automatically include them
1985 # in Makefile.in.
1986 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1987 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1988 # used in later tests.  This may not be necessary in libjava; I don't know.
1989
1990
1991 save_CXXFLAGS="$CXXFLAGS"
1992 CXXFLAGS="$CXXFLAGS -fno-builtin"
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$CC"; then
2007   ac_cv_prog_CC="$CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034 fi
2035 if test -z "$ac_cv_prog_CC"; then
2036   ac_ct_CC=$CC
2037   # Extract the first word of "gcc", so it can be a program name with args.
2038 set dummy gcc; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$ac_ct_CC"; then
2045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_ac_ct_CC="gcc"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072   CC=$ac_ct_CC
2073 else
2074   CC="$ac_cv_prog_CC"
2075 fi
2076
2077 if test -z "$CC"; then
2078   if test -n "$ac_tool_prefix"; then
2079   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080 set dummy ${ac_tool_prefix}cc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$CC"; then
2087   ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_CC="${ac_tool_prefix}cc"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107   echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 fi
2115 if test -z "$ac_cv_prog_CC"; then
2116   ac_ct_CC=$CC
2117   # Extract the first word of "cc", so it can be a program name with args.
2118 set dummy cc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   if test -n "$ac_ct_CC"; then
2125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130   IFS=$as_save_IFS
2131   test -z "$as_dir" && as_dir=.
2132   for ac_exec_ext in '' $ac_executable_extensions; do
2133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134     ac_cv_prog_ac_ct_CC="cc"
2135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136     break 2
2137   fi
2138 done
2139 done
2140
2141 fi
2142 fi
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6
2147 else
2148   echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2150 fi
2151
2152   CC=$ac_ct_CC
2153 else
2154   CC="$ac_cv_prog_CC"
2155 fi
2156
2157 fi
2158 if test -z "$CC"; then
2159   # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test -n "$CC"; then
2167   ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169   ac_prog_rejected=no
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_exec_ext in '' $ac_executable_extensions; do
2176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178        ac_prog_rejected=yes
2179        continue
2180      fi
2181     ac_cv_prog_CC="cc"
2182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183     break 2
2184   fi
2185 done
2186 done
2187
2188 if test $ac_prog_rejected = yes; then
2189   # We found a bogon in the path, so make sure we never use it.
2190   set dummy $ac_cv_prog_CC
2191   shift
2192   if test $# != 0; then
2193     # We chose a different compiler from the bogus one.
2194     # However, it has the same basename, so the bogon will be chosen
2195     # first if we set CC to just the basename; use the full file name.
2196     shift
2197     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2198   fi
2199 fi
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204   echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2206 else
2207   echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211 fi
2212 if test -z "$CC"; then
2213   if test -n "$ac_tool_prefix"; then
2214   for ac_prog in cl
2215   do
2216     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$CC"; then
2224   ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239
2240 fi
2241 fi
2242 CC=$ac_cv_prog_CC
2243 if test -n "$CC"; then
2244   echo "$as_me:$LINENO: result: $CC" >&5
2245 echo "${ECHO_T}$CC" >&6
2246 else
2247   echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2249 fi
2250
2251     test -n "$CC" && break
2252   done
2253 fi
2254 if test -z "$CC"; then
2255   ac_ct_CC=$CC
2256   for ac_prog in cl
2257 do
2258   # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   if test -n "$ac_ct_CC"; then
2266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275     ac_cv_prog_ac_ct_CC="$ac_prog"
2276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293   test -n "$ac_ct_CC" && break
2294 done
2295
2296   CC=$ac_ct_CC
2297 fi
2298
2299 fi
2300
2301
2302 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&2;}
2308    { (exit 1); exit 1; }; }; }
2309
2310 # Provide some information about the compiler.
2311 echo "$as_me:$LINENO:" \
2312      "checking for C compiler version" >&5
2313 ac_compiler=`set X $ac_compile; echo $2`
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2315   (eval $ac_compiler --version </dev/null >&5) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2320   (eval $ac_compiler -v </dev/null >&5) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2325   (eval $ac_compiler -V </dev/null >&5) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }
2329
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 # FIXME: Cleanup?
2346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2347   (eval $ac_link) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; then
2351   gcc_no_link=no
2352 else
2353   gcc_no_link=yes
2354 fi
2355
2356 if test x$gcc_no_link = xyes; then
2357   # Setting cross_compile will disable run tests; it will
2358   # also disable AC_CHECK_FILE but that's generally
2359   # correct if we can't link.
2360   cross_compiling=yes
2361   EXEEXT=
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 ac_clean_files_save=$ac_clean_files
2379 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380 # Try to create an executable without -o first, disregard a.out.
2381 # It will help us diagnose broken compilers, and finding out an intuition
2382 # of exeext.
2383 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2384 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2385 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387   (eval $ac_link_default) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; then
2391   # Find the output, starting from the most likely.  This scheme is
2392 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2393 # resort.
2394
2395 # Be careful to initialize this variable, since it used to be cached.
2396 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2397 ac_cv_exeext=
2398 # b.out is created by i960 compilers.
2399 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2400 do
2401   test -f "$ac_file" || continue
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2404         ;;
2405     conftest.$ac_ext )
2406         # This is the source file.
2407         ;;
2408     [ab].out )
2409         # We found the default executable, but exeext='' is most
2410         # certainly right.
2411         break;;
2412     *.* )
2413         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414         # FIXME: I believe we export ac_cv_exeext for Libtool,
2415         # but it would be cool to find out if it's true.  Does anybody
2416         # maintain Libtool? --akim.
2417         export ac_cv_exeext
2418         break;;
2419     * )
2420         break;;
2421   esac
2422 done
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2428 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: C compiler cannot create executables
2432 See \`config.log' for more details." >&2;}
2433    { (exit 77); exit 77; }; }; }
2434 fi
2435
2436 ac_exeext=$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_file" >&5
2438 echo "${ECHO_T}$ac_file" >&6
2439
2440 # Check the compiler produces executables we can run.  If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2443 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2444 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2445 # If not cross compiling, check that we can run a simple program.
2446 if test "$cross_compiling" != yes; then
2447   if { ac_try='./$ac_file'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453     cross_compiling=no
2454   else
2455     if test "$cross_compiling" = maybe; then
2456         cross_compiling=yes
2457     else
2458         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2459 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2460 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2461 If you meant to cross compile, use \`--host'.
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&2;}
2466    { (exit 1); exit 1; }; }; }
2467     fi
2468   fi
2469 fi
2470 echo "$as_me:$LINENO: result: yes" >&5
2471 echo "${ECHO_T}yes" >&6
2472
2473 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2474 ac_clean_files=$ac_clean_files_save
2475 # Check the compiler produces executables we can run.  If not, either
2476 # the compiler is broken, or we cross compile.
2477 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2478 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2479 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2480 echo "${ECHO_T}$cross_compiling" >&6
2481
2482 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2483 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485   (eval $ac_link) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2490 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2491 # work properly (i.e., refer to `conftest.exe'), while it won't with
2492 # `rm'.
2493 for ac_file in conftest.exe conftest conftest.*; do
2494   test -f "$ac_file" || continue
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2497     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2498           export ac_cv_exeext
2499           break;;
2500     * ) break;;
2501   esac
2502 done
2503 else
2504   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&2;}
2510    { (exit 1); exit 1; }; }; }
2511 fi
2512
2513 rm -f conftest$ac_cv_exeext
2514 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2515 echo "${ECHO_T}$ac_cv_exeext" >&6
2516
2517 rm -f conftest.$ac_ext
2518 EXEEXT=$ac_cv_exeext
2519 ac_exeext=$EXEEXT
2520 fi
2521 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2523 if test "${ac_cv_objext+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.o conftest.obj
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2550     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2551        break;;
2552   esac
2553 done
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2559 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cc_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689   CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691   if test "$GCC" = yes; then
2692     CFLAGS="-g -O2"
2693   else
2694     CFLAGS="-g"
2695   fi
2696 else
2697   if test "$GCC" = yes; then
2698     CFLAGS="-O2"
2699   else
2700     CFLAGS=
2701   fi
2702 fi
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724      char **p;
2725      int i;
2726 {
2727   return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731   char *s;
2732   va_list v;
2733   va_start (v,p);
2734   s = g (p, va_arg (v,int));
2735   va_end (v);
2736   return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2740    function prototypes and stuff, but not '\xHH' hex character constants.
2741    These don't provoke an error unfortunately, instead are silently treated
2742    as 'x'.  The following induces an error, until -std1 is added to get
2743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2744    array size at least.  It's necessary to write '\x00'==0 to get something
2745    that's true only with -std1.  */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX                   -qlanglvl=ansi
2765 # Ultrix and OSF/1      -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2768 # SVR4                  -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 do
2771   CC="$ac_save_CC $ac_arg"
2772   rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2805
2806 fi
2807
2808 case "x$ac_cv_prog_cc_stdc" in
2809   x|xno)
2810     echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2812   *)
2813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815     CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2817
2818 # Some people use a C++ compiler to compile C.  Since we use `exit',
2819 # in C++ we need to declare it.  In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824   choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   for ac_declaration in \
2850    '' \
2851    'extern "C" void std::exit (int) throw (); using std::exit;' \
2852    'extern "C" void std::exit (int); using std::exit;' \
2853    'extern "C" void exit (int) throw ();' \
2854    'extern "C" void exit (int);' \
2855    'void exit (int);'
2856 do
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 #include <stdlib.h>
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 continue
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 $ac_declaration
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950   echo '#ifdef __cplusplus' >>confdefs.h
2951   echo $ac_declaration      >>confdefs.h
2952   echo '#endif'             >>confdefs.h
2953 fi
2954
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966
2967 ac_ext=cc
2968 ac_cpp='$CXXCPP $CPPFLAGS'
2969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2972 if test -n "$ac_tool_prefix"; then
2973   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2974   do
2975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CXX+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   if test -n "$CXX"; then
2983   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990   for ac_exec_ext in '' $ac_executable_extensions; do
2991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997 done
2998
2999 fi
3000 fi
3001 CXX=$ac_cv_prog_CXX
3002 if test -n "$CXX"; then
3003   echo "$as_me:$LINENO: result: $CXX" >&5
3004 echo "${ECHO_T}$CXX" >&6
3005 else
3006   echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 fi
3009
3010     test -n "$CXX" && break
3011   done
3012 fi
3013 if test -z "$CXX"; then
3014   ac_ct_CXX=$CXX
3015   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3016 do
3017   # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$ac_ct_CXX"; then
3025   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_exec_ext in '' $ac_executable_extensions; do
3033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_ac_ct_CXX="$ac_prog"
3035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039 done
3040
3041 fi
3042 fi
3043 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3044 if test -n "$ac_ct_CXX"; then
3045   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3046 echo "${ECHO_T}$ac_ct_CXX" >&6
3047 else
3048   echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3050 fi
3051
3052   test -n "$ac_ct_CXX" && break
3053 done
3054 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3055
3056   CXX=$ac_ct_CXX
3057 fi
3058
3059
3060 # Provide some information about the compiler.
3061 echo "$as_me:$LINENO:" \
3062      "checking for C++ compiler version" >&5
3063 ac_compiler=`set X $ac_compile; echo $2`
3064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3065   (eval $ac_compiler --version </dev/null >&5) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }
3069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3070   (eval $ac_compiler -v </dev/null >&5) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }
3074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3075   (eval $ac_compiler -V </dev/null >&5) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }
3079
3080 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3081 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3082 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095 #ifndef __GNUC__
3096        choke me
3097 #endif
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_cxx_werror_flag"
3113                          || test ! -s conftest.err'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; }; then
3125   ac_compiler_gnu=yes
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_compiler_gnu=no
3131 fi
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3134
3135 fi
3136 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3138 GXX=`test $ac_compiler_gnu = yes && echo yes`
3139 ac_test_CXXFLAGS=${CXXFLAGS+set}
3140 ac_save_CXXFLAGS=$CXXFLAGS
3141 CXXFLAGS="-g"
3142 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3143 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3144 if test "${ac_cv_prog_cxx_g+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag"
3172                          || test ! -s conftest.err'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_prog_cxx_g=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ac_cv_prog_cxx_g=no
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3194 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3195 if test "$ac_test_CXXFLAGS" = set; then
3196   CXXFLAGS=$ac_save_CXXFLAGS
3197 elif test $ac_cv_prog_cxx_g = yes; then
3198   if test "$GXX" = yes; then
3199     CXXFLAGS="-g -O2"
3200   else
3201     CXXFLAGS="-g"
3202   fi
3203 else
3204   if test "$GXX" = yes; then
3205     CXXFLAGS="-O2"
3206   else
3207     CXXFLAGS=
3208   fi
3209 fi
3210 for ac_declaration in \
3211    '' \
3212    'extern "C" void std::exit (int) throw (); using std::exit;' \
3213    'extern "C" void std::exit (int); using std::exit;' \
3214    'extern "C" void exit (int) throw ();' \
3215    'extern "C" void exit (int);' \
3216    'void exit (int);'
3217 do
3218   cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224 $ac_declaration
3225 #include <stdlib.h>
3226 int
3227 main ()
3228 {
3229 exit (42);
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_cxx_werror_flag"
3244                          || test ! -s conftest.err'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 continue
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_cxx_werror_flag"
3289                          || test ! -s conftest.err'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   break
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 fi
3307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308 done
3309 rm -f conftest*
3310 if test -n "$ac_declaration"; then
3311   echo '#ifdef __cplusplus' >>confdefs.h
3312   echo $ac_declaration      >>confdefs.h
3313   echo '#endif'             >>confdefs.h
3314 fi
3315
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322 CXXFLAGS="$save_CXXFLAGS"
3323
3324
3325
3326
3327
3328 am__api_version="1.9"
3329 # Find a good install program.  We prefer a C program (faster),
3330 # so one script is as good as another.  But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3335 # AIX /bin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 # Reject install programs that cannot install multiple files.
3343 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3344 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3345 if test -z "$INSTALL"; then
3346 if test "${ac_cv_path_install+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   # Account for people who put trailing slashes in PATH elements.
3355 case $as_dir/ in
3356   ./ | .// | /cC/* | \
3357   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3358   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3359   /usr/ucb/* ) ;;
3360   *)
3361     # OSF1 and SCO ODT 3.0 have their own names for install.
3362     # Don't use installbsd from OSF since it installs stuff as root
3363     # by default.
3364     for ac_prog in ginstall scoinst install; do
3365       for ac_exec_ext in '' $ac_executable_extensions; do
3366         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3367           if test $ac_prog = install &&
3368             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369             # AIX install.  It has an incompatible calling convention.
3370             :
3371           elif test $ac_prog = install &&
3372             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373             # program-specific install script used by HP pwplus--don't use.
3374             :
3375           else
3376             rm -rf conftest.one conftest.two conftest.dir
3377             echo one > conftest.one
3378             echo two > conftest.two
3379             mkdir conftest.dir
3380             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3381               test -s conftest.one && test -s conftest.two &&
3382               test -s conftest.dir/conftest.one &&
3383               test -s conftest.dir/conftest.two
3384             then
3385               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3386               break 3
3387             fi
3388           fi
3389         fi
3390       done
3391     done
3392     ;;
3393 esac
3394 done
3395
3396 rm -rf conftest.one conftest.two conftest.dir
3397
3398 fi
3399   if test "${ac_cv_path_install+set}" = set; then
3400     INSTALL=$ac_cv_path_install
3401   else
3402     # As a last resort, use the slow shell script.  Don't cache a
3403     # value for INSTALL within a source directory, because that will
3404     # break other packages using the cache if that directory is
3405     # removed, or if the value is a relative name.
3406     INSTALL=$ac_install_sh
3407   fi
3408 fi
3409 echo "$as_me:$LINENO: result: $INSTALL" >&5
3410 echo "${ECHO_T}$INSTALL" >&6
3411
3412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3413 # It thinks the first close brace ends the variable substitution.
3414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3415
3416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3417
3418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3419
3420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3422 # Just in case
3423 sleep 1
3424 echo timestamp > conftest.file
3425 # Do `set' in a subshell so we don't clobber the current shell's
3426 # arguments.  Must try -L first in case configure is actually a
3427 # symlink; some systems play weird games with the mod time of symlinks
3428 # (eg FreeBSD returns the mod time of the symlink's containing
3429 # directory).
3430 if (
3431    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3432    if test "$*" = "X"; then
3433       # -L didn't work.
3434       set X `ls -t $srcdir/configure conftest.file`
3435    fi
3436    rm -f conftest.file
3437    if test "$*" != "X $srcdir/configure conftest.file" \
3438       && test "$*" != "X conftest.file $srcdir/configure"; then
3439
3440       # If neither matched, then we have a broken ls.  This can happen
3441       # if, for instance, CONFIG_SHELL is bash and it inherits a
3442       # broken ls alias from the environment.  This has actually
3443       # happened.  Such a system could not be considered "sane".
3444       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3445 alias in your environment" >&5
3446 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3447 alias in your environment" >&2;}
3448    { (exit 1); exit 1; }; }
3449    fi
3450
3451    test "$2" = conftest.file
3452    )
3453 then
3454    # Ok.
3455    :
3456 else
3457    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3458 Check your system clock" >&5
3459 echo "$as_me: error: newly created file is older than distributed files!
3460 Check your system clock" >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463 echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6
3465 test "$program_prefix" != NONE &&
3466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3467 # Use a double $ so make ignores it.
3468 test "$program_suffix" != NONE &&
3469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3470 # Double any \ or $.  echo might interpret backslashes.
3471 # By default was `s,x,x', remove it if useless.
3472 cat <<\_ACEOF >conftest.sed
3473 s/[\\$]/&&/g;s/;s,x,x,$//
3474 _ACEOF
3475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3476 rm conftest.sed
3477
3478 # expand $ac_aux_dir to an absolute path
3479 am_aux_dir=`cd $ac_aux_dir && pwd`
3480
3481 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3482 # Use eval to expand $SHELL
3483 if eval "$MISSING --run true"; then
3484   am_missing_run="$MISSING --run "
3485 else
3486   am_missing_run=
3487   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3488 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3489 fi
3490
3491 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3492   # We used to keeping the `.' as first argument, in order to
3493   # allow $(mkdir_p) to be used without argument.  As in
3494   #   $(mkdir_p) $(somedir)
3495   # where $(somedir) is conditionally defined.  However this is wrong
3496   # for two reasons:
3497   #  1. if the package is installed by a user who cannot write `.'
3498   #     make install will fail,
3499   #  2. the above comment should most certainly read
3500   #     $(mkdir_p) $(DESTDIR)$(somedir)
3501   #     so it does not work when $(somedir) is undefined and
3502   #     $(DESTDIR) is not.
3503   #  To support the latter case, we have to write
3504   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3505   #  so the `.' trick is pointless.
3506   mkdir_p='mkdir -p --'
3507 else
3508   # On NextStep and OpenStep, the `mkdir' command does not
3509   # recognize any option.  It will interpret all options as
3510   # directories to create, and then abort because `.' already
3511   # exists.
3512   for d in ./-p ./--version;
3513   do
3514     test -d $d && rmdir $d
3515   done
3516   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3517   if test -f "$ac_aux_dir/mkinstalldirs"; then
3518     mkdir_p='$(mkinstalldirs)'
3519   else
3520     mkdir_p='$(install_sh) -d'
3521   fi
3522 fi
3523
3524 for ac_prog in gawk mawk nawk awk
3525 do
3526   # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_AWK+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   if test -n "$AWK"; then
3534   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541   for ac_exec_ext in '' $ac_executable_extensions; do
3542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_AWK="$ac_prog"
3544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548 done
3549
3550 fi
3551 fi
3552 AWK=$ac_cv_prog_AWK
3553 if test -n "$AWK"; then
3554   echo "$as_me:$LINENO: result: $AWK" >&5
3555 echo "${ECHO_T}$AWK" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561   test -n "$AWK" && break
3562 done
3563
3564 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3565 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3566 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3567 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   cat >conftest.make <<\_ACEOF
3571 all:
3572         @echo 'ac_maketemp="$(MAKE)"'
3573 _ACEOF
3574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3575 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3576 if test -n "$ac_maketemp"; then
3577   eval ac_cv_prog_make_${ac_make}_set=yes
3578 else
3579   eval ac_cv_prog_make_${ac_make}_set=no
3580 fi
3581 rm -f conftest.make
3582 fi
3583 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3584   echo "$as_me:$LINENO: result: yes" >&5
3585 echo "${ECHO_T}yes" >&6
3586   SET_MAKE=
3587 else
3588   echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590   SET_MAKE="MAKE=${MAKE-make}"
3591 fi
3592
3593 rm -rf .tst 2>/dev/null
3594 mkdir .tst 2>/dev/null
3595 if test -d .tst; then
3596   am__leading_dot=.
3597 else
3598   am__leading_dot=_
3599 fi
3600 rmdir .tst 2>/dev/null
3601
3602 DEPDIR="${am__leading_dot}deps"
3603
3604           ac_config_commands="$ac_config_commands depfiles"
3605
3606
3607 am_make=${MAKE-make}
3608 cat > confinc << 'END'
3609 am__doit:
3610         @echo done
3611 .PHONY: am__doit
3612 END
3613 # If we don't find an include directive, just comment out the code.
3614 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3615 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3616 am__include="#"
3617 am__quote=
3618 _am_result=none
3619 # First try GNU make style include.
3620 echo "include confinc" > confmf
3621 # We grep out `Entering directory' and `Leaving directory'
3622 # messages which can occur if `w' ends up in MAKEFLAGS.
3623 # In particular we don't look at `^make:' because GNU make might
3624 # be invoked under some other name (usually "gmake"), in which
3625 # case it prints its new name instead of `make'.
3626 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3627    am__include=include
3628    am__quote=
3629    _am_result=GNU
3630 fi
3631 # Now try BSD make style include.
3632 if test "$am__include" = "#"; then
3633    echo '.include "confinc"' > confmf
3634    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3635       am__include=.include
3636       am__quote="\""
3637       _am_result=BSD
3638    fi
3639 fi
3640
3641
3642 echo "$as_me:$LINENO: result: $_am_result" >&5
3643 echo "${ECHO_T}$_am_result" >&6
3644 rm -f confinc confmf
3645
3646 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3647 if test "${enable_dependency_tracking+set}" = set; then
3648   enableval="$enable_dependency_tracking"
3649
3650 fi;
3651 if test "x$enable_dependency_tracking" != xno; then
3652   am_depcomp="$ac_aux_dir/depcomp"
3653   AMDEPBACKSLASH='\'
3654 fi
3655
3656
3657 if test "x$enable_dependency_tracking" != xno; then
3658   AMDEP_TRUE=
3659   AMDEP_FALSE='#'
3660 else
3661   AMDEP_TRUE='#'
3662   AMDEP_FALSE=
3663 fi
3664
3665
3666
3667 # test to see if srcdir already configured
3668 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3669    test -f $srcdir/config.status; then
3670   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3671 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 # test whether we have cygpath
3676 if test -z "$CYGPATH_W"; then
3677   if (cygpath --version) >/dev/null 2>/dev/null; then
3678     CYGPATH_W='cygpath -w'
3679   else
3680     CYGPATH_W=echo
3681   fi
3682 fi
3683
3684
3685 # Define the identity of the package.
3686  PACKAGE='libjava'
3687  VERSION='version-unused'
3688
3689
3690 cat >>confdefs.h <<_ACEOF
3691 #define PACKAGE "$PACKAGE"
3692 _ACEOF
3693
3694
3695 cat >>confdefs.h <<_ACEOF
3696 #define VERSION "$VERSION"
3697 _ACEOF
3698
3699 # Some tools Automake needs.
3700
3701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3702
3703
3704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3705
3706
3707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3708
3709
3710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3711
3712
3713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3714
3715 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3716
3717 # Installed binaries are usually stripped using `strip' when the user
3718 # run `make install-strip'.  However `strip' might not be the right
3719 # tool to use in cross-compilation environments, therefore Automake
3720 # will honor the `STRIP' environment variable to overrule this program.
3721 if test "$cross_compiling" != no; then
3722   if test -n "$ac_tool_prefix"; then
3723   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}strip; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_STRIP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if test -n "$STRIP"; then
3731   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747 fi
3748 fi
3749 STRIP=$ac_cv_prog_STRIP
3750 if test -n "$STRIP"; then
3751   echo "$as_me:$LINENO: result: $STRIP" >&5
3752 echo "${ECHO_T}$STRIP" >&6
3753 else
3754   echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3756 fi
3757
3758 fi
3759 if test -z "$ac_cv_prog_STRIP"; then
3760   ac_ct_STRIP=$STRIP
3761   # Extract the first word of "strip", so it can be a program name with args.
3762 set dummy strip; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   if test -n "$ac_ct_STRIP"; then
3769   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for ac_exec_ext in '' $ac_executable_extensions; do
3777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778     ac_cv_prog_ac_ct_STRIP="strip"
3779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783 done
3784
3785   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3786 fi
3787 fi
3788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3789 if test -n "$ac_ct_STRIP"; then
3790   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3791 echo "${ECHO_T}$ac_ct_STRIP" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797   STRIP=$ac_ct_STRIP
3798 else
3799   STRIP="$ac_cv_prog_STRIP"
3800 fi
3801
3802 fi
3803 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3804
3805 # We need awk for the "check" target.  The system "awk" is bad on
3806 # some platforms.
3807 # Always define AMTAR for backward compatibility.
3808
3809 AMTAR=${AMTAR-"${am_missing_run}tar"}
3810
3811 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3812
3813
3814
3815
3816 depcc="$CC"   am_compiler_list=
3817
3818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3824   # We make a subdir and do the tests there.  Otherwise we can end up
3825   # making bogus files that we don't know about and never remove.  For
3826   # instance it was reported that on HP-UX the gcc test will end up
3827   # making a dummy file named `D' -- because `-MD' means `put the output
3828   # in D'.
3829   mkdir conftest.dir
3830   # Copy depcomp to subdir because otherwise we won't find it if we're
3831   # using a relative directory.
3832   cp "$am_depcomp" conftest.dir
3833   cd conftest.dir
3834   # We will build objects and dependencies in a subdirectory because
3835   # it helps to detect inapplicable dependency modes.  For instance
3836   # both Tru64's cc and ICC support -MD to output dependencies as a
3837   # side effect of compilation, but ICC will put the dependencies in
3838   # the current directory while Tru64 will put them in the object
3839   # directory.
3840   mkdir sub
3841
3842   am_cv_CC_dependencies_compiler_type=none
3843   if test "$am_compiler_list" = ""; then
3844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845   fi
3846   for depmode in $am_compiler_list; do
3847     # Setup a source with many dependencies, because some compilers
3848     # like to wrap large dependency lists on column 80 (with \), and
3849     # we should not choose a depcomp mode which is confused by this.
3850     #
3851     # We need to recreate these files for each test, as the compiler may
3852     # overwrite some of them when testing with obscure command lines.
3853     # This happens at least with the AIX C compiler.
3854     : > sub/conftest.c
3855     for i in 1 2 3 4 5 6; do
3856       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3857       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3858       # Solaris 8's {/usr,}/bin/sh.
3859       touch sub/conftst$i.h
3860     done
3861     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862
3863     case $depmode in
3864     nosideeffect)
3865       # after this tag, mechanisms are not by side-effect, so they'll
3866       # only be used when explicitly requested
3867       if test "x$enable_dependency_tracking" = xyes; then
3868         continue
3869       else
3870         break
3871       fi
3872       ;;
3873     none) break ;;
3874     esac
3875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3876     # mode.  It turns out that the SunPro C++ compiler does not properly
3877     # handle `-M -o', and we need to detect this.
3878     if depmode=$depmode \
3879        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3881        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3882          >/dev/null 2>conftest.err &&
3883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886       # icc doesn't choke on unknown options, it will just issue warnings
3887       # or remarks (even with -Werror).  So we grep stderr for any message
3888       # that says an option was ignored or not supported.
3889       # When given -MP, icc 7.0 and 7.1 complain thusly:
3890       #   icc: Command line warning: ignoring option '-M'; no argument required
3891       # The diagnosis changed in icc 8.0:
3892       #   icc: Command line remark: option '-MP' not supported
3893       if (grep 'ignoring option' conftest.err ||
3894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895         am_cv_CC_dependencies_compiler_type=$depmode
3896         break
3897       fi
3898     fi
3899   done
3900
3901   cd ..
3902   rm -rf conftest.dir
3903 else
3904   am_cv_CC_dependencies_compiler_type=none
3905 fi
3906
3907 fi
3908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911
3912
3913
3914 if
3915   test "x$enable_dependency_tracking" != xno \
3916   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917   am__fastdepCC_TRUE=
3918   am__fastdepCC_FALSE='#'
3919 else
3920   am__fastdepCC_TRUE='#'
3921   am__fastdepCC_FALSE=
3922 fi
3923
3924
3925 depcc="$CXX"  am_compiler_list=
3926
3927 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3928 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3929 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933   # We make a subdir and do the tests there.  Otherwise we can end up
3934   # making bogus files that we don't know about and never remove.  For
3935   # instance it was reported that on HP-UX the gcc test will end up
3936   # making a dummy file named `D' -- because `-MD' means `put the output
3937   # in D'.
3938   mkdir conftest.dir
3939   # Copy depcomp to subdir because otherwise we won't find it if we're
3940   # using a relative directory.
3941   cp "$am_depcomp" conftest.dir
3942   cd conftest.dir
3943   # We will build objects and dependencies in a subdirectory because
3944   # it helps to detect inapplicable dependency modes.  For instance
3945   # both Tru64's cc and ICC support -MD to output dependencies as a
3946   # side effect of compilation, but ICC will put the dependencies in
3947   # the current directory while Tru64 will put them in the object
3948   # directory.
3949   mkdir sub
3950
3951   am_cv_CXX_dependencies_compiler_type=none
3952   if test "$am_compiler_list" = ""; then
3953      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954   fi
3955   for depmode in $am_compiler_list; do
3956     # Setup a source with many dependencies, because some compilers
3957     # like to wrap large dependency lists on column 80 (with \), and
3958     # we should not choose a depcomp mode which is confused by this.
3959     #
3960     # We need to recreate these files for each test, as the compiler may
3961     # overwrite some of them when testing with obscure command lines.
3962     # This happens at least with the AIX C compiler.
3963     : > sub/conftest.c
3964     for i in 1 2 3 4 5 6; do
3965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967       # Solaris 8's {/usr,}/bin/sh.
3968       touch sub/conftst$i.h
3969     done
3970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972     case $depmode in
3973     nosideeffect)
3974       # after this tag, mechanisms are not by side-effect, so they'll
3975       # only be used when explicitly requested
3976       if test "x$enable_dependency_tracking" = xyes; then
3977         continue
3978       else
3979         break
3980       fi
3981       ;;
3982     none) break ;;
3983     esac
3984     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985     # mode.  It turns out that the SunPro C++ compiler does not properly
3986     # handle `-M -o', and we need to detect this.
3987     if depmode=$depmode \
3988        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3989        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3991          >/dev/null 2>conftest.err &&
3992        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3994        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995       # icc doesn't choke on unknown options, it will just issue warnings
3996       # or remarks (even with -Werror).  So we grep stderr for any message
3997       # that says an option was ignored or not supported.
3998       # When given -MP, icc 7.0 and 7.1 complain thusly:
3999       #   icc: Command line warning: ignoring option '-M'; no argument required
4000       # The diagnosis changed in icc 8.0:
4001       #   icc: Command line remark: option '-MP' not supported
4002       if (grep 'ignoring option' conftest.err ||
4003           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004         am_cv_CXX_dependencies_compiler_type=$depmode
4005         break
4006       fi
4007     fi
4008   done
4009
4010   cd ..
4011   rm -rf conftest.dir
4012 else
4013   am_cv_CXX_dependencies_compiler_type=none
4014 fi
4015
4016 fi
4017 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4018 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4020
4021
4022
4023 if
4024   test "x$enable_dependency_tracking" != xno \
4025   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4026   am__fastdepCXX_TRUE=
4027   am__fastdepCXX_FALSE='#'
4028 else
4029   am__fastdepCXX_TRUE='#'
4030   am__fastdepCXX_FALSE=
4031 fi
4032
4033
4034
4035
4036 if test -n "$ac_tool_prefix"; then
4037   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4038 set dummy ${ac_tool_prefix}as; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_AS+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$AS"; then
4045   ac_cv_prog_AS="$AS" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_AS="${ac_tool_prefix}as"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061 fi
4062 fi
4063 AS=$ac_cv_prog_AS
4064 if test -n "$AS"; then
4065   echo "$as_me:$LINENO: result: $AS" >&5
4066 echo "${ECHO_T}$AS" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071
4072 fi
4073 if test -z "$ac_cv_prog_AS"; then
4074   ac_ct_AS=$AS
4075   # Extract the first word of "as", so it can be a program name with args.
4076 set dummy as; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$ac_ct_AS"; then
4083   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_ac_ct_AS="as"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4102 if test -n "$ac_ct_AS"; then
4103   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4104 echo "${ECHO_T}$ac_ct_AS" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110   AS=$ac_ct_AS
4111 else
4112   AS="$ac_cv_prog_AS"
4113 fi
4114
4115 if test -n "$ac_tool_prefix"; then
4116   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}ld; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LD+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LD"; then
4124   ac_cv_prog_LD="$LD" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LD="${ac_tool_prefix}ld"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LD=$ac_cv_prog_LD
4143 if test -n "$LD"; then
4144   echo "$as_me:$LINENO: result: $LD" >&5
4145 echo "${ECHO_T}$LD" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151 fi
4152 if test -z "$ac_cv_prog_LD"; then
4153   ac_ct_LD=$LD
4154   # Extract the first word of "ld", so it can be a program name with args.
4155 set dummy ld; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$ac_ct_LD"; then
4162   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171     ac_cv_prog_ac_ct_LD="ld"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 fi
4179 fi
4180 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4181 if test -n "$ac_ct_LD"; then
4182   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4183 echo "${ECHO_T}$ac_ct_LD" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189   LD=$ac_ct_LD
4190 else
4191   LD="$ac_cv_prog_LD"
4192 fi
4193
4194 if test -n "$ac_tool_prefix"; then
4195   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4196 set dummy ${ac_tool_prefix}ar; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_AR+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if test -n "$AR"; then
4203   ac_cv_prog_AR="$AR" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212     ac_cv_prog_AR="${ac_tool_prefix}ar"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218
4219 fi
4220 fi
4221 AR=$ac_cv_prog_AR
4222 if test -n "$AR"; then
4223   echo "$as_me:$LINENO: result: $AR" >&5
4224 echo "${ECHO_T}$AR" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230 fi
4231 if test -z "$ac_cv_prog_AR"; then
4232   ac_ct_AR=$AR
4233   # Extract the first word of "ar", so it can be a program name with args.
4234 set dummy ar; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -n "$ac_ct_AR"; then
4241   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_prog_ac_ct_AR="ar"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257 fi
4258 fi
4259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4260 if test -n "$ac_ct_AR"; then
4261   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4262 echo "${ECHO_T}$ac_ct_AR" >&6
4263 else
4264   echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267
4268   AR=$ac_ct_AR
4269 else
4270   AR="$ac_cv_prog_AR"
4271 fi
4272
4273 if test -n "$ac_tool_prefix"; then
4274   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_RANLIB+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$RANLIB"; then
4282   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298 fi
4299 fi
4300 RANLIB=$ac_cv_prog_RANLIB
4301 if test -n "$RANLIB"; then
4302   echo "$as_me:$LINENO: result: $RANLIB" >&5
4303 echo "${ECHO_T}$RANLIB" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309 fi
4310 if test -z "$ac_cv_prog_RANLIB"; then
4311   ac_ct_RANLIB=$RANLIB
4312   # Extract the first word of "ranlib", so it can be a program name with args.
4313 set dummy ranlib; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$ac_ct_RANLIB"; then
4320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327   for ac_exec_ext in '' $ac_executable_extensions; do
4328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329     ac_cv_prog_ac_ct_RANLIB="ranlib"
4330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334 done
4335
4336   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4337 fi
4338 fi
4339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4340 if test -n "$ac_ct_RANLIB"; then
4341   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   RANLIB=$ac_ct_RANLIB
4349 else
4350   RANLIB="$ac_cv_prog_RANLIB"
4351 fi
4352
4353 for ac_prog in gawk mawk nawk awk
4354 do
4355   # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_AWK+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   if test -n "$AWK"; then
4363   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372     ac_cv_prog_AWK="$ac_prog"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378
4379 fi
4380 fi
4381 AWK=$ac_cv_prog_AWK
4382 if test -n "$AWK"; then
4383   echo "$as_me:$LINENO: result: $AWK" >&5
4384 echo "${ECHO_T}$AWK" >&6
4385 else
4386   echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390   test -n "$AWK" && break
4391 done
4392
4393 for ac_prog in jar fastjar gjar
4394 do
4395   # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_JAR+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$JAR"; then
4403   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412     ac_cv_prog_JAR="$ac_prog"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418
4419 fi
4420 fi
4421 JAR=$ac_cv_prog_JAR
4422 if test -n "$JAR"; then
4423   echo "$as_me:$LINENO: result: $JAR" >&5
4424 echo "${ECHO_T}$JAR" >&6
4425 else
4426   echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430   test -n "$JAR" && break
4431 done
4432 test -n "$JAR" || JAR="no"
4433
4434 # Extract the first word of "zip", so it can be a program name with args.
4435 set dummy zip; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_path_ZIP+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   case $ZIP in
4442   [\\/]* | ?:[\\/]*)
4443   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4444   ;;
4445   *)
4446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4461   ;;
4462 esac
4463 fi
4464 ZIP=$ac_cv_path_ZIP
4465
4466 if test -n "$ZIP"; then
4467   echo "$as_me:$LINENO: result: $ZIP" >&5
4468 echo "${ECHO_T}$ZIP" >&6
4469 else
4470   echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472 fi
4473
4474 # Extract the first word of "unzip", so it can be a program name with args.
4475 set dummy unzip; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_UNZIP+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   case $UNZIP in
4482   [\\/]* | ?:[\\/]*)
4483   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4484   ;;
4485   *)
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4501   ;;
4502 esac
4503 fi
4504 UNZIP=$ac_cv_path_UNZIP
4505
4506 if test -n "$UNZIP"; then
4507   echo "$as_me:$LINENO: result: $UNZIP" >&5
4508 echo "${ECHO_T}$UNZIP" >&6
4509 else
4510   echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4512 fi
4513
4514
4515 # We need a jar that supports -@.  This is a GNU extension.
4516 if test "$JAR" != no; then
4517    rm -f config-test.jar
4518    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4519    if test -f config-test.jar; then
4520      rm -f config-test.jar
4521    else
4522      JAR=no
4523    fi
4524 fi
4525
4526 # Prefer the jar we found, but fall back to our jar script.
4527 if test "$JAR" = no; then
4528   if test "$ZIP" = no; then
4529     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4530 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4531    { (exit 1); exit 1; }; }
4532   else
4533     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4534     JAR=`pwd`/scripts/jar
4535   fi
4536 fi
4537
4538 # Find a good install program.  We prefer a C program (faster),
4539 # so one script is as good as another.  But avoid the broken or
4540 # incompatible versions:
4541 # SysV /etc/install, /usr/sbin/install
4542 # SunOS /usr/etc/install
4543 # IRIX /sbin/install
4544 # AIX /bin/install
4545 # AmigaOS /C/install, which installs bootblocks on floppy discs
4546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4549 # OS/2's system install, which has a completely different semantic
4550 # ./install, which can be erroneously created by make from ./install.sh.
4551 # Reject install programs that cannot install multiple files.
4552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4554 if test -z "$INSTALL"; then
4555 if test "${ac_cv_path_install+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   # Account for people who put trailing slashes in PATH elements.
4564 case $as_dir/ in
4565   ./ | .// | /cC/* | \
4566   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4567   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4568   /usr/ucb/* ) ;;
4569   *)
4570     # OSF1 and SCO ODT 3.0 have their own names for install.
4571     # Don't use installbsd from OSF since it installs stuff as root
4572     # by default.
4573     for ac_prog in ginstall scoinst install; do
4574       for ac_exec_ext in '' $ac_executable_extensions; do
4575         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4576           if test $ac_prog = install &&
4577             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4578             # AIX install.  It has an incompatible calling convention.
4579             :
4580           elif test $ac_prog = install &&
4581             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4582             # program-specific install script used by HP pwplus--don't use.
4583             :
4584           else
4585             rm -rf conftest.one conftest.two conftest.dir
4586             echo one > conftest.one
4587             echo two > conftest.two
4588             mkdir conftest.dir
4589             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4590               test -s conftest.one && test -s conftest.two &&
4591               test -s conftest.dir/conftest.one &&
4592               test -s conftest.dir/conftest.two
4593             then
4594               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4595               break 3
4596             fi
4597           fi
4598         fi
4599       done
4600     done
4601     ;;
4602 esac
4603 done
4604
4605 rm -rf conftest.one conftest.two conftest.dir
4606
4607 fi
4608   if test "${ac_cv_path_install+set}" = set; then
4609     INSTALL=$ac_cv_path_install
4610   else
4611     # As a last resort, use the slow shell script.  Don't cache a
4612     # value for INSTALL within a source directory, because that will
4613     # break other packages using the cache if that directory is
4614     # removed, or if the value is a relative name.
4615     INSTALL=$ac_install_sh
4616   fi
4617 fi
4618 echo "$as_me:$LINENO: result: $INSTALL" >&5
4619 echo "${ECHO_T}$INSTALL" >&6
4620
4621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4622 # It thinks the first close brace ends the variable substitution.
4623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4624
4625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4626
4627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4628
4629
4630 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4631 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4632     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4633 if test "${enable_maintainer_mode+set}" = set; then
4634   enableval="$enable_maintainer_mode"
4635   USE_MAINTAINER_MODE=$enableval
4636 else
4637   USE_MAINTAINER_MODE=no
4638 fi;
4639   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4640 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4641
4642
4643 if test $USE_MAINTAINER_MODE = yes; then
4644   MAINTAINER_MODE_TRUE=
4645   MAINTAINER_MODE_FALSE='#'
4646 else
4647   MAINTAINER_MODE_TRUE='#'
4648   MAINTAINER_MODE_FALSE=
4649 fi
4650
4651   MAINT=$MAINTAINER_MODE_TRUE
4652
4653
4654
4655
4656
4657 # configure.host sets the following important variables
4658 #       libgcj_cflags    - host specific C compiler flags
4659 #       libgcj_cxxflags  - host specific C++ compiler flags
4660 #       libgcj_javaflags - host specific Java compiler flags
4661
4662 libgcj_cflags=
4663 libgcj_cxxflags=
4664 libgcj_javaflags=
4665
4666 . ${srcdir}/configure.host
4667
4668 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4669 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4670 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4675   acl_cv_prog_gnu_ld=yes
4676 else
4677   acl_cv_prog_gnu_ld=no
4678 fi
4679 fi
4680 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4681 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4682 with_gnu_ld=$acl_cv_prog_gnu_ld
4683
4684 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4685 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4686 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689
4690 acl_cv_prog_gnu_ld_symbolic=no
4691
4692 if test x"$with_gnu_ld" = x"yes"; then
4693   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4694     acl_cv_prog_gnu_ld_symbolic=yes
4695   fi
4696 fi
4697 fi
4698 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4699 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4700 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4701   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4702 else
4703   SYMBOLIC_LDFLAGS=''
4704 fi
4705
4706 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4707 if test -z "$libgcj_ld_symbolic"; then
4708   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4709 fi
4710
4711 LIBGCJ_CFLAGS="${libgcj_cflags}"
4712 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4713 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4714 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4715 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4716
4717
4718
4719
4720
4721
4722 # Only use libltdl for non-newlib builds.
4723 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4724    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4726 library_names_spec=
4727 libname_spec='lib$name'
4728 soname_spec=
4729 shrext=".so"
4730 postinstall_cmds=
4731 postuninstall_cmds=
4732 finish_cmds=
4733 finish_eval=
4734 shlibpath_var=
4735 shlibpath_overrides_runpath=unknown
4736 version_type=none
4737 dynamic_linker="$host_os ld.so"
4738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4739 if test "$GCC" = yes; then
4740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4742     # if the path contains ";" then we assume it to be the separator
4743     # otherwise default to the standard path separator (i.e. ":") - it is
4744     # assumed that no part of a normal pathname contains ";" but that should
4745     # okay in the real world where ";" in dirpaths is itself problematic.
4746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4747   else
4748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4749   fi
4750 else
4751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4752 fi
4753 need_lib_prefix=unknown
4754 hardcode_into_libs=no
4755
4756 # when you set need_version to no, make sure it does not cause -set_version
4757 # flags to be left without arguments
4758 need_version=unknown
4759
4760 case $host_os in
4761 aix3*)
4762   version_type=linux
4763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4764   shlibpath_var=LIBPATH
4765
4766   # AIX 3 has no versioning support, so we append a major version to the name.
4767   soname_spec='${libname}${release}${shared_ext}$major'
4768   ;;
4769
4770 aix[4-9]*)
4771   version_type=linux
4772   need_lib_prefix=no
4773   need_version=no
4774   hardcode_into_libs=yes
4775   if test "$host_cpu" = ia64; then
4776     # AIX 5 supports IA64
4777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4778     shlibpath_var=LD_LIBRARY_PATH
4779   else
4780     # With GCC up to 2.95.x, collect2 would create an import file
4781     # for dependence libraries.  The import file would start with
4782     # the line `#! .'.  This would cause the generated library to
4783     # depend on `.', always an invalid library.  This was fixed in
4784     # development snapshots of GCC prior to 3.0.
4785     case $host_os in
4786       aix4 | aix4.[01] | aix4.[01].*)
4787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4788            echo ' yes '
4789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4790         :
4791       else
4792         can_build_shared=no
4793       fi
4794       ;;
4795     esac
4796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4797     # soname into executable. Probably we can add versioning support to
4798     # collect2, so additional links can be useful in future.
4799     if test "$aix_use_runtimelinking" = yes; then
4800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4801       # instead of lib<name>.a to let people know that these are not
4802       # typical AIX shared libraries.
4803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4804     else
4805       # We preserve .a as extension for shared libraries through AIX4.2
4806       # and later when we are not doing run time linking.
4807       library_names_spec='${libname}${release}.a $libname.a'
4808       soname_spec='${libname}${release}${shared_ext}$major'
4809     fi
4810     shlibpath_var=LIBPATH
4811   fi
4812   ;;
4813
4814 amigaos*)
4815   library_names_spec='$libname.ixlibrary $libname.a'
4816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4817   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'
4818   ;;
4819
4820 beos*)
4821   library_names_spec='${libname}${shared_ext}'
4822   dynamic_linker="$host_os ld.so"
4823   shlibpath_var=LIBRARY_PATH
4824   ;;
4825
4826 bsdi4*)
4827   version_type=linux
4828   need_version=no
4829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4830   soname_spec='${libname}${release}${shared_ext}$major'
4831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4832   shlibpath_var=LD_LIBRARY_PATH
4833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4835   # the default ld.so.conf also contains /usr/contrib/lib and
4836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4837   # libtool to hard-code these into programs
4838   ;;
4839
4840 cygwin* | mingw* | pw32*)
4841   version_type=windows
4842   shrext=".dll"
4843   need_version=no
4844   need_lib_prefix=no
4845
4846   case $GCC,$host_os in
4847   yes,cygwin* | yes,mingw* | yes,pw32*)
4848     library_names_spec='$libname.dll.a'
4849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4850     postinstall_cmds='base_file=`basename \${file}`~
4851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4852       dldir=$destdir/`dirname \$dlpath`~
4853       test -d \$dldir || mkdir -p \$dldir~
4854       $install_prog $dir/$dlname \$dldir/$dlname'
4855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4856       dlpath=$dir/\$dldll~
4857        $rm \$dlpath'
4858     shlibpath_overrides_runpath=yes
4859
4860     case $host_os in
4861     cygwin*)
4862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4864       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4865       ;;
4866     mingw*)
4867       # MinGW DLLs use traditional 'lib' prefix
4868       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4869       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4870       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4871         # It is most probably a Windows format PATH printed by
4872         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4873         # path with ; separators, and with drive letters. We can handle the
4874         # drive letters (cygwin fileutils understands them), so leave them,
4875         # especially as we might pass files found there to a mingw objdump,
4876         # which wouldn't understand a cygwinified path. Ahh.
4877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4878       else
4879         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4880       fi
4881       ;;
4882     pw32*)
4883       # pw32 DLLs use 'pw' prefix rather than 'lib'
4884       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4885       ;;
4886     esac
4887     ;;
4888
4889   *)
4890     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4891     ;;
4892   esac
4893   dynamic_linker='Win32 ld.exe'
4894   # FIXME: first we should search . and the directory the executable is in
4895   shlibpath_var=PATH
4896   ;;
4897
4898 darwin* | rhapsody*)
4899   dynamic_linker="$host_os dyld"
4900   version_type=darwin
4901   need_lib_prefix=no
4902   need_version=no
4903   # FIXME: Relying on posixy $() will cause problems for
4904   #        cross-compilation, but unfortunately the echo tests do not
4905   #        yet detect zsh echo's removal of \ escapes.
4906   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4907   soname_spec='${libname}${release}${major}$shared_ext'
4908   shlibpath_overrides_runpath=yes
4909   shlibpath_var=DYLD_LIBRARY_PATH
4910   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4911   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4912   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4913   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"`
4914   fi
4915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4916   ;;
4917
4918 dgux*)
4919   version_type=linux
4920   need_lib_prefix=no
4921   need_version=no
4922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4923   soname_spec='${libname}${release}${shared_ext}$major'
4924   shlibpath_var=LD_LIBRARY_PATH
4925   ;;
4926
4927 freebsd1*)
4928   dynamic_linker=no
4929   ;;
4930
4931 freebsd*)
4932   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4933   version_type=freebsd-$objformat
4934   case $version_type in
4935     freebsd-elf*)
4936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4937       need_version=no
4938       need_lib_prefix=no
4939       ;;
4940     freebsd-*)
4941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4942       need_version=yes
4943       ;;
4944   esac
4945   shlibpath_var=LD_LIBRARY_PATH
4946   case $host_os in
4947   freebsd2*)
4948     shlibpath_overrides_runpath=yes
4949     ;;
4950   freebsd3.01* | freebsdelf3.01*)
4951     shlibpath_overrides_runpath=yes
4952     hardcode_into_libs=yes
4953     ;;
4954   *) # from 3.2 on
4955     shlibpath_overrides_runpath=no
4956     hardcode_into_libs=yes
4957     ;;
4958   esac
4959   ;;
4960
4961 gnu*)
4962   version_type=linux
4963   need_lib_prefix=no
4964   need_version=no
4965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4966   soname_spec='${libname}${release}${shared_ext}$major'
4967   shlibpath_var=LD_LIBRARY_PATH
4968   hardcode_into_libs=yes
4969   ;;
4970
4971 hpux9* | hpux10* | hpux11*)
4972   # Give a soname corresponding to the major version so that dld.sl refuses to
4973   # link against other versions.
4974   version_type=sunos
4975   need_lib_prefix=no
4976   need_version=no
4977   case "$host_cpu" in
4978   ia64*)
4979     shrext='.so'
4980     hardcode_into_libs=yes
4981     dynamic_linker="$host_os dld.so"
4982     shlibpath_var=LD_LIBRARY_PATH
4983     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4985     soname_spec='${libname}${release}${shared_ext}$major'
4986     if test "X$HPUX_IA64_MODE" = X32; then
4987       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4988     else
4989       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4990     fi
4991     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4992     ;;
4993    hppa*64*)
4994      shrext='.sl'
4995      hardcode_into_libs=yes
4996      dynamic_linker="$host_os dld.sl"
4997      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4998      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4999      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5000      soname_spec='${libname}${release}${shared_ext}$major'
5001      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5002      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5003      ;;
5004    *)
5005     shrext='.sl'
5006     dynamic_linker="$host_os dld.sl"
5007     shlibpath_var=SHLIB_PATH
5008     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5010     soname_spec='${libname}${release}${shared_ext}$major'
5011     ;;
5012   esac
5013   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5014   postinstall_cmds='chmod 555 $lib'
5015   ;;
5016
5017 irix5* | irix6* | nonstopux*)
5018   case $host_os in
5019     nonstopux*) version_type=nonstopux ;;
5020     *)
5021         if test "$lt_cv_prog_gnu_ld" = yes; then
5022                 version_type=linux
5023         else
5024                 version_type=irix
5025         fi ;;
5026   esac
5027   need_lib_prefix=no
5028   need_version=no
5029   soname_spec='${libname}${release}${shared_ext}$major'
5030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5031   case $host_os in
5032   irix5* | nonstopux*)
5033     libsuff= shlibsuff=
5034     ;;
5035   *)
5036     case $LD in # libtool.m4 will add one of these switches to LD
5037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5038       libsuff= shlibsuff= libmagic=32-bit;;
5039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5040       libsuff=32 shlibsuff=N32 libmagic=N32;;
5041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
5043     *) libsuff= shlibsuff= libmagic=never-match;;
5044     esac
5045     ;;
5046   esac
5047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5048   shlibpath_overrides_runpath=no
5049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5051   hardcode_into_libs=yes
5052   ;;
5053
5054 # No shared lib support for Linux oldld, aout, or coff.
5055 linux*oldld* | linux*aout* | linux*coff*)
5056   dynamic_linker=no
5057   ;;
5058
5059 # This must be Linux ELF.
5060 linux*|k*bsd*-gnu)
5061   version_type=linux
5062   need_lib_prefix=no
5063   need_version=no
5064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5065   soname_spec='${libname}${release}${shared_ext}$major'
5066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5067   shlibpath_var=LD_LIBRARY_PATH
5068   shlibpath_overrides_runpath=no
5069   # This implies no fast_install, which is unacceptable.
5070   # Some rework will be needed to allow for fast_install
5071   # before this can be enabled.
5072   hardcode_into_libs=yes
5073
5074   # We used to test for /lib/ld.so.1 and disable shared libraries on
5075   # powerpc, because MkLinux only supported shared libraries with the
5076   # GNU dynamic linker.  Since this was broken with cross compilers,
5077   # most powerpc-linux boxes support dynamic linking these days and
5078   # people can always --disable-shared, the test was removed, and we
5079   # assume the GNU/Linux dynamic linker is in use.
5080   dynamic_linker='GNU/Linux ld.so'
5081   ;;
5082
5083 netbsd*)
5084   version_type=sunos
5085   need_lib_prefix=no
5086   need_version=no
5087   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5090     dynamic_linker='NetBSD (a.out) ld.so'
5091   else
5092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5093     soname_spec='${libname}${release}${shared_ext}$major'
5094     dynamic_linker='NetBSD ld.elf_so'
5095   fi
5096   shlibpath_var=LD_LIBRARY_PATH
5097   shlibpath_overrides_runpath=yes
5098   hardcode_into_libs=yes
5099   ;;
5100
5101 newsos6)
5102   version_type=linux
5103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5104   shlibpath_var=LD_LIBRARY_PATH
5105   shlibpath_overrides_runpath=yes
5106   ;;
5107
5108 nto-qnx)
5109   version_type=linux
5110   need_lib_prefix=no
5111   need_version=no
5112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5113   soname_spec='${libname}${release}${shared_ext}$major'
5114   shlibpath_var=LD_LIBRARY_PATH
5115   shlibpath_overrides_runpath=yes
5116   ;;
5117
5118 openbsd*)
5119   version_type=sunos
5120   need_lib_prefix=no
5121   need_version=no
5122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5124   shlibpath_var=LD_LIBRARY_PATH
5125   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5126     case $host_os in
5127       openbsd2.[89] | openbsd2.[89].*)
5128         shlibpath_overrides_runpath=no
5129         ;;
5130       *)
5131         shlibpath_overrides_runpath=yes
5132         ;;
5133       esac
5134   else
5135     shlibpath_overrides_runpath=yes
5136   fi
5137   ;;
5138
5139 os2*)
5140   libname_spec='$name'
5141   shrext=".dll"
5142   need_lib_prefix=no
5143   library_names_spec='$libname${shared_ext} $libname.a'
5144   dynamic_linker='OS/2 ld.exe'
5145   shlibpath_var=LIBPATH
5146   ;;
5147
5148 osf3* | osf4* | osf5*)
5149   version_type=osf
5150   need_lib_prefix=no
5151   need_version=no
5152   soname_spec='${libname}${release}${shared_ext}$major'
5153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5154   shlibpath_var=LD_LIBRARY_PATH
5155   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5156   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5157   ;;
5158
5159 sco3.2v5*)
5160   version_type=osf
5161   soname_spec='${libname}${release}${shared_ext}$major'
5162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5163   shlibpath_var=LD_LIBRARY_PATH
5164   ;;
5165
5166 solaris*)
5167   version_type=linux
5168   need_lib_prefix=no
5169   need_version=no
5170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5171   soname_spec='${libname}${release}${shared_ext}$major'
5172   shlibpath_var=LD_LIBRARY_PATH
5173   shlibpath_overrides_runpath=yes
5174   hardcode_into_libs=yes
5175   # ldd complains unless libraries are executable
5176   postinstall_cmds='chmod +x $lib'
5177   ;;
5178
5179 sunos4*)
5180   version_type=sunos
5181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5182   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5183   shlibpath_var=LD_LIBRARY_PATH
5184   shlibpath_overrides_runpath=yes
5185   if test "$with_gnu_ld" = yes; then
5186     need_lib_prefix=no
5187   fi
5188   need_version=yes
5189   ;;
5190
5191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5192   version_type=linux
5193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5194   soname_spec='${libname}${release}${shared_ext}$major'
5195   shlibpath_var=LD_LIBRARY_PATH
5196   case $host_vendor in
5197     sni)
5198       shlibpath_overrides_runpath=no
5199       need_lib_prefix=no
5200       export_dynamic_flag_spec='${wl}-Blargedynsym'
5201       runpath_var=LD_RUN_PATH
5202       ;;
5203     siemens)
5204       need_lib_prefix=no
5205       ;;
5206     motorola)
5207       need_lib_prefix=no
5208       need_version=no
5209       shlibpath_overrides_runpath=no
5210       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5211       ;;
5212   esac
5213   ;;
5214
5215 sysv4*MP*)
5216   if test -d /usr/nec ;then
5217     version_type=linux
5218     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5219     soname_spec='$libname${shared_ext}.$major'
5220     shlibpath_var=LD_LIBRARY_PATH
5221   fi
5222   ;;
5223
5224 uts4*)
5225   version_type=linux
5226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5227   soname_spec='${libname}${release}${shared_ext}$major'
5228   shlibpath_var=LD_LIBRARY_PATH
5229   ;;
5230
5231 *)
5232   dynamic_linker=no
5233   ;;
5234 esac
5235 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5236 echo "${ECHO_T}$dynamic_linker" >&6
5237 test "$dynamic_linker" = no && can_build_shared=no
5238
5239
5240 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5241 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5242 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   libltdl_cv_shlibpath_var="$shlibpath_var"
5246 fi
5247 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5248 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5249 if test -n "$libltdl_cv_shlibpath_var"; then
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5253 _ACEOF
5254
5255 fi
5256
5257 fi
5258
5259                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5260
5261
5262 # See if the user has requested runtime debugging.
5263 LIBGCJDEBUG="disable"
5264
5265 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5266 if test "${enable_libgcj_debug+set}" = set; then
5267   enableval="$enable_libgcj_debug"
5268   if test "$enable_libgcj_debug" = yes; then
5269
5270 cat >>confdefs.h <<\_ACEOF
5271 #define __GCJ_DEBUG 1
5272 _ACEOF
5273
5274     LIBGCJDEBUG="enable"
5275   fi
5276 fi;
5277
5278
5279 # Check whether --with-escher or --without-escher was given.
5280 if test "${with_escher+set}" = set; then
5281   withval="$with_escher"
5282
5283 fi;
5284 case "$with_escher" in
5285 "")
5286         use_escher=false
5287         ;;
5288 "no")
5289         use_escher=false
5290         ;;
5291 "yes")
5292         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5293 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5294    { (exit 1); exit 1; }; }
5295         ;;
5296 *)
5297         use_escher=true
5298         ;;
5299 esac
5300
5301 # Determine which AWT peer libraries to build
5302 # Check whether --enable-java-awt or --disable-java-awt was given.
5303 if test "${enable_java_awt+set}" = set; then
5304   enableval="$enable_java_awt"
5305
5306 fi;
5307
5308 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5309 use_xlib_awt=""
5310 use_gtk_awt=""
5311 use_qt_awt=""
5312 use_x_awt=""
5313 # The default toolkit to use is the first one specified.
5314 TOOLKIT=
5315
5316
5317 for peer in $peerlibs ; do
5318   case $peer in
5319     xlib)
5320       if test "$no_x" = yes; then
5321         echo "*** xlib peers requested but no X library available" 1>&2
5322         exit 1
5323       else
5324         use_xlib_awt="yes"
5325         if test -z "$TOOLKIT"; then
5326            TOOLKIT=gnu.awt.xlib.XToolkit
5327         fi
5328       fi
5329       ;;
5330     gtk)
5331       if test "$no_x" = yes; then
5332          echo "*** gtk peers requested but no X library available" 1>&2
5333          exit 1
5334       else
5335          use_gtk_awt=yes
5336          if test -z "$TOOLKIT"; then
5337             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5338          fi
5339       fi
5340       ;;
5341     qt)
5342       if test "$no_x" = yes; then
5343          # Perhaps we should admit the possibility of embedded Qt.
5344          echo "*** Qt peers requested but no X library available" 1>&2
5345          exit 1
5346       else
5347          use_qt_awt=yes
5348          if test -z "$TOOLKIT"; then
5349             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5350          fi
5351       fi
5352       ;;
5353     x)
5354       use_x_awt=yes
5355       if test -z "$TOOLKIT"; then
5356          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5357       fi
5358       ;;
5359     no)
5360       use_xlib_awt=
5361       use_gtk_awt=
5362       use_qt_awt=
5363       use_x_awt=
5364       break
5365       ;;
5366     *)
5367       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5368       exit 1
5369   esac
5370 done
5371
5372
5373
5374 if test "$use_xlib_awt" = yes; then
5375   XLIB_AWT_TRUE=
5376   XLIB_AWT_FALSE='#'
5377 else
5378   XLIB_AWT_TRUE='#'
5379   XLIB_AWT_FALSE=
5380 fi
5381
5382
5383
5384 if test "$use_x_awt" = yes; then
5385   X_AWT_TRUE=
5386   X_AWT_FALSE='#'
5387 else
5388   X_AWT_TRUE='#'
5389   X_AWT_FALSE=
5390 fi
5391
5392
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define AWT_TOOLKIT "$TOOLKIT"
5396 _ACEOF
5397
5398
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LIBGCJ_PREFIX "$prefix"
5402 _ACEOF
5403
5404
5405 # Create standard.omit based on decisions we just made.
5406 cp $srcdir/standard.omit.in standard.omit
5407 if test "$use_xlib_awt" != yes; then
5408    echo gnu/awt/xlib >> standard.omit
5409    echo gnu/gcj/xlib >> standard.omit
5410 fi
5411 if test "$use_x_awt" != yes; then
5412    echo gnu/java/awt/peer/x >> standard.omit
5413 fi
5414
5415 # Tools that need to be compiled against classpath's tools classes
5416 : > vm-tools-packages
5417 for package in gnu/gcj/tools/gc_analyze ; do
5418     echo $package >> standard.omit
5419     echo $package >> vm-tools-packages
5420 done
5421
5422 if test -z "${with_multisubdir}"; then
5423    builddotdot=.
5424 else
5425    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5426 fi
5427
5428 NATIVE=yes
5429
5430 # Which gcj and host gcj (for ecjx) do we use?
5431 which_gcj=default
5432 host_exeext=${ac_exeext}
5433 GCJ_FOR_ECJX=
5434 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5435 if test -n "${with_cross_host}"; then
5436   # We are being configured with a cross compiler. We can't
5437   # use ac_exeext, because that is for the target platform.
5438   NATIVE=no
5439   cross_host_exeext=
5440   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5441   case "${with_cross_host}" in
5442      *mingw* | *cygwin*)
5443          cross_host_exeext=.exe
5444      ;;
5445   esac
5446   host_exeext=${cross_host_exeext}
5447   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5448      if test x"$build_noncanonical" = x"$with_cross_host"; then
5449         # Ordinary cross (host!=target and host=build)
5450         which_gcj=built
5451      else
5452         # Canadian cross (host!=target and host!=build)
5453         which_gcj=cross
5454      fi
5455   else
5456      which_gcj=cross
5457   fi
5458 else
5459   # We are being configured with a native or crossed-native compiler
5460   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5461      if test x"$build" = x"$host"; then
5462         # True native build (host=target and host=build)
5463         which_gcj=built
5464      else
5465         # Crossed-native build (host=target and host!=build)
5466         which_gcj=cross
5467      fi
5468   else
5469      which_gcj=path
5470   fi
5471 fi
5472 case "${which_gcj}" in
5473    built)
5474       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5475       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5476    ;;
5477    cross)
5478       if test "x${with_newlib}" = "xyes"; then
5479          # FIXME (comment): Why is this needed?
5480          GCC_UNWIND_INCLUDE=
5481          GCJ="${target_noncanonical}-gcj"
5482       else
5483          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5484       fi
5485       GCJH='$(target_noncanonical)-gcjh'
5486    ;;
5487    path)
5488       GCJ="gcj -B`${PWDCMD-pwd}`/"
5489       GCJH=gcjh
5490    ;;
5491 esac
5492 JAVAC="$GCJ -C"
5493 export JAVAC
5494
5495
5496
5497
5498
5499 # Create it, so that compile/link tests don't fail
5500 test -f libgcj.spec || touch libgcj.spec
5501
5502
5503
5504 # Set up to configure Classpath.
5505 # FIXME: no supported way to pass args in autoconf.
5506 # Disable tool wrappers to avoid ltdl.h configure check.
5507 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5508 ac_configure_args="$ac_configure_args --disable-load-library"
5509 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5510 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5511 dir1=`cd $srcdir && pwd`
5512 dir2=`pwd`
5513 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5514 ac_configure_args="$ac_configure_args --disable-core-jni"
5515 ac_configure_args="$ac_configure_args --disable-examples"
5516 ac_configure_args="$ac_configure_args --with-glibj=build"
5517 if test "$plugin_enabled" != yes; then
5518   ac_configure_args="$ac_configure_args --disable-plugin"
5519 fi
5520 if test "$gconf_enabled" != yes; then
5521   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5522   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5523 fi
5524 if test "$use_gtk_awt" != yes; then
5525   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5526 fi
5527 if test "$use_qt_awt" != yes; then
5528   ac_configure_args="$ac_configure_args --disable-qt-peer"
5529 else
5530   # We need this as qt is disabled by default in classpath.
5531   ac_configure_args="$ac_configure_args --enable-qt-peer"
5532 fi
5533 if test "$use_x_awt" != yes; then
5534   ac_configure_args="$ac_configure_args --without-escher"
5535 else
5536   # We need this as escher is disabled by default in classpath.
5537   if test "$use_escher" != true; then
5538     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5539 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5540    { (exit 1); exit 1; }; }
5541   else
5542     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5543   fi
5544 fi
5545 if test "x$BUILD_GJDOC" = xno; then
5546   ac_configure_args="$ac_configure_args --disable-gjdoc"
5547 fi
5548 # -Werror causes unavoidable problems in code using alsa.
5549 ac_configure_args="$ac_configure_args --disable-regen-headers"
5550 ac_configure_args="$ac_configure_args --disable-Werror"
5551
5552 # Only use libltdl for non-newlib builds.
5553 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5554      case $enable_ltdl_convenience in
5555   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5556 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5557    { (exit 1); exit 1; }; } ;;
5558   "") enable_ltdl_convenience=yes
5559       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5560   esac
5561   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5562   LTDLINCL='-I${top_srcdir}/''libltdl'
5563   # For backwards non-gettext consistent compatibility...
5564   INCLTDL="$LTDLINCL"
5565
5566    enable_dlopen=yes
5567
5568
5569
5570    DIRLTDL=libltdl
5571
5572 cat >>confdefs.h <<\_ACEOF
5573 #define USE_LTDL 1
5574 _ACEOF
5575
5576    # Sigh.  Libtool's macro doesn't do the right thing.
5577    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5578    # FIXME: this is a hack.
5579    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5580    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5581 fi
5582
5583
5584
5585 case `pwd` in
5586   *\ * | *\     *)
5587     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5588 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5589 esac
5590
5591
5592
5593 macro_version='2.2.6'
5594 macro_revision='1.3012'
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608 ltmain="$ac_aux_dir/ltmain.sh"
5609
5610 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5611 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5612 if test "${lt_cv_path_SED+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   # Loop through the user's path and test for sed and gsed.
5616 # Then use that list of sed's as ones to test for truncation.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for lt_ac_prog in sed gsed; do
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5625         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5626       fi
5627     done
5628   done
5629 done
5630 IFS=$as_save_IFS
5631 lt_ac_max=0
5632 lt_ac_count=0
5633 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5634 # along with /bin/sed that truncates output.
5635 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5636   test ! -f $lt_ac_sed && continue
5637   cat /dev/null > conftest.in
5638   lt_ac_count=0
5639   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5640   # Check for GNU sed and select it if it is found.
5641   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5642     lt_cv_path_SED=$lt_ac_sed
5643     break
5644   fi
5645   while true; do
5646     cat conftest.in conftest.in >conftest.tmp
5647     mv conftest.tmp conftest.in
5648     cp conftest.in conftest.nl
5649     echo >>conftest.nl
5650     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5651     cmp -s conftest.out conftest.nl || break
5652     # 10000 chars as input seems more than enough
5653     test $lt_ac_count -gt 10 && break
5654     lt_ac_count=`expr $lt_ac_count + 1`
5655     if test $lt_ac_count -gt $lt_ac_max; then
5656       lt_ac_max=$lt_ac_count
5657       lt_cv_path_SED=$lt_ac_sed
5658     fi
5659   done
5660 done
5661
5662 fi
5663
5664 SED=$lt_cv_path_SED
5665
5666 echo "$as_me:$LINENO: result: $SED" >&5
5667 echo "${ECHO_T}$SED" >&6
5668
5669 test -z "$SED" && SED=sed
5670 Xsed="$SED -e 1s/^X//"
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 echo "$as_me:$LINENO: checking for egrep" >&5
5683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5684 if test "${ac_cv_prog_egrep+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5688     then ac_cv_prog_egrep='grep -E'
5689     else ac_cv_prog_egrep='egrep'
5690     fi
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5693 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5694  EGREP=$ac_cv_prog_egrep
5695
5696
5697 echo "$as_me:$LINENO: checking for fgrep" >&5
5698 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5699 if test "${ac_cv_prog_fgrep+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5703     then ac_cv_prog_fgrep='grep -F'
5704     else ac_cv_prog_fgrep='fgrep'
5705     fi
5706 fi
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5708 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5709  FGREP=$ac_cv_prog_fgrep
5710
5711
5712 test -z "$GREP" && GREP=grep
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5733 if test "${with_gnu_ld+set}" = set; then
5734   withval="$with_gnu_ld"
5735   test "$withval" = no || with_gnu_ld=yes
5736 else
5737   with_gnu_ld=no
5738 fi;
5739 ac_prog=ld
5740 if test "$GCC" = yes; then
5741   # Check if gcc -print-prog-name=ld gives a path.
5742   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5743 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5744   case $host in
5745   *-*-mingw*)
5746     # gcc leaves a trailing carriage return which upsets mingw
5747     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5748   *)
5749     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5750   esac
5751   case $ac_prog in
5752     # Accept absolute paths.
5753     [\\/]* | ?:[\\/]*)
5754       re_direlt='/[^/][^/]*/\.\./'
5755       # Canonicalize the pathname of ld
5756       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5757       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5758         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5759       done
5760       test -z "$LD" && LD="$ac_prog"
5761       ;;
5762   "")
5763     # If it fails, then pretend we aren't using GCC.
5764     ac_prog=ld
5765     ;;
5766   *)
5767     # If it is relative, then search for the first ld in PATH.
5768     with_gnu_ld=unknown
5769     ;;
5770   esac
5771 elif test "$with_gnu_ld" = yes; then
5772   echo "$as_me:$LINENO: checking for GNU ld" >&5
5773 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5774 else
5775   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5776 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5777 fi
5778 if test "${lt_cv_path_LD+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -z "$LD"; then
5782   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5783   for ac_dir in $PATH; do
5784     IFS="$lt_save_ifs"
5785     test -z "$ac_dir" && ac_dir=.
5786     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5787       lt_cv_path_LD="$ac_dir/$ac_prog"
5788       # Check to see if the program is GNU ld.  I'd rather use --version,
5789       # but apparently some variants of GNU ld only accept -v.
5790       # Break only if it was the GNU/non-GNU ld that we prefer.
5791       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5792       *GNU* | *'with BFD'*)
5793         test "$with_gnu_ld" != no && break
5794         ;;
5795       *)
5796         test "$with_gnu_ld" != yes && break
5797         ;;
5798       esac
5799     fi
5800   done
5801   IFS="$lt_save_ifs"
5802 else
5803   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5804 fi
5805 fi
5806
5807 LD="$lt_cv_path_LD"
5808 if test -n "$LD"; then
5809   echo "$as_me:$LINENO: result: $LD" >&5
5810 echo "${ECHO_T}$LD" >&6
5811 else
5812   echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5814 fi
5815 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5816 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5817    { (exit 1); exit 1; }; }
5818 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5819 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5820 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5824 case `$LD -v 2>&1 </dev/null` in
5825 *GNU* | *'with BFD'*)
5826   lt_cv_prog_gnu_ld=yes
5827   ;;
5828 *)
5829   lt_cv_prog_gnu_ld=no
5830   ;;
5831 esac
5832 fi
5833 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5834 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5835 with_gnu_ld=$lt_cv_prog_gnu_ld
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* | cegcc*)
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,, \
6167     && eval 'test $(( 1 + 1 )) -eq 2 \
6168     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169   && xsi_shell=yes
6170 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6
6172
6173
6174 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6176 lt_shell_append=no
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178     >/dev/null 2>&1 \
6179   && lt_shell_append=yes
6180 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6
6182
6183
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185   lt_unset=unset
6186 else
6187   lt_unset=false
6188 fi
6189
6190
6191
6192
6193
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196  A) # ASCII based system
6197     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198   lt_SP2NL='tr \040 \012'
6199   lt_NL2SP='tr \015\012 \040\040'
6200   ;;
6201  *) # EBCDIC based system
6202   lt_SP2NL='tr \100 \n'
6203   lt_NL2SP='tr \r\n \100\100'
6204   ;;
6205 esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   lt_cv_ld_reload_flag='-r'
6221 fi
6222 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6226 "" | " "*) ;;
6227 *) reload_flag=" $reload_flag" ;;
6228 esac
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 case $host_os in
6231   darwin*)
6232     if test "$GCC" = yes; then
6233       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234     else
6235       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236     fi
6237     ;;
6238 esac
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$OBJDUMP"; then
6257   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272
6273 fi
6274 fi
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6278 echo "${ECHO_T}$OBJDUMP" >&6
6279 else
6280   echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6282 fi
6283
6284 fi
6285 if test -z "$ac_cv_prog_OBJDUMP"; then
6286   ac_ct_OBJDUMP=$OBJDUMP
6287   # Extract the first word of "objdump", so it can be a program name with args.
6288 set dummy objdump; ac_word=$2
6289 echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   if test -n "$ac_ct_OBJDUMP"; then
6295   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302   for ac_exec_ext in '' $ac_executable_extensions; do
6303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309 done
6310
6311   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6312 fi
6313 fi
6314 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6315 if test -n "$ac_ct_OBJDUMP"; then
6316   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6317 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6318 else
6319   echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6
6321 fi
6322
6323   OBJDUMP=$ac_ct_OBJDUMP
6324 else
6325   OBJDUMP="$ac_cv_prog_OBJDUMP"
6326 fi
6327
6328 test -z "$OBJDUMP" && OBJDUMP=objdump
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6339 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6340 if test "${lt_cv_deplibs_check_method+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   lt_cv_file_magic_cmd='$MAGIC_CMD'
6344 lt_cv_file_magic_test_file=
6345 lt_cv_deplibs_check_method='unknown'
6346 # Need to set the preceding variable on all platforms that support
6347 # interlibrary dependencies.
6348 # 'none' -- dependencies not supported.
6349 # `unknown' -- same as none, but documents that we really don't know.
6350 # 'pass_all' -- all dependencies passed with no checks.
6351 # 'test_compile' -- check by making test program.
6352 # 'file_magic [[regex]]' -- check by looking for files in library path
6353 # which responds to the $file_magic_cmd with a given extended regex.
6354 # If you have `file' or equivalent on your system and you're not sure
6355 # whether `pass_all' will *always* work, you probably want this one.
6356
6357 case $host_os in
6358 aix[4-9]*)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 beos*)
6363   lt_cv_deplibs_check_method=pass_all
6364   ;;
6365
6366 bsdi[45]*)
6367   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6368   lt_cv_file_magic_cmd='/usr/bin/file -L'
6369   lt_cv_file_magic_test_file=/shlib/libc.so
6370   ;;
6371
6372 cygwin*)
6373   # func_win32_libid is a shell function defined in ltmain.sh
6374   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375   lt_cv_file_magic_cmd='func_win32_libid'
6376   ;;
6377
6378 mingw* | pw32*)
6379   # Base MSYS/MinGW do not provide the 'file' command needed by
6380   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6381   # unless we find 'file', for example because we are cross-compiling.
6382   if ( file / ) >/dev/null 2>&1; then
6383     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6384     lt_cv_file_magic_cmd='func_win32_libid'
6385   else
6386     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6387     lt_cv_file_magic_cmd='$OBJDUMP -f'
6388   fi
6389   ;;
6390
6391 cegcc)
6392   # use the weaker test based on 'objdump'. See mingw*.
6393   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6394   lt_cv_file_magic_cmd='$OBJDUMP -f'
6395   ;;
6396
6397 darwin* | rhapsody*)
6398   lt_cv_deplibs_check_method=pass_all
6399   ;;
6400
6401 freebsd* | dragonfly*)
6402   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6403     case $host_cpu in
6404     i*86 )
6405       # Not sure whether the presence of OpenBSD here was a mistake.
6406       # Let's accept both of them until this is cleared up.
6407       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6408       lt_cv_file_magic_cmd=/usr/bin/file
6409       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6410       ;;
6411     esac
6412   else
6413     lt_cv_deplibs_check_method=pass_all
6414   fi
6415   ;;
6416
6417 gnu*)
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 hpux10.20* | hpux11*)
6422   lt_cv_file_magic_cmd=/usr/bin/file
6423   case $host_cpu in
6424   ia64*)
6425     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6426     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6427     ;;
6428   hppa*64*)
6429     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]'
6430     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6431     ;;
6432   *)
6433     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6434     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6435     ;;
6436   esac
6437   ;;
6438
6439 interix[3-9]*)
6440   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6441   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6442   ;;
6443
6444 irix5* | irix6* | nonstopux*)
6445   case $LD in
6446   *-32|*"-32 ") libmagic=32-bit;;
6447   *-n32|*"-n32 ") libmagic=N32;;
6448   *-64|*"-64 ") libmagic=64-bit;;
6449   *) libmagic=never-match;;
6450   esac
6451   lt_cv_deplibs_check_method=pass_all
6452   ;;
6453
6454 # This must be Linux ELF.
6455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458
6459 netbsd*)
6460   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6461     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6462   else
6463     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6464   fi
6465   ;;
6466
6467 newos6*)
6468   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6469   lt_cv_file_magic_cmd=/usr/bin/file
6470   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6471   ;;
6472
6473 *nto* | *qnx*)
6474   lt_cv_deplibs_check_method=pass_all
6475   ;;
6476
6477 openbsd*)
6478   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6480   else
6481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6482   fi
6483   ;;
6484
6485 osf3* | osf4* | osf5*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 rdos*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 solaris*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 sysv4 | sysv4.3*)
6502   case $host_vendor in
6503   motorola)
6504     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]'
6505     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6506     ;;
6507   ncr)
6508     lt_cv_deplibs_check_method=pass_all
6509     ;;
6510   sequent)
6511     lt_cv_file_magic_cmd='/bin/file'
6512     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6513     ;;
6514   sni)
6515     lt_cv_file_magic_cmd='/bin/file'
6516     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6517     lt_cv_file_magic_test_file=/lib/libc.so
6518     ;;
6519   siemens)
6520     lt_cv_deplibs_check_method=pass_all
6521     ;;
6522   pc)
6523     lt_cv_deplibs_check_method=pass_all
6524     ;;
6525   esac
6526   ;;
6527
6528 tpf*)
6529   lt_cv_deplibs_check_method=pass_all
6530   ;;
6531 esac
6532
6533 fi
6534 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6535 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6536 file_magic_cmd=$lt_cv_file_magic_cmd
6537 deplibs_check_method=$lt_cv_deplibs_check_method
6538 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 if test -n "$ac_tool_prefix"; then
6552   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6553 set dummy ${ac_tool_prefix}ar; ac_word=$2
6554 echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6556 if test "${ac_cv_prog_AR+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   if test -n "$AR"; then
6560   ac_cv_prog_AR="$AR" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569     ac_cv_prog_AR="${ac_tool_prefix}ar"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575
6576 fi
6577 fi
6578 AR=$ac_cv_prog_AR
6579 if test -n "$AR"; then
6580   echo "$as_me:$LINENO: result: $AR" >&5
6581 echo "${ECHO_T}$AR" >&6
6582 else
6583   echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6
6585 fi
6586
6587 fi
6588 if test -z "$ac_cv_prog_AR"; then
6589   ac_ct_AR=$AR
6590   # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   if test -n "$ac_ct_AR"; then
6598   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   for ac_exec_ext in '' $ac_executable_extensions; do
6606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607     ac_cv_prog_ac_ct_AR="ar"
6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612 done
6613
6614   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6615 fi
6616 fi
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620 echo "${ECHO_T}$ac_ct_AR" >&6
6621 else
6622   echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6624 fi
6625
6626   AR=$ac_ct_AR
6627 else
6628   AR="$ac_cv_prog_AR"
6629 fi
6630
6631 test -z "$AR" && AR=ar
6632 test -z "$AR_FLAGS" && AR_FLAGS=cru
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 if test -n "$ac_tool_prefix"; then
6645   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}strip; ac_word=$2
6647 echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6649 if test "${ac_cv_prog_STRIP+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   if test -n "$STRIP"; then
6653   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660   for ac_exec_ext in '' $ac_executable_extensions; do
6661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667 done
6668
6669 fi
6670 fi
6671 STRIP=$ac_cv_prog_STRIP
6672 if test -n "$STRIP"; then
6673   echo "$as_me:$LINENO: result: $STRIP" >&5
6674 echo "${ECHO_T}$STRIP" >&6
6675 else
6676   echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6
6678 fi
6679
6680 fi
6681 if test -z "$ac_cv_prog_STRIP"; then
6682   ac_ct_STRIP=$STRIP
6683   # Extract the first word of "strip", so it can be a program name with args.
6684 set dummy strip; ac_word=$2
6685 echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6687 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   if test -n "$ac_ct_STRIP"; then
6691   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700     ac_cv_prog_ac_ct_STRIP="strip"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706
6707   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6708 fi
6709 fi
6710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6711 if test -n "$ac_ct_STRIP"; then
6712   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6713 echo "${ECHO_T}$ac_ct_STRIP" >&6
6714 else
6715   echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6
6717 fi
6718
6719   STRIP=$ac_ct_STRIP
6720 else
6721   STRIP="$ac_cv_prog_STRIP"
6722 fi
6723
6724 test -z "$STRIP" && STRIP=:
6725
6726
6727
6728
6729
6730
6731 if test -n "$ac_tool_prefix"; then
6732   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734 echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_RANLIB+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   if test -n "$RANLIB"; then
6740   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755
6756 fi
6757 fi
6758 RANLIB=$ac_cv_prog_RANLIB
6759 if test -n "$RANLIB"; then
6760   echo "$as_me:$LINENO: result: $RANLIB" >&5
6761 echo "${ECHO_T}$RANLIB" >&6
6762 else
6763   echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 fi
6766
6767 fi
6768 if test -z "$ac_cv_prog_RANLIB"; then
6769   ac_ct_RANLIB=$RANLIB
6770   # Extract the first word of "ranlib", so it can be a program name with args.
6771 set dummy ranlib; ac_word=$2
6772 echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   if test -n "$ac_ct_RANLIB"; then
6778   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_prog_ac_ct_RANLIB="ranlib"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793
6794   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6795 fi
6796 fi
6797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6798 if test -n "$ac_ct_RANLIB"; then
6799   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6800 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6801 else
6802   echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6804 fi
6805
6806   RANLIB=$ac_ct_RANLIB
6807 else
6808   RANLIB="$ac_cv_prog_RANLIB"
6809 fi
6810
6811 test -z "$RANLIB" && RANLIB=:
6812
6813
6814
6815
6816
6817
6818 # Determine commands to create old-style static archives.
6819 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6820 old_postinstall_cmds='chmod 644 $oldlib'
6821 old_postuninstall_cmds=
6822
6823 if test -n "$RANLIB"; then
6824   case $host_os in
6825   openbsd*)
6826     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6827     ;;
6828   *)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6830     ;;
6831   esac
6832   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6833 fi
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # If no C compiler was specified, use CC.
6869 LTCC=${LTCC-"$CC"}
6870
6871 # If no C compiler flags were specified, use CFLAGS.
6872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873
6874 # Allow CC to be a program name with arguments.
6875 compiler=$CC
6876
6877
6878 # Check for command to grab the raw symbol name followed by C symbol from nm.
6879 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6880 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6881 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884
6885 # These are sane defaults that work on at least a few old systems.
6886 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6887
6888 # Character class describing NM global symbol codes.
6889 symcode='[BCDEGRST]'
6890
6891 # Regexp to match symbols that can be accessed directly from C.
6892 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893
6894 # Define system-specific variables.
6895 case $host_os in
6896 aix*)
6897   symcode='[BCDT]'
6898   ;;
6899 cygwin* | mingw* | pw32* | cegcc*)
6900   symcode='[ABCDGISTW]'
6901   ;;
6902 hpux*)
6903   if test "$host_cpu" = ia64; then
6904     symcode='[ABCDEGRST]'
6905   fi
6906   ;;
6907 irix* | nonstopux*)
6908   symcode='[BCDEGRST]'
6909   ;;
6910 osf*)
6911   symcode='[BCDEGQRST]'
6912   ;;
6913 solaris*)
6914   symcode='[BDRT]'
6915   ;;
6916 sco3.2v5*)
6917   symcode='[DT]'
6918   ;;
6919 sysv4.2uw2*)
6920   symcode='[DT]'
6921   ;;
6922 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6923   symcode='[ABDT]'
6924   ;;
6925 sysv4)
6926   symcode='[DFNSTU]'
6927   ;;
6928 esac
6929
6930 # If we're using GNU nm, then use its standard symbol codes.
6931 case `$NM -V 2>&1` in
6932 *GNU* | *'with BFD'*)
6933   symcode='[ABCDGIRSTW]' ;;
6934 esac
6935
6936 # Transform an extracted symbol line into a proper C declaration.
6937 # Some systems (esp. on ia64) link data and code symbols differently,
6938 # so use this general approach.
6939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6940
6941 # Transform an extracted symbol line into symbol name and symbol address
6942 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6944
6945 # Handle CRLF in mingw tool chain
6946 opt_cr=
6947 case $build_os in
6948 mingw*)
6949   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6950   ;;
6951 esac
6952
6953 # Try without a prefix underscore, then with it.
6954 for ac_symprfx in "" "_"; do
6955
6956   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957   symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
6959   # Write the raw and C identifiers.
6960   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6961     # Fake it for dumpbin and say T for any non-static function
6962     # and D for any global variable.
6963     # Also find C++ and __fastcall symbols from MSVC++,
6964     # which start with @ or ?.
6965     lt_cv_sys_global_symbol_pipe="$AWK '"\
6966 "     {last_section=section; section=\$ 3};"\
6967 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6968 "     \$ 0!~/External *\|/{next};"\
6969 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6970 "     {if(hide[section]) next};"\
6971 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6972 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6973 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6974 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6975 "     ' prfx=^$ac_symprfx"
6976   else
6977     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6978   fi
6979
6980   # Check to see that the pipe works correctly.
6981   pipe_works=no
6982
6983   rm -f conftest*
6984   cat > conftest.$ac_ext <<_LT_EOF
6985 #ifdef __cplusplus
6986 extern "C" {
6987 #endif
6988 char nm_test_var;
6989 void nm_test_func(void);
6990 void nm_test_func(void){}
6991 #ifdef __cplusplus
6992 }
6993 #endif
6994 int main(){nm_test_var='a';nm_test_func();return(0);}
6995 _LT_EOF
6996
6997   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; then
7002     # Now try to grab the symbols.
7003     nlist=conftest.nm
7004     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7005   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } && test -s "$nlist"; then
7009       # Try sorting and uniquifying the output.
7010       if sort "$nlist" | uniq > "$nlist"T; then
7011         mv -f "$nlist"T "$nlist"
7012       else
7013         rm -f "$nlist"T
7014       fi
7015
7016       # Make sure that we snagged all the symbols we need.
7017       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7018         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7019           cat <<_LT_EOF > conftest.$ac_ext
7020 #ifdef __cplusplus
7021 extern "C" {
7022 #endif
7023
7024 _LT_EOF
7025           # Now generate the symbol file.
7026           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7027
7028           cat <<_LT_EOF >> conftest.$ac_ext
7029
7030 /* The mapping between symbol names and symbols.  */
7031 const struct {
7032   const char *name;
7033   void       *address;
7034 }
7035 lt__PROGRAM__LTX_preloaded_symbols[] =
7036 {
7037   { "@PROGRAM@", (void *) 0 },
7038 _LT_EOF
7039           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7040           cat <<\_LT_EOF >> conftest.$ac_ext
7041   {0, (void *) 0}
7042 };
7043
7044 /* This works around a problem in FreeBSD linker */
7045 #ifdef FREEBSD_WORKAROUND
7046 static const void *lt_preloaded_setup() {
7047   return lt__PROGRAM__LTX_preloaded_symbols;
7048 }
7049 #endif
7050
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054 _LT_EOF
7055           # Now try linking the two files.
7056           mv conftest.$ac_objext conftstm.$ac_objext
7057           lt_save_LIBS="$LIBS"
7058           lt_save_CFLAGS="$CFLAGS"
7059           LIBS="conftstm.$ac_objext"
7060           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7061           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062   (eval $ac_link) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7066             pipe_works=yes
7067           fi
7068           LIBS="$lt_save_LIBS"
7069           CFLAGS="$lt_save_CFLAGS"
7070         else
7071           echo "cannot find nm_test_func in $nlist" >&5
7072         fi
7073       else
7074         echo "cannot find nm_test_var in $nlist" >&5
7075       fi
7076     else
7077       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7078     fi
7079   else
7080     echo "$progname: failed program was:" >&5
7081     cat conftest.$ac_ext >&5
7082   fi
7083   rm -rf conftest* conftst*
7084
7085   # Do not use the global_symbol_pipe unless it works.
7086   if test "$pipe_works" = yes; then
7087     break
7088   else
7089     lt_cv_sys_global_symbol_pipe=
7090   fi
7091 done
7092
7093 fi
7094
7095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7096   lt_cv_sys_global_symbol_to_cdecl=
7097 fi
7098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7099   echo "$as_me:$LINENO: result: failed" >&5
7100 echo "${ECHO_T}failed" >&6
7101 else
7102   echo "$as_me:$LINENO: result: ok" >&5
7103 echo "${ECHO_T}ok" >&6
7104 fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7129 if test "${enable_libtool_lock+set}" = set; then
7130   enableval="$enable_libtool_lock"
7131
7132 fi;
7133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7134
7135 # Some flags need to be propagated to the compiler or linker for good
7136 # libtool support.
7137 case $host in
7138 ia64-*-hpux*)
7139   # Find out which ABI we are using.
7140   echo 'int i;' > conftest.$ac_ext
7141   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142   (eval $ac_compile) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; then
7146     case `/usr/bin/file conftest.$ac_objext` in
7147       *ELF-32*)
7148         HPUX_IA64_MODE="32"
7149         ;;
7150       *ELF-64*)
7151         HPUX_IA64_MODE="64"
7152         ;;
7153     esac
7154   fi
7155   rm -rf conftest*
7156   ;;
7157 *-*-irix6*)
7158   # Find out which ABI we are using.
7159   echo '#line 7159 "configure"' > conftest.$ac_ext
7160   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161   (eval $ac_compile) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; then
7165     if test "$lt_cv_prog_gnu_ld" = yes; then
7166       case `/usr/bin/file conftest.$ac_objext` in
7167         *32-bit*)
7168           LD="${LD-ld} -melf32bsmip"
7169           ;;
7170         *N32*)
7171           LD="${LD-ld} -melf32bmipn32"
7172           ;;
7173         *64-bit*)
7174           LD="${LD-ld} -melf64bmip"
7175         ;;
7176       esac
7177     else
7178       case `/usr/bin/file conftest.$ac_objext` in
7179         *32-bit*)
7180           LD="${LD-ld} -32"
7181           ;;
7182         *N32*)
7183           LD="${LD-ld} -n32"
7184           ;;
7185         *64-bit*)
7186           LD="${LD-ld} -64"
7187           ;;
7188       esac
7189     fi
7190   fi
7191   rm -rf conftest*
7192   ;;
7193
7194 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7195 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7196   # Find out which ABI we are using.
7197   echo 'int i;' > conftest.$ac_ext
7198   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199   (eval $ac_compile) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; then
7203     case `/usr/bin/file conftest.o` in
7204       *32-bit*)
7205         case $host in
7206           x86_64-*kfreebsd*-gnu)
7207             LD="${LD-ld} -m elf_i386_fbsd"
7208             ;;
7209           x86_64-*linux*)
7210             LD="${LD-ld} -m elf_i386"
7211             ;;
7212           ppc64-*linux*|powerpc64-*linux*)
7213             LD="${LD-ld} -m elf32ppclinux"
7214             ;;
7215           s390x-*linux*)
7216             LD="${LD-ld} -m elf_s390"
7217             ;;
7218           sparc64-*linux*)
7219             LD="${LD-ld} -m elf32_sparc"
7220             ;;
7221         esac
7222         ;;
7223       *64-bit*)
7224         case $host in
7225           x86_64-*kfreebsd*-gnu)
7226             LD="${LD-ld} -m elf_x86_64_fbsd"
7227             ;;
7228           x86_64-*linux*)
7229             LD="${LD-ld} -m elf_x86_64"
7230             ;;
7231           ppc*-*linux*|powerpc*-*linux*)
7232             LD="${LD-ld} -m elf64ppc"
7233             ;;
7234           s390*-*linux*|s390*-*tpf*)
7235             LD="${LD-ld} -m elf64_s390"
7236             ;;
7237           sparc*-*linux*)
7238             LD="${LD-ld} -m elf64_sparc"
7239             ;;
7240         esac
7241         ;;
7242     esac
7243   fi
7244   rm -rf conftest*
7245   ;;
7246
7247 *-*-sco3.2v5*)
7248   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249   SAVE_CFLAGS="$CFLAGS"
7250   CFLAGS="$CFLAGS -belf"
7251   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7252 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7253 if test "${lt_cv_cc_needs_belf+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262      if test x$gcc_no_link = xyes; then
7263   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7265    { (exit 1); exit 1; }; }
7266 fi
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273
7274 int
7275 main ()
7276 {
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284   (eval $ac_link) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_c_werror_flag"
7292                          || test ! -s conftest.err'
7293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294   (eval $ac_try) 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; } &&
7298          { ac_try='test -s conftest$ac_exeext'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; }; then
7304   lt_cv_cc_needs_belf=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 lt_cv_cc_needs_belf=no
7310 fi
7311 rm -f conftest.err conftest.$ac_objext \
7312       conftest$ac_exeext conftest.$ac_ext
7313      ac_ext=c
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318
7319 fi
7320 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7321 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7322   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7323     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7324     CFLAGS="$SAVE_CFLAGS"
7325   fi
7326   ;;
7327 sparc*-*solaris*)
7328   # Find out which ABI we are using.
7329   echo 'int i;' > conftest.$ac_ext
7330   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331   (eval $ac_compile) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); }; then
7335     case `/usr/bin/file conftest.o` in
7336     *64-bit*)
7337       case $lt_cv_prog_gnu_ld in
7338       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7339       *)
7340         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7341           LD="${LD-ld} -64"
7342         fi
7343         ;;
7344       esac
7345       ;;
7346     esac
7347   fi
7348   rm -rf conftest*
7349   ;;
7350 esac
7351
7352 need_locks="$enable_libtool_lock"
7353
7354
7355   case $host_os in
7356     rhapsody* | darwin*)
7357     if test -n "$ac_tool_prefix"; then
7358   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   if test -n "$DSYMUTIL"; then
7366   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381
7382 fi
7383 fi
7384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7385 if test -n "$DSYMUTIL"; then
7386   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7387 echo "${ECHO_T}$DSYMUTIL" >&6
7388 else
7389   echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7391 fi
7392
7393 fi
7394 if test -z "$ac_cv_prog_DSYMUTIL"; then
7395   ac_ct_DSYMUTIL=$DSYMUTIL
7396   # Extract the first word of "dsymutil", so it can be a program name with args.
7397 set dummy dsymutil; ac_word=$2
7398 echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7400 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$ac_ct_DSYMUTIL"; then
7404   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419
7420   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7421 fi
7422 fi
7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7426 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7427 else
7428   echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 fi
7431
7432   DSYMUTIL=$ac_ct_DSYMUTIL
7433 else
7434   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7435 fi
7436
7437     if test -n "$ac_tool_prefix"; then
7438   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   if test -n "$NMEDIT"; then
7446   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453   for ac_exec_ext in '' $ac_executable_extensions; do
7454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460 done
7461
7462 fi
7463 fi
7464 NMEDIT=$ac_cv_prog_NMEDIT
7465 if test -n "$NMEDIT"; then
7466   echo "$as_me:$LINENO: result: $NMEDIT" >&5
7467 echo "${ECHO_T}$NMEDIT" >&6
7468 else
7469   echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 fi
7472
7473 fi
7474 if test -z "$ac_cv_prog_NMEDIT"; then
7475   ac_ct_NMEDIT=$NMEDIT
7476   # Extract the first word of "nmedit", so it can be a program name with args.
7477 set dummy nmedit; ac_word=$2
7478 echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   if test -n "$ac_ct_NMEDIT"; then
7484   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499
7500   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7501 fi
7502 fi
7503 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7504 if test -n "$ac_ct_NMEDIT"; then
7505   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7506 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7507 else
7508   echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 fi
7511
7512   NMEDIT=$ac_ct_NMEDIT
7513 else
7514   NMEDIT="$ac_cv_prog_NMEDIT"
7515 fi
7516
7517     if test -n "$ac_tool_prefix"; then
7518   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7520 echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522 if test "${ac_cv_prog_LIPO+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   if test -n "$LIPO"; then
7526   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541
7542 fi
7543 fi
7544 LIPO=$ac_cv_prog_LIPO
7545 if test -n "$LIPO"; then
7546   echo "$as_me:$LINENO: result: $LIPO" >&5
7547 echo "${ECHO_T}$LIPO" >&6
7548 else
7549   echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551 fi
7552
7553 fi
7554 if test -z "$ac_cv_prog_LIPO"; then
7555   ac_ct_LIPO=$LIPO
7556   # Extract the first word of "lipo", so it can be a program name with args.
7557 set dummy lipo; ac_word=$2
7558 echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7560 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   if test -n "$ac_ct_LIPO"; then
7564   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571   for ac_exec_ext in '' $ac_executable_extensions; do
7572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573     ac_cv_prog_ac_ct_LIPO="lipo"
7574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578 done
7579
7580   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7581 fi
7582 fi
7583 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7584 if test -n "$ac_ct_LIPO"; then
7585   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7586 echo "${ECHO_T}$ac_ct_LIPO" >&6
7587 else
7588   echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590 fi
7591
7592   LIPO=$ac_ct_LIPO
7593 else
7594   LIPO="$ac_cv_prog_LIPO"
7595 fi
7596
7597     if test -n "$ac_tool_prefix"; then
7598   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}otool; ac_word=$2
7600 echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602 if test "${ac_cv_prog_OTOOL+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   if test -n "$OTOOL"; then
7606   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621
7622 fi
7623 fi
7624 OTOOL=$ac_cv_prog_OTOOL
7625 if test -n "$OTOOL"; then
7626   echo "$as_me:$LINENO: result: $OTOOL" >&5
7627 echo "${ECHO_T}$OTOOL" >&6
7628 else
7629   echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6
7631 fi
7632
7633 fi
7634 if test -z "$ac_cv_prog_OTOOL"; then
7635   ac_ct_OTOOL=$OTOOL
7636   # Extract the first word of "otool", so it can be a program name with args.
7637 set dummy otool; ac_word=$2
7638 echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7640 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   if test -n "$ac_ct_OTOOL"; then
7644   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653     ac_cv_prog_ac_ct_OTOOL="otool"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659
7660   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7661 fi
7662 fi
7663 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7664 if test -n "$ac_ct_OTOOL"; then
7665   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7666 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7667 else
7668   echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 fi
7671
7672   OTOOL=$ac_ct_OTOOL
7673 else
7674   OTOOL="$ac_cv_prog_OTOOL"
7675 fi
7676
7677     if test -n "$ac_tool_prefix"; then
7678   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   if test -n "$OTOOL64"; then
7686   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701
7702 fi
7703 fi
7704 OTOOL64=$ac_cv_prog_OTOOL64
7705 if test -n "$OTOOL64"; then
7706   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7707 echo "${ECHO_T}$OTOOL64" >&6
7708 else
7709   echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7711 fi
7712
7713 fi
7714 if test -z "$ac_cv_prog_OTOOL64"; then
7715   ac_ct_OTOOL64=$OTOOL64
7716   # Extract the first word of "otool64", so it can be a program name with args.
7717 set dummy otool64; ac_word=$2
7718 echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7720 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   if test -n "$ac_ct_OTOOL64"; then
7724   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731   for ac_exec_ext in '' $ac_executable_extensions; do
7732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733     ac_cv_prog_ac_ct_OTOOL64="otool64"
7734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738 done
7739
7740   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7741 fi
7742 fi
7743 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7744 if test -n "$ac_ct_OTOOL64"; then
7745   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7746 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7747 else
7748   echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7750 fi
7751
7752   OTOOL64=$ac_ct_OTOOL64
7753 else
7754   OTOOL64="$ac_cv_prog_OTOOL64"
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7784 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7785 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   lt_cv_apple_cc_single_mod=no
7789       if test -z "${LT_MULTI_MODULE}"; then
7790         # By default we will add the -single_module flag. You can override
7791         # by either setting the environment variable LT_MULTI_MODULE
7792         # non-empty at configure time, or by adding -multi_module to the
7793         # link flags.
7794         rm -rf libconftest.dylib*
7795         echo "int foo(void){return 1;}" > conftest.c
7796         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7797 -dynamiclib -Wl,-single_module conftest.c" >&5
7798         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7800         _lt_result=$?
7801         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7802           lt_cv_apple_cc_single_mod=yes
7803         else
7804           cat conftest.err >&5
7805         fi
7806         rm -rf libconftest.dylib*
7807         rm -f conftest.*
7808       fi
7809 fi
7810 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7811 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7812     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7813 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7814 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   lt_cv_ld_exported_symbols_list=no
7818       save_LDFLAGS=$LDFLAGS
7819       echo "_main" > conftest.sym
7820       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7821       if test x$gcc_no_link = xyes; then
7822   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7824    { (exit 1); exit 1; }; }
7825 fi
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 int
7834 main ()
7835 {
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7843   (eval $ac_link) 2>conftest.er1
7844   ac_status=$?
7845   grep -v '^ *+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } &&
7850          { ac_try='test -z "$ac_c_werror_flag"
7851                          || test ! -s conftest.err'
7852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853   (eval $ac_try) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); }; } &&
7857          { ac_try='test -s conftest$ac_exeext'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   lt_cv_ld_exported_symbols_list=yes
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 lt_cv_ld_exported_symbols_list=no
7869 fi
7870 rm -f conftest.err conftest.$ac_objext \
7871       conftest$ac_exeext conftest.$ac_ext
7872         LDFLAGS="$save_LDFLAGS"
7873
7874 fi
7875 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7876 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7877     case $host_os in
7878     rhapsody* | darwin1.[012])
7879       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7880     darwin1.*)
7881       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7882     darwin*) # darwin 5.x on
7883       # if running on 10.5 or later, the deployment target defaults
7884       # to the OS version, if on x86, and 10.4, the deployment
7885       # target defaults to 10.4. Don't you love it?
7886       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7887         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7888           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7889         10.[012]*)
7890           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7891         10.*)
7892           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7893       esac
7894     ;;
7895   esac
7896     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7897       _lt_dar_single_mod='$single_module'
7898     fi
7899     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7900       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7901     else
7902       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7903     fi
7904     if test "$DSYMUTIL" != ":"; then
7905       _lt_dsymutil='~$DSYMUTIL $lib || :'
7906     else
7907       _lt_dsymutil=
7908     fi
7909     ;;
7910   esac
7911
7912 ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7918 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7919 # On Suns, sometimes $CPP names a directory.
7920 if test -n "$CPP" && test -d "$CPP"; then
7921   CPP=
7922 fi
7923 if test -z "$CPP"; then
7924   if test "${ac_cv_prog_CPP+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927       # Double quotes because CPP needs to be expanded
7928     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7929     do
7930       ac_preproc_ok=false
7931 for ac_c_preproc_warn_flag in '' yes
7932 do
7933   # Use a header file that comes with gcc, so configuring glibc
7934   # with a fresh cross-compiler works.
7935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7936   # <limits.h> exists even on freestanding compilers.
7937   # On the NeXT, cc -E runs the code through the compiler's parser,
7938   # not just through cpp. "Syntax error" is here to catch this case.
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 #ifdef __STDC__
7946 # include <limits.h>
7947 #else
7948 # include <assert.h>
7949 #endif
7950                      Syntax error
7951 _ACEOF
7952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } >/dev/null; then
7960   if test -s conftest.err; then
7961     ac_cpp_err=$ac_c_preproc_warn_flag
7962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7963   else
7964     ac_cpp_err=
7965   fi
7966 else
7967   ac_cpp_err=yes
7968 fi
7969 if test -z "$ac_cpp_err"; then
7970   :
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975   # Broken: fails on valid input.
7976 continue
7977 fi
7978 rm -f conftest.err conftest.$ac_ext
7979
7980   # OK, works on sane cases.  Now check whether non-existent headers
7981   # can be detected and how.
7982   cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 #include <ac_nonexistent.h>
7989 _ACEOF
7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } >/dev/null; then
7998   if test -s conftest.err; then
7999     ac_cpp_err=$ac_c_preproc_warn_flag
8000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8001   else
8002     ac_cpp_err=
8003   fi
8004 else
8005   ac_cpp_err=yes
8006 fi
8007 if test -z "$ac_cpp_err"; then
8008   # Broken: success on invalid input.
8009 continue
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014   # Passes both tests.
8015 ac_preproc_ok=:
8016 break
8017 fi
8018 rm -f conftest.err conftest.$ac_ext
8019
8020 done
8021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022 rm -f conftest.err conftest.$ac_ext
8023 if $ac_preproc_ok; then
8024   break
8025 fi
8026
8027     done
8028     ac_cv_prog_CPP=$CPP
8029
8030 fi
8031   CPP=$ac_cv_prog_CPP
8032 else
8033   ac_cv_prog_CPP=$CPP
8034 fi
8035 echo "$as_me:$LINENO: result: $CPP" >&5
8036 echo "${ECHO_T}$CPP" >&6
8037 ac_preproc_ok=false
8038 for ac_c_preproc_warn_flag in '' yes
8039 do
8040   # Use a header file that comes with gcc, so configuring glibc
8041   # with a fresh cross-compiler works.
8042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043   # <limits.h> exists even on freestanding compilers.
8044   # On the NeXT, cc -E runs the code through the compiler's parser,
8045   # not just through cpp. "Syntax error" is here to catch this case.
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 #ifdef __STDC__
8053 # include <limits.h>
8054 #else
8055 # include <assert.h>
8056 #endif
8057                      Syntax error
8058 _ACEOF
8059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8061   ac_status=$?
8062   grep -v '^ *+' conftest.er1 >conftest.err
8063   rm -f conftest.er1
8064   cat conftest.err >&5
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } >/dev/null; then
8067   if test -s conftest.err; then
8068     ac_cpp_err=$ac_c_preproc_warn_flag
8069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8070   else
8071     ac_cpp_err=
8072   fi
8073 else
8074   ac_cpp_err=yes
8075 fi
8076 if test -z "$ac_cpp_err"; then
8077   :
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082   # Broken: fails on valid input.
8083 continue
8084 fi
8085 rm -f conftest.err conftest.$ac_ext
8086
8087   # OK, works on sane cases.  Now check whether non-existent headers
8088   # can be detected and how.
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 #include <ac_nonexistent.h>
8096 _ACEOF
8097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099   ac_status=$?
8100   grep -v '^ *+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } >/dev/null; then
8105   if test -s conftest.err; then
8106     ac_cpp_err=$ac_c_preproc_warn_flag
8107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8108   else
8109     ac_cpp_err=
8110   fi
8111 else
8112   ac_cpp_err=yes
8113 fi
8114 if test -z "$ac_cpp_err"; then
8115   # Broken: success on invalid input.
8116 continue
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121   # Passes both tests.
8122 ac_preproc_ok=:
8123 break
8124 fi
8125 rm -f conftest.err conftest.$ac_ext
8126
8127 done
8128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8129 rm -f conftest.err conftest.$ac_ext
8130 if $ac_preproc_ok; then
8131   :
8132 else
8133   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8134 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8136 See \`config.log' for more details." >&5
8137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8138 See \`config.log' for more details." >&2;}
8139    { (exit 1); exit 1; }; }; }
8140 fi
8141
8142 ac_ext=c
8143 ac_cpp='$CPP $CPPFLAGS'
8144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8147
8148
8149 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8151 if test "${ac_cv_header_stdc+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160 #include <stdlib.h>
8161 #include <stdarg.h>
8162 #include <string.h>
8163 #include <float.h>
8164
8165 int
8166 main ()
8167 {
8168
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175   (eval $ac_compile) 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } &&
8182          { ac_try='test -z "$ac_c_werror_flag"
8183                          || test ! -s conftest.err'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; } &&
8189          { ac_try='test -s conftest.$ac_objext'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; }; then
8195   ac_cv_header_stdc=yes
8196 else
8197   echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_cv_header_stdc=no
8201 fi
8202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203
8204 if test $ac_cv_header_stdc = yes; then
8205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #include <string.h>
8213
8214 _ACEOF
8215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8216   $EGREP "memchr" >/dev/null 2>&1; then
8217   :
8218 else
8219   ac_cv_header_stdc=no
8220 fi
8221 rm -f conftest*
8222
8223 fi
8224
8225 if test $ac_cv_header_stdc = yes; then
8226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8227   cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 #include <stdlib.h>
8234
8235 _ACEOF
8236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237   $EGREP "free" >/dev/null 2>&1; then
8238   :
8239 else
8240   ac_cv_header_stdc=no
8241 fi
8242 rm -f conftest*
8243
8244 fi
8245
8246 if test $ac_cv_header_stdc = yes; then
8247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248   if test "$cross_compiling" = yes; then
8249   :
8250 else
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 #include <ctype.h>
8258 #if ((' ' & 0x0FF) == 0x020)
8259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8261 #else
8262 # define ISLOWER(c) \
8263                    (('a' <= (c) && (c) <= 'i') \
8264                      || ('j' <= (c) && (c) <= 'r') \
8265                      || ('s' <= (c) && (c) <= 'z'))
8266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8267 #endif
8268
8269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8270 int
8271 main ()
8272 {
8273   int i;
8274   for (i = 0; i < 256; i++)
8275     if (XOR (islower (i), ISLOWER (i))
8276         || toupper (i) != TOUPPER (i))
8277       exit(2);
8278   exit (0);
8279 }
8280 _ACEOF
8281 rm -f conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283   (eval $ac_link) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288   (eval $ac_try) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; }; then
8292   :
8293 else
8294   echo "$as_me: program exited with status $ac_status" >&5
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ( exit $ac_status )
8299 ac_cv_header_stdc=no
8300 fi
8301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 fi
8304 fi
8305 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8306 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8307 if test $ac_cv_header_stdc = yes; then
8308
8309 cat >>confdefs.h <<\_ACEOF
8310 #define STDC_HEADERS 1
8311 _ACEOF
8312
8313 fi
8314
8315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8326                   inttypes.h stdint.h unistd.h
8327 do
8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 $ac_includes_default
8341
8342 #include <$ac_header>
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346   (eval $ac_compile) 2>conftest.er1
8347   ac_status=$?
8348   grep -v '^ *+' conftest.er1 >conftest.err
8349   rm -f conftest.er1
8350   cat conftest.err >&5
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -z "$ac_c_werror_flag"
8354                          || test ! -s conftest.err'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; } &&
8360          { ac_try='test -s conftest.$ac_objext'
8361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362   (eval $ac_try) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   eval "$as_ac_Header=yes"
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 eval "$as_ac_Header=no"
8372 fi
8373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8378   cat >>confdefs.h <<_ACEOF
8379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8380 _ACEOF
8381
8382 fi
8383
8384 done
8385
8386
8387
8388 for ac_header in dlfcn.h
8389 do
8390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8391 echo "$as_me:$LINENO: checking for $ac_header" >&5
8392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402 $ac_includes_default
8403
8404 #include <$ac_header>
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408   (eval $ac_compile) 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -z "$ac_c_werror_flag"
8416                          || test ! -s conftest.err'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest.$ac_objext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   eval "$as_ac_Header=yes"
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 eval "$as_ac_Header=no"
8434 fi
8435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8440   cat >>confdefs.h <<_ACEOF
8441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8442 _ACEOF
8443
8444 fi
8445
8446 done
8447
8448
8449
8450 ac_ext=cc
8451 ac_cpp='$CXXCPP $CPPFLAGS'
8452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8455 if test -n "$ac_tool_prefix"; then
8456   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8457   do
8458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8460 echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8462 if test "${ac_cv_prog_CXX+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   if test -n "$CXX"; then
8466   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471   IFS=$as_save_IFS
8472   test -z "$as_dir" && as_dir=.
8473   for ac_exec_ext in '' $ac_executable_extensions; do
8474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8477     break 2
8478   fi
8479 done
8480 done
8481
8482 fi
8483 fi
8484 CXX=$ac_cv_prog_CXX
8485 if test -n "$CXX"; then
8486   echo "$as_me:$LINENO: result: $CXX" >&5
8487 echo "${ECHO_T}$CXX" >&6
8488 else
8489   echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6
8491 fi
8492
8493     test -n "$CXX" && break
8494   done
8495 fi
8496 if test -z "$CXX"; then
8497   ac_ct_CXX=$CXX
8498   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8499 do
8500   # Extract the first word of "$ac_prog", so it can be a program name with args.
8501 set dummy $ac_prog; ac_word=$2
8502 echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   if test -n "$ac_ct_CXX"; then
8508   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515   for ac_exec_ext in '' $ac_executable_extensions; do
8516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517     ac_cv_prog_ac_ct_CXX="$ac_prog"
8518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522 done
8523
8524 fi
8525 fi
8526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8527 if test -n "$ac_ct_CXX"; then
8528   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8529 echo "${ECHO_T}$ac_ct_CXX" >&6
8530 else
8531   echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6
8533 fi
8534
8535   test -n "$ac_ct_CXX" && break
8536 done
8537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8538
8539   CXX=$ac_ct_CXX
8540 fi
8541
8542
8543 # Provide some information about the compiler.
8544 echo "$as_me:$LINENO:" \
8545      "checking for C++ compiler version" >&5
8546 ac_compiler=`set X $ac_compile; echo $2`
8547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8548   (eval $ac_compiler --version </dev/null >&5) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }
8552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8553   (eval $ac_compiler -v </dev/null >&5) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }
8557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8558   (eval $ac_compiler -V </dev/null >&5) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }
8562
8563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574
8575 int
8576 main ()
8577 {
8578 #ifndef __GNUC__
8579        choke me
8580 #endif
8581
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588   (eval $ac_compile) 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } &&
8595          { ac_try='test -z "$ac_cxx_werror_flag"
8596                          || test ! -s conftest.err'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest.$ac_objext'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; }; then
8608   ac_compiler_gnu=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_compiler_gnu=no
8614 fi
8615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8617
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8621 GXX=`test $ac_compiler_gnu = yes && echo yes`
8622 ac_test_CXXFLAGS=${CXXFLAGS+set}
8623 ac_save_CXXFLAGS=$CXXFLAGS
8624 CXXFLAGS="-g"
8625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8627 if test "${ac_cv_prog_cxx_g+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630   cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647   (eval $ac_compile) 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -z "$ac_cxx_werror_flag"
8655                          || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest.$ac_objext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_prog_cxx_g=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_prog_cxx_g=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8678 if test "$ac_test_CXXFLAGS" = set; then
8679   CXXFLAGS=$ac_save_CXXFLAGS
8680 elif test $ac_cv_prog_cxx_g = yes; then
8681   if test "$GXX" = yes; then
8682     CXXFLAGS="-g -O2"
8683   else
8684     CXXFLAGS="-g"
8685   fi
8686 else
8687   if test "$GXX" = yes; then
8688     CXXFLAGS="-O2"
8689   else
8690     CXXFLAGS=
8691   fi
8692 fi
8693 for ac_declaration in \
8694    '' \
8695    'extern "C" void std::exit (int) throw (); using std::exit;' \
8696    'extern "C" void std::exit (int); using std::exit;' \
8697    'extern "C" void exit (int) throw ();' \
8698    'extern "C" void exit (int);' \
8699    'void exit (int);'
8700 do
8701   cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h.  */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h.  */
8707 $ac_declaration
8708 #include <stdlib.h>
8709 int
8710 main ()
8711 {
8712 exit (42);
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719   (eval $ac_compile) 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } &&
8726          { ac_try='test -z "$ac_cxx_werror_flag"
8727                          || test ! -s conftest.err'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; } &&
8733          { ac_try='test -s conftest.$ac_objext'
8734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735   (eval $ac_try) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; }; then
8739   :
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 continue
8745 fi
8746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8747   cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 $ac_declaration
8754 int
8755 main ()
8756 {
8757 exit (42);
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_cxx_werror_flag"
8772                          || test ! -s conftest.err'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; } &&
8778          { ac_try='test -s conftest.$ac_objext'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   break
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 fi
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 done
8792 rm -f conftest*
8793 if test -n "$ac_declaration"; then
8794   echo '#ifdef __cplusplus' >>confdefs.h
8795   echo $ac_declaration      >>confdefs.h
8796   echo '#endif'             >>confdefs.h
8797 fi
8798
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804
8805 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8806     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8807     (test "X$CXX" != "Xg++"))) ; then
8808   ac_ext=cc
8809 ac_cpp='$CXXCPP $CPPFLAGS'
8810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8813 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8814 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8815 if test -z "$CXXCPP"; then
8816   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819       # Double quotes because CXXCPP needs to be expanded
8820     for CXXCPP in "$CXX -E" "/lib/cpp"
8821     do
8822       ac_preproc_ok=false
8823 for ac_cxx_preproc_warn_flag in '' yes
8824 do
8825   # Use a header file that comes with gcc, so configuring glibc
8826   # with a fresh cross-compiler works.
8827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828   # <limits.h> exists even on freestanding compilers.
8829   # On the NeXT, cc -E runs the code through the compiler's parser,
8830   # not just through cpp. "Syntax error" is here to catch this case.
8831   cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 #ifdef __STDC__
8838 # include <limits.h>
8839 #else
8840 # include <assert.h>
8841 #endif
8842                      Syntax error
8843 _ACEOF
8844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } >/dev/null; then
8852   if test -s conftest.err; then
8853     ac_cpp_err=$ac_cxx_preproc_warn_flag
8854     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8855   else
8856     ac_cpp_err=
8857   fi
8858 else
8859   ac_cpp_err=yes
8860 fi
8861 if test -z "$ac_cpp_err"; then
8862   :
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867   # Broken: fails on valid input.
8868 continue
8869 fi
8870 rm -f conftest.err conftest.$ac_ext
8871
8872   # OK, works on sane cases.  Now check whether non-existent headers
8873   # can be detected and how.
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 #include <ac_nonexistent.h>
8881 _ACEOF
8882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } >/dev/null; then
8890   if test -s conftest.err; then
8891     ac_cpp_err=$ac_cxx_preproc_warn_flag
8892     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8893   else
8894     ac_cpp_err=
8895   fi
8896 else
8897   ac_cpp_err=yes
8898 fi
8899 if test -z "$ac_cpp_err"; then
8900   # Broken: success on invalid input.
8901 continue
8902 else
8903   echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906   # Passes both tests.
8907 ac_preproc_ok=:
8908 break
8909 fi
8910 rm -f conftest.err conftest.$ac_ext
8911
8912 done
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8916   break
8917 fi
8918
8919     done
8920     ac_cv_prog_CXXCPP=$CXXCPP
8921
8922 fi
8923   CXXCPP=$ac_cv_prog_CXXCPP
8924 else
8925   ac_cv_prog_CXXCPP=$CXXCPP
8926 fi
8927 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8928 echo "${ECHO_T}$CXXCPP" >&6
8929 ac_preproc_ok=false
8930 for ac_cxx_preproc_warn_flag in '' yes
8931 do
8932   # Use a header file that comes with gcc, so configuring glibc
8933   # with a fresh cross-compiler works.
8934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8935   # <limits.h> exists even on freestanding compilers.
8936   # On the NeXT, cc -E runs the code through the compiler's parser,
8937   # not just through cpp. "Syntax error" is here to catch this case.
8938   cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8949                      Syntax error
8950 _ACEOF
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953   ac_status=$?
8954   grep -v '^ *+' conftest.er1 >conftest.err
8955   rm -f conftest.er1
8956   cat conftest.err >&5
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } >/dev/null; then
8959   if test -s conftest.err; then
8960     ac_cpp_err=$ac_cxx_preproc_warn_flag
8961     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8962   else
8963     ac_cpp_err=
8964   fi
8965 else
8966   ac_cpp_err=yes
8967 fi
8968 if test -z "$ac_cpp_err"; then
8969   :
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974   # Broken: fails on valid input.
8975 continue
8976 fi
8977 rm -f conftest.err conftest.$ac_ext
8978
8979   # OK, works on sane cases.  Now check whether non-existent headers
8980   # can be detected and how.
8981   cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987 #include <ac_nonexistent.h>
8988 _ACEOF
8989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } >/dev/null; then
8997   if test -s conftest.err; then
8998     ac_cpp_err=$ac_cxx_preproc_warn_flag
8999     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9000   else
9001     ac_cpp_err=
9002   fi
9003 else
9004   ac_cpp_err=yes
9005 fi
9006 if test -z "$ac_cpp_err"; then
9007   # Broken: success on invalid input.
9008 continue
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013   # Passes both tests.
9014 ac_preproc_ok=:
9015 break
9016 fi
9017 rm -f conftest.err conftest.$ac_ext
9018
9019 done
9020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9021 rm -f conftest.err conftest.$ac_ext
9022 if $ac_preproc_ok; then
9023   :
9024 else
9025   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9026 echo "$as_me: error: in \`$ac_pwd':" >&2;}
9027 _lt_caught_CXX_error=yes; }
9028 fi
9029
9030 ac_ext=c
9031 ac_cpp='$CPP $CPPFLAGS'
9032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035
9036 else
9037   _lt_caught_CXX_error=yes
9038 fi
9039
9040
9041
9042
9043
9044 # Set options
9045
9046
9047
9048
9049   enable_win32_dll=no
9050
9051
9052             # Check whether --enable-shared or --disable-shared was given.
9053 if test "${enable_shared+set}" = set; then
9054   enableval="$enable_shared"
9055   p=${PACKAGE-default}
9056     case $enableval in
9057     yes) enable_shared=yes ;;
9058     no) enable_shared=no ;;
9059     *)
9060       enable_shared=no
9061       # Look at the argument we got.  We use all the common list separators.
9062       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9063       for pkg in $enableval; do
9064         IFS="$lt_save_ifs"
9065         if test "X$pkg" = "X$p"; then
9066           enable_shared=yes
9067         fi
9068       done
9069       IFS="$lt_save_ifs"
9070       ;;
9071     esac
9072 else
9073   enable_shared=yes
9074 fi;
9075
9076
9077
9078
9079
9080
9081
9082
9083   # Check whether --enable-static or --disable-static was given.
9084 if test "${enable_static+set}" = set; then
9085   enableval="$enable_static"
9086   p=${PACKAGE-default}
9087     case $enableval in
9088     yes) enable_static=yes ;;
9089     no) enable_static=no ;;
9090     *)
9091      enable_static=no
9092       # Look at the argument we got.  We use all the common list separators.
9093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9094       for pkg in $enableval; do
9095         IFS="$lt_save_ifs"
9096         if test "X$pkg" = "X$p"; then
9097           enable_static=yes
9098         fi
9099       done
9100       IFS="$lt_save_ifs"
9101       ;;
9102     esac
9103 else
9104   enable_static=yes
9105 fi;
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115 # Check whether --with-pic or --without-pic was given.
9116 if test "${with_pic+set}" = set; then
9117   withval="$with_pic"
9118   pic_mode="$withval"
9119 else
9120   pic_mode=default
9121 fi;
9122
9123 test -z "$pic_mode" && pic_mode=default
9124
9125
9126
9127
9128
9129
9130
9131   # Check whether --enable-fast-install or --disable-fast-install was given.
9132 if test "${enable_fast_install+set}" = set; then
9133   enableval="$enable_fast_install"
9134   p=${PACKAGE-default}
9135     case $enableval in
9136     yes) enable_fast_install=yes ;;
9137     no) enable_fast_install=no ;;
9138     *)
9139       enable_fast_install=no
9140       # Look at the argument we got.  We use all the common list separators.
9141       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9142       for pkg in $enableval; do
9143         IFS="$lt_save_ifs"
9144         if test "X$pkg" = "X$p"; then
9145           enable_fast_install=yes
9146         fi
9147       done
9148       IFS="$lt_save_ifs"
9149       ;;
9150     esac
9151 else
9152   enable_fast_install=yes
9153 fi;
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 # This can be used to rebuild libtool when needed
9165 LIBTOOL_DEPS="$ltmain"
9166
9167 # Always use our own libtool.
9168 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194 test -z "$LN_S" && LN_S="ln -s"
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209 if test -n "${ZSH_VERSION+set}" ; then
9210    setopt NO_GLOB_SUBST
9211 fi
9212
9213 echo "$as_me:$LINENO: checking for objdir" >&5
9214 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9215 if test "${lt_cv_objdir+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   rm -f .libs 2>/dev/null
9219 mkdir .libs 2>/dev/null
9220 if test -d .libs; then
9221   lt_cv_objdir=.libs
9222 else
9223   # MS-DOS does not allow filenames that begin with a dot.
9224   lt_cv_objdir=_libs
9225 fi
9226 rmdir .libs 2>/dev/null
9227 fi
9228 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9229 echo "${ECHO_T}$lt_cv_objdir" >&6
9230 objdir=$lt_cv_objdir
9231
9232
9233
9234
9235
9236 cat >>confdefs.h <<_ACEOF
9237 #define LT_OBJDIR "$lt_cv_objdir/"
9238 _ACEOF
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256 case $host_os in
9257 aix3*)
9258   # AIX sometimes has problems with the GCC collect2 program.  For some
9259   # reason, if we set the COLLECT_NAMES environment variable, the problems
9260   # vanish in a puff of smoke.
9261   if test "X${COLLECT_NAMES+set}" != Xset; then
9262     COLLECT_NAMES=
9263     export COLLECT_NAMES
9264   fi
9265   ;;
9266 esac
9267
9268 # Sed substitution that helps us do robust quoting.  It backslashifies
9269 # metacharacters that are still active within double-quoted strings.
9270 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9271
9272 # Same as above, but do not quote variable references.
9273 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9274
9275 # Sed substitution to delay expansion of an escaped shell variable in a
9276 # double_quote_subst'ed string.
9277 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9278
9279 # Sed substitution to delay expansion of an escaped single quote.
9280 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9281
9282 # Sed substitution to avoid accidental globbing in evaled expressions
9283 no_glob_subst='s/\*/\\\*/g'
9284
9285 # Global variables:
9286 ofile=libtool
9287 can_build_shared=yes
9288
9289 # All known linkers require a `.a' archive for static linking (except MSVC,
9290 # which needs '.lib').
9291 libext=a
9292
9293 with_gnu_ld="$lt_cv_prog_gnu_ld"
9294
9295 old_CC="$CC"
9296 old_CFLAGS="$CFLAGS"
9297
9298 # Set sane defaults for various variables
9299 test -z "$CC" && CC=cc
9300 test -z "$LTCC" && LTCC=$CC
9301 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9302 test -z "$LD" && LD=ld
9303 test -z "$ac_objext" && ac_objext=o
9304
9305 for cc_temp in $compiler""; do
9306   case $cc_temp in
9307     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9308     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9309     \-*) ;;
9310     *) break;;
9311   esac
9312 done
9313 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9314
9315
9316 # Only perform the check for file, if the check method requires it
9317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9318 case $deplibs_check_method in
9319 file_magic*)
9320   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9321     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9322 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326   case $MAGIC_CMD in
9327 [\\/*] |  ?:[\\/]*)
9328   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9329   ;;
9330 *)
9331   lt_save_MAGIC_CMD="$MAGIC_CMD"
9332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9333   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9334   for ac_dir in $ac_dummy; do
9335     IFS="$lt_save_ifs"
9336     test -z "$ac_dir" && ac_dir=.
9337     if test -f $ac_dir/${ac_tool_prefix}file; then
9338       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9339       if test -n "$file_magic_test_file"; then
9340         case $deplibs_check_method in
9341         "file_magic "*)
9342           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9343           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9344           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9345             $EGREP "$file_magic_regex" > /dev/null; then
9346             :
9347           else
9348             cat <<_LT_EOF 1>&2
9349
9350 *** Warning: the command libtool uses to detect shared libraries,
9351 *** $file_magic_cmd, produces output that libtool cannot recognize.
9352 *** The result is that libtool may fail to recognize shared libraries
9353 *** as such.  This will affect the creation of libtool libraries that
9354 *** depend on shared libraries, but programs linked with such libtool
9355 *** libraries will work regardless of this problem.  Nevertheless, you
9356 *** may want to report the problem to your system manager and/or to
9357 *** bug-libtool@gnu.org
9358
9359 _LT_EOF
9360           fi ;;
9361         esac
9362       fi
9363       break
9364     fi
9365   done
9366   IFS="$lt_save_ifs"
9367   MAGIC_CMD="$lt_save_MAGIC_CMD"
9368   ;;
9369 esac
9370 fi
9371
9372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9373 if test -n "$MAGIC_CMD"; then
9374   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9375 echo "${ECHO_T}$MAGIC_CMD" >&6
9376 else
9377   echo "$as_me:$LINENO: result: no" >&5
9378 echo "${ECHO_T}no" >&6
9379 fi
9380
9381
9382
9383
9384
9385 if test -z "$lt_cv_path_MAGIC_CMD"; then
9386   if test -n "$ac_tool_prefix"; then
9387     echo "$as_me:$LINENO: checking for file" >&5
9388 echo $ECHO_N "checking for file... $ECHO_C" >&6
9389 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   case $MAGIC_CMD in
9393 [\\/*] |  ?:[\\/]*)
9394   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9395   ;;
9396 *)
9397   lt_save_MAGIC_CMD="$MAGIC_CMD"
9398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9399   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9400   for ac_dir in $ac_dummy; do
9401     IFS="$lt_save_ifs"
9402     test -z "$ac_dir" && ac_dir=.
9403     if test -f $ac_dir/file; then
9404       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9405       if test -n "$file_magic_test_file"; then
9406         case $deplibs_check_method in
9407         "file_magic "*)
9408           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9409           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9410           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9411             $EGREP "$file_magic_regex" > /dev/null; then
9412             :
9413           else
9414             cat <<_LT_EOF 1>&2
9415
9416 *** Warning: the command libtool uses to detect shared libraries,
9417 *** $file_magic_cmd, produces output that libtool cannot recognize.
9418 *** The result is that libtool may fail to recognize shared libraries
9419 *** as such.  This will affect the creation of libtool libraries that
9420 *** depend on shared libraries, but programs linked with such libtool
9421 *** libraries will work regardless of this problem.  Nevertheless, you
9422 *** may want to report the problem to your system manager and/or to
9423 *** bug-libtool@gnu.org
9424
9425 _LT_EOF
9426           fi ;;
9427         esac
9428       fi
9429       break
9430     fi
9431   done
9432   IFS="$lt_save_ifs"
9433   MAGIC_CMD="$lt_save_MAGIC_CMD"
9434   ;;
9435 esac
9436 fi
9437
9438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9439 if test -n "$MAGIC_CMD"; then
9440   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9441 echo "${ECHO_T}$MAGIC_CMD" >&6
9442 else
9443   echo "$as_me:$LINENO: result: no" >&5
9444 echo "${ECHO_T}no" >&6
9445 fi
9446
9447
9448   else
9449     MAGIC_CMD=:
9450   fi
9451 fi
9452
9453   fi
9454   ;;
9455 esac
9456
9457 # Use C for the default configuration in the libtool script
9458
9459 lt_save_CC="$CC"
9460 ac_ext=c
9461 ac_cpp='$CPP $CPPFLAGS'
9462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9465
9466
9467 # Source file extension for C test sources.
9468 ac_ext=c
9469
9470 # Object file extension for compiled C test sources.
9471 objext=o
9472 objext=$objext
9473
9474 # Code to be used in simple compile tests
9475 lt_simple_compile_test_code="int some_variable = 0;"
9476
9477 # Code to be used in simple link tests
9478 lt_simple_link_test_code='int main(){return(0);}'
9479
9480
9481
9482
9483
9484
9485
9486 # If no C compiler was specified, use CC.
9487 LTCC=${LTCC-"$CC"}
9488
9489 # If no C compiler flags were specified, use CFLAGS.
9490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9491
9492 # Allow CC to be a program name with arguments.
9493 compiler=$CC
9494
9495 # Save the default compiler, since it gets overwritten when the other
9496 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9497 compiler_DEFAULT=$CC
9498
9499 # save warnings/boilerplate of simple test code
9500 ac_outfile=conftest.$ac_objext
9501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9503 _lt_compiler_boilerplate=`cat conftest.err`
9504 $RM conftest*
9505
9506 ac_outfile=conftest.$ac_objext
9507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9509 _lt_linker_boilerplate=`cat conftest.err`
9510 $RM -r conftest*
9511
9512
9513 ## CAVEAT EMPTOR:
9514 ## There is no encapsulation within the following macros, do not change
9515 ## the running order or otherwise move them around unless you know exactly
9516 ## what you are doing...
9517 if test -n "$compiler"; then
9518
9519 lt_prog_compiler_no_builtin_flag=
9520
9521 if test "$GCC" = yes; then
9522   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9523
9524   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9525 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   lt_cv_prog_compiler_rtti_exceptions=no
9530    ac_outfile=conftest.$ac_objext
9531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9532    lt_compiler_flag="-fno-rtti -fno-exceptions"
9533    # Insert the option either (1) after the last *FLAGS variable, or
9534    # (2) before a word containing "conftest.", or (3) at the end.
9535    # Note that $ac_compile itself does not contain backslashes and begins
9536    # with a dollar sign (not a hyphen), so the echo should work correctly.
9537    # The option is referenced via a variable to avoid confusing sed.
9538    lt_compile=`echo "$ac_compile" | $SED \
9539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9541    -e 's:$: $lt_compiler_flag:'`
9542    (eval echo "\"\$as_me:9542: $lt_compile\"" >&5)
9543    (eval "$lt_compile" 2>conftest.err)
9544    ac_status=$?
9545    cat conftest.err >&5
9546    echo "$as_me:9546: \$? = $ac_status" >&5
9547    if (exit $ac_status) && test -s "$ac_outfile"; then
9548      # The compiler can only warn and ignore the option if not recognized
9549      # So say no if there are warnings other than the usual output.
9550      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9553        lt_cv_prog_compiler_rtti_exceptions=yes
9554      fi
9555    fi
9556    $RM conftest*
9557
9558 fi
9559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9561
9562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9563     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9564 else
9565     :
9566 fi
9567
9568 fi
9569
9570
9571
9572
9573
9574
9575   lt_prog_compiler_wl=
9576 lt_prog_compiler_pic=
9577 lt_prog_compiler_static=
9578
9579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9581
9582   if test "$GCC" = yes; then
9583     lt_prog_compiler_wl='-Wl,'
9584     lt_prog_compiler_static='-static'
9585
9586     case $host_os in
9587       aix*)
9588       # All AIX code is PIC.
9589       if test "$host_cpu" = ia64; then
9590         # AIX 5 now supports IA64 processor
9591         lt_prog_compiler_static='-Bstatic'
9592       fi
9593       ;;
9594
9595     amigaos*)
9596       case $host_cpu in
9597       powerpc)
9598             # see comment about AmigaOS4 .so support
9599             lt_prog_compiler_pic='-fPIC'
9600         ;;
9601       m68k)
9602             # FIXME: we need at least 68020 code to build shared libraries, but
9603             # adding the `-m68020' flag to GCC prevents building anything better,
9604             # like `-m68040'.
9605             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9606         ;;
9607       esac
9608       ;;
9609
9610     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9611       # PIC is the default for these OSes.
9612       ;;
9613
9614     mingw* | cygwin* | pw32* | os2* | cegcc*)
9615       # This hack is so that the source file can tell whether it is being
9616       # built for inclusion in a dll (and should export symbols for example).
9617       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9618       # (--disable-auto-import) libraries
9619       lt_prog_compiler_pic='-DDLL_EXPORT'
9620       ;;
9621
9622     darwin* | rhapsody*)
9623       # PIC is the default on this platform
9624       # Common symbols not allowed in MH_DYLIB files
9625       lt_prog_compiler_pic='-fno-common'
9626       ;;
9627
9628     hpux*)
9629       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9630       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9631       # sets the default TLS model and affects inlining.
9632       case $host_cpu in
9633       hppa*64*)
9634         # +Z the default
9635         ;;
9636       *)
9637         lt_prog_compiler_pic='-fPIC'
9638         ;;
9639       esac
9640       ;;
9641
9642     interix[3-9]*)
9643       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9644       # Instead, we relocate shared libraries at runtime.
9645       ;;
9646
9647     msdosdjgpp*)
9648       # Just because we use GCC doesn't mean we suddenly get shared libraries
9649       # on systems that don't support them.
9650       lt_prog_compiler_can_build_shared=no
9651       enable_shared=no
9652       ;;
9653
9654     *nto* | *qnx*)
9655       # QNX uses GNU C++, but need to define -shared option too, otherwise
9656       # it will coredump.
9657       lt_prog_compiler_pic='-fPIC -shared'
9658       ;;
9659
9660     sysv4*MP*)
9661       if test -d /usr/nec; then
9662         lt_prog_compiler_pic=-Kconform_pic
9663       fi
9664       ;;
9665
9666     *)
9667       lt_prog_compiler_pic='-fPIC'
9668       ;;
9669     esac
9670   else
9671     # PORTME Check for flag to pass linker flags through the system compiler.
9672     case $host_os in
9673     aix*)
9674       lt_prog_compiler_wl='-Wl,'
9675       if test "$host_cpu" = ia64; then
9676         # AIX 5 now supports IA64 processor
9677         lt_prog_compiler_static='-Bstatic'
9678       else
9679         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9680       fi
9681       ;;
9682
9683     mingw* | cygwin* | pw32* | os2* | cegcc*)
9684       # This hack is so that the source file can tell whether it is being
9685       # built for inclusion in a dll (and should export symbols for example).
9686       lt_prog_compiler_pic='-DDLL_EXPORT'
9687       ;;
9688
9689     hpux9* | hpux10* | hpux11*)
9690       lt_prog_compiler_wl='-Wl,'
9691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9692       # not for PA HP-UX.
9693       case $host_cpu in
9694       hppa*64*|ia64*)
9695         # +Z the default
9696         ;;
9697       *)
9698         lt_prog_compiler_pic='+Z'
9699         ;;
9700       esac
9701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9702       lt_prog_compiler_static='${wl}-a ${wl}archive'
9703       ;;
9704
9705     irix5* | irix6* | nonstopux*)
9706       lt_prog_compiler_wl='-Wl,'
9707       # PIC (with -KPIC) is the default.
9708       lt_prog_compiler_static='-non_shared'
9709       ;;
9710
9711     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9712       case $cc_basename in
9713       # old Intel for x86_64 which still supported -KPIC.
9714       ecc*)
9715         lt_prog_compiler_wl='-Wl,'
9716         lt_prog_compiler_pic='-KPIC'
9717         lt_prog_compiler_static='-static'
9718         ;;
9719       # icc used to be incompatible with GCC.
9720       # ICC 10 doesn't accept -KPIC any more.
9721       icc* | ifort*)
9722         lt_prog_compiler_wl='-Wl,'
9723         lt_prog_compiler_pic='-fPIC'
9724         lt_prog_compiler_static='-static'
9725         ;;
9726       # Lahey Fortran 8.1.
9727       lf95*)
9728         lt_prog_compiler_wl='-Wl,'
9729         lt_prog_compiler_pic='--shared'
9730         lt_prog_compiler_static='--static'
9731         ;;
9732       pgcc* | pgf77* | pgf90* | pgf95*)
9733         # Portland Group compilers (*not* the Pentium gcc compiler,
9734         # which looks to be a dead project)
9735         lt_prog_compiler_wl='-Wl,'
9736         lt_prog_compiler_pic='-fpic'
9737         lt_prog_compiler_static='-Bstatic'
9738         ;;
9739       ccc*)
9740         lt_prog_compiler_wl='-Wl,'
9741         # All Alpha code is PIC.
9742         lt_prog_compiler_static='-non_shared'
9743         ;;
9744       xl*)
9745         # IBM XL C 8.0/Fortran 10.1 on PPC
9746         lt_prog_compiler_wl='-Wl,'
9747         lt_prog_compiler_pic='-qpic'
9748         lt_prog_compiler_static='-qstaticlink'
9749         ;;
9750       *)
9751         case `$CC -V 2>&1 | sed 5q` in
9752         *Sun\ C*)
9753           # Sun C 5.9
9754           lt_prog_compiler_pic='-KPIC'
9755           lt_prog_compiler_static='-Bstatic'
9756           lt_prog_compiler_wl='-Wl,'
9757           ;;
9758         *Sun\ F*)
9759           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9760           lt_prog_compiler_pic='-KPIC'
9761           lt_prog_compiler_static='-Bstatic'
9762           lt_prog_compiler_wl=''
9763           ;;
9764         esac
9765         ;;
9766       esac
9767       ;;
9768
9769     newsos6)
9770       lt_prog_compiler_pic='-KPIC'
9771       lt_prog_compiler_static='-Bstatic'
9772       ;;
9773
9774     *nto* | *qnx*)
9775       # QNX uses GNU C++, but need to define -shared option too, otherwise
9776       # it will coredump.
9777       lt_prog_compiler_pic='-fPIC -shared'
9778       ;;
9779
9780     osf3* | osf4* | osf5*)
9781       lt_prog_compiler_wl='-Wl,'
9782       # All OSF/1 code is PIC.
9783       lt_prog_compiler_static='-non_shared'
9784       ;;
9785
9786     rdos*)
9787       lt_prog_compiler_static='-non_shared'
9788       ;;
9789
9790     solaris*)
9791       lt_prog_compiler_pic='-KPIC'
9792       lt_prog_compiler_static='-Bstatic'
9793       case $cc_basename in
9794       f77* | f90* | f95*)
9795         lt_prog_compiler_wl='-Qoption ld ';;
9796       *)
9797         lt_prog_compiler_wl='-Wl,';;
9798       esac
9799       ;;
9800
9801     sunos4*)
9802       lt_prog_compiler_wl='-Qoption ld '
9803       lt_prog_compiler_pic='-PIC'
9804       lt_prog_compiler_static='-Bstatic'
9805       ;;
9806
9807     sysv4 | sysv4.2uw2* | sysv4.3*)
9808       lt_prog_compiler_wl='-Wl,'
9809       lt_prog_compiler_pic='-KPIC'
9810       lt_prog_compiler_static='-Bstatic'
9811       ;;
9812
9813     sysv4*MP*)
9814       if test -d /usr/nec ;then
9815         lt_prog_compiler_pic='-Kconform_pic'
9816         lt_prog_compiler_static='-Bstatic'
9817       fi
9818       ;;
9819
9820     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9821       lt_prog_compiler_wl='-Wl,'
9822       lt_prog_compiler_pic='-KPIC'
9823       lt_prog_compiler_static='-Bstatic'
9824       ;;
9825
9826     unicos*)
9827       lt_prog_compiler_wl='-Wl,'
9828       lt_prog_compiler_can_build_shared=no
9829       ;;
9830
9831     uts4*)
9832       lt_prog_compiler_pic='-pic'
9833       lt_prog_compiler_static='-Bstatic'
9834       ;;
9835
9836     *)
9837       lt_prog_compiler_can_build_shared=no
9838       ;;
9839     esac
9840   fi
9841
9842 case $host_os in
9843   # For platforms which do not support PIC, -DPIC is meaningless:
9844   *djgpp*)
9845     lt_prog_compiler_pic=
9846     ;;
9847   *)
9848     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9849     ;;
9850 esac
9851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9852 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9853
9854
9855
9856
9857
9858
9859 #
9860 # Check to make sure the PIC flag actually works.
9861 #
9862 if test -n "$lt_prog_compiler_pic"; then
9863   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9865 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   lt_cv_prog_compiler_pic_works=no
9869    ac_outfile=conftest.$ac_objext
9870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9872    # Insert the option either (1) after the last *FLAGS variable, or
9873    # (2) before a word containing "conftest.", or (3) at the end.
9874    # Note that $ac_compile itself does not contain backslashes and begins
9875    # with a dollar sign (not a hyphen), so the echo should work correctly.
9876    # The option is referenced via a variable to avoid confusing sed.
9877    lt_compile=`echo "$ac_compile" | $SED \
9878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880    -e 's:$: $lt_compiler_flag:'`
9881    (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882    (eval "$lt_compile" 2>conftest.err)
9883    ac_status=$?
9884    cat conftest.err >&5
9885    echo "$as_me:9885: \$? = $ac_status" >&5
9886    if (exit $ac_status) && test -s "$ac_outfile"; then
9887      # The compiler can only warn and ignore the option if not recognized
9888      # So say no if there are warnings other than the usual output.
9889      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9890      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9892        lt_cv_prog_compiler_pic_works=yes
9893      fi
9894    fi
9895    $RM conftest*
9896
9897 fi
9898 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9899 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
9900
9901 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9902     case $lt_prog_compiler_pic in
9903      "" | " "*) ;;
9904      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9905      esac
9906 else
9907     lt_prog_compiler_pic=
9908      lt_prog_compiler_can_build_shared=no
9909 fi
9910
9911 fi
9912
9913
9914
9915
9916
9917
9918 #
9919 # Check to make sure the static flag actually works.
9920 #
9921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9922 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9923 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9924 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   lt_cv_prog_compiler_static_works=no
9928    save_LDFLAGS="$LDFLAGS"
9929    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9930    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9931    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9932      # The linker can only warn and ignore the option if not recognized
9933      # So say no if there are warnings
9934      if test -s conftest.err; then
9935        # Append any errors to the config.log.
9936        cat conftest.err 1>&5
9937        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9938        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9939        if diff conftest.exp conftest.er2 >/dev/null; then
9940          lt_cv_prog_compiler_static_works=yes
9941        fi
9942      else
9943        lt_cv_prog_compiler_static_works=yes
9944      fi
9945    fi
9946    $RM -r conftest*
9947    LDFLAGS="$save_LDFLAGS"
9948
9949 fi
9950 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9951 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
9952
9953 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9954     :
9955 else
9956     lt_prog_compiler_static=
9957 fi
9958
9959
9960
9961
9962
9963
9964
9965   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9966 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   lt_cv_prog_compiler_c_o=no
9971    $RM -r conftest 2>/dev/null
9972    mkdir conftest
9973    cd conftest
9974    mkdir out
9975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9976
9977    lt_compiler_flag="-o out/conftest2.$ac_objext"
9978    # Insert the option either (1) after the last *FLAGS variable, or
9979    # (2) before a word containing "conftest.", or (3) at the end.
9980    # Note that $ac_compile itself does not contain backslashes and begins
9981    # with a dollar sign (not a hyphen), so the echo should work correctly.
9982    lt_compile=`echo "$ac_compile" | $SED \
9983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9985    -e 's:$: $lt_compiler_flag:'`
9986    (eval echo "\"\$as_me:9986: $lt_compile\"" >&5)
9987    (eval "$lt_compile" 2>out/conftest.err)
9988    ac_status=$?
9989    cat out/conftest.err >&5
9990    echo "$as_me:9990: \$? = $ac_status" >&5
9991    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9992    then
9993      # The compiler can only warn and ignore the option if not recognized
9994      # So say no if there are warnings
9995      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9996      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9997      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9998        lt_cv_prog_compiler_c_o=yes
9999      fi
10000    fi
10001    chmod u+w . 2>&5
10002    $RM conftest*
10003    # SGI C++ compiler will create directory out/ii_files/ for
10004    # template instantiation
10005    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10006    $RM out/* && rmdir out
10007    cd ..
10008    $RM -r conftest
10009    $RM conftest*
10010
10011 fi
10012 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10013 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10014
10015
10016
10017
10018
10019
10020   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   lt_cv_prog_compiler_c_o=no
10026    $RM -r conftest 2>/dev/null
10027    mkdir conftest
10028    cd conftest
10029    mkdir out
10030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031
10032    lt_compiler_flag="-o out/conftest2.$ac_objext"
10033    # Insert the option either (1) after the last *FLAGS variable, or
10034    # (2) before a word containing "conftest.", or (3) at the end.
10035    # Note that $ac_compile itself does not contain backslashes and begins
10036    # with a dollar sign (not a hyphen), so the echo should work correctly.
10037    lt_compile=`echo "$ac_compile" | $SED \
10038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040    -e 's:$: $lt_compiler_flag:'`
10041    (eval echo "\"\$as_me:10041: $lt_compile\"" >&5)
10042    (eval "$lt_compile" 2>out/conftest.err)
10043    ac_status=$?
10044    cat out/conftest.err >&5
10045    echo "$as_me:10045: \$? = $ac_status" >&5
10046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10047    then
10048      # The compiler can only warn and ignore the option if not recognized
10049      # So say no if there are warnings
10050      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10053        lt_cv_prog_compiler_c_o=yes
10054      fi
10055    fi
10056    chmod u+w . 2>&5
10057    $RM conftest*
10058    # SGI C++ compiler will create directory out/ii_files/ for
10059    # template instantiation
10060    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10061    $RM out/* && rmdir out
10062    cd ..
10063    $RM -r conftest
10064    $RM conftest*
10065
10066 fi
10067 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10068 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10069
10070
10071
10072
10073 hard_links="nottested"
10074 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10075   # do not overwrite the value of need_locks provided by the user
10076   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10077 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10078   hard_links=yes
10079   $RM conftest*
10080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081   touch conftest.a
10082   ln conftest.a conftest.b 2>&5 || hard_links=no
10083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10084   echo "$as_me:$LINENO: result: $hard_links" >&5
10085 echo "${ECHO_T}$hard_links" >&6
10086   if test "$hard_links" = no; then
10087     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10088 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10089     need_locks=warn
10090   fi
10091 else
10092   need_locks=no
10093 fi
10094
10095
10096
10097
10098
10099
10100   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10102
10103   runpath_var=
10104   allow_undefined_flag=
10105   always_export_symbols=no
10106   archive_cmds=
10107   archive_expsym_cmds=
10108   compiler_needs_object=no
10109   enable_shared_with_static_runtimes=no
10110   export_dynamic_flag_spec=
10111   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10112   hardcode_automatic=no
10113   hardcode_direct=no
10114   hardcode_direct_absolute=no
10115   hardcode_libdir_flag_spec=
10116   hardcode_libdir_flag_spec_ld=
10117   hardcode_libdir_separator=
10118   hardcode_minus_L=no
10119   hardcode_shlibpath_var=unsupported
10120   inherit_rpath=no
10121   link_all_deplibs=unknown
10122   module_cmds=
10123   module_expsym_cmds=
10124   old_archive_from_new_cmds=
10125   old_archive_from_expsyms_cmds=
10126   thread_safe_flag_spec=
10127   whole_archive_flag_spec=
10128   # include_expsyms should be a list of space-separated symbols to be *always*
10129   # included in the symbol list
10130   include_expsyms=
10131   # exclude_expsyms can be an extended regexp of symbols to exclude
10132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10134   # as well as any symbol that contains `d'.
10135   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10137   # platforms (ab)use it in PIC code, but their linkers get confused if
10138   # the symbol is explicitly referenced.  Since portable code cannot
10139   # rely on this symbol name, it's probably fine to never include it in
10140   # preloaded symbol tables.
10141   # Exclude shared library initialization/finalization symbols.
10142   extract_expsyms_cmds=
10143
10144   case $host_os in
10145   cygwin* | mingw* | pw32* | cegcc*)
10146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10147     # When not using gcc, we currently assume that we are using
10148     # Microsoft Visual C++.
10149     if test "$GCC" != yes; then
10150       with_gnu_ld=no
10151     fi
10152     ;;
10153   interix*)
10154     # we just hope/assume this is gcc and not c89 (= MSVC++)
10155     with_gnu_ld=yes
10156     ;;
10157   openbsd*)
10158     with_gnu_ld=no
10159     ;;
10160   esac
10161
10162   ld_shlibs=yes
10163   if test "$with_gnu_ld" = yes; then
10164     # If archive_cmds runs LD, not CC, wlarc should be empty
10165     wlarc='${wl}'
10166
10167     # Set some defaults for GNU ld with shared library support. These
10168     # are reset later if shared libraries are not supported. Putting them
10169     # here allows them to be overridden if necessary.
10170     runpath_var=LD_RUN_PATH
10171     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10172     export_dynamic_flag_spec='${wl}--export-dynamic'
10173     # ancient GNU ld didn't support --whole-archive et. al.
10174     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10175       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10176     else
10177       whole_archive_flag_spec=
10178     fi
10179     supports_anon_versioning=no
10180     case `$LD -v 2>&1` in
10181       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10182       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10183       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10184       *\ 2.11.*) ;; # other 2.11 versions
10185       *) supports_anon_versioning=yes ;;
10186     esac
10187
10188     # See if GNU ld supports shared libraries.
10189     case $host_os in
10190     aix[3-9]*)
10191       # On AIX/PPC, the GNU linker is very broken
10192       if test "$host_cpu" != ia64; then
10193         ld_shlibs=no
10194         cat <<_LT_EOF 1>&2
10195
10196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10197 *** to be unable to reliably create shared libraries on AIX.
10198 *** Therefore, libtool is disabling shared libraries support.  If you
10199 *** really care for shared libraries, you may want to modify your PATH
10200 *** so that a non-GNU linker is found, and then restart.
10201
10202 _LT_EOF
10203       fi
10204       ;;
10205
10206     amigaos*)
10207       case $host_cpu in
10208       powerpc)
10209             # see comment about AmigaOS4 .so support
10210             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211             archive_expsym_cmds=''
10212         ;;
10213       m68k)
10214             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)'
10215             hardcode_libdir_flag_spec='-L$libdir'
10216             hardcode_minus_L=yes
10217         ;;
10218       esac
10219       ;;
10220
10221     beos*)
10222       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10223         allow_undefined_flag=unsupported
10224         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10225         # support --undefined.  This deserves some investigation.  FIXME
10226         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227       else
10228         ld_shlibs=no
10229       fi
10230       ;;
10231
10232     cygwin* | mingw* | pw32* | cegcc*)
10233       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10234       # as there is no search path for DLLs.
10235       hardcode_libdir_flag_spec='-L$libdir'
10236       allow_undefined_flag=unsupported
10237       always_export_symbols=no
10238       enable_shared_with_static_runtimes=yes
10239       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10240
10241       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10243         # If the export-symbols file already is a .def file (1st line
10244         # is EXPORTS), use it as is; otherwise, prepend...
10245         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246           cp $export_symbols $output_objdir/$soname.def;
10247         else
10248           echo EXPORTS > $output_objdir/$soname.def;
10249           cat $export_symbols >> $output_objdir/$soname.def;
10250         fi~
10251         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10252       else
10253         ld_shlibs=no
10254       fi
10255       ;;
10256
10257     interix[3-9]*)
10258       hardcode_direct=no
10259       hardcode_shlibpath_var=no
10260       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10261       export_dynamic_flag_spec='${wl}-E'
10262       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10263       # Instead, shared libraries are loaded at an image base (0x10000000 by
10264       # default) and relocated if they conflict, which is a slow very memory
10265       # consuming and fragmenting process.  To avoid this, we pick a random,
10266       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10267       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10268       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10269       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'
10270       ;;
10271
10272     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10273       tmp_diet=no
10274       if test "$host_os" = linux-dietlibc; then
10275         case $cc_basename in
10276           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10277         esac
10278       fi
10279       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10280          && test "$tmp_diet" = no
10281       then
10282         tmp_addflag=
10283         tmp_sharedflag='-shared'
10284         case $cc_basename,$host_cpu in
10285         pgcc*)                          # Portland Group C compiler
10286           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'
10287           tmp_addflag=' $pic_flag'
10288           ;;
10289         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10290           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'
10291           tmp_addflag=' $pic_flag -Mnomain' ;;
10292         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10293           tmp_addflag=' -i_dynamic' ;;
10294         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10295           tmp_addflag=' -i_dynamic -nofor_main' ;;
10296         ifc* | ifort*)                  # Intel Fortran compiler
10297           tmp_addflag=' -nofor_main' ;;
10298         lf95*)                          # Lahey Fortran 8.1
10299           whole_archive_flag_spec=
10300           tmp_sharedflag='--shared' ;;
10301         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10302           tmp_sharedflag='-qmkshrobj'
10303           tmp_addflag= ;;
10304         esac
10305         case `$CC -V 2>&1 | sed 5q` in
10306         *Sun\ C*)                       # Sun C 5.9
10307           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'
10308           compiler_needs_object=yes
10309           tmp_sharedflag='-G' ;;
10310         *Sun\ F*)                       # Sun Fortran 8.3
10311           tmp_sharedflag='-G' ;;
10312         esac
10313         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10314
10315         if test "x$supports_anon_versioning" = xyes; then
10316           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10317             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10318             echo "local: *; };" >> $output_objdir/$libname.ver~
10319             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10320         fi
10321
10322         case $cc_basename in
10323         xlf*)
10324           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10325           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10326           hardcode_libdir_flag_spec=
10327           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10328           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10329           if test "x$supports_anon_versioning" = xyes; then
10330             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10331               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10332               echo "local: *; };" >> $output_objdir/$libname.ver~
10333               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10334           fi
10335           ;;
10336         esac
10337       else
10338         ld_shlibs=no
10339       fi
10340       ;;
10341
10342     netbsd*)
10343       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10344         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10345         wlarc=
10346       else
10347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10348         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10349       fi
10350       ;;
10351
10352     solaris*)
10353       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10354         ld_shlibs=no
10355         cat <<_LT_EOF 1>&2
10356
10357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10358 *** create shared libraries on Solaris systems.  Therefore, libtool
10359 *** is disabling shared libraries support.  We urge you to upgrade GNU
10360 *** binutils to release 2.9.1 or newer.  Another option is to modify
10361 *** your PATH or compiler configuration so that the native linker is
10362 *** used, and then restart.
10363
10364 _LT_EOF
10365       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10368       else
10369         ld_shlibs=no
10370       fi
10371       ;;
10372
10373     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10374       case `$LD -v 2>&1` in
10375         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10376         ld_shlibs=no
10377         cat <<_LT_EOF 1>&2
10378
10379 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10380 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10381 *** is disabling shared libraries support.  We urge you to upgrade GNU
10382 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10383 *** your PATH or compiler configuration so that the native linker is
10384 *** used, and then restart.
10385
10386 _LT_EOF
10387         ;;
10388         *)
10389           # For security reasons, it is highly recommended that you always
10390           # use absolute paths for naming shared libraries, and exclude the
10391           # DT_RUNPATH tag from executables and libraries.  But doing so
10392           # requires that you compile everything twice, which is a pain.
10393           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10394             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10397           else
10398             ld_shlibs=no
10399           fi
10400         ;;
10401       esac
10402       ;;
10403
10404     sunos4*)
10405       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10406       wlarc=
10407       hardcode_direct=yes
10408       hardcode_shlibpath_var=no
10409       ;;
10410
10411     *)
10412       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10413         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10415       else
10416         ld_shlibs=no
10417       fi
10418       ;;
10419     esac
10420
10421     if test "$ld_shlibs" = no; then
10422       runpath_var=
10423       hardcode_libdir_flag_spec=
10424       export_dynamic_flag_spec=
10425       whole_archive_flag_spec=
10426     fi
10427   else
10428     # PORTME fill in a description of your system's linker (not GNU ld)
10429     case $host_os in
10430     aix3*)
10431       allow_undefined_flag=unsupported
10432       always_export_symbols=yes
10433       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'
10434       # Note: this linker hardcodes the directories in LIBPATH if there
10435       # are no directories specified by -L.
10436       hardcode_minus_L=yes
10437       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10438         # Neither direct hardcoding nor static linking is supported with a
10439         # broken collect2.
10440         hardcode_direct=unsupported
10441       fi
10442       ;;
10443
10444     aix[4-9]*)
10445       if test "$host_cpu" = ia64; then
10446         # On IA64, the linker does run time linking by default, so we don't
10447         # have to do anything special.
10448         aix_use_runtimelinking=no
10449         exp_sym_flag='-Bexport'
10450         no_entry_flag=""
10451       else
10452         # If we're using GNU nm, then we don't want the "-C" option.
10453         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10454         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10455           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'
10456         else
10457           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'
10458         fi
10459         aix_use_runtimelinking=no
10460
10461         # Test if we are trying to use run time linking or normal
10462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10463         # need to do runtime linking.
10464         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10465           for ld_flag in $LDFLAGS; do
10466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10467             aix_use_runtimelinking=yes
10468             break
10469           fi
10470           done
10471           ;;
10472         esac
10473
10474         exp_sym_flag='-bexport'
10475         no_entry_flag='-bnoentry'
10476       fi
10477
10478       # When large executables or shared objects are built, AIX ld can
10479       # have problems creating the table of contents.  If linking a library
10480       # or program results in "error TOC overflow" add -mminimal-toc to
10481       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10482       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10483
10484       archive_cmds=''
10485       hardcode_direct=yes
10486       hardcode_direct_absolute=yes
10487       hardcode_libdir_separator=':'
10488       link_all_deplibs=yes
10489       file_list_spec='${wl}-f,'
10490
10491       if test "$GCC" = yes; then
10492         case $host_os in aix4.[012]|aix4.[012].*)
10493         # We only want to do this on AIX 4.2 and lower, the check
10494         # below for broken collect2 doesn't work under 4.3+
10495           collect2name=`${CC} -print-prog-name=collect2`
10496           if test -f "$collect2name" &&
10497            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10498           then
10499           # We have reworked collect2
10500           :
10501           else
10502           # We have old collect2
10503           hardcode_direct=unsupported
10504           # It fails to find uninstalled libraries when the uninstalled
10505           # path is not listed in the libpath.  Setting hardcode_minus_L
10506           # to unsupported forces relinking
10507           hardcode_minus_L=yes
10508           hardcode_libdir_flag_spec='-L$libdir'
10509           hardcode_libdir_separator=
10510           fi
10511           ;;
10512         esac
10513         shared_flag='-shared'
10514         if test "$aix_use_runtimelinking" = yes; then
10515           shared_flag="$shared_flag "'${wl}-G'
10516         fi
10517       else
10518         # not using gcc
10519         if test "$host_cpu" = ia64; then
10520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10521         # chokes on -Wl,-G. The following line is correct:
10522           shared_flag='-G'
10523         else
10524           if test "$aix_use_runtimelinking" = yes; then
10525             shared_flag='${wl}-G'
10526           else
10527             shared_flag='${wl}-bM:SRE'
10528           fi
10529         fi
10530       fi
10531
10532       export_dynamic_flag_spec='${wl}-bexpall'
10533       # It seems that -bexpall does not export symbols beginning with
10534       # underscore (_), so it is better to generate a list of symbols to export.
10535       always_export_symbols=yes
10536       if test "$aix_use_runtimelinking" = yes; then
10537         # Warning - without using the other runtime loading flags (-brtl),
10538         # -berok will link without error, but may produce a broken library.
10539         allow_undefined_flag='-berok'
10540         # Determine the default libpath from the value encoded in an
10541         # empty executable.
10542         if test x$gcc_no_link = xyes; then
10543   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10545    { (exit 1); exit 1; }; }
10546 fi
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h.  */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h.  */
10553
10554 int
10555 main ()
10556 {
10557
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564   (eval $ac_link) 2>conftest.er1
10565   ac_status=$?
10566   grep -v '^ *+' conftest.er1 >conftest.err
10567   rm -f conftest.er1
10568   cat conftest.err >&5
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } &&
10571          { ac_try='test -z "$ac_c_werror_flag"
10572                          || test ! -s conftest.err'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; } &&
10578          { ac_try='test -s conftest$ac_exeext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584
10585 lt_aix_libpath_sed='
10586     /Import File Strings/,/^$/ {
10587         /^0/ {
10588             s/^0  *\(.*\)$/\1/
10589             p
10590         }
10591     }'
10592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10593 # Check for a 64-bit object if we didn't find anything.
10594 if test -z "$aix_libpath"; then
10595   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10596 fi
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 fi
10602 rm -f conftest.err conftest.$ac_objext \
10603       conftest$ac_exeext conftest.$ac_ext
10604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10605
10606         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10607         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"
10608       else
10609         if test "$host_cpu" = ia64; then
10610           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10611           allow_undefined_flag="-z nodefs"
10612           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"
10613         else
10614          # Determine the default libpath from the value encoded in an
10615          # empty executable.
10616          if test x$gcc_no_link = xyes; then
10617   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10619    { (exit 1); exit 1; }; }
10620 fi
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628 int
10629 main ()
10630 {
10631
10632   ;
10633   return 0;
10634 }
10635 _ACEOF
10636 rm -f conftest.$ac_objext conftest$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638   (eval $ac_link) 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -z "$ac_c_werror_flag"
10646                          || test ! -s conftest.err'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest$ac_exeext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658
10659 lt_aix_libpath_sed='
10660     /Import File Strings/,/^$/ {
10661         /^0/ {
10662             s/^0  *\(.*\)$/\1/
10663             p
10664         }
10665     }'
10666 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10667 # Check for a 64-bit object if we didn't find anything.
10668 if test -z "$aix_libpath"; then
10669   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10670 fi
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677       conftest$ac_exeext conftest.$ac_ext
10678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10679
10680          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10681           # Warning - without using the other run time loading flags,
10682           # -berok will link without error, but may produce a broken library.
10683           no_undefined_flag=' ${wl}-bernotok'
10684           allow_undefined_flag=' ${wl}-berok'
10685           # Exported symbols can be pulled into shared objects from archives
10686           whole_archive_flag_spec='$convenience'
10687           archive_cmds_need_lc=yes
10688           # This is similar to how AIX traditionally builds its shared libraries.
10689           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'
10690         fi
10691       fi
10692       ;;
10693
10694     amigaos*)
10695       case $host_cpu in
10696       powerpc)
10697             # see comment about AmigaOS4 .so support
10698             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699             archive_expsym_cmds=''
10700         ;;
10701       m68k)
10702             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)'
10703             hardcode_libdir_flag_spec='-L$libdir'
10704             hardcode_minus_L=yes
10705         ;;
10706       esac
10707       ;;
10708
10709     bsdi[45]*)
10710       export_dynamic_flag_spec=-rdynamic
10711       ;;
10712
10713     cygwin* | mingw* | pw32* | cegcc*)
10714       # When not using gcc, we currently assume that we are using
10715       # Microsoft Visual C++.
10716       # hardcode_libdir_flag_spec is actually meaningless, as there is
10717       # no search path for DLLs.
10718       hardcode_libdir_flag_spec=' '
10719       allow_undefined_flag=unsupported
10720       # Tell ltmain to make .lib files, not .a files.
10721       libext=lib
10722       # Tell ltmain to make .dll files, not .so files.
10723       shrext_cmds=".dll"
10724       # FIXME: Setting linknames here is a bad hack.
10725       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10726       # The linker will automatically build a .lib file if we build a DLL.
10727       old_archive_from_new_cmds='true'
10728       # FIXME: Should let the user specify the lib program.
10729       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10730       fix_srcfile_path='`cygpath -w "$srcfile"`'
10731       enable_shared_with_static_runtimes=yes
10732       ;;
10733
10734     darwin* | rhapsody*)
10735
10736
10737   archive_cmds_need_lc=no
10738   hardcode_direct=no
10739   hardcode_automatic=yes
10740   hardcode_shlibpath_var=unsupported
10741   whole_archive_flag_spec=''
10742   link_all_deplibs=yes
10743   allow_undefined_flag="$_lt_dar_allow_undefined"
10744   case $cc_basename in
10745      ifort*) _lt_dar_can_shared=yes ;;
10746      *) _lt_dar_can_shared=$GCC ;;
10747   esac
10748   if test "$_lt_dar_can_shared" = "yes"; then
10749     output_verbose_link_cmd=echo
10750     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10751     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10752     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10753     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10754
10755   else
10756   ld_shlibs=no
10757   fi
10758
10759       ;;
10760
10761     dgux*)
10762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763       hardcode_libdir_flag_spec='-L$libdir'
10764       hardcode_shlibpath_var=no
10765       ;;
10766
10767     freebsd1*)
10768       ld_shlibs=no
10769       ;;
10770
10771     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10772     # support.  Future versions do this automatically, but an explicit c++rt0.o
10773     # does not break anything, and helps significantly (at the cost of a little
10774     # extra space).
10775     freebsd2.2*)
10776       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10777       hardcode_libdir_flag_spec='-R$libdir'
10778       hardcode_direct=yes
10779       hardcode_shlibpath_var=no
10780       ;;
10781
10782     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10783     freebsd2*)
10784       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10785       hardcode_direct=yes
10786       hardcode_minus_L=yes
10787       hardcode_shlibpath_var=no
10788       ;;
10789
10790     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10791     freebsd* | dragonfly*)
10792       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10793       hardcode_libdir_flag_spec='-R$libdir'
10794       hardcode_direct=yes
10795       hardcode_shlibpath_var=no
10796       ;;
10797
10798     hpux9*)
10799       if test "$GCC" = yes; then
10800         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'
10801       else
10802         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'
10803       fi
10804       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10805       hardcode_libdir_separator=:
10806       hardcode_direct=yes
10807
10808       # hardcode_minus_L: Not really in the search PATH,
10809       # but as the default location of the library.
10810       hardcode_minus_L=yes
10811       export_dynamic_flag_spec='${wl}-E'
10812       ;;
10813
10814     hpux10*)
10815       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10816         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10817       else
10818         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10819       fi
10820       if test "$with_gnu_ld" = no; then
10821         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10822         hardcode_libdir_flag_spec_ld='+b $libdir'
10823         hardcode_libdir_separator=:
10824         hardcode_direct=yes
10825         hardcode_direct_absolute=yes
10826         export_dynamic_flag_spec='${wl}-E'
10827         # hardcode_minus_L: Not really in the search PATH,
10828         # but as the default location of the library.
10829         hardcode_minus_L=yes
10830       fi
10831       ;;
10832
10833     hpux11*)
10834       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10835         case $host_cpu in
10836         hppa*64*)
10837           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10838           ;;
10839         ia64*)
10840           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10841           ;;
10842         *)
10843           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10844           ;;
10845         esac
10846       else
10847         case $host_cpu in
10848         hppa*64*)
10849           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10850           ;;
10851         ia64*)
10852           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10853           ;;
10854         *)
10855           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10856           ;;
10857         esac
10858       fi
10859       if test "$with_gnu_ld" = no; then
10860         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10861         hardcode_libdir_separator=:
10862
10863         case $host_cpu in
10864         hppa*64*|ia64*)
10865           hardcode_direct=no
10866           hardcode_shlibpath_var=no
10867           ;;
10868         *)
10869           hardcode_direct=yes
10870           hardcode_direct_absolute=yes
10871           export_dynamic_flag_spec='${wl}-E'
10872
10873           # hardcode_minus_L: Not really in the search PATH,
10874           # but as the default location of the library.
10875           hardcode_minus_L=yes
10876           ;;
10877         esac
10878       fi
10879       ;;
10880
10881     irix5* | irix6* | nonstopux*)
10882       if test "$GCC" = yes; then
10883         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'
10884         # Try to use the -exported_symbol ld option, if it does not
10885         # work, assume that -exports_file does not work either and
10886         # implicitly export all symbols.
10887         save_LDFLAGS="$LDFLAGS"
10888         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10889         if test x$gcc_no_link = xyes; then
10890   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10892    { (exit 1); exit 1; }; }
10893 fi
10894 cat >conftest.$ac_ext <<_ACEOF
10895 int foo(void) {}
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899   (eval $ac_link) 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag"
10907                          || test ! -s conftest.err'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   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'
10920
10921 else
10922   echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 fi
10926 rm -f conftest.err conftest.$ac_objext \
10927       conftest$ac_exeext conftest.$ac_ext
10928         LDFLAGS="$save_LDFLAGS"
10929       else
10930         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'
10931         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'
10932       fi
10933       archive_cmds_need_lc='no'
10934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10935       hardcode_libdir_separator=:
10936       inherit_rpath=yes
10937       link_all_deplibs=yes
10938       ;;
10939
10940     netbsd*)
10941       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10942         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10943       else
10944         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10945       fi
10946       hardcode_libdir_flag_spec='-R$libdir'
10947       hardcode_direct=yes
10948       hardcode_shlibpath_var=no
10949       ;;
10950
10951     newsos6)
10952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953       hardcode_direct=yes
10954       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10955       hardcode_libdir_separator=:
10956       hardcode_shlibpath_var=no
10957       ;;
10958
10959     *nto* | *qnx*)
10960       ;;
10961
10962     openbsd*)
10963       if test -f /usr/libexec/ld.so; then
10964         hardcode_direct=yes
10965         hardcode_shlibpath_var=no
10966         hardcode_direct_absolute=yes
10967         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10968           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10969           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10970           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10971           export_dynamic_flag_spec='${wl}-E'
10972         else
10973           case $host_os in
10974            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10975              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10976              hardcode_libdir_flag_spec='-R$libdir'
10977              ;;
10978            *)
10979              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10980              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10981              ;;
10982           esac
10983         fi
10984       else
10985         ld_shlibs=no
10986       fi
10987       ;;
10988
10989     os2*)
10990       hardcode_libdir_flag_spec='-L$libdir'
10991       hardcode_minus_L=yes
10992       allow_undefined_flag=unsupported
10993       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'
10994       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10995       ;;
10996
10997     osf3*)
10998       if test "$GCC" = yes; then
10999         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11000         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'
11001       else
11002         allow_undefined_flag=' -expect_unresolved \*'
11003         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'
11004       fi
11005       archive_cmds_need_lc='no'
11006       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11007       hardcode_libdir_separator=:
11008       ;;
11009
11010     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11011       if test "$GCC" = yes; then
11012         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11013         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'
11014         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11015       else
11016         allow_undefined_flag=' -expect_unresolved \*'
11017         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'
11018         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~
11019         $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'
11020
11021         # Both c and cxx compiler support -rpath directly
11022         hardcode_libdir_flag_spec='-rpath $libdir'
11023       fi
11024       archive_cmds_need_lc='no'
11025       hardcode_libdir_separator=:
11026       ;;
11027
11028     solaris*)
11029       no_undefined_flag=' -z defs'
11030       if test "$GCC" = yes; then
11031         wlarc='${wl}'
11032         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11034           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11035       else
11036         case `$CC -V 2>&1` in
11037         *"Compilers 5.0"*)
11038           wlarc=''
11039           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11041           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11042           ;;
11043         *)
11044           wlarc='${wl}'
11045           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11046           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11047           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11048           ;;
11049         esac
11050       fi
11051       hardcode_libdir_flag_spec='-R$libdir'
11052       hardcode_shlibpath_var=no
11053       case $host_os in
11054       solaris2.[0-5] | solaris2.[0-5].*) ;;
11055       *)
11056         # The compiler driver will combine and reorder linker options,
11057         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11058         # but is careful enough not to reorder.
11059         # Supported since Solaris 2.6 (maybe 2.5.1?)
11060         if test "$GCC" = yes; then
11061           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11062         else
11063           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11064         fi
11065         ;;
11066       esac
11067       link_all_deplibs=yes
11068       ;;
11069
11070     sunos4*)
11071       if test "x$host_vendor" = xsequent; then
11072         # Use $CC to link under sequent, because it throws in some extra .o
11073         # files that make .init and .fini sections work.
11074         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11075       else
11076         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11077       fi
11078       hardcode_libdir_flag_spec='-L$libdir'
11079       hardcode_direct=yes
11080       hardcode_minus_L=yes
11081       hardcode_shlibpath_var=no
11082       ;;
11083
11084     sysv4)
11085       case $host_vendor in
11086         sni)
11087           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088           hardcode_direct=yes # is this really true???
11089         ;;
11090         siemens)
11091           ## LD is ld it makes a PLAMLIB
11092           ## CC just makes a GrossModule.
11093           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11094           reload_cmds='$CC -r -o $output$reload_objs'
11095           hardcode_direct=no
11096         ;;
11097         motorola)
11098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11099           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11100         ;;
11101       esac
11102       runpath_var='LD_RUN_PATH'
11103       hardcode_shlibpath_var=no
11104       ;;
11105
11106     sysv4.3*)
11107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11108       hardcode_shlibpath_var=no
11109       export_dynamic_flag_spec='-Bexport'
11110       ;;
11111
11112     sysv4*MP*)
11113       if test -d /usr/nec; then
11114         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11115         hardcode_shlibpath_var=no
11116         runpath_var=LD_RUN_PATH
11117         hardcode_runpath_var=yes
11118         ld_shlibs=yes
11119       fi
11120       ;;
11121
11122     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11123       no_undefined_flag='${wl}-z,text'
11124       archive_cmds_need_lc=no
11125       hardcode_shlibpath_var=no
11126       runpath_var='LD_RUN_PATH'
11127
11128       if test "$GCC" = yes; then
11129         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131       else
11132         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134       fi
11135       ;;
11136
11137     sysv5* | sco3.2v5* | sco5v6*)
11138       # Note: We can NOT use -z defs as we might desire, because we do not
11139       # link with -lc, and that would cause any symbols used from libc to
11140       # always be unresolved, which means just about no library would
11141       # ever link correctly.  If we're not using GNU ld we use -z text
11142       # though, which does catch some bad symbols but isn't as heavy-handed
11143       # as -z defs.
11144       no_undefined_flag='${wl}-z,text'
11145       allow_undefined_flag='${wl}-z,nodefs'
11146       archive_cmds_need_lc=no
11147       hardcode_shlibpath_var=no
11148       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11149       hardcode_libdir_separator=':'
11150       link_all_deplibs=yes
11151       export_dynamic_flag_spec='${wl}-Bexport'
11152       runpath_var='LD_RUN_PATH'
11153
11154       if test "$GCC" = yes; then
11155         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157       else
11158         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160       fi
11161       ;;
11162
11163     uts4*)
11164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11165       hardcode_libdir_flag_spec='-L$libdir'
11166       hardcode_shlibpath_var=no
11167       ;;
11168
11169     *)
11170       ld_shlibs=no
11171       ;;
11172     esac
11173
11174     if test x$host_vendor = xsni; then
11175       case $host in
11176       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11177         export_dynamic_flag_spec='${wl}-Blargedynsym'
11178         ;;
11179       esac
11180     fi
11181   fi
11182
11183 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11184 echo "${ECHO_T}$ld_shlibs" >&6
11185 test "$ld_shlibs" = no && can_build_shared=no
11186
11187 with_gnu_ld=$with_gnu_ld
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203 #
11204 # Do we need to explicitly link libc?
11205 #
11206 case "x$archive_cmds_need_lc" in
11207 x|xyes)
11208   # Assume -lc should be added
11209   archive_cmds_need_lc=yes
11210
11211   if test "$enable_shared" = yes && test "$GCC" = yes; then
11212     case $archive_cmds in
11213     *'~'*)
11214       # FIXME: we may have to deal with multi-command sequences.
11215       ;;
11216     '$CC '*)
11217       # Test whether the compiler implicitly links with -lc since on some
11218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11219       # to ld, don't add -lc before -lgcc.
11220       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11222 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   $RM conftest*
11226         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11227
11228         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229   (eval $ac_compile) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } 2>conftest.err; then
11233           soname=conftest
11234           lib=conftest
11235           libobjs=conftest.$ac_objext
11236           deplibs=
11237           wl=$lt_prog_compiler_wl
11238           pic_flag=$lt_prog_compiler_pic
11239           compiler_flags=-v
11240           linker_flags=-v
11241           verstring=
11242           output_objdir=.
11243           libname=conftest
11244           lt_save_allow_undefined_flag=$allow_undefined_flag
11245           allow_undefined_flag=
11246           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11247   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }
11251           then
11252             lt_cv_archive_cmds_need_lc=no
11253           else
11254             lt_cv_archive_cmds_need_lc=yes
11255           fi
11256           allow_undefined_flag=$lt_save_allow_undefined_flag
11257         else
11258           cat conftest.err 1>&5
11259         fi
11260         $RM conftest*
11261
11262 fi
11263 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
11264 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
11265       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11266       ;;
11267     esac
11268   fi
11269   ;;
11270 esac
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
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
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11429 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11430
11431 if test "$GCC" = yes; then
11432   case $host_os in
11433     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11434     *) lt_awk_arg="/^libraries:/" ;;
11435   esac
11436   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11437   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11438     # if the path contains ";" then we assume it to be the separator
11439     # otherwise default to the standard path separator (i.e. ":") - it is
11440     # assumed that no part of a normal pathname contains ";" but that should
11441     # okay in the real world where ";" in dirpaths is itself problematic.
11442     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11443   else
11444     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11445   fi
11446   # Ok, now we have the path, separated by spaces, we can step through it
11447   # and add multilib dir if necessary.
11448   lt_tmp_lt_search_path_spec=
11449   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11450   for lt_sys_path in $lt_search_path_spec; do
11451     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11452       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11453     else
11454       test -d "$lt_sys_path" && \
11455         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11456     fi
11457   done
11458   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11459 BEGIN {RS=" "; FS="/|\n";} {
11460   lt_foo="";
11461   lt_count=0;
11462   for (lt_i = NF; lt_i > 0; lt_i--) {
11463     if ($lt_i != "" && $lt_i != ".") {
11464       if ($lt_i == "..") {
11465         lt_count++;
11466       } else {
11467         if (lt_count == 0) {
11468           lt_foo="/" $lt_i lt_foo;
11469         } else {
11470           lt_count--;
11471         }
11472       }
11473     }
11474   }
11475   if (lt_foo != "") { lt_freq[lt_foo]++; }
11476   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11477 }'`
11478   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11479 else
11480   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11481 fi
11482 library_names_spec=
11483 libname_spec='lib$name'
11484 soname_spec=
11485 shrext_cmds=".so"
11486 postinstall_cmds=
11487 postuninstall_cmds=
11488 finish_cmds=
11489 finish_eval=
11490 shlibpath_var=
11491 shlibpath_overrides_runpath=unknown
11492 version_type=none
11493 dynamic_linker="$host_os ld.so"
11494 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11495 need_lib_prefix=unknown
11496 hardcode_into_libs=no
11497
11498 # when you set need_version to no, make sure it does not cause -set_version
11499 # flags to be left without arguments
11500 need_version=unknown
11501
11502 case $host_os in
11503 aix3*)
11504   version_type=linux
11505   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11506   shlibpath_var=LIBPATH
11507
11508   # AIX 3 has no versioning support, so we append a major version to the name.
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   ;;
11511
11512 aix[4-9]*)
11513   version_type=linux
11514   need_lib_prefix=no
11515   need_version=no
11516   hardcode_into_libs=yes
11517   if test "$host_cpu" = ia64; then
11518     # AIX 5 supports IA64
11519     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11520     shlibpath_var=LD_LIBRARY_PATH
11521   else
11522     # With GCC up to 2.95.x, collect2 would create an import file
11523     # for dependence libraries.  The import file would start with
11524     # the line `#! .'.  This would cause the generated library to
11525     # depend on `.', always an invalid library.  This was fixed in
11526     # development snapshots of GCC prior to 3.0.
11527     case $host_os in
11528       aix4 | aix4.[01] | aix4.[01].*)
11529       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11530            echo ' yes '
11531            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11532         :
11533       else
11534         can_build_shared=no
11535       fi
11536       ;;
11537     esac
11538     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11539     # soname into executable. Probably we can add versioning support to
11540     # collect2, so additional links can be useful in future.
11541     if test "$aix_use_runtimelinking" = yes; then
11542       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11543       # instead of lib<name>.a to let people know that these are not
11544       # typical AIX shared libraries.
11545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546     else
11547       # We preserve .a as extension for shared libraries through AIX4.2
11548       # and later when we are not doing run time linking.
11549       library_names_spec='${libname}${release}.a $libname.a'
11550       soname_spec='${libname}${release}${shared_ext}$major'
11551     fi
11552     shlibpath_var=LIBPATH
11553   fi
11554   ;;
11555
11556 amigaos*)
11557   case $host_cpu in
11558   powerpc)
11559     # Since July 2007 AmigaOS4 officially supports .so libraries.
11560     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562     ;;
11563   m68k)
11564     library_names_spec='$libname.ixlibrary $libname.a'
11565     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11566     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'
11567     ;;
11568   esac
11569   ;;
11570
11571 beos*)
11572   library_names_spec='${libname}${shared_ext}'
11573   dynamic_linker="$host_os ld.so"
11574   shlibpath_var=LIBRARY_PATH
11575   ;;
11576
11577 bsdi[45]*)
11578   version_type=linux
11579   need_version=no
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581   soname_spec='${libname}${release}${shared_ext}$major'
11582   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11585   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11586   # the default ld.so.conf also contains /usr/contrib/lib and
11587   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11588   # libtool to hard-code these into programs
11589   ;;
11590
11591 cygwin* | mingw* | pw32* | cegcc*)
11592   version_type=windows
11593   shrext_cmds=".dll"
11594   need_version=no
11595   need_lib_prefix=no
11596
11597   case $GCC,$host_os in
11598   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11599     library_names_spec='$libname.dll.a'
11600     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11601     postinstall_cmds='base_file=`basename \${file}`~
11602       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11603       dldir=$destdir/`dirname \$dlpath`~
11604       test -d \$dldir || mkdir -p \$dldir~
11605       $install_prog $dir/$dlname \$dldir/$dlname~
11606       chmod a+x \$dldir/$dlname~
11607       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11608         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11609       fi'
11610     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11611       dlpath=$dir/\$dldll~
11612        $RM \$dlpath'
11613     shlibpath_overrides_runpath=yes
11614
11615     case $host_os in
11616     cygwin*)
11617       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11618       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11619       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11620       ;;
11621     mingw* | cegcc*)
11622       # MinGW DLLs use traditional 'lib' prefix
11623       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11624       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11625       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11626         # It is most probably a Windows format PATH printed by
11627         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11628         # path with ; separators, and with drive letters. We can handle the
11629         # drive letters (cygwin fileutils understands them), so leave them,
11630         # especially as we might pass files found there to a mingw objdump,
11631         # which wouldn't understand a cygwinified path. Ahh.
11632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11633       else
11634         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11635       fi
11636       ;;
11637     pw32*)
11638       # pw32 DLLs use 'pw' prefix rather than 'lib'
11639       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11640       ;;
11641     esac
11642     ;;
11643
11644   *)
11645     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11646     ;;
11647   esac
11648   dynamic_linker='Win32 ld.exe'
11649   # FIXME: first we should search . and the directory the executable is in
11650   shlibpath_var=PATH
11651   ;;
11652
11653 darwin* | rhapsody*)
11654   dynamic_linker="$host_os dyld"
11655   version_type=darwin
11656   need_lib_prefix=no
11657   need_version=no
11658   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11659   soname_spec='${libname}${release}${major}$shared_ext'
11660   shlibpath_overrides_runpath=yes
11661   shlibpath_var=DYLD_LIBRARY_PATH
11662   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11663
11664   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11666   ;;
11667
11668 dgux*)
11669   version_type=linux
11670   need_lib_prefix=no
11671   need_version=no
11672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   shlibpath_var=LD_LIBRARY_PATH
11675   ;;
11676
11677 freebsd1*)
11678   dynamic_linker=no
11679   ;;
11680
11681 freebsd* | dragonfly*)
11682   # DragonFly does not have aout.  When/if they implement a new
11683   # versioning mechanism, adjust this.
11684   if test -x /usr/bin/objformat; then
11685     objformat=`/usr/bin/objformat`
11686   else
11687     case $host_os in
11688     freebsd[123]*) objformat=aout ;;
11689     *) objformat=elf ;;
11690     esac
11691   fi
11692   version_type=freebsd-$objformat
11693   case $version_type in
11694     freebsd-elf*)
11695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11696       need_version=no
11697       need_lib_prefix=no
11698       ;;
11699     freebsd-*)
11700       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11701       need_version=yes
11702       ;;
11703   esac
11704   shlibpath_var=LD_LIBRARY_PATH
11705   case $host_os in
11706   freebsd2*)
11707     shlibpath_overrides_runpath=yes
11708     ;;
11709   freebsd3.[01]* | freebsdelf3.[01]*)
11710     shlibpath_overrides_runpath=yes
11711     hardcode_into_libs=yes
11712     ;;
11713   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11714   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11715     shlibpath_overrides_runpath=no
11716     hardcode_into_libs=yes
11717     ;;
11718   *) # from 4.6 on, and DragonFly
11719     shlibpath_overrides_runpath=yes
11720     hardcode_into_libs=yes
11721     ;;
11722   esac
11723   ;;
11724
11725 gnu*)
11726   version_type=linux
11727   need_lib_prefix=no
11728   need_version=no
11729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11730   soname_spec='${libname}${release}${shared_ext}$major'
11731   shlibpath_var=LD_LIBRARY_PATH
11732   hardcode_into_libs=yes
11733   ;;
11734
11735 hpux9* | hpux10* | hpux11*)
11736   # Give a soname corresponding to the major version so that dld.sl refuses to
11737   # link against other versions.
11738   version_type=sunos
11739   need_lib_prefix=no
11740   need_version=no
11741   case $host_cpu in
11742   ia64*)
11743     shrext_cmds='.so'
11744     hardcode_into_libs=yes
11745     dynamic_linker="$host_os dld.so"
11746     shlibpath_var=LD_LIBRARY_PATH
11747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749     soname_spec='${libname}${release}${shared_ext}$major'
11750     if test "X$HPUX_IA64_MODE" = X32; then
11751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11752     else
11753       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11754     fi
11755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11756     ;;
11757   hppa*64*)
11758     shrext_cmds='.sl'
11759     hardcode_into_libs=yes
11760     dynamic_linker="$host_os dld.sl"
11761     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764     soname_spec='${libname}${release}${shared_ext}$major'
11765     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11767     ;;
11768   *)
11769     shrext_cmds='.sl'
11770     dynamic_linker="$host_os dld.sl"
11771     shlibpath_var=SHLIB_PATH
11772     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774     soname_spec='${libname}${release}${shared_ext}$major'
11775     ;;
11776   esac
11777   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11778   postinstall_cmds='chmod 555 $lib'
11779   ;;
11780
11781 interix[3-9]*)
11782   version_type=linux
11783   need_lib_prefix=no
11784   need_version=no
11785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11786   soname_spec='${libname}${release}${shared_ext}$major'
11787   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11788   shlibpath_var=LD_LIBRARY_PATH
11789   shlibpath_overrides_runpath=no
11790   hardcode_into_libs=yes
11791   ;;
11792
11793 irix5* | irix6* | nonstopux*)
11794   case $host_os in
11795     nonstopux*) version_type=nonstopux ;;
11796     *)
11797         if test "$lt_cv_prog_gnu_ld" = yes; then
11798                 version_type=linux
11799         else
11800                 version_type=irix
11801         fi ;;
11802   esac
11803   need_lib_prefix=no
11804   need_version=no
11805   soname_spec='${libname}${release}${shared_ext}$major'
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11807   case $host_os in
11808   irix5* | nonstopux*)
11809     libsuff= shlibsuff=
11810     ;;
11811   *)
11812     case $LD in # libtool.m4 will add one of these switches to LD
11813     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11814       libsuff= shlibsuff= libmagic=32-bit;;
11815     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11816       libsuff=32 shlibsuff=N32 libmagic=N32;;
11817     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11818       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11819     *) libsuff= shlibsuff= libmagic=never-match;;
11820     esac
11821     ;;
11822   esac
11823   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11824   shlibpath_overrides_runpath=no
11825   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11826   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11827   hardcode_into_libs=yes
11828   ;;
11829
11830 # No shared lib support for Linux oldld, aout, or coff.
11831 linux*oldld* | linux*aout* | linux*coff*)
11832   dynamic_linker=no
11833   ;;
11834
11835 # This must be Linux ELF.
11836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11837   version_type=linux
11838   need_lib_prefix=no
11839   need_version=no
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11843   shlibpath_var=LD_LIBRARY_PATH
11844   shlibpath_overrides_runpath=no
11845
11846   # Some binutils ld are patched to set DT_RUNPATH
11847   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   lt_cv_shlibpath_overrides_runpath=no
11851     save_LDFLAGS=$LDFLAGS
11852     save_libdir=$libdir
11853     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11854          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11855     if test x$gcc_no_link = xyes; then
11856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11858    { (exit 1); exit 1; }; }
11859 fi
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866
11867 int
11868 main ()
11869 {
11870
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877   (eval $ac_link) 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } &&
11884          { ac_try='test -z "$ac_c_werror_flag"
11885                          || test ! -s conftest.err'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11898   lt_cv_shlibpath_overrides_runpath=yes
11899 fi
11900
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 fi
11906 rm -f conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908     LDFLAGS=$save_LDFLAGS
11909     libdir=$save_libdir
11910
11911 fi
11912
11913   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11914
11915   # This implies no fast_install, which is unacceptable.
11916   # Some rework will be needed to allow for fast_install
11917   # before this can be enabled.
11918   hardcode_into_libs=yes
11919
11920   # Append ld.so.conf contents to the search path
11921   if test -f /etc/ld.so.conf; then
11922     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11923     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11924   fi
11925
11926   # We used to test for /lib/ld.so.1 and disable shared libraries on
11927   # powerpc, because MkLinux only supported shared libraries with the
11928   # GNU dynamic linker.  Since this was broken with cross compilers,
11929   # most powerpc-linux boxes support dynamic linking these days and
11930   # people can always --disable-shared, the test was removed, and we
11931   # assume the GNU/Linux dynamic linker is in use.
11932   dynamic_linker='GNU/Linux ld.so'
11933   ;;
11934
11935 netbsd*)
11936   version_type=sunos
11937   need_lib_prefix=no
11938   need_version=no
11939   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11941     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11942     dynamic_linker='NetBSD (a.out) ld.so'
11943   else
11944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11945     soname_spec='${libname}${release}${shared_ext}$major'
11946     dynamic_linker='NetBSD ld.elf_so'
11947   fi
11948   shlibpath_var=LD_LIBRARY_PATH
11949   shlibpath_overrides_runpath=yes
11950   hardcode_into_libs=yes
11951   ;;
11952
11953 newsos6)
11954   version_type=linux
11955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956   shlibpath_var=LD_LIBRARY_PATH
11957   shlibpath_overrides_runpath=yes
11958   ;;
11959
11960 *nto* | *qnx*)
11961   version_type=qnx
11962   need_lib_prefix=no
11963   need_version=no
11964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965   soname_spec='${libname}${release}${shared_ext}$major'
11966   shlibpath_var=LD_LIBRARY_PATH
11967   shlibpath_overrides_runpath=no
11968   hardcode_into_libs=yes
11969   dynamic_linker='ldqnx.so'
11970   ;;
11971
11972 openbsd*)
11973   version_type=sunos
11974   sys_lib_dlsearch_path_spec="/usr/lib"
11975   need_lib_prefix=no
11976   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11977   case $host_os in
11978     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11979     *)                          need_version=no  ;;
11980   esac
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11983   shlibpath_var=LD_LIBRARY_PATH
11984   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985     case $host_os in
11986       openbsd2.[89] | openbsd2.[89].*)
11987         shlibpath_overrides_runpath=no
11988         ;;
11989       *)
11990         shlibpath_overrides_runpath=yes
11991         ;;
11992       esac
11993   else
11994     shlibpath_overrides_runpath=yes
11995   fi
11996   ;;
11997
11998 os2*)
11999   libname_spec='$name'
12000   shrext_cmds=".dll"
12001   need_lib_prefix=no
12002   library_names_spec='$libname${shared_ext} $libname.a'
12003   dynamic_linker='OS/2 ld.exe'
12004   shlibpath_var=LIBPATH
12005   ;;
12006
12007 osf3* | osf4* | osf5*)
12008   version_type=osf
12009   need_lib_prefix=no
12010   need_version=no
12011   soname_spec='${libname}${release}${shared_ext}$major'
12012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013   shlibpath_var=LD_LIBRARY_PATH
12014   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12015   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12016   ;;
12017
12018 rdos*)
12019   dynamic_linker=no
12020   ;;
12021
12022 solaris*)
12023   version_type=linux
12024   need_lib_prefix=no
12025   need_version=no
12026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027   soname_spec='${libname}${release}${shared_ext}$major'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   shlibpath_overrides_runpath=yes
12030   hardcode_into_libs=yes
12031   # ldd complains unless libraries are executable
12032   postinstall_cmds='chmod +x $lib'
12033   ;;
12034
12035 sunos4*)
12036   version_type=sunos
12037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12038   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12039   shlibpath_var=LD_LIBRARY_PATH
12040   shlibpath_overrides_runpath=yes
12041   if test "$with_gnu_ld" = yes; then
12042     need_lib_prefix=no
12043   fi
12044   need_version=yes
12045   ;;
12046
12047 sysv4 | sysv4.3*)
12048   version_type=linux
12049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050   soname_spec='${libname}${release}${shared_ext}$major'
12051   shlibpath_var=LD_LIBRARY_PATH
12052   case $host_vendor in
12053     sni)
12054       shlibpath_overrides_runpath=no
12055       need_lib_prefix=no
12056       runpath_var=LD_RUN_PATH
12057       ;;
12058     siemens)
12059       need_lib_prefix=no
12060       ;;
12061     motorola)
12062       need_lib_prefix=no
12063       need_version=no
12064       shlibpath_overrides_runpath=no
12065       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12066       ;;
12067   esac
12068   ;;
12069
12070 sysv4*MP*)
12071   if test -d /usr/nec ;then
12072     version_type=linux
12073     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12074     soname_spec='$libname${shared_ext}.$major'
12075     shlibpath_var=LD_LIBRARY_PATH
12076   fi
12077   ;;
12078
12079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12080   version_type=freebsd-elf
12081   need_lib_prefix=no
12082   need_version=no
12083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12084   soname_spec='${libname}${release}${shared_ext}$major'
12085   shlibpath_var=LD_LIBRARY_PATH
12086   shlibpath_overrides_runpath=yes
12087   hardcode_into_libs=yes
12088   if test "$with_gnu_ld" = yes; then
12089     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12090   else
12091     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12092     case $host_os in
12093       sco3.2v5*)
12094         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12095         ;;
12096     esac
12097   fi
12098   sys_lib_dlsearch_path_spec='/usr/lib'
12099   ;;
12100
12101 tpf*)
12102   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12103   version_type=linux
12104   need_lib_prefix=no
12105   need_version=no
12106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107   shlibpath_var=LD_LIBRARY_PATH
12108   shlibpath_overrides_runpath=no
12109   hardcode_into_libs=yes
12110   ;;
12111
12112 uts4*)
12113   version_type=linux
12114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115   soname_spec='${libname}${release}${shared_ext}$major'
12116   shlibpath_var=LD_LIBRARY_PATH
12117   ;;
12118
12119 *)
12120   dynamic_linker=no
12121   ;;
12122 esac
12123 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12124 echo "${ECHO_T}$dynamic_linker" >&6
12125 test "$dynamic_linker" = no && can_build_shared=no
12126
12127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12128 if test "$GCC" = yes; then
12129   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12130 fi
12131
12132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12133   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12134 fi
12135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12136   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12137 fi
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12227 hardcode_action=
12228 if test -n "$hardcode_libdir_flag_spec" ||
12229    test -n "$runpath_var" ||
12230    test "X$hardcode_automatic" = "Xyes" ; then
12231
12232   # We can hardcode non-existent directories.
12233   if test "$hardcode_direct" != no &&
12234      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12235      # have to relink, otherwise we might link with an installed library
12236      # when we should be linking with a yet-to-be-installed one
12237      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12238      test "$hardcode_minus_L" != no; then
12239     # Linking always hardcodes the temporary library directory.
12240     hardcode_action=relink
12241   else
12242     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12243     hardcode_action=immediate
12244   fi
12245 else
12246   # We cannot hardcode anything, or else we can only hardcode existing
12247   # directories.
12248   hardcode_action=unsupported
12249 fi
12250 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12251 echo "${ECHO_T}$hardcode_action" >&6
12252
12253 if test "$hardcode_action" = relink ||
12254    test "$inherit_rpath" = yes; then
12255   # Fast installation is not supported
12256   enable_fast_install=no
12257 elif test "$shlibpath_overrides_runpath" = yes ||
12258      test "$enable_shared" = no; then
12259   # Fast installation is not necessary
12260   enable_fast_install=needless
12261 fi
12262
12263
12264
12265
12266
12267
12268   if test "x$enable_dlopen" != xyes; then
12269   enable_dlopen=unknown
12270   enable_dlopen_self=unknown
12271   enable_dlopen_self_static=unknown
12272 else
12273   lt_cv_dlopen=no
12274   lt_cv_dlopen_libs=
12275
12276   case $host_os in
12277   beos*)
12278     lt_cv_dlopen="load_add_on"
12279     lt_cv_dlopen_libs=
12280     lt_cv_dlopen_self=yes
12281     ;;
12282
12283   mingw* | pw32* | cegcc*)
12284     lt_cv_dlopen="LoadLibrary"
12285     lt_cv_dlopen_libs=
12286     ;;
12287
12288   cygwin*)
12289     lt_cv_dlopen="dlopen"
12290     lt_cv_dlopen_libs=
12291     ;;
12292
12293   darwin*)
12294   # if libdl is installed we need to link against it
12295     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-ldl  $LIBS"
12302 if test x$gcc_no_link = xyes; then
12303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12305    { (exit 1); exit 1; }; }
12306 fi
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314 /* Override any gcc2 internal prototype to avoid an error.  */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 /* We use char because int might match the return type of a gcc2
12319    builtin and then its argument prototype would still apply.  */
12320 char dlopen ();
12321 int
12322 main ()
12323 {
12324 dlopen ();
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331   (eval $ac_link) 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag"
12339                          || test ! -s conftest.err'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_cv_lib_dl_dlopen=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 ac_cv_lib_dl_dlopen=no
12357 fi
12358 rm -f conftest.err conftest.$ac_objext \
12359       conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12361 fi
12362 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12363 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12364 if test $ac_cv_lib_dl_dlopen = yes; then
12365   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12366 else
12367
12368     lt_cv_dlopen="dyld"
12369     lt_cv_dlopen_libs=
12370     lt_cv_dlopen_self=yes
12371
12372 fi
12373
12374     ;;
12375
12376   *)
12377     echo "$as_me:$LINENO: checking for shl_load" >&5
12378 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12379 if test "${ac_cv_func_shl_load+set}" = set; then
12380   echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382   if test x$gcc_no_link = xyes; then
12383   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12385    { (exit 1); exit 1; }; }
12386 fi
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12395 #define shl_load innocuous_shl_load
12396
12397 /* System header to define __stub macros and hopefully few prototypes,
12398     which can conflict with char shl_load (); below.
12399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400     <limits.h> exists even on freestanding compilers.  */
12401
12402 #ifdef __STDC__
12403 # include <limits.h>
12404 #else
12405 # include <assert.h>
12406 #endif
12407
12408 #undef shl_load
12409
12410 /* Override any gcc2 internal prototype to avoid an error.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 {
12414 #endif
12415 /* We use char because int might match the return type of a gcc2
12416    builtin and then its argument prototype would still apply.  */
12417 char shl_load ();
12418 /* The GNU C library defines this for functions which it implements
12419     to always fail with ENOSYS.  Some functions are actually named
12420     something starting with __ and the normal name is an alias.  */
12421 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12422 choke me
12423 #else
12424 char (*f) () = shl_load;
12425 #endif
12426 #ifdef __cplusplus
12427 }
12428 #endif
12429
12430 int
12431 main ()
12432 {
12433 return f != shl_load;
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440   (eval $ac_link) 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -z "$ac_c_werror_flag"
12448                          || test ! -s conftest.err'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest$ac_exeext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460   ac_cv_func_shl_load=yes
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_cv_func_shl_load=no
12466 fi
12467 rm -f conftest.err conftest.$ac_objext \
12468       conftest$ac_exeext conftest.$ac_ext
12469 fi
12470 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12471 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12472 if test $ac_cv_func_shl_load = yes; then
12473   lt_cv_dlopen="shl_load"
12474 else
12475   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12476 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12477 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   ac_check_lib_save_LIBS=$LIBS
12481 LIBS="-ldld  $LIBS"
12482 if test x$gcc_no_link = xyes; then
12483   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12485    { (exit 1); exit 1; }; }
12486 fi
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any gcc2 internal prototype to avoid an error.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499    builtin and then its argument prototype would still apply.  */
12500 char shl_load ();
12501 int
12502 main ()
12503 {
12504 shl_load ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511   (eval $ac_link) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_c_werror_flag"
12519                          || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest$ac_exeext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_cv_lib_dld_shl_load=yes
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_cv_lib_dld_shl_load=no
12537 fi
12538 rm -f conftest.err conftest.$ac_objext \
12539       conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12541 fi
12542 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12543 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12544 if test $ac_cv_lib_dld_shl_load = yes; then
12545   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12546 else
12547   echo "$as_me:$LINENO: checking for dlopen" >&5
12548 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12549 if test "${ac_cv_func_dlopen+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   if test x$gcc_no_link = xyes; then
12553   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12555    { (exit 1); exit 1; }; }
12556 fi
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12565 #define dlopen innocuous_dlopen
12566
12567 /* System header to define __stub macros and hopefully few prototypes,
12568     which can conflict with char dlopen (); below.
12569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570     <limits.h> exists even on freestanding compilers.  */
12571
12572 #ifdef __STDC__
12573 # include <limits.h>
12574 #else
12575 # include <assert.h>
12576 #endif
12577
12578 #undef dlopen
12579
12580 /* Override any gcc2 internal prototype to avoid an error.  */
12581 #ifdef __cplusplus
12582 extern "C"
12583 {
12584 #endif
12585 /* We use char because int might match the return type of a gcc2
12586    builtin and then its argument prototype would still apply.  */
12587 char dlopen ();
12588 /* The GNU C library defines this for functions which it implements
12589     to always fail with ENOSYS.  Some functions are actually named
12590     something starting with __ and the normal name is an alias.  */
12591 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12592 choke me
12593 #else
12594 char (*f) () = dlopen;
12595 #endif
12596 #ifdef __cplusplus
12597 }
12598 #endif
12599
12600 int
12601 main ()
12602 {
12603 return f != dlopen;
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610   (eval $ac_link) 2>conftest.er1
12611   ac_status=$?
12612   grep -v '^ *+' conftest.er1 >conftest.err
12613   rm -f conftest.er1
12614   cat conftest.err >&5
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -z "$ac_c_werror_flag"
12618                          || test ! -s conftest.err'
12619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620   (eval $ac_try) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; } &&
12624          { ac_try='test -s conftest$ac_exeext'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_cv_func_dlopen=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_func_dlopen=no
12636 fi
12637 rm -f conftest.err conftest.$ac_objext \
12638       conftest$ac_exeext conftest.$ac_ext
12639 fi
12640 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12641 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12642 if test $ac_cv_func_dlopen = yes; then
12643   lt_cv_dlopen="dlopen"
12644 else
12645   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12648   echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650   ac_check_lib_save_LIBS=$LIBS
12651 LIBS="-ldl  $LIBS"
12652 if test x$gcc_no_link = xyes; then
12653   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12655    { (exit 1); exit 1; }; }
12656 fi
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663
12664 /* Override any gcc2 internal prototype to avoid an error.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 /* We use char because int might match the return type of a gcc2
12669    builtin and then its argument prototype would still apply.  */
12670 char dlopen ();
12671 int
12672 main ()
12673 {
12674 dlopen ();
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12681   (eval $ac_link) 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_c_werror_flag"
12689                          || test ! -s conftest.err'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; } &&
12695          { ac_try='test -s conftest$ac_exeext'
12696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697   (eval $ac_try) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   ac_cv_lib_dl_dlopen=yes
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_cv_lib_dl_dlopen=no
12707 fi
12708 rm -f conftest.err conftest.$ac_objext \
12709       conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12711 fi
12712 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12713 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12714 if test $ac_cv_lib_dl_dlopen = yes; then
12715   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12716 else
12717   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12718 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12719 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lsvld  $LIBS"
12724 if test x$gcc_no_link = xyes; then
12725   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12727    { (exit 1); exit 1; }; }
12728 fi
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h.  */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h.  */
12735
12736 /* Override any gcc2 internal prototype to avoid an error.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 /* We use char because int might match the return type of a gcc2
12741    builtin and then its argument prototype would still apply.  */
12742 char dlopen ();
12743 int
12744 main ()
12745 {
12746 dlopen ();
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753   (eval $ac_link) 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -z "$ac_c_werror_flag"
12761                          || test ! -s conftest.err'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; } &&
12767          { ac_try='test -s conftest$ac_exeext'
12768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769   (eval $ac_try) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; }; then
12773   ac_cv_lib_svld_dlopen=yes
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 ac_cv_lib_svld_dlopen=no
12779 fi
12780 rm -f conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12785 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12786 if test $ac_cv_lib_svld_dlopen = yes; then
12787   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12788 else
12789   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12790 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12791 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-ldld  $LIBS"
12796 if test x$gcc_no_link = xyes; then
12797   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12799    { (exit 1); exit 1; }; }
12800 fi
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807
12808 /* Override any gcc2 internal prototype to avoid an error.  */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 /* We use char because int might match the return type of a gcc2
12813    builtin and then its argument prototype would still apply.  */
12814 char dld_link ();
12815 int
12816 main ()
12817 {
12818 dld_link ();
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825   (eval $ac_link) 2>conftest.er1
12826   ac_status=$?
12827   grep -v '^ *+' conftest.er1 >conftest.err
12828   rm -f conftest.er1
12829   cat conftest.err >&5
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); } &&
12832          { ac_try='test -z "$ac_c_werror_flag"
12833                          || test ! -s conftest.err'
12834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835   (eval $ac_try) 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); }; } &&
12839          { ac_try='test -s conftest$ac_exeext'
12840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841   (eval $ac_try) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); }; }; then
12845   ac_cv_lib_dld_dld_link=yes
12846 else
12847   echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12849
12850 ac_cv_lib_dld_dld_link=no
12851 fi
12852 rm -f conftest.err conftest.$ac_objext \
12853       conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12855 fi
12856 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12857 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12858 if test $ac_cv_lib_dld_dld_link = yes; then
12859   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12860 fi
12861
12862
12863 fi
12864
12865
12866 fi
12867
12868
12869 fi
12870
12871
12872 fi
12873
12874
12875 fi
12876
12877     ;;
12878   esac
12879
12880   if test "x$lt_cv_dlopen" != xno; then
12881     enable_dlopen=yes
12882   else
12883     enable_dlopen=no
12884   fi
12885
12886   case $lt_cv_dlopen in
12887   dlopen)
12888     save_CPPFLAGS="$CPPFLAGS"
12889     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12890
12891     save_LDFLAGS="$LDFLAGS"
12892     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12893
12894     save_LIBS="$LIBS"
12895     LIBS="$lt_cv_dlopen_libs $LIBS"
12896
12897     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12898 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12899 if test "${lt_cv_dlopen_self+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902           if test "$cross_compiling" = yes; then :
12903   lt_cv_dlopen_self=cross
12904 else
12905   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12906   lt_status=$lt_dlunknown
12907   cat > conftest.$ac_ext <<_LT_EOF
12908 #line 12908 "configure"
12909 #include "confdefs.h"
12910
12911 #if HAVE_DLFCN_H
12912 #include <dlfcn.h>
12913 #endif
12914
12915 #include <stdio.h>
12916
12917 #ifdef RTLD_GLOBAL
12918 #  define LT_DLGLOBAL           RTLD_GLOBAL
12919 #else
12920 #  ifdef DL_GLOBAL
12921 #    define LT_DLGLOBAL         DL_GLOBAL
12922 #  else
12923 #    define LT_DLGLOBAL         0
12924 #  endif
12925 #endif
12926
12927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12928    find out it does not work in some platform. */
12929 #ifndef LT_DLLAZY_OR_NOW
12930 #  ifdef RTLD_LAZY
12931 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12932 #  else
12933 #    ifdef DL_LAZY
12934 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12935 #    else
12936 #      ifdef RTLD_NOW
12937 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12938 #      else
12939 #        ifdef DL_NOW
12940 #          define LT_DLLAZY_OR_NOW      DL_NOW
12941 #        else
12942 #          define LT_DLLAZY_OR_NOW      0
12943 #        endif
12944 #      endif
12945 #    endif
12946 #  endif
12947 #endif
12948
12949 void fnord() { int i=42;}
12950 int main ()
12951 {
12952   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12953   int status = $lt_dlunknown;
12954
12955   if (self)
12956     {
12957       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12958       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12959       /* dlclose (self); */
12960     }
12961   else
12962     puts (dlerror ());
12963
12964   return status;
12965 }
12966 _LT_EOF
12967   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968   (eval $ac_link) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12972     (./conftest; exit; ) >&5 2>/dev/null
12973     lt_status=$?
12974     case x$lt_status in
12975       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12976       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12977       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12978     esac
12979   else :
12980     # compilation failed
12981     lt_cv_dlopen_self=no
12982   fi
12983 fi
12984 rm -fr conftest*
12985
12986
12987 fi
12988 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12989 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12990
12991     if test "x$lt_cv_dlopen_self" = xyes; then
12992       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12993       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12994 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12995 if test "${lt_cv_dlopen_self_static+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998           if test "$cross_compiling" = yes; then :
12999   lt_cv_dlopen_self_static=cross
13000 else
13001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13002   lt_status=$lt_dlunknown
13003   cat > conftest.$ac_ext <<_LT_EOF
13004 #line 13004 "configure"
13005 #include "confdefs.h"
13006
13007 #if HAVE_DLFCN_H
13008 #include <dlfcn.h>
13009 #endif
13010
13011 #include <stdio.h>
13012
13013 #ifdef RTLD_GLOBAL
13014 #  define LT_DLGLOBAL           RTLD_GLOBAL
13015 #else
13016 #  ifdef DL_GLOBAL
13017 #    define LT_DLGLOBAL         DL_GLOBAL
13018 #  else
13019 #    define LT_DLGLOBAL         0
13020 #  endif
13021 #endif
13022
13023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13024    find out it does not work in some platform. */
13025 #ifndef LT_DLLAZY_OR_NOW
13026 #  ifdef RTLD_LAZY
13027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13028 #  else
13029 #    ifdef DL_LAZY
13030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13031 #    else
13032 #      ifdef RTLD_NOW
13033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13034 #      else
13035 #        ifdef DL_NOW
13036 #          define LT_DLLAZY_OR_NOW      DL_NOW
13037 #        else
13038 #          define LT_DLLAZY_OR_NOW      0
13039 #        endif
13040 #      endif
13041 #    endif
13042 #  endif
13043 #endif
13044
13045 void fnord() { int i=42;}
13046 int main ()
13047 {
13048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13049   int status = $lt_dlunknown;
13050
13051   if (self)
13052     {
13053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13054       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13055       /* dlclose (self); */
13056     }
13057   else
13058     puts (dlerror ());
13059
13060   return status;
13061 }
13062 _LT_EOF
13063   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064   (eval $ac_link) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13068     (./conftest; exit; ) >&5 2>/dev/null
13069     lt_status=$?
13070     case x$lt_status in
13071       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13072       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13073       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13074     esac
13075   else :
13076     # compilation failed
13077     lt_cv_dlopen_self_static=no
13078   fi
13079 fi
13080 rm -fr conftest*
13081
13082
13083 fi
13084 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13085 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13086     fi
13087
13088     CPPFLAGS="$save_CPPFLAGS"
13089     LDFLAGS="$save_LDFLAGS"
13090     LIBS="$save_LIBS"
13091     ;;
13092   esac
13093
13094   case $lt_cv_dlopen_self in
13095   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13096   *) enable_dlopen_self=unknown ;;
13097   esac
13098
13099   case $lt_cv_dlopen_self_static in
13100   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13101   *) enable_dlopen_self_static=unknown ;;
13102   esac
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 striplib=
13122 old_striplib=
13123 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13124 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13126   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13127   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13128   echo "$as_me:$LINENO: result: yes" >&5
13129 echo "${ECHO_T}yes" >&6
13130 else
13131 # FIXME - insert some real tests, host_os isn't really good enough
13132   case $host_os in
13133   darwin*)
13134     if test -n "$STRIP" ; then
13135       striplib="$STRIP -x"
13136       old_striplib="$STRIP -S"
13137       echo "$as_me:$LINENO: result: yes" >&5
13138 echo "${ECHO_T}yes" >&6
13139     else
13140       echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6
13142     fi
13143     ;;
13144   *)
13145     echo "$as_me:$LINENO: result: no" >&5
13146 echo "${ECHO_T}no" >&6
13147     ;;
13148   esac
13149 fi
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162   # Report which library types will actually be built
13163   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13164 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13165   echo "$as_me:$LINENO: result: $can_build_shared" >&5
13166 echo "${ECHO_T}$can_build_shared" >&6
13167
13168   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13169 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13170   test "$can_build_shared" = "no" && enable_shared=no
13171
13172   # On AIX, shared libraries and static libraries use the same namespace, and
13173   # are all built from PIC.
13174   case $host_os in
13175   aix3*)
13176     test "$enable_shared" = yes && enable_static=no
13177     if test -n "$RANLIB"; then
13178       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13179       postinstall_cmds='$RANLIB $lib'
13180     fi
13181     ;;
13182
13183   aix[4-9]*)
13184     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13185       test "$enable_shared" = yes && enable_static=no
13186     fi
13187     ;;
13188   esac
13189   echo "$as_me:$LINENO: result: $enable_shared" >&5
13190 echo "${ECHO_T}$enable_shared" >&6
13191
13192   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13193 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13194   # Make sure either enable_shared or enable_static is yes.
13195   test "$enable_shared" = yes || enable_static=yes
13196   echo "$as_me:$LINENO: result: $enable_static" >&5
13197 echo "${ECHO_T}$enable_static" >&6
13198
13199
13200
13201
13202 fi
13203 ac_ext=c
13204 ac_cpp='$CPP $CPPFLAGS'
13205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208
13209 CC="$lt_save_CC"
13210
13211
13212 ac_ext=cc
13213 ac_cpp='$CXXCPP $CPPFLAGS'
13214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13217
13218 archive_cmds_need_lc_CXX=no
13219 allow_undefined_flag_CXX=
13220 always_export_symbols_CXX=no
13221 archive_expsym_cmds_CXX=
13222 compiler_needs_object_CXX=no
13223 export_dynamic_flag_spec_CXX=
13224 hardcode_direct_CXX=no
13225 hardcode_direct_absolute_CXX=no
13226 hardcode_libdir_flag_spec_CXX=
13227 hardcode_libdir_flag_spec_ld_CXX=
13228 hardcode_libdir_separator_CXX=
13229 hardcode_minus_L_CXX=no
13230 hardcode_shlibpath_var_CXX=unsupported
13231 hardcode_automatic_CXX=no
13232 inherit_rpath_CXX=no
13233 module_cmds_CXX=
13234 module_expsym_cmds_CXX=
13235 link_all_deplibs_CXX=unknown
13236 old_archive_cmds_CXX=$old_archive_cmds
13237 no_undefined_flag_CXX=
13238 whole_archive_flag_spec_CXX=
13239 enable_shared_with_static_runtimes_CXX=no
13240
13241 # Source file extension for C++ test sources.
13242 ac_ext=cpp
13243
13244 # Object file extension for compiled C++ test sources.
13245 objext=o
13246 objext_CXX=$objext
13247
13248 # No sense in running all these tests if we already determined that
13249 # the CXX compiler isn't working.  Some variables (like enable_shared)
13250 # are currently assumed to apply to all compilers on this platform,
13251 # and will be corrupted by setting them based on a non-working compiler.
13252 if test "$_lt_caught_CXX_error" != yes; then
13253   # Code to be used in simple compile tests
13254   lt_simple_compile_test_code="int some_variable = 0;"
13255
13256   # Code to be used in simple link tests
13257   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13258
13259   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13260
13261
13262
13263
13264
13265
13266 # If no C compiler was specified, use CC.
13267 LTCC=${LTCC-"$CC"}
13268
13269 # If no C compiler flags were specified, use CFLAGS.
13270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13271
13272 # Allow CC to be a program name with arguments.
13273 compiler=$CC
13274
13275
13276   # save warnings/boilerplate of simple test code
13277   ac_outfile=conftest.$ac_objext
13278 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13280 _lt_compiler_boilerplate=`cat conftest.err`
13281 $RM conftest*
13282
13283   ac_outfile=conftest.$ac_objext
13284 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13286 _lt_linker_boilerplate=`cat conftest.err`
13287 $RM -r conftest*
13288
13289
13290   # Allow CC to be a program name with arguments.
13291   lt_save_CC=$CC
13292   lt_save_LD=$LD
13293   lt_save_GCC=$GCC
13294   GCC=$GXX
13295   lt_save_with_gnu_ld=$with_gnu_ld
13296   lt_save_path_LD=$lt_cv_path_LD
13297   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13298     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13299   else
13300     $as_unset lt_cv_prog_gnu_ld
13301   fi
13302   if test -n "${lt_cv_path_LDCXX+set}"; then
13303     lt_cv_path_LD=$lt_cv_path_LDCXX
13304   else
13305     $as_unset lt_cv_path_LD
13306   fi
13307   test -z "${LDCXX+set}" || LD=$LDCXX
13308   CC=${CXX-"c++"}
13309   compiler=$CC
13310   compiler_CXX=$CC
13311   for cc_temp in $compiler""; do
13312   case $cc_temp in
13313     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13314     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13315     \-*) ;;
13316     *) break;;
13317   esac
13318 done
13319 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13320
13321
13322   if test -n "$compiler"; then
13323     # We don't want -fno-exception when compiling C++ code, so set the
13324     # no_builtin_flag separately
13325     if test "$GXX" = yes; then
13326       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13327     else
13328       lt_prog_compiler_no_builtin_flag_CXX=
13329     fi
13330
13331     if test "$GXX" = yes; then
13332       # Set up default GNU C++ configuration
13333
13334
13335
13336 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13337 if test "${with_gnu_ld+set}" = set; then
13338   withval="$with_gnu_ld"
13339   test "$withval" = no || with_gnu_ld=yes
13340 else
13341   with_gnu_ld=no
13342 fi;
13343 ac_prog=ld
13344 if test "$GCC" = yes; then
13345   # Check if gcc -print-prog-name=ld gives a path.
13346   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13347 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13348   case $host in
13349   *-*-mingw*)
13350     # gcc leaves a trailing carriage return which upsets mingw
13351     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13352   *)
13353     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13354   esac
13355   case $ac_prog in
13356     # Accept absolute paths.
13357     [\\/]* | ?:[\\/]*)
13358       re_direlt='/[^/][^/]*/\.\./'
13359       # Canonicalize the pathname of ld
13360       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13361       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13362         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13363       done
13364       test -z "$LD" && LD="$ac_prog"
13365       ;;
13366   "")
13367     # If it fails, then pretend we aren't using GCC.
13368     ac_prog=ld
13369     ;;
13370   *)
13371     # If it is relative, then search for the first ld in PATH.
13372     with_gnu_ld=unknown
13373     ;;
13374   esac
13375 elif test "$with_gnu_ld" = yes; then
13376   echo "$as_me:$LINENO: checking for GNU ld" >&5
13377 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13378 else
13379   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13380 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13381 fi
13382 if test "${lt_cv_path_LD+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   if test -z "$LD"; then
13386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13387   for ac_dir in $PATH; do
13388     IFS="$lt_save_ifs"
13389     test -z "$ac_dir" && ac_dir=.
13390     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13391       lt_cv_path_LD="$ac_dir/$ac_prog"
13392       # Check to see if the program is GNU ld.  I'd rather use --version,
13393       # but apparently some variants of GNU ld only accept -v.
13394       # Break only if it was the GNU/non-GNU ld that we prefer.
13395       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13396       *GNU* | *'with BFD'*)
13397         test "$with_gnu_ld" != no && break
13398         ;;
13399       *)
13400         test "$with_gnu_ld" != yes && break
13401         ;;
13402       esac
13403     fi
13404   done
13405   IFS="$lt_save_ifs"
13406 else
13407   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13408 fi
13409 fi
13410
13411 LD="$lt_cv_path_LD"
13412 if test -n "$LD"; then
13413   echo "$as_me:$LINENO: result: $LD" >&5
13414 echo "${ECHO_T}$LD" >&6
13415 else
13416   echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6
13418 fi
13419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13421    { (exit 1); exit 1; }; }
13422 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13423 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13424 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13428 case `$LD -v 2>&1 </dev/null` in
13429 *GNU* | *'with BFD'*)
13430   lt_cv_prog_gnu_ld=yes
13431   ;;
13432 *)
13433   lt_cv_prog_gnu_ld=no
13434   ;;
13435 esac
13436 fi
13437 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13438 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13439 with_gnu_ld=$lt_cv_prog_gnu_ld
13440
13441
13442
13443
13444
13445
13446
13447       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13448       # archiving commands below assume that GNU ld is being used.
13449       if test "$with_gnu_ld" = yes; then
13450         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451         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'
13452
13453         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13454         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13455
13456         # If archive_cmds runs LD, not CC, wlarc should be empty
13457         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13458         #     investigate it a little bit more. (MM)
13459         wlarc='${wl}'
13460
13461         # ancient GNU ld didn't support --whole-archive et. al.
13462         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13463           $GREP 'no-whole-archive' > /dev/null; then
13464           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13465         else
13466           whole_archive_flag_spec_CXX=
13467         fi
13468       else
13469         with_gnu_ld=no
13470         wlarc=
13471
13472         # A generic and very simple default shared library creation
13473         # command for GNU C++ for the case where it uses the native
13474         # linker, instead of GNU ld.  If possible, this setting should
13475         # overridden to take advantage of the native linker features on
13476         # the platform it is being used on.
13477         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13478       fi
13479
13480       # Commands to make compiler produce verbose output that lists
13481       # what "hidden" libraries, object files and flags are used when
13482       # linking a shared library.
13483       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13484
13485     else
13486       GXX=no
13487       with_gnu_ld=no
13488       wlarc=
13489     fi
13490
13491     # PORTME: fill in a description of your system's C++ link characteristics
13492     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13494     ld_shlibs_CXX=yes
13495     case $host_os in
13496       aix3*)
13497         # FIXME: insert proper C++ library support
13498         ld_shlibs_CXX=no
13499         ;;
13500       aix[4-9]*)
13501         if test "$host_cpu" = ia64; then
13502           # On IA64, the linker does run time linking by default, so we don't
13503           # have to do anything special.
13504           aix_use_runtimelinking=no
13505           exp_sym_flag='-Bexport'
13506           no_entry_flag=""
13507         else
13508           aix_use_runtimelinking=no
13509
13510           # Test if we are trying to use run time linking or normal
13511           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13512           # need to do runtime linking.
13513           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13514             for ld_flag in $LDFLAGS; do
13515               case $ld_flag in
13516               *-brtl*)
13517                 aix_use_runtimelinking=yes
13518                 break
13519                 ;;
13520               esac
13521             done
13522             ;;
13523           esac
13524
13525           exp_sym_flag='-bexport'
13526           no_entry_flag='-bnoentry'
13527         fi
13528
13529         # When large executables or shared objects are built, AIX ld can
13530         # have problems creating the table of contents.  If linking a library
13531         # or program results in "error TOC overflow" add -mminimal-toc to
13532         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13533         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13534
13535         archive_cmds_CXX=''
13536         hardcode_direct_CXX=yes
13537         hardcode_direct_absolute_CXX=yes
13538         hardcode_libdir_separator_CXX=':'
13539         link_all_deplibs_CXX=yes
13540         file_list_spec_CXX='${wl}-f,'
13541
13542         if test "$GXX" = yes; then
13543           case $host_os in aix4.[012]|aix4.[012].*)
13544           # We only want to do this on AIX 4.2 and lower, the check
13545           # below for broken collect2 doesn't work under 4.3+
13546           collect2name=`${CC} -print-prog-name=collect2`
13547           if test -f "$collect2name" &&
13548              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13549           then
13550             # We have reworked collect2
13551             :
13552           else
13553             # We have old collect2
13554             hardcode_direct_CXX=unsupported
13555             # It fails to find uninstalled libraries when the uninstalled
13556             # path is not listed in the libpath.  Setting hardcode_minus_L
13557             # to unsupported forces relinking
13558             hardcode_minus_L_CXX=yes
13559             hardcode_libdir_flag_spec_CXX='-L$libdir'
13560             hardcode_libdir_separator_CXX=
13561           fi
13562           esac
13563           shared_flag='-shared'
13564           if test "$aix_use_runtimelinking" = yes; then
13565             shared_flag="$shared_flag "'${wl}-G'
13566           fi
13567         else
13568           # not using gcc
13569           if test "$host_cpu" = ia64; then
13570           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13571           # chokes on -Wl,-G. The following line is correct:
13572           shared_flag='-G'
13573           else
13574             if test "$aix_use_runtimelinking" = yes; then
13575               shared_flag='${wl}-G'
13576             else
13577               shared_flag='${wl}-bM:SRE'
13578             fi
13579           fi
13580         fi
13581
13582         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13583         # It seems that -bexpall does not export symbols beginning with
13584         # underscore (_), so it is better to generate a list of symbols to
13585         # export.
13586         always_export_symbols_CXX=yes
13587         if test "$aix_use_runtimelinking" = yes; then
13588           # Warning - without using the other runtime loading flags (-brtl),
13589           # -berok will link without error, but may produce a broken library.
13590           allow_undefined_flag_CXX='-berok'
13591           # Determine the default libpath from the value encoded in an empty
13592           # executable.
13593           if test x$gcc_no_link = xyes; then
13594   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13596    { (exit 1); exit 1; }; }
13597 fi
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h.  */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h.  */
13604
13605 int
13606 main ()
13607 {
13608
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615   (eval $ac_link) 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -z "$ac_cxx_werror_flag"
13623                          || test ! -s conftest.err'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest$ac_exeext'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; }; then
13635
13636 lt_aix_libpath_sed='
13637     /Import File Strings/,/^$/ {
13638         /^0/ {
13639             s/^0  *\(.*\)$/\1/
13640             p
13641         }
13642     }'
13643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13644 # Check for a 64-bit object if we didn't find anything.
13645 if test -z "$aix_libpath"; then
13646   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13647 fi
13648 else
13649   echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 fi
13653 rm -f conftest.err conftest.$ac_objext \
13654       conftest$ac_exeext conftest.$ac_ext
13655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13656
13657           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13658
13659           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"
13660         else
13661           if test "$host_cpu" = ia64; then
13662             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13663             allow_undefined_flag_CXX="-z nodefs"
13664             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"
13665           else
13666             # Determine the default libpath from the value encoded in an
13667             # empty executable.
13668             if test x$gcc_no_link = xyes; then
13669   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13671    { (exit 1); exit 1; }; }
13672 fi
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679
13680 int
13681 main ()
13682 {
13683
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690   (eval $ac_link) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_cxx_werror_flag"
13698                          || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest$ac_exeext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710
13711 lt_aix_libpath_sed='
13712     /Import File Strings/,/^$/ {
13713         /^0/ {
13714             s/^0  *\(.*\)$/\1/
13715             p
13716         }
13717     }'
13718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13719 # Check for a 64-bit object if we didn't find anything.
13720 if test -z "$aix_libpath"; then
13721   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13722 fi
13723 else
13724   echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727 fi
13728 rm -f conftest.err conftest.$ac_objext \
13729       conftest$ac_exeext conftest.$ac_ext
13730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13731
13732             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13733             # Warning - without using the other run time loading flags,
13734             # -berok will link without error, but may produce a broken library.
13735             no_undefined_flag_CXX=' ${wl}-bernotok'
13736             allow_undefined_flag_CXX=' ${wl}-berok'
13737             # Exported symbols can be pulled into shared objects from archives
13738             whole_archive_flag_spec_CXX='$convenience'
13739             archive_cmds_need_lc_CXX=yes
13740             # This is similar to how AIX traditionally builds its shared
13741             # libraries.
13742             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'
13743           fi
13744         fi
13745         ;;
13746
13747       beos*)
13748         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13749           allow_undefined_flag_CXX=unsupported
13750           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13751           # support --undefined.  This deserves some investigation.  FIXME
13752           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13753         else
13754           ld_shlibs_CXX=no
13755         fi
13756         ;;
13757
13758       chorus*)
13759         case $cc_basename in
13760           *)
13761           # FIXME: insert proper C++ library support
13762           ld_shlibs_CXX=no
13763           ;;
13764         esac
13765         ;;
13766
13767       cygwin* | mingw* | pw32* | cegcc*)
13768         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13769         # as there is no search path for DLLs.
13770         hardcode_libdir_flag_spec_CXX='-L$libdir'
13771         allow_undefined_flag_CXX=unsupported
13772         always_export_symbols_CXX=no
13773         enable_shared_with_static_runtimes_CXX=yes
13774
13775         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13776           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'
13777           # If the export-symbols file already is a .def file (1st line
13778           # is EXPORTS), use it as is; otherwise, prepend...
13779           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13780             cp $export_symbols $output_objdir/$soname.def;
13781           else
13782             echo EXPORTS > $output_objdir/$soname.def;
13783             cat $export_symbols >> $output_objdir/$soname.def;
13784           fi~
13785           $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'
13786         else
13787           ld_shlibs_CXX=no
13788         fi
13789         ;;
13790       darwin* | rhapsody*)
13791
13792
13793   archive_cmds_need_lc_CXX=no
13794   hardcode_direct_CXX=no
13795   hardcode_automatic_CXX=yes
13796   hardcode_shlibpath_var_CXX=unsupported
13797   whole_archive_flag_spec_CXX=''
13798   link_all_deplibs_CXX=yes
13799   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13800   case $cc_basename in
13801      ifort*) _lt_dar_can_shared=yes ;;
13802      *) _lt_dar_can_shared=$GCC ;;
13803   esac
13804   if test "$_lt_dar_can_shared" = "yes"; then
13805     output_verbose_link_cmd=echo
13806     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13807     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13808     archive_expsym_cmds_CXX="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13809     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13810        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13811       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${_lt_dsymutil}"
13812       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${_lt_dar_export_syms}${_lt_dsymutil}"
13813     fi
13814
13815   else
13816   ld_shlibs_CXX=no
13817   fi
13818
13819         ;;
13820
13821       dgux*)
13822         case $cc_basename in
13823           ec++*)
13824             # FIXME: insert proper C++ library support
13825             ld_shlibs_CXX=no
13826             ;;
13827           ghcx*)
13828             # Green Hills C++ Compiler
13829             # FIXME: insert proper C++ library support
13830             ld_shlibs_CXX=no
13831             ;;
13832           *)
13833             # FIXME: insert proper C++ library support
13834             ld_shlibs_CXX=no
13835             ;;
13836         esac
13837         ;;
13838
13839       freebsd[12]*)
13840         # C++ shared libraries reported to be fairly broken before
13841         # switch to ELF
13842         ld_shlibs_CXX=no
13843         ;;
13844
13845       freebsd-elf*)
13846         archive_cmds_need_lc_CXX=no
13847         ;;
13848
13849       freebsd* | dragonfly*)
13850         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13851         # conventions
13852         ld_shlibs_CXX=yes
13853         ;;
13854
13855       gnu*)
13856         ;;
13857
13858       hpux9*)
13859         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13860         hardcode_libdir_separator_CXX=:
13861         export_dynamic_flag_spec_CXX='${wl}-E'
13862         hardcode_direct_CXX=yes
13863         hardcode_minus_L_CXX=yes # Not in the search PATH,
13864                                              # but as the default
13865                                              # location of the library.
13866
13867         case $cc_basename in
13868           CC*)
13869             # FIXME: insert proper C++ library support
13870             ld_shlibs_CXX=no
13871             ;;
13872           aCC*)
13873             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'
13874             # Commands to make compiler produce verbose output that lists
13875             # what "hidden" libraries, object files and flags are used when
13876             # linking a shared library.
13877             #
13878             # There doesn't appear to be a way to prevent this compiler from
13879             # explicitly linking system object files so we need to strip them
13880             # from the output so that they don't get included in the library
13881             # dependencies.
13882             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'
13883             ;;
13884           *)
13885             if test "$GXX" = yes; then
13886               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'
13887             else
13888               # FIXME: insert proper C++ library support
13889               ld_shlibs_CXX=no
13890             fi
13891             ;;
13892         esac
13893         ;;
13894
13895       hpux10*|hpux11*)
13896         if test $with_gnu_ld = no; then
13897           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13898           hardcode_libdir_separator_CXX=:
13899
13900           case $host_cpu in
13901             hppa*64*|ia64*)
13902               ;;
13903             *)
13904               export_dynamic_flag_spec_CXX='${wl}-E'
13905               ;;
13906           esac
13907         fi
13908         case $host_cpu in
13909           hppa*64*|ia64*)
13910             hardcode_direct_CXX=no
13911             hardcode_shlibpath_var_CXX=no
13912             ;;
13913           *)
13914             hardcode_direct_CXX=yes
13915             hardcode_direct_absolute_CXX=yes
13916             hardcode_minus_L_CXX=yes # Not in the search PATH,
13917                                                  # but as the default
13918                                                  # location of the library.
13919             ;;
13920         esac
13921
13922         case $cc_basename in
13923           CC*)
13924             # FIXME: insert proper C++ library support
13925             ld_shlibs_CXX=no
13926             ;;
13927           aCC*)
13928             case $host_cpu in
13929               hppa*64*)
13930                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13931                 ;;
13932               ia64*)
13933                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13934                 ;;
13935               *)
13936                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13937                 ;;
13938             esac
13939             # Commands to make compiler produce verbose output that lists
13940             # what "hidden" libraries, object files and flags are used when
13941             # linking a shared library.
13942             #
13943             # There doesn't appear to be a way to prevent this compiler from
13944             # explicitly linking system object files so we need to strip them
13945             # from the output so that they don't get included in the library
13946             # dependencies.
13947             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'
13948             ;;
13949           *)
13950             if test "$GXX" = yes; then
13951               if test $with_gnu_ld = no; then
13952                 case $host_cpu in
13953                   hppa*64*)
13954                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13955                     ;;
13956                   ia64*)
13957                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13958                     ;;
13959                   *)
13960                     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'
13961                     ;;
13962                 esac
13963               fi
13964             else
13965               # FIXME: insert proper C++ library support
13966               ld_shlibs_CXX=no
13967             fi
13968             ;;
13969         esac
13970         ;;
13971
13972       interix[3-9]*)
13973         hardcode_direct_CXX=no
13974         hardcode_shlibpath_var_CXX=no
13975         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976         export_dynamic_flag_spec_CXX='${wl}-E'
13977         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13978         # Instead, shared libraries are loaded at an image base (0x10000000 by
13979         # default) and relocated if they conflict, which is a slow very memory
13980         # consuming and fragmenting process.  To avoid this, we pick a random,
13981         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13982         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13983         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'
13984         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'
13985         ;;
13986       irix5* | irix6*)
13987         case $cc_basename in
13988           CC*)
13989             # SGI C++
13990             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'
13991
13992             # Archives containing C++ object files must be created using
13993             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13994             # necessary to make sure instantiated templates are included
13995             # in the archive.
13996             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13997             ;;
13998           *)
13999             if test "$GXX" = yes; then
14000               if test "$with_gnu_ld" = no; then
14001                 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'
14002               else
14003                 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'
14004               fi
14005             fi
14006             link_all_deplibs_CXX=yes
14007             ;;
14008         esac
14009         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010         hardcode_libdir_separator_CXX=:
14011         inherit_rpath_CXX=yes
14012         ;;
14013
14014       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14015         case $cc_basename in
14016           KCC*)
14017             # Kuck and Associates, Inc. (KAI) C++ Compiler
14018
14019             # KCC will only create a shared library if the output file
14020             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14021             # to its proper name (with version) after linking.
14022             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'
14023             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'
14024             # Commands to make compiler produce verbose output that lists
14025             # what "hidden" libraries, object files and flags are used when
14026             # linking a shared library.
14027             #
14028             # There doesn't appear to be a way to prevent this compiler from
14029             # explicitly linking system object files so we need to strip them
14030             # from the output so that they don't get included in the library
14031             # dependencies.
14032             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'
14033
14034             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14035             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14036
14037             # Archives containing C++ object files must be created using
14038             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14039             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14040             ;;
14041           icpc* | ecpc* )
14042             # Intel C++
14043             with_gnu_ld=yes
14044             # version 8.0 and above of icpc choke on multiply defined symbols
14045             # if we add $predep_objects and $postdep_objects, however 7.1 and
14046             # earlier do not add the objects themselves.
14047             case `$CC -V 2>&1` in
14048               *"Version 7."*)
14049                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050                 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'
14051                 ;;
14052               *)  # Version 8.0 or newer
14053                 tmp_idyn=
14054                 case $host_cpu in
14055                   ia64*) tmp_idyn=' -i_dynamic';;
14056                 esac
14057                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14058                 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'
14059                 ;;
14060             esac
14061             archive_cmds_need_lc_CXX=no
14062             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14063             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14064             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14065             ;;
14066           pgCC* | pgcpp*)
14067             # Portland Group C++ compiler
14068             case `$CC -V` in
14069             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14070               prelink_cmds_CXX='tpldir=Template.dir~
14071                 rm -rf $tpldir~
14072                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14073                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14074               old_archive_cmds_CXX='tpldir=Template.dir~
14075                 rm -rf $tpldir~
14076                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14077                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14078                 $RANLIB $oldlib'
14079               archive_cmds_CXX='tpldir=Template.dir~
14080                 rm -rf $tpldir~
14081                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14082                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14083               archive_expsym_cmds_CXX='tpldir=Template.dir~
14084                 rm -rf $tpldir~
14085                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14086                 $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'
14087               ;;
14088             *) # Version 6 will use weak symbols
14089               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14090               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'
14091               ;;
14092             esac
14093
14094             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14095             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14096             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'
14097             ;;
14098           cxx*)
14099             # Compaq C++
14100             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14101             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'
14102
14103             runpath_var=LD_RUN_PATH
14104             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14105             hardcode_libdir_separator_CXX=:
14106
14107             # Commands to make compiler produce verbose output that lists
14108             # what "hidden" libraries, object files and flags are used when
14109             # linking a shared library.
14110             #
14111             # There doesn't appear to be a way to prevent this compiler from
14112             # explicitly linking system object files so we need to strip them
14113             # from the output so that they don't get included in the library
14114             # dependencies.
14115             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'
14116             ;;
14117           xl*)
14118             # IBM XL 8.0 on PPC, with GNU ld
14119             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14120             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14121             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14122             if test "x$supports_anon_versioning" = xyes; then
14123               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14124                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14125                 echo "local: *; };" >> $output_objdir/$libname.ver~
14126                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14127             fi
14128             ;;
14129           *)
14130             case `$CC -V 2>&1 | sed 5q` in
14131             *Sun\ C*)
14132               # Sun C++ 5.9
14133               no_undefined_flag_CXX=' -zdefs'
14134               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14135               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'
14136               hardcode_libdir_flag_spec_CXX='-R$libdir'
14137               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'
14138               compiler_needs_object_CXX=yes
14139
14140               # Not sure whether something based on
14141               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14142               # would be better.
14143               output_verbose_link_cmd='echo'
14144
14145               # Archives containing C++ object files must be created using
14146               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14147               # necessary to make sure instantiated templates are included
14148               # in the archive.
14149               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14150               ;;
14151             esac
14152             ;;
14153         esac
14154         ;;
14155
14156       lynxos*)
14157         # FIXME: insert proper C++ library support
14158         ld_shlibs_CXX=no
14159         ;;
14160
14161       m88k*)
14162         # FIXME: insert proper C++ library support
14163         ld_shlibs_CXX=no
14164         ;;
14165
14166       mvs*)
14167         case $cc_basename in
14168           cxx*)
14169             # FIXME: insert proper C++ library support
14170             ld_shlibs_CXX=no
14171             ;;
14172           *)
14173             # FIXME: insert proper C++ library support
14174             ld_shlibs_CXX=no
14175             ;;
14176         esac
14177         ;;
14178
14179       netbsd*)
14180         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14181           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14182           wlarc=
14183           hardcode_libdir_flag_spec_CXX='-R$libdir'
14184           hardcode_direct_CXX=yes
14185           hardcode_shlibpath_var_CXX=no
14186         fi
14187         # Workaround some broken pre-1.5 toolchains
14188         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14189         ;;
14190
14191       *nto* | *qnx*)
14192         ld_shlibs_CXX=yes
14193         ;;
14194
14195       openbsd2*)
14196         # C++ shared libraries are fairly broken
14197         ld_shlibs_CXX=no
14198         ;;
14199
14200       openbsd*)
14201         if test -f /usr/libexec/ld.so; then
14202           hardcode_direct_CXX=yes
14203           hardcode_shlibpath_var_CXX=no
14204           hardcode_direct_absolute_CXX=yes
14205           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14206           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14207           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14208             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14209             export_dynamic_flag_spec_CXX='${wl}-E'
14210             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14211           fi
14212           output_verbose_link_cmd=echo
14213         else
14214           ld_shlibs_CXX=no
14215         fi
14216         ;;
14217
14218       osf3* | osf4* | osf5*)
14219         case $cc_basename in
14220           KCC*)
14221             # Kuck and Associates, Inc. (KAI) C++ Compiler
14222
14223             # KCC will only create a shared library if the output file
14224             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14225             # to its proper name (with version) after linking.
14226             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'
14227
14228             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14229             hardcode_libdir_separator_CXX=:
14230
14231             # Archives containing C++ object files must be created using
14232             # the KAI C++ compiler.
14233             case $host in
14234               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14235               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14236             esac
14237             ;;
14238           RCC*)
14239             # Rational C++ 2.4.1
14240             # FIXME: insert proper C++ library support
14241             ld_shlibs_CXX=no
14242             ;;
14243           cxx*)
14244             case $host in
14245               osf3*)
14246                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14247                 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'
14248                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14249                 ;;
14250               *)
14251                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14252                 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'
14253                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14254                   echo "-hidden">> $lib.exp~
14255                   $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~
14256                   $RM $lib.exp'
14257                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14258                 ;;
14259             esac
14260
14261             hardcode_libdir_separator_CXX=:
14262
14263             # Commands to make compiler produce verbose output that lists
14264             # what "hidden" libraries, object files and flags are used when
14265             # linking a shared library.
14266             #
14267             # There doesn't appear to be a way to prevent this compiler from
14268             # explicitly linking system object files so we need to strip them
14269             # from the output so that they don't get included in the library
14270             # dependencies.
14271             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'
14272             ;;
14273           *)
14274             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14275               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14276               case $host in
14277                 osf3*)
14278                   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'
14279                   ;;
14280                 *)
14281                   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'
14282                   ;;
14283               esac
14284
14285               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14286               hardcode_libdir_separator_CXX=:
14287
14288               # Commands to make compiler produce verbose output that lists
14289               # what "hidden" libraries, object files and flags are used when
14290               # linking a shared library.
14291               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14292
14293             else
14294               # FIXME: insert proper C++ library support
14295               ld_shlibs_CXX=no
14296             fi
14297             ;;
14298         esac
14299         ;;
14300
14301       psos*)
14302         # FIXME: insert proper C++ library support
14303         ld_shlibs_CXX=no
14304         ;;
14305
14306       sunos4*)
14307         case $cc_basename in
14308           CC*)
14309             # Sun C++ 4.x
14310             # FIXME: insert proper C++ library support
14311             ld_shlibs_CXX=no
14312             ;;
14313           lcc*)
14314             # Lucid
14315             # FIXME: insert proper C++ library support
14316             ld_shlibs_CXX=no
14317             ;;
14318           *)
14319             # FIXME: insert proper C++ library support
14320             ld_shlibs_CXX=no
14321             ;;
14322         esac
14323         ;;
14324
14325       solaris*)
14326         case $cc_basename in
14327           CC*)
14328             # Sun C++ 4.2, 5.x and Centerline C++
14329             archive_cmds_need_lc_CXX=yes
14330             no_undefined_flag_CXX=' -zdefs'
14331             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14332             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14333               $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'
14334
14335             hardcode_libdir_flag_spec_CXX='-R$libdir'
14336             hardcode_shlibpath_var_CXX=no
14337             case $host_os in
14338               solaris2.[0-5] | solaris2.[0-5].*) ;;
14339               *)
14340                 # The compiler driver will combine and reorder linker options,
14341                 # but understands `-z linker_flag'.
14342                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14343                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14344                 ;;
14345             esac
14346             link_all_deplibs_CXX=yes
14347
14348             output_verbose_link_cmd='echo'
14349
14350             # Archives containing C++ object files must be created using
14351             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14352             # necessary to make sure instantiated templates are included
14353             # in the archive.
14354             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14355             ;;
14356           gcx*)
14357             # Green Hills C++ Compiler
14358             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14359
14360             # The C++ compiler must be used to create the archive.
14361             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14362             ;;
14363           *)
14364             # GNU C++ compiler with Solaris linker
14365             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14366               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14367               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14368                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14369                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14370                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14371
14372                 # Commands to make compiler produce verbose output that lists
14373                 # what "hidden" libraries, object files and flags are used when
14374                 # linking a shared library.
14375                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14376               else
14377                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14378                 # platform.
14379                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14380                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14381                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14382
14383                 # Commands to make compiler produce verbose output that lists
14384                 # what "hidden" libraries, object files and flags are used when
14385                 # linking a shared library.
14386                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14387               fi
14388
14389               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14390               case $host_os in
14391                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14392                 *)
14393                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14394                   ;;
14395               esac
14396             fi
14397             ;;
14398         esac
14399         ;;
14400
14401     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14402       no_undefined_flag_CXX='${wl}-z,text'
14403       archive_cmds_need_lc_CXX=no
14404       hardcode_shlibpath_var_CXX=no
14405       runpath_var='LD_RUN_PATH'
14406
14407       case $cc_basename in
14408         CC*)
14409           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14410           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14411           ;;
14412         *)
14413           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14414           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14415           ;;
14416       esac
14417       ;;
14418
14419       sysv5* | sco3.2v5* | sco5v6*)
14420         # Note: We can NOT use -z defs as we might desire, because we do not
14421         # link with -lc, and that would cause any symbols used from libc to
14422         # always be unresolved, which means just about no library would
14423         # ever link correctly.  If we're not using GNU ld we use -z text
14424         # though, which does catch some bad symbols but isn't as heavy-handed
14425         # as -z defs.
14426         no_undefined_flag_CXX='${wl}-z,text'
14427         allow_undefined_flag_CXX='${wl}-z,nodefs'
14428         archive_cmds_need_lc_CXX=no
14429         hardcode_shlibpath_var_CXX=no
14430         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14431         hardcode_libdir_separator_CXX=':'
14432         link_all_deplibs_CXX=yes
14433         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14434         runpath_var='LD_RUN_PATH'
14435
14436         case $cc_basename in
14437           CC*)
14438             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14439             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14440             ;;
14441           *)
14442             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14443             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14444             ;;
14445         esac
14446       ;;
14447
14448       tandem*)
14449         case $cc_basename in
14450           NCC*)
14451             # NonStop-UX NCC 3.20
14452             # FIXME: insert proper C++ library support
14453             ld_shlibs_CXX=no
14454             ;;
14455           *)
14456             # FIXME: insert proper C++ library support
14457             ld_shlibs_CXX=no
14458             ;;
14459         esac
14460         ;;
14461
14462       vxworks*)
14463         # FIXME: insert proper C++ library support
14464         ld_shlibs_CXX=no
14465         ;;
14466
14467       *)
14468         # FIXME: insert proper C++ library support
14469         ld_shlibs_CXX=no
14470         ;;
14471     esac
14472
14473     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14474 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14475     test "$ld_shlibs_CXX" = no && can_build_shared=no
14476
14477     GCC_CXX="$GXX"
14478     LD_CXX="$LD"
14479
14480     ## CAVEAT EMPTOR:
14481     ## There is no encapsulation within the following macros, do not change
14482     ## the running order or otherwise move them around unless you know exactly
14483     ## what you are doing...
14484     # Dependencies to place before and after the object being linked:
14485 predep_objects_CXX=
14486 postdep_objects_CXX=
14487 predeps_CXX=
14488 postdeps_CXX=
14489 compiler_lib_search_path_CXX=
14490
14491 cat > conftest.$ac_ext <<_LT_EOF
14492 class Foo
14493 {
14494 public:
14495   Foo (void) { a = 0; }
14496 private:
14497   int a;
14498 };
14499 _LT_EOF
14500
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502   (eval $ac_compile) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; then
14506   # Parse the compiler output and extract the necessary
14507   # objects, libraries and library flags.
14508
14509   # Sentinel used to keep track of whether or not we are before
14510   # the conftest object file.
14511   pre_test_object_deps_done=no
14512
14513   for p in `eval "$output_verbose_link_cmd"`; do
14514     case $p in
14515
14516     -L* | -R* | -l*)
14517        # Some compilers place space between "-{L,R}" and the path.
14518        # Remove the space.
14519        if test $p = "-L" ||
14520           test $p = "-R"; then
14521          prev=$p
14522          continue
14523        else
14524          prev=
14525        fi
14526
14527        if test "$pre_test_object_deps_done" = no; then
14528          case $p in
14529          -L* | -R*)
14530            # Internal compiler library paths should come after those
14531            # provided the user.  The postdeps already come after the
14532            # user supplied libs so there is no need to process them.
14533            if test -z "$compiler_lib_search_path_CXX"; then
14534              compiler_lib_search_path_CXX="${prev}${p}"
14535            else
14536              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14537            fi
14538            ;;
14539          # The "-l" case would never come before the object being
14540          # linked, so don't bother handling this case.
14541          esac
14542        else
14543          if test -z "$postdeps_CXX"; then
14544            postdeps_CXX="${prev}${p}"
14545          else
14546            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14547          fi
14548        fi
14549        ;;
14550
14551     *.$objext)
14552        # This assumes that the test object file only shows up
14553        # once in the compiler output.
14554        if test "$p" = "conftest.$objext"; then
14555          pre_test_object_deps_done=yes
14556          continue
14557        fi
14558
14559        if test "$pre_test_object_deps_done" = no; then
14560          if test -z "$predep_objects_CXX"; then
14561            predep_objects_CXX="$p"
14562          else
14563            predep_objects_CXX="$predep_objects_CXX $p"
14564          fi
14565        else
14566          if test -z "$postdep_objects_CXX"; then
14567            postdep_objects_CXX="$p"
14568          else
14569            postdep_objects_CXX="$postdep_objects_CXX $p"
14570          fi
14571        fi
14572        ;;
14573
14574     *) ;; # Ignore the rest.
14575
14576     esac
14577   done
14578
14579   # Clean up.
14580   rm -f a.out a.exe
14581 else
14582   echo "libtool.m4: error: problem compiling CXX test program"
14583 fi
14584
14585 $RM -f confest.$objext
14586
14587 # PORTME: override above test on systems where it is broken
14588 case $host_os in
14589 interix[3-9]*)
14590   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14591   # hack all around it, let's just trust "g++" to DTRT.
14592   predep_objects_CXX=
14593   postdep_objects_CXX=
14594   postdeps_CXX=
14595   ;;
14596
14597 linux*)
14598   case `$CC -V 2>&1 | sed 5q` in
14599   *Sun\ C*)
14600     # Sun C++ 5.9
14601
14602     # The more standards-conforming stlport4 library is
14603     # incompatible with the Cstd library. Avoid specifying
14604     # it if it's in CXXFLAGS. Ignore libCrun as
14605     # -library=stlport4 depends on it.
14606     case " $CXX $CXXFLAGS " in
14607     *" -library=stlport4 "*)
14608       solaris_use_stlport4=yes
14609       ;;
14610     esac
14611
14612     if test "$solaris_use_stlport4" != yes; then
14613       postdeps_CXX='-library=Cstd -library=Crun'
14614     fi
14615     ;;
14616   esac
14617   ;;
14618
14619 solaris*)
14620   case $cc_basename in
14621   CC*)
14622     # The more standards-conforming stlport4 library is
14623     # incompatible with the Cstd library. Avoid specifying
14624     # it if it's in CXXFLAGS. Ignore libCrun as
14625     # -library=stlport4 depends on it.
14626     case " $CXX $CXXFLAGS " in
14627     *" -library=stlport4 "*)
14628       solaris_use_stlport4=yes
14629       ;;
14630     esac
14631
14632     # Adding this requires a known-good setup of shared libraries for
14633     # Sun compiler versions before 5.6, else PIC objects from an old
14634     # archive will be linked into the output, leading to subtle bugs.
14635     if test "$solaris_use_stlport4" != yes; then
14636       postdeps_CXX='-library=Cstd -library=Crun'
14637     fi
14638     ;;
14639   esac
14640   ;;
14641 esac
14642
14643
14644 case " $postdeps_CXX " in
14645 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14646 esac
14647  compiler_lib_search_dirs_CXX=
14648 if test -n "${compiler_lib_search_path_CXX}"; then
14649  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14650 fi
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682     lt_prog_compiler_wl_CXX=
14683 lt_prog_compiler_pic_CXX=
14684 lt_prog_compiler_static_CXX=
14685
14686 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14688
14689   # C++ specific cases for pic, static, wl, etc.
14690   if test "$GXX" = yes; then
14691     lt_prog_compiler_wl_CXX='-Wl,'
14692     lt_prog_compiler_static_CXX='-static'
14693
14694     case $host_os in
14695     aix*)
14696       # All AIX code is PIC.
14697       if test "$host_cpu" = ia64; then
14698         # AIX 5 now supports IA64 processor
14699         lt_prog_compiler_static_CXX='-Bstatic'
14700       fi
14701       ;;
14702
14703     amigaos*)
14704       case $host_cpu in
14705       powerpc)
14706             # see comment about AmigaOS4 .so support
14707             lt_prog_compiler_pic_CXX='-fPIC'
14708         ;;
14709       m68k)
14710             # FIXME: we need at least 68020 code to build shared libraries, but
14711             # adding the `-m68020' flag to GCC prevents building anything better,
14712             # like `-m68040'.
14713             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14714         ;;
14715       esac
14716       ;;
14717
14718     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14719       # PIC is the default for these OSes.
14720       ;;
14721     mingw* | cygwin* | os2* | pw32* | cegcc*)
14722       # This hack is so that the source file can tell whether it is being
14723       # built for inclusion in a dll (and should export symbols for example).
14724       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14725       # (--disable-auto-import) libraries
14726       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14727       ;;
14728     darwin* | rhapsody*)
14729       # PIC is the default on this platform
14730       # Common symbols not allowed in MH_DYLIB files
14731       lt_prog_compiler_pic_CXX='-fno-common'
14732       ;;
14733     *djgpp*)
14734       # DJGPP does not support shared libraries at all
14735       lt_prog_compiler_pic_CXX=
14736       ;;
14737     interix[3-9]*)
14738       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14739       # Instead, we relocate shared libraries at runtime.
14740       ;;
14741     sysv4*MP*)
14742       if test -d /usr/nec; then
14743         lt_prog_compiler_pic_CXX=-Kconform_pic
14744       fi
14745       ;;
14746     hpux*)
14747       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14748       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14749       # sets the default TLS model and affects inlining.
14750       case $host_cpu in
14751       hppa*64*)
14752         ;;
14753       *)
14754         lt_prog_compiler_pic_CXX='-fPIC'
14755         ;;
14756       esac
14757       ;;
14758     *qnx* | *nto*)
14759       # QNX uses GNU C++, but need to define -shared option too, otherwise
14760       # it will coredump.
14761       lt_prog_compiler_pic_CXX='-fPIC -shared'
14762       ;;
14763     *)
14764       lt_prog_compiler_pic_CXX='-fPIC'
14765       ;;
14766     esac
14767   else
14768     case $host_os in
14769       aix[4-9]*)
14770         # All AIX code is PIC.
14771         if test "$host_cpu" = ia64; then
14772           # AIX 5 now supports IA64 processor
14773           lt_prog_compiler_static_CXX='-Bstatic'
14774         else
14775           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14776         fi
14777         ;;
14778       chorus*)
14779         case $cc_basename in
14780         cxch68*)
14781           # Green Hills C++ Compiler
14782           # _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"
14783           ;;
14784         esac
14785         ;;
14786       dgux*)
14787         case $cc_basename in
14788           ec++*)
14789             lt_prog_compiler_pic_CXX='-KPIC'
14790             ;;
14791           ghcx*)
14792             # Green Hills C++ Compiler
14793             lt_prog_compiler_pic_CXX='-pic'
14794             ;;
14795           *)
14796             ;;
14797         esac
14798         ;;
14799       freebsd* | dragonfly*)
14800         # FreeBSD uses GNU C++
14801         ;;
14802       hpux9* | hpux10* | hpux11*)
14803         case $cc_basename in
14804           CC*)
14805             lt_prog_compiler_wl_CXX='-Wl,'
14806             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14807             if test "$host_cpu" != ia64; then
14808               lt_prog_compiler_pic_CXX='+Z'
14809             fi
14810             ;;
14811           aCC*)
14812             lt_prog_compiler_wl_CXX='-Wl,'
14813             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14814             case $host_cpu in
14815             hppa*64*|ia64*)
14816               # +Z the default
14817               ;;
14818             *)
14819               lt_prog_compiler_pic_CXX='+Z'
14820               ;;
14821             esac
14822             ;;
14823           *)
14824             ;;
14825         esac
14826         ;;
14827       interix*)
14828         # This is c89, which is MS Visual C++ (no shared libs)
14829         # Anyone wants to do a port?
14830         ;;
14831       irix5* | irix6* | nonstopux*)
14832         case $cc_basename in
14833           CC*)
14834             lt_prog_compiler_wl_CXX='-Wl,'
14835             lt_prog_compiler_static_CXX='-non_shared'
14836             # CC pic flag -KPIC is the default.
14837             ;;
14838           *)
14839             ;;
14840         esac
14841         ;;
14842       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14843         case $cc_basename in
14844           KCC*)
14845             # KAI C++ Compiler
14846             lt_prog_compiler_wl_CXX='--backend -Wl,'
14847             lt_prog_compiler_pic_CXX='-fPIC'
14848             ;;
14849           ecpc* )
14850             # old Intel C++ for x86_64 which still supported -KPIC.
14851             lt_prog_compiler_wl_CXX='-Wl,'
14852             lt_prog_compiler_pic_CXX='-KPIC'
14853             lt_prog_compiler_static_CXX='-static'
14854             ;;
14855           icpc* )
14856             # Intel C++, used to be incompatible with GCC.
14857             # ICC 10 doesn't accept -KPIC any more.
14858             lt_prog_compiler_wl_CXX='-Wl,'
14859             lt_prog_compiler_pic_CXX='-fPIC'
14860             lt_prog_compiler_static_CXX='-static'
14861             ;;
14862           pgCC* | pgcpp*)
14863             # Portland Group C++ compiler
14864             lt_prog_compiler_wl_CXX='-Wl,'
14865             lt_prog_compiler_pic_CXX='-fpic'
14866             lt_prog_compiler_static_CXX='-Bstatic'
14867             ;;
14868           cxx*)
14869             # Compaq C++
14870             # Make sure the PIC flag is empty.  It appears that all Alpha
14871             # Linux and Compaq Tru64 Unix objects are PIC.
14872             lt_prog_compiler_pic_CXX=
14873             lt_prog_compiler_static_CXX='-non_shared'
14874             ;;
14875           xlc* | xlC*)
14876             # IBM XL 8.0 on PPC
14877             lt_prog_compiler_wl_CXX='-Wl,'
14878             lt_prog_compiler_pic_CXX='-qpic'
14879             lt_prog_compiler_static_CXX='-qstaticlink'
14880             ;;
14881           *)
14882             case `$CC -V 2>&1 | sed 5q` in
14883             *Sun\ C*)
14884               # Sun C++ 5.9
14885               lt_prog_compiler_pic_CXX='-KPIC'
14886               lt_prog_compiler_static_CXX='-Bstatic'
14887               lt_prog_compiler_wl_CXX='-Qoption ld '
14888               ;;
14889             esac
14890             ;;
14891         esac
14892         ;;
14893       lynxos*)
14894         ;;
14895       m88k*)
14896         ;;
14897       mvs*)
14898         case $cc_basename in
14899           cxx*)
14900             lt_prog_compiler_pic_CXX='-W c,exportall'
14901             ;;
14902           *)
14903             ;;
14904         esac
14905         ;;
14906       netbsd*)
14907         ;;
14908       *qnx* | *nto*)
14909         # QNX uses GNU C++, but need to define -shared option too, otherwise
14910         # it will coredump.
14911         lt_prog_compiler_pic_CXX='-fPIC -shared'
14912         ;;
14913       osf3* | osf4* | osf5*)
14914         case $cc_basename in
14915           KCC*)
14916             lt_prog_compiler_wl_CXX='--backend -Wl,'
14917             ;;
14918           RCC*)
14919             # Rational C++ 2.4.1
14920             lt_prog_compiler_pic_CXX='-pic'
14921             ;;
14922           cxx*)
14923             # Digital/Compaq C++
14924             lt_prog_compiler_wl_CXX='-Wl,'
14925             # Make sure the PIC flag is empty.  It appears that all Alpha
14926             # Linux and Compaq Tru64 Unix objects are PIC.
14927             lt_prog_compiler_pic_CXX=
14928             lt_prog_compiler_static_CXX='-non_shared'
14929             ;;
14930           *)
14931             ;;
14932         esac
14933         ;;
14934       psos*)
14935         ;;
14936       solaris*)
14937         case $cc_basename in
14938           CC*)
14939             # Sun C++ 4.2, 5.x and Centerline C++
14940             lt_prog_compiler_pic_CXX='-KPIC'
14941             lt_prog_compiler_static_CXX='-Bstatic'
14942             lt_prog_compiler_wl_CXX='-Qoption ld '
14943             ;;
14944           gcx*)
14945             # Green Hills C++ Compiler
14946             lt_prog_compiler_pic_CXX='-PIC'
14947             ;;
14948           *)
14949             ;;
14950         esac
14951         ;;
14952       sunos4*)
14953         case $cc_basename in
14954           CC*)
14955             # Sun C++ 4.x
14956             lt_prog_compiler_pic_CXX='-pic'
14957             lt_prog_compiler_static_CXX='-Bstatic'
14958             ;;
14959           lcc*)
14960             # Lucid
14961             lt_prog_compiler_pic_CXX='-pic'
14962             ;;
14963           *)
14964             ;;
14965         esac
14966         ;;
14967       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14968         case $cc_basename in
14969           CC*)
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_pic_CXX='-KPIC'
14972             lt_prog_compiler_static_CXX='-Bstatic'
14973             ;;
14974         esac
14975         ;;
14976       tandem*)
14977         case $cc_basename in
14978           NCC*)
14979             # NonStop-UX NCC 3.20
14980             lt_prog_compiler_pic_CXX='-KPIC'
14981             ;;
14982           *)
14983             ;;
14984         esac
14985         ;;
14986       vxworks*)
14987         ;;
14988       *)
14989         lt_prog_compiler_can_build_shared_CXX=no
14990         ;;
14991     esac
14992   fi
14993
14994 case $host_os in
14995   # For platforms which do not support PIC, -DPIC is meaningless:
14996   *djgpp*)
14997     lt_prog_compiler_pic_CXX=
14998     ;;
14999   *)
15000     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15001     ;;
15002 esac
15003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15004 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15005
15006
15007
15008 #
15009 # Check to make sure the PIC flag actually works.
15010 #
15011 if test -n "$lt_prog_compiler_pic_CXX"; then
15012   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15014 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   lt_cv_prog_compiler_pic_works_CXX=no
15018    ac_outfile=conftest.$ac_objext
15019    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15020    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15021    # Insert the option either (1) after the last *FLAGS variable, or
15022    # (2) before a word containing "conftest.", or (3) at the end.
15023    # Note that $ac_compile itself does not contain backslashes and begins
15024    # with a dollar sign (not a hyphen), so the echo should work correctly.
15025    # The option is referenced via a variable to avoid confusing sed.
15026    lt_compile=`echo "$ac_compile" | $SED \
15027    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029    -e 's:$: $lt_compiler_flag:'`
15030    (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
15031    (eval "$lt_compile" 2>conftest.err)
15032    ac_status=$?
15033    cat conftest.err >&5
15034    echo "$as_me:15034: \$? = $ac_status" >&5
15035    if (exit $ac_status) && test -s "$ac_outfile"; then
15036      # The compiler can only warn and ignore the option if not recognized
15037      # So say no if there are warnings other than the usual output.
15038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15039      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15040      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15041        lt_cv_prog_compiler_pic_works_CXX=yes
15042      fi
15043    fi
15044    $RM conftest*
15045
15046 fi
15047 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15048 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
15049
15050 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15051     case $lt_prog_compiler_pic_CXX in
15052      "" | " "*) ;;
15053      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15054      esac
15055 else
15056     lt_prog_compiler_pic_CXX=
15057      lt_prog_compiler_can_build_shared_CXX=no
15058 fi
15059
15060 fi
15061
15062
15063
15064 #
15065 # Check to make sure the static flag actually works.
15066 #
15067 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15068 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15069 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15070 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   lt_cv_prog_compiler_static_works_CXX=no
15074    save_LDFLAGS="$LDFLAGS"
15075    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15076    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15077    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15078      # The linker can only warn and ignore the option if not recognized
15079      # So say no if there are warnings
15080      if test -s conftest.err; then
15081        # Append any errors to the config.log.
15082        cat conftest.err 1>&5
15083        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15084        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15085        if diff conftest.exp conftest.er2 >/dev/null; then
15086          lt_cv_prog_compiler_static_works_CXX=yes
15087        fi
15088      else
15089        lt_cv_prog_compiler_static_works_CXX=yes
15090      fi
15091    fi
15092    $RM -r conftest*
15093    LDFLAGS="$save_LDFLAGS"
15094
15095 fi
15096 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15097 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
15098
15099 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15100     :
15101 else
15102     lt_prog_compiler_static_CXX=
15103 fi
15104
15105
15106
15107
15108     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15109 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15110 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   lt_cv_prog_compiler_c_o_CXX=no
15114    $RM -r conftest 2>/dev/null
15115    mkdir conftest
15116    cd conftest
15117    mkdir out
15118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15119
15120    lt_compiler_flag="-o out/conftest2.$ac_objext"
15121    # Insert the option either (1) after the last *FLAGS variable, or
15122    # (2) before a word containing "conftest.", or (3) at the end.
15123    # Note that $ac_compile itself does not contain backslashes and begins
15124    # with a dollar sign (not a hyphen), so the echo should work correctly.
15125    lt_compile=`echo "$ac_compile" | $SED \
15126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15128    -e 's:$: $lt_compiler_flag:'`
15129    (eval echo "\"\$as_me:15129: $lt_compile\"" >&5)
15130    (eval "$lt_compile" 2>out/conftest.err)
15131    ac_status=$?
15132    cat out/conftest.err >&5
15133    echo "$as_me:15133: \$? = $ac_status" >&5
15134    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15135    then
15136      # The compiler can only warn and ignore the option if not recognized
15137      # So say no if there are warnings
15138      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15139      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15140      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15141        lt_cv_prog_compiler_c_o_CXX=yes
15142      fi
15143    fi
15144    chmod u+w . 2>&5
15145    $RM conftest*
15146    # SGI C++ compiler will create directory out/ii_files/ for
15147    # template instantiation
15148    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15149    $RM out/* && rmdir out
15150    cd ..
15151    $RM -r conftest
15152    $RM conftest*
15153
15154 fi
15155 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15157
15158
15159
15160     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15162 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15163   echo $ECHO_N "(cached) $ECHO_C" >&6
15164 else
15165   lt_cv_prog_compiler_c_o_CXX=no
15166    $RM -r conftest 2>/dev/null
15167    mkdir conftest
15168    cd conftest
15169    mkdir out
15170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15171
15172    lt_compiler_flag="-o out/conftest2.$ac_objext"
15173    # Insert the option either (1) after the last *FLAGS variable, or
15174    # (2) before a word containing "conftest.", or (3) at the end.
15175    # Note that $ac_compile itself does not contain backslashes and begins
15176    # with a dollar sign (not a hyphen), so the echo should work correctly.
15177    lt_compile=`echo "$ac_compile" | $SED \
15178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15180    -e 's:$: $lt_compiler_flag:'`
15181    (eval echo "\"\$as_me:15181: $lt_compile\"" >&5)
15182    (eval "$lt_compile" 2>out/conftest.err)
15183    ac_status=$?
15184    cat out/conftest.err >&5
15185    echo "$as_me:15185: \$? = $ac_status" >&5
15186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15187    then
15188      # The compiler can only warn and ignore the option if not recognized
15189      # So say no if there are warnings
15190      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15193        lt_cv_prog_compiler_c_o_CXX=yes
15194      fi
15195    fi
15196    chmod u+w . 2>&5
15197    $RM conftest*
15198    # SGI C++ compiler will create directory out/ii_files/ for
15199    # template instantiation
15200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15201    $RM out/* && rmdir out
15202    cd ..
15203    $RM -r conftest
15204    $RM conftest*
15205
15206 fi
15207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15209
15210
15211
15212
15213 hard_links="nottested"
15214 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15215   # do not overwrite the value of need_locks provided by the user
15216   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15218   hard_links=yes
15219   $RM conftest*
15220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15221   touch conftest.a
15222   ln conftest.a conftest.b 2>&5 || hard_links=no
15223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15224   echo "$as_me:$LINENO: result: $hard_links" >&5
15225 echo "${ECHO_T}$hard_links" >&6
15226   if test "$hard_links" = no; then
15227     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15229     need_locks=warn
15230   fi
15231 else
15232   need_locks=no
15233 fi
15234
15235
15236
15237     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15239
15240   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15241   case $host_os in
15242   aix[4-9]*)
15243     # If we're using GNU nm, then we don't want the "-C" option.
15244     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15245     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15246       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'
15247     else
15248       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'
15249     fi
15250     ;;
15251   pw32*)
15252     export_symbols_cmds_CXX="$ltdll_cmds"
15253   ;;
15254   cygwin* | mingw* | cegcc*)
15255     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'
15256   ;;
15257   *)
15258     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15259   ;;
15260   esac
15261   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15262
15263 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15264 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15265 test "$ld_shlibs_CXX" = no && can_build_shared=no
15266
15267 with_gnu_ld_CXX=$with_gnu_ld
15268
15269
15270
15271
15272
15273
15274 #
15275 # Do we need to explicitly link libc?
15276 #
15277 case "x$archive_cmds_need_lc_CXX" in
15278 x|xyes)
15279   # Assume -lc should be added
15280   archive_cmds_need_lc_CXX=yes
15281
15282   if test "$enable_shared" = yes && test "$GCC" = yes; then
15283     case $archive_cmds_CXX in
15284     *'~'*)
15285       # FIXME: we may have to deal with multi-command sequences.
15286       ;;
15287     '$CC '*)
15288       # Test whether the compiler implicitly links with -lc since on some
15289       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15290       # to ld, don't add -lc before -lgcc.
15291       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15293 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   $RM conftest*
15297         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
15299         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300   (eval $ac_compile) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } 2>conftest.err; then
15304           soname=conftest
15305           lib=conftest
15306           libobjs=conftest.$ac_objext
15307           deplibs=
15308           wl=$lt_prog_compiler_wl_CXX
15309           pic_flag=$lt_prog_compiler_pic_CXX
15310           compiler_flags=-v
15311           linker_flags=-v
15312           verstring=
15313           output_objdir=.
15314           libname=conftest
15315           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15316           allow_undefined_flag_CXX=
15317           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15318   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }
15322           then
15323             lt_cv_archive_cmds_need_lc_CXX=no
15324           else
15325             lt_cv_archive_cmds_need_lc_CXX=yes
15326           fi
15327           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15328         else
15329           cat conftest.err 1>&5
15330         fi
15331         $RM conftest*
15332
15333 fi
15334 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15335 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
15336       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15337       ;;
15338     esac
15339   fi
15340   ;;
15341 esac
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15408
15409 library_names_spec=
15410 libname_spec='lib$name'
15411 soname_spec=
15412 shrext_cmds=".so"
15413 postinstall_cmds=
15414 postuninstall_cmds=
15415 finish_cmds=
15416 finish_eval=
15417 shlibpath_var=
15418 shlibpath_overrides_runpath=unknown
15419 version_type=none
15420 dynamic_linker="$host_os ld.so"
15421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15422 need_lib_prefix=unknown
15423 hardcode_into_libs=no
15424
15425 # when you set need_version to no, make sure it does not cause -set_version
15426 # flags to be left without arguments
15427 need_version=unknown
15428
15429 case $host_os in
15430 aix3*)
15431   version_type=linux
15432   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15433   shlibpath_var=LIBPATH
15434
15435   # AIX 3 has no versioning support, so we append a major version to the name.
15436   soname_spec='${libname}${release}${shared_ext}$major'
15437   ;;
15438
15439 aix[4-9]*)
15440   version_type=linux
15441   need_lib_prefix=no
15442   need_version=no
15443   hardcode_into_libs=yes
15444   if test "$host_cpu" = ia64; then
15445     # AIX 5 supports IA64
15446     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15447     shlibpath_var=LD_LIBRARY_PATH
15448   else
15449     # With GCC up to 2.95.x, collect2 would create an import file
15450     # for dependence libraries.  The import file would start with
15451     # the line `#! .'.  This would cause the generated library to
15452     # depend on `.', always an invalid library.  This was fixed in
15453     # development snapshots of GCC prior to 3.0.
15454     case $host_os in
15455       aix4 | aix4.[01] | aix4.[01].*)
15456       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15457            echo ' yes '
15458            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15459         :
15460       else
15461         can_build_shared=no
15462       fi
15463       ;;
15464     esac
15465     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15466     # soname into executable. Probably we can add versioning support to
15467     # collect2, so additional links can be useful in future.
15468     if test "$aix_use_runtimelinking" = yes; then
15469       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15470       # instead of lib<name>.a to let people know that these are not
15471       # typical AIX shared libraries.
15472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473     else
15474       # We preserve .a as extension for shared libraries through AIX4.2
15475       # and later when we are not doing run time linking.
15476       library_names_spec='${libname}${release}.a $libname.a'
15477       soname_spec='${libname}${release}${shared_ext}$major'
15478     fi
15479     shlibpath_var=LIBPATH
15480   fi
15481   ;;
15482
15483 amigaos*)
15484   case $host_cpu in
15485   powerpc)
15486     # Since July 2007 AmigaOS4 officially supports .so libraries.
15487     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489     ;;
15490   m68k)
15491     library_names_spec='$libname.ixlibrary $libname.a'
15492     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15493     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'
15494     ;;
15495   esac
15496   ;;
15497
15498 beos*)
15499   library_names_spec='${libname}${shared_ext}'
15500   dynamic_linker="$host_os ld.so"
15501   shlibpath_var=LIBRARY_PATH
15502   ;;
15503
15504 bsdi[45]*)
15505   version_type=linux
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15510   shlibpath_var=LD_LIBRARY_PATH
15511   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15512   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15513   # the default ld.so.conf also contains /usr/contrib/lib and
15514   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15515   # libtool to hard-code these into programs
15516   ;;
15517
15518 cygwin* | mingw* | pw32* | cegcc*)
15519   version_type=windows
15520   shrext_cmds=".dll"
15521   need_version=no
15522   need_lib_prefix=no
15523
15524   case $GCC,$host_os in
15525   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15526     library_names_spec='$libname.dll.a'
15527     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528     postinstall_cmds='base_file=`basename \${file}`~
15529       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530       dldir=$destdir/`dirname \$dlpath`~
15531       test -d \$dldir || mkdir -p \$dldir~
15532       $install_prog $dir/$dlname \$dldir/$dlname~
15533       chmod a+x \$dldir/$dlname~
15534       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15535         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15536       fi'
15537     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15538       dlpath=$dir/\$dldll~
15539        $RM \$dlpath'
15540     shlibpath_overrides_runpath=yes
15541
15542     case $host_os in
15543     cygwin*)
15544       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15545       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15546       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15547       ;;
15548     mingw* | cegcc*)
15549       # MinGW DLLs use traditional 'lib' prefix
15550       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15551       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15552       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15553         # It is most probably a Windows format PATH printed by
15554         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15555         # path with ; separators, and with drive letters. We can handle the
15556         # drive letters (cygwin fileutils understands them), so leave them,
15557         # especially as we might pass files found there to a mingw objdump,
15558         # which wouldn't understand a cygwinified path. Ahh.
15559         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15560       else
15561         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15562       fi
15563       ;;
15564     pw32*)
15565       # pw32 DLLs use 'pw' prefix rather than 'lib'
15566       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15567       ;;
15568     esac
15569     ;;
15570
15571   *)
15572     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15573     ;;
15574   esac
15575   dynamic_linker='Win32 ld.exe'
15576   # FIXME: first we should search . and the directory the executable is in
15577   shlibpath_var=PATH
15578   ;;
15579
15580 darwin* | rhapsody*)
15581   dynamic_linker="$host_os dyld"
15582   version_type=darwin
15583   need_lib_prefix=no
15584   need_version=no
15585   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15586   soname_spec='${libname}${release}${major}$shared_ext'
15587   shlibpath_overrides_runpath=yes
15588   shlibpath_var=DYLD_LIBRARY_PATH
15589   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15590
15591   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15592   ;;
15593
15594 dgux*)
15595   version_type=linux
15596   need_lib_prefix=no
15597   need_version=no
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15599   soname_spec='${libname}${release}${shared_ext}$major'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   ;;
15602
15603 freebsd1*)
15604   dynamic_linker=no
15605   ;;
15606
15607 freebsd* | dragonfly*)
15608   # DragonFly does not have aout.  When/if they implement a new
15609   # versioning mechanism, adjust this.
15610   if test -x /usr/bin/objformat; then
15611     objformat=`/usr/bin/objformat`
15612   else
15613     case $host_os in
15614     freebsd[123]*) objformat=aout ;;
15615     *) objformat=elf ;;
15616     esac
15617   fi
15618   version_type=freebsd-$objformat
15619   case $version_type in
15620     freebsd-elf*)
15621       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15622       need_version=no
15623       need_lib_prefix=no
15624       ;;
15625     freebsd-*)
15626       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15627       need_version=yes
15628       ;;
15629   esac
15630   shlibpath_var=LD_LIBRARY_PATH
15631   case $host_os in
15632   freebsd2*)
15633     shlibpath_overrides_runpath=yes
15634     ;;
15635   freebsd3.[01]* | freebsdelf3.[01]*)
15636     shlibpath_overrides_runpath=yes
15637     hardcode_into_libs=yes
15638     ;;
15639   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15640   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15641     shlibpath_overrides_runpath=no
15642     hardcode_into_libs=yes
15643     ;;
15644   *) # from 4.6 on, and DragonFly
15645     shlibpath_overrides_runpath=yes
15646     hardcode_into_libs=yes
15647     ;;
15648   esac
15649   ;;
15650
15651 gnu*)
15652   version_type=linux
15653   need_lib_prefix=no
15654   need_version=no
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   hardcode_into_libs=yes
15659   ;;
15660
15661 hpux9* | hpux10* | hpux11*)
15662   # Give a soname corresponding to the major version so that dld.sl refuses to
15663   # link against other versions.
15664   version_type=sunos
15665   need_lib_prefix=no
15666   need_version=no
15667   case $host_cpu in
15668   ia64*)
15669     shrext_cmds='.so'
15670     hardcode_into_libs=yes
15671     dynamic_linker="$host_os dld.so"
15672     shlibpath_var=LD_LIBRARY_PATH
15673     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675     soname_spec='${libname}${release}${shared_ext}$major'
15676     if test "X$HPUX_IA64_MODE" = X32; then
15677       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15678     else
15679       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15680     fi
15681     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15682     ;;
15683   hppa*64*)
15684     shrext_cmds='.sl'
15685     hardcode_into_libs=yes
15686     dynamic_linker="$host_os dld.sl"
15687     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15688     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690     soname_spec='${libname}${release}${shared_ext}$major'
15691     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15693     ;;
15694   *)
15695     shrext_cmds='.sl'
15696     dynamic_linker="$host_os dld.sl"
15697     shlibpath_var=SHLIB_PATH
15698     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700     soname_spec='${libname}${release}${shared_ext}$major'
15701     ;;
15702   esac
15703   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15704   postinstall_cmds='chmod 555 $lib'
15705   ;;
15706
15707 interix[3-9]*)
15708   version_type=linux
15709   need_lib_prefix=no
15710   need_version=no
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=no
15716   hardcode_into_libs=yes
15717   ;;
15718
15719 irix5* | irix6* | nonstopux*)
15720   case $host_os in
15721     nonstopux*) version_type=nonstopux ;;
15722     *)
15723         if test "$lt_cv_prog_gnu_ld" = yes; then
15724                 version_type=linux
15725         else
15726                 version_type=irix
15727         fi ;;
15728   esac
15729   need_lib_prefix=no
15730   need_version=no
15731   soname_spec='${libname}${release}${shared_ext}$major'
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15733   case $host_os in
15734   irix5* | nonstopux*)
15735     libsuff= shlibsuff=
15736     ;;
15737   *)
15738     case $LD in # libtool.m4 will add one of these switches to LD
15739     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15740       libsuff= shlibsuff= libmagic=32-bit;;
15741     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15742       libsuff=32 shlibsuff=N32 libmagic=N32;;
15743     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15744       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15745     *) libsuff= shlibsuff= libmagic=never-match;;
15746     esac
15747     ;;
15748   esac
15749   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15750   shlibpath_overrides_runpath=no
15751   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15752   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15753   hardcode_into_libs=yes
15754   ;;
15755
15756 # No shared lib support for Linux oldld, aout, or coff.
15757 linux*oldld* | linux*aout* | linux*coff*)
15758   dynamic_linker=no
15759   ;;
15760
15761 # This must be Linux ELF.
15762 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15763   version_type=linux
15764   need_lib_prefix=no
15765   need_version=no
15766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767   soname_spec='${libname}${release}${shared_ext}$major'
15768   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=no
15771
15772   # Some binutils ld are patched to set DT_RUNPATH
15773   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   lt_cv_shlibpath_overrides_runpath=no
15777     save_LDFLAGS=$LDFLAGS
15778     save_libdir=$libdir
15779     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15780          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15781     if test x$gcc_no_link = xyes; then
15782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15784    { (exit 1); exit 1; }; }
15785 fi
15786 cat >conftest.$ac_ext <<_ACEOF
15787 /* confdefs.h.  */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h.  */
15792
15793 int
15794 main ()
15795 {
15796
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803   (eval $ac_link) 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -z "$ac_cxx_werror_flag"
15811                          || test ! -s conftest.err'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; } &&
15817          { ac_try='test -s conftest$ac_exeext'
15818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819   (eval $ac_try) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }; }; then
15823   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15824   lt_cv_shlibpath_overrides_runpath=yes
15825 fi
15826
15827 else
15828   echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15830
15831 fi
15832 rm -f conftest.err conftest.$ac_objext \
15833       conftest$ac_exeext conftest.$ac_ext
15834     LDFLAGS=$save_LDFLAGS
15835     libdir=$save_libdir
15836
15837 fi
15838
15839   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15840
15841   # This implies no fast_install, which is unacceptable.
15842   # Some rework will be needed to allow for fast_install
15843   # before this can be enabled.
15844   hardcode_into_libs=yes
15845
15846   # Append ld.so.conf contents to the search path
15847   if test -f /etc/ld.so.conf; then
15848     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15849     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15850   fi
15851
15852   # We used to test for /lib/ld.so.1 and disable shared libraries on
15853   # powerpc, because MkLinux only supported shared libraries with the
15854   # GNU dynamic linker.  Since this was broken with cross compilers,
15855   # most powerpc-linux boxes support dynamic linking these days and
15856   # people can always --disable-shared, the test was removed, and we
15857   # assume the GNU/Linux dynamic linker is in use.
15858   dynamic_linker='GNU/Linux ld.so'
15859   ;;
15860
15861 netbsd*)
15862   version_type=sunos
15863   need_lib_prefix=no
15864   need_version=no
15865   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15868     dynamic_linker='NetBSD (a.out) ld.so'
15869   else
15870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15871     soname_spec='${libname}${release}${shared_ext}$major'
15872     dynamic_linker='NetBSD ld.elf_so'
15873   fi
15874   shlibpath_var=LD_LIBRARY_PATH
15875   shlibpath_overrides_runpath=yes
15876   hardcode_into_libs=yes
15877   ;;
15878
15879 newsos6)
15880   version_type=linux
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882   shlibpath_var=LD_LIBRARY_PATH
15883   shlibpath_overrides_runpath=yes
15884   ;;
15885
15886 *nto* | *qnx*)
15887   version_type=qnx
15888   need_lib_prefix=no
15889   need_version=no
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=no
15894   hardcode_into_libs=yes
15895   dynamic_linker='ldqnx.so'
15896   ;;
15897
15898 openbsd*)
15899   version_type=sunos
15900   sys_lib_dlsearch_path_spec="/usr/lib"
15901   need_lib_prefix=no
15902   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15903   case $host_os in
15904     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15905     *)                          need_version=no  ;;
15906   esac
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15908   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15911     case $host_os in
15912       openbsd2.[89] | openbsd2.[89].*)
15913         shlibpath_overrides_runpath=no
15914         ;;
15915       *)
15916         shlibpath_overrides_runpath=yes
15917         ;;
15918       esac
15919   else
15920     shlibpath_overrides_runpath=yes
15921   fi
15922   ;;
15923
15924 os2*)
15925   libname_spec='$name'
15926   shrext_cmds=".dll"
15927   need_lib_prefix=no
15928   library_names_spec='$libname${shared_ext} $libname.a'
15929   dynamic_linker='OS/2 ld.exe'
15930   shlibpath_var=LIBPATH
15931   ;;
15932
15933 osf3* | osf4* | osf5*)
15934   version_type=osf
15935   need_lib_prefix=no
15936   need_version=no
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939   shlibpath_var=LD_LIBRARY_PATH
15940   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15941   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15942   ;;
15943
15944 rdos*)
15945   dynamic_linker=no
15946   ;;
15947
15948 solaris*)
15949   version_type=linux
15950   need_lib_prefix=no
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   shlibpath_overrides_runpath=yes
15956   hardcode_into_libs=yes
15957   # ldd complains unless libraries are executable
15958   postinstall_cmds='chmod +x $lib'
15959   ;;
15960
15961 sunos4*)
15962   version_type=sunos
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15964   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15965   shlibpath_var=LD_LIBRARY_PATH
15966   shlibpath_overrides_runpath=yes
15967   if test "$with_gnu_ld" = yes; then
15968     need_lib_prefix=no
15969   fi
15970   need_version=yes
15971   ;;
15972
15973 sysv4 | sysv4.3*)
15974   version_type=linux
15975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976   soname_spec='${libname}${release}${shared_ext}$major'
15977   shlibpath_var=LD_LIBRARY_PATH
15978   case $host_vendor in
15979     sni)
15980       shlibpath_overrides_runpath=no
15981       need_lib_prefix=no
15982       runpath_var=LD_RUN_PATH
15983       ;;
15984     siemens)
15985       need_lib_prefix=no
15986       ;;
15987     motorola)
15988       need_lib_prefix=no
15989       need_version=no
15990       shlibpath_overrides_runpath=no
15991       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15992       ;;
15993   esac
15994   ;;
15995
15996 sysv4*MP*)
15997   if test -d /usr/nec ;then
15998     version_type=linux
15999     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16000     soname_spec='$libname${shared_ext}.$major'
16001     shlibpath_var=LD_LIBRARY_PATH
16002   fi
16003   ;;
16004
16005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16006   version_type=freebsd-elf
16007   need_lib_prefix=no
16008   need_version=no
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16010   soname_spec='${libname}${release}${shared_ext}$major'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=yes
16013   hardcode_into_libs=yes
16014   if test "$with_gnu_ld" = yes; then
16015     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16016   else
16017     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16018     case $host_os in
16019       sco3.2v5*)
16020         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16021         ;;
16022     esac
16023   fi
16024   sys_lib_dlsearch_path_spec='/usr/lib'
16025   ;;
16026
16027 tpf*)
16028   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16029   version_type=linux
16030   need_lib_prefix=no
16031   need_version=no
16032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033   shlibpath_var=LD_LIBRARY_PATH
16034   shlibpath_overrides_runpath=no
16035   hardcode_into_libs=yes
16036   ;;
16037
16038 uts4*)
16039   version_type=linux
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041   soname_spec='${libname}${release}${shared_ext}$major'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   ;;
16044
16045 *)
16046   dynamic_linker=no
16047   ;;
16048 esac
16049 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16050 echo "${ECHO_T}$dynamic_linker" >&6
16051 test "$dynamic_linker" = no && can_build_shared=no
16052
16053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16054 if test "$GCC" = yes; then
16055   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16056 fi
16057
16058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16059   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16060 fi
16061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16062   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16063 fi
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16102 hardcode_action_CXX=
16103 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16104    test -n "$runpath_var_CXX" ||
16105    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16106
16107   # We can hardcode non-existent directories.
16108   if test "$hardcode_direct_CXX" != no &&
16109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16110      # have to relink, otherwise we might link with an installed library
16111      # when we should be linking with a yet-to-be-installed one
16112      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16113      test "$hardcode_minus_L_CXX" != no; then
16114     # Linking always hardcodes the temporary library directory.
16115     hardcode_action_CXX=relink
16116   else
16117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16118     hardcode_action_CXX=immediate
16119   fi
16120 else
16121   # We cannot hardcode anything, or else we can only hardcode existing
16122   # directories.
16123   hardcode_action_CXX=unsupported
16124 fi
16125 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16126 echo "${ECHO_T}$hardcode_action_CXX" >&6
16127
16128 if test "$hardcode_action_CXX" = relink ||
16129    test "$inherit_rpath_CXX" = yes; then
16130   # Fast installation is not supported
16131   enable_fast_install=no
16132 elif test "$shlibpath_overrides_runpath" = yes ||
16133      test "$enable_shared" = no; then
16134   # Fast installation is not necessary
16135   enable_fast_install=needless
16136 fi
16137
16138
16139
16140
16141
16142
16143
16144   fi # test -n "$compiler"
16145
16146   CC=$lt_save_CC
16147   LDCXX=$LD
16148   LD=$lt_save_LD
16149   GCC=$lt_save_GCC
16150   with_gnu_ld=$lt_save_with_gnu_ld
16151   lt_cv_path_LDCXX=$lt_cv_path_LD
16152   lt_cv_path_LD=$lt_save_path_LD
16153   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16154   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16155 fi # test "$_lt_caught_CXX_error" != yes
16156
16157 ac_ext=c
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175                   ac_config_commands="$ac_config_commands libtool"
16176
16177
16178
16179
16180 # Only expand once:
16181
16182
16183
16184 for ac_prog in gcj
16185 do
16186   # Extract the first word of "$ac_prog", so it can be a program name with args.
16187 set dummy $ac_prog; ac_word=$2
16188 echo "$as_me:$LINENO: checking for $ac_word" >&5
16189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16190 if test "${ac_cv_prog_GCJ+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   if test -n "$GCJ"; then
16194   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16195 else
16196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16197 for as_dir in $PATH
16198 do
16199   IFS=$as_save_IFS
16200   test -z "$as_dir" && as_dir=.
16201   for ac_exec_ext in '' $ac_executable_extensions; do
16202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16203     ac_cv_prog_GCJ="$ac_prog"
16204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16205     break 2
16206   fi
16207 done
16208 done
16209
16210 fi
16211 fi
16212 GCJ=$ac_cv_prog_GCJ
16213 if test -n "$GCJ"; then
16214   echo "$as_me:$LINENO: result: $GCJ" >&5
16215 echo "${ECHO_T}$GCJ" >&6
16216 else
16217   echo "$as_me:$LINENO: result: no" >&5
16218 echo "${ECHO_T}no" >&6
16219 fi
16220
16221   test -n "$GCJ" && break
16222 done
16223 test -n "$GCJ" || GCJ="gcj"
16224
16225 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16226 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16227    { (exit 1); exit 1; }; }
16228 if test "x${GCJFLAGS-unset}" = xunset; then
16229    GCJFLAGS="-g -O2"
16230 fi
16231
16232
16233 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16234
16235 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16236 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16237 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16241   # We make a subdir and do the tests there.  Otherwise we can end up
16242   # making bogus files that we don't know about and never remove.  For
16243   # instance it was reported that on HP-UX the gcc test will end up
16244   # making a dummy file named `D' -- because `-MD' means `put the output
16245   # in D'.
16246   mkdir conftest.dir
16247   # Copy depcomp to subdir because otherwise we won't find it if we're
16248   # using a relative directory.
16249   cp "$am_depcomp" conftest.dir
16250   cd conftest.dir
16251   # We will build objects and dependencies in a subdirectory because
16252   # it helps to detect inapplicable dependency modes.  For instance
16253   # both Tru64's cc and ICC support -MD to output dependencies as a
16254   # side effect of compilation, but ICC will put the dependencies in
16255   # the current directory while Tru64 will put them in the object
16256   # directory.
16257   mkdir sub
16258
16259   am_cv_GCJ_dependencies_compiler_type=none
16260   if test "$am_compiler_list" = ""; then
16261      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16262   fi
16263   for depmode in $am_compiler_list; do
16264     # Setup a source with many dependencies, because some compilers
16265     # like to wrap large dependency lists on column 80 (with \), and
16266     # we should not choose a depcomp mode which is confused by this.
16267     #
16268     # We need to recreate these files for each test, as the compiler may
16269     # overwrite some of them when testing with obscure command lines.
16270     # This happens at least with the AIX C compiler.
16271     : > sub/conftest.c
16272     for i in 1 2 3 4 5 6; do
16273       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16274       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16275       # Solaris 8's {/usr,}/bin/sh.
16276       touch sub/conftst$i.h
16277     done
16278     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16279
16280     case $depmode in
16281     nosideeffect)
16282       # after this tag, mechanisms are not by side-effect, so they'll
16283       # only be used when explicitly requested
16284       if test "x$enable_dependency_tracking" = xyes; then
16285         continue
16286       else
16287         break
16288       fi
16289       ;;
16290     none) break ;;
16291     esac
16292     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16293     # mode.  It turns out that the SunPro C++ compiler does not properly
16294     # handle `-M -o', and we need to detect this.
16295     if depmode=$depmode \
16296        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16297        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16298        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16299          >/dev/null 2>conftest.err &&
16300        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16301        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16302        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16303       # icc doesn't choke on unknown options, it will just issue warnings
16304       # or remarks (even with -Werror).  So we grep stderr for any message
16305       # that says an option was ignored or not supported.
16306       # When given -MP, icc 7.0 and 7.1 complain thusly:
16307       #   icc: Command line warning: ignoring option '-M'; no argument required
16308       # The diagnosis changed in icc 8.0:
16309       #   icc: Command line remark: option '-MP' not supported
16310       if (grep 'ignoring option' conftest.err ||
16311           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16312         am_cv_GCJ_dependencies_compiler_type=$depmode
16313         break
16314       fi
16315     fi
16316   done
16317
16318   cd ..
16319   rm -rf conftest.dir
16320 else
16321   am_cv_GCJ_dependencies_compiler_type=none
16322 fi
16323
16324 fi
16325 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16326 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16327 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16328
16329
16330
16331 if
16332   test "x$enable_dependency_tracking" != xno \
16333   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16334   am__fastdepGCJ_TRUE=
16335   am__fastdepGCJ_FALSE='#'
16336 else
16337   am__fastdepGCJ_TRUE='#'
16338   am__fastdepGCJ_FALSE=
16339 fi
16340
16341
16342
16343 for ac_prog in gcj
16344 do
16345   # Extract the first word of "$ac_prog", so it can be a program name with args.
16346 set dummy $ac_prog; ac_word=$2
16347 echo "$as_me:$LINENO: checking for $ac_word" >&5
16348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16349 if test "${ac_cv_prog_GCJ+set}" = set; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352   if test -n "$GCJ"; then
16353   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16354 else
16355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $PATH
16357 do
16358   IFS=$as_save_IFS
16359   test -z "$as_dir" && as_dir=.
16360   for ac_exec_ext in '' $ac_executable_extensions; do
16361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16362     ac_cv_prog_GCJ="$ac_prog"
16363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16364     break 2
16365   fi
16366 done
16367 done
16368
16369 fi
16370 fi
16371 GCJ=$ac_cv_prog_GCJ
16372 if test -n "$GCJ"; then
16373   echo "$as_me:$LINENO: result: $GCJ" >&5
16374 echo "${ECHO_T}$GCJ" >&6
16375 else
16376   echo "$as_me:$LINENO: result: no" >&5
16377 echo "${ECHO_T}no" >&6
16378 fi
16379
16380   test -n "$GCJ" && break
16381 done
16382 test -n "$GCJ" || GCJ="gcj"
16383
16384 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16385 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16386    { (exit 1); exit 1; }; }
16387 if test "x${GCJFLAGS-unset}" = xunset; then
16388    GCJFLAGS="-g -O2"
16389 fi
16390
16391
16392 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16393
16394 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16396 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16400   # We make a subdir and do the tests there.  Otherwise we can end up
16401   # making bogus files that we don't know about and never remove.  For
16402   # instance it was reported that on HP-UX the gcc test will end up
16403   # making a dummy file named `D' -- because `-MD' means `put the output
16404   # in D'.
16405   mkdir conftest.dir
16406   # Copy depcomp to subdir because otherwise we won't find it if we're
16407   # using a relative directory.
16408   cp "$am_depcomp" conftest.dir
16409   cd conftest.dir
16410   # We will build objects and dependencies in a subdirectory because
16411   # it helps to detect inapplicable dependency modes.  For instance
16412   # both Tru64's cc and ICC support -MD to output dependencies as a
16413   # side effect of compilation, but ICC will put the dependencies in
16414   # the current directory while Tru64 will put them in the object
16415   # directory.
16416   mkdir sub
16417
16418   am_cv_GCJ_dependencies_compiler_type=none
16419   if test "$am_compiler_list" = ""; then
16420      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16421   fi
16422   for depmode in $am_compiler_list; do
16423     # Setup a source with many dependencies, because some compilers
16424     # like to wrap large dependency lists on column 80 (with \), and
16425     # we should not choose a depcomp mode which is confused by this.
16426     #
16427     # We need to recreate these files for each test, as the compiler may
16428     # overwrite some of them when testing with obscure command lines.
16429     # This happens at least with the AIX C compiler.
16430     : > sub/conftest.c
16431     for i in 1 2 3 4 5 6; do
16432       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16433       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16434       # Solaris 8's {/usr,}/bin/sh.
16435       touch sub/conftst$i.h
16436     done
16437     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16438
16439     case $depmode in
16440     nosideeffect)
16441       # after this tag, mechanisms are not by side-effect, so they'll
16442       # only be used when explicitly requested
16443       if test "x$enable_dependency_tracking" = xyes; then
16444         continue
16445       else
16446         break
16447       fi
16448       ;;
16449     none) break ;;
16450     esac
16451     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16452     # mode.  It turns out that the SunPro C++ compiler does not properly
16453     # handle `-M -o', and we need to detect this.
16454     if depmode=$depmode \
16455        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16456        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16457        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16458          >/dev/null 2>conftest.err &&
16459        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16460        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16461        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16462       # icc doesn't choke on unknown options, it will just issue warnings
16463       # or remarks (even with -Werror).  So we grep stderr for any message
16464       # that says an option was ignored or not supported.
16465       # When given -MP, icc 7.0 and 7.1 complain thusly:
16466       #   icc: Command line warning: ignoring option '-M'; no argument required
16467       # The diagnosis changed in icc 8.0:
16468       #   icc: Command line remark: option '-MP' not supported
16469       if (grep 'ignoring option' conftest.err ||
16470           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16471         am_cv_GCJ_dependencies_compiler_type=$depmode
16472         break
16473       fi
16474     fi
16475   done
16476
16477   cd ..
16478   rm -rf conftest.dir
16479 else
16480   am_cv_GCJ_dependencies_compiler_type=none
16481 fi
16482
16483 fi
16484 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16485 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16486 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16487
16488
16489
16490 if
16491   test "x$enable_dependency_tracking" != xno \
16492   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16493   am__fastdepGCJ_TRUE=
16494   am__fastdepGCJ_FALSE='#'
16495 else
16496   am__fastdepGCJ_TRUE='#'
16497   am__fastdepGCJ_FALSE=
16498 fi
16499
16500
16501
16502
16503
16504
16505 # Source file extension for Java test sources.
16506 ac_ext=c
16507
16508 # Object file extension for compiled Java test sources.
16509 objext=o
16510 objext_GCJ=$objext
16511
16512 # Code to be used in simple compile tests
16513 lt_simple_compile_test_code="int some_variable = 0;"
16514
16515 # Code to be used in simple link tests
16516 lt_simple_link_test_code='int main(){return(0);}'
16517
16518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16519
16520
16521
16522
16523
16524
16525 # If no C compiler was specified, use CC.
16526 LTCC=${LTCC-"$CC"}
16527
16528 # If no C compiler flags were specified, use CFLAGS.
16529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16530
16531 # Allow CC to be a program name with arguments.
16532 compiler=$CC
16533
16534
16535 # save warnings/boilerplate of simple test code
16536 ac_outfile=conftest.$ac_objext
16537 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16539 _lt_compiler_boilerplate=`cat conftest.err`
16540 $RM conftest*
16541
16542 ac_outfile=conftest.$ac_objext
16543 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16545 _lt_linker_boilerplate=`cat conftest.err`
16546 $RM -r conftest*
16547
16548
16549 # Allow CC to be a program name with arguments.
16550 GCC=yes
16551 compiler=$CC
16552 compiler_GCJ=$CC
16553 for cc_temp in $compiler""; do
16554   case $cc_temp in
16555     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16556     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16557     \-*) ;;
16558     *) break;;
16559   esac
16560 done
16561 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16562
16563
16564 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16565 archive_cmds_need_lc_GCJ=no
16566
16567 old_archive_cmds_GCJ=$old_archive_cmds
16568
16569 ## CAVEAT EMPTOR:
16570 ## There is no encapsulation within the following macros, do not change
16571 ## the running order or otherwise move them around unless you know exactly
16572 ## what you are doing...
16573 if test -n "$compiler"; then
16574
16575 lt_prog_compiler_no_builtin_flag_GCJ=
16576
16577 if test "$GCC" = yes; then
16578   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16579
16580   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16581 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16582 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   lt_cv_prog_compiler_rtti_exceptions=no
16586    ac_outfile=conftest.$ac_objext
16587    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16588    lt_compiler_flag="-fno-rtti -fno-exceptions"
16589    # Insert the option either (1) after the last *FLAGS variable, or
16590    # (2) before a word containing "conftest.", or (3) at the end.
16591    # Note that $ac_compile itself does not contain backslashes and begins
16592    # with a dollar sign (not a hyphen), so the echo should work correctly.
16593    # The option is referenced via a variable to avoid confusing sed.
16594    lt_compile=`echo "$ac_compile" | $SED \
16595    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597    -e 's:$: $lt_compiler_flag:'`
16598    (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
16599    (eval "$lt_compile" 2>conftest.err)
16600    ac_status=$?
16601    cat conftest.err >&5
16602    echo "$as_me:16602: \$? = $ac_status" >&5
16603    if (exit $ac_status) && test -s "$ac_outfile"; then
16604      # The compiler can only warn and ignore the option if not recognized
16605      # So say no if there are warnings other than the usual output.
16606      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16607      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16608      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16609        lt_cv_prog_compiler_rtti_exceptions=yes
16610      fi
16611    fi
16612    $RM conftest*
16613
16614 fi
16615 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16616 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16617
16618 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16619     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16620 else
16621     :
16622 fi
16623
16624 fi
16625
16626
16627
16628   lt_prog_compiler_wl_GCJ=
16629 lt_prog_compiler_pic_GCJ=
16630 lt_prog_compiler_static_GCJ=
16631
16632 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16633 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16634
16635   if test "$GCC" = yes; then
16636     lt_prog_compiler_wl_GCJ='-Wl,'
16637     lt_prog_compiler_static_GCJ='-static'
16638
16639     case $host_os in
16640       aix*)
16641       # All AIX code is PIC.
16642       if test "$host_cpu" = ia64; then
16643         # AIX 5 now supports IA64 processor
16644         lt_prog_compiler_static_GCJ='-Bstatic'
16645       fi
16646       ;;
16647
16648     amigaos*)
16649       case $host_cpu in
16650       powerpc)
16651             # see comment about AmigaOS4 .so support
16652             lt_prog_compiler_pic_GCJ='-fPIC'
16653         ;;
16654       m68k)
16655             # FIXME: we need at least 68020 code to build shared libraries, but
16656             # adding the `-m68020' flag to GCC prevents building anything better,
16657             # like `-m68040'.
16658             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16659         ;;
16660       esac
16661       ;;
16662
16663     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16664       # PIC is the default for these OSes.
16665       ;;
16666
16667     mingw* | cygwin* | pw32* | os2* | cegcc*)
16668       # This hack is so that the source file can tell whether it is being
16669       # built for inclusion in a dll (and should export symbols for example).
16670       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16671       # (--disable-auto-import) libraries
16672
16673       ;;
16674
16675     darwin* | rhapsody*)
16676       # PIC is the default on this platform
16677       # Common symbols not allowed in MH_DYLIB files
16678       lt_prog_compiler_pic_GCJ='-fno-common'
16679       ;;
16680
16681     hpux*)
16682       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16683       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16684       # sets the default TLS model and affects inlining.
16685       case $host_cpu in
16686       hppa*64*)
16687         # +Z the default
16688         ;;
16689       *)
16690         lt_prog_compiler_pic_GCJ='-fPIC'
16691         ;;
16692       esac
16693       ;;
16694
16695     interix[3-9]*)
16696       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16697       # Instead, we relocate shared libraries at runtime.
16698       ;;
16699
16700     msdosdjgpp*)
16701       # Just because we use GCC doesn't mean we suddenly get shared libraries
16702       # on systems that don't support them.
16703       lt_prog_compiler_can_build_shared_GCJ=no
16704       enable_shared=no
16705       ;;
16706
16707     *nto* | *qnx*)
16708       # QNX uses GNU C++, but need to define -shared option too, otherwise
16709       # it will coredump.
16710       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16711       ;;
16712
16713     sysv4*MP*)
16714       if test -d /usr/nec; then
16715         lt_prog_compiler_pic_GCJ=-Kconform_pic
16716       fi
16717       ;;
16718
16719     *)
16720       lt_prog_compiler_pic_GCJ='-fPIC'
16721       ;;
16722     esac
16723   else
16724     # PORTME Check for flag to pass linker flags through the system compiler.
16725     case $host_os in
16726     aix*)
16727       lt_prog_compiler_wl_GCJ='-Wl,'
16728       if test "$host_cpu" = ia64; then
16729         # AIX 5 now supports IA64 processor
16730         lt_prog_compiler_static_GCJ='-Bstatic'
16731       else
16732         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16733       fi
16734       ;;
16735
16736     mingw* | cygwin* | pw32* | os2* | cegcc*)
16737       # This hack is so that the source file can tell whether it is being
16738       # built for inclusion in a dll (and should export symbols for example).
16739
16740       ;;
16741
16742     hpux9* | hpux10* | hpux11*)
16743       lt_prog_compiler_wl_GCJ='-Wl,'
16744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16745       # not for PA HP-UX.
16746       case $host_cpu in
16747       hppa*64*|ia64*)
16748         # +Z the default
16749         ;;
16750       *)
16751         lt_prog_compiler_pic_GCJ='+Z'
16752         ;;
16753       esac
16754       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16755       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16756       ;;
16757
16758     irix5* | irix6* | nonstopux*)
16759       lt_prog_compiler_wl_GCJ='-Wl,'
16760       # PIC (with -KPIC) is the default.
16761       lt_prog_compiler_static_GCJ='-non_shared'
16762       ;;
16763
16764     linux* | k*bsd*-gnu | kopensolaris*-gnu)
16765       case $cc_basename in
16766       # old Intel for x86_64 which still supported -KPIC.
16767       ecc*)
16768         lt_prog_compiler_wl_GCJ='-Wl,'
16769         lt_prog_compiler_pic_GCJ='-KPIC'
16770         lt_prog_compiler_static_GCJ='-static'
16771         ;;
16772       # icc used to be incompatible with GCC.
16773       # ICC 10 doesn't accept -KPIC any more.
16774       icc* | ifort*)
16775         lt_prog_compiler_wl_GCJ='-Wl,'
16776         lt_prog_compiler_pic_GCJ='-fPIC'
16777         lt_prog_compiler_static_GCJ='-static'
16778         ;;
16779       # Lahey Fortran 8.1.
16780       lf95*)
16781         lt_prog_compiler_wl_GCJ='-Wl,'
16782         lt_prog_compiler_pic_GCJ='--shared'
16783         lt_prog_compiler_static_GCJ='--static'
16784         ;;
16785       pgcc* | pgf77* | pgf90* | pgf95*)
16786         # Portland Group compilers (*not* the Pentium gcc compiler,
16787         # which looks to be a dead project)
16788         lt_prog_compiler_wl_GCJ='-Wl,'
16789         lt_prog_compiler_pic_GCJ='-fpic'
16790         lt_prog_compiler_static_GCJ='-Bstatic'
16791         ;;
16792       ccc*)
16793         lt_prog_compiler_wl_GCJ='-Wl,'
16794         # All Alpha code is PIC.
16795         lt_prog_compiler_static_GCJ='-non_shared'
16796         ;;
16797       xl*)
16798         # IBM XL C 8.0/Fortran 10.1 on PPC
16799         lt_prog_compiler_wl_GCJ='-Wl,'
16800         lt_prog_compiler_pic_GCJ='-qpic'
16801         lt_prog_compiler_static_GCJ='-qstaticlink'
16802         ;;
16803       *)
16804         case `$CC -V 2>&1 | sed 5q` in
16805         *Sun\ C*)
16806           # Sun C 5.9
16807           lt_prog_compiler_pic_GCJ='-KPIC'
16808           lt_prog_compiler_static_GCJ='-Bstatic'
16809           lt_prog_compiler_wl_GCJ='-Wl,'
16810           ;;
16811         *Sun\ F*)
16812           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16813           lt_prog_compiler_pic_GCJ='-KPIC'
16814           lt_prog_compiler_static_GCJ='-Bstatic'
16815           lt_prog_compiler_wl_GCJ=''
16816           ;;
16817         esac
16818         ;;
16819       esac
16820       ;;
16821
16822     newsos6)
16823       lt_prog_compiler_pic_GCJ='-KPIC'
16824       lt_prog_compiler_static_GCJ='-Bstatic'
16825       ;;
16826
16827     *nto* | *qnx*)
16828       # QNX uses GNU C++, but need to define -shared option too, otherwise
16829       # it will coredump.
16830       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16831       ;;
16832
16833     osf3* | osf4* | osf5*)
16834       lt_prog_compiler_wl_GCJ='-Wl,'
16835       # All OSF/1 code is PIC.
16836       lt_prog_compiler_static_GCJ='-non_shared'
16837       ;;
16838
16839     rdos*)
16840       lt_prog_compiler_static_GCJ='-non_shared'
16841       ;;
16842
16843     solaris*)
16844       lt_prog_compiler_pic_GCJ='-KPIC'
16845       lt_prog_compiler_static_GCJ='-Bstatic'
16846       case $cc_basename in
16847       f77* | f90* | f95*)
16848         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16849       *)
16850         lt_prog_compiler_wl_GCJ='-Wl,';;
16851       esac
16852       ;;
16853
16854     sunos4*)
16855       lt_prog_compiler_wl_GCJ='-Qoption ld '
16856       lt_prog_compiler_pic_GCJ='-PIC'
16857       lt_prog_compiler_static_GCJ='-Bstatic'
16858       ;;
16859
16860     sysv4 | sysv4.2uw2* | sysv4.3*)
16861       lt_prog_compiler_wl_GCJ='-Wl,'
16862       lt_prog_compiler_pic_GCJ='-KPIC'
16863       lt_prog_compiler_static_GCJ='-Bstatic'
16864       ;;
16865
16866     sysv4*MP*)
16867       if test -d /usr/nec ;then
16868         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16869         lt_prog_compiler_static_GCJ='-Bstatic'
16870       fi
16871       ;;
16872
16873     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16874       lt_prog_compiler_wl_GCJ='-Wl,'
16875       lt_prog_compiler_pic_GCJ='-KPIC'
16876       lt_prog_compiler_static_GCJ='-Bstatic'
16877       ;;
16878
16879     unicos*)
16880       lt_prog_compiler_wl_GCJ='-Wl,'
16881       lt_prog_compiler_can_build_shared_GCJ=no
16882       ;;
16883
16884     uts4*)
16885       lt_prog_compiler_pic_GCJ='-pic'
16886       lt_prog_compiler_static_GCJ='-Bstatic'
16887       ;;
16888
16889     *)
16890       lt_prog_compiler_can_build_shared_GCJ=no
16891       ;;
16892     esac
16893   fi
16894
16895 case $host_os in
16896   # For platforms which do not support PIC, -DPIC is meaningless:
16897   *djgpp*)
16898     lt_prog_compiler_pic_GCJ=
16899     ;;
16900   *)
16901     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16902     ;;
16903 esac
16904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16905 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16906
16907
16908
16909 #
16910 # Check to make sure the PIC flag actually works.
16911 #
16912 if test -n "$lt_prog_compiler_pic_GCJ"; then
16913   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16915 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   lt_cv_prog_compiler_pic_works_GCJ=no
16919    ac_outfile=conftest.$ac_objext
16920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16921    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16922    # Insert the option either (1) after the last *FLAGS variable, or
16923    # (2) before a word containing "conftest.", or (3) at the end.
16924    # Note that $ac_compile itself does not contain backslashes and begins
16925    # with a dollar sign (not a hyphen), so the echo should work correctly.
16926    # The option is referenced via a variable to avoid confusing sed.
16927    lt_compile=`echo "$ac_compile" | $SED \
16928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16930    -e 's:$: $lt_compiler_flag:'`
16931    (eval echo "\"\$as_me:16931: $lt_compile\"" >&5)
16932    (eval "$lt_compile" 2>conftest.err)
16933    ac_status=$?
16934    cat conftest.err >&5
16935    echo "$as_me:16935: \$? = $ac_status" >&5
16936    if (exit $ac_status) && test -s "$ac_outfile"; then
16937      # The compiler can only warn and ignore the option if not recognized
16938      # So say no if there are warnings other than the usual output.
16939      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16940      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16941      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16942        lt_cv_prog_compiler_pic_works_GCJ=yes
16943      fi
16944    fi
16945    $RM conftest*
16946
16947 fi
16948 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16949 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16950
16951 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16952     case $lt_prog_compiler_pic_GCJ in
16953      "" | " "*) ;;
16954      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16955      esac
16956 else
16957     lt_prog_compiler_pic_GCJ=
16958      lt_prog_compiler_can_build_shared_GCJ=no
16959 fi
16960
16961 fi
16962
16963
16964
16965 #
16966 # Check to make sure the static flag actually works.
16967 #
16968 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16969 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16970 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16971 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   lt_cv_prog_compiler_static_works_GCJ=no
16975    save_LDFLAGS="$LDFLAGS"
16976    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16977    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16978    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16979      # The linker can only warn and ignore the option if not recognized
16980      # So say no if there are warnings
16981      if test -s conftest.err; then
16982        # Append any errors to the config.log.
16983        cat conftest.err 1>&5
16984        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16985        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16986        if diff conftest.exp conftest.er2 >/dev/null; then
16987          lt_cv_prog_compiler_static_works_GCJ=yes
16988        fi
16989      else
16990        lt_cv_prog_compiler_static_works_GCJ=yes
16991      fi
16992    fi
16993    $RM -r conftest*
16994    LDFLAGS="$save_LDFLAGS"
16995
16996 fi
16997 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16998 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16999
17000 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17001     :
17002 else
17003     lt_prog_compiler_static_GCJ=
17004 fi
17005
17006
17007
17008
17009   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17011 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014   lt_cv_prog_compiler_c_o_GCJ=no
17015    $RM -r conftest 2>/dev/null
17016    mkdir conftest
17017    cd conftest
17018    mkdir out
17019    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020
17021    lt_compiler_flag="-o out/conftest2.$ac_objext"
17022    # Insert the option either (1) after the last *FLAGS variable, or
17023    # (2) before a word containing "conftest.", or (3) at the end.
17024    # Note that $ac_compile itself does not contain backslashes and begins
17025    # with a dollar sign (not a hyphen), so the echo should work correctly.
17026    lt_compile=`echo "$ac_compile" | $SED \
17027    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17029    -e 's:$: $lt_compiler_flag:'`
17030    (eval echo "\"\$as_me:17030: $lt_compile\"" >&5)
17031    (eval "$lt_compile" 2>out/conftest.err)
17032    ac_status=$?
17033    cat out/conftest.err >&5
17034    echo "$as_me:17034: \$? = $ac_status" >&5
17035    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17036    then
17037      # The compiler can only warn and ignore the option if not recognized
17038      # So say no if there are warnings
17039      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17040      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17041      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17042        lt_cv_prog_compiler_c_o_GCJ=yes
17043      fi
17044    fi
17045    chmod u+w . 2>&5
17046    $RM conftest*
17047    # SGI C++ compiler will create directory out/ii_files/ for
17048    # template instantiation
17049    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17050    $RM out/* && rmdir out
17051    cd ..
17052    $RM -r conftest
17053    $RM conftest*
17054
17055 fi
17056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17058
17059
17060
17061   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17063 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   lt_cv_prog_compiler_c_o_GCJ=no
17067    $RM -r conftest 2>/dev/null
17068    mkdir conftest
17069    cd conftest
17070    mkdir out
17071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17072
17073    lt_compiler_flag="-o out/conftest2.$ac_objext"
17074    # Insert the option either (1) after the last *FLAGS variable, or
17075    # (2) before a word containing "conftest.", or (3) at the end.
17076    # Note that $ac_compile itself does not contain backslashes and begins
17077    # with a dollar sign (not a hyphen), so the echo should work correctly.
17078    lt_compile=`echo "$ac_compile" | $SED \
17079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17081    -e 's:$: $lt_compiler_flag:'`
17082    (eval echo "\"\$as_me:17082: $lt_compile\"" >&5)
17083    (eval "$lt_compile" 2>out/conftest.err)
17084    ac_status=$?
17085    cat out/conftest.err >&5
17086    echo "$as_me:17086: \$? = $ac_status" >&5
17087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17088    then
17089      # The compiler can only warn and ignore the option if not recognized
17090      # So say no if there are warnings
17091      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17092      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17093      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17094        lt_cv_prog_compiler_c_o_GCJ=yes
17095      fi
17096    fi
17097    chmod u+w . 2>&5
17098    $RM conftest*
17099    # SGI C++ compiler will create directory out/ii_files/ for
17100    # template instantiation
17101    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17102    $RM out/* && rmdir out
17103    cd ..
17104    $RM -r conftest
17105    $RM conftest*
17106
17107 fi
17108 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17109 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17110
17111
17112
17113
17114 hard_links="nottested"
17115 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17116   # do not overwrite the value of need_locks provided by the user
17117   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17118 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17119   hard_links=yes
17120   $RM conftest*
17121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17122   touch conftest.a
17123   ln conftest.a conftest.b 2>&5 || hard_links=no
17124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17125   echo "$as_me:$LINENO: result: $hard_links" >&5
17126 echo "${ECHO_T}$hard_links" >&6
17127   if test "$hard_links" = no; then
17128     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17129 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17130     need_locks=warn
17131   fi
17132 else
17133   need_locks=no
17134 fi
17135
17136
17137
17138   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17140
17141   runpath_var=
17142   allow_undefined_flag_GCJ=
17143   always_export_symbols_GCJ=no
17144   archive_cmds_GCJ=
17145   archive_expsym_cmds_GCJ=
17146   compiler_needs_object_GCJ=no
17147   enable_shared_with_static_runtimes_GCJ=no
17148   export_dynamic_flag_spec_GCJ=
17149   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17150   hardcode_automatic_GCJ=no
17151   hardcode_direct_GCJ=no
17152   hardcode_direct_absolute_GCJ=no
17153   hardcode_libdir_flag_spec_GCJ=
17154   hardcode_libdir_flag_spec_ld_GCJ=
17155   hardcode_libdir_separator_GCJ=
17156   hardcode_minus_L_GCJ=no
17157   hardcode_shlibpath_var_GCJ=unsupported
17158   inherit_rpath_GCJ=no
17159   link_all_deplibs_GCJ=unknown
17160   module_cmds_GCJ=
17161   module_expsym_cmds_GCJ=
17162   old_archive_from_new_cmds_GCJ=
17163   old_archive_from_expsyms_cmds_GCJ=
17164   thread_safe_flag_spec_GCJ=
17165   whole_archive_flag_spec_GCJ=
17166   # include_expsyms should be a list of space-separated symbols to be *always*
17167   # included in the symbol list
17168   include_expsyms_GCJ=
17169   # exclude_expsyms can be an extended regexp of symbols to exclude
17170   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17171   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17172   # as well as any symbol that contains `d'.
17173   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17174   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17175   # platforms (ab)use it in PIC code, but their linkers get confused if
17176   # the symbol is explicitly referenced.  Since portable code cannot
17177   # rely on this symbol name, it's probably fine to never include it in
17178   # preloaded symbol tables.
17179   # Exclude shared library initialization/finalization symbols.
17180   extract_expsyms_cmds=
17181
17182   case $host_os in
17183   cygwin* | mingw* | pw32* | cegcc*)
17184     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17185     # When not using gcc, we currently assume that we are using
17186     # Microsoft Visual C++.
17187     if test "$GCC" != yes; then
17188       with_gnu_ld=no
17189     fi
17190     ;;
17191   interix*)
17192     # we just hope/assume this is gcc and not c89 (= MSVC++)
17193     with_gnu_ld=yes
17194     ;;
17195   openbsd*)
17196     with_gnu_ld=no
17197     ;;
17198   esac
17199
17200   ld_shlibs_GCJ=yes
17201   if test "$with_gnu_ld" = yes; then
17202     # If archive_cmds runs LD, not CC, wlarc should be empty
17203     wlarc='${wl}'
17204
17205     # Set some defaults for GNU ld with shared library support. These
17206     # are reset later if shared libraries are not supported. Putting them
17207     # here allows them to be overridden if necessary.
17208     runpath_var=LD_RUN_PATH
17209     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17210     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17211     # ancient GNU ld didn't support --whole-archive et. al.
17212     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17213       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17214     else
17215       whole_archive_flag_spec_GCJ=
17216     fi
17217     supports_anon_versioning=no
17218     case `$LD -v 2>&1` in
17219       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17220       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17221       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17222       *\ 2.11.*) ;; # other 2.11 versions
17223       *) supports_anon_versioning=yes ;;
17224     esac
17225
17226     # See if GNU ld supports shared libraries.
17227     case $host_os in
17228     aix[3-9]*)
17229       # On AIX/PPC, the GNU linker is very broken
17230       if test "$host_cpu" != ia64; then
17231         ld_shlibs_GCJ=no
17232         cat <<_LT_EOF 1>&2
17233
17234 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17235 *** to be unable to reliably create shared libraries on AIX.
17236 *** Therefore, libtool is disabling shared libraries support.  If you
17237 *** really care for shared libraries, you may want to modify your PATH
17238 *** so that a non-GNU linker is found, and then restart.
17239
17240 _LT_EOF
17241       fi
17242       ;;
17243
17244     amigaos*)
17245       case $host_cpu in
17246       powerpc)
17247             # see comment about AmigaOS4 .so support
17248             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17249             archive_expsym_cmds_GCJ=''
17250         ;;
17251       m68k)
17252             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)'
17253             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17254             hardcode_minus_L_GCJ=yes
17255         ;;
17256       esac
17257       ;;
17258
17259     beos*)
17260       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17261         allow_undefined_flag_GCJ=unsupported
17262         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17263         # support --undefined.  This deserves some investigation.  FIXME
17264         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17265       else
17266         ld_shlibs_GCJ=no
17267       fi
17268       ;;
17269
17270     cygwin* | mingw* | pw32* | cegcc*)
17271       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17272       # as there is no search path for DLLs.
17273       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17274       allow_undefined_flag_GCJ=unsupported
17275       always_export_symbols_GCJ=no
17276       enable_shared_with_static_runtimes_GCJ=yes
17277       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17278
17279       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17280         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17281         # If the export-symbols file already is a .def file (1st line
17282         # is EXPORTS), use it as is; otherwise, prepend...
17283         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17284           cp $export_symbols $output_objdir/$soname.def;
17285         else
17286           echo EXPORTS > $output_objdir/$soname.def;
17287           cat $export_symbols >> $output_objdir/$soname.def;
17288         fi~
17289         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17290       else
17291         ld_shlibs_GCJ=no
17292       fi
17293       ;;
17294
17295     interix[3-9]*)
17296       hardcode_direct_GCJ=no
17297       hardcode_shlibpath_var_GCJ=no
17298       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17299       export_dynamic_flag_spec_GCJ='${wl}-E'
17300       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17301       # Instead, shared libraries are loaded at an image base (0x10000000 by
17302       # default) and relocated if they conflict, which is a slow very memory
17303       # consuming and fragmenting process.  To avoid this, we pick a random,
17304       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17305       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17306       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'
17307       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'
17308       ;;
17309
17310     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17311       tmp_diet=no
17312       if test "$host_os" = linux-dietlibc; then
17313         case $cc_basename in
17314           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17315         esac
17316       fi
17317       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17318          && test "$tmp_diet" = no
17319       then
17320         tmp_addflag=
17321         tmp_sharedflag='-shared'
17322         case $cc_basename,$host_cpu in
17323         pgcc*)                          # Portland Group C compiler
17324           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'
17325           tmp_addflag=' $pic_flag'
17326           ;;
17327         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17328           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'
17329           tmp_addflag=' $pic_flag -Mnomain' ;;
17330         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17331           tmp_addflag=' -i_dynamic' ;;
17332         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17333           tmp_addflag=' -i_dynamic -nofor_main' ;;
17334         ifc* | ifort*)                  # Intel Fortran compiler
17335           tmp_addflag=' -nofor_main' ;;
17336         lf95*)                          # Lahey Fortran 8.1
17337           whole_archive_flag_spec_GCJ=
17338           tmp_sharedflag='--shared' ;;
17339         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17340           tmp_sharedflag='-qmkshrobj'
17341           tmp_addflag= ;;
17342         esac
17343         case `$CC -V 2>&1 | sed 5q` in
17344         *Sun\ C*)                       # Sun C 5.9
17345           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'
17346           compiler_needs_object_GCJ=yes
17347           tmp_sharedflag='-G' ;;
17348         *Sun\ F*)                       # Sun Fortran 8.3
17349           tmp_sharedflag='-G' ;;
17350         esac
17351         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17352
17353         if test "x$supports_anon_versioning" = xyes; then
17354           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17355             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17356             echo "local: *; };" >> $output_objdir/$libname.ver~
17357             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17358         fi
17359
17360         case $cc_basename in
17361         xlf*)
17362           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17363           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17364           hardcode_libdir_flag_spec_GCJ=
17365           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17366           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17367           if test "x$supports_anon_versioning" = xyes; then
17368             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17369               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17370               echo "local: *; };" >> $output_objdir/$libname.ver~
17371               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17372           fi
17373           ;;
17374         esac
17375       else
17376         ld_shlibs_GCJ=no
17377       fi
17378       ;;
17379
17380     netbsd*)
17381       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17382         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17383         wlarc=
17384       else
17385         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17387       fi
17388       ;;
17389
17390     solaris*)
17391       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17392         ld_shlibs_GCJ=no
17393         cat <<_LT_EOF 1>&2
17394
17395 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17396 *** create shared libraries on Solaris systems.  Therefore, libtool
17397 *** is disabling shared libraries support.  We urge you to upgrade GNU
17398 *** binutils to release 2.9.1 or newer.  Another option is to modify
17399 *** your PATH or compiler configuration so that the native linker is
17400 *** used, and then restart.
17401
17402 _LT_EOF
17403       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17404         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406       else
17407         ld_shlibs_GCJ=no
17408       fi
17409       ;;
17410
17411     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17412       case `$LD -v 2>&1` in
17413         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17414         ld_shlibs_GCJ=no
17415         cat <<_LT_EOF 1>&2
17416
17417 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17418 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17419 *** is disabling shared libraries support.  We urge you to upgrade GNU
17420 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17421 *** your PATH or compiler configuration so that the native linker is
17422 *** used, and then restart.
17423
17424 _LT_EOF
17425         ;;
17426         *)
17427           # For security reasons, it is highly recommended that you always
17428           # use absolute paths for naming shared libraries, and exclude the
17429           # DT_RUNPATH tag from executables and libraries.  But doing so
17430           # requires that you compile everything twice, which is a pain.
17431           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17432             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17433             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17434             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17435           else
17436             ld_shlibs_GCJ=no
17437           fi
17438         ;;
17439       esac
17440       ;;
17441
17442     sunos4*)
17443       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17444       wlarc=
17445       hardcode_direct_GCJ=yes
17446       hardcode_shlibpath_var_GCJ=no
17447       ;;
17448
17449     *)
17450       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17451         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17453       else
17454         ld_shlibs_GCJ=no
17455       fi
17456       ;;
17457     esac
17458
17459     if test "$ld_shlibs_GCJ" = no; then
17460       runpath_var=
17461       hardcode_libdir_flag_spec_GCJ=
17462       export_dynamic_flag_spec_GCJ=
17463       whole_archive_flag_spec_GCJ=
17464     fi
17465   else
17466     # PORTME fill in a description of your system's linker (not GNU ld)
17467     case $host_os in
17468     aix3*)
17469       allow_undefined_flag_GCJ=unsupported
17470       always_export_symbols_GCJ=yes
17471       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'
17472       # Note: this linker hardcodes the directories in LIBPATH if there
17473       # are no directories specified by -L.
17474       hardcode_minus_L_GCJ=yes
17475       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17476         # Neither direct hardcoding nor static linking is supported with a
17477         # broken collect2.
17478         hardcode_direct_GCJ=unsupported
17479       fi
17480       ;;
17481
17482     aix[4-9]*)
17483       if test "$host_cpu" = ia64; then
17484         # On IA64, the linker does run time linking by default, so we don't
17485         # have to do anything special.
17486         aix_use_runtimelinking=no
17487         exp_sym_flag='-Bexport'
17488         no_entry_flag=""
17489       else
17490         # If we're using GNU nm, then we don't want the "-C" option.
17491         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17492         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17493           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'
17494         else
17495           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'
17496         fi
17497         aix_use_runtimelinking=no
17498
17499         # Test if we are trying to use run time linking or normal
17500         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17501         # need to do runtime linking.
17502         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17503           for ld_flag in $LDFLAGS; do
17504           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17505             aix_use_runtimelinking=yes
17506             break
17507           fi
17508           done
17509           ;;
17510         esac
17511
17512         exp_sym_flag='-bexport'
17513         no_entry_flag='-bnoentry'
17514       fi
17515
17516       # When large executables or shared objects are built, AIX ld can
17517       # have problems creating the table of contents.  If linking a library
17518       # or program results in "error TOC overflow" add -mminimal-toc to
17519       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17520       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17521
17522       archive_cmds_GCJ=''
17523       hardcode_direct_GCJ=yes
17524       hardcode_direct_absolute_GCJ=yes
17525       hardcode_libdir_separator_GCJ=':'
17526       link_all_deplibs_GCJ=yes
17527       file_list_spec_GCJ='${wl}-f,'
17528
17529       if test "$GCC" = yes; then
17530         case $host_os in aix4.[012]|aix4.[012].*)
17531         # We only want to do this on AIX 4.2 and lower, the check
17532         # below for broken collect2 doesn't work under 4.3+
17533           collect2name=`${CC} -print-prog-name=collect2`
17534           if test -f "$collect2name" &&
17535            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17536           then
17537           # We have reworked collect2
17538           :
17539           else
17540           # We have old collect2
17541           hardcode_direct_GCJ=unsupported
17542           # It fails to find uninstalled libraries when the uninstalled
17543           # path is not listed in the libpath.  Setting hardcode_minus_L
17544           # to unsupported forces relinking
17545           hardcode_minus_L_GCJ=yes
17546           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547           hardcode_libdir_separator_GCJ=
17548           fi
17549           ;;
17550         esac
17551         shared_flag='-shared'
17552         if test "$aix_use_runtimelinking" = yes; then
17553           shared_flag="$shared_flag "'${wl}-G'
17554         fi
17555       else
17556         # not using gcc
17557         if test "$host_cpu" = ia64; then
17558         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17559         # chokes on -Wl,-G. The following line is correct:
17560           shared_flag='-G'
17561         else
17562           if test "$aix_use_runtimelinking" = yes; then
17563             shared_flag='${wl}-G'
17564           else
17565             shared_flag='${wl}-bM:SRE'
17566           fi
17567         fi
17568       fi
17569
17570       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17571       # It seems that -bexpall does not export symbols beginning with
17572       # underscore (_), so it is better to generate a list of symbols to export.
17573       always_export_symbols_GCJ=yes
17574       if test "$aix_use_runtimelinking" = yes; then
17575         # Warning - without using the other runtime loading flags (-brtl),
17576         # -berok will link without error, but may produce a broken library.
17577         allow_undefined_flag_GCJ='-berok'
17578         # Determine the default libpath from the value encoded in an
17579         # empty executable.
17580         if test x$gcc_no_link = xyes; then
17581   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17583    { (exit 1); exit 1; }; }
17584 fi
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591
17592 int
17593 main ()
17594 {
17595
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602   (eval $ac_link) 2>conftest.er1
17603   ac_status=$?
17604   grep -v '^ *+' conftest.er1 >conftest.err
17605   rm -f conftest.er1
17606   cat conftest.err >&5
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } &&
17609          { ac_try='test -z "$ac_c_werror_flag"
17610                          || test ! -s conftest.err'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest$ac_exeext'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622
17623 lt_aix_libpath_sed='
17624     /Import File Strings/,/^$/ {
17625         /^0/ {
17626             s/^0  *\(.*\)$/\1/
17627             p
17628         }
17629     }'
17630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17631 # Check for a 64-bit object if we didn't find anything.
17632 if test -z "$aix_libpath"; then
17633   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17634 fi
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 fi
17640 rm -f conftest.err conftest.$ac_objext \
17641       conftest$ac_exeext conftest.$ac_ext
17642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17643
17644         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645         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"
17646       else
17647         if test "$host_cpu" = ia64; then
17648           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649           allow_undefined_flag_GCJ="-z nodefs"
17650           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"
17651         else
17652          # Determine the default libpath from the value encoded in an
17653          # empty executable.
17654          if test x$gcc_no_link = xyes; then
17655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17657    { (exit 1); exit 1; }; }
17658 fi
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665
17666 int
17667 main ()
17668 {
17669
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17676   (eval $ac_link) 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } &&
17683          { ac_try='test -z "$ac_c_werror_flag"
17684                          || test ! -s conftest.err'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; } &&
17690          { ac_try='test -s conftest$ac_exeext'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696
17697 lt_aix_libpath_sed='
17698     /Import File Strings/,/^$/ {
17699         /^0/ {
17700             s/^0  *\(.*\)$/\1/
17701             p
17702         }
17703     }'
17704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17705 # Check for a 64-bit object if we didn't find anything.
17706 if test -z "$aix_libpath"; then
17707   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17708 fi
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 fi
17714 rm -f conftest.err conftest.$ac_objext \
17715       conftest$ac_exeext conftest.$ac_ext
17716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17717
17718          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17719           # Warning - without using the other run time loading flags,
17720           # -berok will link without error, but may produce a broken library.
17721           no_undefined_flag_GCJ=' ${wl}-bernotok'
17722           allow_undefined_flag_GCJ=' ${wl}-berok'
17723           # Exported symbols can be pulled into shared objects from archives
17724           whole_archive_flag_spec_GCJ='$convenience'
17725           archive_cmds_need_lc_GCJ=yes
17726           # This is similar to how AIX traditionally builds its shared libraries.
17727           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'
17728         fi
17729       fi
17730       ;;
17731
17732     amigaos*)
17733       case $host_cpu in
17734       powerpc)
17735             # see comment about AmigaOS4 .so support
17736             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17737             archive_expsym_cmds_GCJ=''
17738         ;;
17739       m68k)
17740             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)'
17741             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742             hardcode_minus_L_GCJ=yes
17743         ;;
17744       esac
17745       ;;
17746
17747     bsdi[45]*)
17748       export_dynamic_flag_spec_GCJ=-rdynamic
17749       ;;
17750
17751     cygwin* | mingw* | pw32* | cegcc*)
17752       # When not using gcc, we currently assume that we are using
17753       # Microsoft Visual C++.
17754       # hardcode_libdir_flag_spec is actually meaningless, as there is
17755       # no search path for DLLs.
17756       hardcode_libdir_flag_spec_GCJ=' '
17757       allow_undefined_flag_GCJ=unsupported
17758       # Tell ltmain to make .lib files, not .a files.
17759       libext=lib
17760       # Tell ltmain to make .dll files, not .so files.
17761       shrext_cmds=".dll"
17762       # FIXME: Setting linknames here is a bad hack.
17763       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17764       # The linker will automatically build a .lib file if we build a DLL.
17765       old_archive_from_new_cmds_GCJ='true'
17766       # FIXME: Should let the user specify the lib program.
17767       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17768       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17769       enable_shared_with_static_runtimes_GCJ=yes
17770       ;;
17771
17772     darwin* | rhapsody*)
17773
17774
17775   archive_cmds_need_lc_GCJ=no
17776   hardcode_direct_GCJ=no
17777   hardcode_automatic_GCJ=yes
17778   hardcode_shlibpath_var_GCJ=unsupported
17779   whole_archive_flag_spec_GCJ=''
17780   link_all_deplibs_GCJ=yes
17781   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17782   case $cc_basename in
17783      ifort*) _lt_dar_can_shared=yes ;;
17784      *) _lt_dar_can_shared=$GCC ;;
17785   esac
17786   if test "$_lt_dar_can_shared" = "yes"; then
17787     output_verbose_link_cmd=echo
17788     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17789     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17790     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17791     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${_lt_dar_export_syms}${_lt_dsymutil}"
17792
17793   else
17794   ld_shlibs_GCJ=no
17795   fi
17796
17797       ;;
17798
17799     dgux*)
17800       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17801       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17802       hardcode_shlibpath_var_GCJ=no
17803       ;;
17804
17805     freebsd1*)
17806       ld_shlibs_GCJ=no
17807       ;;
17808
17809     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17810     # support.  Future versions do this automatically, but an explicit c++rt0.o
17811     # does not break anything, and helps significantly (at the cost of a little
17812     # extra space).
17813     freebsd2.2*)
17814       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17815       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17816       hardcode_direct_GCJ=yes
17817       hardcode_shlibpath_var_GCJ=no
17818       ;;
17819
17820     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17821     freebsd2*)
17822       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17823       hardcode_direct_GCJ=yes
17824       hardcode_minus_L_GCJ=yes
17825       hardcode_shlibpath_var_GCJ=no
17826       ;;
17827
17828     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17829     freebsd* | dragonfly*)
17830       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17831       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17832       hardcode_direct_GCJ=yes
17833       hardcode_shlibpath_var_GCJ=no
17834       ;;
17835
17836     hpux9*)
17837       if test "$GCC" = yes; then
17838         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'
17839       else
17840         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'
17841       fi
17842       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17843       hardcode_libdir_separator_GCJ=:
17844       hardcode_direct_GCJ=yes
17845
17846       # hardcode_minus_L: Not really in the search PATH,
17847       # but as the default location of the library.
17848       hardcode_minus_L_GCJ=yes
17849       export_dynamic_flag_spec_GCJ='${wl}-E'
17850       ;;
17851
17852     hpux10*)
17853       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17854         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17855       else
17856         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17857       fi
17858       if test "$with_gnu_ld" = no; then
17859         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17860         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17861         hardcode_libdir_separator_GCJ=:
17862         hardcode_direct_GCJ=yes
17863         hardcode_direct_absolute_GCJ=yes
17864         export_dynamic_flag_spec_GCJ='${wl}-E'
17865         # hardcode_minus_L: Not really in the search PATH,
17866         # but as the default location of the library.
17867         hardcode_minus_L_GCJ=yes
17868       fi
17869       ;;
17870
17871     hpux11*)
17872       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17873         case $host_cpu in
17874         hppa*64*)
17875           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17876           ;;
17877         ia64*)
17878           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17879           ;;
17880         *)
17881           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17882           ;;
17883         esac
17884       else
17885         case $host_cpu in
17886         hppa*64*)
17887           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17888           ;;
17889         ia64*)
17890           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17891           ;;
17892         *)
17893           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17894           ;;
17895         esac
17896       fi
17897       if test "$with_gnu_ld" = no; then
17898         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17899         hardcode_libdir_separator_GCJ=:
17900
17901         case $host_cpu in
17902         hppa*64*|ia64*)
17903           hardcode_direct_GCJ=no
17904           hardcode_shlibpath_var_GCJ=no
17905           ;;
17906         *)
17907           hardcode_direct_GCJ=yes
17908           hardcode_direct_absolute_GCJ=yes
17909           export_dynamic_flag_spec_GCJ='${wl}-E'
17910
17911           # hardcode_minus_L: Not really in the search PATH,
17912           # but as the default location of the library.
17913           hardcode_minus_L_GCJ=yes
17914           ;;
17915         esac
17916       fi
17917       ;;
17918
17919     irix5* | irix6* | nonstopux*)
17920       if test "$GCC" = yes; then
17921         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'
17922         # Try to use the -exported_symbol ld option, if it does not
17923         # work, assume that -exports_file does not work either and
17924         # implicitly export all symbols.
17925         save_LDFLAGS="$LDFLAGS"
17926         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17927         if test x$gcc_no_link = xyes; then
17928   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17929 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17930    { (exit 1); exit 1; }; }
17931 fi
17932 cat >conftest.$ac_ext <<_ACEOF
17933 int foo(void) {}
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17937   (eval $ac_link) 2>conftest.er1
17938   ac_status=$?
17939   grep -v '^ *+' conftest.er1 >conftest.err
17940   rm -f conftest.er1
17941   cat conftest.err >&5
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); } &&
17944          { ac_try='test -z "$ac_c_werror_flag"
17945                          || test ! -s conftest.err'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest$ac_exeext'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   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'
17958
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 fi
17964 rm -f conftest.err conftest.$ac_objext \
17965       conftest$ac_exeext conftest.$ac_ext
17966         LDFLAGS="$save_LDFLAGS"
17967       else
17968         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'
17969         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'
17970       fi
17971       archive_cmds_need_lc_GCJ='no'
17972       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17973       hardcode_libdir_separator_GCJ=:
17974       inherit_rpath_GCJ=yes
17975       link_all_deplibs_GCJ=yes
17976       ;;
17977
17978     netbsd*)
17979       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17980         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17981       else
17982         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17983       fi
17984       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17985       hardcode_direct_GCJ=yes
17986       hardcode_shlibpath_var_GCJ=no
17987       ;;
17988
17989     newsos6)
17990       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17991       hardcode_direct_GCJ=yes
17992       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17993       hardcode_libdir_separator_GCJ=:
17994       hardcode_shlibpath_var_GCJ=no
17995       ;;
17996
17997     *nto* | *qnx*)
17998       ;;
17999
18000     openbsd*)
18001       if test -f /usr/libexec/ld.so; then
18002         hardcode_direct_GCJ=yes
18003         hardcode_shlibpath_var_GCJ=no
18004         hardcode_direct_absolute_GCJ=yes
18005         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18006           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18007           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18008           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18009           export_dynamic_flag_spec_GCJ='${wl}-E'
18010         else
18011           case $host_os in
18012            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18013              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18014              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18015              ;;
18016            *)
18017              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18018              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18019              ;;
18020           esac
18021         fi
18022       else
18023         ld_shlibs_GCJ=no
18024       fi
18025       ;;
18026
18027     os2*)
18028       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18029       hardcode_minus_L_GCJ=yes
18030       allow_undefined_flag_GCJ=unsupported
18031       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'
18032       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18033       ;;
18034
18035     osf3*)
18036       if test "$GCC" = yes; then
18037         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18038         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'
18039       else
18040         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18041         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'
18042       fi
18043       archive_cmds_need_lc_GCJ='no'
18044       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18045       hardcode_libdir_separator_GCJ=:
18046       ;;
18047
18048     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18049       if test "$GCC" = yes; then
18050         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18051         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'
18052         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18053       else
18054         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18055         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'
18056         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~
18057         $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'
18058
18059         # Both c and cxx compiler support -rpath directly
18060         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18061       fi
18062       archive_cmds_need_lc_GCJ='no'
18063       hardcode_libdir_separator_GCJ=:
18064       ;;
18065
18066     solaris*)
18067       no_undefined_flag_GCJ=' -z defs'
18068       if test "$GCC" = yes; then
18069         wlarc='${wl}'
18070         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18072           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18073       else
18074         case `$CC -V 2>&1` in
18075         *"Compilers 5.0"*)
18076           wlarc=''
18077           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18079           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18080           ;;
18081         *)
18082           wlarc='${wl}'
18083           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18084           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18085           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18086           ;;
18087         esac
18088       fi
18089       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090       hardcode_shlibpath_var_GCJ=no
18091       case $host_os in
18092       solaris2.[0-5] | solaris2.[0-5].*) ;;
18093       *)
18094         # The compiler driver will combine and reorder linker options,
18095         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18096         # but is careful enough not to reorder.
18097         # Supported since Solaris 2.6 (maybe 2.5.1?)
18098         if test "$GCC" = yes; then
18099           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18100         else
18101           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18102         fi
18103         ;;
18104       esac
18105       link_all_deplibs_GCJ=yes
18106       ;;
18107
18108     sunos4*)
18109       if test "x$host_vendor" = xsequent; then
18110         # Use $CC to link under sequent, because it throws in some extra .o
18111         # files that make .init and .fini sections work.
18112         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18113       else
18114         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18115       fi
18116       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18117       hardcode_direct_GCJ=yes
18118       hardcode_minus_L_GCJ=yes
18119       hardcode_shlibpath_var_GCJ=no
18120       ;;
18121
18122     sysv4)
18123       case $host_vendor in
18124         sni)
18125           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18126           hardcode_direct_GCJ=yes # is this really true???
18127         ;;
18128         siemens)
18129           ## LD is ld it makes a PLAMLIB
18130           ## CC just makes a GrossModule.
18131           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18132           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18133           hardcode_direct_GCJ=no
18134         ;;
18135         motorola)
18136           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18138         ;;
18139       esac
18140       runpath_var='LD_RUN_PATH'
18141       hardcode_shlibpath_var_GCJ=no
18142       ;;
18143
18144     sysv4.3*)
18145       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146       hardcode_shlibpath_var_GCJ=no
18147       export_dynamic_flag_spec_GCJ='-Bexport'
18148       ;;
18149
18150     sysv4*MP*)
18151       if test -d /usr/nec; then
18152         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153         hardcode_shlibpath_var_GCJ=no
18154         runpath_var=LD_RUN_PATH
18155         hardcode_runpath_var=yes
18156         ld_shlibs_GCJ=yes
18157       fi
18158       ;;
18159
18160     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18161       no_undefined_flag_GCJ='${wl}-z,text'
18162       archive_cmds_need_lc_GCJ=no
18163       hardcode_shlibpath_var_GCJ=no
18164       runpath_var='LD_RUN_PATH'
18165
18166       if test "$GCC" = yes; then
18167         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18169       else
18170         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18171         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18172       fi
18173       ;;
18174
18175     sysv5* | sco3.2v5* | sco5v6*)
18176       # Note: We can NOT use -z defs as we might desire, because we do not
18177       # link with -lc, and that would cause any symbols used from libc to
18178       # always be unresolved, which means just about no library would
18179       # ever link correctly.  If we're not using GNU ld we use -z text
18180       # though, which does catch some bad symbols but isn't as heavy-handed
18181       # as -z defs.
18182       no_undefined_flag_GCJ='${wl}-z,text'
18183       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18184       archive_cmds_need_lc_GCJ=no
18185       hardcode_shlibpath_var_GCJ=no
18186       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18187       hardcode_libdir_separator_GCJ=':'
18188       link_all_deplibs_GCJ=yes
18189       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18190       runpath_var='LD_RUN_PATH'
18191
18192       if test "$GCC" = yes; then
18193         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18194         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18195       else
18196         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18197         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18198       fi
18199       ;;
18200
18201     uts4*)
18202       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18204       hardcode_shlibpath_var_GCJ=no
18205       ;;
18206
18207     *)
18208       ld_shlibs_GCJ=no
18209       ;;
18210     esac
18211
18212     if test x$host_vendor = xsni; then
18213       case $host in
18214       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18215         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18216         ;;
18217       esac
18218     fi
18219   fi
18220
18221 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18222 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18223 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18224
18225 with_gnu_ld_GCJ=$with_gnu_ld
18226
18227
18228
18229
18230
18231
18232 #
18233 # Do we need to explicitly link libc?
18234 #
18235 case "x$archive_cmds_need_lc_GCJ" in
18236 x|xyes)
18237   # Assume -lc should be added
18238   archive_cmds_need_lc_GCJ=yes
18239
18240   if test "$enable_shared" = yes && test "$GCC" = yes; then
18241     case $archive_cmds_GCJ in
18242     *'~'*)
18243       # FIXME: we may have to deal with multi-command sequences.
18244       ;;
18245     '$CC '*)
18246       # Test whether the compiler implicitly links with -lc since on some
18247       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18248       # to ld, don't add -lc before -lgcc.
18249       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18250 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18251 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then
18252   echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254   $RM conftest*
18255         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18256
18257         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258   (eval $ac_compile) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } 2>conftest.err; then
18262           soname=conftest
18263           lib=conftest
18264           libobjs=conftest.$ac_objext
18265           deplibs=
18266           wl=$lt_prog_compiler_wl_GCJ
18267           pic_flag=$lt_prog_compiler_pic_GCJ
18268           compiler_flags=-v
18269           linker_flags=-v
18270           verstring=
18271           output_objdir=.
18272           libname=conftest
18273           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18274           allow_undefined_flag_GCJ=
18275           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18276   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }
18280           then
18281             lt_cv_archive_cmds_need_lc_GCJ=no
18282           else
18283             lt_cv_archive_cmds_need_lc_GCJ=yes
18284           fi
18285           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18286         else
18287           cat conftest.err 1>&5
18288         fi
18289         $RM conftest*
18290
18291 fi
18292 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18293 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_GCJ" >&6
18294       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18295       ;;
18296     esac
18297   fi
18298   ;;
18299 esac
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18366 hardcode_action_GCJ=
18367 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18368    test -n "$runpath_var_GCJ" ||
18369    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18370
18371   # We can hardcode non-existent directories.
18372   if test "$hardcode_direct_GCJ" != no &&
18373      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18374      # have to relink, otherwise we might link with an installed library
18375      # when we should be linking with a yet-to-be-installed one
18376      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18377      test "$hardcode_minus_L_GCJ" != no; then
18378     # Linking always hardcodes the temporary library directory.
18379     hardcode_action_GCJ=relink
18380   else
18381     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18382     hardcode_action_GCJ=immediate
18383   fi
18384 else
18385   # We cannot hardcode anything, or else we can only hardcode existing
18386   # directories.
18387   hardcode_action_GCJ=unsupported
18388 fi
18389 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18390 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18391
18392 if test "$hardcode_action_GCJ" = relink ||
18393    test "$inherit_rpath_GCJ" = yes; then
18394   # Fast installation is not supported
18395   enable_fast_install=no
18396 elif test "$shlibpath_overrides_runpath" = yes ||
18397      test "$enable_shared" = no; then
18398   # Fast installation is not necessary
18399   enable_fast_install=needless
18400 fi
18401
18402
18403
18404
18405
18406
18407
18408 fi
18409
18410 compiler_GCJ=${GCJ-gcj}
18411 ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417
18418 if test "x$CC" != xcc; then
18419   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18420 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18421 else
18422   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18423 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18424 fi
18425 set dummy $CC; ac_cc=`echo $2 |
18426                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18427 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h.  */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h.  */
18436
18437 int
18438 main ()
18439 {
18440
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 # Make sure it works both with $CC and with simple cc.
18446 # We do the test twice because some compilers refuse to overwrite an
18447 # existing .o file with -o, though they will create one.
18448 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18449 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450   (eval $ac_try) 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455   (eval $ac_try) 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); };
18459 then
18460   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18461   if test "x$CC" != xcc; then
18462     # Test first that cc exists at all.
18463     if { ac_try='cc -c conftest.$ac_ext >&5'
18464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465   (eval $ac_try) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18470       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); } &&
18475          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); };
18480       then
18481         # cc works too.
18482         :
18483       else
18484         # cc exists but doesn't like -o.
18485         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18486       fi
18487     fi
18488   fi
18489 else
18490   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18491 fi
18492 rm -f conftest*
18493
18494 fi
18495 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18496   echo "$as_me:$LINENO: result: yes" >&5
18497 echo "${ECHO_T}yes" >&6
18498 else
18499   echo "$as_me:$LINENO: result: no" >&5
18500 echo "${ECHO_T}no" >&6
18501
18502 cat >>confdefs.h <<\_ACEOF
18503 #define NO_MINUS_C_MINUS_O 1
18504 _ACEOF
18505
18506 fi
18507
18508 # FIXME: we rely on the cache variable name because
18509 # there is no other way.
18510 set dummy $CC
18511 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18512 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18513    # Losing compiler, so override with the script.
18514    # FIXME: It is wrong to rewrite CC.
18515    # But if we don't then we get into trouble of one sort or another.
18516    # A longer-term fix would be to have automake use am__CC in this case,
18517    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18518    CC="$am_aux_dir/compile $CC"
18519 fi
18520
18521
18522
18523
18524 subdirs="$subdirs classpath libltdl"
18525
18526
18527 # The -no-testsuite modules omit the test subdir.
18528
18529
18530 if test -d $srcdir/testsuite; then
18531   TESTSUBDIR_TRUE=
18532   TESTSUBDIR_FALSE='#'
18533 else
18534   TESTSUBDIR_TRUE='#'
18535   TESTSUBDIR_FALSE=
18536 fi
18537
18538
18539 # Should the runtime set system properties by examining the
18540 # environment variable GCJ_PROPERTIES?
18541 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18542 if test "${enable_getenv_properties+set}" = set; then
18543   enableval="$enable_getenv_properties"
18544
18545 fi;
18546
18547 # Whether GCJ_PROPERTIES is used depends on the target.
18548 if test -z "$enable_getenv_properties"; then
18549    enable_getenv_properties=${enable_getenv_properties_default-yes}
18550 fi
18551 if test "$enable_getenv_properties" = no; then
18552
18553 cat >>confdefs.h <<\_ACEOF
18554 #define DISABLE_GETENV_PROPERTIES 1
18555 _ACEOF
18556
18557 fi
18558
18559 # Whether we should use arguments to main()
18560 if test -z "$enable_main_args"; then
18561    enable_main_args=${enable_main_args_default-yes}
18562 fi
18563 if test "$enable_main_args" = no; then
18564
18565 cat >>confdefs.h <<\_ACEOF
18566 #define DISABLE_MAIN_ARGS 1
18567 _ACEOF
18568
18569 fi
18570
18571
18572 # Should we use hashtable-based synchronization?
18573 # Currently works only for Linux X86/ia64
18574 # Typically faster and more space-efficient
18575 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18576 if test "${enable_hash_synchronization+set}" = set; then
18577   enableval="$enable_hash_synchronization"
18578
18579 fi;
18580
18581 if test -z "$enable_hash_synchronization"; then
18582    enable_hash_synchronization=$enable_hash_synchronization_default
18583 fi
18584
18585
18586 install_ecj_jar=no
18587 ECJ_BUILD_JAR=
18588 ECJ_JAR=
18589
18590 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18591 if test "${with_ecj_jar+set}" = set; then
18592   withval="$with_ecj_jar"
18593   ECJ_JAR=$withval
18594 else
18595   if test -f $multi_basedir/ecj.jar; then
18596            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18597            ECJ_JAR='$(jardir)/ecj.jar'
18598            install_ecj_jar=yes
18599          fi
18600 fi;
18601
18602
18603
18604
18605 if test "$ECJ_JAR" != ""; then
18606   BUILD_ECJ1_TRUE=
18607   BUILD_ECJ1_FALSE='#'
18608 else
18609   BUILD_ECJ1_TRUE='#'
18610   BUILD_ECJ1_FALSE=
18611 fi
18612
18613
18614
18615 if test $install_ecj_jar = yes; then
18616   INSTALL_ECJ_JAR_TRUE=
18617   INSTALL_ECJ_JAR_FALSE='#'
18618 else
18619   INSTALL_ECJ_JAR_TRUE='#'
18620   INSTALL_ECJ_JAR_FALSE=
18621 fi
18622
18623
18624
18625 # Check whether --with-java-home or --without-java-home was given.
18626 if test "${with_java_home+set}" = set; then
18627   withval="$with_java_home"
18628   JAVA_HOME="${withval}"
18629 else
18630   JAVA_HOME=""
18631 fi;
18632
18633
18634 if test ! -z "$JAVA_HOME"; then
18635   JAVA_HOME_SET_TRUE=
18636   JAVA_HOME_SET_FALSE='#'
18637 else
18638   JAVA_HOME_SET_TRUE='#'
18639   JAVA_HOME_SET_FALSE=
18640 fi
18641
18642
18643
18644 suppress_libgcj_bc=no
18645 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18646 if test "${enable_libgcj_bc+set}" = set; then
18647   enableval="$enable_libgcj_bc"
18648   if test "$enable_libgcj_bc" = "no"; then
18649      suppress_libgcj_bc=yes
18650    fi
18651 fi;
18652
18653
18654 if test "$suppress_libgcj_bc" = "yes"; then
18655   SUPPRESS_LIBGCJ_BC_TRUE=
18656   SUPPRESS_LIBGCJ_BC_FALSE='#'
18657 else
18658   SUPPRESS_LIBGCJ_BC_TRUE='#'
18659   SUPPRESS_LIBGCJ_BC_FALSE=
18660 fi
18661
18662
18663 build_libgcj_reduced_reflection=no
18664 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18665 if test "${enable_reduced_reflection+set}" = set; then
18666   enableval="$enable_reduced_reflection"
18667   if test "$enable_reduced_reflection" = "yes"; then
18668      build_libgcj_reduced_reflection=yes
18669    fi
18670 fi;
18671
18672
18673 if test "$build_libgcj_reduced_reflection" = "yes"; then
18674   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18675   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18676 else
18677   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18678   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18679 fi
18680
18681
18682 # What is the native OS API for MinGW?
18683
18684 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18685 if test "${with_win32_nlsapi+set}" = set; then
18686   withval="$with_win32_nlsapi"
18687   case "${withval}" in
18688   ansi) with_win32_nlsapi=ansi ;;
18689   unicows) with_win32_nlsapi=unicows ;;
18690   unicode) with_win32_nlsapi=unicode ;;
18691   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18692 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18693    { (exit 1); exit 1; }; } ;;
18694 esac
18695 else
18696   with_win32_nlsapi=ansi
18697 fi;
18698
18699 case "${with_win32_nlsapi}" in
18700   unicows | unicode)
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define MINGW_LIBGCJ_UNICODE 1
18704 _ACEOF
18705
18706     ;;
18707 esac
18708
18709 # configure.host sets slow_pthread_self if the synchronization code should
18710 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18711 if test "${slow_pthread_self}" = "yes"; then
18712
18713 cat >>confdefs.h <<\_ACEOF
18714 #define SLOW_PTHREAD_SELF 1
18715 _ACEOF
18716
18717 fi
18718
18719 # Check for gc debugging.  This option is handled both here and in the GC.
18720 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18721 if test "${enable_gc_debug+set}" = set; then
18722   enableval="$enable_gc_debug"
18723    if test "$enable_gc_debug" = "yes"; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define LIBGCJ_GC_DEBUG 1
18727 _ACEOF
18728
18729   fi
18730 fi;
18731
18732 # See if the user has the interpreter included.
18733 # Check whether --enable-interpreter or --disable-interpreter was given.
18734 if test "${enable_interpreter+set}" = set; then
18735   enableval="$enable_interpreter"
18736   if test "$enable_interpreter" = yes; then
18737     # This can also be set in configure.host.
18738     libgcj_interpreter=yes
18739   elif test "$enable_interpreter" = no; then
18740     libgcj_interpreter=no
18741   fi
18742 fi;
18743
18744 if test "$libgcj_interpreter" = yes; then
18745
18746 cat >>confdefs.h <<\_ACEOF
18747 #define INTERPRETER 1
18748 _ACEOF
18749
18750 fi
18751 INTERPRETER="$libgcj_interpreter"
18752
18753
18754
18755 if test "$libgcj_interpreter" = yes; then
18756   INTERPRETER_TRUE=
18757   INTERPRETER_FALSE='#'
18758 else
18759   INTERPRETER_TRUE='#'
18760   INTERPRETER_FALSE=
18761 fi
18762
18763
18764 echo "$as_me:$LINENO: checking for exception model to use" >&5
18765 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18766 ac_ext=cc
18767 ac_cpp='$CXXCPP $CPPFLAGS'
18768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18771
18772 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18773 if test "${enable_sjlj_exceptions+set}" = set; then
18774   enableval="$enable_sjlj_exceptions"
18775   :
18776 else
18777   cat > conftest.$ac_ext << EOF
18778 #line 18778 "configure"
18779 struct S { ~S(); };
18780 void bar();
18781 void foo()
18782 {
18783   S s;
18784   bar();
18785 }
18786 EOF
18787 old_CXXFLAGS="$CXXFLAGS"
18788 CXXFLAGS=-S
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790   (eval $ac_compile) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; then
18794   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18795     enable_sjlj_exceptions=yes
18796   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18797     enable_sjlj_exceptions=no
18798   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
18799     # ARM EH ABI.
18800     enable_sjlj_exceptions=no
18801   fi
18802 fi
18803 CXXFLAGS="$old_CXXFLAGS"
18804 rm -f conftest*
18805 fi;
18806 if test x$enable_sjlj_exceptions = xyes; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define SJLJ_EXCEPTIONS 1
18810 _ACEOF
18811
18812   ac_exception_model_name=sjlj
18813 elif test x$enable_sjlj_exceptions = xno; then
18814   ac_exception_model_name="call frame"
18815 else
18816   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18817 echo "$as_me: error: unable to detect exception model" >&2;}
18818    { (exit 1); exit 1; }; }
18819 fi
18820 ac_ext=c
18821 ac_cpp='$CPP $CPPFLAGS'
18822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18825
18826 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18827 echo "${ECHO_T}$ac_exception_model_name" >&6
18828
18829 # If we are non using SJLJ exceptions, and this host does not have support
18830 # for unwinding from a signal handler, enable checked dereferences and divides.
18831 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18832   CHECKREFSPEC=-fcheck-references
18833   DIVIDESPEC=-fuse-divide-subroutine
18834   EXCEPTIONSPEC=
18835 fi
18836
18837 # See if the user wants to disable java.net.  This is the mildly
18838 # ugly way that we admit that target-side configuration sucks.
18839 # Check whether --enable-java-net or --disable-java-net was given.
18840 if test "${enable_java_net+set}" = set; then
18841   enableval="$enable_java_net"
18842
18843 fi;
18844
18845 # Whether java.net is built by default can depend on the target.
18846 if test -z "$enable_java_net"; then
18847    enable_java_net=${enable_java_net_default-yes}
18848 fi
18849 if test "$enable_java_net" = no; then
18850
18851 cat >>confdefs.h <<\_ACEOF
18852 #define DISABLE_JAVA_NET 1
18853 _ACEOF
18854
18855 fi
18856
18857 # See if the user wants to configure without libffi.  Some
18858 # architectures don't support it, and default values are set in
18859 # configure.host.
18860
18861 # Check whether --with-libffi or --without-libffi was given.
18862 if test "${with_libffi+set}" = set; then
18863   withval="$with_libffi"
18864   :
18865 else
18866   with_libffi=${with_libffi_default-yes}
18867 fi;
18868
18869 LIBFFI=
18870 LIBFFIINCS=
18871 if test "$with_libffi" != no; then
18872
18873 cat >>confdefs.h <<\_ACEOF
18874 #define USE_LIBFFI 1
18875 _ACEOF
18876
18877    LIBFFI=../libffi/libffi_convenience.la
18878    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18879 fi
18880
18881
18882
18883 # See if the user wants to disable JVMPI support.
18884 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18885 if test "${enable_jvmpi+set}" = set; then
18886   enableval="$enable_jvmpi"
18887
18888 fi;
18889
18890 if test "$enable_jvmpi" != no; then
18891
18892 cat >>confdefs.h <<\_ACEOF
18893 #define ENABLE_JVMPI 1
18894 _ACEOF
18895
18896 fi
18897
18898 # If the target is an eCos system, use the appropriate eCos
18899 # I/O routines.
18900 # FIXME: this should not be a local option but a global target
18901 # system; at present there is no eCos target.
18902 TARGET_ECOS=${PROCESS-"no"}
18903
18904 # Check whether --with-ecos or --without-ecos was given.
18905 if test "${with_ecos+set}" = set; then
18906   withval="$with_ecos"
18907   TARGET_ECOS="$with_ecos"
18908
18909 fi;
18910
18911 case "$TARGET_ECOS" in
18912    no) case "$host" in
18913       *mingw*)
18914             PLATFORM=Win32
18915             PLATFORMNET=Win32
18916             PLATFORMH=win32.h
18917
18918 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18919 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18920 LD_PROG=`$CC --print-prog-name=ld`
18921 LD_VERSION=`$LD_PROG --version`
18922 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18923 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18924 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18925   LD_OK="ok"
18926 else
18927   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18928     LD_OK="ok"
18929   fi
18930 fi
18931 if test "x$LD_OK" != x; then
18932   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18933 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18934 else
18935   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18936 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18937   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18938 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18942 _ACEOF
18943
18944 fi
18945       ;;
18946       *)
18947             PLATFORM=Posix
18948             PLATFORMNET=Posix
18949             PLATFORMH=posix.h
18950       ;;
18951       esac
18952       ;;
18953    *)
18954       PLATFORM=Ecos
18955       PLATFORMNET=NoNet
18956
18957 cat >>confdefs.h <<\_ACEOF
18958 #define ECOS 1
18959 _ACEOF
18960
18961       PLATFORMH=posix.h
18962       ;;
18963 esac
18964
18965           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18966
18967
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974 #include <stdint.h>
18975
18976 _ACEOF
18977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18978   $EGREP "uint32_t" >/dev/null 2>&1; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_INT32_DEFINED 1
18982 _ACEOF
18983
18984 fi
18985 rm -f conftest*
18986
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993 #include <inttypes.h>
18994
18995 _ACEOF
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997   $EGREP "uint32_t" >/dev/null 2>&1; then
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_INT32_DEFINED 1
19001 _ACEOF
19002
19003 fi
19004 rm -f conftest*
19005
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 #include <sys/types.h>
19013
19014 _ACEOF
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016   $EGREP "u_int32_t" >/dev/null 2>&1; then
19017
19018 cat >>confdefs.h <<\_ACEOF
19019 #define HAVE_BSD_INT32_DEFINED 1
19020 _ACEOF
19021
19022 fi
19023 rm -f conftest*
19024
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h.  */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h.  */
19031 #include <sys/config.h>
19032
19033 _ACEOF
19034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19035   $EGREP "u_int32_t" >/dev/null 2>&1; then
19036
19037 cat >>confdefs.h <<\_ACEOF
19038 #define HAVE_BSD_INT32_DEFINED 1
19039 _ACEOF
19040
19041 fi
19042 rm -f conftest*
19043
19044
19045
19046
19047 if test "$PLATFORM" = Win32; then
19048   USING_WIN32_PLATFORM_TRUE=
19049   USING_WIN32_PLATFORM_FALSE='#'
19050 else
19051   USING_WIN32_PLATFORM_TRUE='#'
19052   USING_WIN32_PLATFORM_FALSE=
19053 fi
19054
19055
19056
19057 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19058   USING_POSIX_PLATFORM_TRUE=
19059   USING_POSIX_PLATFORM_FALSE='#'
19060 else
19061   USING_POSIX_PLATFORM_TRUE='#'
19062   USING_POSIX_PLATFORM_FALSE=
19063 fi
19064
19065
19066 case "$host" in
19067   *-darwin*) DARWIN_CRT=true ;;
19068   *) DARWIN_CRT=false ;;
19069 esac
19070
19071
19072 if $DARWIN_CRT; then
19073   USING_DARWIN_CRT_TRUE=
19074   USING_DARWIN_CRT_FALSE='#'
19075 else
19076   USING_DARWIN_CRT_TRUE='#'
19077   USING_DARWIN_CRT_FALSE=
19078 fi
19079
19080
19081 # This may not be defined in a non-ANS conformant embedded system.
19082 # FIXME: Should these case a runtime exception in that case?
19083 cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h.  */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h.  */
19089 #include <time.h>
19090
19091 _ACEOF
19092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19093   $EGREP "localtime" >/dev/null 2>&1; then
19094
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE_LOCALTIME 1
19097 _ACEOF
19098
19099 fi
19100 rm -f conftest*
19101
19102
19103 # Create the subdirectory for natFile.cc, or the attempt
19104 # to create the link will fail.
19105 test -d java || mkdir java
19106 test -d java/io || mkdir java/io
19107 test -d gnu || mkdir gnu
19108           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19109
19110
19111 # Likewise for natConcreteProcess.cc.
19112 test -d java/lang || mkdir java/lang
19113           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19114
19115
19116 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19117 test -d java/net || mkdir java/net
19118           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19119
19120           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19121
19122
19123 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19124 test -d gnu/java || mkdir gnu/java
19125 test -d gnu/java/net || mkdir gnu/java/net
19126           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19127
19128           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19129
19130
19131 # Likewise for natVMPipe.cc and natVMSelector.cc.
19132 test -d gnu/java/nio || mkdir gnu/java/nio
19133           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19134
19135           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19136
19137
19138 # Likewise for natFileChannelImpl.cc
19139 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19140           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19141
19142
19143 # Likewise for natVMSecureRandom.cc
19144 test -d gnu/java/security || mkdir gnu/java/security
19145 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19146 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19147           ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19148
19149
19150 case "${host}" in
19151     *mingw*)
19152       SYSTEMSPEC="-lgdi32 -lws2_32"
19153       if test "${with_win32_nlsapi}" = "unicows"; then
19154         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19155       fi
19156     ;;
19157     *)
19158       SYSTEMSPEC=
19159     ;;
19160 esac
19161
19162
19163
19164 # Check whether --with-system-zlib or --without-system-zlib was given.
19165 if test "${with_system_zlib+set}" = set; then
19166   withval="$with_system_zlib"
19167
19168 fi;
19169 ZLIBSPEC=
19170
19171 ZLIBTESTSPEC=
19172
19173
19174 echo "$as_me:$LINENO: checking for X" >&5
19175 echo $ECHO_N "checking for X... $ECHO_C" >&6
19176
19177
19178 # Check whether --with-x or --without-x was given.
19179 if test "${with_x+set}" = set; then
19180   withval="$with_x"
19181
19182 fi;
19183 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19184 if test "x$with_x" = xno; then
19185   # The user explicitly disabled X.
19186   have_x=disabled
19187 else
19188   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19189     # Both variables are already set.
19190     have_x=yes
19191   else
19192     if test "${ac_cv_have_x+set}" = set; then
19193   echo $ECHO_N "(cached) $ECHO_C" >&6
19194 else
19195   # One or both of the vars are not set, and there is no cached value.
19196 ac_x_includes=no ac_x_libraries=no
19197 rm -fr conftest.dir
19198 if mkdir conftest.dir; then
19199   cd conftest.dir
19200   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19201   cat >Imakefile <<'_ACEOF'
19202 acfindx:
19203         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19204 _ACEOF
19205   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19206     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19207     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19208     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19209     for ac_extension in a so sl; do
19210       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19211          test -f $ac_im_libdir/libX11.$ac_extension; then
19212         ac_im_usrlibdir=$ac_im_libdir; break
19213       fi
19214     done
19215     # Screen out bogus values from the imake configuration.  They are
19216     # bogus both because they are the default anyway, and because
19217     # using them would break gcc on systems where it needs fixed includes.
19218     case $ac_im_incroot in
19219         /usr/include) ;;
19220         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19221     esac
19222     case $ac_im_usrlibdir in
19223         /usr/lib | /lib) ;;
19224         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19225     esac
19226   fi
19227   cd ..
19228   rm -fr conftest.dir
19229 fi
19230
19231 # Standard set of common directories for X headers.
19232 # Check X11 before X11Rn because it is often a symlink to the current release.
19233 ac_x_header_dirs='
19234 /usr/X11/include
19235 /usr/X11R6/include
19236 /usr/X11R5/include
19237 /usr/X11R4/include
19238
19239 /usr/include/X11
19240 /usr/include/X11R6
19241 /usr/include/X11R5
19242 /usr/include/X11R4
19243
19244 /usr/local/X11/include
19245 /usr/local/X11R6/include
19246 /usr/local/X11R5/include
19247 /usr/local/X11R4/include
19248
19249 /usr/local/include/X11
19250 /usr/local/include/X11R6
19251 /usr/local/include/X11R5
19252 /usr/local/include/X11R4
19253
19254 /usr/X386/include
19255 /usr/x386/include
19256 /usr/XFree86/include/X11
19257
19258 /usr/include
19259 /usr/local/include
19260 /usr/unsupported/include
19261 /usr/athena/include
19262 /usr/local/x11r5/include
19263 /usr/lpp/Xamples/include
19264
19265 /usr/openwin/include
19266 /usr/openwin/share/include'
19267
19268 if test "$ac_x_includes" = no; then
19269   # Guess where to find include files, by looking for Intrinsic.h.
19270   # First, try using that file with no special directory specified.
19271   cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 #include <X11/Intrinsic.h>
19278 _ACEOF
19279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } >/dev/null; then
19287   if test -s conftest.err; then
19288     ac_cpp_err=$ac_c_preproc_warn_flag
19289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19290   else
19291     ac_cpp_err=
19292   fi
19293 else
19294   ac_cpp_err=yes
19295 fi
19296 if test -z "$ac_cpp_err"; then
19297   # We can compile using X headers with no special include directory.
19298 ac_x_includes=
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303   for ac_dir in $ac_x_header_dirs; do
19304   if test -r "$ac_dir/X11/Intrinsic.h"; then
19305     ac_x_includes=$ac_dir
19306     break
19307   fi
19308 done
19309 fi
19310 rm -f conftest.err conftest.$ac_ext
19311 fi # $ac_x_includes = no
19312
19313 if test "$ac_x_libraries" = no; then
19314   # Check for the libraries.
19315   # See if we find them without any special options.
19316   # Don't add to $LIBS permanently.
19317   ac_save_LIBS=$LIBS
19318   LIBS="-lXt $LIBS"
19319   if test x$gcc_no_link = xyes; then
19320   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19321 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19322    { (exit 1); exit 1; }; }
19323 fi
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <X11/Intrinsic.h>
19331 int
19332 main ()
19333 {
19334 XtMalloc (0)
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341   (eval $ac_link) 2>conftest.er1
19342   ac_status=$?
19343   grep -v '^ *+' conftest.er1 >conftest.err
19344   rm -f conftest.er1
19345   cat conftest.err >&5
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } &&
19348          { ac_try='test -z "$ac_c_werror_flag"
19349                          || test ! -s conftest.err'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; } &&
19355          { ac_try='test -s conftest$ac_exeext'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; }; then
19361   LIBS=$ac_save_LIBS
19362 # We can link X programs with no special library path.
19363 ac_x_libraries=
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 LIBS=$ac_save_LIBS
19369 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19370 do
19371   # Don't even attempt the hair of trying to link an X program!
19372   for ac_extension in a so sl; do
19373     if test -r $ac_dir/libXt.$ac_extension; then
19374       ac_x_libraries=$ac_dir
19375       break 2
19376     fi
19377   done
19378 done
19379 fi
19380 rm -f conftest.err conftest.$ac_objext \
19381       conftest$ac_exeext conftest.$ac_ext
19382 fi # $ac_x_libraries = no
19383
19384 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19385   # Didn't find X anywhere.  Cache the known absence of X.
19386   ac_cv_have_x="have_x=no"
19387 else
19388   # Record where we found X for the cache.
19389   ac_cv_have_x="have_x=yes \
19390                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19391 fi
19392 fi
19393
19394   fi
19395   eval "$ac_cv_have_x"
19396 fi # $with_x != no
19397
19398 if test "$have_x" != yes; then
19399   echo "$as_me:$LINENO: result: $have_x" >&5
19400 echo "${ECHO_T}$have_x" >&6
19401   no_x=yes
19402 else
19403   # If each of the values was on the command line, it overrides each guess.
19404   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19405   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19406   # Update the cache value to reflect the command line values.
19407   ac_cv_have_x="have_x=yes \
19408                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19409   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19410 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19411 fi
19412
19413 if test "$no_x" = yes; then
19414   # Not all programs may use this symbol, but it does not hurt to define it.
19415
19416 cat >>confdefs.h <<\_ACEOF
19417 #define X_DISPLAY_MISSING 1
19418 _ACEOF
19419
19420   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19421 else
19422   if test -n "$x_includes"; then
19423     X_CFLAGS="$X_CFLAGS -I$x_includes"
19424   fi
19425
19426   # It would also be nice to do this for all -L options, not just this one.
19427   if test -n "$x_libraries"; then
19428     X_LIBS="$X_LIBS -L$x_libraries"
19429     # For Solaris; some versions of Sun CC require a space after -R and
19430     # others require no space.  Words are not sufficient . . . .
19431     case `(uname -sr) 2>/dev/null` in
19432     "SunOS 5"*)
19433       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19434 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19435       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19436       if test x$gcc_no_link = xyes; then
19437   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19439    { (exit 1); exit 1; }; }
19440 fi
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447
19448 int
19449 main ()
19450 {
19451
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458   (eval $ac_link) 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } &&
19465          { ac_try='test -z "$ac_c_werror_flag"
19466                          || test ! -s conftest.err'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest$ac_exeext'
19473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474   (eval $ac_try) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_R_nospace=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_R_nospace=no
19484 fi
19485 rm -f conftest.err conftest.$ac_objext \
19486       conftest$ac_exeext conftest.$ac_ext
19487       if test $ac_R_nospace = yes; then
19488         echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6
19490         X_LIBS="$X_LIBS -R$x_libraries"
19491       else
19492         LIBS="$ac_xsave_LIBS -R $x_libraries"
19493         if test x$gcc_no_link = xyes; then
19494   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19496    { (exit 1); exit 1; }; }
19497 fi
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504
19505 int
19506 main ()
19507 {
19508
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515   (eval $ac_link) 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } &&
19522          { ac_try='test -z "$ac_c_werror_flag"
19523                          || test ! -s conftest.err'
19524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525   (eval $ac_try) 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; } &&
19529          { ac_try='test -s conftest$ac_exeext'
19530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531   (eval $ac_try) 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; }; then
19535   ac_R_space=yes
19536 else
19537   echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540 ac_R_space=no
19541 fi
19542 rm -f conftest.err conftest.$ac_objext \
19543       conftest$ac_exeext conftest.$ac_ext
19544         if test $ac_R_space = yes; then
19545           echo "$as_me:$LINENO: result: yes" >&5
19546 echo "${ECHO_T}yes" >&6
19547           X_LIBS="$X_LIBS -R $x_libraries"
19548         else
19549           echo "$as_me:$LINENO: result: neither works" >&5
19550 echo "${ECHO_T}neither works" >&6
19551         fi
19552       fi
19553       LIBS=$ac_xsave_LIBS
19554     esac
19555   fi
19556
19557   # Check for system-dependent libraries X programs must link with.
19558   # Do this before checking for the system-independent R6 libraries
19559   # (-lICE), since we may need -lsocket or whatever for X linking.
19560
19561   if test "$ISC" = yes; then
19562     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19563   else
19564     # Martyn Johnson says this is needed for Ultrix, if the X
19565     # libraries were built with DECnet support.  And Karl Berry says
19566     # the Alpha needs dnet_stub (dnet does not exist).
19567     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19568     if test x$gcc_no_link = xyes; then
19569   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19571    { (exit 1); exit 1; }; }
19572 fi
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h.  */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h.  */
19579
19580 /* Override any gcc2 internal prototype to avoid an error.  */
19581 #ifdef __cplusplus
19582 extern "C"
19583 #endif
19584 /* We use char because int might match the return type of a gcc2
19585    builtin and then its argument prototype would still apply.  */
19586 char XOpenDisplay ();
19587 int
19588 main ()
19589 {
19590 XOpenDisplay ();
19591   ;
19592   return 0;
19593 }
19594 _ACEOF
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597   (eval $ac_link) 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_c_werror_flag"
19605                          || test ! -s conftest.err'
19606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607   (eval $ac_try) 2>&5
19608   ac_status=$?
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); }; } &&
19611          { ac_try='test -s conftest$ac_exeext'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   :
19618 else
19619   echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19623 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19624 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   ac_check_lib_save_LIBS=$LIBS
19628 LIBS="-ldnet  $LIBS"
19629 if test x$gcc_no_link = xyes; then
19630   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19632    { (exit 1); exit 1; }; }
19633 fi
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640
19641 /* Override any gcc2 internal prototype to avoid an error.  */
19642 #ifdef __cplusplus
19643 extern "C"
19644 #endif
19645 /* We use char because int might match the return type of a gcc2
19646    builtin and then its argument prototype would still apply.  */
19647 char dnet_ntoa ();
19648 int
19649 main ()
19650 {
19651 dnet_ntoa ();
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19658   (eval $ac_link) 2>conftest.er1
19659   ac_status=$?
19660   grep -v '^ *+' conftest.er1 >conftest.err
19661   rm -f conftest.er1
19662   cat conftest.err >&5
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); } &&
19665          { ac_try='test -z "$ac_c_werror_flag"
19666                          || test ! -s conftest.err'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; } &&
19672          { ac_try='test -s conftest$ac_exeext'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   ac_cv_lib_dnet_dnet_ntoa=yes
19679 else
19680   echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683 ac_cv_lib_dnet_dnet_ntoa=no
19684 fi
19685 rm -f conftest.err conftest.$ac_objext \
19686       conftest$ac_exeext conftest.$ac_ext
19687 LIBS=$ac_check_lib_save_LIBS
19688 fi
19689 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19690 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19691 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19692   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19693 fi
19694
19695     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19696       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19697 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19698 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701   ac_check_lib_save_LIBS=$LIBS
19702 LIBS="-ldnet_stub  $LIBS"
19703 if test x$gcc_no_link = xyes; then
19704   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19706    { (exit 1); exit 1; }; }
19707 fi
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714
19715 /* Override any gcc2 internal prototype to avoid an error.  */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 /* We use char because int might match the return type of a gcc2
19720    builtin and then its argument prototype would still apply.  */
19721 char dnet_ntoa ();
19722 int
19723 main ()
19724 {
19725 dnet_ntoa ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732   (eval $ac_link) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag"
19740                          || test ! -s conftest.err'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; } &&
19746          { ac_try='test -s conftest$ac_exeext'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; }; then
19752   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ac_cv_lib_dnet_stub_dnet_ntoa=no
19758 fi
19759 rm -f conftest.err conftest.$ac_objext \
19760       conftest$ac_exeext conftest.$ac_ext
19761 LIBS=$ac_check_lib_save_LIBS
19762 fi
19763 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19764 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19765 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19766   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19767 fi
19768
19769     fi
19770 fi
19771 rm -f conftest.err conftest.$ac_objext \
19772       conftest$ac_exeext conftest.$ac_ext
19773     LIBS="$ac_xsave_LIBS"
19774
19775     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19776     # to get the SysV transport functions.
19777     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19778     # needs -lnsl.
19779     # The nsl library prevents programs from opening the X display
19780     # on Irix 5.2, according to T.E. Dickey.
19781     # The functions gethostbyname, getservbyname, and inet_addr are
19782     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19783     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19784 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19785 if test "${ac_cv_func_gethostbyname+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   if test x$gcc_no_link = xyes; then
19789   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19790 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19791    { (exit 1); exit 1; }; }
19792 fi
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19801 #define gethostbyname innocuous_gethostbyname
19802
19803 /* System header to define __stub macros and hopefully few prototypes,
19804     which can conflict with char gethostbyname (); below.
19805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19806     <limits.h> exists even on freestanding compilers.  */
19807
19808 #ifdef __STDC__
19809 # include <limits.h>
19810 #else
19811 # include <assert.h>
19812 #endif
19813
19814 #undef gethostbyname
19815
19816 /* Override any gcc2 internal prototype to avoid an error.  */
19817 #ifdef __cplusplus
19818 extern "C"
19819 {
19820 #endif
19821 /* We use char because int might match the return type of a gcc2
19822    builtin and then its argument prototype would still apply.  */
19823 char gethostbyname ();
19824 /* The GNU C library defines this for functions which it implements
19825     to always fail with ENOSYS.  Some functions are actually named
19826     something starting with __ and the normal name is an alias.  */
19827 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19828 choke me
19829 #else
19830 char (*f) () = gethostbyname;
19831 #endif
19832 #ifdef __cplusplus
19833 }
19834 #endif
19835
19836 int
19837 main ()
19838 {
19839 return f != gethostbyname;
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19846   (eval $ac_link) 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_c_werror_flag"
19854                          || test ! -s conftest.err'
19855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856   (eval $ac_try) 2>&5
19857   ac_status=$?
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); }; } &&
19860          { ac_try='test -s conftest$ac_exeext'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_func_gethostbyname=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_cv_func_gethostbyname=no
19872 fi
19873 rm -f conftest.err conftest.$ac_objext \
19874       conftest$ac_exeext conftest.$ac_ext
19875 fi
19876 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19877 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19878
19879     if test $ac_cv_func_gethostbyname = no; then
19880       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19881 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19882 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   ac_check_lib_save_LIBS=$LIBS
19886 LIBS="-lnsl  $LIBS"
19887 if test x$gcc_no_link = xyes; then
19888   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19890    { (exit 1); exit 1; }; }
19891 fi
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898
19899 /* Override any gcc2 internal prototype to avoid an error.  */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 /* We use char because int might match the return type of a gcc2
19904    builtin and then its argument prototype would still apply.  */
19905 char gethostbyname ();
19906 int
19907 main ()
19908 {
19909 gethostbyname ();
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19916   (eval $ac_link) 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag"
19924                          || test ! -s conftest.err'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; } &&
19930          { ac_try='test -s conftest$ac_exeext'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; }; then
19936   ac_cv_lib_nsl_gethostbyname=yes
19937 else
19938   echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_cv_lib_nsl_gethostbyname=no
19942 fi
19943 rm -f conftest.err conftest.$ac_objext \
19944       conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_check_lib_save_LIBS
19946 fi
19947 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19948 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19949 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19950   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19951 fi
19952
19953       if test $ac_cv_lib_nsl_gethostbyname = no; then
19954         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19955 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19956 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   ac_check_lib_save_LIBS=$LIBS
19960 LIBS="-lbsd  $LIBS"
19961 if test x$gcc_no_link = xyes; then
19962   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19964    { (exit 1); exit 1; }; }
19965 fi
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h.  */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h.  */
19972
19973 /* Override any gcc2 internal prototype to avoid an error.  */
19974 #ifdef __cplusplus
19975 extern "C"
19976 #endif
19977 /* We use char because int might match the return type of a gcc2
19978    builtin and then its argument prototype would still apply.  */
19979 char gethostbyname ();
19980 int
19981 main ()
19982 {
19983 gethostbyname ();
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990   (eval $ac_link) 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -z "$ac_c_werror_flag"
19998                          || test ! -s conftest.err'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } &&
20004          { ac_try='test -s conftest$ac_exeext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_cv_lib_bsd_gethostbyname=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_cv_lib_bsd_gethostbyname=no
20016 fi
20017 rm -f conftest.err conftest.$ac_objext \
20018       conftest$ac_exeext conftest.$ac_ext
20019 LIBS=$ac_check_lib_save_LIBS
20020 fi
20021 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20022 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20023 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20024   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20025 fi
20026
20027       fi
20028     fi
20029
20030     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20031     # socket/setsockopt and other routines are undefined under SCO ODT
20032     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20033     # on later versions), says Simon Leinen: it contains gethostby*
20034     # variants that don't use the name server (or something).  -lsocket
20035     # must be given before -lnsl if both are needed.  We assume that
20036     # if connect needs -lnsl, so does gethostbyname.
20037     echo "$as_me:$LINENO: checking for connect" >&5
20038 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20039 if test "${ac_cv_func_connect+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   if test x$gcc_no_link = xyes; then
20043   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20045    { (exit 1); exit 1; }; }
20046 fi
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20055 #define connect innocuous_connect
20056
20057 /* System header to define __stub macros and hopefully few prototypes,
20058     which can conflict with char connect (); below.
20059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20060     <limits.h> exists even on freestanding compilers.  */
20061
20062 #ifdef __STDC__
20063 # include <limits.h>
20064 #else
20065 # include <assert.h>
20066 #endif
20067
20068 #undef connect
20069
20070 /* Override any gcc2 internal prototype to avoid an error.  */
20071 #ifdef __cplusplus
20072 extern "C"
20073 {
20074 #endif
20075 /* We use char because int might match the return type of a gcc2
20076    builtin and then its argument prototype would still apply.  */
20077 char connect ();
20078 /* The GNU C library defines this for functions which it implements
20079     to always fail with ENOSYS.  Some functions are actually named
20080     something starting with __ and the normal name is an alias.  */
20081 #if defined (__stub_connect) || defined (__stub___connect)
20082 choke me
20083 #else
20084 char (*f) () = connect;
20085 #endif
20086 #ifdef __cplusplus
20087 }
20088 #endif
20089
20090 int
20091 main ()
20092 {
20093 return f != connect;
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100   (eval $ac_link) 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } &&
20107          { ac_try='test -z "$ac_c_werror_flag"
20108                          || test ! -s conftest.err'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; } &&
20114          { ac_try='test -s conftest$ac_exeext'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; }; then
20120   ac_cv_func_connect=yes
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 ac_cv_func_connect=no
20126 fi
20127 rm -f conftest.err conftest.$ac_objext \
20128       conftest$ac_exeext conftest.$ac_ext
20129 fi
20130 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20131 echo "${ECHO_T}$ac_cv_func_connect" >&6
20132
20133     if test $ac_cv_func_connect = no; then
20134       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20135 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20136 if test "${ac_cv_lib_socket_connect+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20141 if test x$gcc_no_link = xyes; then
20142   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20144    { (exit 1); exit 1; }; }
20145 fi
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any gcc2 internal prototype to avoid an error.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 /* We use char because int might match the return type of a gcc2
20158    builtin and then its argument prototype would still apply.  */
20159 char connect ();
20160 int
20161 main ()
20162 {
20163 connect ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170   (eval $ac_link) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest$ac_exeext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   ac_cv_lib_socket_connect=yes
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_lib_socket_connect=no
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198       conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20203 if test $ac_cv_lib_socket_connect = yes; then
20204   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20205 fi
20206
20207     fi
20208
20209     # Guillermo Gomez says -lposix is necessary on A/UX.
20210     echo "$as_me:$LINENO: checking for remove" >&5
20211 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20212 if test "${ac_cv_func_remove+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   if test x$gcc_no_link = xyes; then
20216   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20218    { (exit 1); exit 1; }; }
20219 fi
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20228 #define remove innocuous_remove
20229
20230 /* System header to define __stub macros and hopefully few prototypes,
20231     which can conflict with char remove (); below.
20232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233     <limits.h> exists even on freestanding compilers.  */
20234
20235 #ifdef __STDC__
20236 # include <limits.h>
20237 #else
20238 # include <assert.h>
20239 #endif
20240
20241 #undef remove
20242
20243 /* Override any gcc2 internal prototype to avoid an error.  */
20244 #ifdef __cplusplus
20245 extern "C"
20246 {
20247 #endif
20248 /* We use char because int might match the return type of a gcc2
20249    builtin and then its argument prototype would still apply.  */
20250 char remove ();
20251 /* The GNU C library defines this for functions which it implements
20252     to always fail with ENOSYS.  Some functions are actually named
20253     something starting with __ and the normal name is an alias.  */
20254 #if defined (__stub_remove) || defined (__stub___remove)
20255 choke me
20256 #else
20257 char (*f) () = remove;
20258 #endif
20259 #ifdef __cplusplus
20260 }
20261 #endif
20262
20263 int
20264 main ()
20265 {
20266 return f != remove;
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext conftest$ac_exeext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20273   (eval $ac_link) 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -z "$ac_c_werror_flag"
20281                          || test ! -s conftest.err'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest$ac_exeext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_cv_func_remove=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_cv_func_remove=no
20299 fi
20300 rm -f conftest.err conftest.$ac_objext \
20301       conftest$ac_exeext conftest.$ac_ext
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20304 echo "${ECHO_T}$ac_cv_func_remove" >&6
20305
20306     if test $ac_cv_func_remove = no; then
20307       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20308 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20309 if test "${ac_cv_lib_posix_remove+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   ac_check_lib_save_LIBS=$LIBS
20313 LIBS="-lposix  $LIBS"
20314 if test x$gcc_no_link = xyes; then
20315   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20317    { (exit 1); exit 1; }; }
20318 fi
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325
20326 /* Override any gcc2 internal prototype to avoid an error.  */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 /* We use char because int might match the return type of a gcc2
20331    builtin and then its argument prototype would still apply.  */
20332 char remove ();
20333 int
20334 main ()
20335 {
20336 remove ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20343   (eval $ac_link) 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } &&
20350          { ac_try='test -z "$ac_c_werror_flag"
20351                          || test ! -s conftest.err'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; } &&
20357          { ac_try='test -s conftest$ac_exeext'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_lib_posix_remove=yes
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 ac_cv_lib_posix_remove=no
20369 fi
20370 rm -f conftest.err conftest.$ac_objext \
20371       conftest$ac_exeext conftest.$ac_ext
20372 LIBS=$ac_check_lib_save_LIBS
20373 fi
20374 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20375 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20376 if test $ac_cv_lib_posix_remove = yes; then
20377   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20378 fi
20379
20380     fi
20381
20382     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20383     echo "$as_me:$LINENO: checking for shmat" >&5
20384 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20385 if test "${ac_cv_func_shmat+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   if test x$gcc_no_link = xyes; then
20389   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20391    { (exit 1); exit 1; }; }
20392 fi
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20401 #define shmat innocuous_shmat
20402
20403 /* System header to define __stub macros and hopefully few prototypes,
20404     which can conflict with char shmat (); below.
20405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20406     <limits.h> exists even on freestanding compilers.  */
20407
20408 #ifdef __STDC__
20409 # include <limits.h>
20410 #else
20411 # include <assert.h>
20412 #endif
20413
20414 #undef shmat
20415
20416 /* Override any gcc2 internal prototype to avoid an error.  */
20417 #ifdef __cplusplus
20418 extern "C"
20419 {
20420 #endif
20421 /* We use char because int might match the return type of a gcc2
20422    builtin and then its argument prototype would still apply.  */
20423 char shmat ();
20424 /* The GNU C library defines this for functions which it implements
20425     to always fail with ENOSYS.  Some functions are actually named
20426     something starting with __ and the normal name is an alias.  */
20427 #if defined (__stub_shmat) || defined (__stub___shmat)
20428 choke me
20429 #else
20430 char (*f) () = shmat;
20431 #endif
20432 #ifdef __cplusplus
20433 }
20434 #endif
20435
20436 int
20437 main ()
20438 {
20439 return f != shmat;
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446   (eval $ac_link) 2>conftest.er1
20447   ac_status=$?
20448   grep -v '^ *+' conftest.er1 >conftest.err
20449   rm -f conftest.er1
20450   cat conftest.err >&5
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); } &&
20453          { ac_try='test -z "$ac_c_werror_flag"
20454                          || test ! -s conftest.err'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; } &&
20460          { ac_try='test -s conftest$ac_exeext'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466   ac_cv_func_shmat=yes
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_cv_func_shmat=no
20472 fi
20473 rm -f conftest.err conftest.$ac_objext \
20474       conftest$ac_exeext conftest.$ac_ext
20475 fi
20476 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20477 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20478
20479     if test $ac_cv_func_shmat = no; then
20480       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20481 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20482 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   ac_check_lib_save_LIBS=$LIBS
20486 LIBS="-lipc  $LIBS"
20487 if test x$gcc_no_link = xyes; then
20488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20490    { (exit 1); exit 1; }; }
20491 fi
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 /* Override any gcc2 internal prototype to avoid an error.  */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 /* We use char because int might match the return type of a gcc2
20504    builtin and then its argument prototype would still apply.  */
20505 char shmat ();
20506 int
20507 main ()
20508 {
20509 shmat ();
20510   ;
20511   return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516   (eval $ac_link) 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } &&
20523          { ac_try='test -z "$ac_c_werror_flag"
20524                          || test ! -s conftest.err'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; } &&
20530          { ac_try='test -s conftest$ac_exeext'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; }; then
20536   ac_cv_lib_ipc_shmat=yes
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 ac_cv_lib_ipc_shmat=no
20542 fi
20543 rm -f conftest.err conftest.$ac_objext \
20544       conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20546 fi
20547 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20548 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20549 if test $ac_cv_lib_ipc_shmat = yes; then
20550   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20551 fi
20552
20553     fi
20554   fi
20555
20556   # Check for libraries that X11R6 Xt/Xaw programs need.
20557   ac_save_LDFLAGS=$LDFLAGS
20558   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20559   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20560   # check for ICE first), but we must link in the order -lSM -lICE or
20561   # we get undefined symbols.  So assume we have SM if we have ICE.
20562   # These have to be linked with before -lX11, unlike the other
20563   # libraries we check for below, so use a different variable.
20564   # John Interrante, Karl Berry
20565   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20566 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20567 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   ac_check_lib_save_LIBS=$LIBS
20571 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20572 if test x$gcc_no_link = xyes; then
20573   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20574 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20575    { (exit 1); exit 1; }; }
20576 fi
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583
20584 /* Override any gcc2 internal prototype to avoid an error.  */
20585 #ifdef __cplusplus
20586 extern "C"
20587 #endif
20588 /* We use char because int might match the return type of a gcc2
20589    builtin and then its argument prototype would still apply.  */
20590 char IceConnectionNumber ();
20591 int
20592 main ()
20593 {
20594 IceConnectionNumber ();
20595   ;
20596   return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20601   (eval $ac_link) 2>conftest.er1
20602   ac_status=$?
20603   grep -v '^ *+' conftest.er1 >conftest.err
20604   rm -f conftest.er1
20605   cat conftest.err >&5
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } &&
20608          { ac_try='test -z "$ac_c_werror_flag"
20609                          || test ! -s conftest.err'
20610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611   (eval $ac_try) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; } &&
20615          { ac_try='test -s conftest$ac_exeext'
20616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617   (eval $ac_try) 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); }; }; then
20621   ac_cv_lib_ICE_IceConnectionNumber=yes
20622 else
20623   echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626 ac_cv_lib_ICE_IceConnectionNumber=no
20627 fi
20628 rm -f conftest.err conftest.$ac_objext \
20629       conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20631 fi
20632 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20633 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20634 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20635   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20636 fi
20637
20638   LDFLAGS=$ac_save_LDFLAGS
20639
20640 fi
20641
20642
20643 # FIXME: this should be _libs on some hosts.
20644 libsubdir=.libs
20645
20646 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20647
20648 LIBSTDCXXSPEC=
20649 # extra LD Flags which are required for targets
20650 case "${host}" in
20651 *-*-darwin[0-7].*)
20652     # For now we have to disable it on darwin[8-9] because it slows down
20653     # the linking phase. A possible bug in ld?
20654     # on Darwin -single_module speeds up loading of the dynamic libraries.
20655     extra_ldflags_libjava=-Wl,-single_module
20656     ;;
20657 *-*-darwin[912]*)
20658     extra_gij_ldflags=-Wl,-allow_stack_execute
20659     ;;
20660 arm*linux*eabi)
20661     # Some of the ARM unwinder code is actually in libstdc++.  We
20662     # could in principle replicate it in libgcj, but it's better to
20663     # have a dependency on libstdc++.
20664     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20665     LIBSTDCXXSPEC=-lstdc++
20666     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20667     ;;
20668 esac
20669
20670
20671
20672
20673
20674
20675
20676 # Allow the GC to be disabled.  Can be useful when debugging.
20677 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20678 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20679 # Check whether --enable-java-gc or --disable-java-gc was given.
20680 if test "${enable_java_gc+set}" = set; then
20681   enableval="$enable_java_gc"
20682   GC=$enableval
20683 else
20684   GC=boehm
20685 fi;
20686 GCLIBS=
20687 GCINCS=
20688 GCDEPS=
20689 GCSPEC=
20690 JC1GCSPEC=
20691 GCTESTSPEC=
20692 case "$GC" in
20693  boehm)
20694     echo "$as_me:$LINENO: result: boehm" >&5
20695 echo "${ECHO_T}boehm" >&6
20696     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20697     JC1GCSPEC='-fuse-boehm-gc'
20698     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20699     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20700     GCOBJS=boehm.lo
20701     GCHDR=boehm-gc.h
20702     # The POSIX thread support needs to know this.
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_BOEHM_GC 1
20706 _ACEOF
20707
20708     ;;
20709  no)
20710     echo "$as_me:$LINENO: result: none" >&5
20711 echo "${ECHO_T}none" >&6
20712     GCHDR=no-gc.h
20713     ;;
20714  *)
20715     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20716 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20717    { (exit 1); exit 1; }; }
20718     ;;
20719 esac
20720
20721
20722
20723
20724
20725
20726           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20727
20728
20729
20730 if test "$GC" = boehm; then
20731   USING_BOEHMGC_TRUE=
20732   USING_BOEHMGC_FALSE='#'
20733 else
20734   USING_BOEHMGC_TRUE='#'
20735   USING_BOEHMGC_FALSE=
20736 fi
20737
20738
20739
20740 if test "$GC" = no; then
20741   USING_NOGC_TRUE=
20742   USING_NOGC_FALSE='#'
20743 else
20744   USING_NOGC_TRUE='#'
20745   USING_NOGC_FALSE=
20746 fi
20747
20748
20749
20750 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20751 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20752 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20753 echo "$as_me:$LINENO: result: $THREADS" >&5
20754 echo "${ECHO_T}$THREADS" >&6
20755
20756 case "$THREADS" in
20757  no | none | single)
20758     THREADS=none
20759     ;;
20760  aix | posix | posix95 | pthreads)
20761     THREADS=posix
20762     case "$host" in
20763      *-*-linux*)
20764
20765 cat >>confdefs.h <<\_ACEOF
20766 #define LINUX_THREADS 1
20767 _ACEOF
20768
20769         ;;
20770     esac
20771     ;;
20772  win32)
20773     ;;
20774  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20775     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20776 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20777    { (exit 1); exit 1; }; }
20778     ;;
20779  *)
20780     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20781 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20782    { (exit 1); exit 1; }; }
20783     ;;
20784 esac
20785
20786 THREADCXXFLAGS=
20787 THREADLDFLAGS=
20788 THREADLIBS=
20789 THREADINCS=
20790 THREADDEPS=
20791 THREADH=
20792 THREADSPEC=
20793 THREADSTARTFILESPEC=
20794 case "$THREADS" in
20795  posix)
20796     case "$host" in
20797      *-*-cygwin*)
20798         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20799         ;;
20800      *-*-freebsd[1234]*)
20801         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20802         # merely adds pthread_* functions) but it does have a -pthread switch
20803         # which is required at link-time to select -lc_r *instead* of -lc.
20804         THREADLDFLAGS=-pthread
20805         # Don't set THREADSPEC here as might be expected since -pthread is
20806         # not processed when found within a spec file, it must come from
20807         # the command line.  For now, the user must provide the -pthread
20808         # switch to link code compiled with gcj.  In future, consider adding
20809         # support for weak references to pthread_* functions ala gthr.h API.
20810         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20811         ;;
20812      *-*-freebsd*)
20813         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20814         # systems which support threads and -lpthread.
20815         THREADLDFLAGS=-pthread
20816         THREADSPEC=-lpthread
20817         ;;
20818      alpha*-dec-osf* | hppa*-hp-hpux*)
20819         THREADCXXFLAGS=-pthread
20820         # boehm-gc needs some functions from librt, so link that too.
20821         THREADLIBS='-lpthread -lrt'
20822         THREADSPEC='-lpthread -lrt'
20823         ;;
20824      *)
20825         THREADLIBS=-lpthread
20826         THREADSPEC=-lpthread
20827         ;;
20828     esac
20829     THREADH=posix-threads.h
20830     # MIT pthreads doesn't seem to have the mutexattr functions.
20831     # But for now we don't check for it.  We just assume you aren't
20832     # using MIT pthreads.
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20836 _ACEOF
20837
20838
20839     # If we're using the Boehm GC, then we happen to know that it
20840     # defines _REENTRANT, so we don't bother.  Eww.
20841     if test "$GC" != boehm; then
20842
20843 cat >>confdefs.h <<\_ACEOF
20844 #define _REENTRANT 1
20845 _ACEOF
20846
20847     fi
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define _POSIX_PTHREAD_SEMANTICS 1
20851 _ACEOF
20852
20853     ;;
20854
20855  win32)
20856     THREADH=win32-threads.h
20857     THREADCXXFLAGS=-mthreads
20858     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20859     # But we do not want the executables created to be dependent on
20860     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20861     # exception handling contexts.  The following kludge achieves this effect
20862     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20863     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20864     # A workaround is to explicitly use -mthreads while linking Java programs.
20865     # See PR libgcj/28263.
20866     #
20867     # FIXME: In Java we are able to detect thread death at the end of
20868     # Thread.run() so we should be able to clean up the exception handling
20869     # contexts ourselves.
20870     THREADSTARTFILESPEC='crtmt%O%s'
20871     ;;
20872
20873  none)
20874     THREADH=no-threads.h
20875     ;;
20876 esac
20877           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888 if test "$THREADS" = posix; then
20889   USING_POSIX_THREADS_TRUE=
20890   USING_POSIX_THREADS_FALSE='#'
20891 else
20892   USING_POSIX_THREADS_TRUE='#'
20893   USING_POSIX_THREADS_FALSE=
20894 fi
20895
20896
20897
20898 if test "$THREADS" = win32; then
20899   USING_WIN32_THREADS_TRUE=
20900   USING_WIN32_THREADS_FALSE='#'
20901 else
20902   USING_WIN32_THREADS_TRUE='#'
20903   USING_WIN32_THREADS_FALSE=
20904 fi
20905
20906
20907
20908 if test "$THREADS" = none; then
20909   USING_NO_THREADS_TRUE=
20910   USING_NO_THREADS_FALSE='#'
20911 else
20912   USING_NO_THREADS_TRUE='#'
20913   USING_NO_THREADS_FALSE=
20914 fi
20915
20916 if test "$enable_shared" != yes; then
20917   use_libgcj_bc=no
20918 fi
20919
20920
20921 if test "$use_libgcj_bc" = yes; then
20922   USE_LIBGCJ_BC_TRUE=
20923   USE_LIBGCJ_BC_FALSE='#'
20924 else
20925   USE_LIBGCJ_BC_TRUE='#'
20926   USE_LIBGCJ_BC_FALSE=
20927 fi
20928
20929
20930 if test -d sysdep; then true; else mkdir sysdep; fi
20931           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20932
20933           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20934
20935           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20936
20937
20938 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20939 if test "$use_libgcj_bc" = yes; then
20940   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:-lgcj;:-lgcj_bc}"
20941 fi
20942
20943
20944 HASH_SYNC_SPEC=
20945 # Hash synchronization is only useful with posix threads right now.
20946 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20947    HASH_SYNC_SPEC=-fhash-synchronization
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define JV_HASH_SYNCHRONIZATION 1
20951 _ACEOF
20952
20953 fi
20954
20955
20956
20957
20958 if test "$GCC" = yes; then
20959   USING_GCC_TRUE=
20960   USING_GCC_FALSE='#'
20961 else
20962   USING_GCC_TRUE='#'
20963   USING_GCC_FALSE=
20964 fi
20965
20966
20967 # We're in the tree with gcc, and need to include some of its headers.
20968 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20969
20970 if test "x${with_newlib}" = "xyes"; then
20971    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20972    # may not work correctly, because the compiler may not be able to
20973    # link executables.
20974
20975    # We assume newlib.  This lets us hard-code the functions we know
20976    # we'll have.
20977
20978 cat >>confdefs.h <<\_ACEOF
20979 #define HAVE_MEMMOVE 1
20980 _ACEOF
20981
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_MEMCPY 1
20985 _ACEOF
20986
20987
20988 cat >>confdefs.h <<\_ACEOF
20989 #define HAVE_TIME 1
20990 _ACEOF
20991
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_GMTIME_R 1
20995 _ACEOF
20996
20997
20998 cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_LOCALTIME_R 1
21000 _ACEOF
21001
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_USLEEP_DECL 1
21005 _ACEOF
21006
21007    # This is only for POSIX threads.
21008
21009 cat >>confdefs.h <<\_ACEOF
21010 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
21011 _ACEOF
21012
21013
21014    # Assume we do not have getuid and friends.
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define NO_GETUID 1
21018 _ACEOF
21019
21020    PLATFORMNET=NoNet
21021 else
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052 for ac_func in strerror_r select fstat open fsync sleep opendir \
21053                    localtime_r getpwuid_r getcwd \
21054                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
21055                    nl_langinfo setlocale \
21056                    inet_pton uname inet_ntoa \
21057                    getrlimit sigaction ftruncate mmap \
21058                    getifaddrs
21059 do
21060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21061 echo "$as_me:$LINENO: checking for $ac_func" >&5
21062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21063 if eval "test \"\${$as_ac_var+set}\" = set"; then
21064   echo $ECHO_N "(cached) $ECHO_C" >&6
21065 else
21066   if test x$gcc_no_link = xyes; then
21067   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21069    { (exit 1); exit 1; }; }
21070 fi
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21079 #define $ac_func innocuous_$ac_func
21080
21081 /* System header to define __stub macros and hopefully few prototypes,
21082     which can conflict with char $ac_func (); below.
21083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21084     <limits.h> exists even on freestanding compilers.  */
21085
21086 #ifdef __STDC__
21087 # include <limits.h>
21088 #else
21089 # include <assert.h>
21090 #endif
21091
21092 #undef $ac_func
21093
21094 /* Override any gcc2 internal prototype to avoid an error.  */
21095 #ifdef __cplusplus
21096 extern "C"
21097 {
21098 #endif
21099 /* We use char because int might match the return type of a gcc2
21100    builtin and then its argument prototype would still apply.  */
21101 char $ac_func ();
21102 /* The GNU C library defines this for functions which it implements
21103     to always fail with ENOSYS.  Some functions are actually named
21104     something starting with __ and the normal name is an alias.  */
21105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21106 choke me
21107 #else
21108 char (*f) () = $ac_func;
21109 #endif
21110 #ifdef __cplusplus
21111 }
21112 #endif
21113
21114 int
21115 main ()
21116 {
21117 return f != $ac_func;
21118   ;
21119   return 0;
21120 }
21121 _ACEOF
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21124   (eval $ac_link) 2>conftest.er1
21125   ac_status=$?
21126   grep -v '^ *+' conftest.er1 >conftest.err
21127   rm -f conftest.er1
21128   cat conftest.err >&5
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); } &&
21131          { ac_try='test -z "$ac_c_werror_flag"
21132                          || test ! -s conftest.err'
21133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134   (eval $ac_try) 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); }; } &&
21138          { ac_try='test -s conftest$ac_exeext'
21139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140   (eval $ac_try) 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); }; }; then
21144   eval "$as_ac_var=yes"
21145 else
21146   echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 eval "$as_ac_var=no"
21150 fi
21151 rm -f conftest.err conftest.$ac_objext \
21152       conftest$ac_exeext conftest.$ac_ext
21153 fi
21154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21156 if test `eval echo '${'$as_ac_var'}'` = yes; then
21157   cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21159 _ACEOF
21160
21161 fi
21162 done
21163
21164
21165
21166 for ac_func in inet_aton inet_addr
21167 do
21168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21169 echo "$as_me:$LINENO: checking for $ac_func" >&5
21170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21171 if eval "test \"\${$as_ac_var+set}\" = set"; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174   if test x$gcc_no_link = xyes; then
21175   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21177    { (exit 1); exit 1; }; }
21178 fi
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21187 #define $ac_func innocuous_$ac_func
21188
21189 /* System header to define __stub macros and hopefully few prototypes,
21190     which can conflict with char $ac_func (); below.
21191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21192     <limits.h> exists even on freestanding compilers.  */
21193
21194 #ifdef __STDC__
21195 # include <limits.h>
21196 #else
21197 # include <assert.h>
21198 #endif
21199
21200 #undef $ac_func
21201
21202 /* Override any gcc2 internal prototype to avoid an error.  */
21203 #ifdef __cplusplus
21204 extern "C"
21205 {
21206 #endif
21207 /* We use char because int might match the return type of a gcc2
21208    builtin and then its argument prototype would still apply.  */
21209 char $ac_func ();
21210 /* The GNU C library defines this for functions which it implements
21211     to always fail with ENOSYS.  Some functions are actually named
21212     something starting with __ and the normal name is an alias.  */
21213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21214 choke me
21215 #else
21216 char (*f) () = $ac_func;
21217 #endif
21218 #ifdef __cplusplus
21219 }
21220 #endif
21221
21222 int
21223 main ()
21224 {
21225 return f != $ac_func;
21226   ;
21227   return 0;
21228 }
21229 _ACEOF
21230 rm -f conftest.$ac_objext conftest$ac_exeext
21231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232   (eval $ac_link) 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } &&
21239          { ac_try='test -z "$ac_c_werror_flag"
21240                          || test ! -s conftest.err'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; } &&
21246          { ac_try='test -s conftest$ac_exeext'
21247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248   (eval $ac_try) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); }; }; then
21252   eval "$as_ac_var=yes"
21253 else
21254   echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 eval "$as_ac_var=no"
21258 fi
21259 rm -f conftest.err conftest.$ac_objext \
21260       conftest$ac_exeext conftest.$ac_ext
21261 fi
21262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21264 if test `eval echo '${'$as_ac_var'}'` = yes; then
21265   cat >>confdefs.h <<_ACEOF
21266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21267 _ACEOF
21268  break
21269 fi
21270 done
21271
21272
21273
21274
21275 for ac_header in unistd.h dlfcn.h sys/resource.h
21276 do
21277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21279   echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 fi
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21286 else
21287   # Is the header compilable?
21288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296 $ac_includes_default
21297 #include <$ac_header>
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301   (eval $ac_compile) 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } &&
21308          { ac_try='test -z "$ac_c_werror_flag"
21309                          || test ! -s conftest.err'
21310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311   (eval $ac_try) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; } &&
21315          { ac_try='test -s conftest.$ac_objext'
21316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317   (eval $ac_try) 2>&5
21318   ac_status=$?
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); }; }; then
21321   ac_header_compiler=yes
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_header_compiler=no
21327 fi
21328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21330 echo "${ECHO_T}$ac_header_compiler" >&6
21331
21332 # Is the header present?
21333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <$ac_header>
21342 _ACEOF
21343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } >/dev/null; then
21351   if test -s conftest.err; then
21352     ac_cpp_err=$ac_c_preproc_warn_flag
21353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21354   else
21355     ac_cpp_err=
21356   fi
21357 else
21358   ac_cpp_err=yes
21359 fi
21360 if test -z "$ac_cpp_err"; then
21361   ac_header_preproc=yes
21362 else
21363   echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366   ac_header_preproc=no
21367 fi
21368 rm -f conftest.err conftest.$ac_ext
21369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 echo "${ECHO_T}$ac_header_preproc" >&6
21371
21372 # So?  What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374   yes:no: )
21375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379     ac_header_preproc=yes
21380     ;;
21381   no:yes:* )
21382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21394     (
21395       cat <<\_ASBOX
21396 ## ---------------------------------- ##
21397 ## Report this to the libjava lists.  ##
21398 ## ---------------------------------- ##
21399 _ASBOX
21400     ) |
21401       sed "s/^/$as_me: WARNING:     /" >&2
21402     ;;
21403 esac
21404 echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409   eval "$as_ac_Header=\$ac_header_preproc"
21410 fi
21411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21413
21414 fi
21415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21416   cat >>confdefs.h <<_ACEOF
21417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21418 _ACEOF
21419
21420 fi
21421
21422 done
21423
21424    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21425    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21426 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21427 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21428   echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430   ac_check_lib_save_LIBS=$LIBS
21431 LIBS="-ldl  $LIBS"
21432 if test x$gcc_no_link = xyes; then
21433   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21435    { (exit 1); exit 1; }; }
21436 fi
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443
21444 /* Override any gcc2 internal prototype to avoid an error.  */
21445 #ifdef __cplusplus
21446 extern "C"
21447 #endif
21448 /* We use char because int might match the return type of a gcc2
21449    builtin and then its argument prototype would still apply.  */
21450 char dladdr ();
21451 int
21452 main ()
21453 {
21454 dladdr ();
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21461   (eval $ac_link) 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_c_werror_flag"
21469                          || test ! -s conftest.err'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; } &&
21475          { ac_try='test -s conftest$ac_exeext'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_cv_lib_dl_dladdr=yes
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_cv_lib_dl_dladdr=no
21487 fi
21488 rm -f conftest.err conftest.$ac_objext \
21489       conftest$ac_exeext conftest.$ac_ext
21490 LIBS=$ac_check_lib_save_LIBS
21491 fi
21492 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21493 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21494 if test $ac_cv_lib_dl_dladdr = yes; then
21495
21496
21497 cat >>confdefs.h <<\_ACEOF
21498 #define HAVE_DLADDR 1
21499 _ACEOF
21500
21501 else
21502
21503        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21504 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21505 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-ldld  $LIBS"
21510 if test x$gcc_no_link = xyes; then
21511   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21513    { (exit 1); exit 1; }; }
21514 fi
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521
21522 /* Override any gcc2 internal prototype to avoid an error.  */
21523 #ifdef __cplusplus
21524 extern "C"
21525 #endif
21526 /* We use char because int might match the return type of a gcc2
21527    builtin and then its argument prototype would still apply.  */
21528 char dladdr ();
21529 int
21530 main ()
21531 {
21532 dladdr ();
21533   ;
21534   return 0;
21535 }
21536 _ACEOF
21537 rm -f conftest.$ac_objext conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539   (eval $ac_link) 2>conftest.er1
21540   ac_status=$?
21541   grep -v '^ *+' conftest.er1 >conftest.err
21542   rm -f conftest.er1
21543   cat conftest.err >&5
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); } &&
21546          { ac_try='test -z "$ac_c_werror_flag"
21547                          || test ! -s conftest.err'
21548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549   (eval $ac_try) 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; } &&
21553          { ac_try='test -s conftest$ac_exeext'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; }; then
21559   ac_cv_lib_dld_dladdr=yes
21560 else
21561   echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ac_cv_lib_dld_dladdr=no
21565 fi
21566 rm -f conftest.err conftest.$ac_objext \
21567       conftest$ac_exeext conftest.$ac_ext
21568 LIBS=$ac_check_lib_save_LIBS
21569 fi
21570 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21571 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21572 if test $ac_cv_lib_dld_dladdr = yes; then
21573
21574
21575 cat >>confdefs.h <<\_ACEOF
21576 #define HAVE_DLADDR 1
21577 _ACEOF
21578
21579 fi
21580
21581 fi
21582
21583
21584    if test x"$cross_compiling" = x"no"; then
21585      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21586 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21587 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21588   echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590   test "$cross_compiling" = yes &&
21591   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21592 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21593    { (exit 1); exit 1; }; }
21594 if test -r "/proc/self/exe"; then
21595   ac_cv_file__proc_self_exe=yes
21596 else
21597   ac_cv_file__proc_self_exe=no
21598 fi
21599 fi
21600 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21601 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21602 if test $ac_cv_file__proc_self_exe = yes; then
21603
21604 cat >>confdefs.h <<_ACEOF
21605 #define HAVE__PROC_SELF_EXE 1
21606 _ACEOF
21607
21608
21609
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_PROC_SELF_EXE 1
21612 _ACEOF
21613
21614 fi
21615
21616      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21617 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21618 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621   test "$cross_compiling" = yes &&
21622   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21623 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21624    { (exit 1); exit 1; }; }
21625 if test -r "/proc/self/maps"; then
21626   ac_cv_file__proc_self_maps=yes
21627 else
21628   ac_cv_file__proc_self_maps=no
21629 fi
21630 fi
21631 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21632 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21633 if test $ac_cv_file__proc_self_maps = yes; then
21634
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE__PROC_SELF_MAPS 1
21637 _ACEOF
21638
21639
21640
21641 cat >>confdefs.h <<\_ACEOF
21642 #define HAVE_PROC_SELF_MAPS 1
21643 _ACEOF
21644
21645 fi
21646
21647    else
21648      case $host in
21649      *-linux*)
21650
21651 cat >>confdefs.h <<\_ACEOF
21652 #define HAVE_PROC_SELF_EXE 1
21653 _ACEOF
21654
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_PROC_SELF_MAPS 1
21658 _ACEOF
21659
21660        ;;
21661      esac
21662    fi
21663
21664
21665       if test "X$prefix" = "XNONE"; then
21666     acl_final_prefix="$ac_default_prefix"
21667   else
21668     acl_final_prefix="$prefix"
21669   fi
21670   if test "X$exec_prefix" = "XNONE"; then
21671     acl_final_exec_prefix='${prefix}'
21672   else
21673     acl_final_exec_prefix="$exec_prefix"
21674   fi
21675   acl_save_prefix="$prefix"
21676   prefix="$acl_final_prefix"
21677   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21678   prefix="$acl_save_prefix"
21679
21680
21681 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21682 if test "${with_gnu_ld+set}" = set; then
21683   withval="$with_gnu_ld"
21684   test "$withval" = no || with_gnu_ld=yes
21685 else
21686   with_gnu_ld=no
21687 fi;
21688 # Prepare PATH_SEPARATOR.
21689 # The user is always right.
21690 if test "${PATH_SEPARATOR+set}" != set; then
21691   echo "#! /bin/sh" >conf$$.sh
21692   echo  "exit 0"   >>conf$$.sh
21693   chmod +x conf$$.sh
21694   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21695     PATH_SEPARATOR=';'
21696   else
21697     PATH_SEPARATOR=:
21698   fi
21699   rm -f conf$$.sh
21700 fi
21701 ac_prog=ld
21702 if test "$GCC" = yes; then
21703   # Check if gcc -print-prog-name=ld gives a path.
21704   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21705 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21706   case $host in
21707   *-*-mingw*)
21708     # gcc leaves a trailing carriage return which upsets mingw
21709     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21710   *)
21711     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21712   esac
21713   case $ac_prog in
21714     # Accept absolute paths.
21715     [\\/]* | [A-Za-z]:[\\/]*)
21716       re_direlt='/[^/][^/]*/\.\./'
21717       # Canonicalize the path of ld
21718       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21719       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21720         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21721       done
21722       test -z "$LD" && LD="$ac_prog"
21723       ;;
21724   "")
21725     # If it fails, then pretend we aren't using GCC.
21726     ac_prog=ld
21727     ;;
21728   *)
21729     # If it is relative, then search for the first ld in PATH.
21730     with_gnu_ld=unknown
21731     ;;
21732   esac
21733 elif test "$with_gnu_ld" = yes; then
21734   echo "$as_me:$LINENO: checking for GNU ld" >&5
21735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21736 else
21737   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21739 fi
21740 if test "${acl_cv_path_LD+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   if test -z "$LD"; then
21744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21745   for ac_dir in $PATH; do
21746     test -z "$ac_dir" && ac_dir=.
21747     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21748       acl_cv_path_LD="$ac_dir/$ac_prog"
21749       # Check to see if the program is GNU ld.  I'd rather use --version,
21750       # but apparently some GNU ld's only accept -v.
21751       # Break only if it was the GNU/non-GNU ld that we prefer.
21752       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21753         test "$with_gnu_ld" != no && break
21754       else
21755         test "$with_gnu_ld" != yes && break
21756       fi
21757     fi
21758   done
21759   IFS="$ac_save_ifs"
21760 else
21761   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21762 fi
21763 fi
21764
21765 LD="$acl_cv_path_LD"
21766 if test -n "$LD"; then
21767   echo "$as_me:$LINENO: result: $LD" >&5
21768 echo "${ECHO_T}$LD" >&6
21769 else
21770   echo "$as_me:$LINENO: result: no" >&5
21771 echo "${ECHO_T}no" >&6
21772 fi
21773 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21774 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21775    { (exit 1); exit 1; }; }
21776 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21777 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21778 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21782 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21783   acl_cv_prog_gnu_ld=yes
21784 else
21785   acl_cv_prog_gnu_ld=no
21786 fi
21787 fi
21788 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21789 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21790 with_gnu_ld=$acl_cv_prog_gnu_ld
21791
21792
21793
21794                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21795 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21796 if test "${acl_cv_rpath+set}" = set; then
21797   echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799
21800     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21801     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21802     . ./conftest.sh
21803     rm -f ./conftest.sh
21804     acl_cv_rpath=done
21805
21806 fi
21807 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21808 echo "${ECHO_T}$acl_cv_rpath" >&6
21809   wl="$acl_cv_wl"
21810   libext="$acl_cv_libext"
21811   shlibext="$acl_cv_shlibext"
21812   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21813   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21814   hardcode_direct="$acl_cv_hardcode_direct"
21815   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21816     # Check whether --enable-rpath or --disable-rpath was given.
21817 if test "${enable_rpath+set}" = set; then
21818   enableval="$enable_rpath"
21819   :
21820 else
21821   enable_rpath=yes
21822 fi;
21823
21824
21825
21826
21827
21828
21829
21830     use_additional=yes
21831
21832   acl_save_prefix="$prefix"
21833   prefix="$acl_final_prefix"
21834   acl_save_exec_prefix="$exec_prefix"
21835   exec_prefix="$acl_final_exec_prefix"
21836
21837     eval additional_includedir=\"$includedir\"
21838     eval additional_libdir=\"$libdir\"
21839
21840   exec_prefix="$acl_save_exec_prefix"
21841   prefix="$acl_save_prefix"
21842
21843
21844 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21845 if test "${with_libiconv_prefix+set}" = set; then
21846   withval="$with_libiconv_prefix"
21847
21848     if test "X$withval" = "Xno"; then
21849       use_additional=no
21850     else
21851       if test "X$withval" = "X"; then
21852
21853   acl_save_prefix="$prefix"
21854   prefix="$acl_final_prefix"
21855   acl_save_exec_prefix="$exec_prefix"
21856   exec_prefix="$acl_final_exec_prefix"
21857
21858           eval additional_includedir=\"$includedir\"
21859           eval additional_libdir=\"$libdir\"
21860
21861   exec_prefix="$acl_save_exec_prefix"
21862   prefix="$acl_save_prefix"
21863
21864       else
21865         additional_includedir="$withval/include"
21866         additional_libdir="$withval/lib"
21867       fi
21868     fi
21869
21870 fi;
21871       LIBICONV=
21872   LTLIBICONV=
21873   INCICONV=
21874   rpathdirs=
21875   ltrpathdirs=
21876   names_already_handled=
21877   names_next_round='iconv '
21878   while test -n "$names_next_round"; do
21879     names_this_round="$names_next_round"
21880     names_next_round=
21881     for name in $names_this_round; do
21882       already_handled=
21883       for n in $names_already_handled; do
21884         if test "$n" = "$name"; then
21885           already_handled=yes
21886           break
21887         fi
21888       done
21889       if test -z "$already_handled"; then
21890         names_already_handled="$names_already_handled $name"
21891                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21892         eval value=\"\$HAVE_LIB$uppername\"
21893         if test -n "$value"; then
21894           if test "$value" = yes; then
21895             eval value=\"\$LIB$uppername\"
21896             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21897             eval value=\"\$LTLIB$uppername\"
21898             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21899           else
21900                                     :
21901           fi
21902         else
21903                               found_dir=
21904           found_la=
21905           found_so=
21906           found_a=
21907           if test $use_additional = yes; then
21908             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21909               found_dir="$additional_libdir"
21910               found_so="$additional_libdir/lib$name.$shlibext"
21911               if test -f "$additional_libdir/lib$name.la"; then
21912                 found_la="$additional_libdir/lib$name.la"
21913               fi
21914             else
21915               if test -f "$additional_libdir/lib$name.$libext"; then
21916                 found_dir="$additional_libdir"
21917                 found_a="$additional_libdir/lib$name.$libext"
21918                 if test -f "$additional_libdir/lib$name.la"; then
21919                   found_la="$additional_libdir/lib$name.la"
21920                 fi
21921               fi
21922             fi
21923           fi
21924           if test "X$found_dir" = "X"; then
21925             for x in $LDFLAGS $LTLIBICONV; do
21926
21927   acl_save_prefix="$prefix"
21928   prefix="$acl_final_prefix"
21929   acl_save_exec_prefix="$exec_prefix"
21930   exec_prefix="$acl_final_exec_prefix"
21931   eval x=\"$x\"
21932   exec_prefix="$acl_save_exec_prefix"
21933   prefix="$acl_save_prefix"
21934
21935               case "$x" in
21936                 -L*)
21937                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21938                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21939                     found_dir="$dir"
21940                     found_so="$dir/lib$name.$shlibext"
21941                     if test -f "$dir/lib$name.la"; then
21942                       found_la="$dir/lib$name.la"
21943                     fi
21944                   else
21945                     if test -f "$dir/lib$name.$libext"; then
21946                       found_dir="$dir"
21947                       found_a="$dir/lib$name.$libext"
21948                       if test -f "$dir/lib$name.la"; then
21949                         found_la="$dir/lib$name.la"
21950                       fi
21951                     fi
21952                   fi
21953                   ;;
21954               esac
21955               if test "X$found_dir" != "X"; then
21956                 break
21957               fi
21958             done
21959           fi
21960           if test "X$found_dir" != "X"; then
21961                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21962             if test "X$found_so" != "X"; then
21963                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21964                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21965               else
21966                                                                                 haveit=
21967                 for x in $ltrpathdirs; do
21968                   if test "X$x" = "X$found_dir"; then
21969                     haveit=yes
21970                     break
21971                   fi
21972                 done
21973                 if test -z "$haveit"; then
21974                   ltrpathdirs="$ltrpathdirs $found_dir"
21975                 fi
21976                                 if test "$hardcode_direct" = yes; then
21977                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21978                 else
21979                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21980                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21981                                                             haveit=
21982                     for x in $rpathdirs; do
21983                       if test "X$x" = "X$found_dir"; then
21984                         haveit=yes
21985                         break
21986                       fi
21987                     done
21988                     if test -z "$haveit"; then
21989                       rpathdirs="$rpathdirs $found_dir"
21990                     fi
21991                   else
21992                                                                                 haveit=
21993                     for x in $LDFLAGS $LIBICONV; do
21994
21995   acl_save_prefix="$prefix"
21996   prefix="$acl_final_prefix"
21997   acl_save_exec_prefix="$exec_prefix"
21998   exec_prefix="$acl_final_exec_prefix"
21999   eval x=\"$x\"
22000   exec_prefix="$acl_save_exec_prefix"
22001   prefix="$acl_save_prefix"
22002
22003                       if test "X$x" = "X-L$found_dir"; then
22004                         haveit=yes
22005                         break
22006                       fi
22007                     done
22008                     if test -z "$haveit"; then
22009                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22010                     fi
22011                     if test "$hardcode_minus_L" != no; then
22012                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22013                     else
22014                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22015                     fi
22016                   fi
22017                 fi
22018               fi
22019             else
22020               if test "X$found_a" != "X"; then
22021                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22022               else
22023                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22024               fi
22025             fi
22026                         additional_includedir=
22027             case "$found_dir" in
22028               */lib | */lib/)
22029                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22030                 additional_includedir="$basedir/include"
22031                 ;;
22032             esac
22033             if test "X$additional_includedir" != "X"; then
22034                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22035                 haveit=
22036                 if test "X$additional_includedir" = "X/usr/local/include"; then
22037                   if test -n "$GCC"; then
22038                     case $host_os in
22039                       linux*) haveit=yes;;
22040                     esac
22041                   fi
22042                 fi
22043                 if test -z "$haveit"; then
22044                   for x in $CPPFLAGS $INCICONV; do
22045
22046   acl_save_prefix="$prefix"
22047   prefix="$acl_final_prefix"
22048   acl_save_exec_prefix="$exec_prefix"
22049   exec_prefix="$acl_final_exec_prefix"
22050   eval x=\"$x\"
22051   exec_prefix="$acl_save_exec_prefix"
22052   prefix="$acl_save_prefix"
22053
22054                     if test "X$x" = "X-I$additional_includedir"; then
22055                       haveit=yes
22056                       break
22057                     fi
22058                   done
22059                   if test -z "$haveit"; then
22060                     if test -d "$additional_includedir"; then
22061                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22062                     fi
22063                   fi
22064                 fi
22065               fi
22066             fi
22067                         if test -n "$found_la"; then
22068                                                         save_libdir="$libdir"
22069               case "$found_la" in
22070                 */* | *\\*) . "$found_la" ;;
22071                 *) . "./$found_la" ;;
22072               esac
22073               libdir="$save_libdir"
22074                             for dep in $dependency_libs; do
22075                 case "$dep" in
22076                   -L*)
22077                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22078                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22079                       haveit=
22080                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22081                         if test -n "$GCC"; then
22082                           case $host_os in
22083                             linux*) haveit=yes;;
22084                           esac
22085                         fi
22086                       fi
22087                       if test -z "$haveit"; then
22088                         haveit=
22089                         for x in $LDFLAGS $LIBICONV; do
22090
22091   acl_save_prefix="$prefix"
22092   prefix="$acl_final_prefix"
22093   acl_save_exec_prefix="$exec_prefix"
22094   exec_prefix="$acl_final_exec_prefix"
22095   eval x=\"$x\"
22096   exec_prefix="$acl_save_exec_prefix"
22097   prefix="$acl_save_prefix"
22098
22099                           if test "X$x" = "X-L$additional_libdir"; then
22100                             haveit=yes
22101                             break
22102                           fi
22103                         done
22104                         if test -z "$haveit"; then
22105                           if test -d "$additional_libdir"; then
22106                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22107                           fi
22108                         fi
22109                         haveit=
22110                         for x in $LDFLAGS $LTLIBICONV; do
22111
22112   acl_save_prefix="$prefix"
22113   prefix="$acl_final_prefix"
22114   acl_save_exec_prefix="$exec_prefix"
22115   exec_prefix="$acl_final_exec_prefix"
22116   eval x=\"$x\"
22117   exec_prefix="$acl_save_exec_prefix"
22118   prefix="$acl_save_prefix"
22119
22120                           if test "X$x" = "X-L$additional_libdir"; then
22121                             haveit=yes
22122                             break
22123                           fi
22124                         done
22125                         if test -z "$haveit"; then
22126                           if test -d "$additional_libdir"; then
22127                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22128                           fi
22129                         fi
22130                       fi
22131                     fi
22132                     ;;
22133                   -R*)
22134                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22135                     if test "$enable_rpath" != no; then
22136                                                                   haveit=
22137                       for x in $rpathdirs; do
22138                         if test "X$x" = "X$dir"; then
22139                           haveit=yes
22140                           break
22141                         fi
22142                       done
22143                       if test -z "$haveit"; then
22144                         rpathdirs="$rpathdirs $dir"
22145                       fi
22146                                                                   haveit=
22147                       for x in $ltrpathdirs; do
22148                         if test "X$x" = "X$dir"; then
22149                           haveit=yes
22150                           break
22151                         fi
22152                       done
22153                       if test -z "$haveit"; then
22154                         ltrpathdirs="$ltrpathdirs $dir"
22155                       fi
22156                     fi
22157                     ;;
22158                   -l*)
22159                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22160                     ;;
22161                   *.la)
22162                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22163                     ;;
22164                   *)
22165                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22166                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22167                     ;;
22168                 esac
22169               done
22170             fi
22171           else
22172                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22173             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22174           fi
22175         fi
22176       fi
22177     done
22178   done
22179   if test "X$rpathdirs" != "X"; then
22180     if test -n "$hardcode_libdir_separator"; then
22181                         alldirs=
22182       for found_dir in $rpathdirs; do
22183         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22184       done
22185             acl_save_libdir="$libdir"
22186       libdir="$alldirs"
22187       eval flag=\"$hardcode_libdir_flag_spec\"
22188       libdir="$acl_save_libdir"
22189       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22190     else
22191             for found_dir in $rpathdirs; do
22192         acl_save_libdir="$libdir"
22193         libdir="$found_dir"
22194         eval flag=\"$hardcode_libdir_flag_spec\"
22195         libdir="$acl_save_libdir"
22196         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22197       done
22198     fi
22199   fi
22200   if test "X$ltrpathdirs" != "X"; then
22201             for found_dir in $ltrpathdirs; do
22202       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22203     done
22204   fi
22205
22206
22207
22208
22209
22210
22211
22212           am_save_CPPFLAGS="$CPPFLAGS"
22213
22214   for element in $INCICONV; do
22215     haveit=
22216     for x in $CPPFLAGS; do
22217
22218   acl_save_prefix="$prefix"
22219   prefix="$acl_final_prefix"
22220   acl_save_exec_prefix="$exec_prefix"
22221   exec_prefix="$acl_final_exec_prefix"
22222   eval x=\"$x\"
22223   exec_prefix="$acl_save_exec_prefix"
22224   prefix="$acl_save_prefix"
22225
22226       if test "X$x" = "X$element"; then
22227         haveit=yes
22228         break
22229       fi
22230     done
22231     if test -z "$haveit"; then
22232       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22233     fi
22234   done
22235
22236
22237   echo "$as_me:$LINENO: checking for iconv" >&5
22238 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22239 if test "${am_cv_func_iconv+set}" = set; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242
22243     am_cv_func_iconv="no, consider installing GNU libiconv"
22244     am_cv_lib_iconv=no
22245     if test x$gcc_no_link = xyes; then
22246   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22248    { (exit 1); exit 1; }; }
22249 fi
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #include <stdlib.h>
22257 #include <iconv.h>
22258 int
22259 main ()
22260 {
22261 iconv_t cd = iconv_open("","");
22262        iconv(cd,NULL,NULL,NULL,NULL);
22263        iconv_close(cd);
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270   (eval $ac_link) 2>conftest.er1
22271   ac_status=$?
22272   grep -v '^ *+' conftest.er1 >conftest.err
22273   rm -f conftest.er1
22274   cat conftest.err >&5
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } &&
22277          { ac_try='test -z "$ac_c_werror_flag"
22278                          || test ! -s conftest.err'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; } &&
22284          { ac_try='test -s conftest$ac_exeext'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; }; then
22290   am_cv_func_iconv=yes
22291 else
22292   echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 fi
22296 rm -f conftest.err conftest.$ac_objext \
22297       conftest$ac_exeext conftest.$ac_ext
22298     if test "$am_cv_func_iconv" != yes; then
22299       am_save_LIBS="$LIBS"
22300       LIBS="$LIBS $LIBICONV"
22301       if test x$gcc_no_link = xyes; then
22302   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22304    { (exit 1); exit 1; }; }
22305 fi
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 #include <stdlib.h>
22313 #include <iconv.h>
22314 int
22315 main ()
22316 {
22317 iconv_t cd = iconv_open("","");
22318          iconv(cd,NULL,NULL,NULL,NULL);
22319          iconv_close(cd);
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22326   (eval $ac_link) 2>conftest.er1
22327   ac_status=$?
22328   grep -v '^ *+' conftest.er1 >conftest.err
22329   rm -f conftest.er1
22330   cat conftest.err >&5
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } &&
22333          { ac_try='test -z "$ac_c_werror_flag"
22334                          || test ! -s conftest.err'
22335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336   (eval $ac_try) 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; } &&
22340          { ac_try='test -s conftest$ac_exeext'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; }; then
22346   am_cv_lib_iconv=yes
22347         am_cv_func_iconv=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352 fi
22353 rm -f conftest.err conftest.$ac_objext \
22354       conftest$ac_exeext conftest.$ac_ext
22355       LIBS="$am_save_LIBS"
22356     fi
22357
22358 fi
22359 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22360 echo "${ECHO_T}$am_cv_func_iconv" >&6
22361   if test "$am_cv_func_iconv" = yes; then
22362
22363 cat >>confdefs.h <<\_ACEOF
22364 #define HAVE_ICONV 1
22365 _ACEOF
22366
22367   fi
22368   if test "$am_cv_lib_iconv" = yes; then
22369     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22370 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22371     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22372 echo "${ECHO_T}$LIBICONV" >&6
22373   else
22374             CPPFLAGS="$am_save_CPPFLAGS"
22375     LIBICONV=
22376     LTLIBICONV=
22377   fi
22378
22379
22380
22381   if test "$am_cv_func_iconv" = yes; then
22382     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22383 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22384     if test "${am_cv_proto_iconv+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387
22388       cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h.  */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h.  */
22394
22395 #include <stdlib.h>
22396 #include <iconv.h>
22397 extern
22398 #ifdef __cplusplus
22399 "C"
22400 #endif
22401 #if defined(__STDC__) || defined(__cplusplus)
22402 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22403 #else
22404 size_t iconv();
22405 #endif
22406
22407 int
22408 main ()
22409 {
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22417   (eval $ac_compile) 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } &&
22424          { ac_try='test -z "$ac_c_werror_flag"
22425                          || test ! -s conftest.err'
22426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; } &&
22431          { ac_try='test -s conftest.$ac_objext'
22432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433   (eval $ac_try) 2>&5
22434   ac_status=$?
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); }; }; then
22437   am_cv_proto_iconv_arg1=""
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442 am_cv_proto_iconv_arg1="const"
22443 fi
22444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22445       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);"
22446 fi
22447
22448     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22449     echo "$as_me:$LINENO: result: ${ac_t:-
22450          }$am_cv_proto_iconv" >&5
22451 echo "${ECHO_T}${ac_t:-
22452          }$am_cv_proto_iconv" >&6
22453
22454 cat >>confdefs.h <<_ACEOF
22455 #define ICONV_CONST $am_cv_proto_iconv_arg1
22456 _ACEOF
22457
22458   fi
22459
22460
22461   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22462 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22463 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   if test x$gcc_no_link = xyes; then
22467   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22469    { (exit 1); exit 1; }; }
22470 fi
22471 cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h.  */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h.  */
22477 #include <locale.h>
22478 int
22479 main ()
22480 {
22481 return LC_MESSAGES
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext conftest$ac_exeext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488   (eval $ac_link) 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } &&
22495          { ac_try='test -z "$ac_c_werror_flag"
22496                          || test ! -s conftest.err'
22497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498   (eval $ac_try) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }; } &&
22502          { ac_try='test -s conftest$ac_exeext'
22503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504   (eval $ac_try) 2>&5
22505   ac_status=$?
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); }; }; then
22508   am_cv_val_LC_MESSAGES=yes
22509 else
22510   echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 am_cv_val_LC_MESSAGES=no
22514 fi
22515 rm -f conftest.err conftest.$ac_objext \
22516       conftest$ac_exeext conftest.$ac_ext
22517 fi
22518 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22519 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22520   if test $am_cv_val_LC_MESSAGES = yes; then
22521
22522 cat >>confdefs.h <<\_ACEOF
22523 #define HAVE_LC_MESSAGES 1
22524 _ACEOF
22525
22526   fi
22527
22528    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22530 if test "${ac_cv_struct_tm+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 #include <sys/types.h>
22540 #include <time.h>
22541
22542 int
22543 main ()
22544 {
22545 struct tm *tp; tp->tm_sec;
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22552   (eval $ac_compile) 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } &&
22559          { ac_try='test -z "$ac_c_werror_flag"
22560                          || test ! -s conftest.err'
22561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562   (eval $ac_try) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }; } &&
22566          { ac_try='test -s conftest.$ac_objext'
22567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568   (eval $ac_try) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); }; }; then
22572   ac_cv_struct_tm=time.h
22573 else
22574   echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576
22577 ac_cv_struct_tm=sys/time.h
22578 fi
22579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22583 if test $ac_cv_struct_tm = sys/time.h; then
22584
22585 cat >>confdefs.h <<\_ACEOF
22586 #define TM_IN_SYS_TIME 1
22587 _ACEOF
22588
22589 fi
22590
22591 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22592 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22593 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h.  */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h.  */
22602 #include <sys/types.h>
22603 #include <$ac_cv_struct_tm>
22604
22605
22606 int
22607 main ()
22608 {
22609 static struct tm ac_aggr;
22610 if (ac_aggr.tm_zone)
22611 return 0;
22612   ;
22613   return 0;
22614 }
22615 _ACEOF
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618   (eval $ac_compile) 2>conftest.er1
22619   ac_status=$?
22620   grep -v '^ *+' conftest.er1 >conftest.err
22621   rm -f conftest.er1
22622   cat conftest.err >&5
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } &&
22625          { ac_try='test -z "$ac_c_werror_flag"
22626                          || test ! -s conftest.err'
22627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628   (eval $ac_try) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); }; } &&
22632          { ac_try='test -s conftest.$ac_objext'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_cv_member_struct_tm_tm_zone=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #include <sys/types.h>
22650 #include <$ac_cv_struct_tm>
22651
22652
22653 int
22654 main ()
22655 {
22656 static struct tm ac_aggr;
22657 if (sizeof ac_aggr.tm_zone)
22658 return 0;
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665   (eval $ac_compile) 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -z "$ac_c_werror_flag"
22673                          || test ! -s conftest.err'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; } &&
22679          { ac_try='test -s conftest.$ac_objext'
22680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681   (eval $ac_try) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ac_cv_member_struct_tm_tm_zone=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ac_cv_member_struct_tm_tm_zone=no
22691 fi
22692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22693 fi
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695 fi
22696 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22697 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22698 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22699
22700 cat >>confdefs.h <<_ACEOF
22701 #define HAVE_STRUCT_TM_TM_ZONE 1
22702 _ACEOF
22703
22704
22705 fi
22706
22707 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22708
22709 cat >>confdefs.h <<\_ACEOF
22710 #define HAVE_TM_ZONE 1
22711 _ACEOF
22712
22713 else
22714   echo "$as_me:$LINENO: checking for tzname" >&5
22715 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22716 if test "${ac_cv_var_tzname+set}" = set; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719   if test x$gcc_no_link = xyes; then
22720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22722    { (exit 1); exit 1; }; }
22723 fi
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h.  */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h.  */
22730 #include <time.h>
22731 #ifndef tzname /* For SGI.  */
22732 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22733 #endif
22734
22735 int
22736 main ()
22737 {
22738 atoi(*tzname);
22739   ;
22740   return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22745   (eval $ac_link) 2>conftest.er1
22746   ac_status=$?
22747   grep -v '^ *+' conftest.er1 >conftest.err
22748   rm -f conftest.er1
22749   cat conftest.err >&5
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } &&
22752          { ac_try='test -z "$ac_c_werror_flag"
22753                          || test ! -s conftest.err'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; } &&
22759          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22765   ac_cv_var_tzname=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770 ac_cv_var_tzname=no
22771 fi
22772 rm -f conftest.err conftest.$ac_objext \
22773       conftest$ac_exeext conftest.$ac_ext
22774 fi
22775 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22776 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22777   if test $ac_cv_var_tzname = yes; then
22778
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_TZNAME 1
22781 _ACEOF
22782
22783   fi
22784 fi
22785
22786
22787
22788 for ac_func in gethostbyname_r
22789 do
22790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22791 echo "$as_me:$LINENO: checking for $ac_func" >&5
22792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22793 if eval "test \"\${$as_ac_var+set}\" = set"; then
22794   echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796   if test x$gcc_no_link = xyes; then
22797   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22799    { (exit 1); exit 1; }; }
22800 fi
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22809 #define $ac_func innocuous_$ac_func
22810
22811 /* System header to define __stub macros and hopefully few prototypes,
22812     which can conflict with char $ac_func (); below.
22813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22814     <limits.h> exists even on freestanding compilers.  */
22815
22816 #ifdef __STDC__
22817 # include <limits.h>
22818 #else
22819 # include <assert.h>
22820 #endif
22821
22822 #undef $ac_func
22823
22824 /* Override any gcc2 internal prototype to avoid an error.  */
22825 #ifdef __cplusplus
22826 extern "C"
22827 {
22828 #endif
22829 /* We use char because int might match the return type of a gcc2
22830    builtin and then its argument prototype would still apply.  */
22831 char $ac_func ();
22832 /* The GNU C library defines this for functions which it implements
22833     to always fail with ENOSYS.  Some functions are actually named
22834     something starting with __ and the normal name is an alias.  */
22835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22836 choke me
22837 #else
22838 char (*f) () = $ac_func;
22839 #endif
22840 #ifdef __cplusplus
22841 }
22842 #endif
22843
22844 int
22845 main ()
22846 {
22847 return f != $ac_func;
22848   ;
22849   return 0;
22850 }
22851 _ACEOF
22852 rm -f conftest.$ac_objext conftest$ac_exeext
22853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22854   (eval $ac_link) 2>conftest.er1
22855   ac_status=$?
22856   grep -v '^ *+' conftest.er1 >conftest.err
22857   rm -f conftest.er1
22858   cat conftest.err >&5
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); } &&
22861          { ac_try='test -z "$ac_c_werror_flag"
22862                          || test ! -s conftest.err'
22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864   (eval $ac_try) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; } &&
22868          { ac_try='test -s conftest$ac_exeext'
22869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); }; }; then
22874   eval "$as_ac_var=yes"
22875 else
22876   echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22878
22879 eval "$as_ac_var=no"
22880 fi
22881 rm -f conftest.err conftest.$ac_objext \
22882       conftest$ac_exeext conftest.$ac_ext
22883 fi
22884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22886 if test `eval echo '${'$as_ac_var'}'` = yes; then
22887   cat >>confdefs.h <<_ACEOF
22888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22889 _ACEOF
22890
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_GETHOSTBYNAME_R 1
22894 _ACEOF
22895
22896      # There are two different kinds of gethostbyname_r.
22897      # We look for the one that returns `int'.
22898      # Hopefully this check is robust enough.
22899      cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905 #include <netdb.h>
22906
22907 _ACEOF
22908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22909   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22910
22911
22912 cat >>confdefs.h <<\_ACEOF
22913 #define GETHOSTBYNAME_R_RETURNS_INT 1
22914 _ACEOF
22915
22916 fi
22917 rm -f conftest*
22918
22919
22920      case " $GCINCS " in
22921      *" -D_REENTRANT "*) ;;
22922      *)
22923                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22924 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22925 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928    ac_ext=cc
22929 ac_cpp='$CXXCPP $CPPFLAGS'
22930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22933
22934           cat >conftest.$ac_ext <<_ACEOF
22935 /* confdefs.h.  */
22936 _ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h.  */
22940 #include <netdb.h>
22941 int
22942 main ()
22943 {
22944 gethostbyname_r("", 0, 0);
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22951   (eval $ac_compile) 2>conftest.er1
22952   ac_status=$?
22953   grep -v '^ *+' conftest.er1 >conftest.err
22954   rm -f conftest.er1
22955   cat conftest.err >&5
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } &&
22958          { ac_try='test -z "$ac_cxx_werror_flag"
22959                          || test ! -s conftest.err'
22960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961   (eval $ac_try) 2>&5
22962   ac_status=$?
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); }; } &&
22965          { ac_try='test -s conftest.$ac_objext'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; }; then
22971   libjava_cv_gethostbyname_r_needs_reentrant=no
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976                 CPPFLAGS_SAVE="$CPPFLAGS"
22977                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22978                 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <netdb.h>
22985 int
22986 main ()
22987 {
22988 gethostbyname_r("", 0, 0);
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext
22994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22995   (eval $ac_compile) 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } &&
23002          { ac_try='test -z "$ac_cxx_werror_flag"
23003                          || test ! -s conftest.err'
23004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005   (eval $ac_try) 2>&5
23006   ac_status=$?
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); }; } &&
23009          { ac_try='test -s conftest.$ac_objext'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; }; then
23015   libjava_cv_gethostbyname_r_needs_reentrant=yes
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020 libjava_cv_gethostbyname_r_needs_reentrant=fail
23021 fi
23022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23023                 CPPFLAGS="$CPPFLAGS_SAVE"
23024
23025 fi
23026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027           ac_ext=c
23028 ac_cpp='$CPP $CPPFLAGS'
23029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23032
23033
23034 fi
23035 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
23036 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
23037         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
23038
23039 cat >>confdefs.h <<\_ACEOF
23040 #define _REENTRANT 1
23041 _ACEOF
23042
23043         fi
23044      ;;
23045      esac
23046
23047      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
23048 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
23049 if test "${libjava_cv_struct_hostent_data+set}" = set; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052         cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058
23059 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
23060 # define _REENTRANT 1
23061 #endif
23062 #include <netdb.h>
23063 int
23064 main ()
23065 {
23066 struct hostent_data data;
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073   (eval $ac_compile) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -z "$ac_c_werror_flag"
23081                          || test ! -s conftest.err'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; } &&
23087          { ac_try='test -s conftest.$ac_objext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   libjava_cv_struct_hostent_data=yes
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098 libjava_cv_struct_hostent_data=no
23099 fi
23100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23101 fi
23102 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
23103 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
23104      if test "x$libjava_cv_struct_hostent_data" = xyes; then
23105
23106 cat >>confdefs.h <<\_ACEOF
23107 #define HAVE_STRUCT_HOSTENT_DATA 1
23108 _ACEOF
23109
23110      fi
23111
23112 fi
23113 done
23114
23115
23116    # FIXME: libjava source code expects to find a prototype for
23117    # gethostbyaddr_r in netdb.h.  The outer check ensures that
23118    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
23119    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
23120    # linkage check is enough, yet C++ code requires proper prototypes.)
23121    cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 #include <netdb.h>
23128
23129 _ACEOF
23130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23131   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
23132
23133
23134 for ac_func in gethostbyaddr_r
23135 do
23136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23137 echo "$as_me:$LINENO: checking for $ac_func" >&5
23138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23139 if eval "test \"\${$as_ac_var+set}\" = set"; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   if test x$gcc_no_link = xyes; then
23143   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23145    { (exit 1); exit 1; }; }
23146 fi
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23155 #define $ac_func innocuous_$ac_func
23156
23157 /* System header to define __stub macros and hopefully few prototypes,
23158     which can conflict with char $ac_func (); below.
23159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23160     <limits.h> exists even on freestanding compilers.  */
23161
23162 #ifdef __STDC__
23163 # include <limits.h>
23164 #else
23165 # include <assert.h>
23166 #endif
23167
23168 #undef $ac_func
23169
23170 /* Override any gcc2 internal prototype to avoid an error.  */
23171 #ifdef __cplusplus
23172 extern "C"
23173 {
23174 #endif
23175 /* We use char because int might match the return type of a gcc2
23176    builtin and then its argument prototype would still apply.  */
23177 char $ac_func ();
23178 /* The GNU C library defines this for functions which it implements
23179     to always fail with ENOSYS.  Some functions are actually named
23180     something starting with __ and the normal name is an alias.  */
23181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23182 choke me
23183 #else
23184 char (*f) () = $ac_func;
23185 #endif
23186 #ifdef __cplusplus
23187 }
23188 #endif
23189
23190 int
23191 main ()
23192 {
23193 return f != $ac_func;
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200   (eval $ac_link) 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } &&
23207          { ac_try='test -z "$ac_c_werror_flag"
23208                          || test ! -s conftest.err'
23209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210   (eval $ac_try) 2>&5
23211   ac_status=$?
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); }; } &&
23214          { ac_try='test -s conftest$ac_exeext'
23215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216   (eval $ac_try) 2>&5
23217   ac_status=$?
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); }; }; then
23220   eval "$as_ac_var=yes"
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225 eval "$as_ac_var=no"
23226 fi
23227 rm -f conftest.err conftest.$ac_objext \
23228       conftest$ac_exeext conftest.$ac_ext
23229 fi
23230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23232 if test `eval echo '${'$as_ac_var'}'` = yes; then
23233   cat >>confdefs.h <<_ACEOF
23234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23235 _ACEOF
23236
23237
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_GETHOSTBYADDR_R 1
23240 _ACEOF
23241
23242      # There are two different kinds of gethostbyaddr_r.
23243      # We look for the one that returns `int'.
23244      # Hopefully this check is robust enough.
23245      cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251 #include <netdb.h>
23252
23253 _ACEOF
23254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23256
23257
23258 cat >>confdefs.h <<\_ACEOF
23259 #define GETHOSTBYADDR_R_RETURNS_INT 1
23260 _ACEOF
23261
23262 fi
23263 rm -f conftest*
23264
23265 fi
23266 done
23267
23268 fi
23269 rm -f conftest*
23270
23271
23272
23273 for ac_func in gethostname
23274 do
23275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23276 echo "$as_me:$LINENO: checking for $ac_func" >&5
23277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23278 if eval "test \"\${$as_ac_var+set}\" = set"; then
23279   echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281   if test x$gcc_no_link = xyes; then
23282   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23284    { (exit 1); exit 1; }; }
23285 fi
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h.  */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h.  */
23292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23294 #define $ac_func innocuous_$ac_func
23295
23296 /* System header to define __stub macros and hopefully few prototypes,
23297     which can conflict with char $ac_func (); below.
23298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23299     <limits.h> exists even on freestanding compilers.  */
23300
23301 #ifdef __STDC__
23302 # include <limits.h>
23303 #else
23304 # include <assert.h>
23305 #endif
23306
23307 #undef $ac_func
23308
23309 /* Override any gcc2 internal prototype to avoid an error.  */
23310 #ifdef __cplusplus
23311 extern "C"
23312 {
23313 #endif
23314 /* We use char because int might match the return type of a gcc2
23315    builtin and then its argument prototype would still apply.  */
23316 char $ac_func ();
23317 /* The GNU C library defines this for functions which it implements
23318     to always fail with ENOSYS.  Some functions are actually named
23319     something starting with __ and the normal name is an alias.  */
23320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23321 choke me
23322 #else
23323 char (*f) () = $ac_func;
23324 #endif
23325 #ifdef __cplusplus
23326 }
23327 #endif
23328
23329 int
23330 main ()
23331 {
23332 return f != $ac_func;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext conftest$ac_exeext
23338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23339   (eval $ac_link) 2>conftest.er1
23340   ac_status=$?
23341   grep -v '^ *+' conftest.er1 >conftest.err
23342   rm -f conftest.er1
23343   cat conftest.err >&5
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); } &&
23346          { ac_try='test -z "$ac_c_werror_flag"
23347                          || test ! -s conftest.err'
23348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349   (eval $ac_try) 2>&5
23350   ac_status=$?
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); }; } &&
23353          { ac_try='test -s conftest$ac_exeext'
23354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355   (eval $ac_try) 2>&5
23356   ac_status=$?
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); }; }; then
23359   eval "$as_ac_var=yes"
23360 else
23361   echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23363
23364 eval "$as_ac_var=no"
23365 fi
23366 rm -f conftest.err conftest.$ac_objext \
23367       conftest$ac_exeext conftest.$ac_ext
23368 fi
23369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23371 if test `eval echo '${'$as_ac_var'}'` = yes; then
23372   cat >>confdefs.h <<_ACEOF
23373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23374 _ACEOF
23375
23376
23377 cat >>confdefs.h <<\_ACEOF
23378 #define HAVE_GETHOSTNAME 1
23379 _ACEOF
23380
23381      cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 #include <unistd.h>
23388
23389 _ACEOF
23390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23391   $EGREP "gethostname" >/dev/null 2>&1; then
23392
23393
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_GETHOSTNAME_DECL 1
23396 _ACEOF
23397
23398 fi
23399 rm -f conftest*
23400
23401 fi
23402 done
23403
23404
23405
23406 for ac_func in usleep
23407 do
23408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23409 echo "$as_me:$LINENO: checking for $ac_func" >&5
23410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23411 if eval "test \"\${$as_ac_var+set}\" = set"; then
23412   echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414   if test x$gcc_no_link = xyes; then
23415   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23417    { (exit 1); exit 1; }; }
23418 fi
23419 cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23427 #define $ac_func innocuous_$ac_func
23428
23429 /* System header to define __stub macros and hopefully few prototypes,
23430     which can conflict with char $ac_func (); below.
23431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23432     <limits.h> exists even on freestanding compilers.  */
23433
23434 #ifdef __STDC__
23435 # include <limits.h>
23436 #else
23437 # include <assert.h>
23438 #endif
23439
23440 #undef $ac_func
23441
23442 /* Override any gcc2 internal prototype to avoid an error.  */
23443 #ifdef __cplusplus
23444 extern "C"
23445 {
23446 #endif
23447 /* We use char because int might match the return type of a gcc2
23448    builtin and then its argument prototype would still apply.  */
23449 char $ac_func ();
23450 /* The GNU C library defines this for functions which it implements
23451     to always fail with ENOSYS.  Some functions are actually named
23452     something starting with __ and the normal name is an alias.  */
23453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23454 choke me
23455 #else
23456 char (*f) () = $ac_func;
23457 #endif
23458 #ifdef __cplusplus
23459 }
23460 #endif
23461
23462 int
23463 main ()
23464 {
23465 return f != $ac_func;
23466   ;
23467   return 0;
23468 }
23469 _ACEOF
23470 rm -f conftest.$ac_objext conftest$ac_exeext
23471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23472   (eval $ac_link) 2>conftest.er1
23473   ac_status=$?
23474   grep -v '^ *+' conftest.er1 >conftest.err
23475   rm -f conftest.er1
23476   cat conftest.err >&5
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } &&
23479          { ac_try='test -z "$ac_c_werror_flag"
23480                          || test ! -s conftest.err'
23481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482   (eval $ac_try) 2>&5
23483   ac_status=$?
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); }; } &&
23486          { ac_try='test -s conftest$ac_exeext'
23487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488   (eval $ac_try) 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   eval "$as_ac_var=yes"
23493 else
23494   echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23496
23497 eval "$as_ac_var=no"
23498 fi
23499 rm -f conftest.err conftest.$ac_objext \
23500       conftest$ac_exeext conftest.$ac_ext
23501 fi
23502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23504 if test `eval echo '${'$as_ac_var'}'` = yes; then
23505   cat >>confdefs.h <<_ACEOF
23506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23507 _ACEOF
23508
23509      cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 #include <unistd.h>
23516
23517 _ACEOF
23518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23519   $EGREP "usleep" >/dev/null 2>&1; then
23520
23521
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_USLEEP_DECL 1
23524 _ACEOF
23525
23526 fi
23527 rm -f conftest*
23528
23529 fi
23530 done
23531
23532
23533    # Look for these functions in the thread library, but only bother
23534    # if using POSIX threads.
23535    if test "$THREADS" = posix; then
23536       save_LIBS="$LIBS"
23537       LIBS="$LIBS $THREADLIBS"
23538
23539       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23540       # Solaris 7 the name librt is preferred.
23541
23542 for ac_func in sched_yield
23543 do
23544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23545 echo "$as_me:$LINENO: checking for $ac_func" >&5
23546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23547 if eval "test \"\${$as_ac_var+set}\" = set"; then
23548   echo $ECHO_N "(cached) $ECHO_C" >&6
23549 else
23550   if test x$gcc_no_link = xyes; then
23551   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23553    { (exit 1); exit 1; }; }
23554 fi
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23563 #define $ac_func innocuous_$ac_func
23564
23565 /* System header to define __stub macros and hopefully few prototypes,
23566     which can conflict with char $ac_func (); below.
23567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23568     <limits.h> exists even on freestanding compilers.  */
23569
23570 #ifdef __STDC__
23571 # include <limits.h>
23572 #else
23573 # include <assert.h>
23574 #endif
23575
23576 #undef $ac_func
23577
23578 /* Override any gcc2 internal prototype to avoid an error.  */
23579 #ifdef __cplusplus
23580 extern "C"
23581 {
23582 #endif
23583 /* We use char because int might match the return type of a gcc2
23584    builtin and then its argument prototype would still apply.  */
23585 char $ac_func ();
23586 /* The GNU C library defines this for functions which it implements
23587     to always fail with ENOSYS.  Some functions are actually named
23588     something starting with __ and the normal name is an alias.  */
23589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23590 choke me
23591 #else
23592 char (*f) () = $ac_func;
23593 #endif
23594 #ifdef __cplusplus
23595 }
23596 #endif
23597
23598 int
23599 main ()
23600 {
23601 return f != $ac_func;
23602   ;
23603   return 0;
23604 }
23605 _ACEOF
23606 rm -f conftest.$ac_objext conftest$ac_exeext
23607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23608   (eval $ac_link) 2>conftest.er1
23609   ac_status=$?
23610   grep -v '^ *+' conftest.er1 >conftest.err
23611   rm -f conftest.er1
23612   cat conftest.err >&5
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } &&
23615          { ac_try='test -z "$ac_c_werror_flag"
23616                          || test ! -s conftest.err'
23617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618   (eval $ac_try) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; } &&
23622          { ac_try='test -s conftest$ac_exeext'
23623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624   (eval $ac_try) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; }; then
23628   eval "$as_ac_var=yes"
23629 else
23630   echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 eval "$as_ac_var=no"
23634 fi
23635 rm -f conftest.err conftest.$ac_objext \
23636       conftest$ac_exeext conftest.$ac_ext
23637 fi
23638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23640 if test `eval echo '${'$as_ac_var'}'` = yes; then
23641   cat >>confdefs.h <<_ACEOF
23642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23643 _ACEOF
23644
23645 else
23646
23647         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23648 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23649 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   ac_check_lib_save_LIBS=$LIBS
23653 LIBS="-lrt  $LIBS"
23654 if test x$gcc_no_link = xyes; then
23655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23657    { (exit 1); exit 1; }; }
23658 fi
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665
23666 /* Override any gcc2 internal prototype to avoid an error.  */
23667 #ifdef __cplusplus
23668 extern "C"
23669 #endif
23670 /* We use char because int might match the return type of a gcc2
23671    builtin and then its argument prototype would still apply.  */
23672 char sched_yield ();
23673 int
23674 main ()
23675 {
23676 sched_yield ();
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23683   (eval $ac_link) 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } &&
23690          { ac_try='test -z "$ac_c_werror_flag"
23691                          || test ! -s conftest.err'
23692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693   (eval $ac_try) 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); }; } &&
23697          { ac_try='test -s conftest$ac_exeext'
23698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; }; then
23703   ac_cv_lib_rt_sched_yield=yes
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_cv_lib_rt_sched_yield=no
23709 fi
23710 rm -f conftest.err conftest.$ac_objext \
23711       conftest$ac_exeext conftest.$ac_ext
23712 LIBS=$ac_check_lib_save_LIBS
23713 fi
23714 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23715 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23716 if test $ac_cv_lib_rt_sched_yield = yes; then
23717
23718           cat >>confdefs.h <<\_ACEOF
23719 #define HAVE_SCHED_YIELD 1
23720 _ACEOF
23721
23722           THREADLIBS="$THREADLIBS -lrt"
23723           THREADSPEC="$THREADSPEC -lrt"
23724 else
23725
23726           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23727 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23728 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23729   echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731   ac_check_lib_save_LIBS=$LIBS
23732 LIBS="-lposix4  $LIBS"
23733 if test x$gcc_no_link = xyes; then
23734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23736    { (exit 1); exit 1; }; }
23737 fi
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744
23745 /* Override any gcc2 internal prototype to avoid an error.  */
23746 #ifdef __cplusplus
23747 extern "C"
23748 #endif
23749 /* We use char because int might match the return type of a gcc2
23750    builtin and then its argument prototype would still apply.  */
23751 char sched_yield ();
23752 int
23753 main ()
23754 {
23755 sched_yield ();
23756   ;
23757   return 0;
23758 }
23759 _ACEOF
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23762   (eval $ac_link) 2>conftest.er1
23763   ac_status=$?
23764   grep -v '^ *+' conftest.er1 >conftest.err
23765   rm -f conftest.er1
23766   cat conftest.err >&5
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); } &&
23769          { ac_try='test -z "$ac_c_werror_flag"
23770                          || test ! -s conftest.err'
23771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772   (eval $ac_try) 2>&5
23773   ac_status=$?
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); }; } &&
23776          { ac_try='test -s conftest$ac_exeext'
23777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; }; then
23782   ac_cv_lib_posix4_sched_yield=yes
23783 else
23784   echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787 ac_cv_lib_posix4_sched_yield=no
23788 fi
23789 rm -f conftest.err conftest.$ac_objext \
23790       conftest$ac_exeext conftest.$ac_ext
23791 LIBS=$ac_check_lib_save_LIBS
23792 fi
23793 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23794 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23795 if test $ac_cv_lib_posix4_sched_yield = yes; then
23796
23797             cat >>confdefs.h <<\_ACEOF
23798 #define HAVE_SCHED_YIELD 1
23799 _ACEOF
23800
23801             THREADLIBS="$THREADLIBS -lposix4"
23802             THREADSPEC="$THREADSPEC -lposix4"
23803 fi
23804
23805 fi
23806
23807 fi
23808 done
23809
23810
23811       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23812 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23813 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23814   echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23816   ac_check_lib_save_LIBS=$LIBS
23817 LIBS="-lrt  $LIBS"
23818 if test x$gcc_no_link = xyes; then
23819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23821    { (exit 1); exit 1; }; }
23822 fi
23823 cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829
23830 /* Override any gcc2 internal prototype to avoid an error.  */
23831 #ifdef __cplusplus
23832 extern "C"
23833 #endif
23834 /* We use char because int might match the return type of a gcc2
23835    builtin and then its argument prototype would still apply.  */
23836 char clock_gettime ();
23837 int
23838 main ()
23839 {
23840 clock_gettime ();
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847   (eval $ac_link) 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } &&
23854          { ac_try='test -z "$ac_c_werror_flag"
23855                          || test ! -s conftest.err'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest$ac_exeext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   ac_cv_lib_rt_clock_gettime=yes
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872 ac_cv_lib_rt_clock_gettime=no
23873 fi
23874 rm -f conftest.err conftest.$ac_objext \
23875       conftest$ac_exeext conftest.$ac_ext
23876 LIBS=$ac_check_lib_save_LIBS
23877 fi
23878 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23879 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23880 if test $ac_cv_lib_rt_clock_gettime = yes; then
23881
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_CLOCK_GETTIME 1
23885 _ACEOF
23886
23887          case "$THREADSPEC" in
23888            *-lrt*) ;;
23889            *)
23890              THREADSPEC="$THREADSPEC -lrt"
23891              THREADLIBS="$THREADLIBS -lrt"
23892              ;;
23893          esac
23894 fi
23895
23896
23897       LIBS="$save_LIBS"
23898
23899       # We can save a little space at runtime if the mutex has m_count
23900       # or __m_count.  This is a nice hack for Linux.
23901       cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907 #include <pthread.h>
23908 int
23909 main ()
23910 {
23911
23912           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23913
23914   ;
23915   return 0;
23916 }
23917 _ACEOF
23918 rm -f conftest.$ac_objext
23919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23920   (eval $ac_compile) 2>conftest.er1
23921   ac_status=$?
23922   grep -v '^ *+' conftest.er1 >conftest.err
23923   rm -f conftest.er1
23924   cat conftest.err >&5
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); } &&
23927          { ac_try='test -z "$ac_c_werror_flag"
23928                          || test ! -s conftest.err'
23929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930   (eval $ac_try) 2>&5
23931   ac_status=$?
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); }; } &&
23934          { ac_try='test -s conftest.$ac_objext'
23935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936   (eval $ac_try) 2>&5
23937   ac_status=$?
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); }; }; then
23940
23941 cat >>confdefs.h <<\_ACEOF
23942 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23943 _ACEOF
23944
23945 else
23946   echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23948
23949
23950         cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956 #include <pthread.h>
23957 int
23958 main ()
23959 {
23960
23961             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23962
23963   ;
23964   return 0;
23965 }
23966 _ACEOF
23967 rm -f conftest.$ac_objext
23968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23969   (eval $ac_compile) 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } &&
23976          { ac_try='test -z "$ac_c_werror_flag"
23977                          || test ! -s conftest.err'
23978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979   (eval $ac_try) 2>&5
23980   ac_status=$?
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); }; } &&
23983          { ac_try='test -s conftest.$ac_objext'
23984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23985   (eval $ac_try) 2>&5
23986   ac_status=$?
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); }; }; then
23989
23990 cat >>confdefs.h <<\_ACEOF
23991 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23992 _ACEOF
23993
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998 fi
23999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24000 fi
24001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24002    fi
24003
24004    # We require a way to get the time.
24005    time_found=no
24006
24007
24008
24009 for ac_func in gettimeofday time ftime
24010 do
24011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24012 echo "$as_me:$LINENO: checking for $ac_func" >&5
24013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24014 if eval "test \"\${$as_ac_var+set}\" = set"; then
24015   echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017   if test x$gcc_no_link = xyes; then
24018   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24020    { (exit 1); exit 1; }; }
24021 fi
24022 cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h.  */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h.  */
24028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24030 #define $ac_func innocuous_$ac_func
24031
24032 /* System header to define __stub macros and hopefully few prototypes,
24033     which can conflict with char $ac_func (); below.
24034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24035     <limits.h> exists even on freestanding compilers.  */
24036
24037 #ifdef __STDC__
24038 # include <limits.h>
24039 #else
24040 # include <assert.h>
24041 #endif
24042
24043 #undef $ac_func
24044
24045 /* Override any gcc2 internal prototype to avoid an error.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 {
24049 #endif
24050 /* We use char because int might match the return type of a gcc2
24051    builtin and then its argument prototype would still apply.  */
24052 char $ac_func ();
24053 /* The GNU C library defines this for functions which it implements
24054     to always fail with ENOSYS.  Some functions are actually named
24055     something starting with __ and the normal name is an alias.  */
24056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24057 choke me
24058 #else
24059 char (*f) () = $ac_func;
24060 #endif
24061 #ifdef __cplusplus
24062 }
24063 #endif
24064
24065 int
24066 main ()
24067 {
24068 return f != $ac_func;
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075   (eval $ac_link) 2>conftest.er1
24076   ac_status=$?
24077   grep -v '^ *+' conftest.er1 >conftest.err
24078   rm -f conftest.er1
24079   cat conftest.err >&5
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); } &&
24082          { ac_try='test -z "$ac_c_werror_flag"
24083                          || test ! -s conftest.err'
24084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085   (eval $ac_try) 2>&5
24086   ac_status=$?
24087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); }; } &&
24089          { ac_try='test -s conftest$ac_exeext'
24090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091   (eval $ac_try) 2>&5
24092   ac_status=$?
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); }; }; then
24095   eval "$as_ac_var=yes"
24096 else
24097   echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24099
24100 eval "$as_ac_var=no"
24101 fi
24102 rm -f conftest.err conftest.$ac_objext \
24103       conftest$ac_exeext conftest.$ac_ext
24104 fi
24105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24107 if test `eval echo '${'$as_ac_var'}'` = yes; then
24108   cat >>confdefs.h <<_ACEOF
24109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110 _ACEOF
24111  time_found=yes
24112 fi
24113 done
24114
24115    if test "$time_found" = no; then
24116       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
24117 echo "$as_me: error: no function found to get the time" >&2;}
24118    { (exit 1); exit 1; }; }
24119    fi
24120
24121
24122 for ac_func in memmove
24123 do
24124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24125 echo "$as_me:$LINENO: checking for $ac_func" >&5
24126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24127 if eval "test \"\${$as_ac_var+set}\" = set"; then
24128   echo $ECHO_N "(cached) $ECHO_C" >&6
24129 else
24130   if test x$gcc_no_link = xyes; then
24131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24133    { (exit 1); exit 1; }; }
24134 fi
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24143 #define $ac_func innocuous_$ac_func
24144
24145 /* System header to define __stub macros and hopefully few prototypes,
24146     which can conflict with char $ac_func (); below.
24147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24148     <limits.h> exists even on freestanding compilers.  */
24149
24150 #ifdef __STDC__
24151 # include <limits.h>
24152 #else
24153 # include <assert.h>
24154 #endif
24155
24156 #undef $ac_func
24157
24158 /* Override any gcc2 internal prototype to avoid an error.  */
24159 #ifdef __cplusplus
24160 extern "C"
24161 {
24162 #endif
24163 /* We use char because int might match the return type of a gcc2
24164    builtin and then its argument prototype would still apply.  */
24165 char $ac_func ();
24166 /* The GNU C library defines this for functions which it implements
24167     to always fail with ENOSYS.  Some functions are actually named
24168     something starting with __ and the normal name is an alias.  */
24169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24170 choke me
24171 #else
24172 char (*f) () = $ac_func;
24173 #endif
24174 #ifdef __cplusplus
24175 }
24176 #endif
24177
24178 int
24179 main ()
24180 {
24181 return f != $ac_func;
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 rm -f conftest.$ac_objext conftest$ac_exeext
24187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24188   (eval $ac_link) 2>conftest.er1
24189   ac_status=$?
24190   grep -v '^ *+' conftest.er1 >conftest.err
24191   rm -f conftest.er1
24192   cat conftest.err >&5
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); } &&
24195          { ac_try='test -z "$ac_c_werror_flag"
24196                          || test ! -s conftest.err'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; } &&
24202          { ac_try='test -s conftest$ac_exeext'
24203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   eval "$as_ac_var=yes"
24209 else
24210   echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24212
24213 eval "$as_ac_var=no"
24214 fi
24215 rm -f conftest.err conftest.$ac_objext \
24216       conftest$ac_exeext conftest.$ac_ext
24217 fi
24218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24220 if test `eval echo '${'$as_ac_var'}'` = yes; then
24221   cat >>confdefs.h <<_ACEOF
24222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24223 _ACEOF
24224
24225 fi
24226 done
24227
24228
24229    # We require memcpy.
24230    memcpy_found=no
24231
24232 for ac_func in memcpy
24233 do
24234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24235 echo "$as_me:$LINENO: checking for $ac_func" >&5
24236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24237 if eval "test \"\${$as_ac_var+set}\" = set"; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240   if test x$gcc_no_link = xyes; then
24241   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24243    { (exit 1); exit 1; }; }
24244 fi
24245 cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24253 #define $ac_func innocuous_$ac_func
24254
24255 /* System header to define __stub macros and hopefully few prototypes,
24256     which can conflict with char $ac_func (); below.
24257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24258     <limits.h> exists even on freestanding compilers.  */
24259
24260 #ifdef __STDC__
24261 # include <limits.h>
24262 #else
24263 # include <assert.h>
24264 #endif
24265
24266 #undef $ac_func
24267
24268 /* Override any gcc2 internal prototype to avoid an error.  */
24269 #ifdef __cplusplus
24270 extern "C"
24271 {
24272 #endif
24273 /* We use char because int might match the return type of a gcc2
24274    builtin and then its argument prototype would still apply.  */
24275 char $ac_func ();
24276 /* The GNU C library defines this for functions which it implements
24277     to always fail with ENOSYS.  Some functions are actually named
24278     something starting with __ and the normal name is an alias.  */
24279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24280 choke me
24281 #else
24282 char (*f) () = $ac_func;
24283 #endif
24284 #ifdef __cplusplus
24285 }
24286 #endif
24287
24288 int
24289 main ()
24290 {
24291 return f != $ac_func;
24292   ;
24293   return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest.$ac_objext conftest$ac_exeext
24297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24298   (eval $ac_link) 2>conftest.er1
24299   ac_status=$?
24300   grep -v '^ *+' conftest.er1 >conftest.err
24301   rm -f conftest.er1
24302   cat conftest.err >&5
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); } &&
24305          { ac_try='test -z "$ac_c_werror_flag"
24306                          || test ! -s conftest.err'
24307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308   (eval $ac_try) 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; } &&
24312          { ac_try='test -s conftest$ac_exeext'
24313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314   (eval $ac_try) 2>&5
24315   ac_status=$?
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); }; }; then
24318   eval "$as_ac_var=yes"
24319 else
24320   echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323 eval "$as_ac_var=no"
24324 fi
24325 rm -f conftest.err conftest.$ac_objext \
24326       conftest$ac_exeext conftest.$ac_ext
24327 fi
24328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24330 if test `eval echo '${'$as_ac_var'}'` = yes; then
24331   cat >>confdefs.h <<_ACEOF
24332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24333 _ACEOF
24334  memcpy_found=yes
24335 fi
24336 done
24337
24338    if test "$memcpy_found" = no; then
24339       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24340 echo "$as_me: error: memcpy is required" >&2;}
24341    { (exit 1); exit 1; }; }
24342    fi
24343    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24344    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24347   echo $ECHO_N "(cached) $ECHO_C" >&6
24348 else
24349   ac_check_lib_save_LIBS=$LIBS
24350 LIBS="-ldl  $LIBS"
24351 if test x$gcc_no_link = xyes; then
24352   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24354    { (exit 1); exit 1; }; }
24355 fi
24356 cat >conftest.$ac_ext <<_ACEOF
24357 /* confdefs.h.  */
24358 _ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h.  */
24362
24363 /* Override any gcc2 internal prototype to avoid an error.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 #endif
24367 /* We use char because int might match the return type of a gcc2
24368    builtin and then its argument prototype would still apply.  */
24369 char dlopen ();
24370 int
24371 main ()
24372 {
24373 dlopen ();
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24380   (eval $ac_link) 2>conftest.er1
24381   ac_status=$?
24382   grep -v '^ *+' conftest.er1 >conftest.err
24383   rm -f conftest.er1
24384   cat conftest.err >&5
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); } &&
24387          { ac_try='test -z "$ac_c_werror_flag"
24388                          || test ! -s conftest.err'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; } &&
24394          { ac_try='test -s conftest$ac_exeext'
24395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396   (eval $ac_try) 2>&5
24397   ac_status=$?
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); }; }; then
24400   ac_cv_lib_dl_dlopen=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405 ac_cv_lib_dl_dlopen=no
24406 fi
24407 rm -f conftest.err conftest.$ac_objext \
24408       conftest$ac_exeext conftest.$ac_ext
24409 LIBS=$ac_check_lib_save_LIBS
24410 fi
24411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24413 if test $ac_cv_lib_dl_dlopen = yes; then
24414
24415
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_DLOPEN 1
24418 _ACEOF
24419
24420 else
24421
24422        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24423 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24424 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24425   echo $ECHO_N "(cached) $ECHO_C" >&6
24426 else
24427   ac_check_lib_save_LIBS=$LIBS
24428 LIBS="-ldld  $LIBS"
24429 if test x$gcc_no_link = xyes; then
24430   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24432    { (exit 1); exit 1; }; }
24433 fi
24434 cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440
24441 /* Override any gcc2 internal prototype to avoid an error.  */
24442 #ifdef __cplusplus
24443 extern "C"
24444 #endif
24445 /* We use char because int might match the return type of a gcc2
24446    builtin and then its argument prototype would still apply.  */
24447 char dlopen ();
24448 int
24449 main ()
24450 {
24451 dlopen ();
24452   ;
24453   return 0;
24454 }
24455 _ACEOF
24456 rm -f conftest.$ac_objext conftest$ac_exeext
24457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24458   (eval $ac_link) 2>conftest.er1
24459   ac_status=$?
24460   grep -v '^ *+' conftest.er1 >conftest.err
24461   rm -f conftest.er1
24462   cat conftest.err >&5
24463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); } &&
24465          { ac_try='test -z "$ac_c_werror_flag"
24466                          || test ! -s conftest.err'
24467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468   (eval $ac_try) 2>&5
24469   ac_status=$?
24470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); }; } &&
24472          { ac_try='test -s conftest$ac_exeext'
24473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474   (eval $ac_try) 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; }; then
24478   ac_cv_lib_dld_dlopen=yes
24479 else
24480   echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24482
24483 ac_cv_lib_dld_dlopen=no
24484 fi
24485 rm -f conftest.err conftest.$ac_objext \
24486       conftest$ac_exeext conftest.$ac_ext
24487 LIBS=$ac_check_lib_save_LIBS
24488 fi
24489 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24490 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24491 if test $ac_cv_lib_dld_dlopen = yes; then
24492
24493
24494 cat >>confdefs.h <<\_ACEOF
24495 #define HAVE_DLOPEN 1
24496 _ACEOF
24497
24498 fi
24499
24500 fi
24501
24502
24503    # Some library-finding code we stole from Tcl.
24504    #--------------------------------------------------------------------
24505    #    Check for the existence of the -lsocket and -lnsl libraries.
24506    #    The order here is important, so that they end up in the right
24507    #    order in the command line generated by make.  Here are some
24508    #    special considerations:
24509    #    1. Use "connect" and "accept" to check for -lsocket, and
24510    #       "gethostbyname" to check for -lnsl.
24511    #    2. Use each function name only once:  can't redo a check because
24512    #       autoconf caches the results of the last check and won't redo it.
24513    #    3. Use -lnsl and -lsocket only if they supply procedures that
24514    #       aren't already present in the normal libraries.  This is because
24515    #       IRIX 5.2 has libraries, but they aren't needed and they're
24516    #       bogus:  they goof up name resolution if used.
24517    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24518    #       To get around this problem, check for both libraries together
24519    #       if -lsocket doesn't work by itself.
24520    #--------------------------------------------------------------------
24521
24522    echo "$as_me:$LINENO: checking for socket libraries" >&5
24523 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24524 if test "${gcj_cv_lib_sockets+set}" = set; then
24525   echo $ECHO_N "(cached) $ECHO_C" >&6
24526 else
24527   gcj_cv_lib_sockets=
24528      gcj_checkBoth=0
24529      unset ac_cv_func_connect
24530      echo "$as_me:$LINENO: checking for connect" >&5
24531 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24532 if test "${ac_cv_func_connect+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   if test x$gcc_no_link = xyes; then
24536   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24538    { (exit 1); exit 1; }; }
24539 fi
24540 cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h.  */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h.  */
24546 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24548 #define connect innocuous_connect
24549
24550 /* System header to define __stub macros and hopefully few prototypes,
24551     which can conflict with char connect (); below.
24552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24553     <limits.h> exists even on freestanding compilers.  */
24554
24555 #ifdef __STDC__
24556 # include <limits.h>
24557 #else
24558 # include <assert.h>
24559 #endif
24560
24561 #undef connect
24562
24563 /* Override any gcc2 internal prototype to avoid an error.  */
24564 #ifdef __cplusplus
24565 extern "C"
24566 {
24567 #endif
24568 /* We use char because int might match the return type of a gcc2
24569    builtin and then its argument prototype would still apply.  */
24570 char connect ();
24571 /* The GNU C library defines this for functions which it implements
24572     to always fail with ENOSYS.  Some functions are actually named
24573     something starting with __ and the normal name is an alias.  */
24574 #if defined (__stub_connect) || defined (__stub___connect)
24575 choke me
24576 #else
24577 char (*f) () = connect;
24578 #endif
24579 #ifdef __cplusplus
24580 }
24581 #endif
24582
24583 int
24584 main ()
24585 {
24586 return f != connect;
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext conftest$ac_exeext
24592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24593   (eval $ac_link) 2>conftest.er1
24594   ac_status=$?
24595   grep -v '^ *+' conftest.er1 >conftest.err
24596   rm -f conftest.er1
24597   cat conftest.err >&5
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); } &&
24600          { ac_try='test -z "$ac_c_werror_flag"
24601                          || test ! -s conftest.err'
24602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603   (eval $ac_try) 2>&5
24604   ac_status=$?
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); }; } &&
24607          { ac_try='test -s conftest$ac_exeext'
24608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609   (eval $ac_try) 2>&5
24610   ac_status=$?
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); }; }; then
24613   ac_cv_func_connect=yes
24614 else
24615   echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24617
24618 ac_cv_func_connect=no
24619 fi
24620 rm -f conftest.err conftest.$ac_objext \
24621       conftest$ac_exeext conftest.$ac_ext
24622 fi
24623 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24624 echo "${ECHO_T}$ac_cv_func_connect" >&6
24625 if test $ac_cv_func_connect = yes; then
24626   gcj_checkSocket=0
24627 else
24628   gcj_checkSocket=1
24629 fi
24630
24631      if test "$gcj_checkSocket" = 1; then
24632          unset ac_cv_func_connect
24633          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24634 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24635 if test "${ac_cv_lib_socket_main+set}" = set; then
24636   echo $ECHO_N "(cached) $ECHO_C" >&6
24637 else
24638   ac_check_lib_save_LIBS=$LIBS
24639 LIBS="-lsocket  $LIBS"
24640 if test x$gcc_no_link = xyes; then
24641   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24643    { (exit 1); exit 1; }; }
24644 fi
24645 cat >conftest.$ac_ext <<_ACEOF
24646 /* confdefs.h.  */
24647 _ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h.  */
24651
24652
24653 int
24654 main ()
24655 {
24656 main ();
24657   ;
24658   return 0;
24659 }
24660 _ACEOF
24661 rm -f conftest.$ac_objext conftest$ac_exeext
24662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24663   (eval $ac_link) 2>conftest.er1
24664   ac_status=$?
24665   grep -v '^ *+' conftest.er1 >conftest.err
24666   rm -f conftest.er1
24667   cat conftest.err >&5
24668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); } &&
24670          { ac_try='test -z "$ac_c_werror_flag"
24671                          || test ! -s conftest.err'
24672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673   (eval $ac_try) 2>&5
24674   ac_status=$?
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); }; } &&
24677          { ac_try='test -s conftest$ac_exeext'
24678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679   (eval $ac_try) 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); }; }; then
24683   ac_cv_lib_socket_main=yes
24684 else
24685   echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 ac_cv_lib_socket_main=no
24689 fi
24690 rm -f conftest.err conftest.$ac_objext \
24691       conftest$ac_exeext conftest.$ac_ext
24692 LIBS=$ac_check_lib_save_LIBS
24693 fi
24694 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24695 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24696 if test $ac_cv_lib_socket_main = yes; then
24697   gcj_cv_lib_sockets="-lsocket"
24698 else
24699   gcj_checkBoth=1
24700 fi
24701
24702      fi
24703      if test "$gcj_checkBoth" = 1; then
24704          gcj_oldLibs=$LIBS
24705          LIBS="$LIBS -lsocket -lnsl"
24706          unset ac_cv_func_accept
24707          echo "$as_me:$LINENO: checking for accept" >&5
24708 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24709 if test "${ac_cv_func_accept+set}" = set; then
24710   echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712   if test x$gcc_no_link = xyes; then
24713   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24715    { (exit 1); exit 1; }; }
24716 fi
24717 cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24725 #define accept innocuous_accept
24726
24727 /* System header to define __stub macros and hopefully few prototypes,
24728     which can conflict with char accept (); below.
24729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24730     <limits.h> exists even on freestanding compilers.  */
24731
24732 #ifdef __STDC__
24733 # include <limits.h>
24734 #else
24735 # include <assert.h>
24736 #endif
24737
24738 #undef accept
24739
24740 /* Override any gcc2 internal prototype to avoid an error.  */
24741 #ifdef __cplusplus
24742 extern "C"
24743 {
24744 #endif
24745 /* We use char because int might match the return type of a gcc2
24746    builtin and then its argument prototype would still apply.  */
24747 char accept ();
24748 /* The GNU C library defines this for functions which it implements
24749     to always fail with ENOSYS.  Some functions are actually named
24750     something starting with __ and the normal name is an alias.  */
24751 #if defined (__stub_accept) || defined (__stub___accept)
24752 choke me
24753 #else
24754 char (*f) () = accept;
24755 #endif
24756 #ifdef __cplusplus
24757 }
24758 #endif
24759
24760 int
24761 main ()
24762 {
24763 return f != accept;
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 rm -f conftest.$ac_objext conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770   (eval $ac_link) 2>conftest.er1
24771   ac_status=$?
24772   grep -v '^ *+' conftest.er1 >conftest.err
24773   rm -f conftest.er1
24774   cat conftest.err >&5
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); } &&
24777          { ac_try='test -z "$ac_c_werror_flag"
24778                          || test ! -s conftest.err'
24779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780   (eval $ac_try) 2>&5
24781   ac_status=$?
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); }; } &&
24784          { ac_try='test -s conftest$ac_exeext'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; }; then
24790   ac_cv_func_accept=yes
24791 else
24792   echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ac_cv_func_accept=no
24796 fi
24797 rm -f conftest.err conftest.$ac_objext \
24798       conftest$ac_exeext conftest.$ac_ext
24799 fi
24800 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24801 echo "${ECHO_T}$ac_cv_func_accept" >&6
24802 if test $ac_cv_func_accept = yes; then
24803   gcj_checkNsl=0
24804                         gcj_cv_lib_sockets="-lsocket -lnsl"
24805 fi
24806
24807          unset ac_cv_func_accept
24808          LIBS=$gcj_oldLibs
24809      fi
24810      unset ac_cv_func_gethostbyname
24811      gcj_oldLibs=$LIBS
24812      LIBS="$LIBS $gcj_cv_lib_sockets"
24813      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24814 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24815 if test "${ac_cv_func_gethostbyname+set}" = set; then
24816   echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818   if test x$gcc_no_link = xyes; then
24819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24821    { (exit 1); exit 1; }; }
24822 fi
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24831 #define gethostbyname innocuous_gethostbyname
24832
24833 /* System header to define __stub macros and hopefully few prototypes,
24834     which can conflict with char gethostbyname (); below.
24835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24836     <limits.h> exists even on freestanding compilers.  */
24837
24838 #ifdef __STDC__
24839 # include <limits.h>
24840 #else
24841 # include <assert.h>
24842 #endif
24843
24844 #undef gethostbyname
24845
24846 /* Override any gcc2 internal prototype to avoid an error.  */
24847 #ifdef __cplusplus
24848 extern "C"
24849 {
24850 #endif
24851 /* We use char because int might match the return type of a gcc2
24852    builtin and then its argument prototype would still apply.  */
24853 char gethostbyname ();
24854 /* The GNU C library defines this for functions which it implements
24855     to always fail with ENOSYS.  Some functions are actually named
24856     something starting with __ and the normal name is an alias.  */
24857 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24858 choke me
24859 #else
24860 char (*f) () = gethostbyname;
24861 #endif
24862 #ifdef __cplusplus
24863 }
24864 #endif
24865
24866 int
24867 main ()
24868 {
24869 return f != gethostbyname;
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876   (eval $ac_link) 2>conftest.er1
24877   ac_status=$?
24878   grep -v '^ *+' conftest.er1 >conftest.err
24879   rm -f conftest.er1
24880   cat conftest.err >&5
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } &&
24883          { ac_try='test -z "$ac_c_werror_flag"
24884                          || test ! -s conftest.err'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; } &&
24890          { ac_try='test -s conftest$ac_exeext'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; }; then
24896   ac_cv_func_gethostbyname=yes
24897 else
24898   echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24900
24901 ac_cv_func_gethostbyname=no
24902 fi
24903 rm -f conftest.err conftest.$ac_objext \
24904       conftest$ac_exeext conftest.$ac_ext
24905 fi
24906 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24907 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24908 if test $ac_cv_func_gethostbyname = yes; then
24909   :
24910 else
24911   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24912 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24913 if test "${ac_cv_lib_nsl_main+set}" = set; then
24914   echo $ECHO_N "(cached) $ECHO_C" >&6
24915 else
24916   ac_check_lib_save_LIBS=$LIBS
24917 LIBS="-lnsl  $LIBS"
24918 if test x$gcc_no_link = xyes; then
24919   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24921    { (exit 1); exit 1; }; }
24922 fi
24923 cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929
24930
24931 int
24932 main ()
24933 {
24934 main ();
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941   (eval $ac_link) 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -z "$ac_c_werror_flag"
24949                          || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest$ac_exeext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961   ac_cv_lib_nsl_main=yes
24962 else
24963   echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24965
24966 ac_cv_lib_nsl_main=no
24967 fi
24968 rm -f conftest.err conftest.$ac_objext \
24969       conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24971 fi
24972 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24973 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24974 if test $ac_cv_lib_nsl_main = yes; then
24975   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24976 fi
24977
24978 fi
24979
24980      unset ac_cv_func_gethostbyname
24981      LIBS=$gcj_oldLIBS
24982
24983 fi
24984 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24985 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24986    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24987
24988    if test "$with_system_zlib" = yes; then
24989       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24990 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24991 if test "${ac_cv_lib_z_deflate+set}" = set; then
24992   echo $ECHO_N "(cached) $ECHO_C" >&6
24993 else
24994   ac_check_lib_save_LIBS=$LIBS
24995 LIBS="-lz  $LIBS"
24996 if test x$gcc_no_link = xyes; then
24997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24999    { (exit 1); exit 1; }; }
25000 fi
25001 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007
25008 /* Override any gcc2 internal prototype to avoid an error.  */
25009 #ifdef __cplusplus
25010 extern "C"
25011 #endif
25012 /* We use char because int might match the return type of a gcc2
25013    builtin and then its argument prototype would still apply.  */
25014 char deflate ();
25015 int
25016 main ()
25017 {
25018 deflate ();
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25025   (eval $ac_link) 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } &&
25032          { ac_try='test -z "$ac_c_werror_flag"
25033                          || test ! -s conftest.err'
25034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25035   (eval $ac_try) 2>&5
25036   ac_status=$?
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); }; } &&
25039          { ac_try='test -s conftest$ac_exeext'
25040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041   (eval $ac_try) 2>&5
25042   ac_status=$?
25043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044   (exit $ac_status); }; }; then
25045   ac_cv_lib_z_deflate=yes
25046 else
25047   echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050 ac_cv_lib_z_deflate=no
25051 fi
25052 rm -f conftest.err conftest.$ac_objext \
25053       conftest$ac_exeext conftest.$ac_ext
25054 LIBS=$ac_check_lib_save_LIBS
25055 fi
25056 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25057 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25058 if test $ac_cv_lib_z_deflate = yes; then
25059   ZLIBSPEC=-lz
25060 else
25061   ZLIBSPEC=
25062 fi
25063
25064    fi
25065
25066    # Test for Gtk stuff, if asked for.
25067    if test "$use_gtk_awt" = yes; then
25068
25069   succeeded=no
25070
25071   if test -z "$PKG_CONFIG"; then
25072     # Extract the first word of "pkg-config", so it can be a program name with args.
25073 set dummy pkg-config; ac_word=$2
25074 echo "$as_me:$LINENO: checking for $ac_word" >&5
25075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25076 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25077   echo $ECHO_N "(cached) $ECHO_C" >&6
25078 else
25079   case $PKG_CONFIG in
25080   [\\/]* | ?:[\\/]*)
25081   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25082   ;;
25083   *)
25084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25085 for as_dir in $PATH
25086 do
25087   IFS=$as_save_IFS
25088   test -z "$as_dir" && as_dir=.
25089   for ac_exec_ext in '' $ac_executable_extensions; do
25090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25091     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25093     break 2
25094   fi
25095 done
25096 done
25097
25098   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25099   ;;
25100 esac
25101 fi
25102 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25103
25104 if test -n "$PKG_CONFIG"; then
25105   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25106 echo "${ECHO_T}$PKG_CONFIG" >&6
25107 else
25108   echo "$as_me:$LINENO: result: no" >&5
25109 echo "${ECHO_T}no" >&6
25110 fi
25111
25112   fi
25113
25114   if test "$PKG_CONFIG" = "no" ; then
25115      echo "*** The pkg-config script could not be found. Make sure it is"
25116      echo "*** in your path, or set the PKG_CONFIG environment variable"
25117      echo "*** to the full path to pkg-config."
25118      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25119   else
25120      PKG_CONFIG_MIN_VERSION=0.9.0
25121      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25122         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
25123 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
25124
25125         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
25126             echo "$as_me:$LINENO: result: yes" >&5
25127 echo "${ECHO_T}yes" >&6
25128             succeeded=yes
25129
25130             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25131 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
25132             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
25133             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25134 echo "${ECHO_T}$GTK_CFLAGS" >&6
25135
25136             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25137 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25138             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25139             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25140 echo "${ECHO_T}$GTK_LIBS" >&6
25141         else
25142             GTK_CFLAGS=""
25143             GTK_LIBS=""
25144             ## If we have a custom action on failure, don't print errors, but
25145             ## do set a variable so people can do so.
25146             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25147             echo $GTK_PKG_ERRORS
25148         fi
25149
25150
25151
25152      else
25153         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25154         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25155      fi
25156   fi
25157
25158   if test $succeeded = yes; then
25159      :
25160   else
25161      { { 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
25162 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;}
25163    { (exit 1); exit 1; }; }
25164   fi
25165
25166
25167
25168
25169
25170   succeeded=no
25171
25172   if test -z "$PKG_CONFIG"; then
25173     # Extract the first word of "pkg-config", so it can be a program name with args.
25174 set dummy pkg-config; ac_word=$2
25175 echo "$as_me:$LINENO: checking for $ac_word" >&5
25176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25178   echo $ECHO_N "(cached) $ECHO_C" >&6
25179 else
25180   case $PKG_CONFIG in
25181   [\\/]* | ?:[\\/]*)
25182   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25183   ;;
25184   *)
25185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25186 for as_dir in $PATH
25187 do
25188   IFS=$as_save_IFS
25189   test -z "$as_dir" && as_dir=.
25190   for ac_exec_ext in '' $ac_executable_extensions; do
25191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25192     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25194     break 2
25195   fi
25196 done
25197 done
25198
25199   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25200   ;;
25201 esac
25202 fi
25203 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25204
25205 if test -n "$PKG_CONFIG"; then
25206   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25207 echo "${ECHO_T}$PKG_CONFIG" >&6
25208 else
25209   echo "$as_me:$LINENO: result: no" >&5
25210 echo "${ECHO_T}no" >&6
25211 fi
25212
25213   fi
25214
25215   if test "$PKG_CONFIG" = "no" ; then
25216      echo "*** The pkg-config script could not be found. Make sure it is"
25217      echo "*** in your path, or set the PKG_CONFIG environment variable"
25218      echo "*** to the full path to pkg-config."
25219      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25220   else
25221      PKG_CONFIG_MIN_VERSION=0.9.0
25222      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25223         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25224 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25225
25226         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25227             echo "$as_me:$LINENO: result: yes" >&5
25228 echo "${ECHO_T}yes" >&6
25229             succeeded=yes
25230
25231             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25232 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25233             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25234             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25235 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25236
25237             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25238 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25239             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25240             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25241 echo "${ECHO_T}$GLIB_LIBS" >&6
25242         else
25243             GLIB_CFLAGS=""
25244             GLIB_LIBS=""
25245             ## If we have a custom action on failure, don't print errors, but
25246             ## do set a variable so people can do so.
25247             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25248             echo $GLIB_PKG_ERRORS
25249         fi
25250
25251
25252
25253      else
25254         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25255         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25256      fi
25257   fi
25258
25259   if test $succeeded = yes; then
25260      :
25261   else
25262      { { 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
25263 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;}
25264    { (exit 1); exit 1; }; }
25265   fi
25266
25267
25268
25269
25270
25271   succeeded=no
25272
25273   if test -z "$PKG_CONFIG"; then
25274     # Extract the first word of "pkg-config", so it can be a program name with args.
25275 set dummy pkg-config; ac_word=$2
25276 echo "$as_me:$LINENO: checking for $ac_word" >&5
25277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25279   echo $ECHO_N "(cached) $ECHO_C" >&6
25280 else
25281   case $PKG_CONFIG in
25282   [\\/]* | ?:[\\/]*)
25283   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25284   ;;
25285   *)
25286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25287 for as_dir in $PATH
25288 do
25289   IFS=$as_save_IFS
25290   test -z "$as_dir" && as_dir=.
25291   for ac_exec_ext in '' $ac_executable_extensions; do
25292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25293     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25295     break 2
25296   fi
25297 done
25298 done
25299
25300   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25301   ;;
25302 esac
25303 fi
25304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25305
25306 if test -n "$PKG_CONFIG"; then
25307   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25308 echo "${ECHO_T}$PKG_CONFIG" >&6
25309 else
25310   echo "$as_me:$LINENO: result: no" >&5
25311 echo "${ECHO_T}no" >&6
25312 fi
25313
25314   fi
25315
25316   if test "$PKG_CONFIG" = "no" ; then
25317      echo "*** The pkg-config script could not be found. Make sure it is"
25318      echo "*** in your path, or set the PKG_CONFIG environment variable"
25319      echo "*** to the full path to pkg-config."
25320      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25321   else
25322      PKG_CONFIG_MIN_VERSION=0.9.0
25323      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25324         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25325 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25326
25327         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25328             echo "$as_me:$LINENO: result: yes" >&5
25329 echo "${ECHO_T}yes" >&6
25330             succeeded=yes
25331
25332             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25333 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25334             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25335             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25336 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25337
25338             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25339 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25340             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25341             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25342 echo "${ECHO_T}$LIBART_LIBS" >&6
25343         else
25344             LIBART_CFLAGS=""
25345             LIBART_LIBS=""
25346             ## If we have a custom action on failure, don't print errors, but
25347             ## do set a variable so people can do so.
25348             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25349             echo $LIBART_PKG_ERRORS
25350         fi
25351
25352
25353
25354      else
25355         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25356         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25357      fi
25358   fi
25359
25360   if test $succeeded = yes; then
25361      :
25362   else
25363      { { 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
25364 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;}
25365    { (exit 1); exit 1; }; }
25366   fi
25367
25368
25369
25370
25371       # We require the XTest Extension to support java.awt.Robot.
25372       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25373 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25374 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25375   echo $ECHO_N "(cached) $ECHO_C" >&6
25376 else
25377   ac_check_lib_save_LIBS=$LIBS
25378 LIBS="-lXtst ${X_LIBS} $LIBS"
25379 if test x$gcc_no_link = xyes; then
25380   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25382    { (exit 1); exit 1; }; }
25383 fi
25384 cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390
25391 /* Override any gcc2 internal prototype to avoid an error.  */
25392 #ifdef __cplusplus
25393 extern "C"
25394 #endif
25395 /* We use char because int might match the return type of a gcc2
25396    builtin and then its argument prototype would still apply.  */
25397 char XTestQueryExtension ();
25398 int
25399 main ()
25400 {
25401 XTestQueryExtension ();
25402   ;
25403   return 0;
25404 }
25405 _ACEOF
25406 rm -f conftest.$ac_objext conftest$ac_exeext
25407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25408   (eval $ac_link) 2>conftest.er1
25409   ac_status=$?
25410   grep -v '^ *+' conftest.er1 >conftest.err
25411   rm -f conftest.er1
25412   cat conftest.err >&5
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); } &&
25415          { ac_try='test -z "$ac_c_werror_flag"
25416                          || test ! -s conftest.err'
25417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418   (eval $ac_try) 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); }; } &&
25422          { ac_try='test -s conftest$ac_exeext'
25423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424   (eval $ac_try) 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); }; }; then
25428   ac_cv_lib_Xtst_XTestQueryExtension=yes
25429 else
25430   echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 ac_cv_lib_Xtst_XTestQueryExtension=no
25434 fi
25435 rm -f conftest.err conftest.$ac_objext \
25436       conftest$ac_exeext conftest.$ac_ext
25437 LIBS=$ac_check_lib_save_LIBS
25438 fi
25439 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25440 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25441 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25442   true
25443 else
25444   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25445 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25446    { (exit 1); exit 1; }; }
25447 fi
25448
25449    fi
25450
25451    # On Solaris, and maybe other architectures, the Boehm collector
25452    # requires -ldl.
25453    if test "$GC" = boehm; then
25454       case "${host}" in
25455           mips-sgi-irix6*)
25456             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25457             # libgcj.spec is used, so override here
25458             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25459           ;;
25460           *)
25461             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25462 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25463 if test "${ac_cv_lib_dl_main+set}" = set; then
25464   echo $ECHO_N "(cached) $ECHO_C" >&6
25465 else
25466   ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-ldl  $LIBS"
25468 if test x$gcc_no_link = xyes; then
25469   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25471    { (exit 1); exit 1; }; }
25472 fi
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479
25480
25481 int
25482 main ()
25483 {
25484 main ();
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491   (eval $ac_link) 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } &&
25498          { ac_try='test -z "$ac_c_werror_flag"
25499                          || test ! -s conftest.err'
25500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501   (eval $ac_try) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; } &&
25505          { ac_try='test -s conftest$ac_exeext'
25506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507   (eval $ac_try) 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; }; then
25511   ac_cv_lib_dl_main=yes
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516 ac_cv_lib_dl_main=no
25517 fi
25518 rm -f conftest.err conftest.$ac_objext \
25519       conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25521 fi
25522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25523 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25524 if test $ac_cv_lib_dl_main = yes; then
25525   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25526 fi
25527
25528           ;;
25529       esac
25530    fi
25531 fi
25532
25533 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25534 case $build in
25535     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25536     *)         CLASSPATH_SEPARATOR=':' ;;
25537 esac
25538
25539
25540 # We must search the source tree for java.lang, since we still don't
25541 # have libgcj.jar nor java/lang/*.class
25542 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25543 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25544
25545 # Since some classes depend on this one, we need its source available
25546 # before we can do any GCJ compilation test :-(
25547 if test ! -f gnu/classpath/Configuration.java; then
25548   test -d gnu || mkdir gnu
25549   test -d gnu/classpath || mkdir gnu/classpath
25550   # Note that it is not crucial that all the values here be correct.
25551   sed -e "s,@prefix@,$prefix," \
25552       -e "s,@VERSION@,$VERSION," \
25553       -e "s,@LIBDEBUG@,false," \
25554       -e "s,@INIT_LOAD_LIBRARY@,false," \
25555       -e "s,@@,$LIBGCJDEBUG," \
25556       -e "s,@default_toolkit@,$TOOLKIT," \
25557       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25558       -e "s,@GTK_CAIRO_ENABLED@,false," \
25559       -e "s,@ECJ_JAR@,," \
25560       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
25561         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25562         > gnu/classpath/Configuration.java
25563   # We do not want to redirect the output of the grep below to /dev/null,
25564   # but we add /dev/null to the input list so that grep will print the
25565   # filename of Configuration.java in case it finds any matches.
25566   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25567     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25568 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25569    { (exit 1); exit 1; }; }
25570   fi
25571 fi
25572
25573
25574 for ac_prog in gcj
25575 do
25576   # Extract the first word of "$ac_prog", so it can be a program name with args.
25577 set dummy $ac_prog; ac_word=$2
25578 echo "$as_me:$LINENO: checking for $ac_word" >&5
25579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25580 if test "${ac_cv_prog_GCJ+set}" = set; then
25581   echo $ECHO_N "(cached) $ECHO_C" >&6
25582 else
25583   if test -n "$GCJ"; then
25584   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25585 else
25586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25587 for as_dir in $PATH
25588 do
25589   IFS=$as_save_IFS
25590   test -z "$as_dir" && as_dir=.
25591   for ac_exec_ext in '' $ac_executable_extensions; do
25592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25593     ac_cv_prog_GCJ="$ac_prog"
25594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25595     break 2
25596   fi
25597 done
25598 done
25599
25600 fi
25601 fi
25602 GCJ=$ac_cv_prog_GCJ
25603 if test -n "$GCJ"; then
25604   echo "$as_me:$LINENO: result: $GCJ" >&5
25605 echo "${ECHO_T}$GCJ" >&6
25606 else
25607   echo "$as_me:$LINENO: result: no" >&5
25608 echo "${ECHO_T}no" >&6
25609 fi
25610
25611   test -n "$GCJ" && break
25612 done
25613 test -n "$GCJ" || GCJ="gcj"
25614
25615 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25616 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25617    { (exit 1); exit 1; }; }
25618 if test "x${GCJFLAGS-unset}" = xunset; then
25619    GCJFLAGS="-g -O2"
25620 fi
25621
25622
25623 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25624
25625 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25626 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25627 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25631   # We make a subdir and do the tests there.  Otherwise we can end up
25632   # making bogus files that we don't know about and never remove.  For
25633   # instance it was reported that on HP-UX the gcc test will end up
25634   # making a dummy file named `D' -- because `-MD' means `put the output
25635   # in D'.
25636   mkdir conftest.dir
25637   # Copy depcomp to subdir because otherwise we won't find it if we're
25638   # using a relative directory.
25639   cp "$am_depcomp" conftest.dir
25640   cd conftest.dir
25641   # We will build objects and dependencies in a subdirectory because
25642   # it helps to detect inapplicable dependency modes.  For instance
25643   # both Tru64's cc and ICC support -MD to output dependencies as a
25644   # side effect of compilation, but ICC will put the dependencies in
25645   # the current directory while Tru64 will put them in the object
25646   # directory.
25647   mkdir sub
25648
25649   am_cv_GCJ_dependencies_compiler_type=none
25650   if test "$am_compiler_list" = ""; then
25651      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25652   fi
25653   for depmode in $am_compiler_list; do
25654     # Setup a source with many dependencies, because some compilers
25655     # like to wrap large dependency lists on column 80 (with \), and
25656     # we should not choose a depcomp mode which is confused by this.
25657     #
25658     # We need to recreate these files for each test, as the compiler may
25659     # overwrite some of them when testing with obscure command lines.
25660     # This happens at least with the AIX C compiler.
25661     : > sub/conftest.c
25662     for i in 1 2 3 4 5 6; do
25663       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25664       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25665       # Solaris 8's {/usr,}/bin/sh.
25666       touch sub/conftst$i.h
25667     done
25668     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25669
25670     case $depmode in
25671     nosideeffect)
25672       # after this tag, mechanisms are not by side-effect, so they'll
25673       # only be used when explicitly requested
25674       if test "x$enable_dependency_tracking" = xyes; then
25675         continue
25676       else
25677         break
25678       fi
25679       ;;
25680     none) break ;;
25681     esac
25682     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25683     # mode.  It turns out that the SunPro C++ compiler does not properly
25684     # handle `-M -o', and we need to detect this.
25685     if depmode=$depmode \
25686        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25687        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25688        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25689          >/dev/null 2>conftest.err &&
25690        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25691        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25692        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25693       # icc doesn't choke on unknown options, it will just issue warnings
25694       # or remarks (even with -Werror).  So we grep stderr for any message
25695       # that says an option was ignored or not supported.
25696       # When given -MP, icc 7.0 and 7.1 complain thusly:
25697       #   icc: Command line warning: ignoring option '-M'; no argument required
25698       # The diagnosis changed in icc 8.0:
25699       #   icc: Command line remark: option '-MP' not supported
25700       if (grep 'ignoring option' conftest.err ||
25701           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25702         am_cv_GCJ_dependencies_compiler_type=$depmode
25703         break
25704       fi
25705     fi
25706   done
25707
25708   cd ..
25709   rm -rf conftest.dir
25710 else
25711   am_cv_GCJ_dependencies_compiler_type=none
25712 fi
25713
25714 fi
25715 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25716 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25717 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25718
25719
25720
25721 if
25722   test "x$enable_dependency_tracking" != xno \
25723   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25724   am__fastdepGCJ_TRUE=
25725   am__fastdepGCJ_FALSE='#'
25726 else
25727   am__fastdepGCJ_TRUE='#'
25728   am__fastdepGCJ_FALSE=
25729 fi
25730
25731
25732
25733
25734 # Now remove it.
25735 rm -f gnu/classpath/Configuration.java
25736
25737 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25738
25739 echo "$as_me:$LINENO: checking for void *" >&5
25740 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25741 if test "${ac_cv_type_void_p+set}" = set; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 $ac_includes_default
25751 int
25752 main ()
25753 {
25754 if ((void * *) 0)
25755   return 0;
25756 if (sizeof (void *))
25757   return 0;
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764   (eval $ac_compile) 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } &&
25771          { ac_try='test -z "$ac_c_werror_flag"
25772                          || test ! -s conftest.err'
25773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774   (eval $ac_try) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); }; } &&
25778          { ac_try='test -s conftest.$ac_objext'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; }; then
25784   ac_cv_type_void_p=yes
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789 ac_cv_type_void_p=no
25790 fi
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792 fi
25793 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25794 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25795
25796 echo "$as_me:$LINENO: checking size of void *" >&5
25797 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25798 if test "${ac_cv_sizeof_void_p+set}" = set; then
25799   echo $ECHO_N "(cached) $ECHO_C" >&6
25800 else
25801   if test "$ac_cv_type_void_p" = yes; then
25802   # The cast to unsigned long works around a bug in the HP C Compiler
25803   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25804   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25805   # This bug is HP SR number 8606223364.
25806   if test "$cross_compiling" = yes; then
25807   # Depending upon the size, compute the lo and hi bounds.
25808 cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h.  */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h.  */
25814 $ac_includes_default
25815 int
25816 main ()
25817 {
25818 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25819 test_array [0] = 0
25820
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 rm -f conftest.$ac_objext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25827   (eval $ac_compile) 2>conftest.er1
25828   ac_status=$?
25829   grep -v '^ *+' conftest.er1 >conftest.err
25830   rm -f conftest.er1
25831   cat conftest.err >&5
25832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833   (exit $ac_status); } &&
25834          { ac_try='test -z "$ac_c_werror_flag"
25835                          || test ! -s conftest.err'
25836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837   (eval $ac_try) 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); }; } &&
25841          { ac_try='test -s conftest.$ac_objext'
25842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; }; then
25847   ac_lo=0 ac_mid=0
25848   while :; do
25849     cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 $ac_includes_default
25856 int
25857 main ()
25858 {
25859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25860 test_array [0] = 0
25861
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 rm -f conftest.$ac_objext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25868   (eval $ac_compile) 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } &&
25875          { ac_try='test -z "$ac_c_werror_flag"
25876                          || test ! -s conftest.err'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; } &&
25882          { ac_try='test -s conftest.$ac_objext'
25883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884   (eval $ac_try) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; }; then
25888   ac_hi=$ac_mid; break
25889 else
25890   echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893 ac_lo=`expr $ac_mid + 1`
25894                     if test $ac_lo -le $ac_mid; then
25895                       ac_lo= ac_hi=
25896                       break
25897                     fi
25898                     ac_mid=`expr 2 '*' $ac_mid + 1`
25899 fi
25900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25901   done
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913 int
25914 main ()
25915 {
25916 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25917 test_array [0] = 0
25918
25919   ;
25920   return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25925   (eval $ac_compile) 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } &&
25932          { ac_try='test -z "$ac_c_werror_flag"
25933                          || test ! -s conftest.err'
25934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935   (eval $ac_try) 2>&5
25936   ac_status=$?
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); }; } &&
25939          { ac_try='test -s conftest.$ac_objext'
25940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941   (eval $ac_try) 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   ac_hi=-1 ac_mid=-1
25946   while :; do
25947     cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h.  */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h.  */
25953 $ac_includes_default
25954 int
25955 main ()
25956 {
25957 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25958 test_array [0] = 0
25959
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966   (eval $ac_compile) 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
25970   cat conftest.err >&5
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); } &&
25973          { ac_try='test -z "$ac_c_werror_flag"
25974                          || test ! -s conftest.err'
25975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976   (eval $ac_try) 2>&5
25977   ac_status=$?
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; } &&
25980          { ac_try='test -s conftest.$ac_objext'
25981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982   (eval $ac_try) 2>&5
25983   ac_status=$?
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; }; then
25986   ac_lo=$ac_mid; break
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991 ac_hi=`expr '(' $ac_mid ')' - 1`
25992                        if test $ac_mid -le $ac_hi; then
25993                          ac_lo= ac_hi=
25994                          break
25995                        fi
25996                        ac_mid=`expr 2 '*' $ac_mid`
25997 fi
25998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25999   done
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 ac_lo= ac_hi=
26005 fi
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007 fi
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009 # Binary search between lo and hi bounds.
26010 while test "x$ac_lo" != "x$ac_hi"; do
26011   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 $ac_includes_default
26019 int
26020 main ()
26021 {
26022 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
26023 test_array [0] = 0
26024
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest.$ac_objext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031   (eval $ac_compile) 2>conftest.er1
26032   ac_status=$?
26033   grep -v '^ *+' conftest.er1 >conftest.err
26034   rm -f conftest.er1
26035   cat conftest.err >&5
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); } &&
26038          { ac_try='test -z "$ac_c_werror_flag"
26039                          || test ! -s conftest.err'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; } &&
26045          { ac_try='test -s conftest.$ac_objext'
26046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; }; then
26051   ac_hi=$ac_mid
26052 else
26053   echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056 ac_lo=`expr '(' $ac_mid ')' + 1`
26057 fi
26058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26059 done
26060 case $ac_lo in
26061 ?*) ac_cv_sizeof_void_p=$ac_lo;;
26062 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26063 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26065 See \`config.log' for more details." >&5
26066 echo "$as_me: error: cannot compute sizeof (void *), 77
26067 See \`config.log' for more details." >&2;}
26068    { (exit 1); exit 1; }; }; } ;;
26069 esac
26070 else
26071   if test "$cross_compiling" = yes; then
26072   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26073 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26075 See \`config.log' for more details." >&5
26076 echo "$as_me: error: cannot run test program while cross compiling
26077 See \`config.log' for more details." >&2;}
26078    { (exit 1); exit 1; }; }; }
26079 else
26080   cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 $ac_includes_default
26087 long longval () { return (long) (sizeof (void *)); }
26088 unsigned long ulongval () { return (long) (sizeof (void *)); }
26089 #include <stdio.h>
26090 #include <stdlib.h>
26091 int
26092 main ()
26093 {
26094
26095   FILE *f = fopen ("conftest.val", "w");
26096   if (! f)
26097     exit (1);
26098   if (((long) (sizeof (void *))) < 0)
26099     {
26100       long i = longval ();
26101       if (i != ((long) (sizeof (void *))))
26102         exit (1);
26103       fprintf (f, "%ld\n", i);
26104     }
26105   else
26106     {
26107       unsigned long i = ulongval ();
26108       if (i != ((long) (sizeof (void *))))
26109         exit (1);
26110       fprintf (f, "%lu\n", i);
26111     }
26112   exit (ferror (f) || fclose (f) != 0);
26113
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest$ac_exeext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26120   (eval $ac_link) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; }; then
26129   ac_cv_sizeof_void_p=`cat conftest.val`
26130 else
26131   echo "$as_me: program exited with status $ac_status" >&5
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26134
26135 ( exit $ac_status )
26136 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26137 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26138 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26139 See \`config.log' for more details." >&5
26140 echo "$as_me: error: cannot compute sizeof (void *), 77
26141 See \`config.log' for more details." >&2;}
26142    { (exit 1); exit 1; }; }; }
26143 fi
26144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26145 fi
26146 fi
26147 rm -f conftest.val
26148 else
26149   ac_cv_sizeof_void_p=0
26150 fi
26151 fi
26152 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26153 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26154 cat >>confdefs.h <<_ACEOF
26155 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26156 _ACEOF
26157
26158
26159
26160 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26161 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26162 if test "${ac_cv_c_bigendian+set}" = set; then
26163   echo $ECHO_N "(cached) $ECHO_C" >&6
26164 else
26165   # See if sys/param.h defines the BYTE_ORDER macro.
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172 #include <sys/types.h>
26173 #include <sys/param.h>
26174
26175 int
26176 main ()
26177 {
26178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26179  bogus endian macros
26180 #endif
26181
26182   ;
26183   return 0;
26184 }
26185 _ACEOF
26186 rm -f conftest.$ac_objext
26187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26188   (eval $ac_compile) 2>conftest.er1
26189   ac_status=$?
26190   grep -v '^ *+' conftest.er1 >conftest.err
26191   rm -f conftest.er1
26192   cat conftest.err >&5
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); } &&
26195          { ac_try='test -z "$ac_c_werror_flag"
26196                          || test ! -s conftest.err'
26197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; } &&
26202          { ac_try='test -s conftest.$ac_objext'
26203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204   (eval $ac_try) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); }; }; then
26208   # It does; now see whether it defined to BIG_ENDIAN or not.
26209 cat >conftest.$ac_ext <<_ACEOF
26210 /* confdefs.h.  */
26211 _ACEOF
26212 cat confdefs.h >>conftest.$ac_ext
26213 cat >>conftest.$ac_ext <<_ACEOF
26214 /* end confdefs.h.  */
26215 #include <sys/types.h>
26216 #include <sys/param.h>
26217
26218 int
26219 main ()
26220 {
26221 #if BYTE_ORDER != BIG_ENDIAN
26222  not big endian
26223 #endif
26224
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26231   (eval $ac_compile) 2>conftest.er1
26232   ac_status=$?
26233   grep -v '^ *+' conftest.er1 >conftest.err
26234   rm -f conftest.er1
26235   cat conftest.err >&5
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); } &&
26238          { ac_try='test -z "$ac_c_werror_flag"
26239                          || test ! -s conftest.err'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; } &&
26245          { ac_try='test -s conftest.$ac_objext'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; }; then
26251   ac_cv_c_bigendian=yes
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 ac_cv_c_bigendian=no
26257 fi
26258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263 # It does not; compile a test program.
26264 if test "$cross_compiling" = yes; then
26265   # try to guess the endianness by grepping values into an object file
26266   ac_cv_c_bigendian=unknown
26267   cat >conftest.$ac_ext <<_ACEOF
26268 /* confdefs.h.  */
26269 _ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h.  */
26273 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26274 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26276 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26277 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26279 int
26280 main ()
26281 {
26282  _ascii (); _ebcdic ();
26283   ;
26284   return 0;
26285 }
26286 _ACEOF
26287 rm -f conftest.$ac_objext
26288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26289   (eval $ac_compile) 2>conftest.er1
26290   ac_status=$?
26291   grep -v '^ *+' conftest.er1 >conftest.err
26292   rm -f conftest.er1
26293   cat conftest.err >&5
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); } &&
26296          { ac_try='test -z "$ac_c_werror_flag"
26297                          || test ! -s conftest.err'
26298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299   (eval $ac_try) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); }; } &&
26303          { ac_try='test -s conftest.$ac_objext'
26304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305   (eval $ac_try) 2>&5
26306   ac_status=$?
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); }; }; then
26309   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26310   ac_cv_c_bigendian=yes
26311 fi
26312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26313   if test "$ac_cv_c_bigendian" = unknown; then
26314     ac_cv_c_bigendian=no
26315   else
26316     # finding both strings is unlikely to happen, but who knows?
26317     ac_cv_c_bigendian=unknown
26318   fi
26319 fi
26320 else
26321   echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26323
26324 fi
26325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26326 else
26327   cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333 int
26334 main ()
26335 {
26336   /* Are we little or big endian?  From Harbison&Steele.  */
26337   union
26338   {
26339     long l;
26340     char c[sizeof (long)];
26341   } u;
26342   u.l = 1;
26343   exit (u.c[sizeof (long) - 1] == 1);
26344 }
26345 _ACEOF
26346 rm -f conftest$ac_exeext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26348   (eval $ac_link) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353   (eval $ac_try) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; }; then
26357   ac_cv_c_bigendian=no
26358 else
26359   echo "$as_me: program exited with status $ac_status" >&5
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ( exit $ac_status )
26364 ac_cv_c_bigendian=yes
26365 fi
26366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26367 fi
26368 fi
26369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26370 fi
26371 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26373 case $ac_cv_c_bigendian in
26374   yes)
26375
26376 cat >>confdefs.h <<\_ACEOF
26377 #define WORDS_BIGENDIAN 1
26378 _ACEOF
26379  ;;
26380   no)
26381      ;;
26382   *)
26383     { { echo "$as_me:$LINENO: error: unknown endianness
26384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26385 echo "$as_me: error: unknown endianness
26386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26387    { (exit 1); exit 1; }; } ;;
26388 esac
26389
26390
26391 ZLIBS=
26392 SYS_ZLIBS=
26393 ZINCS=
26394
26395 if test -z "$ZLIBSPEC"; then
26396    # Use zlib from the GCC tree.
26397    ZINCS='-I$(top_srcdir)/../zlib'
26398    ZLIBS=../zlib/libzgcj_convenience.la
26399 else
26400    # System's zlib.
26401    SYS_ZLIBS="$ZLIBSPEC"
26402 fi
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414 if test "$NATIVE" = yes; then
26415   NATIVE_TRUE=
26416   NATIVE_FALSE='#'
26417 else
26418   NATIVE_TRUE='#'
26419   NATIVE_FALSE=
26420 fi
26421
26422
26423
26424 if test "$enable_shared" = yes; then
26425   ENABLE_SHARED_TRUE=
26426   ENABLE_SHARED_FALSE='#'
26427 else
26428   ENABLE_SHARED_TRUE='#'
26429   ENABLE_SHARED_FALSE=
26430 fi
26431
26432
26433
26434 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26435   NEEDS_DATA_START_TRUE=
26436   NEEDS_DATA_START_FALSE='#'
26437 else
26438   NEEDS_DATA_START_TRUE='#'
26439   NEEDS_DATA_START_FALSE=
26440 fi
26441
26442
26443
26444 if test -z "${with_multisubdir}"; then
26445   INSTALL_BINARIES_TRUE=
26446   INSTALL_BINARIES_FALSE='#'
26447 else
26448   INSTALL_BINARIES_TRUE='#'
26449   INSTALL_BINARIES_FALSE=
26450 fi
26451
26452
26453
26454 # Process the option "--enable-version-specific-runtime-libs"
26455 # Calculate toolexeclibdir
26456 case ${version_specific_libs} in
26457   yes)
26458     # Need the gcc compiler version to know where to install libraries
26459     # and header files if --enable-version-specific-runtime-libs option
26460     # is selected.
26461     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26462     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26463     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26464     toolexeclibdir=$toolexecmainlibdir
26465     ;;
26466   no)
26467     if test -n "$with_cross_host" &&
26468        test x"$with_cross_host" != x"no"; then
26469       # Install a library built with a cross compiler in tooldir, not libdir.
26470       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26471       toolexecmainlibdir='$(toolexecdir)/lib'
26472     else
26473       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26474       toolexecmainlibdir='$(libdir)'
26475     fi
26476     multi_os_directory=`$CC -print-multi-os-directory`
26477     case $multi_os_directory in
26478       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26479       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26480     esac
26481     ;;
26482 esac
26483
26484
26485
26486
26487 # Determine gcj and libgcj version number.
26488 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26489 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26490 GCJVERSION=$gcjversion
26491
26492
26493 cat >>confdefs.h <<_ACEOF
26494 #define GCJVERSION "$GCJVERSION"
26495 _ACEOF
26496
26497
26498 # Determine where the standard .db file and GNU Classpath JNI
26499 # libraries are found.
26500 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26501 multi_os_directory=`$CC -print-multi-os-directory`
26502 case $multi_os_directory in
26503   .)
26504    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26505    ;;
26506   *)
26507    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26508    ;;
26509 esac
26510
26511
26512
26513
26514 cat >>confdefs.h <<\_ACEOF
26515 #define JV_VERSION "1.5.0"
26516 _ACEOF
26517
26518
26519 cat >>confdefs.h <<\_ACEOF
26520 #define JV_API_VERSION "1.5"
26521 _ACEOF
26522
26523
26524
26525 case "${with_gxx_include_dir}" in
26526   yes)
26527     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26528 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26529    { (exit 1); exit 1; }; }
26530     ;;
26531   no | "")
26532     case "${enable_version_specific_runtime_libs}" in
26533       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26534       *)
26535         libstdcxx_incdir='c++/$(gcc_version)'
26536         gxx_include_dir='include/$(libstdcxx_incdir)'
26537         if test -n "$with_cross_host" &&
26538            test x"$with_cross_host" != x"no"; then
26539           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26540         else
26541           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26542         fi;;
26543     esac ;;
26544   *) gxx_include_dir=${with_gxx_include_dir} ;;
26545 esac
26546
26547
26548
26549
26550 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26551 # On that system, sys/ioctl.h will not include sys/filio.h unless
26552 # BSD_COMP is defined; just including sys/filio.h is simpler.
26553 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26554 # for now.  If you change this, you also must update natFile.cc.
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26579                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26580                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26581                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26582                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26583 do
26584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26586   echo "$as_me:$LINENO: checking for $ac_header" >&5
26587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 fi
26591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26593 else
26594   # Is the header compilable?
26595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26597 cat >conftest.$ac_ext <<_ACEOF
26598 /* confdefs.h.  */
26599 _ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h.  */
26603 $ac_includes_default
26604 #include <$ac_header>
26605 _ACEOF
26606 rm -f conftest.$ac_objext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608   (eval $ac_compile) 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } &&
26615          { ac_try='test -z "$ac_c_werror_flag"
26616                          || test ! -s conftest.err'
26617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618   (eval $ac_try) 2>&5
26619   ac_status=$?
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); }; } &&
26622          { ac_try='test -s conftest.$ac_objext'
26623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624   (eval $ac_try) 2>&5
26625   ac_status=$?
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); }; }; then
26628   ac_header_compiler=yes
26629 else
26630   echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26632
26633 ac_header_compiler=no
26634 fi
26635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26637 echo "${ECHO_T}$ac_header_compiler" >&6
26638
26639 # Is the header present?
26640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26642 cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648 #include <$ac_header>
26649 _ACEOF
26650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26652   ac_status=$?
26653   grep -v '^ *+' conftest.er1 >conftest.err
26654   rm -f conftest.er1
26655   cat conftest.err >&5
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } >/dev/null; then
26658   if test -s conftest.err; then
26659     ac_cpp_err=$ac_c_preproc_warn_flag
26660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26661   else
26662     ac_cpp_err=
26663   fi
26664 else
26665   ac_cpp_err=yes
26666 fi
26667 if test -z "$ac_cpp_err"; then
26668   ac_header_preproc=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673   ac_header_preproc=no
26674 fi
26675 rm -f conftest.err conftest.$ac_ext
26676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26677 echo "${ECHO_T}$ac_header_preproc" >&6
26678
26679 # So?  What about this header?
26680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26681   yes:no: )
26682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26686     ac_header_preproc=yes
26687     ;;
26688   no:yes:* )
26689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26701     (
26702       cat <<\_ASBOX
26703 ## ---------------------------------- ##
26704 ## Report this to the libjava lists.  ##
26705 ## ---------------------------------- ##
26706 _ASBOX
26707     ) |
26708       sed "s/^/$as_me: WARNING:     /" >&2
26709     ;;
26710 esac
26711 echo "$as_me:$LINENO: checking for $ac_header" >&5
26712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26714   echo $ECHO_N "(cached) $ECHO_C" >&6
26715 else
26716   eval "$as_ac_Header=\$ac_header_preproc"
26717 fi
26718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720
26721 fi
26722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26723   cat >>confdefs.h <<_ACEOF
26724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26725 _ACEOF
26726
26727 fi
26728
26729 done
26730
26731
26732 for ac_header in inttypes.h
26733 do
26734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26736   echo "$as_me:$LINENO: checking for $ac_header" >&5
26737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 fi
26741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26743 else
26744   # Is the header compilable?
26745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26747 cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h.  */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h.  */
26753 $ac_includes_default
26754 #include <$ac_header>
26755 _ACEOF
26756 rm -f conftest.$ac_objext
26757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26758   (eval $ac_compile) 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } &&
26765          { ac_try='test -z "$ac_c_werror_flag"
26766                          || test ! -s conftest.err'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; } &&
26772          { ac_try='test -s conftest.$ac_objext'
26773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774   (eval $ac_try) 2>&5
26775   ac_status=$?
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); }; }; then
26778   ac_header_compiler=yes
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783 ac_header_compiler=no
26784 fi
26785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26787 echo "${ECHO_T}$ac_header_compiler" >&6
26788
26789 # Is the header present?
26790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26792 cat >conftest.$ac_ext <<_ACEOF
26793 /* confdefs.h.  */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h.  */
26798 #include <$ac_header>
26799 _ACEOF
26800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26802   ac_status=$?
26803   grep -v '^ *+' conftest.er1 >conftest.err
26804   rm -f conftest.er1
26805   cat conftest.err >&5
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); } >/dev/null; then
26808   if test -s conftest.err; then
26809     ac_cpp_err=$ac_c_preproc_warn_flag
26810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26811   else
26812     ac_cpp_err=
26813   fi
26814 else
26815   ac_cpp_err=yes
26816 fi
26817 if test -z "$ac_cpp_err"; then
26818   ac_header_preproc=yes
26819 else
26820   echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26822
26823   ac_header_preproc=no
26824 fi
26825 rm -f conftest.err conftest.$ac_ext
26826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26827 echo "${ECHO_T}$ac_header_preproc" >&6
26828
26829 # So?  What about this header?
26830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26831   yes:no: )
26832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26836     ac_header_preproc=yes
26837     ;;
26838   no:yes:* )
26839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26851     (
26852       cat <<\_ASBOX
26853 ## ---------------------------------- ##
26854 ## Report this to the libjava lists.  ##
26855 ## ---------------------------------- ##
26856 _ASBOX
26857     ) |
26858       sed "s/^/$as_me: WARNING:     /" >&2
26859     ;;
26860 esac
26861 echo "$as_me:$LINENO: checking for $ac_header" >&5
26862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26864   echo $ECHO_N "(cached) $ECHO_C" >&6
26865 else
26866   eval "$as_ac_Header=\$ac_header_preproc"
26867 fi
26868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26870
26871 fi
26872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26873   cat >>confdefs.h <<_ACEOF
26874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26875 _ACEOF
26876
26877
26878 cat >>confdefs.h <<\_ACEOF
26879 #define HAVE_INTTYPES_H 1
26880 _ACEOF
26881
26882
26883 cat >>confdefs.h <<\_ACEOF
26884 #define JV_HAVE_INTTYPES_H 1
26885 _ACEOF
26886
26887
26888 fi
26889
26890 done
26891
26892
26893 echo "$as_me:$LINENO: checking for ssize_t" >&5
26894 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26895 if test "${ac_cv_type_ssize_t+set}" = set; then
26896   echo $ECHO_N "(cached) $ECHO_C" >&6
26897 else
26898   cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h.  */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h.  */
26904 $ac_includes_default
26905 int
26906 main ()
26907 {
26908 if ((ssize_t *) 0)
26909   return 0;
26910 if (sizeof (ssize_t))
26911   return 0;
26912   ;
26913   return 0;
26914 }
26915 _ACEOF
26916 rm -f conftest.$ac_objext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918   (eval $ac_compile) 2>conftest.er1
26919   ac_status=$?
26920   grep -v '^ *+' conftest.er1 >conftest.err
26921   rm -f conftest.er1
26922   cat conftest.err >&5
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); } &&
26925          { ac_try='test -z "$ac_c_werror_flag"
26926                          || test ! -s conftest.err'
26927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928   (eval $ac_try) 2>&5
26929   ac_status=$?
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); }; } &&
26932          { ac_try='test -s conftest.$ac_objext'
26933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934   (eval $ac_try) 2>&5
26935   ac_status=$?
26936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937   (exit $ac_status); }; }; then
26938   ac_cv_type_ssize_t=yes
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 ac_cv_type_ssize_t=no
26944 fi
26945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26946 fi
26947 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26948 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26949 if test $ac_cv_type_ssize_t = yes; then
26950   :
26951 else
26952
26953 cat >>confdefs.h <<_ACEOF
26954 #define ssize_t int
26955 _ACEOF
26956
26957 fi
26958
26959 echo "$as_me:$LINENO: checking for magic_t" >&5
26960 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26961 if test "${ac_cv_type_magic_t+set}" = set; then
26962   echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964   cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971 #ifdef HAVE_MAGIC_H
26972 #include <magic.h>
26973 #endif
26974
26975 int
26976 main ()
26977 {
26978 if ((magic_t *) 0)
26979   return 0;
26980 if (sizeof (magic_t))
26981   return 0;
26982   ;
26983   return 0;
26984 }
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26988   (eval $ac_compile) 2>conftest.er1
26989   ac_status=$?
26990   grep -v '^ *+' conftest.er1 >conftest.err
26991   rm -f conftest.er1
26992   cat conftest.err >&5
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } &&
26995          { ac_try='test -z "$ac_c_werror_flag"
26996                          || test ! -s conftest.err'
26997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998   (eval $ac_try) 2>&5
26999   ac_status=$?
27000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); }; } &&
27002          { ac_try='test -s conftest.$ac_objext'
27003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004   (eval $ac_try) 2>&5
27005   ac_status=$?
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); }; }; then
27008   ac_cv_type_magic_t=yes
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 ac_cv_type_magic_t=no
27014 fi
27015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27016 fi
27017 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
27018 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
27019 if test $ac_cv_type_magic_t = yes; then
27020
27021
27022 cat >>confdefs.h <<\_ACEOF
27023 #define HAVE_MAGIC_T 1
27024 _ACEOF
27025
27026 fi
27027
27028
27029 echo "$as_me:$LINENO: checking for in_addr_t" >&5
27030 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h.  */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h.  */
27037 #include <sys/types.h>
27038 #if STDC_HEADERS
27039 #include <stdlib.h>
27040 #include <stddef.h>
27041 #endif
27042 #if HAVE_NETINET_IN_H
27043 #include <netinet/in.h>
27044 #endif
27045 int
27046 main ()
27047 {
27048 in_addr_t foo;
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 rm -f conftest.$ac_objext
27054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27055   (eval $ac_compile) 2>conftest.er1
27056   ac_status=$?
27057   grep -v '^ *+' conftest.er1 >conftest.err
27058   rm -f conftest.er1
27059   cat conftest.err >&5
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); } &&
27062          { ac_try='test -z "$ac_c_werror_flag"
27063                          || test ! -s conftest.err'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; } &&
27069          { ac_try='test -s conftest.$ac_objext'
27070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071   (eval $ac_try) 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; }; then
27075
27076 cat >>confdefs.h <<\_ACEOF
27077 #define HAVE_IN_ADDR_T 1
27078 _ACEOF
27079
27080    echo "$as_me:$LINENO: result: yes" >&5
27081 echo "${ECHO_T}yes" >&6
27082 else
27083   echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27085
27086 echo "$as_me:$LINENO: result: no" >&5
27087 echo "${ECHO_T}no" >&6
27088 fi
27089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27090
27091 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
27092 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
27093 cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h.  */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h.  */
27099 #include <netinet/in.h>
27100 int
27101 main ()
27102 {
27103 struct ip_mreq mreq;
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest.$ac_objext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27110   (eval $ac_compile) 2>conftest.er1
27111   ac_status=$?
27112   grep -v '^ *+' conftest.er1 >conftest.err
27113   rm -f conftest.er1
27114   cat conftest.err >&5
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); } &&
27117          { ac_try='test -z "$ac_c_werror_flag"
27118                          || test ! -s conftest.err'
27119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120   (eval $ac_try) 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; } &&
27124          { ac_try='test -s conftest.$ac_objext'
27125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126   (eval $ac_try) 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; }; then
27130
27131 cat >>confdefs.h <<\_ACEOF
27132 #define HAVE_STRUCT_IP_MREQ 1
27133 _ACEOF
27134
27135    echo "$as_me:$LINENO: result: yes" >&5
27136 echo "${ECHO_T}yes" >&6
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 echo "$as_me:$LINENO: result: no" >&5
27142 echo "${ECHO_T}no" >&6
27143 fi
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145
27146 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
27147 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
27148 cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 #include <netinet/in.h>
27155 int
27156 main ()
27157 {
27158 struct ipv6_mreq mreq6;
27159   ;
27160   return 0;
27161 }
27162 _ACEOF
27163 rm -f conftest.$ac_objext
27164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27165   (eval $ac_compile) 2>conftest.er1
27166   ac_status=$?
27167   grep -v '^ *+' conftest.er1 >conftest.err
27168   rm -f conftest.er1
27169   cat conftest.err >&5
27170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171   (exit $ac_status); } &&
27172          { ac_try='test -z "$ac_c_werror_flag"
27173                          || test ! -s conftest.err'
27174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175   (eval $ac_try) 2>&5
27176   ac_status=$?
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); }; } &&
27179          { ac_try='test -s conftest.$ac_objext'
27180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181   (eval $ac_try) 2>&5
27182   ac_status=$?
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); }; }; then
27185
27186 cat >>confdefs.h <<\_ACEOF
27187 #define HAVE_STRUCT_IPV6_MREQ 1
27188 _ACEOF
27189
27190    echo "$as_me:$LINENO: result: yes" >&5
27191 echo "${ECHO_T}yes" >&6
27192 else
27193   echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27195
27196 echo "$as_me:$LINENO: result: no" >&5
27197 echo "${ECHO_T}no" >&6
27198 fi
27199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27200
27201 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27202 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27203 cat >conftest.$ac_ext <<_ACEOF
27204 /* confdefs.h.  */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h.  */
27209 #include <netinet/in.h>
27210 int
27211 main ()
27212 {
27213 struct sockaddr_in6 addr6;
27214   ;
27215   return 0;
27216 }
27217 _ACEOF
27218 rm -f conftest.$ac_objext
27219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27220   (eval $ac_compile) 2>conftest.er1
27221   ac_status=$?
27222   grep -v '^ *+' conftest.er1 >conftest.err
27223   rm -f conftest.er1
27224   cat conftest.err >&5
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); } &&
27227          { ac_try='test -z "$ac_c_werror_flag"
27228                          || test ! -s conftest.err'
27229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230   (eval $ac_try) 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; } &&
27234          { ac_try='test -s conftest.$ac_objext'
27235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236   (eval $ac_try) 2>&5
27237   ac_status=$?
27238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); }; }; then
27240
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_INET6 1
27243 _ACEOF
27244
27245    echo "$as_me:$LINENO: result: yes" >&5
27246 echo "${ECHO_T}yes" >&6
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251 echo "$as_me:$LINENO: result: no" >&5
27252 echo "${ECHO_T}no" >&6
27253 fi
27254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27255
27256 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27257 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27258 cat >conftest.$ac_ext <<_ACEOF
27259 /* confdefs.h.  */
27260 _ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h.  */
27264 #define _POSIX_PII_SOCKET
27265 #include <sys/types.h>
27266 #include <sys/socket.h>
27267 int
27268 main ()
27269 {
27270 socklen_t x = 5;
27271   ;
27272   return 0;
27273 }
27274 _ACEOF
27275 rm -f conftest.$ac_objext
27276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27277   (eval $ac_compile) 2>conftest.er1
27278   ac_status=$?
27279   grep -v '^ *+' conftest.er1 >conftest.err
27280   rm -f conftest.er1
27281   cat conftest.err >&5
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); } &&
27284          { ac_try='test -z "$ac_c_werror_flag"
27285                          || test ! -s conftest.err'
27286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287   (eval $ac_try) 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); }; } &&
27291          { ac_try='test -s conftest.$ac_objext'
27292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293   (eval $ac_try) 2>&5
27294   ac_status=$?
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); }; }; then
27297
27298 cat >>confdefs.h <<\_ACEOF
27299 #define HAVE_SOCKLEN_T 1
27300 _ACEOF
27301
27302    echo "$as_me:$LINENO: result: yes" >&5
27303 echo "${ECHO_T}yes" >&6
27304 else
27305   echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27307
27308 echo "$as_me:$LINENO: result: no" >&5
27309 echo "${ECHO_T}no" >&6
27310 fi
27311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27312
27313 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27314 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27315 cat >conftest.$ac_ext <<_ACEOF
27316 /* confdefs.h.  */
27317 _ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h.  */
27321 #include <time.h>
27322 int
27323 main ()
27324 {
27325 struct tm tim; tim.tm_gmtoff = 0;
27326   ;
27327   return 0;
27328 }
27329 _ACEOF
27330 rm -f conftest.$ac_objext
27331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27332   (eval $ac_compile) 2>conftest.er1
27333   ac_status=$?
27334   grep -v '^ *+' conftest.er1 >conftest.err
27335   rm -f conftest.er1
27336   cat conftest.err >&5
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); } &&
27339          { ac_try='test -z "$ac_c_werror_flag"
27340                          || test ! -s conftest.err'
27341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342   (eval $ac_try) 2>&5
27343   ac_status=$?
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); }; } &&
27346          { ac_try='test -s conftest.$ac_objext'
27347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348   (eval $ac_try) 2>&5
27349   ac_status=$?
27350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351   (exit $ac_status); }; }; then
27352
27353 cat >>confdefs.h <<\_ACEOF
27354 #define STRUCT_TM_HAS_GMTOFF 1
27355 _ACEOF
27356
27357    echo "$as_me:$LINENO: result: yes" >&5
27358 echo "${ECHO_T}yes" >&6
27359 else
27360   echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27362
27363 echo "$as_me:$LINENO: result: no" >&5
27364 echo "${ECHO_T}no" >&6
27365    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27366 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27367                cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373 #include <time.h>
27374 int
27375 main ()
27376 {
27377 void i(){long z2 = 2*timezone;}
27378   ;
27379   return 0;
27380 }
27381 _ACEOF
27382 rm -f conftest.$ac_objext
27383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27384   (eval $ac_compile) 2>conftest.er1
27385   ac_status=$?
27386   grep -v '^ *+' conftest.er1 >conftest.err
27387   rm -f conftest.er1
27388   cat conftest.err >&5
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); } &&
27391          { ac_try='test -z "$ac_c_werror_flag"
27392                          || test ! -s conftest.err'
27393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394   (eval $ac_try) 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; } &&
27398          { ac_try='test -s conftest.$ac_objext'
27399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400   (eval $ac_try) 2>&5
27401   ac_status=$?
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); }; }; then
27404
27405 cat >>confdefs.h <<\_ACEOF
27406 #define HAVE_TIMEZONE 1
27407 _ACEOF
27408
27409       echo "$as_me:$LINENO: result: yes" >&5
27410 echo "${ECHO_T}yes" >&6
27411 else
27412   echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415 echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6
27417        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27418 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27419               cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 #include <time.h>
27426 int
27427 main ()
27428 {
27429 long z2 = _timezone;
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 rm -f conftest.$ac_objext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436   (eval $ac_compile) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } &&
27443          { ac_try='test -z "$ac_c_werror_flag"
27444                          || test ! -s conftest.err'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; } &&
27450          { ac_try='test -s conftest.$ac_objext'
27451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452   (eval $ac_try) 2>&5
27453   ac_status=$?
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); }; }; then
27456
27457 cat >>confdefs.h <<\_ACEOF
27458 #define HAVE_UNDERSCORE_TIMEZONE 1
27459 _ACEOF
27460
27461           echo "$as_me:$LINENO: result: yes" >&5
27462 echo "${ECHO_T}yes" >&6
27463 else
27464   echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27466
27467 echo "$as_me:$LINENO: result: no" >&5
27468 echo "${ECHO_T}no" >&6
27469 fi
27470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27471 fi
27472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27473 fi
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27475
27476 for ac_prog in perl
27477 do
27478   # Extract the first word of "$ac_prog", so it can be a program name with args.
27479 set dummy $ac_prog; ac_word=$2
27480 echo "$as_me:$LINENO: checking for $ac_word" >&5
27481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27482 if test "${ac_cv_prog_PERL+set}" = set; then
27483   echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485   if test -n "$PERL"; then
27486   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27487 else
27488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 for as_dir in $PATH
27490 do
27491   IFS=$as_save_IFS
27492   test -z "$as_dir" && as_dir=.
27493   for ac_exec_ext in '' $ac_executable_extensions; do
27494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27495     ac_cv_prog_PERL="$ac_prog"
27496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27497     break 2
27498   fi
27499 done
27500 done
27501
27502 fi
27503 fi
27504 PERL=$ac_cv_prog_PERL
27505 if test -n "$PERL"; then
27506   echo "$as_me:$LINENO: result: $PERL" >&5
27507 echo "${ECHO_T}$PERL" >&6
27508 else
27509   echo "$as_me:$LINENO: result: no" >&5
27510 echo "${ECHO_T}no" >&6
27511 fi
27512
27513   test -n "$PERL" && break
27514 done
27515 test -n "$PERL" || PERL="false"
27516
27517
27518 SYSDEP_SOURCES=
27519 SIGNAL_HANDLER_AUX=
27520
27521 case "${host}" in
27522  i?86-*-linux*)
27523     SIGNAL_HANDLER=include/i386-signal.h
27524     ;;
27525  sparc*-sun-solaris*)
27526     SIGNAL_HANDLER=include/sparc-signal.h
27527     ;;
27528 # ia64-*)
27529 #    SYSDEP_SOURCES=sysdep/ia64.c
27530 #    test -d sysdep || mkdir sysdep
27531 #    ;;
27532  hppa*-*-linux*)
27533     SIGNAL_HANDLER=include/pa-signal.h
27534     ;;
27535  hppa*-hp-hpux*)
27536     SIGNAL_HANDLER=include/hppa-signal.h
27537     ;;
27538  ia64-*-linux*)
27539     SIGNAL_HANDLER=include/dwarf2-signal.h
27540     ;;
27541  powerpc*-*-linux*)
27542     SIGNAL_HANDLER=include/powerpc-signal.h
27543     ;;
27544  alpha*-*-linux*)
27545     SIGNAL_HANDLER=include/dwarf2-signal.h
27546     ;;
27547  s390*-*-linux*)
27548     SIGNAL_HANDLER=include/s390-signal.h
27549     ;;
27550  x86_64*-*-linux*)
27551     SIGNAL_HANDLER=include/x86_64-signal.h
27552     SIGNAL_HANDLER_AUX=include/i386-signal.h
27553     ;;
27554  sparc*-*-linux*)
27555     SIGNAL_HANDLER=include/dwarf2-signal.h
27556     ;;
27557  sh*-*-linux*)
27558     SIGNAL_HANDLER=include/sh-signal.h
27559     ;;
27560  *mingw*)
27561     SIGNAL_HANDLER=include/win32-signal.h
27562     ;;
27563  mips*-*-linux*)
27564     SIGNAL_HANDLER=include/mips-signal.h
27565     ;;
27566  m68*-*-linux*)
27567     SIGNAL_HANDLER=include/dwarf2-signal.h
27568     ;;
27569  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
27570     SIGNAL_HANDLER=include/darwin-signal.h
27571     ;;
27572  powerpc*-*-aix*)
27573     SIGNAL_HANDLER=include/aix-signal.h
27574     ;;
27575  *)
27576     SIGNAL_HANDLER=include/default-signal.h
27577     ;;
27578 esac
27579
27580 # If we're using sjlj exceptions, forget what we just learned.
27581 if test "$enable_sjlj_exceptions" = yes; then
27582    SIGNAL_HANDLER=include/default-signal.h
27583    SIGNAL_HANDLER_AUX=
27584 fi
27585
27586
27587
27588 if test -z "$SIGNAL_HANDLER_AUX"; then
27589   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27590 fi
27591
27592                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27593
27594
27595 if test "${multilib}" = "yes"; then
27596   multilib_arg="--enable-multilib"
27597 else
27598   multilib_arg=
27599 fi
27600
27601 # See if we support thread-local storage.
27602
27603    # Check whether --enable-tls or --disable-tls was given.
27604 if test "${enable_tls+set}" = set; then
27605   enableval="$enable_tls"
27606
27607       case "$enableval" in
27608        yes|no) ;;
27609        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27610 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27611    { (exit 1); exit 1; }; } ;;
27612       esac
27613
27614 else
27615   enable_tls=yes
27616 fi;
27617
27618   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27619 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27620 if test "${gcc_cv_have_tls+set}" = set; then
27621   echo $ECHO_N "(cached) $ECHO_C" >&6
27622 else
27623
27624     if test "$cross_compiling" = yes; then
27625                 if test x$gcc_no_link = xyes; then
27626   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27628    { (exit 1); exit 1; }; }
27629 fi
27630 cat >conftest.$ac_ext <<_ACEOF
27631 __thread int a; int b; int main() { return a = b; }
27632 _ACEOF
27633 rm -f conftest.$ac_objext conftest$ac_exeext
27634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27635   (eval $ac_link) 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } &&
27642          { ac_try='test -z "$ac_c_werror_flag"
27643                          || test ! -s conftest.err'
27644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645   (eval $ac_try) 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; } &&
27649          { ac_try='test -s conftest$ac_exeext'
27650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651   (eval $ac_try) 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); }; }; then
27655   gcc_cv_have_tls=yes
27656 else
27657   echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27659
27660 gcc_cv_have_tls=no
27661 fi
27662 rm -f conftest.err conftest.$ac_objext \
27663       conftest$ac_exeext conftest.$ac_ext
27664
27665
27666 else
27667   cat >conftest.$ac_ext <<_ACEOF
27668 __thread int a; int b; int main() { return a = b; }
27669 _ACEOF
27670 rm -f conftest$ac_exeext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27672   (eval $ac_link) 2>&5
27673   ac_status=$?
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677   (eval $ac_try) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; }; then
27681                       chktls_save_LDFLAGS="$LDFLAGS"
27682       LDFLAGS="-static $LDFLAGS"
27683       if test x$gcc_no_link = xyes; then
27684   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27686    { (exit 1); exit 1; }; }
27687 fi
27688 cat >conftest.$ac_ext <<_ACEOF
27689 int main() { return 0; }
27690 _ACEOF
27691 rm -f conftest.$ac_objext conftest$ac_exeext
27692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693   (eval $ac_link) 2>conftest.er1
27694   ac_status=$?
27695   grep -v '^ *+' conftest.er1 >conftest.err
27696   rm -f conftest.er1
27697   cat conftest.err >&5
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); } &&
27700          { ac_try='test -z "$ac_c_werror_flag"
27701                          || test ! -s conftest.err'
27702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703   (eval $ac_try) 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); }; } &&
27707          { ac_try='test -s conftest$ac_exeext'
27708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709   (eval $ac_try) 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; }; then
27713   if test "$cross_compiling" = yes; then
27714   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27715 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27717 See \`config.log' for more details." >&5
27718 echo "$as_me: error: cannot run test program while cross compiling
27719 See \`config.log' for more details." >&2;}
27720    { (exit 1); exit 1; }; }; }
27721 else
27722   cat >conftest.$ac_ext <<_ACEOF
27723 __thread int a; int b; int main() { return a = b; }
27724 _ACEOF
27725 rm -f conftest$ac_exeext
27726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27727   (eval $ac_link) 2>&5
27728   ac_status=$?
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732   (eval $ac_try) 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); }; }; then
27736   gcc_cv_have_tls=yes
27737 else
27738   echo "$as_me: program exited with status $ac_status" >&5
27739 echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27741
27742 ( exit $ac_status )
27743 gcc_cv_have_tls=no
27744 fi
27745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27746 fi
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 gcc_cv_have_tls=yes
27752 fi
27753 rm -f conftest.err conftest.$ac_objext \
27754       conftest$ac_exeext conftest.$ac_ext
27755       LDFLAGS="$chktls_save_LDFLAGS"
27756       if test $gcc_cv_have_tls = yes; then
27757                                                 chktls_save_CFLAGS="$CFLAGS"
27758         thread_CFLAGS=failed
27759         for flag in '' '-pthread' '-lpthread'; do
27760           CFLAGS="$flag $chktls_save_CFLAGS"
27761           if test x$gcc_no_link = xyes; then
27762   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27764    { (exit 1); exit 1; }; }
27765 fi
27766 cat >conftest.$ac_ext <<_ACEOF
27767 /* confdefs.h.  */
27768 _ACEOF
27769 cat confdefs.h >>conftest.$ac_ext
27770 cat >>conftest.$ac_ext <<_ACEOF
27771 /* end confdefs.h.  */
27772 #include <pthread.h>
27773                 void *g(void *d) { return NULL; }
27774 int
27775 main ()
27776 {
27777 pthread_t t; pthread_create(&t,NULL,g,NULL);
27778   ;
27779   return 0;
27780 }
27781 _ACEOF
27782 rm -f conftest.$ac_objext conftest$ac_exeext
27783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27784   (eval $ac_link) 2>conftest.er1
27785   ac_status=$?
27786   grep -v '^ *+' conftest.er1 >conftest.err
27787   rm -f conftest.er1
27788   cat conftest.err >&5
27789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790   (exit $ac_status); } &&
27791          { ac_try='test -z "$ac_c_werror_flag"
27792                          || test ! -s conftest.err'
27793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794   (eval $ac_try) 2>&5
27795   ac_status=$?
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); }; } &&
27798          { ac_try='test -s conftest$ac_exeext'
27799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27800   (eval $ac_try) 2>&5
27801   ac_status=$?
27802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803   (exit $ac_status); }; }; then
27804   thread_CFLAGS="$flag"
27805 else
27806   echo "$as_me: failed program was:" >&5
27807 sed 's/^/| /' conftest.$ac_ext >&5
27808
27809 fi
27810 rm -f conftest.err conftest.$ac_objext \
27811       conftest$ac_exeext conftest.$ac_ext
27812           if test "X$thread_CFLAGS" != Xfailed; then
27813             break
27814           fi
27815         done
27816         CFLAGS="$chktls_save_CFLAGS"
27817         if test "X$thread_CFLAGS" != Xfailed; then
27818           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27819           if test "$cross_compiling" = yes; then
27820   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27821 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27823 See \`config.log' for more details." >&5
27824 echo "$as_me: error: cannot run test program while cross compiling
27825 See \`config.log' for more details." >&2;}
27826    { (exit 1); exit 1; }; }; }
27827 else
27828   cat >conftest.$ac_ext <<_ACEOF
27829 /* confdefs.h.  */
27830 _ACEOF
27831 cat confdefs.h >>conftest.$ac_ext
27832 cat >>conftest.$ac_ext <<_ACEOF
27833 /* end confdefs.h.  */
27834 #include <pthread.h>
27835                 __thread int a;
27836                 static int *a_in_other_thread;
27837                 static void *
27838                 thread_func (void *arg)
27839                 {
27840                   a_in_other_thread = &a;
27841                   return (void *)0;
27842                 }
27843 int
27844 main ()
27845 {
27846 pthread_t thread;
27847                 void *thread_retval;
27848                 int *a_in_main_thread;
27849                 if (pthread_create (&thread, (pthread_attr_t *)0,
27850                                     thread_func, (void *)0))
27851                   return 0;
27852                 a_in_main_thread = &a;
27853                 if (pthread_join (thread, &thread_retval))
27854                   return 0;
27855                 return (a_in_other_thread == a_in_main_thread);
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 rm -f conftest$ac_exeext
27861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27862   (eval $ac_link) 2>&5
27863   ac_status=$?
27864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867   (eval $ac_try) 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; }; then
27871   gcc_cv_have_tls=yes
27872 else
27873   echo "$as_me: program exited with status $ac_status" >&5
27874 echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27876
27877 ( exit $ac_status )
27878 gcc_cv_have_tls=no
27879 fi
27880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27881 fi
27882           CFLAGS="$chktls_save_CFLAGS"
27883         fi
27884       fi
27885 else
27886   echo "$as_me: program exited with status $ac_status" >&5
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890 ( exit $ac_status )
27891 gcc_cv_have_tls=no
27892 fi
27893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27894 fi
27895 fi
27896 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27897 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27898   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27899
27900 cat >>confdefs.h <<\_ACEOF
27901 #define HAVE_TLS 1
27902 _ACEOF
27903
27904   fi
27905
27906 # For _Unwind_GetIPInfo.
27907
27908
27909 # Check whether --with-system-libunwind or --without-system-libunwind was given.
27910 if test "${with_system_libunwind+set}" = set; then
27911   withval="$with_system_libunwind"
27912
27913 fi;
27914   # If system-libunwind was not specifically set, pick a default setting.
27915   if test x$with_system_libunwind = x; then
27916     case ${target} in
27917       ia64-*-hpux*) with_system_libunwind=yes ;;
27918       *) with_system_libunwind=no ;;
27919     esac
27920   fi
27921   # Based on system-libunwind and target, do we have ipinfo?
27922   if  test x$with_system_libunwind = xyes; then
27923     case ${target} in
27924       ia64-*-*) have_unwind_getipinfo=no ;;
27925       *) have_unwind_getipinfo=yes ;;
27926     esac
27927   else
27928     # Darwin before version 9 does not have _Unwind_GetIPInfo.
27929
27930     case ${target} in
27931       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
27932       *) have_unwind_getipinfo=yes ;;
27933     esac
27934
27935   fi
27936
27937   if test x$have_unwind_getipinfo = xyes; then
27938
27939 cat >>confdefs.h <<\_ACEOF
27940 #define HAVE_GETIPINFO 1
27941 _ACEOF
27942
27943   fi
27944
27945
27946 # See if linker supports anonymous version scripts.
27947 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27948 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27949 if test "${libjava_cv_anon_version_script+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27953    libjava_cv_anon_version_script=no
27954    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27955    echo '{ global: globalsymb*; local: *; };' > conftest.map
27956    if test x$gcc_no_link = xyes; then
27957   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27959    { (exit 1); exit 1; }; }
27960 fi
27961 cat >conftest.$ac_ext <<_ACEOF
27962 /* confdefs.h.  */
27963 _ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h.  */
27967 void globalsymbol (void) {} void localsymbol (void) {}
27968 int
27969 main ()
27970 {
27971
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978   (eval $ac_link) 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag"
27986                          || test ! -s conftest.err'
27987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988   (eval $ac_try) 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; }; then
27998   libjava_cv_anon_version_script=yes
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 fi
28004 rm -f conftest.err conftest.$ac_objext \
28005       conftest$ac_exeext conftest.$ac_ext
28006    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
28007
28008 fi
28009 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
28010 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
28011
28012
28013 if test "$libjava_cv_anon_version_script" = yes; then
28014   ANONVERSCRIPT_TRUE=
28015   ANONVERSCRIPT_FALSE='#'
28016 else
28017   ANONVERSCRIPT_TRUE='#'
28018   ANONVERSCRIPT_FALSE=
28019 fi
28020
28021
28022 # Check if linker supports static linking on a per library basis
28023 LD_START_STATIC_SPEC=
28024 LD_FINISH_STATIC_SPEC=
28025 if $LD --help 2>&1 | grep -q -e -call_shared ; then
28026   if $LD --help 2>&1 | grep -q -e -non_shared ; then
28027     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
28028     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
28029   fi
28030 fi
28031
28032
28033
28034 here=`${PWDCMD-pwd}`
28035
28036
28037 # We get this from the environment.
28038
28039
28040
28041 # Check whether --with-python-dir or --without-python-dir was given.
28042 if test "${with_python_dir+set}" = set; then
28043   withval="$with_python_dir"
28044   with_python_dir=$withval
28045 else
28046   with_python_dir=""
28047 fi;
28048
28049 if test "x${with_python_dir}" = "x"
28050 then
28051   # Needed for installing Python modules during make install.
28052   python_mod_dir="\${prefix}/share/python"
28053   # Needed for substituting into aot-compile*
28054   python_mod_dir_expanded="${prefix}/share/python"
28055 else
28056   python_mod_dir="\${prefix}${with_python_dir}"
28057   python_mod_dir_expanded="${prefix}${with_python_dir}"
28058 fi
28059 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
28060 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
28061
28062
28063
28064 # needed for aot-compile-rpm
28065 MAKE=`which make`
28066
28067
28068 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
28069 if test "${enable_aot_compile_rpm+set}" = set; then
28070   enableval="$enable_aot_compile_rpm"
28071   case "${enableval}" in
28072     yes) AOT_RPM_ENABLED=yes ;;
28073     no)  AOT_RPM_ENABLED=no ;;
28074     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
28075 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
28076    { (exit 1); exit 1; }; } ;;
28077   esac
28078 else
28079   AOT_RPM_ENABLED=no
28080
28081 fi;
28082
28083
28084 if test "x${AOT_RPM_ENABLED}" = xyes; then
28085   INSTALL_AOT_RPM_TRUE=
28086   INSTALL_AOT_RPM_FALSE='#'
28087 else
28088   INSTALL_AOT_RPM_TRUE='#'
28089   INSTALL_AOT_RPM_FALSE=
28090 fi
28091
28092
28093 # Check whether --enable-java-home or --disable-java-home was given.
28094 if test "${enable_java_home+set}" = set; then
28095   enableval="$enable_java_home"
28096   case "${enableval}" in
28097     yes) JAVA_HOME_ENABLED=yes ;;
28098     no)  JAVA_HOME_ENABLED=no ;;
28099     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
28100 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
28101    { (exit 1); exit 1; }; } ;;
28102   esac
28103 else
28104   JAVA_HOME_ENABLED=no
28105
28106 fi;
28107
28108
28109 if test "x${JAVA_HOME_ENABLED}" = xyes; then
28110   CREATE_JAVA_HOME_TRUE=
28111   CREATE_JAVA_HOME_FALSE='#'
28112 else
28113   CREATE_JAVA_HOME_TRUE='#'
28114   CREATE_JAVA_HOME_FALSE=
28115 fi
28116
28117
28118 # Only do these checks if java-home above is enabled.
28119 if test "x${JAVA_HOME_ENABLED}" = xyes
28120 then
28121
28122
28123 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28124 if test "${with_gcc_suffix+set}" = set; then
28125   withval="$with_gcc_suffix"
28126   gcc_suffix=$withval
28127 else
28128   gcc_suffix=""
28129 fi;
28130   echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28131 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28132
28133
28134
28135 # Check whether --with-arch-directory or --without-arch-directory was given.
28136 if test "${with_arch_directory+set}" = set; then
28137   withval="$with_arch_directory"
28138   host_cpu=$withval
28139 else
28140   host_cpu=""
28141 fi;
28142
28143
28144 # Check whether --with-os-directory or --without-os-directory was given.
28145 if test "${with_os_directory+set}" = set; then
28146   withval="$with_os_directory"
28147   host_os=$withval
28148 else
28149   host_os=""
28150 fi;
28151
28152
28153 # Check whether --with-origin-name or --without-origin-name was given.
28154 if test "${with_origin_name+set}" = set; then
28155   withval="$with_origin_name"
28156   origin_name=$withval
28157 else
28158   origin_name=gcj${gcc_suffix}
28159 fi;
28160   echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28161 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28162
28163
28164 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28165 if test "${with_arch_suffix+set}" = set; then
28166   withval="$with_arch_suffix"
28167   arch_suffix=$withval
28168 else
28169   arch_suffix=""
28170 fi;
28171   echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28172 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28173
28174
28175 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28176 if test "${with_jvm_root_dir+set}" = set; then
28177   withval="$with_jvm_root_dir"
28178   jvm_root_dir=$withval
28179 else
28180   jvm_root_dir="\${prefix}/lib/jvm"
28181 fi;
28182   echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28183 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28184
28185
28186 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28187 if test "${with_jvm_jar_dir+set}" = set; then
28188   withval="$with_jvm_jar_dir"
28189   jvm_jar_dir=$withval
28190 else
28191   jvm_jar_dir=\${prefix}/lib/jvm-exports
28192 fi;
28193   echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28194 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28195
28196   JAVA_VERSION=1.5.0
28197   BUILD_VERSION=0
28198
28199
28200   echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28201 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28202
28203   jre_dir=jre
28204   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28205   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28206
28207   JVM_ROOT_DIR=${jvm_root_dir}
28208
28209   echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28210 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28211
28212   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28213
28214   echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28215 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28216
28217   JVM_JAR_DIR=${jvm_jar_dir}
28218
28219   echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28220 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28221
28222   JRE_DIR=${jre_dir}
28223
28224
28225   JRE_LNK=${jre_lnk}
28226
28227
28228   SDK_LNK=${sdk_lnk}
28229
28230
28231   SDK_BIN_DIR=${jvm_root_dir}/bin
28232
28233   echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28234 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28235
28236   SDK_LIB_DIR=${jvm_root_dir}/lib
28237
28238   echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28239 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28240
28241   SDK_INCLUDE_DIR=${jvm_root_dir}/include
28242
28243   echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28244 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28245
28246   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28247
28248   echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28249 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28250
28251   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28252
28253   echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28254 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28255
28256   # Find gcj prefix using gcj found in PATH.
28257   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28258
28259   # Where do the gcj binaries live?
28260   # For jhbuild based builds, they all live in a sibling of bin called
28261   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
28262   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28263
28264   echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28265 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28266
28267   echo "$as_me:$LINENO: result: host is ${host}" >&5
28268 echo "${ECHO_T}host is ${host}" >&6
28269   if test "x${host_cpu}" = "x"
28270   then
28271     case ${host} in
28272       *-mingw* | *-cygwin*)
28273         host_cpu=x86;;
28274       i486-* | i586-* | i686-*)
28275         host_cpu=i386;;
28276       x86_64-*)
28277         host_cpu=amd64;;
28278       *)
28279         host_cpu=${host_cpu};;
28280     esac
28281   fi
28282   echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28283 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28284   CPU=${host_cpu}
28285
28286
28287   if test "x${host_os}" = "x"
28288   then
28289     case ${host} in
28290       *-mingw* | *-cygwin*)
28291         host_os=win32;;
28292       *-linux*)
28293         host_os=linux;;
28294       *)
28295         host_os=${host_os};;
28296     esac
28297   fi
28298   echo os directory: ${host_os}
28299   OS=${host_os}
28300
28301
28302   # make an expanded $libdir, for substituting into
28303   # scripts (and other non-Makefile things).
28304   LIBDIR=$libdir
28305   if test "x${exec_prefix}" = "xNONE"
28306   then
28307       lib_exec_prefix=$prefix
28308   else
28309       lib_exec_prefix=$exec_prefix
28310   fi
28311   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28312
28313 fi
28314
28315                                                                                                                         ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
28316
28317
28318 if test ${multilib} = yes; then
28319   multilib_arg="--enable-multilib"
28320 else
28321   multilib_arg=
28322 fi
28323
28324           ac_config_files="$ac_config_files scripts/jar"
28325
28326 cat >confcache <<\_ACEOF
28327 # This file is a shell script that caches the results of configure
28328 # tests run on this system so they can be shared between configure
28329 # scripts and configure runs, see configure's option --config-cache.
28330 # It is not useful on other systems.  If it contains results you don't
28331 # want to keep, you may remove or edit it.
28332 #
28333 # config.status only pays attention to the cache file if you give it
28334 # the --recheck option to rerun configure.
28335 #
28336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28338 # following values.
28339
28340 _ACEOF
28341
28342 # The following way of writing the cache mishandles newlines in values,
28343 # but we know of no workaround that is simple, portable, and efficient.
28344 # So, don't put newlines in cache variables' values.
28345 # Ultrix sh set writes to stderr and can't be redirected directly,
28346 # and sets the high bit in the cache file unless we assign to the vars.
28347 {
28348   (set) 2>&1 |
28349     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28350     *ac_space=\ *)
28351       # `set' does not quote correctly, so add quotes (double-quote
28352       # substitution turns \\\\ into \\, and sed turns \\ into \).
28353       sed -n \
28354         "s/'/'\\\\''/g;
28355           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28356       ;;
28357     *)
28358       # `set' quotes correctly as required by POSIX, so do not add quotes.
28359       sed -n \
28360         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28361       ;;
28362     esac;
28363 } |
28364   sed '
28365      t clear
28366      : clear
28367      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28368      t end
28369      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28370      : end' >>confcache
28371 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28372   if test -w $cache_file; then
28373     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28374     cat confcache >$cache_file
28375   else
28376     echo "not updating unwritable cache $cache_file"
28377   fi
28378 fi
28379 rm -f confcache
28380
28381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28382 # Let make expand exec_prefix.
28383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28384
28385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28387 # trailing colons and then remove the whole line if VPATH becomes empty
28388 # (actually we leave an empty line to preserve line numbers).
28389 if test "x$srcdir" = x.; then
28390   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28391 s/:*\$(srcdir):*/:/;
28392 s/:*\${srcdir}:*/:/;
28393 s/:*@srcdir@:*/:/;
28394 s/^\([^=]*=[     ]*\):*/\1/;
28395 s/:*$//;
28396 s/^[^=]*=[       ]*$//;
28397 }'
28398 fi
28399
28400 DEFS=-DHAVE_CONFIG_H
28401
28402 ac_libobjs=
28403 ac_ltlibobjs=
28404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28405   # 1. Remove the extension, and $U if already installed.
28406   ac_i=`echo "$ac_i" |
28407          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28408   # 2. Add them.
28409   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28410   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28411 done
28412 LIBOBJS=$ac_libobjs
28413
28414 LTLIBOBJS=$ac_ltlibobjs
28415
28416
28417 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
28418   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
28419 Usually this means the macro was only invoked conditionally." >&5
28420 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
28421 Usually this means the macro was only invoked conditionally." >&2;}
28422    { (exit 1); exit 1; }; }
28423 fi
28424 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28425   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28426 Usually this means the macro was only invoked conditionally." >&5
28427 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28428 Usually this means the macro was only invoked conditionally." >&2;}
28429    { (exit 1); exit 1; }; }
28430 fi
28431 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28432   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28433 Usually this means the macro was only invoked conditionally." >&5
28434 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28435 Usually this means the macro was only invoked conditionally." >&2;}
28436    { (exit 1); exit 1; }; }
28437 fi
28438 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28439   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28440 Usually this means the macro was only invoked conditionally." >&5
28441 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28442 Usually this means the macro was only invoked conditionally." >&2;}
28443    { (exit 1); exit 1; }; }
28444 fi
28445 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28446   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28447 Usually this means the macro was only invoked conditionally." >&5
28448 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28449 Usually this means the macro was only invoked conditionally." >&2;}
28450    { (exit 1); exit 1; }; }
28451 fi
28452 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28453   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28454 Usually this means the macro was only invoked conditionally." >&5
28455 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28456 Usually this means the macro was only invoked conditionally." >&2;}
28457    { (exit 1); exit 1; }; }
28458 fi
28459 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28460   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28461 Usually this means the macro was only invoked conditionally." >&5
28462 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28463 Usually this means the macro was only invoked conditionally." >&2;}
28464    { (exit 1); exit 1; }; }
28465 fi
28466 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28467   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28468 Usually this means the macro was only invoked conditionally." >&5
28469 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28470 Usually this means the macro was only invoked conditionally." >&2;}
28471    { (exit 1); exit 1; }; }
28472 fi
28473 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28474   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28475 Usually this means the macro was only invoked conditionally." >&5
28476 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28477 Usually this means the macro was only invoked conditionally." >&2;}
28478    { (exit 1); exit 1; }; }
28479 fi
28480 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28481   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28482 Usually this means the macro was only invoked conditionally." >&5
28483 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28484 Usually this means the macro was only invoked conditionally." >&2;}
28485    { (exit 1); exit 1; }; }
28486 fi
28487 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28488   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28489 Usually this means the macro was only invoked conditionally." >&5
28490 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28491 Usually this means the macro was only invoked conditionally." >&2;}
28492    { (exit 1); exit 1; }; }
28493 fi
28494 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28495   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28496 Usually this means the macro was only invoked conditionally." >&5
28497 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28498 Usually this means the macro was only invoked conditionally." >&2;}
28499    { (exit 1); exit 1; }; }
28500 fi
28501 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28502   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28503 Usually this means the macro was only invoked conditionally." >&5
28504 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28505 Usually this means the macro was only invoked conditionally." >&2;}
28506    { (exit 1); exit 1; }; }
28507 fi
28508 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28509   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28510 Usually this means the macro was only invoked conditionally." >&5
28511 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28512 Usually this means the macro was only invoked conditionally." >&2;}
28513    { (exit 1); exit 1; }; }
28514 fi
28515 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28516   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28517 Usually this means the macro was only invoked conditionally." >&5
28518 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28519 Usually this means the macro was only invoked conditionally." >&2;}
28520    { (exit 1); exit 1; }; }
28521 fi
28522 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28523   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28524 Usually this means the macro was only invoked conditionally." >&5
28525 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28526 Usually this means the macro was only invoked conditionally." >&2;}
28527    { (exit 1); exit 1; }; }
28528 fi
28529 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28530   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28531 Usually this means the macro was only invoked conditionally." >&5
28532 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28533 Usually this means the macro was only invoked conditionally." >&2;}
28534    { (exit 1); exit 1; }; }
28535 fi
28536 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28537   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28538 Usually this means the macro was only invoked conditionally." >&5
28539 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28540 Usually this means the macro was only invoked conditionally." >&2;}
28541    { (exit 1); exit 1; }; }
28542 fi
28543 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28544   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28545 Usually this means the macro was only invoked conditionally." >&5
28546 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28547 Usually this means the macro was only invoked conditionally." >&2;}
28548    { (exit 1); exit 1; }; }
28549 fi
28550 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28551   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28552 Usually this means the macro was only invoked conditionally." >&5
28553 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28554 Usually this means the macro was only invoked conditionally." >&2;}
28555    { (exit 1); exit 1; }; }
28556 fi
28557 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28558   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28559 Usually this means the macro was only invoked conditionally." >&5
28560 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28561 Usually this means the macro was only invoked conditionally." >&2;}
28562    { (exit 1); exit 1; }; }
28563 fi
28564 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28565   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28566 Usually this means the macro was only invoked conditionally." >&5
28567 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28568 Usually this means the macro was only invoked conditionally." >&2;}
28569    { (exit 1); exit 1; }; }
28570 fi
28571 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28572   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28573 Usually this means the macro was only invoked conditionally." >&5
28574 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28575 Usually this means the macro was only invoked conditionally." >&2;}
28576    { (exit 1); exit 1; }; }
28577 fi
28578 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28579   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28580 Usually this means the macro was only invoked conditionally." >&5
28581 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28582 Usually this means the macro was only invoked conditionally." >&2;}
28583    { (exit 1); exit 1; }; }
28584 fi
28585 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28586   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28587 Usually this means the macro was only invoked conditionally." >&5
28588 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28589 Usually this means the macro was only invoked conditionally." >&2;}
28590    { (exit 1); exit 1; }; }
28591 fi
28592 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28593   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28594 Usually this means the macro was only invoked conditionally." >&5
28595 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28596 Usually this means the macro was only invoked conditionally." >&2;}
28597    { (exit 1); exit 1; }; }
28598 fi
28599 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28600   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28601 Usually this means the macro was only invoked conditionally." >&5
28602 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28603 Usually this means the macro was only invoked conditionally." >&2;}
28604    { (exit 1); exit 1; }; }
28605 fi
28606 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28607   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28608 Usually this means the macro was only invoked conditionally." >&5
28609 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28610 Usually this means the macro was only invoked conditionally." >&2;}
28611    { (exit 1); exit 1; }; }
28612 fi
28613 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28614   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28615 Usually this means the macro was only invoked conditionally." >&5
28616 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28617 Usually this means the macro was only invoked conditionally." >&2;}
28618    { (exit 1); exit 1; }; }
28619 fi
28620 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28621   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28622 Usually this means the macro was only invoked conditionally." >&5
28623 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28624 Usually this means the macro was only invoked conditionally." >&2;}
28625    { (exit 1); exit 1; }; }
28626 fi
28627 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28628   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28629 Usually this means the macro was only invoked conditionally." >&5
28630 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28631 Usually this means the macro was only invoked conditionally." >&2;}
28632    { (exit 1); exit 1; }; }
28633 fi
28634 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
28635   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
28636 Usually this means the macro was only invoked conditionally." >&5
28637 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
28638 Usually this means the macro was only invoked conditionally." >&2;}
28639    { (exit 1); exit 1; }; }
28640 fi
28641 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28642   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28643 Usually this means the macro was only invoked conditionally." >&5
28644 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28645 Usually this means the macro was only invoked conditionally." >&2;}
28646    { (exit 1); exit 1; }; }
28647 fi
28648 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28649   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28650 Usually this means the macro was only invoked conditionally." >&5
28651 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28652 Usually this means the macro was only invoked conditionally." >&2;}
28653    { (exit 1); exit 1; }; }
28654 fi
28655 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28656   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28657 Usually this means the macro was only invoked conditionally." >&5
28658 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28659 Usually this means the macro was only invoked conditionally." >&2;}
28660    { (exit 1); exit 1; }; }
28661 fi
28662
28663 : ${CONFIG_STATUS=./config.status}
28664 ac_clean_files_save=$ac_clean_files
28665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28666 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28667 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28668 cat >$CONFIG_STATUS <<_ACEOF
28669 #! $SHELL
28670 # Generated by $as_me.
28671 # Run this file to recreate the current configuration.
28672 # Compiler output produced by configure, useful for debugging
28673 # configure, is in config.log if it exists.
28674
28675 debug=false
28676 ac_cs_recheck=false
28677 ac_cs_silent=false
28678 SHELL=\${CONFIG_SHELL-$SHELL}
28679 _ACEOF
28680
28681 cat >>$CONFIG_STATUS <<\_ACEOF
28682 ## --------------------- ##
28683 ## M4sh Initialization.  ##
28684 ## --------------------- ##
28685
28686 # Be Bourne compatible
28687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28688   emulate sh
28689   NULLCMD=:
28690   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28691   # is contrary to our usage.  Disable this feature.
28692   alias -g '${1+"$@"}'='"$@"'
28693 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28694   set -o posix
28695 fi
28696 DUALCASE=1; export DUALCASE # for MKS sh
28697
28698 # Support unset when possible.
28699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28700   as_unset=unset
28701 else
28702   as_unset=false
28703 fi
28704
28705
28706 # Work around bugs in pre-3.0 UWIN ksh.
28707 $as_unset ENV MAIL MAILPATH
28708 PS1='$ '
28709 PS2='> '
28710 PS4='+ '
28711
28712 # NLS nuisances.
28713 for as_var in \
28714   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28715   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28716   LC_TELEPHONE LC_TIME
28717 do
28718   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28719     eval $as_var=C; export $as_var
28720   else
28721     $as_unset $as_var
28722   fi
28723 done
28724
28725 # Required to use basename.
28726 if expr a : '\(a\)' >/dev/null 2>&1; then
28727   as_expr=expr
28728 else
28729   as_expr=false
28730 fi
28731
28732 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28733   as_basename=basename
28734 else
28735   as_basename=false
28736 fi
28737
28738
28739 # Name of the executable.
28740 as_me=`$as_basename "$0" ||
28741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28742          X"$0" : 'X\(//\)$' \| \
28743          X"$0" : 'X\(/\)$' \| \
28744          .     : '\(.\)' 2>/dev/null ||
28745 echo X/"$0" |
28746     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28747           /^X\/\(\/\/\)$/{ s//\1/; q; }
28748           /^X\/\(\/\).*/{ s//\1/; q; }
28749           s/.*/./; q'`
28750
28751
28752 # PATH needs CR, and LINENO needs CR and PATH.
28753 # Avoid depending upon Character Ranges.
28754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28757 as_cr_digits='0123456789'
28758 as_cr_alnum=$as_cr_Letters$as_cr_digits
28759
28760 # The user is always right.
28761 if test "${PATH_SEPARATOR+set}" != set; then
28762   echo "#! /bin/sh" >conf$$.sh
28763   echo  "exit 0"   >>conf$$.sh
28764   chmod +x conf$$.sh
28765   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28766     PATH_SEPARATOR=';'
28767   else
28768     PATH_SEPARATOR=:
28769   fi
28770   rm -f conf$$.sh
28771 fi
28772
28773
28774   as_lineno_1=$LINENO
28775   as_lineno_2=$LINENO
28776   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28777   test "x$as_lineno_1" != "x$as_lineno_2" &&
28778   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28779   # Find who we are.  Look in the path if we contain no path at all
28780   # relative or not.
28781   case $0 in
28782     *[\\/]* ) as_myself=$0 ;;
28783     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28784 for as_dir in $PATH
28785 do
28786   IFS=$as_save_IFS
28787   test -z "$as_dir" && as_dir=.
28788   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28789 done
28790
28791        ;;
28792   esac
28793   # We did not find ourselves, most probably we were run as `sh COMMAND'
28794   # in which case we are not to be found in the path.
28795   if test "x$as_myself" = x; then
28796     as_myself=$0
28797   fi
28798   if test ! -f "$as_myself"; then
28799     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28800 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28801    { (exit 1); exit 1; }; }
28802   fi
28803   case $CONFIG_SHELL in
28804   '')
28805     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28806 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28807 do
28808   IFS=$as_save_IFS
28809   test -z "$as_dir" && as_dir=.
28810   for as_base in sh bash ksh sh5; do
28811          case $as_dir in
28812          /*)
28813            if ("$as_dir/$as_base" -c '
28814   as_lineno_1=$LINENO
28815   as_lineno_2=$LINENO
28816   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28817   test "x$as_lineno_1" != "x$as_lineno_2" &&
28818   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28819              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28820              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28821              CONFIG_SHELL=$as_dir/$as_base
28822              export CONFIG_SHELL
28823              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28824            fi;;
28825          esac
28826        done
28827 done
28828 ;;
28829   esac
28830
28831   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28832   # uniformly replaced by the line number.  The first 'sed' inserts a
28833   # line-number line before each line; the second 'sed' does the real
28834   # work.  The second script uses 'N' to pair each line-number line
28835   # with the numbered line, and appends trailing '-' during
28836   # substitution so that $LINENO is not a special case at line end.
28837   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28838   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28839   sed '=' <$as_myself |
28840     sed '
28841       N
28842       s,$,-,
28843       : loop
28844       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28845       t loop
28846       s,-$,,
28847       s,^['$as_cr_digits']*\n,,
28848     ' >$as_me.lineno &&
28849   chmod +x $as_me.lineno ||
28850     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28851 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28852    { (exit 1); exit 1; }; }
28853
28854   # Don't try to exec as it changes $[0], causing all sort of problems
28855   # (the dirname of $[0] is not the place where we might find the
28856   # original and so on.  Autoconf is especially sensible to this).
28857   . ./$as_me.lineno
28858   # Exit status is that of the last command.
28859   exit
28860 }
28861
28862
28863 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28864   *c*,-n*) ECHO_N= ECHO_C='
28865 ' ECHO_T='      ' ;;
28866   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28867   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28868 esac
28869
28870 if expr a : '\(a\)' >/dev/null 2>&1; then
28871   as_expr=expr
28872 else
28873   as_expr=false
28874 fi
28875
28876 rm -f conf$$ conf$$.exe conf$$.file
28877 echo >conf$$.file
28878 if ln -s conf$$.file conf$$ 2>/dev/null; then
28879   # We could just check for DJGPP; but this test a) works b) is more generic
28880   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28881   if test -f conf$$.exe; then
28882     # Don't use ln at all; we don't have any links
28883     as_ln_s='cp -p'
28884   else
28885     as_ln_s='ln -s'
28886   fi
28887 elif ln conf$$.file conf$$ 2>/dev/null; then
28888   as_ln_s=ln
28889 else
28890   as_ln_s='cp -p'
28891 fi
28892 rm -f conf$$ conf$$.exe conf$$.file
28893
28894 if mkdir -p . 2>/dev/null; then
28895   as_mkdir_p=:
28896 else
28897   test -d ./-p && rmdir ./-p
28898   as_mkdir_p=false
28899 fi
28900
28901 as_executable_p="test -f"
28902
28903 # Sed expression to map a string onto a valid CPP name.
28904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28905
28906 # Sed expression to map a string onto a valid variable name.
28907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28908
28909
28910 # IFS
28911 # We need space, tab and new line, in precisely that order.
28912 as_nl='
28913 '
28914 IFS="   $as_nl"
28915
28916 # CDPATH.
28917 $as_unset CDPATH
28918
28919 exec 6>&1
28920
28921 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28922 # report actual input values of CONFIG_FILES etc. instead of their
28923 # values after options handling.  Logging --version etc. is OK.
28924 exec 5>>config.log
28925 {
28926   echo
28927   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28928 ## Running $as_me. ##
28929 _ASBOX
28930 } >&5
28931 cat >&5 <<_CSEOF
28932
28933 This file was extended by libjava $as_me version-unused, which was
28934 generated by GNU Autoconf 2.59.  Invocation command line was
28935
28936   CONFIG_FILES    = $CONFIG_FILES
28937   CONFIG_HEADERS  = $CONFIG_HEADERS
28938   CONFIG_LINKS    = $CONFIG_LINKS
28939   CONFIG_COMMANDS = $CONFIG_COMMANDS
28940   $ $0 $@
28941
28942 _CSEOF
28943 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28944 echo >&5
28945 _ACEOF
28946
28947 # Files that config.status was made for.
28948 if test -n "$ac_config_files"; then
28949   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28950 fi
28951
28952 if test -n "$ac_config_headers"; then
28953   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28954 fi
28955
28956 if test -n "$ac_config_links"; then
28957   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28958 fi
28959
28960 if test -n "$ac_config_commands"; then
28961   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28962 fi
28963
28964 cat >>$CONFIG_STATUS <<\_ACEOF
28965
28966 ac_cs_usage="\
28967 \`$as_me' instantiates files from templates according to the
28968 current configuration.
28969
28970 Usage: $0 [OPTIONS] [FILE]...
28971
28972   -h, --help       print this help, then exit
28973   -V, --version    print version number, then exit
28974   -q, --quiet      do not print progress messages
28975   -d, --debug      don't remove temporary files
28976       --recheck    update $as_me by reconfiguring in the same conditions
28977   --file=FILE[:TEMPLATE]
28978                    instantiate the configuration file FILE
28979   --header=FILE[:TEMPLATE]
28980                    instantiate the configuration header FILE
28981
28982 Configuration files:
28983 $config_files
28984
28985 Configuration headers:
28986 $config_headers
28987
28988 Configuration links:
28989 $config_links
28990
28991 Configuration commands:
28992 $config_commands
28993
28994 Report bugs to <bug-autoconf@gnu.org>."
28995 _ACEOF
28996
28997 cat >>$CONFIG_STATUS <<_ACEOF
28998 ac_cs_version="\\
28999 libjava config.status version-unused
29000 configured by $0, generated by GNU Autoconf 2.59,
29001   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29002
29003 Copyright (C) 2003 Free Software Foundation, Inc.
29004 This config.status script is free software; the Free Software Foundation
29005 gives unlimited permission to copy, distribute and modify it."
29006 srcdir=$srcdir
29007 INSTALL="$INSTALL"
29008 _ACEOF
29009
29010 cat >>$CONFIG_STATUS <<\_ACEOF
29011 # If no file are specified by the user, then we need to provide default
29012 # value.  By we need to know if files were specified by the user.
29013 ac_need_defaults=:
29014 while test $# != 0
29015 do
29016   case $1 in
29017   --*=*)
29018     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29019     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29020     ac_shift=:
29021     ;;
29022   -*)
29023     ac_option=$1
29024     ac_optarg=$2
29025     ac_shift=shift
29026     ;;
29027   *) # This is not an option, so the user has probably given explicit
29028      # arguments.
29029      ac_option=$1
29030      ac_need_defaults=false;;
29031   esac
29032
29033   case $ac_option in
29034   # Handling of the options.
29035 _ACEOF
29036 cat >>$CONFIG_STATUS <<\_ACEOF
29037   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29038     ac_cs_recheck=: ;;
29039   --version | --vers* | -V )
29040     echo "$ac_cs_version"; exit 0 ;;
29041   --he | --h)
29042     # Conflict between --help and --header
29043     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29044 Try \`$0 --help' for more information." >&5
29045 echo "$as_me: error: ambiguous option: $1
29046 Try \`$0 --help' for more information." >&2;}
29047    { (exit 1); exit 1; }; };;
29048   --help | --hel | -h )
29049     echo "$ac_cs_usage"; exit 0 ;;
29050   --debug | --d* | -d )
29051     debug=: ;;
29052   --file | --fil | --fi | --f )
29053     $ac_shift
29054     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29055     ac_need_defaults=false;;
29056   --header | --heade | --head | --hea )
29057     $ac_shift
29058     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29059     ac_need_defaults=false;;
29060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29061   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29062     ac_cs_silent=: ;;
29063
29064   # This is an error.
29065   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29066 Try \`$0 --help' for more information." >&5
29067 echo "$as_me: error: unrecognized option: $1
29068 Try \`$0 --help' for more information." >&2;}
29069    { (exit 1); exit 1; }; } ;;
29070
29071   *) ac_config_targets="$ac_config_targets $1" ;;
29072
29073   esac
29074   shift
29075 done
29076
29077 ac_configure_extra_args=
29078
29079 if $ac_cs_silent; then
29080   exec 6>/dev/null
29081   ac_configure_extra_args="$ac_configure_extra_args --silent"
29082 fi
29083
29084 _ACEOF
29085 cat >>$CONFIG_STATUS <<_ACEOF
29086 if \$ac_cs_recheck; then
29087   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29088   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29089 fi
29090
29091 _ACEOF
29092
29093 cat >>$CONFIG_STATUS <<_ACEOF
29094 #
29095 # INIT-COMMANDS section.
29096 #
29097
29098
29099 srcdir="$srcdir"
29100 host="$host"
29101 target="$target"
29102 with_multisubdir="$with_multisubdir"
29103 with_multisrctop="$with_multisrctop"
29104 with_target_subdir="$with_target_subdir"
29105 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29106 multi_basedir="$multi_basedir"
29107 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29108 CC="$CC"
29109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29110
29111
29112 # The HP-UX ksh and POSIX shell print the target directory to stdout
29113 # if CDPATH is set.
29114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29115
29116 sed_quote_subst='$sed_quote_subst'
29117 double_quote_subst='$double_quote_subst'
29118 delay_variable_subst='$delay_variable_subst'
29119 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29120 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29121 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29122 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29123 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29124 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29125 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29126 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29127 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29128 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29129 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29130 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29131 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29132 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29133 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29134 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29135 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29136 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29137 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29138 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29139 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29140 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29141 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29142 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29143 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29144 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29145 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29146 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29147 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29148 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29149 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29150 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29151 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29152 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29153 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29154 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29155 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29156 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29157 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29158 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29159 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29160 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29161 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29162 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29163 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"`'
29164 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29165 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29166 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29167 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29168 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29169 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29170 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29171 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29172 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29173 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29174 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29175 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29176 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29177 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29178 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29179 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29180 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29181 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29182 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29183 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29184 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29185 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29186 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29187 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29188 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29189 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29190 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29191 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29192 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29193 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29194 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29195 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29196 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29197 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29198 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29199 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29200 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29201 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29202 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29203 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29204 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29205 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29206 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29207 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29208 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29209 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29210 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29211 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29212 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29213 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29214 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29215 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29216 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29217 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29218 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29219 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29220 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29221 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29222 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29223 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29224 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29225 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29226 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29227 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29228 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29229 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29230 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29231 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29232 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29233 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29234 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29235 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29236 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29237 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29238 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29239 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29240 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29241 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29242 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29243 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29244 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29245 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29246 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29247 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29248 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29249 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29250 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29251 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29252 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29253 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29254 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29255 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29256 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29257 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29258 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29259 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29260 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29261 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29262 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29263 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29264 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29265 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29266 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29267 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29268 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29269 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29270 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29271 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29272 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29273 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29274 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29275 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29276 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29277 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29278 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29279 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29280 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29281 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29282 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29283 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29284 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29285 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29286 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29287 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29288 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29289 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29290 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29291 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29292 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29293 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29294 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29295 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29296 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29297 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29298 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29300 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29301 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29303 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29304 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29305 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29306 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29307 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29308 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29309 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29310 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29311 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29312 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29313 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29314 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29315 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29316 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29317 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29318 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29319 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29320 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29321 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29322 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29323 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29324 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29325 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29326 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29327 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29328 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29329 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29330 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29331 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29332 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29333 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29334 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29335 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29336 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29337
29338 LTCC='$LTCC'
29339 LTCFLAGS='$LTCFLAGS'
29340 compiler='$compiler_DEFAULT'
29341
29342 # Quote evaled strings.
29343 for var in SED \
29344 GREP \
29345 EGREP \
29346 FGREP \
29347 LD \
29348 NM \
29349 LN_S \
29350 lt_SP2NL \
29351 lt_NL2SP \
29352 reload_flag \
29353 OBJDUMP \
29354 deplibs_check_method \
29355 file_magic_cmd \
29356 AR \
29357 AR_FLAGS \
29358 STRIP \
29359 RANLIB \
29360 CC \
29361 CFLAGS \
29362 compiler \
29363 lt_cv_sys_global_symbol_pipe \
29364 lt_cv_sys_global_symbol_to_cdecl \
29365 lt_cv_sys_global_symbol_to_c_name_address \
29366 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29367 SHELL \
29368 ECHO \
29369 lt_prog_compiler_no_builtin_flag \
29370 lt_prog_compiler_wl \
29371 lt_prog_compiler_pic \
29372 lt_prog_compiler_static \
29373 lt_cv_prog_compiler_c_o \
29374 need_locks \
29375 DSYMUTIL \
29376 NMEDIT \
29377 LIPO \
29378 OTOOL \
29379 OTOOL64 \
29380 shrext_cmds \
29381 export_dynamic_flag_spec \
29382 whole_archive_flag_spec \
29383 compiler_needs_object \
29384 with_gnu_ld \
29385 allow_undefined_flag \
29386 no_undefined_flag \
29387 hardcode_libdir_flag_spec \
29388 hardcode_libdir_flag_spec_ld \
29389 hardcode_libdir_separator \
29390 fix_srcfile_path \
29391 exclude_expsyms \
29392 include_expsyms \
29393 file_list_spec \
29394 variables_saved_for_relink \
29395 libname_spec \
29396 library_names_spec \
29397 soname_spec \
29398 finish_eval \
29399 old_striplib \
29400 striplib \
29401 compiler_lib_search_dirs \
29402 predep_objects \
29403 postdep_objects \
29404 predeps \
29405 postdeps \
29406 compiler_lib_search_path \
29407 LD_CXX \
29408 LD_GCJ \
29409 compiler_CXX \
29410 compiler_GCJ \
29411 lt_prog_compiler_no_builtin_flag_CXX \
29412 lt_prog_compiler_no_builtin_flag_GCJ \
29413 lt_prog_compiler_wl_CXX \
29414 lt_prog_compiler_wl_GCJ \
29415 lt_prog_compiler_pic_CXX \
29416 lt_prog_compiler_pic_GCJ \
29417 lt_prog_compiler_static_CXX \
29418 lt_prog_compiler_static_GCJ \
29419 lt_cv_prog_compiler_c_o_CXX \
29420 lt_cv_prog_compiler_c_o_GCJ \
29421 export_dynamic_flag_spec_CXX \
29422 export_dynamic_flag_spec_GCJ \
29423 whole_archive_flag_spec_CXX \
29424 whole_archive_flag_spec_GCJ \
29425 compiler_needs_object_CXX \
29426 compiler_needs_object_GCJ \
29427 with_gnu_ld_CXX \
29428 with_gnu_ld_GCJ \
29429 allow_undefined_flag_CXX \
29430 allow_undefined_flag_GCJ \
29431 no_undefined_flag_CXX \
29432 no_undefined_flag_GCJ \
29433 hardcode_libdir_flag_spec_CXX \
29434 hardcode_libdir_flag_spec_GCJ \
29435 hardcode_libdir_flag_spec_ld_CXX \
29436 hardcode_libdir_flag_spec_ld_GCJ \
29437 hardcode_libdir_separator_CXX \
29438 hardcode_libdir_separator_GCJ \
29439 fix_srcfile_path_CXX \
29440 fix_srcfile_path_GCJ \
29441 exclude_expsyms_CXX \
29442 exclude_expsyms_GCJ \
29443 include_expsyms_CXX \
29444 include_expsyms_GCJ \
29445 file_list_spec_CXX \
29446 file_list_spec_GCJ \
29447 compiler_lib_search_dirs_CXX \
29448 compiler_lib_search_dirs_GCJ \
29449 predep_objects_CXX \
29450 predep_objects_GCJ \
29451 postdep_objects_CXX \
29452 postdep_objects_GCJ \
29453 predeps_CXX \
29454 predeps_GCJ \
29455 postdeps_CXX \
29456 postdeps_GCJ \
29457 compiler_lib_search_path_CXX \
29458 compiler_lib_search_path_GCJ; do
29459     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29460     *[\\\\\\\`\\"\\\$]*)
29461       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29462       ;;
29463     *)
29464       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29465       ;;
29466     esac
29467 done
29468
29469 # Double-quote double-evaled strings.
29470 for var in reload_cmds \
29471 old_postinstall_cmds \
29472 old_postuninstall_cmds \
29473 old_archive_cmds \
29474 extract_expsyms_cmds \
29475 old_archive_from_new_cmds \
29476 old_archive_from_expsyms_cmds \
29477 archive_cmds \
29478 archive_expsym_cmds \
29479 module_cmds \
29480 module_expsym_cmds \
29481 export_symbols_cmds \
29482 prelink_cmds \
29483 postinstall_cmds \
29484 postuninstall_cmds \
29485 finish_cmds \
29486 sys_lib_search_path_spec \
29487 sys_lib_dlsearch_path_spec \
29488 old_archive_cmds_CXX \
29489 old_archive_cmds_GCJ \
29490 old_archive_from_new_cmds_CXX \
29491 old_archive_from_new_cmds_GCJ \
29492 old_archive_from_expsyms_cmds_CXX \
29493 old_archive_from_expsyms_cmds_GCJ \
29494 archive_cmds_CXX \
29495 archive_cmds_GCJ \
29496 archive_expsym_cmds_CXX \
29497 archive_expsym_cmds_GCJ \
29498 module_cmds_CXX \
29499 module_cmds_GCJ \
29500 module_expsym_cmds_CXX \
29501 module_expsym_cmds_GCJ \
29502 export_symbols_cmds_CXX \
29503 export_symbols_cmds_GCJ \
29504 prelink_cmds_CXX \
29505 prelink_cmds_GCJ; do
29506     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29507     *[\\\\\\\`\\"\\\$]*)
29508       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29509       ;;
29510     *)
29511       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29512       ;;
29513     esac
29514 done
29515
29516 # Fix-up fallback echo if it was mangled by the above quoting rules.
29517 case \$lt_ECHO in
29518 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29519   ;;
29520 esac
29521
29522 ac_aux_dir='$ac_aux_dir'
29523 xsi_shell='$xsi_shell'
29524 lt_shell_append='$lt_shell_append'
29525
29526 # See if we are running on zsh, and set the options which allow our
29527 # commands through without removal of \ escapes INIT.
29528 if test -n "\${ZSH_VERSION+set}" ; then
29529    setopt NO_GLOB_SUBST
29530 fi
29531
29532
29533     PACKAGE='$PACKAGE'
29534     VERSION='$VERSION'
29535     TIMESTAMP='$TIMESTAMP'
29536     RM='$RM'
29537     ofile='$ofile'
29538
29539
29540
29541
29542
29543
29544
29545
29546 _ACEOF
29547
29548
29549
29550 cat >>$CONFIG_STATUS <<\_ACEOF
29551 for ac_config_target in $ac_config_targets
29552 do
29553   case "$ac_config_target" in
29554   # Handling of arguments.
29555   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29556   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29557   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29558   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29559   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29560   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29561   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29562   "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29563   "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29564   "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29565   "contrib/generate-cacerts.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
29566   "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29567   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29568   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29569   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29570   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29571   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29572   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29573   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29574   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29575   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29576   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29577   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29578   "gnu/java/security/jce/prng/natVMSecureRandom.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
29579   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29580   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29581   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29582   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29583   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29584   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29585   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29586   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29587   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29588   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29589   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29590   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29591   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29592 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29593    { (exit 1); exit 1; }; };;
29594   esac
29595 done
29596
29597 # If the user did not use the arguments to specify the items to instantiate,
29598 # then the envvar interface is used.  Set only those that are not.
29599 # We use the long form for the default assignment because of an extremely
29600 # bizarre bug on SunOS 4.1.3.
29601 if $ac_need_defaults; then
29602   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29603   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29604   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29605   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29606 fi
29607
29608 # Have a temporary directory for convenience.  Make it in the build tree
29609 # simply because there is no reason to put it here, and in addition,
29610 # creating and moving files from /tmp can sometimes cause problems.
29611 # Create a temporary directory, and hook for its removal unless debugging.
29612 $debug ||
29613 {
29614   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29615   trap '{ (exit 1); exit 1; }' 1 2 13 15
29616 }
29617
29618 # Create a (secure) tmp directory for tmp files.
29619
29620 {
29621   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29622   test -n "$tmp" && test -d "$tmp"
29623 }  ||
29624 {
29625   tmp=./confstat$$-$RANDOM
29626   (umask 077 && mkdir $tmp)
29627 } ||
29628 {
29629    echo "$me: cannot create a temporary directory in ." >&2
29630    { (exit 1); exit 1; }
29631 }
29632
29633 _ACEOF
29634
29635 cat >>$CONFIG_STATUS <<_ACEOF
29636
29637 #
29638 # CONFIG_FILES section.
29639 #
29640
29641 # No need to generate the scripts if there are no CONFIG_FILES.
29642 # This happens for instance when ./config.status config.h
29643 if test -n "\$CONFIG_FILES"; then
29644   # Protect against being on the right side of a sed subst in config.status.
29645   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29646    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29647 s,@SHELL@,$SHELL,;t t
29648 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29649 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29650 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29651 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29652 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29653 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29654 s,@exec_prefix@,$exec_prefix,;t t
29655 s,@prefix@,$prefix,;t t
29656 s,@program_transform_name@,$program_transform_name,;t t
29657 s,@bindir@,$bindir,;t t
29658 s,@sbindir@,$sbindir,;t t
29659 s,@libexecdir@,$libexecdir,;t t
29660 s,@datadir@,$datadir,;t t
29661 s,@sysconfdir@,$sysconfdir,;t t
29662 s,@sharedstatedir@,$sharedstatedir,;t t
29663 s,@localstatedir@,$localstatedir,;t t
29664 s,@libdir@,$libdir,;t t
29665 s,@includedir@,$includedir,;t t
29666 s,@oldincludedir@,$oldincludedir,;t t
29667 s,@infodir@,$infodir,;t t
29668 s,@mandir@,$mandir,;t t
29669 s,@build_alias@,$build_alias,;t t
29670 s,@host_alias@,$host_alias,;t t
29671 s,@target_alias@,$target_alias,;t t
29672 s,@DEFS@,$DEFS,;t t
29673 s,@ECHO_C@,$ECHO_C,;t t
29674 s,@ECHO_N@,$ECHO_N,;t t
29675 s,@ECHO_T@,$ECHO_T,;t t
29676 s,@LIBS@,$LIBS,;t t
29677 s,@build@,$build,;t t
29678 s,@build_cpu@,$build_cpu,;t t
29679 s,@build_vendor@,$build_vendor,;t t
29680 s,@build_os@,$build_os,;t t
29681 s,@build_libsubdir@,$build_libsubdir,;t t
29682 s,@build_subdir@,$build_subdir,;t t
29683 s,@host_subdir@,$host_subdir,;t t
29684 s,@target_subdir@,$target_subdir,;t t
29685 s,@multi_basedir@,$multi_basedir,;t t
29686 s,@host@,$host,;t t
29687 s,@host_cpu@,$host_cpu,;t t
29688 s,@host_vendor@,$host_vendor,;t t
29689 s,@host_os@,$host_os,;t t
29690 s,@target@,$target,;t t
29691 s,@target_cpu@,$target_cpu,;t t
29692 s,@target_vendor@,$target_vendor,;t t
29693 s,@target_os@,$target_os,;t t
29694 s,@target_noncanonical@,$target_noncanonical,;t t
29695 s,@LN_S@,$LN_S,;t t
29696 s,@mkinstalldirs@,$mkinstalldirs,;t t
29697 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
29698 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
29699 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
29700 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29701 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29702 s,@CC@,$CC,;t t
29703 s,@ac_ct_CC@,$ac_ct_CC,;t t
29704 s,@EXEEXT@,$EXEEXT,;t t
29705 s,@OBJEXT@,$OBJEXT,;t t
29706 s,@CXX@,$CXX,;t t
29707 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29708 s,@CFLAGS@,$CFLAGS,;t t
29709 s,@CXXFLAGS@,$CXXFLAGS,;t t
29710 s,@LDFLAGS@,$LDFLAGS,;t t
29711 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29712 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29713 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29714 s,@CYGPATH_W@,$CYGPATH_W,;t t
29715 s,@PACKAGE@,$PACKAGE,;t t
29716 s,@VERSION@,$VERSION,;t t
29717 s,@ACLOCAL@,$ACLOCAL,;t t
29718 s,@AUTOCONF@,$AUTOCONF,;t t
29719 s,@AUTOMAKE@,$AUTOMAKE,;t t
29720 s,@AUTOHEADER@,$AUTOHEADER,;t t
29721 s,@MAKEINFO@,$MAKEINFO,;t t
29722 s,@install_sh@,$install_sh,;t t
29723 s,@STRIP@,$STRIP,;t t
29724 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29725 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29726 s,@mkdir_p@,$mkdir_p,;t t
29727 s,@AWK@,$AWK,;t t
29728 s,@SET_MAKE@,$SET_MAKE,;t t
29729 s,@am__leading_dot@,$am__leading_dot,;t t
29730 s,@AMTAR@,$AMTAR,;t t
29731 s,@am__tar@,$am__tar,;t t
29732 s,@am__untar@,$am__untar,;t t
29733 s,@DEPDIR@,$DEPDIR,;t t
29734 s,@am__include@,$am__include,;t t
29735 s,@am__quote@,$am__quote,;t t
29736 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29737 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29738 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29739 s,@CCDEPMODE@,$CCDEPMODE,;t t
29740 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29741 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29742 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29743 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29744 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29745 s,@AS@,$AS,;t t
29746 s,@ac_ct_AS@,$ac_ct_AS,;t t
29747 s,@LD@,$LD,;t t
29748 s,@ac_ct_LD@,$ac_ct_LD,;t t
29749 s,@AR@,$AR,;t t
29750 s,@ac_ct_AR@,$ac_ct_AR,;t t
29751 s,@RANLIB@,$RANLIB,;t t
29752 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29753 s,@JAR@,$JAR,;t t
29754 s,@ZIP@,$ZIP,;t t
29755 s,@UNZIP@,$UNZIP,;t t
29756 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29757 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29758 s,@MAINT@,$MAINT,;t t
29759 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29760 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29761 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29762 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29763 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29764 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29765 s,@TOOLKIT@,$TOOLKIT,;t t
29766 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29767 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29768 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29769 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29770 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29771 s,@GCJH@,$GCJH,;t t
29772 s,@host_exeext@,$host_exeext,;t t
29773 s,@INCLTDL@,$INCLTDL,;t t
29774 s,@LIBLTDL@,$LIBLTDL,;t t
29775 s,@DIRLTDL@,$DIRLTDL,;t t
29776 s,@LIBTOOL@,$LIBTOOL,;t t
29777 s,@SED@,$SED,;t t
29778 s,@EGREP@,$EGREP,;t t
29779 s,@FGREP@,$FGREP,;t t
29780 s,@GREP@,$GREP,;t t
29781 s,@DUMPBIN@,$DUMPBIN,;t t
29782 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29783 s,@NM@,$NM,;t t
29784 s,@OBJDUMP@,$OBJDUMP,;t t
29785 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29786 s,@lt_ECHO@,$lt_ECHO,;t t
29787 s,@DSYMUTIL@,$DSYMUTIL,;t t
29788 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29789 s,@NMEDIT@,$NMEDIT,;t t
29790 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29791 s,@LIPO@,$LIPO,;t t
29792 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29793 s,@OTOOL@,$OTOOL,;t t
29794 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29795 s,@OTOOL64@,$OTOOL64,;t t
29796 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29797 s,@CPP@,$CPP,;t t
29798 s,@CPPFLAGS@,$CPPFLAGS,;t t
29799 s,@CXXCPP@,$CXXCPP,;t t
29800 s,@GCJ@,$GCJ,;t t
29801 s,@GCJFLAGS@,$GCJFLAGS,;t t
29802 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29803 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29804 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29805 s,@subdirs@,$subdirs,;t t
29806 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29807 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29808 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29809 s,@ECJ_JAR@,$ECJ_JAR,;t t
29810 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29811 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29812 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29813 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29814 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29815 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29816 s,@JAVA_HOME@,$JAVA_HOME,;t t
29817 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29818 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29819 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29820 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29821 s,@INTERPRETER@,$INTERPRETER,;t t
29822 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29823 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29824 s,@LIBFFI@,$LIBFFI,;t t
29825 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29826 s,@PLATFORM@,$PLATFORM,;t t
29827 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29828 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29829 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29830 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29831 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29832 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29833 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29834 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29835 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29836 s,@X_CFLAGS@,$X_CFLAGS,;t t
29837 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29838 s,@X_LIBS@,$X_LIBS,;t t
29839 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29840 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29841 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29842 s,@extra_ldflags@,$extra_ldflags,;t t
29843 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29844 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29845 s,@GCLIBS@,$GCLIBS,;t t
29846 s,@GCINCS@,$GCINCS,;t t
29847 s,@GCDEPS@,$GCDEPS,;t t
29848 s,@GCSPEC@,$GCSPEC,;t t
29849 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29850 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29851 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29852 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29853 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29854 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29855 s,@THREADLIBS@,$THREADLIBS,;t t
29856 s,@THREADINCS@,$THREADINCS,;t t
29857 s,@THREADDEPS@,$THREADDEPS,;t t
29858 s,@THREADSPEC@,$THREADSPEC,;t t
29859 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29860 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29861 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29862 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29863 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29864 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29865 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29866 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29867 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29868 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29869 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29870 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29871 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29872 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29873 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29874 s,@LIBICONV@,$LIBICONV,;t t
29875 s,@LTLIBICONV@,$LTLIBICONV,;t t
29876 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29877 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29878 s,@GTK_LIBS@,$GTK_LIBS,;t t
29879 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29880 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29881 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29882 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29883 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29884 s,@ZLIBS@,$ZLIBS,;t t
29885 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29886 s,@ZINCS@,$ZINCS,;t t
29887 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29888 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29889 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29890 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29891 s,@IEEESPEC@,$IEEESPEC,;t t
29892 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29893 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29894 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29895 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29896 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29897 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29898 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
29899 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
29900 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29901 s,@toolexecdir@,$toolexecdir,;t t
29902 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29903 s,@toolexeclibdir@,$toolexeclibdir,;t t
29904 s,@GCJVERSION@,$GCJVERSION,;t t
29905 s,@dbexecdir@,$dbexecdir,;t t
29906 s,@gcjsubdir@,$gcjsubdir,;t t
29907 s,@gxx_include_dir@,$gxx_include_dir,;t t
29908 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29909 s,@PERL@,$PERL,;t t
29910 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29911 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29912 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29913 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29914 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29915 s,@here@,$here,;t t
29916 s,@python_mod_dir@,$python_mod_dir,;t t
29917 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29918 s,@MAKE@,$MAKE,;t t
29919 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29920 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29921 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29922 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29923 s,@gcc_suffix@,$gcc_suffix,;t t
29924 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29925 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29926 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29927 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29928 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29929 s,@JRE_DIR@,$JRE_DIR,;t t
29930 s,@JRE_LNK@,$JRE_LNK,;t t
29931 s,@SDK_LNK@,$SDK_LNK,;t t
29932 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29933 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29934 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29935 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29936 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29937 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29938 s,@CPU@,$CPU,;t t
29939 s,@OS@,$OS,;t t
29940 s,@LIBDIR@,$LIBDIR,;t t
29941 s,@LIBOBJS@,$LIBOBJS,;t t
29942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29943 CEOF
29944
29945 _ACEOF
29946
29947   cat >>$CONFIG_STATUS <<\_ACEOF
29948   # Split the substitutions into bite-sized pieces for seds with
29949   # small command number limits, like on Digital OSF/1 and HP-UX.
29950   ac_max_sed_lines=48
29951   ac_sed_frag=1 # Number of current file.
29952   ac_beg=1 # First line for current file.
29953   ac_end=$ac_max_sed_lines # Line after last line for current file.
29954   ac_more_lines=:
29955   ac_sed_cmds=
29956   while $ac_more_lines; do
29957     if test $ac_beg -gt 1; then
29958       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29959     else
29960       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29961     fi
29962     if test ! -s $tmp/subs.frag; then
29963       ac_more_lines=false
29964     else
29965       # The purpose of the label and of the branching condition is to
29966       # speed up the sed processing (if there are no `@' at all, there
29967       # is no need to browse any of the substitutions).
29968       # These are the two extra sed commands mentioned above.
29969       (echo ':t
29970   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29971       if test -z "$ac_sed_cmds"; then
29972         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29973       else
29974         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29975       fi
29976       ac_sed_frag=`expr $ac_sed_frag + 1`
29977       ac_beg=$ac_end
29978       ac_end=`expr $ac_end + $ac_max_sed_lines`
29979     fi
29980   done
29981   if test -z "$ac_sed_cmds"; then
29982     ac_sed_cmds=cat
29983   fi
29984 fi # test -n "$CONFIG_FILES"
29985
29986 _ACEOF
29987 cat >>$CONFIG_STATUS <<\_ACEOF
29988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29989   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29990   case $ac_file in
29991   - | *:- | *:-:* ) # input from stdin
29992         cat >$tmp/stdin
29993         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29995   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29996         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29997   * )   ac_file_in=$ac_file.in ;;
29998   esac
29999
30000   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30001   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30003          X"$ac_file" : 'X\(//\)[^/]' \| \
30004          X"$ac_file" : 'X\(//\)$' \| \
30005          X"$ac_file" : 'X\(/\)' \| \
30006          .     : '\(.\)' 2>/dev/null ||
30007 echo X"$ac_file" |
30008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30010           /^X\(\/\/\)$/{ s//\1/; q; }
30011           /^X\(\/\).*/{ s//\1/; q; }
30012           s/.*/./; q'`
30013   { if $as_mkdir_p; then
30014     mkdir -p "$ac_dir"
30015   else
30016     as_dir="$ac_dir"
30017     as_dirs=
30018     while test ! -d "$as_dir"; do
30019       as_dirs="$as_dir $as_dirs"
30020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022          X"$as_dir" : 'X\(//\)[^/]' \| \
30023          X"$as_dir" : 'X\(//\)$' \| \
30024          X"$as_dir" : 'X\(/\)' \| \
30025          .     : '\(.\)' 2>/dev/null ||
30026 echo X"$as_dir" |
30027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30029           /^X\(\/\/\)$/{ s//\1/; q; }
30030           /^X\(\/\).*/{ s//\1/; q; }
30031           s/.*/./; q'`
30032     done
30033     test ! -n "$as_dirs" || mkdir $as_dirs
30034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30036    { (exit 1); exit 1; }; }; }
30037
30038   ac_builddir=.
30039
30040 if test "$ac_dir" != .; then
30041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30042   # A "../" for each directory in $ac_dir_suffix.
30043   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30044 else
30045   ac_dir_suffix= ac_top_builddir=
30046 fi
30047
30048 case $srcdir in
30049   .)  # No --srcdir option.  We are building in place.
30050     ac_srcdir=.
30051     if test -z "$ac_top_builddir"; then
30052        ac_top_srcdir=.
30053     else
30054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30055     fi ;;
30056   [\\/]* | ?:[\\/]* )  # Absolute path.
30057     ac_srcdir=$srcdir$ac_dir_suffix;
30058     ac_top_srcdir=$srcdir ;;
30059   *) # Relative path.
30060     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30061     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30062 esac
30063
30064 # Do not use `cd foo && pwd` to compute absolute paths, because
30065 # the directories may not exist.
30066 case `pwd` in
30067 .) ac_abs_builddir="$ac_dir";;
30068 *)
30069   case "$ac_dir" in
30070   .) ac_abs_builddir=`pwd`;;
30071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30073   esac;;
30074 esac
30075 case $ac_abs_builddir in
30076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30077 *)
30078   case ${ac_top_builddir}. in
30079   .) ac_abs_top_builddir=$ac_abs_builddir;;
30080   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30081   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30082   esac;;
30083 esac
30084 case $ac_abs_builddir in
30085 .) ac_abs_srcdir=$ac_srcdir;;
30086 *)
30087   case $ac_srcdir in
30088   .) ac_abs_srcdir=$ac_abs_builddir;;
30089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30091   esac;;
30092 esac
30093 case $ac_abs_builddir in
30094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30095 *)
30096   case $ac_top_srcdir in
30097   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30098   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30099   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30100   esac;;
30101 esac
30102
30103
30104   case $INSTALL in
30105   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30106   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30107   esac
30108
30109   if test x"$ac_file" != x-; then
30110     { echo "$as_me:$LINENO: creating $ac_file" >&5
30111 echo "$as_me: creating $ac_file" >&6;}
30112     rm -f "$ac_file"
30113   fi
30114   # Let's still pretend it is `configure' which instantiates (i.e., don't
30115   # use $as_me), people would be surprised to read:
30116   #    /* config.h.  Generated by config.status.  */
30117   if test x"$ac_file" = x-; then
30118     configure_input=
30119   else
30120     configure_input="$ac_file.  "
30121   fi
30122   configure_input=$configure_input"Generated from `echo $ac_file_in |
30123                                      sed 's,.*/,,'` by configure."
30124
30125   # First look for the input files in the build tree, otherwise in the
30126   # src tree.
30127   ac_file_inputs=`IFS=:
30128     for f in $ac_file_in; do
30129       case $f in
30130       -) echo $tmp/stdin ;;
30131       [\\/$]*)
30132          # Absolute (can't be DOS-style, as IFS=:)
30133          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30134 echo "$as_me: error: cannot find input file: $f" >&2;}
30135    { (exit 1); exit 1; }; }
30136          echo "$f";;
30137       *) # Relative
30138          if test -f "$f"; then
30139            # Build tree
30140            echo "$f"
30141          elif test -f "$srcdir/$f"; then
30142            # Source tree
30143            echo "$srcdir/$f"
30144          else
30145            # /dev/null tree
30146            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30147 echo "$as_me: error: cannot find input file: $f" >&2;}
30148    { (exit 1); exit 1; }; }
30149          fi;;
30150       esac
30151     done` || { (exit 1); exit 1; }
30152 _ACEOF
30153 cat >>$CONFIG_STATUS <<_ACEOF
30154   sed "$ac_vpsub
30155 $extrasub
30156 _ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30158 :t
30159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30160 s,@configure_input@,$configure_input,;t t
30161 s,@srcdir@,$ac_srcdir,;t t
30162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30163 s,@top_srcdir@,$ac_top_srcdir,;t t
30164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30165 s,@builddir@,$ac_builddir,;t t
30166 s,@abs_builddir@,$ac_abs_builddir,;t t
30167 s,@top_builddir@,$ac_top_builddir,;t t
30168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30169 s,@INSTALL@,$ac_INSTALL,;t t
30170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30171   rm -f $tmp/stdin
30172   if test x"$ac_file" != x-; then
30173     mv $tmp/out $ac_file
30174   else
30175     cat $tmp/out
30176     rm -f $tmp/out
30177   fi
30178
30179   # Run the commands associated with the file.
30180   case $ac_file in
30181     scripts/jar ) chmod +x scripts/jar ;;
30182   esac
30183 done
30184 _ACEOF
30185 cat >>$CONFIG_STATUS <<\_ACEOF
30186
30187 #
30188 # CONFIG_HEADER section.
30189 #
30190
30191 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30192 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30193 #
30194 # ac_d sets the value in "#define NAME VALUE" lines.
30195 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30196 ac_dB='[         ].*$,\1#\2'
30197 ac_dC=' '
30198 ac_dD=',;t'
30199 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30200 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30201 ac_uB='$,\1#\2define\3'
30202 ac_uC=' '
30203 ac_uD=',;t'
30204
30205 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30206   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30207   case $ac_file in
30208   - | *:- | *:-:* ) # input from stdin
30209         cat >$tmp/stdin
30210         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30211         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30212   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30213         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30214   * )   ac_file_in=$ac_file.in ;;
30215   esac
30216
30217   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30218 echo "$as_me: creating $ac_file" >&6;}
30219
30220   # First look for the input files in the build tree, otherwise in the
30221   # src tree.
30222   ac_file_inputs=`IFS=:
30223     for f in $ac_file_in; do
30224       case $f in
30225       -) echo $tmp/stdin ;;
30226       [\\/$]*)
30227          # Absolute (can't be DOS-style, as IFS=:)
30228          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30229 echo "$as_me: error: cannot find input file: $f" >&2;}
30230    { (exit 1); exit 1; }; }
30231          # Do quote $f, to prevent DOS paths from being IFS'd.
30232          echo "$f";;
30233       *) # Relative
30234          if test -f "$f"; then
30235            # Build tree
30236            echo "$f"
30237          elif test -f "$srcdir/$f"; then
30238            # Source tree
30239            echo "$srcdir/$f"
30240          else
30241            # /dev/null tree
30242            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30243 echo "$as_me: error: cannot find input file: $f" >&2;}
30244    { (exit 1); exit 1; }; }
30245          fi;;
30246       esac
30247     done` || { (exit 1); exit 1; }
30248   # Remove the trailing spaces.
30249   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30250
30251 _ACEOF
30252
30253 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30254 # `conftest.undefs', that substitutes the proper values into
30255 # config.h.in to produce config.h.  The first handles `#define'
30256 # templates, and the second `#undef' templates.
30257 # And first: Protect against being on the right side of a sed subst in
30258 # config.status.  Protect against being in an unquoted here document
30259 # in config.status.
30260 rm -f conftest.defines conftest.undefs
30261 # Using a here document instead of a string reduces the quoting nightmare.
30262 # Putting comments in sed scripts is not portable.
30263 #
30264 # `end' is used to avoid that the second main sed command (meant for
30265 # 0-ary CPP macros) applies to n-ary macro definitions.
30266 # See the Autoconf documentation for `clear'.
30267 cat >confdef2sed.sed <<\_ACEOF
30268 s/[\\&,]/\\&/g
30269 s,[\\$`],\\&,g
30270 t clear
30271 : clear
30272 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30273 t end
30274 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30275 : end
30276 _ACEOF
30277 # If some macros were called several times there might be several times
30278 # the same #defines, which is useless.  Nevertheless, we may not want to
30279 # sort them, since we want the *last* AC-DEFINE to be honored.
30280 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30281 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30282 rm -f confdef2sed.sed
30283
30284 # This sed command replaces #undef with comments.  This is necessary, for
30285 # example, in the case of _POSIX_SOURCE, which is predefined and required
30286 # on some systems where configure will not decide to define it.
30287 cat >>conftest.undefs <<\_ACEOF
30288 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30289 _ACEOF
30290
30291 # Break up conftest.defines because some shells have a limit on the size
30292 # of here documents, and old seds have small limits too (100 cmds).
30293 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30294 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30295 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30296 echo '  :' >>$CONFIG_STATUS
30297 rm -f conftest.tail
30298 while grep . conftest.defines >/dev/null
30299 do
30300   # Write a limited-size here document to $tmp/defines.sed.
30301   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30302   # Speed up: don't consider the non `#define' lines.
30303   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30304   # Work around the forget-to-reset-the-flag bug.
30305   echo 't clr' >>$CONFIG_STATUS
30306   echo ': clr' >>$CONFIG_STATUS
30307   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30308   echo 'CEOF
30309   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30310   rm -f $tmp/in
30311   mv $tmp/out $tmp/in
30312 ' >>$CONFIG_STATUS
30313   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30314   rm -f conftest.defines
30315   mv conftest.tail conftest.defines
30316 done
30317 rm -f conftest.defines
30318 echo '  fi # grep' >>$CONFIG_STATUS
30319 echo >>$CONFIG_STATUS
30320
30321 # Break up conftest.undefs because some shells have a limit on the size
30322 # of here documents, and old seds have small limits too (100 cmds).
30323 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30324 rm -f conftest.tail
30325 while grep . conftest.undefs >/dev/null
30326 do
30327   # Write a limited-size here document to $tmp/undefs.sed.
30328   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30329   # Speed up: don't consider the non `#undef'
30330   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30331   # Work around the forget-to-reset-the-flag bug.
30332   echo 't clr' >>$CONFIG_STATUS
30333   echo ': clr' >>$CONFIG_STATUS
30334   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30335   echo 'CEOF
30336   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30337   rm -f $tmp/in
30338   mv $tmp/out $tmp/in
30339 ' >>$CONFIG_STATUS
30340   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30341   rm -f conftest.undefs
30342   mv conftest.tail conftest.undefs
30343 done
30344 rm -f conftest.undefs
30345
30346 cat >>$CONFIG_STATUS <<\_ACEOF
30347   # Let's still pretend it is `configure' which instantiates (i.e., don't
30348   # use $as_me), people would be surprised to read:
30349   #    /* config.h.  Generated by config.status.  */
30350   if test x"$ac_file" = x-; then
30351     echo "/* Generated by configure.  */" >$tmp/config.h
30352   else
30353     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30354   fi
30355   cat $tmp/in >>$tmp/config.h
30356   rm -f $tmp/in
30357   if test x"$ac_file" != x-; then
30358     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30359       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30360 echo "$as_me: $ac_file is unchanged" >&6;}
30361     else
30362       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30364          X"$ac_file" : 'X\(//\)[^/]' \| \
30365          X"$ac_file" : 'X\(//\)$' \| \
30366          X"$ac_file" : 'X\(/\)' \| \
30367          .     : '\(.\)' 2>/dev/null ||
30368 echo X"$ac_file" |
30369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30371           /^X\(\/\/\)$/{ s//\1/; q; }
30372           /^X\(\/\).*/{ s//\1/; q; }
30373           s/.*/./; q'`
30374       { if $as_mkdir_p; then
30375     mkdir -p "$ac_dir"
30376   else
30377     as_dir="$ac_dir"
30378     as_dirs=
30379     while test ! -d "$as_dir"; do
30380       as_dirs="$as_dir $as_dirs"
30381       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30383          X"$as_dir" : 'X\(//\)[^/]' \| \
30384          X"$as_dir" : 'X\(//\)$' \| \
30385          X"$as_dir" : 'X\(/\)' \| \
30386          .     : '\(.\)' 2>/dev/null ||
30387 echo X"$as_dir" |
30388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30390           /^X\(\/\/\)$/{ s//\1/; q; }
30391           /^X\(\/\).*/{ s//\1/; q; }
30392           s/.*/./; q'`
30393     done
30394     test ! -n "$as_dirs" || mkdir $as_dirs
30395   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30397    { (exit 1); exit 1; }; }; }
30398
30399       rm -f $ac_file
30400       mv $tmp/config.h $ac_file
30401     fi
30402   else
30403     cat $tmp/config.h
30404     rm -f $tmp/config.h
30405   fi
30406 # Compute $ac_file's index in $config_headers.
30407 _am_stamp_count=1
30408 for _am_header in $config_headers :; do
30409   case $_am_header in
30410     $ac_file | $ac_file:* )
30411       break ;;
30412     * )
30413       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30414   esac
30415 done
30416 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30417 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30418          X$ac_file : 'X\(//\)[^/]' \| \
30419          X$ac_file : 'X\(//\)$' \| \
30420          X$ac_file : 'X\(/\)' \| \
30421          .     : '\(.\)' 2>/dev/null ||
30422 echo X$ac_file |
30423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30425           /^X\(\/\/\)$/{ s//\1/; q; }
30426           /^X\(\/\).*/{ s//\1/; q; }
30427           s/.*/./; q'`/stamp-h$_am_stamp_count
30428 done
30429 _ACEOF
30430 cat >>$CONFIG_STATUS <<\_ACEOF
30431
30432 #
30433 # CONFIG_LINKS section.
30434 #
30435
30436 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30437   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30438   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30439
30440   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30441 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30442
30443   if test ! -r $srcdir/$ac_source; then
30444     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30445 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30446    { (exit 1); exit 1; }; }
30447   fi
30448   rm -f $ac_dest
30449
30450   # Make relative symlinks.
30451   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30452 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30453          X"$ac_dest" : 'X\(//\)[^/]' \| \
30454          X"$ac_dest" : 'X\(//\)$' \| \
30455          X"$ac_dest" : 'X\(/\)' \| \
30456          .     : '\(.\)' 2>/dev/null ||
30457 echo X"$ac_dest" |
30458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30460           /^X\(\/\/\)$/{ s//\1/; q; }
30461           /^X\(\/\).*/{ s//\1/; q; }
30462           s/.*/./; q'`
30463   { if $as_mkdir_p; then
30464     mkdir -p "$ac_dest_dir"
30465   else
30466     as_dir="$ac_dest_dir"
30467     as_dirs=
30468     while test ! -d "$as_dir"; do
30469       as_dirs="$as_dir $as_dirs"
30470       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30472          X"$as_dir" : 'X\(//\)[^/]' \| \
30473          X"$as_dir" : 'X\(//\)$' \| \
30474          X"$as_dir" : 'X\(/\)' \| \
30475          .     : '\(.\)' 2>/dev/null ||
30476 echo X"$as_dir" |
30477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30479           /^X\(\/\/\)$/{ s//\1/; q; }
30480           /^X\(\/\).*/{ s//\1/; q; }
30481           s/.*/./; q'`
30482     done
30483     test ! -n "$as_dirs" || mkdir $as_dirs
30484   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30485 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30486    { (exit 1); exit 1; }; }; }
30487
30488   ac_builddir=.
30489
30490 if test "$ac_dest_dir" != .; then
30491   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30492   # A "../" for each directory in $ac_dir_suffix.
30493   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30494 else
30495   ac_dir_suffix= ac_top_builddir=
30496 fi
30497
30498 case $srcdir in
30499   .)  # No --srcdir option.  We are building in place.
30500     ac_srcdir=.
30501     if test -z "$ac_top_builddir"; then
30502        ac_top_srcdir=.
30503     else
30504        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30505     fi ;;
30506   [\\/]* | ?:[\\/]* )  # Absolute path.
30507     ac_srcdir=$srcdir$ac_dir_suffix;
30508     ac_top_srcdir=$srcdir ;;
30509   *) # Relative path.
30510     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30511     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30512 esac
30513
30514 # Do not use `cd foo && pwd` to compute absolute paths, because
30515 # the directories may not exist.
30516 case `pwd` in
30517 .) ac_abs_builddir="$ac_dest_dir";;
30518 *)
30519   case "$ac_dest_dir" in
30520   .) ac_abs_builddir=`pwd`;;
30521   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30522   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30523   esac;;
30524 esac
30525 case $ac_abs_builddir in
30526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30527 *)
30528   case ${ac_top_builddir}. in
30529   .) ac_abs_top_builddir=$ac_abs_builddir;;
30530   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30531   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30532   esac;;
30533 esac
30534 case $ac_abs_builddir in
30535 .) ac_abs_srcdir=$ac_srcdir;;
30536 *)
30537   case $ac_srcdir in
30538   .) ac_abs_srcdir=$ac_abs_builddir;;
30539   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30540   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30541   esac;;
30542 esac
30543 case $ac_abs_builddir in
30544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30545 *)
30546   case $ac_top_srcdir in
30547   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30548   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30549   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30550   esac;;
30551 esac
30552
30553
30554   case $srcdir in
30555   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30556       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30557   esac
30558
30559   # Try a symlink, then a hard link, then a copy.
30560   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30561     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30562     cp -p $srcdir/$ac_source $ac_dest ||
30563     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30564 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30565    { (exit 1); exit 1; }; }
30566 done
30567 _ACEOF
30568 cat >>$CONFIG_STATUS <<\_ACEOF
30569
30570 #
30571 # CONFIG_COMMANDS section.
30572 #
30573 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30574   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30575   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30576   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30578          X"$ac_dest" : 'X\(//\)[^/]' \| \
30579          X"$ac_dest" : 'X\(//\)$' \| \
30580          X"$ac_dest" : 'X\(/\)' \| \
30581          .     : '\(.\)' 2>/dev/null ||
30582 echo X"$ac_dest" |
30583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30585           /^X\(\/\/\)$/{ s//\1/; q; }
30586           /^X\(\/\).*/{ s//\1/; q; }
30587           s/.*/./; q'`
30588   { if $as_mkdir_p; then
30589     mkdir -p "$ac_dir"
30590   else
30591     as_dir="$ac_dir"
30592     as_dirs=
30593     while test ! -d "$as_dir"; do
30594       as_dirs="$as_dir $as_dirs"
30595       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597          X"$as_dir" : 'X\(//\)[^/]' \| \
30598          X"$as_dir" : 'X\(//\)$' \| \
30599          X"$as_dir" : 'X\(/\)' \| \
30600          .     : '\(.\)' 2>/dev/null ||
30601 echo X"$as_dir" |
30602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30604           /^X\(\/\/\)$/{ s//\1/; q; }
30605           /^X\(\/\).*/{ s//\1/; q; }
30606           s/.*/./; q'`
30607     done
30608     test ! -n "$as_dirs" || mkdir $as_dirs
30609   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30611    { (exit 1); exit 1; }; }; }
30612
30613   ac_builddir=.
30614
30615 if test "$ac_dir" != .; then
30616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30617   # A "../" for each directory in $ac_dir_suffix.
30618   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30619 else
30620   ac_dir_suffix= ac_top_builddir=
30621 fi
30622
30623 case $srcdir in
30624   .)  # No --srcdir option.  We are building in place.
30625     ac_srcdir=.
30626     if test -z "$ac_top_builddir"; then
30627        ac_top_srcdir=.
30628     else
30629        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30630     fi ;;
30631   [\\/]* | ?:[\\/]* )  # Absolute path.
30632     ac_srcdir=$srcdir$ac_dir_suffix;
30633     ac_top_srcdir=$srcdir ;;
30634   *) # Relative path.
30635     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30636     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30637 esac
30638
30639 # Do not use `cd foo && pwd` to compute absolute paths, because
30640 # the directories may not exist.
30641 case `pwd` in
30642 .) ac_abs_builddir="$ac_dir";;
30643 *)
30644   case "$ac_dir" in
30645   .) ac_abs_builddir=`pwd`;;
30646   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30647   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30648   esac;;
30649 esac
30650 case $ac_abs_builddir in
30651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30652 *)
30653   case ${ac_top_builddir}. in
30654   .) ac_abs_top_builddir=$ac_abs_builddir;;
30655   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30656   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30657   esac;;
30658 esac
30659 case $ac_abs_builddir in
30660 .) ac_abs_srcdir=$ac_srcdir;;
30661 *)
30662   case $ac_srcdir in
30663   .) ac_abs_srcdir=$ac_abs_builddir;;
30664   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30665   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30666   esac;;
30667 esac
30668 case $ac_abs_builddir in
30669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30670 *)
30671   case $ac_top_srcdir in
30672   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30673   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30674   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30675   esac;;
30676 esac
30677
30678
30679   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30680 echo "$as_me: executing $ac_dest commands" >&6;}
30681   case $ac_dest in
30682     default-1 )
30683 # Only add multilib support code if we just rebuilt the top-level
30684 # Makefile.
30685 case " $CONFIG_FILES " in
30686  *" Makefile "*)
30687    ac_file=Makefile . ${multi_basedir}/config-ml.in
30688    ;;
30689 esac ;;
30690     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30691   # Strip MF so we end up with the name of the file.
30692   mf=`echo "$mf" | sed -e 's/:.*$//'`
30693   # Check whether this is an Automake generated Makefile or not.
30694   # We used to match only the files named `Makefile.in', but
30695   # some people rename them; so instead we look at the file content.
30696   # Grep'ing the first line is not enough: some people post-process
30697   # each Makefile.in and add a new line on top of each file to say so.
30698   # So let's grep whole file.
30699   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30700     dirpart=`(dirname "$mf") 2>/dev/null ||
30701 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30702          X"$mf" : 'X\(//\)[^/]' \| \
30703          X"$mf" : 'X\(//\)$' \| \
30704          X"$mf" : 'X\(/\)' \| \
30705          .     : '\(.\)' 2>/dev/null ||
30706 echo X"$mf" |
30707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30709           /^X\(\/\/\)$/{ s//\1/; q; }
30710           /^X\(\/\).*/{ s//\1/; q; }
30711           s/.*/./; q'`
30712   else
30713     continue
30714   fi
30715   # Extract the definition of DEPDIR, am__include, and am__quote
30716   # from the Makefile without running `make'.
30717   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30718   test -z "$DEPDIR" && continue
30719   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30720   test -z "am__include" && continue
30721   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30722   # When using ansi2knr, U may be empty or an underscore; expand it
30723   U=`sed -n 's/^U = //p' < "$mf"`
30724   # Find all dependency output files, they are included files with
30725   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30726   # simplest approach to changing $(DEPDIR) to its actual value in the
30727   # expansion.
30728   for file in `sed -n "
30729     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30730        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30731     # Make sure the directory exists.
30732     test -f "$dirpart/$file" && continue
30733     fdir=`(dirname "$file") 2>/dev/null ||
30734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30735          X"$file" : 'X\(//\)[^/]' \| \
30736          X"$file" : 'X\(//\)$' \| \
30737          X"$file" : 'X\(/\)' \| \
30738          .     : '\(.\)' 2>/dev/null ||
30739 echo X"$file" |
30740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30741           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30742           /^X\(\/\/\)$/{ s//\1/; q; }
30743           /^X\(\/\).*/{ s//\1/; q; }
30744           s/.*/./; q'`
30745     { if $as_mkdir_p; then
30746     mkdir -p $dirpart/$fdir
30747   else
30748     as_dir=$dirpart/$fdir
30749     as_dirs=
30750     while test ! -d "$as_dir"; do
30751       as_dirs="$as_dir $as_dirs"
30752       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30754          X"$as_dir" : 'X\(//\)[^/]' \| \
30755          X"$as_dir" : 'X\(//\)$' \| \
30756          X"$as_dir" : 'X\(/\)' \| \
30757          .     : '\(.\)' 2>/dev/null ||
30758 echo X"$as_dir" |
30759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30760           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30761           /^X\(\/\/\)$/{ s//\1/; q; }
30762           /^X\(\/\).*/{ s//\1/; q; }
30763           s/.*/./; q'`
30764     done
30765     test ! -n "$as_dirs" || mkdir $as_dirs
30766   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30767 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30768    { (exit 1); exit 1; }; }; }
30769
30770     # echo "creating $dirpart/$file"
30771     echo '# dummy' > "$dirpart/$file"
30772   done
30773 done
30774  ;;
30775     libtool )
30776
30777     # See if we are running on zsh, and set the options which allow our
30778     # commands through without removal of \ escapes.
30779     if test -n "${ZSH_VERSION+set}" ; then
30780       setopt NO_GLOB_SUBST
30781     fi
30782
30783     cfgfile="${ofile}T"
30784     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30785     $RM "$cfgfile"
30786
30787     cat <<_LT_EOF >> "$cfgfile"
30788 #! $SHELL
30789
30790 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30791 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30794 #
30795 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30796 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30797 #   Written by Gordon Matzigkeit, 1996
30798 #
30799 #   This file is part of GNU Libtool.
30800 #
30801 # GNU Libtool is free software; you can redistribute it and/or
30802 # modify it under the terms of the GNU General Public License as
30803 # published by the Free Software Foundation; either version 2 of
30804 # the License, or (at your option) any later version.
30805 #
30806 # As a special exception to the GNU General Public License,
30807 # if you distribute this file as part of a program or library that
30808 # is built using GNU Libtool, you may include this file under the
30809 # same distribution terms that you use for the rest of that program.
30810 #
30811 # GNU Libtool is distributed in the hope that it will be useful,
30812 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30813 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30814 # GNU General Public License for more details.
30815 #
30816 # You should have received a copy of the GNU General Public License
30817 # along with GNU Libtool; see the file COPYING.  If not, a copy
30818 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30819 # obtained by writing to the Free Software Foundation, Inc.,
30820 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30821
30822
30823 # The names of the tagged configurations supported by this script.
30824 available_tags="CXX GCJ "
30825
30826 # ### BEGIN LIBTOOL CONFIG
30827
30828 # Which release of libtool.m4 was used?
30829 macro_version=$macro_version
30830 macro_revision=$macro_revision
30831
30832 # Whether or not to build shared libraries.
30833 build_libtool_libs=$enable_shared
30834
30835 # Whether or not to build static libraries.
30836 build_old_libs=$enable_static
30837
30838 # What type of objects to build.
30839 pic_mode=$pic_mode
30840
30841 # Whether or not to optimize for fast installation.
30842 fast_install=$enable_fast_install
30843
30844 # The host system.
30845 host_alias=$host_alias
30846 host=$host
30847 host_os=$host_os
30848
30849 # The build system.
30850 build_alias=$build_alias
30851 build=$build
30852 build_os=$build_os
30853
30854 # A sed program that does not truncate output.
30855 SED=$lt_SED
30856
30857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30858 Xsed="\$SED -e 1s/^X//"
30859
30860 # A grep program that handles long lines.
30861 GREP=$lt_GREP
30862
30863 # An ERE matcher.
30864 EGREP=$lt_EGREP
30865
30866 # A literal string matcher.
30867 FGREP=$lt_FGREP
30868
30869 # A BSD- or MS-compatible name lister.
30870 NM=$lt_NM
30871
30872 # Whether we need soft or hard links.
30873 LN_S=$lt_LN_S
30874
30875 # What is the maximum length of a command?
30876 max_cmd_len=$max_cmd_len
30877
30878 # Object file suffix (normally "o").
30879 objext=$ac_objext
30880
30881 # Executable file suffix (normally "").
30882 exeext=$exeext
30883
30884 # whether the shell understands "unset".
30885 lt_unset=$lt_unset
30886
30887 # turn spaces into newlines.
30888 SP2NL=$lt_lt_SP2NL
30889
30890 # turn newlines into spaces.
30891 NL2SP=$lt_lt_NL2SP
30892
30893 # How to create reloadable object files.
30894 reload_flag=$lt_reload_flag
30895 reload_cmds=$lt_reload_cmds
30896
30897 # An object symbol dumper.
30898 OBJDUMP=$lt_OBJDUMP
30899
30900 # Method to check whether dependent libraries are shared objects.
30901 deplibs_check_method=$lt_deplibs_check_method
30902
30903 # Command to use when deplibs_check_method == "file_magic".
30904 file_magic_cmd=$lt_file_magic_cmd
30905
30906 # The archiver.
30907 AR=$lt_AR
30908 AR_FLAGS=$lt_AR_FLAGS
30909
30910 # A symbol stripping program.
30911 STRIP=$lt_STRIP
30912
30913 # Commands used to install an old-style archive.
30914 RANLIB=$lt_RANLIB
30915 old_postinstall_cmds=$lt_old_postinstall_cmds
30916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30917
30918 # A C compiler.
30919 LTCC=$lt_CC
30920
30921 # LTCC compiler flags.
30922 LTCFLAGS=$lt_CFLAGS
30923
30924 # Take the output of nm and produce a listing of raw symbols and C names.
30925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30926
30927 # Transform the output of nm in a proper C declaration.
30928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30929
30930 # Transform the output of nm in a C name address pair.
30931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30932
30933 # Transform the output of nm in a C name address pair when lib prefix is needed.
30934 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30935
30936 # The name of the directory that contains temporary libtool files.
30937 objdir=$objdir
30938
30939 # Shell to use when invoking shell scripts.
30940 SHELL=$lt_SHELL
30941
30942 # An echo program that does not interpret backslashes.
30943 ECHO=$lt_ECHO
30944
30945 # Used to examine libraries when file_magic_cmd begins with "file".
30946 MAGIC_CMD=$MAGIC_CMD
30947
30948 # Must we lock files when doing compilation?
30949 need_locks=$lt_need_locks
30950
30951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30952 DSYMUTIL=$lt_DSYMUTIL
30953
30954 # Tool to change global to local symbols on Mac OS X.
30955 NMEDIT=$lt_NMEDIT
30956
30957 # Tool to manipulate fat objects and archives on Mac OS X.
30958 LIPO=$lt_LIPO
30959
30960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30961 OTOOL=$lt_OTOOL
30962
30963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30964 OTOOL64=$lt_OTOOL64
30965
30966 # Old archive suffix (normally "a").
30967 libext=$libext
30968
30969 # Shared library suffix (normally ".so").
30970 shrext_cmds=$lt_shrext_cmds
30971
30972 # The commands to extract the exported symbol list from a shared archive.
30973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30974
30975 # Variables whose values should be saved in libtool wrapper scripts and
30976 # restored at link time.
30977 variables_saved_for_relink=$lt_variables_saved_for_relink
30978
30979 # Do we need the "lib" prefix for modules?
30980 need_lib_prefix=$need_lib_prefix
30981
30982 # Do we need a version for libraries?
30983 need_version=$need_version
30984
30985 # Library versioning type.
30986 version_type=$version_type
30987
30988 # Shared library runtime path variable.
30989 runpath_var=$runpath_var
30990
30991 # Shared library path variable.
30992 shlibpath_var=$shlibpath_var
30993
30994 # Is shlibpath searched before the hard-coded library search path?
30995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30996
30997 # Format of library name prefix.
30998 libname_spec=$lt_libname_spec
30999
31000 # List of archive names.  First name is the real one, the rest are links.
31001 # The last name is the one that the linker finds with -lNAME
31002 library_names_spec=$lt_library_names_spec
31003
31004 # The coded name of the library, if different from the real name.
31005 soname_spec=$lt_soname_spec
31006
31007 # Command to use after installation of a shared archive.
31008 postinstall_cmds=$lt_postinstall_cmds
31009
31010 # Command to use after uninstallation of a shared archive.
31011 postuninstall_cmds=$lt_postuninstall_cmds
31012
31013 # Commands used to finish a libtool library installation in a directory.
31014 finish_cmds=$lt_finish_cmds
31015
31016 # As "finish_cmds", except a single script fragment to be evaled but
31017 # not shown.
31018 finish_eval=$lt_finish_eval
31019
31020 # Whether we should hardcode library paths into libraries.
31021 hardcode_into_libs=$hardcode_into_libs
31022
31023 # Compile-time system search path for libraries.
31024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31025
31026 # Run-time system search path for libraries.
31027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31028
31029 # Whether dlopen is supported.
31030 dlopen_support=$enable_dlopen
31031
31032 # Whether dlopen of programs is supported.
31033 dlopen_self=$enable_dlopen_self
31034
31035 # Whether dlopen of statically linked programs is supported.
31036 dlopen_self_static=$enable_dlopen_self_static
31037
31038 # Commands to strip libraries.
31039 old_striplib=$lt_old_striplib
31040 striplib=$lt_striplib
31041
31042
31043 # The linker used to build libraries.
31044 LD=$lt_LD
31045
31046 # Commands used to build an old-style archive.
31047 old_archive_cmds=$lt_old_archive_cmds
31048
31049 # A language specific compiler.
31050 CC=$lt_compiler
31051
31052 # Is the compiler the GNU compiler?
31053 with_gcc=$GCC
31054
31055 # Compiler flag to turn off builtin functions.
31056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31057
31058 # How to pass a linker flag through the compiler.
31059 wl=$lt_lt_prog_compiler_wl
31060
31061 # Additional compiler flags for building library objects.
31062 pic_flag=$lt_lt_prog_compiler_pic
31063
31064 # Compiler flag to prevent dynamic linking.
31065 link_static_flag=$lt_lt_prog_compiler_static
31066
31067 # Does compiler simultaneously support -c and -o options?
31068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31069
31070 # Whether or not to add -lc for building shared libraries.
31071 build_libtool_need_lc=$archive_cmds_need_lc
31072
31073 # Whether or not to disallow shared libs when runtime libs are static.
31074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31075
31076 # Compiler flag to allow reflexive dlopens.
31077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31078
31079 # Compiler flag to generate shared objects directly from archives.
31080 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31081
31082 # Whether the compiler copes with passing no objects directly.
31083 compiler_needs_object=$lt_compiler_needs_object
31084
31085 # Create an old-style archive from a shared archive.
31086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31087
31088 # Create a temporary old-style archive to link instead of a shared archive.
31089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31090
31091 # Commands used to build a shared archive.
31092 archive_cmds=$lt_archive_cmds
31093 archive_expsym_cmds=$lt_archive_expsym_cmds
31094
31095 # Commands used to build a loadable module if different from building
31096 # a shared archive.
31097 module_cmds=$lt_module_cmds
31098 module_expsym_cmds=$lt_module_expsym_cmds
31099
31100 # Whether we are building with GNU ld or not.
31101 with_gnu_ld=$lt_with_gnu_ld
31102
31103 # Flag that allows shared libraries with undefined symbols to be built.
31104 allow_undefined_flag=$lt_allow_undefined_flag
31105
31106 # Flag that enforces no undefined symbols.
31107 no_undefined_flag=$lt_no_undefined_flag
31108
31109 # Flag to hardcode \$libdir into a binary during linking.
31110 # This must work even if \$libdir does not exist
31111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31112
31113 # If ld is used when linking, flag to hardcode \$libdir into a binary
31114 # during linking.  This must work even if \$libdir does not exist.
31115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31116
31117 # Whether we need a single "-rpath" flag with a separated argument.
31118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31119
31120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31121 # DIR into the resulting binary.
31122 hardcode_direct=$hardcode_direct
31123
31124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31125 # DIR into the resulting binary and the resulting library dependency is
31126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31127 # library is relocated.
31128 hardcode_direct_absolute=$hardcode_direct_absolute
31129
31130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31131 # into the resulting binary.
31132 hardcode_minus_L=$hardcode_minus_L
31133
31134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31135 # into the resulting binary.
31136 hardcode_shlibpath_var=$hardcode_shlibpath_var
31137
31138 # Set to "yes" if building a shared library automatically hardcodes DIR
31139 # into the library and all subsequent libraries and executables linked
31140 # against it.
31141 hardcode_automatic=$hardcode_automatic
31142
31143 # Set to yes if linker adds runtime paths of dependent libraries
31144 # to runtime path list.
31145 inherit_rpath=$inherit_rpath
31146
31147 # Whether libtool must link a program against all its dependency libraries.
31148 link_all_deplibs=$link_all_deplibs
31149
31150 # Fix the shell variable \$srcfile for the compiler.
31151 fix_srcfile_path=$lt_fix_srcfile_path
31152
31153 # Set to "yes" if exported symbols are required.
31154 always_export_symbols=$always_export_symbols
31155
31156 # The commands to list exported symbols.
31157 export_symbols_cmds=$lt_export_symbols_cmds
31158
31159 # Symbols that should not be listed in the preloaded symbols.
31160 exclude_expsyms=$lt_exclude_expsyms
31161
31162 # Symbols that must always be exported.
31163 include_expsyms=$lt_include_expsyms
31164
31165 # Commands necessary for linking programs (against libraries) with templates.
31166 prelink_cmds=$lt_prelink_cmds
31167
31168 # Specify filename containing input files.
31169 file_list_spec=$lt_file_list_spec
31170
31171 # How to hardcode a shared library path into an executable.
31172 hardcode_action=$hardcode_action
31173
31174 # The directories searched by this compiler when creating a shared library.
31175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31176
31177 # Dependencies to place before and after the objects being linked to
31178 # create a shared library.
31179 predep_objects=$lt_predep_objects
31180 postdep_objects=$lt_postdep_objects
31181 predeps=$lt_predeps
31182 postdeps=$lt_postdeps
31183
31184 # The library search path used internally by the compiler when linking
31185 # a shared library.
31186 compiler_lib_search_path=$lt_compiler_lib_search_path
31187
31188 # ### END LIBTOOL CONFIG
31189
31190 _LT_EOF
31191
31192   case $host_os in
31193   aix3*)
31194     cat <<\_LT_EOF >> "$cfgfile"
31195 # AIX sometimes has problems with the GCC collect2 program.  For some
31196 # reason, if we set the COLLECT_NAMES environment variable, the problems
31197 # vanish in a puff of smoke.
31198 if test "X${COLLECT_NAMES+set}" != Xset; then
31199   COLLECT_NAMES=
31200   export COLLECT_NAMES
31201 fi
31202 _LT_EOF
31203     ;;
31204   esac
31205
31206
31207 ltmain="$ac_aux_dir/ltmain.sh"
31208
31209
31210   # We use sed instead of cat because bash on DJGPP gets confused if
31211   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31212   # text mode, it properly converts lines to CR/LF.  This bash problem
31213   # is reportedly fixed, but why not run on old versions too?
31214   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31215     || (rm -f "$cfgfile"; exit 1)
31216
31217   case $xsi_shell in
31218   yes)
31219     cat << \_LT_EOF >> "$cfgfile"
31220
31221 # func_dirname file append nondir_replacement
31222 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31223 # otherwise set result to NONDIR_REPLACEMENT.
31224 func_dirname ()
31225 {
31226   case ${1} in
31227     */*) func_dirname_result="${1%/*}${2}" ;;
31228     *  ) func_dirname_result="${3}" ;;
31229   esac
31230 }
31231
31232 # func_basename file
31233 func_basename ()
31234 {
31235   func_basename_result="${1##*/}"
31236 }
31237
31238 # func_dirname_and_basename file append nondir_replacement
31239 # perform func_basename and func_dirname in a single function
31240 # call:
31241 #   dirname:  Compute the dirname of FILE.  If nonempty,
31242 #             add APPEND to the result, otherwise set result
31243 #             to NONDIR_REPLACEMENT.
31244 #             value returned in "$func_dirname_result"
31245 #   basename: Compute filename of FILE.
31246 #             value retuned in "$func_basename_result"
31247 # Implementation must be kept synchronized with func_dirname
31248 # and func_basename. For efficiency, we do not delegate to
31249 # those functions but instead duplicate the functionality here.
31250 func_dirname_and_basename ()
31251 {
31252   case ${1} in
31253     */*) func_dirname_result="${1%/*}${2}" ;;
31254     *  ) func_dirname_result="${3}" ;;
31255   esac
31256   func_basename_result="${1##*/}"
31257 }
31258
31259 # func_stripname prefix suffix name
31260 # strip PREFIX and SUFFIX off of NAME.
31261 # PREFIX and SUFFIX must not contain globbing or regex special
31262 # characters, hashes, percent signs, but SUFFIX may contain a leading
31263 # dot (in which case that matches only a dot).
31264 func_stripname ()
31265 {
31266   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31267   # positional parameters, so assign one to ordinary parameter first.
31268   func_stripname_result=${3}
31269   func_stripname_result=${func_stripname_result#"${1}"}
31270   func_stripname_result=${func_stripname_result%"${2}"}
31271 }
31272
31273 # func_opt_split
31274 func_opt_split ()
31275 {
31276   func_opt_split_opt=${1%%=*}
31277   func_opt_split_arg=${1#*=}
31278 }
31279
31280 # func_lo2o object
31281 func_lo2o ()
31282 {
31283   case ${1} in
31284     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31285     *)    func_lo2o_result=${1} ;;
31286   esac
31287 }
31288
31289 # func_xform libobj-or-source
31290 func_xform ()
31291 {
31292   func_xform_result=${1%.*}.lo
31293 }
31294
31295 # func_arith arithmetic-term...
31296 func_arith ()
31297 {
31298   func_arith_result=$(( $* ))
31299 }
31300
31301 # func_len string
31302 # STRING may not start with a hyphen.
31303 func_len ()
31304 {
31305   func_len_result=${#1}
31306 }
31307
31308 _LT_EOF
31309     ;;
31310   *) # Bourne compatible functions.
31311     cat << \_LT_EOF >> "$cfgfile"
31312
31313 # func_dirname file append nondir_replacement
31314 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31315 # otherwise set result to NONDIR_REPLACEMENT.
31316 func_dirname ()
31317 {
31318   # Extract subdirectory from the argument.
31319   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31320   if test "X$func_dirname_result" = "X${1}"; then
31321     func_dirname_result="${3}"
31322   else
31323     func_dirname_result="$func_dirname_result${2}"
31324   fi
31325 }
31326
31327 # func_basename file
31328 func_basename ()
31329 {
31330   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31331 }
31332
31333
31334 # func_stripname prefix suffix name
31335 # strip PREFIX and SUFFIX off of NAME.
31336 # PREFIX and SUFFIX must not contain globbing or regex special
31337 # characters, hashes, percent signs, but SUFFIX may contain a leading
31338 # dot (in which case that matches only a dot).
31339 # func_strip_suffix prefix name
31340 func_stripname ()
31341 {
31342   case ${2} in
31343     .*) func_stripname_result=`$ECHO "X${3}" \
31344            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31345     *)  func_stripname_result=`$ECHO "X${3}" \
31346            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31347   esac
31348 }
31349
31350 # sed scripts:
31351 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31352 my_sed_long_arg='1s/^-[^=]*=//'
31353
31354 # func_opt_split
31355 func_opt_split ()
31356 {
31357   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31358   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31359 }
31360
31361 # func_lo2o object
31362 func_lo2o ()
31363 {
31364   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31365 }
31366
31367 # func_xform libobj-or-source
31368 func_xform ()
31369 {
31370   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31371 }
31372
31373 # func_arith arithmetic-term...
31374 func_arith ()
31375 {
31376   func_arith_result=`expr "$@"`
31377 }
31378
31379 # func_len string
31380 # STRING may not start with a hyphen.
31381 func_len ()
31382 {
31383   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31384 }
31385
31386 _LT_EOF
31387 esac
31388
31389 case $lt_shell_append in
31390   yes)
31391     cat << \_LT_EOF >> "$cfgfile"
31392
31393 # func_append var value
31394 # Append VALUE to the end of shell variable VAR.
31395 func_append ()
31396 {
31397   eval "$1+=\$2"
31398 }
31399 _LT_EOF
31400     ;;
31401   *)
31402     cat << \_LT_EOF >> "$cfgfile"
31403
31404 # func_append var value
31405 # Append VALUE to the end of shell variable VAR.
31406 func_append ()
31407 {
31408   eval "$1=\$$1\$2"
31409 }
31410
31411 _LT_EOF
31412     ;;
31413   esac
31414
31415
31416   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31417     || (rm -f "$cfgfile"; exit 1)
31418
31419   mv -f "$cfgfile" "$ofile" ||
31420     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31421   chmod +x "$ofile"
31422
31423
31424     cat <<_LT_EOF >> "$ofile"
31425
31426 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31427
31428 # The linker used to build libraries.
31429 LD=$lt_LD_CXX
31430
31431 # Commands used to build an old-style archive.
31432 old_archive_cmds=$lt_old_archive_cmds_CXX
31433
31434 # A language specific compiler.
31435 CC=$lt_compiler_CXX
31436
31437 # Is the compiler the GNU compiler?
31438 with_gcc=$GCC_CXX
31439
31440 # Compiler flag to turn off builtin functions.
31441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31442
31443 # How to pass a linker flag through the compiler.
31444 wl=$lt_lt_prog_compiler_wl_CXX
31445
31446 # Additional compiler flags for building library objects.
31447 pic_flag=$lt_lt_prog_compiler_pic_CXX
31448
31449 # Compiler flag to prevent dynamic linking.
31450 link_static_flag=$lt_lt_prog_compiler_static_CXX
31451
31452 # Does compiler simultaneously support -c and -o options?
31453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31454
31455 # Whether or not to add -lc for building shared libraries.
31456 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31457
31458 # Whether or not to disallow shared libs when runtime libs are static.
31459 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31460
31461 # Compiler flag to allow reflexive dlopens.
31462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31463
31464 # Compiler flag to generate shared objects directly from archives.
31465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31466
31467 # Whether the compiler copes with passing no objects directly.
31468 compiler_needs_object=$lt_compiler_needs_object_CXX
31469
31470 # Create an old-style archive from a shared archive.
31471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31472
31473 # Create a temporary old-style archive to link instead of a shared archive.
31474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31475
31476 # Commands used to build a shared archive.
31477 archive_cmds=$lt_archive_cmds_CXX
31478 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31479
31480 # Commands used to build a loadable module if different from building
31481 # a shared archive.
31482 module_cmds=$lt_module_cmds_CXX
31483 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31484
31485 # Whether we are building with GNU ld or not.
31486 with_gnu_ld=$lt_with_gnu_ld_CXX
31487
31488 # Flag that allows shared libraries with undefined symbols to be built.
31489 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31490
31491 # Flag that enforces no undefined symbols.
31492 no_undefined_flag=$lt_no_undefined_flag_CXX
31493
31494 # Flag to hardcode \$libdir into a binary during linking.
31495 # This must work even if \$libdir does not exist
31496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31497
31498 # If ld is used when linking, flag to hardcode \$libdir into a binary
31499 # during linking.  This must work even if \$libdir does not exist.
31500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31501
31502 # Whether we need a single "-rpath" flag with a separated argument.
31503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31504
31505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31506 # DIR into the resulting binary.
31507 hardcode_direct=$hardcode_direct_CXX
31508
31509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31510 # DIR into the resulting binary and the resulting library dependency is
31511 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31512 # library is relocated.
31513 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31514
31515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31516 # into the resulting binary.
31517 hardcode_minus_L=$hardcode_minus_L_CXX
31518
31519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31520 # into the resulting binary.
31521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31522
31523 # Set to "yes" if building a shared library automatically hardcodes DIR
31524 # into the library and all subsequent libraries and executables linked
31525 # against it.
31526 hardcode_automatic=$hardcode_automatic_CXX
31527
31528 # Set to yes if linker adds runtime paths of dependent libraries
31529 # to runtime path list.
31530 inherit_rpath=$inherit_rpath_CXX
31531
31532 # Whether libtool must link a program against all its dependency libraries.
31533 link_all_deplibs=$link_all_deplibs_CXX
31534
31535 # Fix the shell variable \$srcfile for the compiler.
31536 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31537
31538 # Set to "yes" if exported symbols are required.
31539 always_export_symbols=$always_export_symbols_CXX
31540
31541 # The commands to list exported symbols.
31542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31543
31544 # Symbols that should not be listed in the preloaded symbols.
31545 exclude_expsyms=$lt_exclude_expsyms_CXX
31546
31547 # Symbols that must always be exported.
31548 include_expsyms=$lt_include_expsyms_CXX
31549
31550 # Commands necessary for linking programs (against libraries) with templates.
31551 prelink_cmds=$lt_prelink_cmds_CXX
31552
31553 # Specify filename containing input files.
31554 file_list_spec=$lt_file_list_spec_CXX
31555
31556 # How to hardcode a shared library path into an executable.
31557 hardcode_action=$hardcode_action_CXX
31558
31559 # The directories searched by this compiler when creating a shared library.
31560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31561
31562 # Dependencies to place before and after the objects being linked to
31563 # create a shared library.
31564 predep_objects=$lt_predep_objects_CXX
31565 postdep_objects=$lt_postdep_objects_CXX
31566 predeps=$lt_predeps_CXX
31567 postdeps=$lt_postdeps_CXX
31568
31569 # The library search path used internally by the compiler when linking
31570 # a shared library.
31571 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31572
31573 # ### END LIBTOOL TAG CONFIG: CXX
31574 _LT_EOF
31575
31576
31577     cat <<_LT_EOF >> "$ofile"
31578
31579 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31580
31581 # The linker used to build libraries.
31582 LD=$lt_LD_GCJ
31583
31584 # Commands used to build an old-style archive.
31585 old_archive_cmds=$lt_old_archive_cmds_GCJ
31586
31587 # A language specific compiler.
31588 CC=$lt_compiler_GCJ
31589
31590 # Is the compiler the GNU compiler?
31591 with_gcc=$GCC_GCJ
31592
31593 # Compiler flag to turn off builtin functions.
31594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31595
31596 # How to pass a linker flag through the compiler.
31597 wl=$lt_lt_prog_compiler_wl_GCJ
31598
31599 # Additional compiler flags for building library objects.
31600 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31601
31602 # Compiler flag to prevent dynamic linking.
31603 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31604
31605 # Does compiler simultaneously support -c and -o options?
31606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31607
31608 # Whether or not to add -lc for building shared libraries.
31609 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31610
31611 # Whether or not to disallow shared libs when runtime libs are static.
31612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31613
31614 # Compiler flag to allow reflexive dlopens.
31615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31616
31617 # Compiler flag to generate shared objects directly from archives.
31618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31619
31620 # Whether the compiler copes with passing no objects directly.
31621 compiler_needs_object=$lt_compiler_needs_object_GCJ
31622
31623 # Create an old-style archive from a shared archive.
31624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31625
31626 # Create a temporary old-style archive to link instead of a shared archive.
31627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31628
31629 # Commands used to build a shared archive.
31630 archive_cmds=$lt_archive_cmds_GCJ
31631 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31632
31633 # Commands used to build a loadable module if different from building
31634 # a shared archive.
31635 module_cmds=$lt_module_cmds_GCJ
31636 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31637
31638 # Whether we are building with GNU ld or not.
31639 with_gnu_ld=$lt_with_gnu_ld_GCJ
31640
31641 # Flag that allows shared libraries with undefined symbols to be built.
31642 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31643
31644 # Flag that enforces no undefined symbols.
31645 no_undefined_flag=$lt_no_undefined_flag_GCJ
31646
31647 # Flag to hardcode \$libdir into a binary during linking.
31648 # This must work even if \$libdir does not exist
31649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31650
31651 # If ld is used when linking, flag to hardcode \$libdir into a binary
31652 # during linking.  This must work even if \$libdir does not exist.
31653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31654
31655 # Whether we need a single "-rpath" flag with a separated argument.
31656 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31657
31658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31659 # DIR into the resulting binary.
31660 hardcode_direct=$hardcode_direct_GCJ
31661
31662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31663 # DIR into the resulting binary and the resulting library dependency is
31664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31665 # library is relocated.
31666 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31667
31668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31669 # into the resulting binary.
31670 hardcode_minus_L=$hardcode_minus_L_GCJ
31671
31672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31673 # into the resulting binary.
31674 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31675
31676 # Set to "yes" if building a shared library automatically hardcodes DIR
31677 # into the library and all subsequent libraries and executables linked
31678 # against it.
31679 hardcode_automatic=$hardcode_automatic_GCJ
31680
31681 # Set to yes if linker adds runtime paths of dependent libraries
31682 # to runtime path list.
31683 inherit_rpath=$inherit_rpath_GCJ
31684
31685 # Whether libtool must link a program against all its dependency libraries.
31686 link_all_deplibs=$link_all_deplibs_GCJ
31687
31688 # Fix the shell variable \$srcfile for the compiler.
31689 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31690
31691 # Set to "yes" if exported symbols are required.
31692 always_export_symbols=$always_export_symbols_GCJ
31693
31694 # The commands to list exported symbols.
31695 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31696
31697 # Symbols that should not be listed in the preloaded symbols.
31698 exclude_expsyms=$lt_exclude_expsyms_GCJ
31699
31700 # Symbols that must always be exported.
31701 include_expsyms=$lt_include_expsyms_GCJ
31702
31703 # Commands necessary for linking programs (against libraries) with templates.
31704 prelink_cmds=$lt_prelink_cmds_GCJ
31705
31706 # Specify filename containing input files.
31707 file_list_spec=$lt_file_list_spec_GCJ
31708
31709 # How to hardcode a shared library path into an executable.
31710 hardcode_action=$hardcode_action_GCJ
31711
31712 # The directories searched by this compiler when creating a shared library.
31713 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31714
31715 # Dependencies to place before and after the objects being linked to
31716 # create a shared library.
31717 predep_objects=$lt_predep_objects_GCJ
31718 postdep_objects=$lt_postdep_objects_GCJ
31719 predeps=$lt_predeps_GCJ
31720 postdeps=$lt_postdeps_GCJ
31721
31722 # The library search path used internally by the compiler when linking
31723 # a shared library.
31724 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31725
31726 # ### END LIBTOOL TAG CONFIG: GCJ
31727 _LT_EOF
31728
31729  ;;
31730   esac
31731 done
31732 _ACEOF
31733
31734 cat >>$CONFIG_STATUS <<\_ACEOF
31735
31736 { (exit 0); exit 0; }
31737 _ACEOF
31738 chmod +x $CONFIG_STATUS
31739 ac_clean_files=$ac_clean_files_save
31740
31741
31742 # configure is writing to config.log, and then calls config.status.
31743 # config.status does its own redirection, appending to config.log.
31744 # Unfortunately, on DOS this fails, as config.log is still kept open
31745 # by configure, so config.status won't be able to write to it; its
31746 # output is simply discarded.  So we exec the FD to /dev/null,
31747 # effectively closing config.log, so it can be properly (re)opened and
31748 # appended to by config.status.  When coming back to configure, we
31749 # need to make the FD available again.
31750 if test "$no_create" != yes; then
31751   ac_cs_success=:
31752   ac_config_status_args=
31753   test "$silent" = yes &&
31754     ac_config_status_args="$ac_config_status_args --quiet"
31755   exec 5>/dev/null
31756   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31757   exec 5>>config.log
31758   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31759   # would make configure fail if this is the last instruction.
31760   $ac_cs_success || { (exit 1); exit 1; }
31761 fi
31762
31763 #
31764 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31765 #
31766 if test "$no_recursion" != yes; then
31767
31768   # Remove --cache-file and --srcdir arguments so they do not pile up.
31769   ac_sub_configure_args=
31770   ac_prev=
31771   eval "set x $ac_configure_args"
31772   shift
31773   for ac_arg
31774   do
31775     if test -n "$ac_prev"; then
31776       ac_prev=
31777       continue
31778     fi
31779     case $ac_arg in
31780     -cache-file | --cache-file | --cache-fil | --cache-fi \
31781     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31782       ac_prev=cache_file ;;
31783     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31784     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31785     | --c=*)
31786       ;;
31787     --config-cache | -C)
31788       ;;
31789     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31790       ac_prev=srcdir ;;
31791     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31792       ;;
31793     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31794       ac_prev=prefix ;;
31795     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31796       ;;
31797     *)
31798       case $ac_arg in
31799       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31800       esac
31801       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31802     esac
31803   done
31804
31805   # Always prepend --prefix to ensure using the same prefix
31806   # in subdir configurations.
31807   ac_arg="--prefix=$prefix"
31808   case $ac_arg in
31809   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31810   esac
31811   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31812
31813   ac_popdir=`pwd`
31814   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31815
31816     # Do not complain, so a configure script can configure whichever
31817     # parts of a large source tree are present.
31818     test -d "$srcdir/$ac_dir" || continue
31819
31820     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31821 echo "$as_me: configuring in $ac_dir" >&6;}
31822     { if $as_mkdir_p; then
31823     mkdir -p "$ac_dir"
31824   else
31825     as_dir="$ac_dir"
31826     as_dirs=
31827     while test ! -d "$as_dir"; do
31828       as_dirs="$as_dir $as_dirs"
31829       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31831          X"$as_dir" : 'X\(//\)[^/]' \| \
31832          X"$as_dir" : 'X\(//\)$' \| \
31833          X"$as_dir" : 'X\(/\)' \| \
31834          .     : '\(.\)' 2>/dev/null ||
31835 echo X"$as_dir" |
31836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31837           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31838           /^X\(\/\/\)$/{ s//\1/; q; }
31839           /^X\(\/\).*/{ s//\1/; q; }
31840           s/.*/./; q'`
31841     done
31842     test ! -n "$as_dirs" || mkdir $as_dirs
31843   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31845    { (exit 1); exit 1; }; }; }
31846
31847     ac_builddir=.
31848
31849 if test "$ac_dir" != .; then
31850   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31851   # A "../" for each directory in $ac_dir_suffix.
31852   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31853 else
31854   ac_dir_suffix= ac_top_builddir=
31855 fi
31856
31857 case $srcdir in
31858   .)  # No --srcdir option.  We are building in place.
31859     ac_srcdir=.
31860     if test -z "$ac_top_builddir"; then
31861        ac_top_srcdir=.
31862     else
31863        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31864     fi ;;
31865   [\\/]* | ?:[\\/]* )  # Absolute path.
31866     ac_srcdir=$srcdir$ac_dir_suffix;
31867     ac_top_srcdir=$srcdir ;;
31868   *) # Relative path.
31869     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31870     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31871 esac
31872
31873 # Do not use `cd foo && pwd` to compute absolute paths, because
31874 # the directories may not exist.
31875 case `pwd` in
31876 .) ac_abs_builddir="$ac_dir";;
31877 *)
31878   case "$ac_dir" in
31879   .) ac_abs_builddir=`pwd`;;
31880   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31881   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31882   esac;;
31883 esac
31884 case $ac_abs_builddir in
31885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31886 *)
31887   case ${ac_top_builddir}. in
31888   .) ac_abs_top_builddir=$ac_abs_builddir;;
31889   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31890   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31891   esac;;
31892 esac
31893 case $ac_abs_builddir in
31894 .) ac_abs_srcdir=$ac_srcdir;;
31895 *)
31896   case $ac_srcdir in
31897   .) ac_abs_srcdir=$ac_abs_builddir;;
31898   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31899   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31900   esac;;
31901 esac
31902 case $ac_abs_builddir in
31903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31904 *)
31905   case $ac_top_srcdir in
31906   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31907   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31908   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31909   esac;;
31910 esac
31911
31912
31913     cd "$ac_dir"
31914
31915     # Check for guested configure; otherwise get Cygnus style configure.
31916     if test -f "$ac_srcdir/configure.gnu"; then
31917       ac_sub_configure=$ac_srcdir/configure.gnu
31918     elif test -f "$ac_srcdir/configure"; then
31919       ac_sub_configure=$ac_srcdir/configure
31920     elif test -f "$ac_srcdir/configure.in"; then
31921       # This should be Cygnus configure.
31922       ac_sub_configure=$ac_aux_dir/configure
31923     else
31924       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31926       ac_sub_configure=
31927     fi
31928
31929     # The recursion is here.
31930     if test -n "$ac_sub_configure"; then
31931       # Make the cache file name correct relative to the subdirectory.
31932       case $cache_file in
31933       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31934       *) # Relative path.
31935         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31936       esac
31937
31938       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31940       # The eval makes quoting arguments work.
31941       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31942            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31943         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31945    { (exit 1); exit 1; }; }
31946     fi
31947
31948     cd "$ac_popdir"
31949   done
31950 fi
31951