OSDN Git Service

2008-11-22 Tobias Burnus <burnus@net-b.de>
[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 SDK_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 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)
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)
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)
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       $RM conftest*
11223       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11224
11225       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226   (eval $ac_compile) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } 2>conftest.err; then
11230         soname=conftest
11231         lib=conftest
11232         libobjs=conftest.$ac_objext
11233         deplibs=
11234         wl=$lt_prog_compiler_wl
11235         pic_flag=$lt_prog_compiler_pic
11236         compiler_flags=-v
11237         linker_flags=-v
11238         verstring=
11239         output_objdir=.
11240         libname=conftest
11241         lt_save_allow_undefined_flag=$allow_undefined_flag
11242         allow_undefined_flag=
11243         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11244   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }
11248         then
11249           archive_cmds_need_lc=no
11250         else
11251           archive_cmds_need_lc=yes
11252         fi
11253         allow_undefined_flag=$lt_save_allow_undefined_flag
11254       else
11255         cat conftest.err 1>&5
11256       fi
11257       $RM conftest*
11258       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11259 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11260       ;;
11261     esac
11262   fi
11263   ;;
11264 esac
11265
11266
11267
11268
11269
11270
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   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11424
11425 if test "$GCC" = yes; then
11426   case $host_os in
11427     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11428     *) lt_awk_arg="/^libraries:/" ;;
11429   esac
11430   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11431   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11432     # if the path contains ";" then we assume it to be the separator
11433     # otherwise default to the standard path separator (i.e. ":") - it is
11434     # assumed that no part of a normal pathname contains ";" but that should
11435     # okay in the real world where ";" in dirpaths is itself problematic.
11436     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11437   else
11438     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11439   fi
11440   # Ok, now we have the path, separated by spaces, we can step through it
11441   # and add multilib dir if necessary.
11442   lt_tmp_lt_search_path_spec=
11443   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11444   for lt_sys_path in $lt_search_path_spec; do
11445     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11446       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11447     else
11448       test -d "$lt_sys_path" && \
11449         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11450     fi
11451   done
11452   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11453 BEGIN {RS=" "; FS="/|\n";} {
11454   lt_foo="";
11455   lt_count=0;
11456   for (lt_i = NF; lt_i > 0; lt_i--) {
11457     if ($lt_i != "" && $lt_i != ".") {
11458       if ($lt_i == "..") {
11459         lt_count++;
11460       } else {
11461         if (lt_count == 0) {
11462           lt_foo="/" $lt_i lt_foo;
11463         } else {
11464           lt_count--;
11465         }
11466       }
11467     }
11468   }
11469   if (lt_foo != "") { lt_freq[lt_foo]++; }
11470   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11471 }'`
11472   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11473 else
11474   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11475 fi
11476 library_names_spec=
11477 libname_spec='lib$name'
11478 soname_spec=
11479 shrext_cmds=".so"
11480 postinstall_cmds=
11481 postuninstall_cmds=
11482 finish_cmds=
11483 finish_eval=
11484 shlibpath_var=
11485 shlibpath_overrides_runpath=unknown
11486 version_type=none
11487 dynamic_linker="$host_os ld.so"
11488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11489 need_lib_prefix=unknown
11490 hardcode_into_libs=no
11491
11492 # when you set need_version to no, make sure it does not cause -set_version
11493 # flags to be left without arguments
11494 need_version=unknown
11495
11496 case $host_os in
11497 aix3*)
11498   version_type=linux
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11500   shlibpath_var=LIBPATH
11501
11502   # AIX 3 has no versioning support, so we append a major version to the name.
11503   soname_spec='${libname}${release}${shared_ext}$major'
11504   ;;
11505
11506 aix[4-9]*)
11507   version_type=linux
11508   need_lib_prefix=no
11509   need_version=no
11510   hardcode_into_libs=yes
11511   if test "$host_cpu" = ia64; then
11512     # AIX 5 supports IA64
11513     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11514     shlibpath_var=LD_LIBRARY_PATH
11515   else
11516     # With GCC up to 2.95.x, collect2 would create an import file
11517     # for dependence libraries.  The import file would start with
11518     # the line `#! .'.  This would cause the generated library to
11519     # depend on `.', always an invalid library.  This was fixed in
11520     # development snapshots of GCC prior to 3.0.
11521     case $host_os in
11522       aix4 | aix4.[01] | aix4.[01].*)
11523       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11524            echo ' yes '
11525            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11526         :
11527       else
11528         can_build_shared=no
11529       fi
11530       ;;
11531     esac
11532     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11533     # soname into executable. Probably we can add versioning support to
11534     # collect2, so additional links can be useful in future.
11535     if test "$aix_use_runtimelinking" = yes; then
11536       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11537       # instead of lib<name>.a to let people know that these are not
11538       # typical AIX shared libraries.
11539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540     else
11541       # We preserve .a as extension for shared libraries through AIX4.2
11542       # and later when we are not doing run time linking.
11543       library_names_spec='${libname}${release}.a $libname.a'
11544       soname_spec='${libname}${release}${shared_ext}$major'
11545     fi
11546     shlibpath_var=LIBPATH
11547   fi
11548   ;;
11549
11550 amigaos*)
11551   case $host_cpu in
11552   powerpc)
11553     # Since July 2007 AmigaOS4 officially supports .so libraries.
11554     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556     ;;
11557   m68k)
11558     library_names_spec='$libname.ixlibrary $libname.a'
11559     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11560     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'
11561     ;;
11562   esac
11563   ;;
11564
11565 beos*)
11566   library_names_spec='${libname}${shared_ext}'
11567   dynamic_linker="$host_os ld.so"
11568   shlibpath_var=LIBRARY_PATH
11569   ;;
11570
11571 bsdi[45]*)
11572   version_type=linux
11573   need_version=no
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575   soname_spec='${libname}${release}${shared_ext}$major'
11576   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11577   shlibpath_var=LD_LIBRARY_PATH
11578   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11579   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11580   # the default ld.so.conf also contains /usr/contrib/lib and
11581   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11582   # libtool to hard-code these into programs
11583   ;;
11584
11585 cygwin* | mingw* | pw32* | cegcc*)
11586   version_type=windows
11587   shrext_cmds=".dll"
11588   need_version=no
11589   need_lib_prefix=no
11590
11591   case $GCC,$host_os in
11592   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11593     library_names_spec='$libname.dll.a'
11594     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11595     postinstall_cmds='base_file=`basename \${file}`~
11596       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11597       dldir=$destdir/`dirname \$dlpath`~
11598       test -d \$dldir || mkdir -p \$dldir~
11599       $install_prog $dir/$dlname \$dldir/$dlname~
11600       chmod a+x \$dldir/$dlname~
11601       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11602         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11603       fi'
11604     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11605       dlpath=$dir/\$dldll~
11606        $RM \$dlpath'
11607     shlibpath_overrides_runpath=yes
11608
11609     case $host_os in
11610     cygwin*)
11611       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11612       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11613       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11614       ;;
11615     mingw* | cegcc*)
11616       # MinGW DLLs use traditional 'lib' prefix
11617       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11618       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11619       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11620         # It is most probably a Windows format PATH printed by
11621         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11622         # path with ; separators, and with drive letters. We can handle the
11623         # drive letters (cygwin fileutils understands them), so leave them,
11624         # especially as we might pass files found there to a mingw objdump,
11625         # which wouldn't understand a cygwinified path. Ahh.
11626         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11627       else
11628         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11629       fi
11630       ;;
11631     pw32*)
11632       # pw32 DLLs use 'pw' prefix rather than 'lib'
11633       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11634       ;;
11635     esac
11636     ;;
11637
11638   *)
11639     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11640     ;;
11641   esac
11642   dynamic_linker='Win32 ld.exe'
11643   # FIXME: first we should search . and the directory the executable is in
11644   shlibpath_var=PATH
11645   ;;
11646
11647 darwin* | rhapsody*)
11648   dynamic_linker="$host_os dyld"
11649   version_type=darwin
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11653   soname_spec='${libname}${release}${major}$shared_ext'
11654   shlibpath_overrides_runpath=yes
11655   shlibpath_var=DYLD_LIBRARY_PATH
11656   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11657
11658   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11660   ;;
11661
11662 dgux*)
11663   version_type=linux
11664   need_lib_prefix=no
11665   need_version=no
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11667   soname_spec='${libname}${release}${shared_ext}$major'
11668   shlibpath_var=LD_LIBRARY_PATH
11669   ;;
11670
11671 freebsd1*)
11672   dynamic_linker=no
11673   ;;
11674
11675 freebsd* | dragonfly*)
11676   # DragonFly does not have aout.  When/if they implement a new
11677   # versioning mechanism, adjust this.
11678   if test -x /usr/bin/objformat; then
11679     objformat=`/usr/bin/objformat`
11680   else
11681     case $host_os in
11682     freebsd[123]*) objformat=aout ;;
11683     *) objformat=elf ;;
11684     esac
11685   fi
11686   version_type=freebsd-$objformat
11687   case $version_type in
11688     freebsd-elf*)
11689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11690       need_version=no
11691       need_lib_prefix=no
11692       ;;
11693     freebsd-*)
11694       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11695       need_version=yes
11696       ;;
11697   esac
11698   shlibpath_var=LD_LIBRARY_PATH
11699   case $host_os in
11700   freebsd2*)
11701     shlibpath_overrides_runpath=yes
11702     ;;
11703   freebsd3.[01]* | freebsdelf3.[01]*)
11704     shlibpath_overrides_runpath=yes
11705     hardcode_into_libs=yes
11706     ;;
11707   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11708   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11709     shlibpath_overrides_runpath=no
11710     hardcode_into_libs=yes
11711     ;;
11712   *) # from 4.6 on, and DragonFly
11713     shlibpath_overrides_runpath=yes
11714     hardcode_into_libs=yes
11715     ;;
11716   esac
11717   ;;
11718
11719 gnu*)
11720   version_type=linux
11721   need_lib_prefix=no
11722   need_version=no
11723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11724   soname_spec='${libname}${release}${shared_ext}$major'
11725   shlibpath_var=LD_LIBRARY_PATH
11726   hardcode_into_libs=yes
11727   ;;
11728
11729 hpux9* | hpux10* | hpux11*)
11730   # Give a soname corresponding to the major version so that dld.sl refuses to
11731   # link against other versions.
11732   version_type=sunos
11733   need_lib_prefix=no
11734   need_version=no
11735   case $host_cpu in
11736   ia64*)
11737     shrext_cmds='.so'
11738     hardcode_into_libs=yes
11739     dynamic_linker="$host_os dld.so"
11740     shlibpath_var=LD_LIBRARY_PATH
11741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743     soname_spec='${libname}${release}${shared_ext}$major'
11744     if test "X$HPUX_IA64_MODE" = X32; then
11745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11746     else
11747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11748     fi
11749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750     ;;
11751   hppa*64*)
11752     shrext_cmds='.sl'
11753     hardcode_into_libs=yes
11754     dynamic_linker="$host_os dld.sl"
11755     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758     soname_spec='${libname}${release}${shared_ext}$major'
11759     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11760     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11761     ;;
11762   *)
11763     shrext_cmds='.sl'
11764     dynamic_linker="$host_os dld.sl"
11765     shlibpath_var=SHLIB_PATH
11766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768     soname_spec='${libname}${release}${shared_ext}$major'
11769     ;;
11770   esac
11771   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11772   postinstall_cmds='chmod 555 $lib'
11773   ;;
11774
11775 interix[3-9]*)
11776   version_type=linux
11777   need_lib_prefix=no
11778   need_version=no
11779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11780   soname_spec='${libname}${release}${shared_ext}$major'
11781   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11782   shlibpath_var=LD_LIBRARY_PATH
11783   shlibpath_overrides_runpath=no
11784   hardcode_into_libs=yes
11785   ;;
11786
11787 irix5* | irix6* | nonstopux*)
11788   case $host_os in
11789     nonstopux*) version_type=nonstopux ;;
11790     *)
11791         if test "$lt_cv_prog_gnu_ld" = yes; then
11792                 version_type=linux
11793         else
11794                 version_type=irix
11795         fi ;;
11796   esac
11797   need_lib_prefix=no
11798   need_version=no
11799   soname_spec='${libname}${release}${shared_ext}$major'
11800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11801   case $host_os in
11802   irix5* | nonstopux*)
11803     libsuff= shlibsuff=
11804     ;;
11805   *)
11806     case $LD in # libtool.m4 will add one of these switches to LD
11807     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11808       libsuff= shlibsuff= libmagic=32-bit;;
11809     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11810       libsuff=32 shlibsuff=N32 libmagic=N32;;
11811     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11812       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11813     *) libsuff= shlibsuff= libmagic=never-match;;
11814     esac
11815     ;;
11816   esac
11817   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11818   shlibpath_overrides_runpath=no
11819   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11820   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11821   hardcode_into_libs=yes
11822   ;;
11823
11824 # No shared lib support for Linux oldld, aout, or coff.
11825 linux*oldld* | linux*aout* | linux*coff*)
11826   dynamic_linker=no
11827   ;;
11828
11829 # This must be Linux ELF.
11830 linux* | k*bsd*-gnu)
11831   version_type=linux
11832   need_lib_prefix=no
11833   need_version=no
11834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835   soname_spec='${libname}${release}${shared_ext}$major'
11836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   shlibpath_overrides_runpath=no
11839   # Some binutils ld are patched to set DT_RUNPATH
11840   save_LDFLAGS=$LDFLAGS
11841   save_libdir=$libdir
11842   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11843        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11844   if test x$gcc_no_link = xyes; then
11845   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11847    { (exit 1); exit 1; }; }
11848 fi
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855
11856 int
11857 main ()
11858 {
11859
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866   (eval $ac_link) 2>conftest.er1
11867   ac_status=$?
11868   grep -v '^ *+' conftest.er1 >conftest.err
11869   rm -f conftest.er1
11870   cat conftest.err >&5
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } &&
11873          { ac_try='test -z "$ac_c_werror_flag"
11874                          || test ! -s conftest.err'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; } &&
11880          { ac_try='test -s conftest$ac_exeext'
11881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882   (eval $ac_try) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; }; then
11886   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11887   shlibpath_overrides_runpath=yes
11888 fi
11889
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 fi
11895 rm -f conftest.err conftest.$ac_objext \
11896       conftest$ac_exeext conftest.$ac_ext
11897   LDFLAGS=$save_LDFLAGS
11898   libdir=$save_libdir
11899
11900   # This implies no fast_install, which is unacceptable.
11901   # Some rework will be needed to allow for fast_install
11902   # before this can be enabled.
11903   hardcode_into_libs=yes
11904
11905   # Append ld.so.conf contents to the search path
11906   if test -f /etc/ld.so.conf; then
11907     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' ' '`
11908     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11909   fi
11910
11911   # We used to test for /lib/ld.so.1 and disable shared libraries on
11912   # powerpc, because MkLinux only supported shared libraries with the
11913   # GNU dynamic linker.  Since this was broken with cross compilers,
11914   # most powerpc-linux boxes support dynamic linking these days and
11915   # people can always --disable-shared, the test was removed, and we
11916   # assume the GNU/Linux dynamic linker is in use.
11917   dynamic_linker='GNU/Linux ld.so'
11918   ;;
11919
11920 netbsd*)
11921   version_type=sunos
11922   need_lib_prefix=no
11923   need_version=no
11924   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11926     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11927     dynamic_linker='NetBSD (a.out) ld.so'
11928   else
11929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11930     soname_spec='${libname}${release}${shared_ext}$major'
11931     dynamic_linker='NetBSD ld.elf_so'
11932   fi
11933   shlibpath_var=LD_LIBRARY_PATH
11934   shlibpath_overrides_runpath=yes
11935   hardcode_into_libs=yes
11936   ;;
11937
11938 newsos6)
11939   version_type=linux
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   shlibpath_overrides_runpath=yes
11943   ;;
11944
11945 *nto* | *qnx*)
11946   version_type=qnx
11947   need_lib_prefix=no
11948   need_version=no
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   soname_spec='${libname}${release}${shared_ext}$major'
11951   shlibpath_var=LD_LIBRARY_PATH
11952   shlibpath_overrides_runpath=no
11953   hardcode_into_libs=yes
11954   dynamic_linker='ldqnx.so'
11955   ;;
11956
11957 openbsd*)
11958   version_type=sunos
11959   sys_lib_dlsearch_path_spec="/usr/lib"
11960   need_lib_prefix=no
11961   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11962   case $host_os in
11963     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11964     *)                          need_version=no  ;;
11965   esac
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11967   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11970     case $host_os in
11971       openbsd2.[89] | openbsd2.[89].*)
11972         shlibpath_overrides_runpath=no
11973         ;;
11974       *)
11975         shlibpath_overrides_runpath=yes
11976         ;;
11977       esac
11978   else
11979     shlibpath_overrides_runpath=yes
11980   fi
11981   ;;
11982
11983 os2*)
11984   libname_spec='$name'
11985   shrext_cmds=".dll"
11986   need_lib_prefix=no
11987   library_names_spec='$libname${shared_ext} $libname.a'
11988   dynamic_linker='OS/2 ld.exe'
11989   shlibpath_var=LIBPATH
11990   ;;
11991
11992 osf3* | osf4* | osf5*)
11993   version_type=osf
11994   need_lib_prefix=no
11995   need_version=no
11996   soname_spec='${libname}${release}${shared_ext}$major'
11997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12000   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12001   ;;
12002
12003 rdos*)
12004   dynamic_linker=no
12005   ;;
12006
12007 solaris*)
12008   version_type=linux
12009   need_lib_prefix=no
12010   need_version=no
12011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012   soname_spec='${libname}${release}${shared_ext}$major'
12013   shlibpath_var=LD_LIBRARY_PATH
12014   shlibpath_overrides_runpath=yes
12015   hardcode_into_libs=yes
12016   # ldd complains unless libraries are executable
12017   postinstall_cmds='chmod +x $lib'
12018   ;;
12019
12020 sunos4*)
12021   version_type=sunos
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12023   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   shlibpath_overrides_runpath=yes
12026   if test "$with_gnu_ld" = yes; then
12027     need_lib_prefix=no
12028   fi
12029   need_version=yes
12030   ;;
12031
12032 sysv4 | sysv4.3*)
12033   version_type=linux
12034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12035   soname_spec='${libname}${release}${shared_ext}$major'
12036   shlibpath_var=LD_LIBRARY_PATH
12037   case $host_vendor in
12038     sni)
12039       shlibpath_overrides_runpath=no
12040       need_lib_prefix=no
12041       runpath_var=LD_RUN_PATH
12042       ;;
12043     siemens)
12044       need_lib_prefix=no
12045       ;;
12046     motorola)
12047       need_lib_prefix=no
12048       need_version=no
12049       shlibpath_overrides_runpath=no
12050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12051       ;;
12052   esac
12053   ;;
12054
12055 sysv4*MP*)
12056   if test -d /usr/nec ;then
12057     version_type=linux
12058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12059     soname_spec='$libname${shared_ext}.$major'
12060     shlibpath_var=LD_LIBRARY_PATH
12061   fi
12062   ;;
12063
12064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12065   version_type=freebsd-elf
12066   need_lib_prefix=no
12067   need_version=no
12068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12069   soname_spec='${libname}${release}${shared_ext}$major'
12070   shlibpath_var=LD_LIBRARY_PATH
12071   shlibpath_overrides_runpath=yes
12072   hardcode_into_libs=yes
12073   if test "$with_gnu_ld" = yes; then
12074     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12075   else
12076     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12077     case $host_os in
12078       sco3.2v5*)
12079         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12080         ;;
12081     esac
12082   fi
12083   sys_lib_dlsearch_path_spec='/usr/lib'
12084   ;;
12085
12086 tpf*)
12087   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12088   version_type=linux
12089   need_lib_prefix=no
12090   need_version=no
12091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092   shlibpath_var=LD_LIBRARY_PATH
12093   shlibpath_overrides_runpath=no
12094   hardcode_into_libs=yes
12095   ;;
12096
12097 uts4*)
12098   version_type=linux
12099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100   soname_spec='${libname}${release}${shared_ext}$major'
12101   shlibpath_var=LD_LIBRARY_PATH
12102   ;;
12103
12104 *)
12105   dynamic_linker=no
12106   ;;
12107 esac
12108 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12109 echo "${ECHO_T}$dynamic_linker" >&6
12110 test "$dynamic_linker" = no && can_build_shared=no
12111
12112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12113 if test "$GCC" = yes; then
12114   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12115 fi
12116
12117 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12118   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12119 fi
12120 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12121   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12122 fi
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
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   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12211 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12212 hardcode_action=
12213 if test -n "$hardcode_libdir_flag_spec" ||
12214    test -n "$runpath_var" ||
12215    test "X$hardcode_automatic" = "Xyes" ; then
12216
12217   # We can hardcode non-existent directories.
12218   if test "$hardcode_direct" != no &&
12219      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12220      # have to relink, otherwise we might link with an installed library
12221      # when we should be linking with a yet-to-be-installed one
12222      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12223      test "$hardcode_minus_L" != no; then
12224     # Linking always hardcodes the temporary library directory.
12225     hardcode_action=relink
12226   else
12227     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12228     hardcode_action=immediate
12229   fi
12230 else
12231   # We cannot hardcode anything, or else we can only hardcode existing
12232   # directories.
12233   hardcode_action=unsupported
12234 fi
12235 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12236 echo "${ECHO_T}$hardcode_action" >&6
12237
12238 if test "$hardcode_action" = relink ||
12239    test "$inherit_rpath" = yes; then
12240   # Fast installation is not supported
12241   enable_fast_install=no
12242 elif test "$shlibpath_overrides_runpath" = yes ||
12243      test "$enable_shared" = no; then
12244   # Fast installation is not necessary
12245   enable_fast_install=needless
12246 fi
12247
12248
12249
12250
12251
12252
12253   if test "x$enable_dlopen" != xyes; then
12254   enable_dlopen=unknown
12255   enable_dlopen_self=unknown
12256   enable_dlopen_self_static=unknown
12257 else
12258   lt_cv_dlopen=no
12259   lt_cv_dlopen_libs=
12260
12261   case $host_os in
12262   beos*)
12263     lt_cv_dlopen="load_add_on"
12264     lt_cv_dlopen_libs=
12265     lt_cv_dlopen_self=yes
12266     ;;
12267
12268   mingw* | pw32* | cegcc*)
12269     lt_cv_dlopen="LoadLibrary"
12270     lt_cv_dlopen_libs=
12271     ;;
12272
12273   cygwin*)
12274     lt_cv_dlopen="dlopen"
12275     lt_cv_dlopen_libs=
12276     ;;
12277
12278   darwin*)
12279   # if libdl is installed we need to link against it
12280     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-ldl  $LIBS"
12287 if test x$gcc_no_link = xyes; then
12288   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12290    { (exit 1); exit 1; }; }
12291 fi
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298
12299 /* Override any gcc2 internal prototype to avoid an error.  */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 /* We use char because int might match the return type of a gcc2
12304    builtin and then its argument prototype would still apply.  */
12305 char dlopen ();
12306 int
12307 main ()
12308 {
12309 dlopen ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316   (eval $ac_link) 2>conftest.er1
12317   ac_status=$?
12318   grep -v '^ *+' conftest.er1 >conftest.err
12319   rm -f conftest.er1
12320   cat conftest.err >&5
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -z "$ac_c_werror_flag"
12324                          || test ! -s conftest.err'
12325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326   (eval $ac_try) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; } &&
12330          { ac_try='test -s conftest$ac_exeext'
12331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332   (eval $ac_try) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }; }; then
12336   ac_cv_lib_dl_dlopen=yes
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341 ac_cv_lib_dl_dlopen=no
12342 fi
12343 rm -f conftest.err conftest.$ac_objext \
12344       conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12349 if test $ac_cv_lib_dl_dlopen = yes; then
12350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12351 else
12352
12353     lt_cv_dlopen="dyld"
12354     lt_cv_dlopen_libs=
12355     lt_cv_dlopen_self=yes
12356
12357 fi
12358
12359     ;;
12360
12361   *)
12362     echo "$as_me:$LINENO: checking for shl_load" >&5
12363 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12364 if test "${ac_cv_func_shl_load+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   if test x$gcc_no_link = xyes; then
12368   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12370    { (exit 1); exit 1; }; }
12371 fi
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h.  */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h.  */
12378 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12380 #define shl_load innocuous_shl_load
12381
12382 /* System header to define __stub macros and hopefully few prototypes,
12383     which can conflict with char shl_load (); below.
12384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12385     <limits.h> exists even on freestanding compilers.  */
12386
12387 #ifdef __STDC__
12388 # include <limits.h>
12389 #else
12390 # include <assert.h>
12391 #endif
12392
12393 #undef shl_load
12394
12395 /* Override any gcc2 internal prototype to avoid an error.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 {
12399 #endif
12400 /* We use char because int might match the return type of a gcc2
12401    builtin and then its argument prototype would still apply.  */
12402 char shl_load ();
12403 /* The GNU C library defines this for functions which it implements
12404     to always fail with ENOSYS.  Some functions are actually named
12405     something starting with __ and the normal name is an alias.  */
12406 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12407 choke me
12408 #else
12409 char (*f) () = shl_load;
12410 #endif
12411 #ifdef __cplusplus
12412 }
12413 #endif
12414
12415 int
12416 main ()
12417 {
12418 return f != shl_load;
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425   (eval $ac_link) 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -z "$ac_c_werror_flag"
12433                          || test ! -s conftest.err'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; } &&
12439          { ac_try='test -s conftest$ac_exeext'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_func_shl_load=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 ac_cv_func_shl_load=no
12451 fi
12452 rm -f conftest.err conftest.$ac_objext \
12453       conftest$ac_exeext conftest.$ac_ext
12454 fi
12455 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12456 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12457 if test $ac_cv_func_shl_load = yes; then
12458   lt_cv_dlopen="shl_load"
12459 else
12460   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12461 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-ldld  $LIBS"
12467 if test x$gcc_no_link = xyes; then
12468   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12470    { (exit 1); exit 1; }; }
12471 fi
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h.  */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h.  */
12478
12479 /* Override any gcc2 internal prototype to avoid an error.  */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 /* We use char because int might match the return type of a gcc2
12484    builtin and then its argument prototype would still apply.  */
12485 char shl_load ();
12486 int
12487 main ()
12488 {
12489 shl_load ();
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496   (eval $ac_link) 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -z "$ac_c_werror_flag"
12504                          || test ! -s conftest.err'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; } &&
12510          { ac_try='test -s conftest$ac_exeext'
12511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512   (eval $ac_try) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; }; then
12516   ac_cv_lib_dld_shl_load=yes
12517 else
12518   echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 ac_cv_lib_dld_shl_load=no
12522 fi
12523 rm -f conftest.err conftest.$ac_objext \
12524       conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12526 fi
12527 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12528 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12529 if test $ac_cv_lib_dld_shl_load = yes; then
12530   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12531 else
12532   echo "$as_me:$LINENO: checking for dlopen" >&5
12533 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12534 if test "${ac_cv_func_dlopen+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   if test x$gcc_no_link = xyes; then
12538   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12540    { (exit 1); exit 1; }; }
12541 fi
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12550 #define dlopen innocuous_dlopen
12551
12552 /* System header to define __stub macros and hopefully few prototypes,
12553     which can conflict with char dlopen (); below.
12554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12555     <limits.h> exists even on freestanding compilers.  */
12556
12557 #ifdef __STDC__
12558 # include <limits.h>
12559 #else
12560 # include <assert.h>
12561 #endif
12562
12563 #undef dlopen
12564
12565 /* Override any gcc2 internal prototype to avoid an error.  */
12566 #ifdef __cplusplus
12567 extern "C"
12568 {
12569 #endif
12570 /* We use char because int might match the return type of a gcc2
12571    builtin and then its argument prototype would still apply.  */
12572 char dlopen ();
12573 /* The GNU C library defines this for functions which it implements
12574     to always fail with ENOSYS.  Some functions are actually named
12575     something starting with __ and the normal name is an alias.  */
12576 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12577 choke me
12578 #else
12579 char (*f) () = dlopen;
12580 #endif
12581 #ifdef __cplusplus
12582 }
12583 #endif
12584
12585 int
12586 main ()
12587 {
12588 return f != dlopen;
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_c_werror_flag"
12603                          || test ! -s conftest.err'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611   (eval $ac_try) 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; }; then
12615   ac_cv_func_dlopen=yes
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ac_cv_func_dlopen=no
12621 fi
12622 rm -f conftest.err conftest.$ac_objext \
12623       conftest$ac_exeext conftest.$ac_ext
12624 fi
12625 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12627 if test $ac_cv_func_dlopen = yes; then
12628   lt_cv_dlopen="dlopen"
12629 else
12630   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-ldl  $LIBS"
12637 if test x$gcc_no_link = xyes; then
12638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12640    { (exit 1); exit 1; }; }
12641 fi
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648
12649 /* Override any gcc2 internal prototype to avoid an error.  */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654    builtin and then its argument prototype would still apply.  */
12655 char dlopen ();
12656 int
12657 main ()
12658 {
12659 dlopen ();
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666   (eval $ac_link) 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -z "$ac_c_werror_flag"
12674                          || test ! -s conftest.err'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; } &&
12680          { ac_try='test -s conftest$ac_exeext'
12681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682   (eval $ac_try) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   ac_cv_lib_dl_dlopen=yes
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 ac_cv_lib_dl_dlopen=no
12692 fi
12693 rm -f conftest.err conftest.$ac_objext \
12694       conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12696 fi
12697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12699 if test $ac_cv_lib_dl_dlopen = yes; then
12700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12701 else
12702   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12703 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12704 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12705   echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707   ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-lsvld  $LIBS"
12709 if test x$gcc_no_link = xyes; then
12710   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12712    { (exit 1); exit 1; }; }
12713 fi
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720
12721 /* Override any gcc2 internal prototype to avoid an error.  */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 /* We use char because int might match the return type of a gcc2
12726    builtin and then its argument prototype would still apply.  */
12727 char dlopen ();
12728 int
12729 main ()
12730 {
12731 dlopen ();
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12738   (eval $ac_link) 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } &&
12745          { ac_try='test -z "$ac_c_werror_flag"
12746                          || test ! -s conftest.err'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; } &&
12752          { ac_try='test -s conftest$ac_exeext'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; }; then
12758   ac_cv_lib_svld_dlopen=yes
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_cv_lib_svld_dlopen=no
12764 fi
12765 rm -f conftest.err conftest.$ac_objext \
12766       conftest$ac_exeext conftest.$ac_ext
12767 LIBS=$ac_check_lib_save_LIBS
12768 fi
12769 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12770 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12771 if test $ac_cv_lib_svld_dlopen = yes; then
12772   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12773 else
12774   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12775 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12776 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-ldld  $LIBS"
12781 if test x$gcc_no_link = xyes; then
12782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12784    { (exit 1); exit 1; }; }
12785 fi
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792
12793 /* Override any gcc2 internal prototype to avoid an error.  */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 /* We use char because int might match the return type of a gcc2
12798    builtin and then its argument prototype would still apply.  */
12799 char dld_link ();
12800 int
12801 main ()
12802 {
12803 dld_link ();
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810   (eval $ac_link) 2>conftest.er1
12811   ac_status=$?
12812   grep -v '^ *+' conftest.er1 >conftest.err
12813   rm -f conftest.er1
12814   cat conftest.err >&5
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -z "$ac_c_werror_flag"
12818                          || test ! -s conftest.err'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; } &&
12824          { ac_try='test -s conftest$ac_exeext'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; }; then
12830   ac_cv_lib_dld_dld_link=yes
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_lib_dld_dld_link=no
12836 fi
12837 rm -f conftest.err conftest.$ac_objext \
12838       conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12842 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12843 if test $ac_cv_lib_dld_dld_link = yes; then
12844   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12845 fi
12846
12847
12848 fi
12849
12850
12851 fi
12852
12853
12854 fi
12855
12856
12857 fi
12858
12859
12860 fi
12861
12862     ;;
12863   esac
12864
12865   if test "x$lt_cv_dlopen" != xno; then
12866     enable_dlopen=yes
12867   else
12868     enable_dlopen=no
12869   fi
12870
12871   case $lt_cv_dlopen in
12872   dlopen)
12873     save_CPPFLAGS="$CPPFLAGS"
12874     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12875
12876     save_LDFLAGS="$LDFLAGS"
12877     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12878
12879     save_LIBS="$LIBS"
12880     LIBS="$lt_cv_dlopen_libs $LIBS"
12881
12882     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12883 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12884 if test "${lt_cv_dlopen_self+set}" = set; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887           if test "$cross_compiling" = yes; then :
12888   lt_cv_dlopen_self=cross
12889 else
12890   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12891   lt_status=$lt_dlunknown
12892   cat > conftest.$ac_ext <<_LT_EOF
12893 #line 12893 "configure"
12894 #include "confdefs.h"
12895
12896 #if HAVE_DLFCN_H
12897 #include <dlfcn.h>
12898 #endif
12899
12900 #include <stdio.h>
12901
12902 #ifdef RTLD_GLOBAL
12903 #  define LT_DLGLOBAL           RTLD_GLOBAL
12904 #else
12905 #  ifdef DL_GLOBAL
12906 #    define LT_DLGLOBAL         DL_GLOBAL
12907 #  else
12908 #    define LT_DLGLOBAL         0
12909 #  endif
12910 #endif
12911
12912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12913    find out it does not work in some platform. */
12914 #ifndef LT_DLLAZY_OR_NOW
12915 #  ifdef RTLD_LAZY
12916 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12917 #  else
12918 #    ifdef DL_LAZY
12919 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12920 #    else
12921 #      ifdef RTLD_NOW
12922 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12923 #      else
12924 #        ifdef DL_NOW
12925 #          define LT_DLLAZY_OR_NOW      DL_NOW
12926 #        else
12927 #          define LT_DLLAZY_OR_NOW      0
12928 #        endif
12929 #      endif
12930 #    endif
12931 #  endif
12932 #endif
12933
12934 void fnord() { int i=42;}
12935 int main ()
12936 {
12937   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938   int status = $lt_dlunknown;
12939
12940   if (self)
12941     {
12942       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12943       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12944       /* dlclose (self); */
12945     }
12946   else
12947     puts (dlerror ());
12948
12949   return status;
12950 }
12951 _LT_EOF
12952   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12953   (eval $ac_link) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12957     (./conftest; exit; ) >&5 2>/dev/null
12958     lt_status=$?
12959     case x$lt_status in
12960       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12961       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12962       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12963     esac
12964   else :
12965     # compilation failed
12966     lt_cv_dlopen_self=no
12967   fi
12968 fi
12969 rm -fr conftest*
12970
12971
12972 fi
12973 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12974 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12975
12976     if test "x$lt_cv_dlopen_self" = xyes; then
12977       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12978       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12979 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12980 if test "${lt_cv_dlopen_self_static+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983           if test "$cross_compiling" = yes; then :
12984   lt_cv_dlopen_self_static=cross
12985 else
12986   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12987   lt_status=$lt_dlunknown
12988   cat > conftest.$ac_ext <<_LT_EOF
12989 #line 12989 "configure"
12990 #include "confdefs.h"
12991
12992 #if HAVE_DLFCN_H
12993 #include <dlfcn.h>
12994 #endif
12995
12996 #include <stdio.h>
12997
12998 #ifdef RTLD_GLOBAL
12999 #  define LT_DLGLOBAL           RTLD_GLOBAL
13000 #else
13001 #  ifdef DL_GLOBAL
13002 #    define LT_DLGLOBAL         DL_GLOBAL
13003 #  else
13004 #    define LT_DLGLOBAL         0
13005 #  endif
13006 #endif
13007
13008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13009    find out it does not work in some platform. */
13010 #ifndef LT_DLLAZY_OR_NOW
13011 #  ifdef RTLD_LAZY
13012 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13013 #  else
13014 #    ifdef DL_LAZY
13015 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13016 #    else
13017 #      ifdef RTLD_NOW
13018 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13019 #      else
13020 #        ifdef DL_NOW
13021 #          define LT_DLLAZY_OR_NOW      DL_NOW
13022 #        else
13023 #          define LT_DLLAZY_OR_NOW      0
13024 #        endif
13025 #      endif
13026 #    endif
13027 #  endif
13028 #endif
13029
13030 void fnord() { int i=42;}
13031 int main ()
13032 {
13033   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13034   int status = $lt_dlunknown;
13035
13036   if (self)
13037     {
13038       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13039       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13040       /* dlclose (self); */
13041     }
13042   else
13043     puts (dlerror ());
13044
13045   return status;
13046 }
13047 _LT_EOF
13048   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049   (eval $ac_link) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13053     (./conftest; exit; ) >&5 2>/dev/null
13054     lt_status=$?
13055     case x$lt_status in
13056       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13057       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13058       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13059     esac
13060   else :
13061     # compilation failed
13062     lt_cv_dlopen_self_static=no
13063   fi
13064 fi
13065 rm -fr conftest*
13066
13067
13068 fi
13069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13071     fi
13072
13073     CPPFLAGS="$save_CPPFLAGS"
13074     LDFLAGS="$save_LDFLAGS"
13075     LIBS="$save_LIBS"
13076     ;;
13077   esac
13078
13079   case $lt_cv_dlopen_self in
13080   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13081   *) enable_dlopen_self=unknown ;;
13082   esac
13083
13084   case $lt_cv_dlopen_self_static in
13085   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13086   *) enable_dlopen_self_static=unknown ;;
13087   esac
13088 fi
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106 striplib=
13107 old_striplib=
13108 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13109 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13110 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13111   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13112   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13113   echo "$as_me:$LINENO: result: yes" >&5
13114 echo "${ECHO_T}yes" >&6
13115 else
13116 # FIXME - insert some real tests, host_os isn't really good enough
13117   case $host_os in
13118   darwin*)
13119     if test -n "$STRIP" ; then
13120       striplib="$STRIP -x"
13121       old_striplib="$STRIP -S"
13122       echo "$as_me:$LINENO: result: yes" >&5
13123 echo "${ECHO_T}yes" >&6
13124     else
13125       echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6
13127     fi
13128     ;;
13129   *)
13130     echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6
13132     ;;
13133   esac
13134 fi
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147   # Report which library types will actually be built
13148   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13149 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13150   echo "$as_me:$LINENO: result: $can_build_shared" >&5
13151 echo "${ECHO_T}$can_build_shared" >&6
13152
13153   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13154 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13155   test "$can_build_shared" = "no" && enable_shared=no
13156
13157   # On AIX, shared libraries and static libraries use the same namespace, and
13158   # are all built from PIC.
13159   case $host_os in
13160   aix3*)
13161     test "$enable_shared" = yes && enable_static=no
13162     if test -n "$RANLIB"; then
13163       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13164       postinstall_cmds='$RANLIB $lib'
13165     fi
13166     ;;
13167
13168   aix[4-9]*)
13169     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13170       test "$enable_shared" = yes && enable_static=no
13171     fi
13172     ;;
13173   esac
13174   echo "$as_me:$LINENO: result: $enable_shared" >&5
13175 echo "${ECHO_T}$enable_shared" >&6
13176
13177   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13178 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13179   # Make sure either enable_shared or enable_static is yes.
13180   test "$enable_shared" = yes || enable_static=yes
13181   echo "$as_me:$LINENO: result: $enable_static" >&5
13182 echo "${ECHO_T}$enable_static" >&6
13183
13184
13185
13186
13187 fi
13188 ac_ext=c
13189 ac_cpp='$CPP $CPPFLAGS'
13190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194 CC="$lt_save_CC"
13195
13196
13197 ac_ext=cc
13198 ac_cpp='$CXXCPP $CPPFLAGS'
13199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13202
13203 archive_cmds_need_lc_CXX=no
13204 allow_undefined_flag_CXX=
13205 always_export_symbols_CXX=no
13206 archive_expsym_cmds_CXX=
13207 compiler_needs_object_CXX=no
13208 export_dynamic_flag_spec_CXX=
13209 hardcode_direct_CXX=no
13210 hardcode_direct_absolute_CXX=no
13211 hardcode_libdir_flag_spec_CXX=
13212 hardcode_libdir_flag_spec_ld_CXX=
13213 hardcode_libdir_separator_CXX=
13214 hardcode_minus_L_CXX=no
13215 hardcode_shlibpath_var_CXX=unsupported
13216 hardcode_automatic_CXX=no
13217 inherit_rpath_CXX=no
13218 module_cmds_CXX=
13219 module_expsym_cmds_CXX=
13220 link_all_deplibs_CXX=unknown
13221 old_archive_cmds_CXX=$old_archive_cmds
13222 no_undefined_flag_CXX=
13223 whole_archive_flag_spec_CXX=
13224 enable_shared_with_static_runtimes_CXX=no
13225
13226 # Source file extension for C++ test sources.
13227 ac_ext=cpp
13228
13229 # Object file extension for compiled C++ test sources.
13230 objext=o
13231 objext_CXX=$objext
13232
13233 # No sense in running all these tests if we already determined that
13234 # the CXX compiler isn't working.  Some variables (like enable_shared)
13235 # are currently assumed to apply to all compilers on this platform,
13236 # and will be corrupted by setting them based on a non-working compiler.
13237 if test "$_lt_caught_CXX_error" != yes; then
13238   # Code to be used in simple compile tests
13239   lt_simple_compile_test_code="int some_variable = 0;"
13240
13241   # Code to be used in simple link tests
13242   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13243
13244   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13245
13246
13247
13248
13249
13250
13251 # If no C compiler was specified, use CC.
13252 LTCC=${LTCC-"$CC"}
13253
13254 # If no C compiler flags were specified, use CFLAGS.
13255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13256
13257 # Allow CC to be a program name with arguments.
13258 compiler=$CC
13259
13260
13261   # save warnings/boilerplate of simple test code
13262   ac_outfile=conftest.$ac_objext
13263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13265 _lt_compiler_boilerplate=`cat conftest.err`
13266 $RM conftest*
13267
13268   ac_outfile=conftest.$ac_objext
13269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13271 _lt_linker_boilerplate=`cat conftest.err`
13272 $RM -r conftest*
13273
13274
13275   # Allow CC to be a program name with arguments.
13276   lt_save_CC=$CC
13277   lt_save_LD=$LD
13278   lt_save_GCC=$GCC
13279   GCC=$GXX
13280   lt_save_with_gnu_ld=$with_gnu_ld
13281   lt_save_path_LD=$lt_cv_path_LD
13282   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13283     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13284   else
13285     $as_unset lt_cv_prog_gnu_ld
13286   fi
13287   if test -n "${lt_cv_path_LDCXX+set}"; then
13288     lt_cv_path_LD=$lt_cv_path_LDCXX
13289   else
13290     $as_unset lt_cv_path_LD
13291   fi
13292   test -z "${LDCXX+set}" || LD=$LDCXX
13293   CC=${CXX-"c++"}
13294   compiler=$CC
13295   compiler_CXX=$CC
13296   for cc_temp in $compiler""; do
13297   case $cc_temp in
13298     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13299     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13300     \-*) ;;
13301     *) break;;
13302   esac
13303 done
13304 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13305
13306
13307   if test -n "$compiler"; then
13308     # We don't want -fno-exception when compiling C++ code, so set the
13309     # no_builtin_flag separately
13310     if test "$GXX" = yes; then
13311       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13312     else
13313       lt_prog_compiler_no_builtin_flag_CXX=
13314     fi
13315
13316     if test "$GXX" = yes; then
13317       # Set up default GNU C++ configuration
13318
13319
13320
13321 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13322 if test "${with_gnu_ld+set}" = set; then
13323   withval="$with_gnu_ld"
13324   test "$withval" = no || with_gnu_ld=yes
13325 else
13326   with_gnu_ld=no
13327 fi;
13328 ac_prog=ld
13329 if test "$GCC" = yes; then
13330   # Check if gcc -print-prog-name=ld gives a path.
13331   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13332 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13333   case $host in
13334   *-*-mingw*)
13335     # gcc leaves a trailing carriage return which upsets mingw
13336     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13337   *)
13338     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13339   esac
13340   case $ac_prog in
13341     # Accept absolute paths.
13342     [\\/]* | ?:[\\/]*)
13343       re_direlt='/[^/][^/]*/\.\./'
13344       # Canonicalize the pathname of ld
13345       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13346       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13347         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13348       done
13349       test -z "$LD" && LD="$ac_prog"
13350       ;;
13351   "")
13352     # If it fails, then pretend we aren't using GCC.
13353     ac_prog=ld
13354     ;;
13355   *)
13356     # If it is relative, then search for the first ld in PATH.
13357     with_gnu_ld=unknown
13358     ;;
13359   esac
13360 elif test "$with_gnu_ld" = yes; then
13361   echo "$as_me:$LINENO: checking for GNU ld" >&5
13362 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13363 else
13364   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13365 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13366 fi
13367 if test "${lt_cv_path_LD+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   if test -z "$LD"; then
13371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13372   for ac_dir in $PATH; do
13373     IFS="$lt_save_ifs"
13374     test -z "$ac_dir" && ac_dir=.
13375     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13376       lt_cv_path_LD="$ac_dir/$ac_prog"
13377       # Check to see if the program is GNU ld.  I'd rather use --version,
13378       # but apparently some variants of GNU ld only accept -v.
13379       # Break only if it was the GNU/non-GNU ld that we prefer.
13380       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13381       *GNU* | *'with BFD'*)
13382         test "$with_gnu_ld" != no && break
13383         ;;
13384       *)
13385         test "$with_gnu_ld" != yes && break
13386         ;;
13387       esac
13388     fi
13389   done
13390   IFS="$lt_save_ifs"
13391 else
13392   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13393 fi
13394 fi
13395
13396 LD="$lt_cv_path_LD"
13397 if test -n "$LD"; then
13398   echo "$as_me:$LINENO: result: $LD" >&5
13399 echo "${ECHO_T}$LD" >&6
13400 else
13401   echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6
13403 fi
13404 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13405 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13406    { (exit 1); exit 1; }; }
13407 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13408 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13409 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13413 case `$LD -v 2>&1 </dev/null` in
13414 *GNU* | *'with BFD'*)
13415   lt_cv_prog_gnu_ld=yes
13416   ;;
13417 *)
13418   lt_cv_prog_gnu_ld=no
13419   ;;
13420 esac
13421 fi
13422 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13423 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13424 with_gnu_ld=$lt_cv_prog_gnu_ld
13425
13426
13427
13428
13429
13430
13431
13432       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13433       # archiving commands below assume that GNU ld is being used.
13434       if test "$with_gnu_ld" = yes; then
13435         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436         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'
13437
13438         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13439         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13440
13441         # If archive_cmds runs LD, not CC, wlarc should be empty
13442         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13443         #     investigate it a little bit more. (MM)
13444         wlarc='${wl}'
13445
13446         # ancient GNU ld didn't support --whole-archive et. al.
13447         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13448           $GREP 'no-whole-archive' > /dev/null; then
13449           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13450         else
13451           whole_archive_flag_spec_CXX=
13452         fi
13453       else
13454         with_gnu_ld=no
13455         wlarc=
13456
13457         # A generic and very simple default shared library creation
13458         # command for GNU C++ for the case where it uses the native
13459         # linker, instead of GNU ld.  If possible, this setting should
13460         # overridden to take advantage of the native linker features on
13461         # the platform it is being used on.
13462         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13463       fi
13464
13465       # Commands to make compiler produce verbose output that lists
13466       # what "hidden" libraries, object files and flags are used when
13467       # linking a shared library.
13468       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13469
13470     else
13471       GXX=no
13472       with_gnu_ld=no
13473       wlarc=
13474     fi
13475
13476     # PORTME: fill in a description of your system's C++ link characteristics
13477     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13478 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13479     ld_shlibs_CXX=yes
13480     case $host_os in
13481       aix3*)
13482         # FIXME: insert proper C++ library support
13483         ld_shlibs_CXX=no
13484         ;;
13485       aix[4-9]*)
13486         if test "$host_cpu" = ia64; then
13487           # On IA64, the linker does run time linking by default, so we don't
13488           # have to do anything special.
13489           aix_use_runtimelinking=no
13490           exp_sym_flag='-Bexport'
13491           no_entry_flag=""
13492         else
13493           aix_use_runtimelinking=no
13494
13495           # Test if we are trying to use run time linking or normal
13496           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13497           # need to do runtime linking.
13498           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13499             for ld_flag in $LDFLAGS; do
13500               case $ld_flag in
13501               *-brtl*)
13502                 aix_use_runtimelinking=yes
13503                 break
13504                 ;;
13505               esac
13506             done
13507             ;;
13508           esac
13509
13510           exp_sym_flag='-bexport'
13511           no_entry_flag='-bnoentry'
13512         fi
13513
13514         # When large executables or shared objects are built, AIX ld can
13515         # have problems creating the table of contents.  If linking a library
13516         # or program results in "error TOC overflow" add -mminimal-toc to
13517         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13518         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13519
13520         archive_cmds_CXX=''
13521         hardcode_direct_CXX=yes
13522         hardcode_direct_absolute_CXX=yes
13523         hardcode_libdir_separator_CXX=':'
13524         link_all_deplibs_CXX=yes
13525         file_list_spec_CXX='${wl}-f,'
13526
13527         if test "$GXX" = yes; then
13528           case $host_os in aix4.[012]|aix4.[012].*)
13529           # We only want to do this on AIX 4.2 and lower, the check
13530           # below for broken collect2 doesn't work under 4.3+
13531           collect2name=`${CC} -print-prog-name=collect2`
13532           if test -f "$collect2name" &&
13533              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13534           then
13535             # We have reworked collect2
13536             :
13537           else
13538             # We have old collect2
13539             hardcode_direct_CXX=unsupported
13540             # It fails to find uninstalled libraries when the uninstalled
13541             # path is not listed in the libpath.  Setting hardcode_minus_L
13542             # to unsupported forces relinking
13543             hardcode_minus_L_CXX=yes
13544             hardcode_libdir_flag_spec_CXX='-L$libdir'
13545             hardcode_libdir_separator_CXX=
13546           fi
13547           esac
13548           shared_flag='-shared'
13549           if test "$aix_use_runtimelinking" = yes; then
13550             shared_flag="$shared_flag "'${wl}-G'
13551           fi
13552         else
13553           # not using gcc
13554           if test "$host_cpu" = ia64; then
13555           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13556           # chokes on -Wl,-G. The following line is correct:
13557           shared_flag='-G'
13558           else
13559             if test "$aix_use_runtimelinking" = yes; then
13560               shared_flag='${wl}-G'
13561             else
13562               shared_flag='${wl}-bM:SRE'
13563             fi
13564           fi
13565         fi
13566
13567         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13568         # It seems that -bexpall does not export symbols beginning with
13569         # underscore (_), so it is better to generate a list of symbols to
13570         # export.
13571         always_export_symbols_CXX=yes
13572         if test "$aix_use_runtimelinking" = yes; then
13573           # Warning - without using the other runtime loading flags (-brtl),
13574           # -berok will link without error, but may produce a broken library.
13575           allow_undefined_flag_CXX='-berok'
13576           # Determine the default libpath from the value encoded in an empty
13577           # executable.
13578           if test x$gcc_no_link = xyes; then
13579   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13580 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13581    { (exit 1); exit 1; }; }
13582 fi
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589
13590 int
13591 main ()
13592 {
13593
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest.$ac_objext conftest$ac_exeext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13600   (eval $ac_link) 2>conftest.er1
13601   ac_status=$?
13602   grep -v '^ *+' conftest.er1 >conftest.err
13603   rm -f conftest.er1
13604   cat conftest.err >&5
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } &&
13607          { ac_try='test -z "$ac_cxx_werror_flag"
13608                          || test ! -s conftest.err'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; } &&
13614          { ac_try='test -s conftest$ac_exeext'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; }; then
13620
13621 lt_aix_libpath_sed='
13622     /Import File Strings/,/^$/ {
13623         /^0/ {
13624             s/^0  *\(.*\)$/\1/
13625             p
13626         }
13627     }'
13628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13629 # Check for a 64-bit object if we didn't find anything.
13630 if test -z "$aix_libpath"; then
13631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13632 fi
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 fi
13638 rm -f conftest.err conftest.$ac_objext \
13639       conftest$ac_exeext conftest.$ac_ext
13640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13641
13642           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13643
13644           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"
13645         else
13646           if test "$host_cpu" = ia64; then
13647             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13648             allow_undefined_flag_CXX="-z nodefs"
13649             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"
13650           else
13651             # Determine the default libpath from the value encoded in an
13652             # empty executable.
13653             if test x$gcc_no_link = xyes; then
13654   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13656    { (exit 1); exit 1; }; }
13657 fi
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h.  */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h.  */
13664
13665 int
13666 main ()
13667 {
13668
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675   (eval $ac_link) 2>conftest.er1
13676   ac_status=$?
13677   grep -v '^ *+' conftest.er1 >conftest.err
13678   rm -f conftest.er1
13679   cat conftest.err >&5
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -z "$ac_cxx_werror_flag"
13683                          || test ! -s conftest.err'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest$ac_exeext'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695
13696 lt_aix_libpath_sed='
13697     /Import File Strings/,/^$/ {
13698         /^0/ {
13699             s/^0  *\(.*\)$/\1/
13700             p
13701         }
13702     }'
13703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13704 # Check for a 64-bit object if we didn't find anything.
13705 if test -z "$aix_libpath"; then
13706   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13707 fi
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712 fi
13713 rm -f conftest.err conftest.$ac_objext \
13714       conftest$ac_exeext conftest.$ac_ext
13715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13716
13717             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13718             # Warning - without using the other run time loading flags,
13719             # -berok will link without error, but may produce a broken library.
13720             no_undefined_flag_CXX=' ${wl}-bernotok'
13721             allow_undefined_flag_CXX=' ${wl}-berok'
13722             # Exported symbols can be pulled into shared objects from archives
13723             whole_archive_flag_spec_CXX='$convenience'
13724             archive_cmds_need_lc_CXX=yes
13725             # This is similar to how AIX traditionally builds its shared
13726             # libraries.
13727             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'
13728           fi
13729         fi
13730         ;;
13731
13732       beos*)
13733         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13734           allow_undefined_flag_CXX=unsupported
13735           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13736           # support --undefined.  This deserves some investigation.  FIXME
13737           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738         else
13739           ld_shlibs_CXX=no
13740         fi
13741         ;;
13742
13743       chorus*)
13744         case $cc_basename in
13745           *)
13746           # FIXME: insert proper C++ library support
13747           ld_shlibs_CXX=no
13748           ;;
13749         esac
13750         ;;
13751
13752       cygwin* | mingw* | pw32* | cegcc*)
13753         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13754         # as there is no search path for DLLs.
13755         hardcode_libdir_flag_spec_CXX='-L$libdir'
13756         allow_undefined_flag_CXX=unsupported
13757         always_export_symbols_CXX=no
13758         enable_shared_with_static_runtimes_CXX=yes
13759
13760         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13761           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'
13762           # If the export-symbols file already is a .def file (1st line
13763           # is EXPORTS), use it as is; otherwise, prepend...
13764           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13765             cp $export_symbols $output_objdir/$soname.def;
13766           else
13767             echo EXPORTS > $output_objdir/$soname.def;
13768             cat $export_symbols >> $output_objdir/$soname.def;
13769           fi~
13770           $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'
13771         else
13772           ld_shlibs_CXX=no
13773         fi
13774         ;;
13775       darwin* | rhapsody*)
13776
13777
13778   archive_cmds_need_lc_CXX=no
13779   hardcode_direct_CXX=no
13780   hardcode_automatic_CXX=yes
13781   hardcode_shlibpath_var_CXX=unsupported
13782   whole_archive_flag_spec_CXX=''
13783   link_all_deplibs_CXX=yes
13784   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13785   case $cc_basename in
13786      ifort*) _lt_dar_can_shared=yes ;;
13787      *) _lt_dar_can_shared=$GCC ;;
13788   esac
13789   if test "$_lt_dar_can_shared" = "yes"; then
13790     output_verbose_link_cmd=echo
13791     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}"
13792     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13793     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}"
13794     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}"
13795        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13796       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}"
13797       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}"
13798     fi
13799
13800   else
13801   ld_shlibs_CXX=no
13802   fi
13803
13804         ;;
13805
13806       dgux*)
13807         case $cc_basename in
13808           ec++*)
13809             # FIXME: insert proper C++ library support
13810             ld_shlibs_CXX=no
13811             ;;
13812           ghcx*)
13813             # Green Hills C++ Compiler
13814             # FIXME: insert proper C++ library support
13815             ld_shlibs_CXX=no
13816             ;;
13817           *)
13818             # FIXME: insert proper C++ library support
13819             ld_shlibs_CXX=no
13820             ;;
13821         esac
13822         ;;
13823
13824       freebsd[12]*)
13825         # C++ shared libraries reported to be fairly broken before
13826         # switch to ELF
13827         ld_shlibs_CXX=no
13828         ;;
13829
13830       freebsd-elf*)
13831         archive_cmds_need_lc_CXX=no
13832         ;;
13833
13834       freebsd* | dragonfly*)
13835         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13836         # conventions
13837         ld_shlibs_CXX=yes
13838         ;;
13839
13840       gnu*)
13841         ;;
13842
13843       hpux9*)
13844         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13845         hardcode_libdir_separator_CXX=:
13846         export_dynamic_flag_spec_CXX='${wl}-E'
13847         hardcode_direct_CXX=yes
13848         hardcode_minus_L_CXX=yes # Not in the search PATH,
13849                                              # but as the default
13850                                              # location of the library.
13851
13852         case $cc_basename in
13853           CC*)
13854             # FIXME: insert proper C++ library support
13855             ld_shlibs_CXX=no
13856             ;;
13857           aCC*)
13858             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'
13859             # Commands to make compiler produce verbose output that lists
13860             # what "hidden" libraries, object files and flags are used when
13861             # linking a shared library.
13862             #
13863             # There doesn't appear to be a way to prevent this compiler from
13864             # explicitly linking system object files so we need to strip them
13865             # from the output so that they don't get included in the library
13866             # dependencies.
13867             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'
13868             ;;
13869           *)
13870             if test "$GXX" = yes; then
13871               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'
13872             else
13873               # FIXME: insert proper C++ library support
13874               ld_shlibs_CXX=no
13875             fi
13876             ;;
13877         esac
13878         ;;
13879
13880       hpux10*|hpux11*)
13881         if test $with_gnu_ld = no; then
13882           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13883           hardcode_libdir_separator_CXX=:
13884
13885           case $host_cpu in
13886             hppa*64*|ia64*)
13887               ;;
13888             *)
13889               export_dynamic_flag_spec_CXX='${wl}-E'
13890               ;;
13891           esac
13892         fi
13893         case $host_cpu in
13894           hppa*64*|ia64*)
13895             hardcode_direct_CXX=no
13896             hardcode_shlibpath_var_CXX=no
13897             ;;
13898           *)
13899             hardcode_direct_CXX=yes
13900             hardcode_direct_absolute_CXX=yes
13901             hardcode_minus_L_CXX=yes # Not in the search PATH,
13902                                                  # but as the default
13903                                                  # location of the library.
13904             ;;
13905         esac
13906
13907         case $cc_basename in
13908           CC*)
13909             # FIXME: insert proper C++ library support
13910             ld_shlibs_CXX=no
13911             ;;
13912           aCC*)
13913             case $host_cpu in
13914               hppa*64*)
13915                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13916                 ;;
13917               ia64*)
13918                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13919                 ;;
13920               *)
13921                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13922                 ;;
13923             esac
13924             # Commands to make compiler produce verbose output that lists
13925             # what "hidden" libraries, object files and flags are used when
13926             # linking a shared library.
13927             #
13928             # There doesn't appear to be a way to prevent this compiler from
13929             # explicitly linking system object files so we need to strip them
13930             # from the output so that they don't get included in the library
13931             # dependencies.
13932             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'
13933             ;;
13934           *)
13935             if test "$GXX" = yes; then
13936               if test $with_gnu_ld = no; then
13937                 case $host_cpu in
13938                   hppa*64*)
13939                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13940                     ;;
13941                   ia64*)
13942                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13943                     ;;
13944                   *)
13945                     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'
13946                     ;;
13947                 esac
13948               fi
13949             else
13950               # FIXME: insert proper C++ library support
13951               ld_shlibs_CXX=no
13952             fi
13953             ;;
13954         esac
13955         ;;
13956
13957       interix[3-9]*)
13958         hardcode_direct_CXX=no
13959         hardcode_shlibpath_var_CXX=no
13960         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13961         export_dynamic_flag_spec_CXX='${wl}-E'
13962         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13963         # Instead, shared libraries are loaded at an image base (0x10000000 by
13964         # default) and relocated if they conflict, which is a slow very memory
13965         # consuming and fragmenting process.  To avoid this, we pick a random,
13966         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13967         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13968         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'
13969         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'
13970         ;;
13971       irix5* | irix6*)
13972         case $cc_basename in
13973           CC*)
13974             # SGI C++
13975             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'
13976
13977             # Archives containing C++ object files must be created using
13978             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13979             # necessary to make sure instantiated templates are included
13980             # in the archive.
13981             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13982             ;;
13983           *)
13984             if test "$GXX" = yes; then
13985               if test "$with_gnu_ld" = no; then
13986                 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'
13987               else
13988                 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'
13989               fi
13990             fi
13991             link_all_deplibs_CXX=yes
13992             ;;
13993         esac
13994         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995         hardcode_libdir_separator_CXX=:
13996         inherit_rpath_CXX=yes
13997         ;;
13998
13999       linux* | k*bsd*-gnu)
14000         case $cc_basename in
14001           KCC*)
14002             # Kuck and Associates, Inc. (KAI) C++ Compiler
14003
14004             # KCC will only create a shared library if the output file
14005             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14006             # to its proper name (with version) after linking.
14007             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'
14008             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'
14009             # Commands to make compiler produce verbose output that lists
14010             # what "hidden" libraries, object files and flags are used when
14011             # linking a shared library.
14012             #
14013             # There doesn't appear to be a way to prevent this compiler from
14014             # explicitly linking system object files so we need to strip them
14015             # from the output so that they don't get included in the library
14016             # dependencies.
14017             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'
14018
14019             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14020             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14021
14022             # Archives containing C++ object files must be created using
14023             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14024             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14025             ;;
14026           icpc* | ecpc* )
14027             # Intel C++
14028             with_gnu_ld=yes
14029             # version 8.0 and above of icpc choke on multiply defined symbols
14030             # if we add $predep_objects and $postdep_objects, however 7.1 and
14031             # earlier do not add the objects themselves.
14032             case `$CC -V 2>&1` in
14033               *"Version 7."*)
14034                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14035                 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'
14036                 ;;
14037               *)  # Version 8.0 or newer
14038                 tmp_idyn=
14039                 case $host_cpu in
14040                   ia64*) tmp_idyn=' -i_dynamic';;
14041                 esac
14042                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043                 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'
14044                 ;;
14045             esac
14046             archive_cmds_need_lc_CXX=no
14047             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14048             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14049             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14050             ;;
14051           pgCC* | pgcpp*)
14052             # Portland Group C++ compiler
14053             case `$CC -V` in
14054             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14055               prelink_cmds_CXX='tpldir=Template.dir~
14056                 rm -rf $tpldir~
14057                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14058                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14059               old_archive_cmds_CXX='tpldir=Template.dir~
14060                 rm -rf $tpldir~
14061                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14062                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14063                 $RANLIB $oldlib'
14064               archive_cmds_CXX='tpldir=Template.dir~
14065                 rm -rf $tpldir~
14066                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14067                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14068               archive_expsym_cmds_CXX='tpldir=Template.dir~
14069                 rm -rf $tpldir~
14070                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14071                 $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'
14072               ;;
14073             *) # Version 6 will use weak symbols
14074               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14075               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'
14076               ;;
14077             esac
14078
14079             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14080             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14081             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'
14082             ;;
14083           cxx*)
14084             # Compaq C++
14085             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086             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'
14087
14088             runpath_var=LD_RUN_PATH
14089             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14090             hardcode_libdir_separator_CXX=:
14091
14092             # Commands to make compiler produce verbose output that lists
14093             # what "hidden" libraries, object files and flags are used when
14094             # linking a shared library.
14095             #
14096             # There doesn't appear to be a way to prevent this compiler from
14097             # explicitly linking system object files so we need to strip them
14098             # from the output so that they don't get included in the library
14099             # dependencies.
14100             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'
14101             ;;
14102           xl*)
14103             # IBM XL 8.0 on PPC, with GNU ld
14104             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14105             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14106             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107             if test "x$supports_anon_versioning" = xyes; then
14108               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14109                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14110                 echo "local: *; };" >> $output_objdir/$libname.ver~
14111                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14112             fi
14113             ;;
14114           *)
14115             case `$CC -V 2>&1 | sed 5q` in
14116             *Sun\ C*)
14117               # Sun C++ 5.9
14118               no_undefined_flag_CXX=' -zdefs'
14119               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14120               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'
14121               hardcode_libdir_flag_spec_CXX='-R$libdir'
14122               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'
14123               compiler_needs_object_CXX=yes
14124
14125               # Not sure whether something based on
14126               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14127               # would be better.
14128               output_verbose_link_cmd='echo'
14129
14130               # Archives containing C++ object files must be created using
14131               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14132               # necessary to make sure instantiated templates are included
14133               # in the archive.
14134               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14135               ;;
14136             esac
14137             ;;
14138         esac
14139         ;;
14140
14141       lynxos*)
14142         # FIXME: insert proper C++ library support
14143         ld_shlibs_CXX=no
14144         ;;
14145
14146       m88k*)
14147         # FIXME: insert proper C++ library support
14148         ld_shlibs_CXX=no
14149         ;;
14150
14151       mvs*)
14152         case $cc_basename in
14153           cxx*)
14154             # FIXME: insert proper C++ library support
14155             ld_shlibs_CXX=no
14156             ;;
14157           *)
14158             # FIXME: insert proper C++ library support
14159             ld_shlibs_CXX=no
14160             ;;
14161         esac
14162         ;;
14163
14164       netbsd*)
14165         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14166           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14167           wlarc=
14168           hardcode_libdir_flag_spec_CXX='-R$libdir'
14169           hardcode_direct_CXX=yes
14170           hardcode_shlibpath_var_CXX=no
14171         fi
14172         # Workaround some broken pre-1.5 toolchains
14173         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14174         ;;
14175
14176       *nto* | *qnx*)
14177         ld_shlibs_CXX=yes
14178         ;;
14179
14180       openbsd2*)
14181         # C++ shared libraries are fairly broken
14182         ld_shlibs_CXX=no
14183         ;;
14184
14185       openbsd*)
14186         if test -f /usr/libexec/ld.so; then
14187           hardcode_direct_CXX=yes
14188           hardcode_shlibpath_var_CXX=no
14189           hardcode_direct_absolute_CXX=yes
14190           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14191           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14192           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14193             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14194             export_dynamic_flag_spec_CXX='${wl}-E'
14195             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14196           fi
14197           output_verbose_link_cmd=echo
14198         else
14199           ld_shlibs_CXX=no
14200         fi
14201         ;;
14202
14203       osf3* | osf4* | osf5*)
14204         case $cc_basename in
14205           KCC*)
14206             # Kuck and Associates, Inc. (KAI) C++ Compiler
14207
14208             # KCC will only create a shared library if the output file
14209             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14210             # to its proper name (with version) after linking.
14211             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'
14212
14213             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14214             hardcode_libdir_separator_CXX=:
14215
14216             # Archives containing C++ object files must be created using
14217             # the KAI C++ compiler.
14218             case $host in
14219               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14220               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14221             esac
14222             ;;
14223           RCC*)
14224             # Rational C++ 2.4.1
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228           cxx*)
14229             case $host in
14230               osf3*)
14231                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14232                 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'
14233                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14234                 ;;
14235               *)
14236                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14237                 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'
14238                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14239                   echo "-hidden">> $lib.exp~
14240                   $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~
14241                   $RM $lib.exp'
14242                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14243                 ;;
14244             esac
14245
14246             hardcode_libdir_separator_CXX=:
14247
14248             # Commands to make compiler produce verbose output that lists
14249             # what "hidden" libraries, object files and flags are used when
14250             # linking a shared library.
14251             #
14252             # There doesn't appear to be a way to prevent this compiler from
14253             # explicitly linking system object files so we need to strip them
14254             # from the output so that they don't get included in the library
14255             # dependencies.
14256             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'
14257             ;;
14258           *)
14259             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14260               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14261               case $host in
14262                 osf3*)
14263                   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'
14264                   ;;
14265                 *)
14266                   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'
14267                   ;;
14268               esac
14269
14270               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14271               hardcode_libdir_separator_CXX=:
14272
14273               # Commands to make compiler produce verbose output that lists
14274               # what "hidden" libraries, object files and flags are used when
14275               # linking a shared library.
14276               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14277
14278             else
14279               # FIXME: insert proper C++ library support
14280               ld_shlibs_CXX=no
14281             fi
14282             ;;
14283         esac
14284         ;;
14285
14286       psos*)
14287         # FIXME: insert proper C++ library support
14288         ld_shlibs_CXX=no
14289         ;;
14290
14291       sunos4*)
14292         case $cc_basename in
14293           CC*)
14294             # Sun C++ 4.x
14295             # FIXME: insert proper C++ library support
14296             ld_shlibs_CXX=no
14297             ;;
14298           lcc*)
14299             # Lucid
14300             # FIXME: insert proper C++ library support
14301             ld_shlibs_CXX=no
14302             ;;
14303           *)
14304             # FIXME: insert proper C++ library support
14305             ld_shlibs_CXX=no
14306             ;;
14307         esac
14308         ;;
14309
14310       solaris*)
14311         case $cc_basename in
14312           CC*)
14313             # Sun C++ 4.2, 5.x and Centerline C++
14314             archive_cmds_need_lc_CXX=yes
14315             no_undefined_flag_CXX=' -zdefs'
14316             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14317             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14318               $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'
14319
14320             hardcode_libdir_flag_spec_CXX='-R$libdir'
14321             hardcode_shlibpath_var_CXX=no
14322             case $host_os in
14323               solaris2.[0-5] | solaris2.[0-5].*) ;;
14324               *)
14325                 # The compiler driver will combine and reorder linker options,
14326                 # but understands `-z linker_flag'.
14327                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14328                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14329                 ;;
14330             esac
14331             link_all_deplibs_CXX=yes
14332
14333             output_verbose_link_cmd='echo'
14334
14335             # Archives containing C++ object files must be created using
14336             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14337             # necessary to make sure instantiated templates are included
14338             # in the archive.
14339             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14340             ;;
14341           gcx*)
14342             # Green Hills C++ Compiler
14343             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14344
14345             # The C++ compiler must be used to create the archive.
14346             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14347             ;;
14348           *)
14349             # GNU C++ compiler with Solaris linker
14350             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14351               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14352               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14353                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14354                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14355                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14356
14357                 # Commands to make compiler produce verbose output that lists
14358                 # what "hidden" libraries, object files and flags are used when
14359                 # linking a shared library.
14360                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14361               else
14362                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14363                 # platform.
14364                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14365                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14366                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14367
14368                 # Commands to make compiler produce verbose output that lists
14369                 # what "hidden" libraries, object files and flags are used when
14370                 # linking a shared library.
14371                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14372               fi
14373
14374               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14375               case $host_os in
14376                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14377                 *)
14378                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14379                   ;;
14380               esac
14381             fi
14382             ;;
14383         esac
14384         ;;
14385
14386     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14387       no_undefined_flag_CXX='${wl}-z,text'
14388       archive_cmds_need_lc_CXX=no
14389       hardcode_shlibpath_var_CXX=no
14390       runpath_var='LD_RUN_PATH'
14391
14392       case $cc_basename in
14393         CC*)
14394           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14396           ;;
14397         *)
14398           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400           ;;
14401       esac
14402       ;;
14403
14404       sysv5* | sco3.2v5* | sco5v6*)
14405         # Note: We can NOT use -z defs as we might desire, because we do not
14406         # link with -lc, and that would cause any symbols used from libc to
14407         # always be unresolved, which means just about no library would
14408         # ever link correctly.  If we're not using GNU ld we use -z text
14409         # though, which does catch some bad symbols but isn't as heavy-handed
14410         # as -z defs.
14411         no_undefined_flag_CXX='${wl}-z,text'
14412         allow_undefined_flag_CXX='${wl}-z,nodefs'
14413         archive_cmds_need_lc_CXX=no
14414         hardcode_shlibpath_var_CXX=no
14415         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14416         hardcode_libdir_separator_CXX=':'
14417         link_all_deplibs_CXX=yes
14418         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14419         runpath_var='LD_RUN_PATH'
14420
14421         case $cc_basename in
14422           CC*)
14423             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14424             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14425             ;;
14426           *)
14427             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14428             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14429             ;;
14430         esac
14431       ;;
14432
14433       tandem*)
14434         case $cc_basename in
14435           NCC*)
14436             # NonStop-UX NCC 3.20
14437             # FIXME: insert proper C++ library support
14438             ld_shlibs_CXX=no
14439             ;;
14440           *)
14441             # FIXME: insert proper C++ library support
14442             ld_shlibs_CXX=no
14443             ;;
14444         esac
14445         ;;
14446
14447       vxworks*)
14448         # FIXME: insert proper C++ library support
14449         ld_shlibs_CXX=no
14450         ;;
14451
14452       *)
14453         # FIXME: insert proper C++ library support
14454         ld_shlibs_CXX=no
14455         ;;
14456     esac
14457
14458     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14459 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14460     test "$ld_shlibs_CXX" = no && can_build_shared=no
14461
14462     GCC_CXX="$GXX"
14463     LD_CXX="$LD"
14464
14465     ## CAVEAT EMPTOR:
14466     ## There is no encapsulation within the following macros, do not change
14467     ## the running order or otherwise move them around unless you know exactly
14468     ## what you are doing...
14469     # Dependencies to place before and after the object being linked:
14470 predep_objects_CXX=
14471 postdep_objects_CXX=
14472 predeps_CXX=
14473 postdeps_CXX=
14474 compiler_lib_search_path_CXX=
14475
14476 cat > conftest.$ac_ext <<_LT_EOF
14477 class Foo
14478 {
14479 public:
14480   Foo (void) { a = 0; }
14481 private:
14482   int a;
14483 };
14484 _LT_EOF
14485
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487   (eval $ac_compile) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; then
14491   # Parse the compiler output and extract the necessary
14492   # objects, libraries and library flags.
14493
14494   # Sentinel used to keep track of whether or not we are before
14495   # the conftest object file.
14496   pre_test_object_deps_done=no
14497
14498   for p in `eval "$output_verbose_link_cmd"`; do
14499     case $p in
14500
14501     -L* | -R* | -l*)
14502        # Some compilers place space between "-{L,R}" and the path.
14503        # Remove the space.
14504        if test $p = "-L" ||
14505           test $p = "-R"; then
14506          prev=$p
14507          continue
14508        else
14509          prev=
14510        fi
14511
14512        if test "$pre_test_object_deps_done" = no; then
14513          case $p in
14514          -L* | -R*)
14515            # Internal compiler library paths should come after those
14516            # provided the user.  The postdeps already come after the
14517            # user supplied libs so there is no need to process them.
14518            if test -z "$compiler_lib_search_path_CXX"; then
14519              compiler_lib_search_path_CXX="${prev}${p}"
14520            else
14521              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14522            fi
14523            ;;
14524          # The "-l" case would never come before the object being
14525          # linked, so don't bother handling this case.
14526          esac
14527        else
14528          if test -z "$postdeps_CXX"; then
14529            postdeps_CXX="${prev}${p}"
14530          else
14531            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14532          fi
14533        fi
14534        ;;
14535
14536     *.$objext)
14537        # This assumes that the test object file only shows up
14538        # once in the compiler output.
14539        if test "$p" = "conftest.$objext"; then
14540          pre_test_object_deps_done=yes
14541          continue
14542        fi
14543
14544        if test "$pre_test_object_deps_done" = no; then
14545          if test -z "$predep_objects_CXX"; then
14546            predep_objects_CXX="$p"
14547          else
14548            predep_objects_CXX="$predep_objects_CXX $p"
14549          fi
14550        else
14551          if test -z "$postdep_objects_CXX"; then
14552            postdep_objects_CXX="$p"
14553          else
14554            postdep_objects_CXX="$postdep_objects_CXX $p"
14555          fi
14556        fi
14557        ;;
14558
14559     *) ;; # Ignore the rest.
14560
14561     esac
14562   done
14563
14564   # Clean up.
14565   rm -f a.out a.exe
14566 else
14567   echo "libtool.m4: error: problem compiling CXX test program"
14568 fi
14569
14570 $RM -f confest.$objext
14571
14572 # PORTME: override above test on systems where it is broken
14573 case $host_os in
14574 interix[3-9]*)
14575   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14576   # hack all around it, let's just trust "g++" to DTRT.
14577   predep_objects_CXX=
14578   postdep_objects_CXX=
14579   postdeps_CXX=
14580   ;;
14581
14582 linux*)
14583   case `$CC -V 2>&1 | sed 5q` in
14584   *Sun\ C*)
14585     # Sun C++ 5.9
14586
14587     # The more standards-conforming stlport4 library is
14588     # incompatible with the Cstd library. Avoid specifying
14589     # it if it's in CXXFLAGS. Ignore libCrun as
14590     # -library=stlport4 depends on it.
14591     case " $CXX $CXXFLAGS " in
14592     *" -library=stlport4 "*)
14593       solaris_use_stlport4=yes
14594       ;;
14595     esac
14596
14597     if test "$solaris_use_stlport4" != yes; then
14598       postdeps_CXX='-library=Cstd -library=Crun'
14599     fi
14600     ;;
14601   esac
14602   ;;
14603
14604 solaris*)
14605   case $cc_basename in
14606   CC*)
14607     # The more standards-conforming stlport4 library is
14608     # incompatible with the Cstd library. Avoid specifying
14609     # it if it's in CXXFLAGS. Ignore libCrun as
14610     # -library=stlport4 depends on it.
14611     case " $CXX $CXXFLAGS " in
14612     *" -library=stlport4 "*)
14613       solaris_use_stlport4=yes
14614       ;;
14615     esac
14616
14617     # Adding this requires a known-good setup of shared libraries for
14618     # Sun compiler versions before 5.6, else PIC objects from an old
14619     # archive will be linked into the output, leading to subtle bugs.
14620     if test "$solaris_use_stlport4" != yes; then
14621       postdeps_CXX='-library=Cstd -library=Crun'
14622     fi
14623     ;;
14624   esac
14625   ;;
14626 esac
14627
14628
14629 case " $postdeps_CXX " in
14630 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14631 esac
14632  compiler_lib_search_dirs_CXX=
14633 if test -n "${compiler_lib_search_path_CXX}"; then
14634  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14635 fi
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667     lt_prog_compiler_wl_CXX=
14668 lt_prog_compiler_pic_CXX=
14669 lt_prog_compiler_static_CXX=
14670
14671 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14672 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14673
14674   # C++ specific cases for pic, static, wl, etc.
14675   if test "$GXX" = yes; then
14676     lt_prog_compiler_wl_CXX='-Wl,'
14677     lt_prog_compiler_static_CXX='-static'
14678
14679     case $host_os in
14680     aix*)
14681       # All AIX code is PIC.
14682       if test "$host_cpu" = ia64; then
14683         # AIX 5 now supports IA64 processor
14684         lt_prog_compiler_static_CXX='-Bstatic'
14685       fi
14686       ;;
14687
14688     amigaos*)
14689       case $host_cpu in
14690       powerpc)
14691             # see comment about AmigaOS4 .so support
14692             lt_prog_compiler_pic_CXX='-fPIC'
14693         ;;
14694       m68k)
14695             # FIXME: we need at least 68020 code to build shared libraries, but
14696             # adding the `-m68020' flag to GCC prevents building anything better,
14697             # like `-m68040'.
14698             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14699         ;;
14700       esac
14701       ;;
14702
14703     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14704       # PIC is the default for these OSes.
14705       ;;
14706     mingw* | cygwin* | os2* | pw32* | cegcc*)
14707       # This hack is so that the source file can tell whether it is being
14708       # built for inclusion in a dll (and should export symbols for example).
14709       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14710       # (--disable-auto-import) libraries
14711       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14712       ;;
14713     darwin* | rhapsody*)
14714       # PIC is the default on this platform
14715       # Common symbols not allowed in MH_DYLIB files
14716       lt_prog_compiler_pic_CXX='-fno-common'
14717       ;;
14718     *djgpp*)
14719       # DJGPP does not support shared libraries at all
14720       lt_prog_compiler_pic_CXX=
14721       ;;
14722     interix[3-9]*)
14723       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14724       # Instead, we relocate shared libraries at runtime.
14725       ;;
14726     sysv4*MP*)
14727       if test -d /usr/nec; then
14728         lt_prog_compiler_pic_CXX=-Kconform_pic
14729       fi
14730       ;;
14731     hpux*)
14732       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14733       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14734       # sets the default TLS model and affects inlining.
14735       case $host_cpu in
14736       hppa*64*)
14737         ;;
14738       *)
14739         lt_prog_compiler_pic_CXX='-fPIC'
14740         ;;
14741       esac
14742       ;;
14743     *qnx* | *nto*)
14744       # QNX uses GNU C++, but need to define -shared option too, otherwise
14745       # it will coredump.
14746       lt_prog_compiler_pic_CXX='-fPIC -shared'
14747       ;;
14748     *)
14749       lt_prog_compiler_pic_CXX='-fPIC'
14750       ;;
14751     esac
14752   else
14753     case $host_os in
14754       aix[4-9]*)
14755         # All AIX code is PIC.
14756         if test "$host_cpu" = ia64; then
14757           # AIX 5 now supports IA64 processor
14758           lt_prog_compiler_static_CXX='-Bstatic'
14759         else
14760           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14761         fi
14762         ;;
14763       chorus*)
14764         case $cc_basename in
14765         cxch68*)
14766           # Green Hills C++ Compiler
14767           # _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"
14768           ;;
14769         esac
14770         ;;
14771       dgux*)
14772         case $cc_basename in
14773           ec++*)
14774             lt_prog_compiler_pic_CXX='-KPIC'
14775             ;;
14776           ghcx*)
14777             # Green Hills C++ Compiler
14778             lt_prog_compiler_pic_CXX='-pic'
14779             ;;
14780           *)
14781             ;;
14782         esac
14783         ;;
14784       freebsd* | dragonfly*)
14785         # FreeBSD uses GNU C++
14786         ;;
14787       hpux9* | hpux10* | hpux11*)
14788         case $cc_basename in
14789           CC*)
14790             lt_prog_compiler_wl_CXX='-Wl,'
14791             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14792             if test "$host_cpu" != ia64; then
14793               lt_prog_compiler_pic_CXX='+Z'
14794             fi
14795             ;;
14796           aCC*)
14797             lt_prog_compiler_wl_CXX='-Wl,'
14798             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14799             case $host_cpu in
14800             hppa*64*|ia64*)
14801               # +Z the default
14802               ;;
14803             *)
14804               lt_prog_compiler_pic_CXX='+Z'
14805               ;;
14806             esac
14807             ;;
14808           *)
14809             ;;
14810         esac
14811         ;;
14812       interix*)
14813         # This is c89, which is MS Visual C++ (no shared libs)
14814         # Anyone wants to do a port?
14815         ;;
14816       irix5* | irix6* | nonstopux*)
14817         case $cc_basename in
14818           CC*)
14819             lt_prog_compiler_wl_CXX='-Wl,'
14820             lt_prog_compiler_static_CXX='-non_shared'
14821             # CC pic flag -KPIC is the default.
14822             ;;
14823           *)
14824             ;;
14825         esac
14826         ;;
14827       linux* | k*bsd*-gnu)
14828         case $cc_basename in
14829           KCC*)
14830             # KAI C++ Compiler
14831             lt_prog_compiler_wl_CXX='--backend -Wl,'
14832             lt_prog_compiler_pic_CXX='-fPIC'
14833             ;;
14834           ecpc* )
14835             # old Intel C++ for x86_64 which still supported -KPIC.
14836             lt_prog_compiler_wl_CXX='-Wl,'
14837             lt_prog_compiler_pic_CXX='-KPIC'
14838             lt_prog_compiler_static_CXX='-static'
14839             ;;
14840           icpc* )
14841             # Intel C++, used to be incompatible with GCC.
14842             # ICC 10 doesn't accept -KPIC any more.
14843             lt_prog_compiler_wl_CXX='-Wl,'
14844             lt_prog_compiler_pic_CXX='-fPIC'
14845             lt_prog_compiler_static_CXX='-static'
14846             ;;
14847           pgCC* | pgcpp*)
14848             # Portland Group C++ compiler
14849             lt_prog_compiler_wl_CXX='-Wl,'
14850             lt_prog_compiler_pic_CXX='-fpic'
14851             lt_prog_compiler_static_CXX='-Bstatic'
14852             ;;
14853           cxx*)
14854             # Compaq C++
14855             # Make sure the PIC flag is empty.  It appears that all Alpha
14856             # Linux and Compaq Tru64 Unix objects are PIC.
14857             lt_prog_compiler_pic_CXX=
14858             lt_prog_compiler_static_CXX='-non_shared'
14859             ;;
14860           xlc* | xlC*)
14861             # IBM XL 8.0 on PPC
14862             lt_prog_compiler_wl_CXX='-Wl,'
14863             lt_prog_compiler_pic_CXX='-qpic'
14864             lt_prog_compiler_static_CXX='-qstaticlink'
14865             ;;
14866           *)
14867             case `$CC -V 2>&1 | sed 5q` in
14868             *Sun\ C*)
14869               # Sun C++ 5.9
14870               lt_prog_compiler_pic_CXX='-KPIC'
14871               lt_prog_compiler_static_CXX='-Bstatic'
14872               lt_prog_compiler_wl_CXX='-Qoption ld '
14873               ;;
14874             esac
14875             ;;
14876         esac
14877         ;;
14878       lynxos*)
14879         ;;
14880       m88k*)
14881         ;;
14882       mvs*)
14883         case $cc_basename in
14884           cxx*)
14885             lt_prog_compiler_pic_CXX='-W c,exportall'
14886             ;;
14887           *)
14888             ;;
14889         esac
14890         ;;
14891       netbsd*)
14892         ;;
14893       *qnx* | *nto*)
14894         # QNX uses GNU C++, but need to define -shared option too, otherwise
14895         # it will coredump.
14896         lt_prog_compiler_pic_CXX='-fPIC -shared'
14897         ;;
14898       osf3* | osf4* | osf5*)
14899         case $cc_basename in
14900           KCC*)
14901             lt_prog_compiler_wl_CXX='--backend -Wl,'
14902             ;;
14903           RCC*)
14904             # Rational C++ 2.4.1
14905             lt_prog_compiler_pic_CXX='-pic'
14906             ;;
14907           cxx*)
14908             # Digital/Compaq C++
14909             lt_prog_compiler_wl_CXX='-Wl,'
14910             # Make sure the PIC flag is empty.  It appears that all Alpha
14911             # Linux and Compaq Tru64 Unix objects are PIC.
14912             lt_prog_compiler_pic_CXX=
14913             lt_prog_compiler_static_CXX='-non_shared'
14914             ;;
14915           *)
14916             ;;
14917         esac
14918         ;;
14919       psos*)
14920         ;;
14921       solaris*)
14922         case $cc_basename in
14923           CC*)
14924             # Sun C++ 4.2, 5.x and Centerline C++
14925             lt_prog_compiler_pic_CXX='-KPIC'
14926             lt_prog_compiler_static_CXX='-Bstatic'
14927             lt_prog_compiler_wl_CXX='-Qoption ld '
14928             ;;
14929           gcx*)
14930             # Green Hills C++ Compiler
14931             lt_prog_compiler_pic_CXX='-PIC'
14932             ;;
14933           *)
14934             ;;
14935         esac
14936         ;;
14937       sunos4*)
14938         case $cc_basename in
14939           CC*)
14940             # Sun C++ 4.x
14941             lt_prog_compiler_pic_CXX='-pic'
14942             lt_prog_compiler_static_CXX='-Bstatic'
14943             ;;
14944           lcc*)
14945             # Lucid
14946             lt_prog_compiler_pic_CXX='-pic'
14947             ;;
14948           *)
14949             ;;
14950         esac
14951         ;;
14952       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14953         case $cc_basename in
14954           CC*)
14955             lt_prog_compiler_wl_CXX='-Wl,'
14956             lt_prog_compiler_pic_CXX='-KPIC'
14957             lt_prog_compiler_static_CXX='-Bstatic'
14958             ;;
14959         esac
14960         ;;
14961       tandem*)
14962         case $cc_basename in
14963           NCC*)
14964             # NonStop-UX NCC 3.20
14965             lt_prog_compiler_pic_CXX='-KPIC'
14966             ;;
14967           *)
14968             ;;
14969         esac
14970         ;;
14971       vxworks*)
14972         ;;
14973       *)
14974         lt_prog_compiler_can_build_shared_CXX=no
14975         ;;
14976     esac
14977   fi
14978
14979 case $host_os in
14980   # For platforms which do not support PIC, -DPIC is meaningless:
14981   *djgpp*)
14982     lt_prog_compiler_pic_CXX=
14983     ;;
14984   *)
14985     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14986     ;;
14987 esac
14988 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14989 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14990
14991
14992
14993 #
14994 # Check to make sure the PIC flag actually works.
14995 #
14996 if test -n "$lt_prog_compiler_pic_CXX"; then
14997   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14999 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   lt_cv_prog_compiler_pic_works_CXX=no
15003    ac_outfile=conftest.$ac_objext
15004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15006    # Insert the option either (1) after the last *FLAGS variable, or
15007    # (2) before a word containing "conftest.", or (3) at the end.
15008    # Note that $ac_compile itself does not contain backslashes and begins
15009    # with a dollar sign (not a hyphen), so the echo should work correctly.
15010    # The option is referenced via a variable to avoid confusing sed.
15011    lt_compile=`echo "$ac_compile" | $SED \
15012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15014    -e 's:$: $lt_compiler_flag:'`
15015    (eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
15016    (eval "$lt_compile" 2>conftest.err)
15017    ac_status=$?
15018    cat conftest.err >&5
15019    echo "$as_me:15019: \$? = $ac_status" >&5
15020    if (exit $ac_status) && test -s "$ac_outfile"; then
15021      # The compiler can only warn and ignore the option if not recognized
15022      # So say no if there are warnings other than the usual output.
15023      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15024      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15025      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15026        lt_cv_prog_compiler_pic_works_CXX=yes
15027      fi
15028    fi
15029    $RM conftest*
15030
15031 fi
15032 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15033 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
15034
15035 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15036     case $lt_prog_compiler_pic_CXX in
15037      "" | " "*) ;;
15038      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15039      esac
15040 else
15041     lt_prog_compiler_pic_CXX=
15042      lt_prog_compiler_can_build_shared_CXX=no
15043 fi
15044
15045 fi
15046
15047
15048
15049 #
15050 # Check to make sure the static flag actually works.
15051 #
15052 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15053 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15055 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   lt_cv_prog_compiler_static_works_CXX=no
15059    save_LDFLAGS="$LDFLAGS"
15060    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15061    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15062    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15063      # The linker can only warn and ignore the option if not recognized
15064      # So say no if there are warnings
15065      if test -s conftest.err; then
15066        # Append any errors to the config.log.
15067        cat conftest.err 1>&5
15068        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15069        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15070        if diff conftest.exp conftest.er2 >/dev/null; then
15071          lt_cv_prog_compiler_static_works_CXX=yes
15072        fi
15073      else
15074        lt_cv_prog_compiler_static_works_CXX=yes
15075      fi
15076    fi
15077    $RM -r conftest*
15078    LDFLAGS="$save_LDFLAGS"
15079
15080 fi
15081 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15082 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
15083
15084 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15085     :
15086 else
15087     lt_prog_compiler_static_CXX=
15088 fi
15089
15090
15091
15092
15093     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15095 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   lt_cv_prog_compiler_c_o_CXX=no
15099    $RM -r conftest 2>/dev/null
15100    mkdir conftest
15101    cd conftest
15102    mkdir out
15103    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15104
15105    lt_compiler_flag="-o out/conftest2.$ac_objext"
15106    # Insert the option either (1) after the last *FLAGS variable, or
15107    # (2) before a word containing "conftest.", or (3) at the end.
15108    # Note that $ac_compile itself does not contain backslashes and begins
15109    # with a dollar sign (not a hyphen), so the echo should work correctly.
15110    lt_compile=`echo "$ac_compile" | $SED \
15111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15113    -e 's:$: $lt_compiler_flag:'`
15114    (eval echo "\"\$as_me:15114: $lt_compile\"" >&5)
15115    (eval "$lt_compile" 2>out/conftest.err)
15116    ac_status=$?
15117    cat out/conftest.err >&5
15118    echo "$as_me:15118: \$? = $ac_status" >&5
15119    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15120    then
15121      # The compiler can only warn and ignore the option if not recognized
15122      # So say no if there are warnings
15123      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15124      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15125      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15126        lt_cv_prog_compiler_c_o_CXX=yes
15127      fi
15128    fi
15129    chmod u+w . 2>&5
15130    $RM conftest*
15131    # SGI C++ compiler will create directory out/ii_files/ for
15132    # template instantiation
15133    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15134    $RM out/* && rmdir out
15135    cd ..
15136    $RM -r conftest
15137    $RM conftest*
15138
15139 fi
15140 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15142
15143
15144
15145     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15147 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   lt_cv_prog_compiler_c_o_CXX=no
15151    $RM -r conftest 2>/dev/null
15152    mkdir conftest
15153    cd conftest
15154    mkdir out
15155    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15156
15157    lt_compiler_flag="-o out/conftest2.$ac_objext"
15158    # Insert the option either (1) after the last *FLAGS variable, or
15159    # (2) before a word containing "conftest.", or (3) at the end.
15160    # Note that $ac_compile itself does not contain backslashes and begins
15161    # with a dollar sign (not a hyphen), so the echo should work correctly.
15162    lt_compile=`echo "$ac_compile" | $SED \
15163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165    -e 's:$: $lt_compiler_flag:'`
15166    (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)
15167    (eval "$lt_compile" 2>out/conftest.err)
15168    ac_status=$?
15169    cat out/conftest.err >&5
15170    echo "$as_me:15170: \$? = $ac_status" >&5
15171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15172    then
15173      # The compiler can only warn and ignore the option if not recognized
15174      # So say no if there are warnings
15175      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15178        lt_cv_prog_compiler_c_o_CXX=yes
15179      fi
15180    fi
15181    chmod u+w . 2>&5
15182    $RM conftest*
15183    # SGI C++ compiler will create directory out/ii_files/ for
15184    # template instantiation
15185    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15186    $RM out/* && rmdir out
15187    cd ..
15188    $RM -r conftest
15189    $RM conftest*
15190
15191 fi
15192 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15194
15195
15196
15197
15198 hard_links="nottested"
15199 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15200   # do not overwrite the value of need_locks provided by the user
15201   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15203   hard_links=yes
15204   $RM conftest*
15205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15206   touch conftest.a
15207   ln conftest.a conftest.b 2>&5 || hard_links=no
15208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15209   echo "$as_me:$LINENO: result: $hard_links" >&5
15210 echo "${ECHO_T}$hard_links" >&6
15211   if test "$hard_links" = no; then
15212     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15214     need_locks=warn
15215   fi
15216 else
15217   need_locks=no
15218 fi
15219
15220
15221
15222     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15224
15225   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15226   case $host_os in
15227   aix[4-9]*)
15228     # If we're using GNU nm, then we don't want the "-C" option.
15229     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15231       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15232     else
15233       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15234     fi
15235     ;;
15236   pw32*)
15237     export_symbols_cmds_CXX="$ltdll_cmds"
15238   ;;
15239   cygwin* | mingw* | cegcc*)
15240     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'
15241   ;;
15242   *)
15243     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15244   ;;
15245   esac
15246   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15247
15248 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15249 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15250 test "$ld_shlibs_CXX" = no && can_build_shared=no
15251
15252 with_gnu_ld_CXX=$with_gnu_ld
15253
15254
15255
15256
15257
15258
15259 #
15260 # Do we need to explicitly link libc?
15261 #
15262 case "x$archive_cmds_need_lc_CXX" in
15263 x|xyes)
15264   # Assume -lc should be added
15265   archive_cmds_need_lc_CXX=yes
15266
15267   if test "$enable_shared" = yes && test "$GCC" = yes; then
15268     case $archive_cmds_CXX in
15269     *'~'*)
15270       # FIXME: we may have to deal with multi-command sequences.
15271       ;;
15272     '$CC '*)
15273       # Test whether the compiler implicitly links with -lc since on some
15274       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15275       # to ld, don't add -lc before -lgcc.
15276       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15277 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15278       $RM conftest*
15279       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15280
15281       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282   (eval $ac_compile) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } 2>conftest.err; then
15286         soname=conftest
15287         lib=conftest
15288         libobjs=conftest.$ac_objext
15289         deplibs=
15290         wl=$lt_prog_compiler_wl_CXX
15291         pic_flag=$lt_prog_compiler_pic_CXX
15292         compiler_flags=-v
15293         linker_flags=-v
15294         verstring=
15295         output_objdir=.
15296         libname=conftest
15297         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15298         allow_undefined_flag_CXX=
15299         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15300   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); }
15304         then
15305           archive_cmds_need_lc_CXX=no
15306         else
15307           archive_cmds_need_lc_CXX=yes
15308         fi
15309         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15310       else
15311         cat conftest.err 1>&5
15312       fi
15313       $RM conftest*
15314       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15315 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15316       ;;
15317     esac
15318   fi
15319   ;;
15320 esac
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
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     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15386 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15387
15388 library_names_spec=
15389 libname_spec='lib$name'
15390 soname_spec=
15391 shrext_cmds=".so"
15392 postinstall_cmds=
15393 postuninstall_cmds=
15394 finish_cmds=
15395 finish_eval=
15396 shlibpath_var=
15397 shlibpath_overrides_runpath=unknown
15398 version_type=none
15399 dynamic_linker="$host_os ld.so"
15400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15401 need_lib_prefix=unknown
15402 hardcode_into_libs=no
15403
15404 # when you set need_version to no, make sure it does not cause -set_version
15405 # flags to be left without arguments
15406 need_version=unknown
15407
15408 case $host_os in
15409 aix3*)
15410   version_type=linux
15411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15412   shlibpath_var=LIBPATH
15413
15414   # AIX 3 has no versioning support, so we append a major version to the name.
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   ;;
15417
15418 aix[4-9]*)
15419   version_type=linux
15420   need_lib_prefix=no
15421   need_version=no
15422   hardcode_into_libs=yes
15423   if test "$host_cpu" = ia64; then
15424     # AIX 5 supports IA64
15425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15426     shlibpath_var=LD_LIBRARY_PATH
15427   else
15428     # With GCC up to 2.95.x, collect2 would create an import file
15429     # for dependence libraries.  The import file would start with
15430     # the line `#! .'.  This would cause the generated library to
15431     # depend on `.', always an invalid library.  This was fixed in
15432     # development snapshots of GCC prior to 3.0.
15433     case $host_os in
15434       aix4 | aix4.[01] | aix4.[01].*)
15435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15436            echo ' yes '
15437            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15438         :
15439       else
15440         can_build_shared=no
15441       fi
15442       ;;
15443     esac
15444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15445     # soname into executable. Probably we can add versioning support to
15446     # collect2, so additional links can be useful in future.
15447     if test "$aix_use_runtimelinking" = yes; then
15448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15449       # instead of lib<name>.a to let people know that these are not
15450       # typical AIX shared libraries.
15451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452     else
15453       # We preserve .a as extension for shared libraries through AIX4.2
15454       # and later when we are not doing run time linking.
15455       library_names_spec='${libname}${release}.a $libname.a'
15456       soname_spec='${libname}${release}${shared_ext}$major'
15457     fi
15458     shlibpath_var=LIBPATH
15459   fi
15460   ;;
15461
15462 amigaos*)
15463   case $host_cpu in
15464   powerpc)
15465     # Since July 2007 AmigaOS4 officially supports .so libraries.
15466     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468     ;;
15469   m68k)
15470     library_names_spec='$libname.ixlibrary $libname.a'
15471     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15472     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'
15473     ;;
15474   esac
15475   ;;
15476
15477 beos*)
15478   library_names_spec='${libname}${shared_ext}'
15479   dynamic_linker="$host_os ld.so"
15480   shlibpath_var=LIBRARY_PATH
15481   ;;
15482
15483 bsdi[45]*)
15484   version_type=linux
15485   need_version=no
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487   soname_spec='${libname}${release}${shared_ext}$major'
15488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15489   shlibpath_var=LD_LIBRARY_PATH
15490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15492   # the default ld.so.conf also contains /usr/contrib/lib and
15493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15494   # libtool to hard-code these into programs
15495   ;;
15496
15497 cygwin* | mingw* | pw32* | cegcc*)
15498   version_type=windows
15499   shrext_cmds=".dll"
15500   need_version=no
15501   need_lib_prefix=no
15502
15503   case $GCC,$host_os in
15504   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15505     library_names_spec='$libname.dll.a'
15506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15507     postinstall_cmds='base_file=`basename \${file}`~
15508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15509       dldir=$destdir/`dirname \$dlpath`~
15510       test -d \$dldir || mkdir -p \$dldir~
15511       $install_prog $dir/$dlname \$dldir/$dlname~
15512       chmod a+x \$dldir/$dlname~
15513       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15514         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15515       fi'
15516     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15517       dlpath=$dir/\$dldll~
15518        $RM \$dlpath'
15519     shlibpath_overrides_runpath=yes
15520
15521     case $host_os in
15522     cygwin*)
15523       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15524       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15525       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15526       ;;
15527     mingw* | cegcc*)
15528       # MinGW DLLs use traditional 'lib' prefix
15529       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15530       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15531       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15532         # It is most probably a Windows format PATH printed by
15533         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15534         # path with ; separators, and with drive letters. We can handle the
15535         # drive letters (cygwin fileutils understands them), so leave them,
15536         # especially as we might pass files found there to a mingw objdump,
15537         # which wouldn't understand a cygwinified path. Ahh.
15538         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15539       else
15540         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15541       fi
15542       ;;
15543     pw32*)
15544       # pw32 DLLs use 'pw' prefix rather than 'lib'
15545       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15546       ;;
15547     esac
15548     ;;
15549
15550   *)
15551     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15552     ;;
15553   esac
15554   dynamic_linker='Win32 ld.exe'
15555   # FIXME: first we should search . and the directory the executable is in
15556   shlibpath_var=PATH
15557   ;;
15558
15559 darwin* | rhapsody*)
15560   dynamic_linker="$host_os dyld"
15561   version_type=darwin
15562   need_lib_prefix=no
15563   need_version=no
15564   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15565   soname_spec='${libname}${release}${major}$shared_ext'
15566   shlibpath_overrides_runpath=yes
15567   shlibpath_var=DYLD_LIBRARY_PATH
15568   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15569
15570   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15571   ;;
15572
15573 dgux*)
15574   version_type=linux
15575   need_lib_prefix=no
15576   need_version=no
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15578   soname_spec='${libname}${release}${shared_ext}$major'
15579   shlibpath_var=LD_LIBRARY_PATH
15580   ;;
15581
15582 freebsd1*)
15583   dynamic_linker=no
15584   ;;
15585
15586 freebsd* | dragonfly*)
15587   # DragonFly does not have aout.  When/if they implement a new
15588   # versioning mechanism, adjust this.
15589   if test -x /usr/bin/objformat; then
15590     objformat=`/usr/bin/objformat`
15591   else
15592     case $host_os in
15593     freebsd[123]*) objformat=aout ;;
15594     *) objformat=elf ;;
15595     esac
15596   fi
15597   version_type=freebsd-$objformat
15598   case $version_type in
15599     freebsd-elf*)
15600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15601       need_version=no
15602       need_lib_prefix=no
15603       ;;
15604     freebsd-*)
15605       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15606       need_version=yes
15607       ;;
15608   esac
15609   shlibpath_var=LD_LIBRARY_PATH
15610   case $host_os in
15611   freebsd2*)
15612     shlibpath_overrides_runpath=yes
15613     ;;
15614   freebsd3.[01]* | freebsdelf3.[01]*)
15615     shlibpath_overrides_runpath=yes
15616     hardcode_into_libs=yes
15617     ;;
15618   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15619   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15620     shlibpath_overrides_runpath=no
15621     hardcode_into_libs=yes
15622     ;;
15623   *) # from 4.6 on, and DragonFly
15624     shlibpath_overrides_runpath=yes
15625     hardcode_into_libs=yes
15626     ;;
15627   esac
15628   ;;
15629
15630 gnu*)
15631   version_type=linux
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   hardcode_into_libs=yes
15638   ;;
15639
15640 hpux9* | hpux10* | hpux11*)
15641   # Give a soname corresponding to the major version so that dld.sl refuses to
15642   # link against other versions.
15643   version_type=sunos
15644   need_lib_prefix=no
15645   need_version=no
15646   case $host_cpu in
15647   ia64*)
15648     shrext_cmds='.so'
15649     hardcode_into_libs=yes
15650     dynamic_linker="$host_os dld.so"
15651     shlibpath_var=LD_LIBRARY_PATH
15652     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654     soname_spec='${libname}${release}${shared_ext}$major'
15655     if test "X$HPUX_IA64_MODE" = X32; then
15656       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15657     else
15658       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15659     fi
15660     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15661     ;;
15662   hppa*64*)
15663     shrext_cmds='.sl'
15664     hardcode_into_libs=yes
15665     dynamic_linker="$host_os dld.sl"
15666     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15667     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669     soname_spec='${libname}${release}${shared_ext}$major'
15670     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15672     ;;
15673   *)
15674     shrext_cmds='.sl'
15675     dynamic_linker="$host_os dld.sl"
15676     shlibpath_var=SHLIB_PATH
15677     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679     soname_spec='${libname}${release}${shared_ext}$major'
15680     ;;
15681   esac
15682   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15683   postinstall_cmds='chmod 555 $lib'
15684   ;;
15685
15686 interix[3-9]*)
15687   version_type=linux
15688   need_lib_prefix=no
15689   need_version=no
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   shlibpath_overrides_runpath=no
15695   hardcode_into_libs=yes
15696   ;;
15697
15698 irix5* | irix6* | nonstopux*)
15699   case $host_os in
15700     nonstopux*) version_type=nonstopux ;;
15701     *)
15702         if test "$lt_cv_prog_gnu_ld" = yes; then
15703                 version_type=linux
15704         else
15705                 version_type=irix
15706         fi ;;
15707   esac
15708   need_lib_prefix=no
15709   need_version=no
15710   soname_spec='${libname}${release}${shared_ext}$major'
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15712   case $host_os in
15713   irix5* | nonstopux*)
15714     libsuff= shlibsuff=
15715     ;;
15716   *)
15717     case $LD in # libtool.m4 will add one of these switches to LD
15718     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15719       libsuff= shlibsuff= libmagic=32-bit;;
15720     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15721       libsuff=32 shlibsuff=N32 libmagic=N32;;
15722     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15723       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15724     *) libsuff= shlibsuff= libmagic=never-match;;
15725     esac
15726     ;;
15727   esac
15728   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15729   shlibpath_overrides_runpath=no
15730   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15731   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15732   hardcode_into_libs=yes
15733   ;;
15734
15735 # No shared lib support for Linux oldld, aout, or coff.
15736 linux*oldld* | linux*aout* | linux*coff*)
15737   dynamic_linker=no
15738   ;;
15739
15740 # This must be Linux ELF.
15741 linux* | k*bsd*-gnu)
15742   version_type=linux
15743   need_lib_prefix=no
15744   need_version=no
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746   soname_spec='${libname}${release}${shared_ext}$major'
15747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15748   shlibpath_var=LD_LIBRARY_PATH
15749   shlibpath_overrides_runpath=no
15750   # Some binutils ld are patched to set DT_RUNPATH
15751   save_LDFLAGS=$LDFLAGS
15752   save_libdir=$libdir
15753   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15754        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15755   if test x$gcc_no_link = xyes; then
15756   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15758    { (exit 1); exit 1; }; }
15759 fi
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766
15767 int
15768 main ()
15769 {
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777   (eval $ac_link) 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -z "$ac_cxx_werror_flag"
15785                          || test ! -s conftest.err'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; } &&
15791          { ac_try='test -s conftest$ac_exeext'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15798   shlibpath_overrides_runpath=yes
15799 fi
15800
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 fi
15806 rm -f conftest.err conftest.$ac_objext \
15807       conftest$ac_exeext conftest.$ac_ext
15808   LDFLAGS=$save_LDFLAGS
15809   libdir=$save_libdir
15810
15811   # This implies no fast_install, which is unacceptable.
15812   # Some rework will be needed to allow for fast_install
15813   # before this can be enabled.
15814   hardcode_into_libs=yes
15815
15816   # Append ld.so.conf contents to the search path
15817   if test -f /etc/ld.so.conf; then
15818     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' ' '`
15819     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15820   fi
15821
15822   # We used to test for /lib/ld.so.1 and disable shared libraries on
15823   # powerpc, because MkLinux only supported shared libraries with the
15824   # GNU dynamic linker.  Since this was broken with cross compilers,
15825   # most powerpc-linux boxes support dynamic linking these days and
15826   # people can always --disable-shared, the test was removed, and we
15827   # assume the GNU/Linux dynamic linker is in use.
15828   dynamic_linker='GNU/Linux ld.so'
15829   ;;
15830
15831 netbsd*)
15832   version_type=sunos
15833   need_lib_prefix=no
15834   need_version=no
15835   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15837     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15838     dynamic_linker='NetBSD (a.out) ld.so'
15839   else
15840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15841     soname_spec='${libname}${release}${shared_ext}$major'
15842     dynamic_linker='NetBSD ld.elf_so'
15843   fi
15844   shlibpath_var=LD_LIBRARY_PATH
15845   shlibpath_overrides_runpath=yes
15846   hardcode_into_libs=yes
15847   ;;
15848
15849 newsos6)
15850   version_type=linux
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852   shlibpath_var=LD_LIBRARY_PATH
15853   shlibpath_overrides_runpath=yes
15854   ;;
15855
15856 *nto* | *qnx*)
15857   version_type=qnx
15858   need_lib_prefix=no
15859   need_version=no
15860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861   soname_spec='${libname}${release}${shared_ext}$major'
15862   shlibpath_var=LD_LIBRARY_PATH
15863   shlibpath_overrides_runpath=no
15864   hardcode_into_libs=yes
15865   dynamic_linker='ldqnx.so'
15866   ;;
15867
15868 openbsd*)
15869   version_type=sunos
15870   sys_lib_dlsearch_path_spec="/usr/lib"
15871   need_lib_prefix=no
15872   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15873   case $host_os in
15874     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15875     *)                          need_version=no  ;;
15876   esac
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15878   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881     case $host_os in
15882       openbsd2.[89] | openbsd2.[89].*)
15883         shlibpath_overrides_runpath=no
15884         ;;
15885       *)
15886         shlibpath_overrides_runpath=yes
15887         ;;
15888       esac
15889   else
15890     shlibpath_overrides_runpath=yes
15891   fi
15892   ;;
15893
15894 os2*)
15895   libname_spec='$name'
15896   shrext_cmds=".dll"
15897   need_lib_prefix=no
15898   library_names_spec='$libname${shared_ext} $libname.a'
15899   dynamic_linker='OS/2 ld.exe'
15900   shlibpath_var=LIBPATH
15901   ;;
15902
15903 osf3* | osf4* | osf5*)
15904   version_type=osf
15905   need_lib_prefix=no
15906   need_version=no
15907   soname_spec='${libname}${release}${shared_ext}$major'
15908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15911   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15912   ;;
15913
15914 rdos*)
15915   dynamic_linker=no
15916   ;;
15917
15918 solaris*)
15919   version_type=linux
15920   need_lib_prefix=no
15921   need_version=no
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   shlibpath_var=LD_LIBRARY_PATH
15925   shlibpath_overrides_runpath=yes
15926   hardcode_into_libs=yes
15927   # ldd complains unless libraries are executable
15928   postinstall_cmds='chmod +x $lib'
15929   ;;
15930
15931 sunos4*)
15932   version_type=sunos
15933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15934   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15935   shlibpath_var=LD_LIBRARY_PATH
15936   shlibpath_overrides_runpath=yes
15937   if test "$with_gnu_ld" = yes; then
15938     need_lib_prefix=no
15939   fi
15940   need_version=yes
15941   ;;
15942
15943 sysv4 | sysv4.3*)
15944   version_type=linux
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   soname_spec='${libname}${release}${shared_ext}$major'
15947   shlibpath_var=LD_LIBRARY_PATH
15948   case $host_vendor in
15949     sni)
15950       shlibpath_overrides_runpath=no
15951       need_lib_prefix=no
15952       runpath_var=LD_RUN_PATH
15953       ;;
15954     siemens)
15955       need_lib_prefix=no
15956       ;;
15957     motorola)
15958       need_lib_prefix=no
15959       need_version=no
15960       shlibpath_overrides_runpath=no
15961       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15962       ;;
15963   esac
15964   ;;
15965
15966 sysv4*MP*)
15967   if test -d /usr/nec ;then
15968     version_type=linux
15969     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15970     soname_spec='$libname${shared_ext}.$major'
15971     shlibpath_var=LD_LIBRARY_PATH
15972   fi
15973   ;;
15974
15975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15976   version_type=freebsd-elf
15977   need_lib_prefix=no
15978   need_version=no
15979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15980   soname_spec='${libname}${release}${shared_ext}$major'
15981   shlibpath_var=LD_LIBRARY_PATH
15982   shlibpath_overrides_runpath=yes
15983   hardcode_into_libs=yes
15984   if test "$with_gnu_ld" = yes; then
15985     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15986   else
15987     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15988     case $host_os in
15989       sco3.2v5*)
15990         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15991         ;;
15992     esac
15993   fi
15994   sys_lib_dlsearch_path_spec='/usr/lib'
15995   ;;
15996
15997 tpf*)
15998   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15999   version_type=linux
16000   need_lib_prefix=no
16001   need_version=no
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   shlibpath_overrides_runpath=no
16005   hardcode_into_libs=yes
16006   ;;
16007
16008 uts4*)
16009   version_type=linux
16010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011   soname_spec='${libname}${release}${shared_ext}$major'
16012   shlibpath_var=LD_LIBRARY_PATH
16013   ;;
16014
16015 *)
16016   dynamic_linker=no
16017   ;;
16018 esac
16019 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16020 echo "${ECHO_T}$dynamic_linker" >&6
16021 test "$dynamic_linker" = no && can_build_shared=no
16022
16023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16024 if test "$GCC" = yes; then
16025   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16026 fi
16027
16028 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16029   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16030 fi
16031 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16032   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16033 fi
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16071 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16072 hardcode_action_CXX=
16073 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16074    test -n "$runpath_var_CXX" ||
16075    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16076
16077   # We can hardcode non-existent directories.
16078   if test "$hardcode_direct_CXX" != no &&
16079      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16080      # have to relink, otherwise we might link with an installed library
16081      # when we should be linking with a yet-to-be-installed one
16082      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16083      test "$hardcode_minus_L_CXX" != no; then
16084     # Linking always hardcodes the temporary library directory.
16085     hardcode_action_CXX=relink
16086   else
16087     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16088     hardcode_action_CXX=immediate
16089   fi
16090 else
16091   # We cannot hardcode anything, or else we can only hardcode existing
16092   # directories.
16093   hardcode_action_CXX=unsupported
16094 fi
16095 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16096 echo "${ECHO_T}$hardcode_action_CXX" >&6
16097
16098 if test "$hardcode_action_CXX" = relink ||
16099    test "$inherit_rpath_CXX" = yes; then
16100   # Fast installation is not supported
16101   enable_fast_install=no
16102 elif test "$shlibpath_overrides_runpath" = yes ||
16103      test "$enable_shared" = no; then
16104   # Fast installation is not necessary
16105   enable_fast_install=needless
16106 fi
16107
16108
16109
16110
16111
16112
16113
16114   fi # test -n "$compiler"
16115
16116   CC=$lt_save_CC
16117   LDCXX=$LD
16118   LD=$lt_save_LD
16119   GCC=$lt_save_GCC
16120   with_gnu_ld=$lt_save_with_gnu_ld
16121   lt_cv_path_LDCXX=$lt_cv_path_LD
16122   lt_cv_path_LD=$lt_save_path_LD
16123   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16124   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16125 fi # test "$_lt_caught_CXX_error" != yes
16126
16127 ac_ext=c
16128 ac_cpp='$CPP $CPPFLAGS'
16129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145                   ac_config_commands="$ac_config_commands libtool"
16146
16147
16148
16149
16150 # Only expand once:
16151
16152
16153
16154 for ac_prog in gcj
16155 do
16156   # Extract the first word of "$ac_prog", so it can be a program name with args.
16157 set dummy $ac_prog; ac_word=$2
16158 echo "$as_me:$LINENO: checking for $ac_word" >&5
16159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16160 if test "${ac_cv_prog_GCJ+set}" = set; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163   if test -n "$GCJ"; then
16164   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16165 else
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16168 do
16169   IFS=$as_save_IFS
16170   test -z "$as_dir" && as_dir=.
16171   for ac_exec_ext in '' $ac_executable_extensions; do
16172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16173     ac_cv_prog_GCJ="$ac_prog"
16174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16175     break 2
16176   fi
16177 done
16178 done
16179
16180 fi
16181 fi
16182 GCJ=$ac_cv_prog_GCJ
16183 if test -n "$GCJ"; then
16184   echo "$as_me:$LINENO: result: $GCJ" >&5
16185 echo "${ECHO_T}$GCJ" >&6
16186 else
16187   echo "$as_me:$LINENO: result: no" >&5
16188 echo "${ECHO_T}no" >&6
16189 fi
16190
16191   test -n "$GCJ" && break
16192 done
16193 test -n "$GCJ" || GCJ="gcj"
16194
16195 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16196 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16197    { (exit 1); exit 1; }; }
16198 if test "x${GCJFLAGS-unset}" = xunset; then
16199    GCJFLAGS="-g -O2"
16200 fi
16201
16202
16203 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16204
16205 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16206 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16207 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16211   # We make a subdir and do the tests there.  Otherwise we can end up
16212   # making bogus files that we don't know about and never remove.  For
16213   # instance it was reported that on HP-UX the gcc test will end up
16214   # making a dummy file named `D' -- because `-MD' means `put the output
16215   # in D'.
16216   mkdir conftest.dir
16217   # Copy depcomp to subdir because otherwise we won't find it if we're
16218   # using a relative directory.
16219   cp "$am_depcomp" conftest.dir
16220   cd conftest.dir
16221   # We will build objects and dependencies in a subdirectory because
16222   # it helps to detect inapplicable dependency modes.  For instance
16223   # both Tru64's cc and ICC support -MD to output dependencies as a
16224   # side effect of compilation, but ICC will put the dependencies in
16225   # the current directory while Tru64 will put them in the object
16226   # directory.
16227   mkdir sub
16228
16229   am_cv_GCJ_dependencies_compiler_type=none
16230   if test "$am_compiler_list" = ""; then
16231      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16232   fi
16233   for depmode in $am_compiler_list; do
16234     # Setup a source with many dependencies, because some compilers
16235     # like to wrap large dependency lists on column 80 (with \), and
16236     # we should not choose a depcomp mode which is confused by this.
16237     #
16238     # We need to recreate these files for each test, as the compiler may
16239     # overwrite some of them when testing with obscure command lines.
16240     # This happens at least with the AIX C compiler.
16241     : > sub/conftest.c
16242     for i in 1 2 3 4 5 6; do
16243       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16244       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16245       # Solaris 8's {/usr,}/bin/sh.
16246       touch sub/conftst$i.h
16247     done
16248     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16249
16250     case $depmode in
16251     nosideeffect)
16252       # after this tag, mechanisms are not by side-effect, so they'll
16253       # only be used when explicitly requested
16254       if test "x$enable_dependency_tracking" = xyes; then
16255         continue
16256       else
16257         break
16258       fi
16259       ;;
16260     none) break ;;
16261     esac
16262     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16263     # mode.  It turns out that the SunPro C++ compiler does not properly
16264     # handle `-M -o', and we need to detect this.
16265     if depmode=$depmode \
16266        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16267        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16268        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16269          >/dev/null 2>conftest.err &&
16270        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16271        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16272        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16273       # icc doesn't choke on unknown options, it will just issue warnings
16274       # or remarks (even with -Werror).  So we grep stderr for any message
16275       # that says an option was ignored or not supported.
16276       # When given -MP, icc 7.0 and 7.1 complain thusly:
16277       #   icc: Command line warning: ignoring option '-M'; no argument required
16278       # The diagnosis changed in icc 8.0:
16279       #   icc: Command line remark: option '-MP' not supported
16280       if (grep 'ignoring option' conftest.err ||
16281           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16282         am_cv_GCJ_dependencies_compiler_type=$depmode
16283         break
16284       fi
16285     fi
16286   done
16287
16288   cd ..
16289   rm -rf conftest.dir
16290 else
16291   am_cv_GCJ_dependencies_compiler_type=none
16292 fi
16293
16294 fi
16295 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16296 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16297 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16298
16299
16300
16301 if
16302   test "x$enable_dependency_tracking" != xno \
16303   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16304   am__fastdepGCJ_TRUE=
16305   am__fastdepGCJ_FALSE='#'
16306 else
16307   am__fastdepGCJ_TRUE='#'
16308   am__fastdepGCJ_FALSE=
16309 fi
16310
16311
16312
16313 for ac_prog in gcj
16314 do
16315   # Extract the first word of "$ac_prog", so it can be a program name with args.
16316 set dummy $ac_prog; ac_word=$2
16317 echo "$as_me:$LINENO: checking for $ac_word" >&5
16318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16319 if test "${ac_cv_prog_GCJ+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   if test -n "$GCJ"; then
16323   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16324 else
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16327 do
16328   IFS=$as_save_IFS
16329   test -z "$as_dir" && as_dir=.
16330   for ac_exec_ext in '' $ac_executable_extensions; do
16331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332     ac_cv_prog_GCJ="$ac_prog"
16333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16334     break 2
16335   fi
16336 done
16337 done
16338
16339 fi
16340 fi
16341 GCJ=$ac_cv_prog_GCJ
16342 if test -n "$GCJ"; then
16343   echo "$as_me:$LINENO: result: $GCJ" >&5
16344 echo "${ECHO_T}$GCJ" >&6
16345 else
16346   echo "$as_me:$LINENO: result: no" >&5
16347 echo "${ECHO_T}no" >&6
16348 fi
16349
16350   test -n "$GCJ" && break
16351 done
16352 test -n "$GCJ" || GCJ="gcj"
16353
16354 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16355 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16356    { (exit 1); exit 1; }; }
16357 if test "x${GCJFLAGS-unset}" = xunset; then
16358    GCJFLAGS="-g -O2"
16359 fi
16360
16361
16362 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16363
16364 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16365 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16366 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16367   echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16370   # We make a subdir and do the tests there.  Otherwise we can end up
16371   # making bogus files that we don't know about and never remove.  For
16372   # instance it was reported that on HP-UX the gcc test will end up
16373   # making a dummy file named `D' -- because `-MD' means `put the output
16374   # in D'.
16375   mkdir conftest.dir
16376   # Copy depcomp to subdir because otherwise we won't find it if we're
16377   # using a relative directory.
16378   cp "$am_depcomp" conftest.dir
16379   cd conftest.dir
16380   # We will build objects and dependencies in a subdirectory because
16381   # it helps to detect inapplicable dependency modes.  For instance
16382   # both Tru64's cc and ICC support -MD to output dependencies as a
16383   # side effect of compilation, but ICC will put the dependencies in
16384   # the current directory while Tru64 will put them in the object
16385   # directory.
16386   mkdir sub
16387
16388   am_cv_GCJ_dependencies_compiler_type=none
16389   if test "$am_compiler_list" = ""; then
16390      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16391   fi
16392   for depmode in $am_compiler_list; do
16393     # Setup a source with many dependencies, because some compilers
16394     # like to wrap large dependency lists on column 80 (with \), and
16395     # we should not choose a depcomp mode which is confused by this.
16396     #
16397     # We need to recreate these files for each test, as the compiler may
16398     # overwrite some of them when testing with obscure command lines.
16399     # This happens at least with the AIX C compiler.
16400     : > sub/conftest.c
16401     for i in 1 2 3 4 5 6; do
16402       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16403       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16404       # Solaris 8's {/usr,}/bin/sh.
16405       touch sub/conftst$i.h
16406     done
16407     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16408
16409     case $depmode in
16410     nosideeffect)
16411       # after this tag, mechanisms are not by side-effect, so they'll
16412       # only be used when explicitly requested
16413       if test "x$enable_dependency_tracking" = xyes; then
16414         continue
16415       else
16416         break
16417       fi
16418       ;;
16419     none) break ;;
16420     esac
16421     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16422     # mode.  It turns out that the SunPro C++ compiler does not properly
16423     # handle `-M -o', and we need to detect this.
16424     if depmode=$depmode \
16425        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16426        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16427        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16428          >/dev/null 2>conftest.err &&
16429        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16430        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16431        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16432       # icc doesn't choke on unknown options, it will just issue warnings
16433       # or remarks (even with -Werror).  So we grep stderr for any message
16434       # that says an option was ignored or not supported.
16435       # When given -MP, icc 7.0 and 7.1 complain thusly:
16436       #   icc: Command line warning: ignoring option '-M'; no argument required
16437       # The diagnosis changed in icc 8.0:
16438       #   icc: Command line remark: option '-MP' not supported
16439       if (grep 'ignoring option' conftest.err ||
16440           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16441         am_cv_GCJ_dependencies_compiler_type=$depmode
16442         break
16443       fi
16444     fi
16445   done
16446
16447   cd ..
16448   rm -rf conftest.dir
16449 else
16450   am_cv_GCJ_dependencies_compiler_type=none
16451 fi
16452
16453 fi
16454 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16455 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16456 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16457
16458
16459
16460 if
16461   test "x$enable_dependency_tracking" != xno \
16462   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16463   am__fastdepGCJ_TRUE=
16464   am__fastdepGCJ_FALSE='#'
16465 else
16466   am__fastdepGCJ_TRUE='#'
16467   am__fastdepGCJ_FALSE=
16468 fi
16469
16470
16471
16472
16473
16474
16475 # Source file extension for Java test sources.
16476 ac_ext=c
16477
16478 # Object file extension for compiled Java test sources.
16479 objext=o
16480 objext_GCJ=$objext
16481
16482 # Code to be used in simple compile tests
16483 lt_simple_compile_test_code="int some_variable = 0;"
16484
16485 # Code to be used in simple link tests
16486 lt_simple_link_test_code='int main(){return(0);}'
16487
16488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16489
16490
16491
16492
16493
16494
16495 # If no C compiler was specified, use CC.
16496 LTCC=${LTCC-"$CC"}
16497
16498 # If no C compiler flags were specified, use CFLAGS.
16499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16500
16501 # Allow CC to be a program name with arguments.
16502 compiler=$CC
16503
16504
16505 # save warnings/boilerplate of simple test code
16506 ac_outfile=conftest.$ac_objext
16507 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16509 _lt_compiler_boilerplate=`cat conftest.err`
16510 $RM conftest*
16511
16512 ac_outfile=conftest.$ac_objext
16513 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16515 _lt_linker_boilerplate=`cat conftest.err`
16516 $RM -r conftest*
16517
16518
16519 # Allow CC to be a program name with arguments.
16520 GCC=yes
16521 compiler=$CC
16522 compiler_GCJ=$CC
16523 for cc_temp in $compiler""; do
16524   case $cc_temp in
16525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16527     \-*) ;;
16528     *) break;;
16529   esac
16530 done
16531 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16532
16533
16534 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16535 archive_cmds_need_lc_GCJ=no
16536
16537 old_archive_cmds_GCJ=$old_archive_cmds
16538
16539 ## CAVEAT EMPTOR:
16540 ## There is no encapsulation within the following macros, do not change
16541 ## the running order or otherwise move them around unless you know exactly
16542 ## what you are doing...
16543 if test -n "$compiler"; then
16544
16545 lt_prog_compiler_no_builtin_flag_GCJ=
16546
16547 if test "$GCC" = yes; then
16548   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16549
16550   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16551 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555   lt_cv_prog_compiler_rtti_exceptions=no
16556    ac_outfile=conftest.$ac_objext
16557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16558    lt_compiler_flag="-fno-rtti -fno-exceptions"
16559    # Insert the option either (1) after the last *FLAGS variable, or
16560    # (2) before a word containing "conftest.", or (3) at the end.
16561    # Note that $ac_compile itself does not contain backslashes and begins
16562    # with a dollar sign (not a hyphen), so the echo should work correctly.
16563    # The option is referenced via a variable to avoid confusing sed.
16564    lt_compile=`echo "$ac_compile" | $SED \
16565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16567    -e 's:$: $lt_compiler_flag:'`
16568    (eval echo "\"\$as_me:16568: $lt_compile\"" >&5)
16569    (eval "$lt_compile" 2>conftest.err)
16570    ac_status=$?
16571    cat conftest.err >&5
16572    echo "$as_me:16572: \$? = $ac_status" >&5
16573    if (exit $ac_status) && test -s "$ac_outfile"; then
16574      # The compiler can only warn and ignore the option if not recognized
16575      # So say no if there are warnings other than the usual output.
16576      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16577      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16578      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16579        lt_cv_prog_compiler_rtti_exceptions=yes
16580      fi
16581    fi
16582    $RM conftest*
16583
16584 fi
16585 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16586 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16587
16588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16589     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16590 else
16591     :
16592 fi
16593
16594 fi
16595
16596
16597
16598   lt_prog_compiler_wl_GCJ=
16599 lt_prog_compiler_pic_GCJ=
16600 lt_prog_compiler_static_GCJ=
16601
16602 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16603 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16604
16605   if test "$GCC" = yes; then
16606     lt_prog_compiler_wl_GCJ='-Wl,'
16607     lt_prog_compiler_static_GCJ='-static'
16608
16609     case $host_os in
16610       aix*)
16611       # All AIX code is PIC.
16612       if test "$host_cpu" = ia64; then
16613         # AIX 5 now supports IA64 processor
16614         lt_prog_compiler_static_GCJ='-Bstatic'
16615       fi
16616       ;;
16617
16618     amigaos*)
16619       case $host_cpu in
16620       powerpc)
16621             # see comment about AmigaOS4 .so support
16622             lt_prog_compiler_pic_GCJ='-fPIC'
16623         ;;
16624       m68k)
16625             # FIXME: we need at least 68020 code to build shared libraries, but
16626             # adding the `-m68020' flag to GCC prevents building anything better,
16627             # like `-m68040'.
16628             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16629         ;;
16630       esac
16631       ;;
16632
16633     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16634       # PIC is the default for these OSes.
16635       ;;
16636
16637     mingw* | cygwin* | pw32* | os2* | cegcc*)
16638       # This hack is so that the source file can tell whether it is being
16639       # built for inclusion in a dll (and should export symbols for example).
16640       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16641       # (--disable-auto-import) libraries
16642
16643       ;;
16644
16645     darwin* | rhapsody*)
16646       # PIC is the default on this platform
16647       # Common symbols not allowed in MH_DYLIB files
16648       lt_prog_compiler_pic_GCJ='-fno-common'
16649       ;;
16650
16651     hpux*)
16652       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16653       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16654       # sets the default TLS model and affects inlining.
16655       case $host_cpu in
16656       hppa*64*)
16657         # +Z the default
16658         ;;
16659       *)
16660         lt_prog_compiler_pic_GCJ='-fPIC'
16661         ;;
16662       esac
16663       ;;
16664
16665     interix[3-9]*)
16666       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16667       # Instead, we relocate shared libraries at runtime.
16668       ;;
16669
16670     msdosdjgpp*)
16671       # Just because we use GCC doesn't mean we suddenly get shared libraries
16672       # on systems that don't support them.
16673       lt_prog_compiler_can_build_shared_GCJ=no
16674       enable_shared=no
16675       ;;
16676
16677     *nto* | *qnx*)
16678       # QNX uses GNU C++, but need to define -shared option too, otherwise
16679       # it will coredump.
16680       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16681       ;;
16682
16683     sysv4*MP*)
16684       if test -d /usr/nec; then
16685         lt_prog_compiler_pic_GCJ=-Kconform_pic
16686       fi
16687       ;;
16688
16689     *)
16690       lt_prog_compiler_pic_GCJ='-fPIC'
16691       ;;
16692     esac
16693   else
16694     # PORTME Check for flag to pass linker flags through the system compiler.
16695     case $host_os in
16696     aix*)
16697       lt_prog_compiler_wl_GCJ='-Wl,'
16698       if test "$host_cpu" = ia64; then
16699         # AIX 5 now supports IA64 processor
16700         lt_prog_compiler_static_GCJ='-Bstatic'
16701       else
16702         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16703       fi
16704       ;;
16705
16706     mingw* | cygwin* | pw32* | os2* | cegcc*)
16707       # This hack is so that the source file can tell whether it is being
16708       # built for inclusion in a dll (and should export symbols for example).
16709
16710       ;;
16711
16712     hpux9* | hpux10* | hpux11*)
16713       lt_prog_compiler_wl_GCJ='-Wl,'
16714       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16715       # not for PA HP-UX.
16716       case $host_cpu in
16717       hppa*64*|ia64*)
16718         # +Z the default
16719         ;;
16720       *)
16721         lt_prog_compiler_pic_GCJ='+Z'
16722         ;;
16723       esac
16724       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16725       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16726       ;;
16727
16728     irix5* | irix6* | nonstopux*)
16729       lt_prog_compiler_wl_GCJ='-Wl,'
16730       # PIC (with -KPIC) is the default.
16731       lt_prog_compiler_static_GCJ='-non_shared'
16732       ;;
16733
16734     linux* | k*bsd*-gnu)
16735       case $cc_basename in
16736       # old Intel for x86_64 which still supported -KPIC.
16737       ecc*)
16738         lt_prog_compiler_wl_GCJ='-Wl,'
16739         lt_prog_compiler_pic_GCJ='-KPIC'
16740         lt_prog_compiler_static_GCJ='-static'
16741         ;;
16742       # icc used to be incompatible with GCC.
16743       # ICC 10 doesn't accept -KPIC any more.
16744       icc* | ifort*)
16745         lt_prog_compiler_wl_GCJ='-Wl,'
16746         lt_prog_compiler_pic_GCJ='-fPIC'
16747         lt_prog_compiler_static_GCJ='-static'
16748         ;;
16749       # Lahey Fortran 8.1.
16750       lf95*)
16751         lt_prog_compiler_wl_GCJ='-Wl,'
16752         lt_prog_compiler_pic_GCJ='--shared'
16753         lt_prog_compiler_static_GCJ='--static'
16754         ;;
16755       pgcc* | pgf77* | pgf90* | pgf95*)
16756         # Portland Group compilers (*not* the Pentium gcc compiler,
16757         # which looks to be a dead project)
16758         lt_prog_compiler_wl_GCJ='-Wl,'
16759         lt_prog_compiler_pic_GCJ='-fpic'
16760         lt_prog_compiler_static_GCJ='-Bstatic'
16761         ;;
16762       ccc*)
16763         lt_prog_compiler_wl_GCJ='-Wl,'
16764         # All Alpha code is PIC.
16765         lt_prog_compiler_static_GCJ='-non_shared'
16766         ;;
16767       xl*)
16768         # IBM XL C 8.0/Fortran 10.1 on PPC
16769         lt_prog_compiler_wl_GCJ='-Wl,'
16770         lt_prog_compiler_pic_GCJ='-qpic'
16771         lt_prog_compiler_static_GCJ='-qstaticlink'
16772         ;;
16773       *)
16774         case `$CC -V 2>&1 | sed 5q` in
16775         *Sun\ C*)
16776           # Sun C 5.9
16777           lt_prog_compiler_pic_GCJ='-KPIC'
16778           lt_prog_compiler_static_GCJ='-Bstatic'
16779           lt_prog_compiler_wl_GCJ='-Wl,'
16780           ;;
16781         *Sun\ F*)
16782           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16783           lt_prog_compiler_pic_GCJ='-KPIC'
16784           lt_prog_compiler_static_GCJ='-Bstatic'
16785           lt_prog_compiler_wl_GCJ=''
16786           ;;
16787         esac
16788         ;;
16789       esac
16790       ;;
16791
16792     newsos6)
16793       lt_prog_compiler_pic_GCJ='-KPIC'
16794       lt_prog_compiler_static_GCJ='-Bstatic'
16795       ;;
16796
16797     *nto* | *qnx*)
16798       # QNX uses GNU C++, but need to define -shared option too, otherwise
16799       # it will coredump.
16800       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16801       ;;
16802
16803     osf3* | osf4* | osf5*)
16804       lt_prog_compiler_wl_GCJ='-Wl,'
16805       # All OSF/1 code is PIC.
16806       lt_prog_compiler_static_GCJ='-non_shared'
16807       ;;
16808
16809     rdos*)
16810       lt_prog_compiler_static_GCJ='-non_shared'
16811       ;;
16812
16813     solaris*)
16814       lt_prog_compiler_pic_GCJ='-KPIC'
16815       lt_prog_compiler_static_GCJ='-Bstatic'
16816       case $cc_basename in
16817       f77* | f90* | f95*)
16818         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16819       *)
16820         lt_prog_compiler_wl_GCJ='-Wl,';;
16821       esac
16822       ;;
16823
16824     sunos4*)
16825       lt_prog_compiler_wl_GCJ='-Qoption ld '
16826       lt_prog_compiler_pic_GCJ='-PIC'
16827       lt_prog_compiler_static_GCJ='-Bstatic'
16828       ;;
16829
16830     sysv4 | sysv4.2uw2* | sysv4.3*)
16831       lt_prog_compiler_wl_GCJ='-Wl,'
16832       lt_prog_compiler_pic_GCJ='-KPIC'
16833       lt_prog_compiler_static_GCJ='-Bstatic'
16834       ;;
16835
16836     sysv4*MP*)
16837       if test -d /usr/nec ;then
16838         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16839         lt_prog_compiler_static_GCJ='-Bstatic'
16840       fi
16841       ;;
16842
16843     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16844       lt_prog_compiler_wl_GCJ='-Wl,'
16845       lt_prog_compiler_pic_GCJ='-KPIC'
16846       lt_prog_compiler_static_GCJ='-Bstatic'
16847       ;;
16848
16849     unicos*)
16850       lt_prog_compiler_wl_GCJ='-Wl,'
16851       lt_prog_compiler_can_build_shared_GCJ=no
16852       ;;
16853
16854     uts4*)
16855       lt_prog_compiler_pic_GCJ='-pic'
16856       lt_prog_compiler_static_GCJ='-Bstatic'
16857       ;;
16858
16859     *)
16860       lt_prog_compiler_can_build_shared_GCJ=no
16861       ;;
16862     esac
16863   fi
16864
16865 case $host_os in
16866   # For platforms which do not support PIC, -DPIC is meaningless:
16867   *djgpp*)
16868     lt_prog_compiler_pic_GCJ=
16869     ;;
16870   *)
16871     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16872     ;;
16873 esac
16874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16875 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16876
16877
16878
16879 #
16880 # Check to make sure the PIC flag actually works.
16881 #
16882 if test -n "$lt_prog_compiler_pic_GCJ"; then
16883   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16884 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16885 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   lt_cv_prog_compiler_pic_works_GCJ=no
16889    ac_outfile=conftest.$ac_objext
16890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16891    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16892    # Insert the option either (1) after the last *FLAGS variable, or
16893    # (2) before a word containing "conftest.", or (3) at the end.
16894    # Note that $ac_compile itself does not contain backslashes and begins
16895    # with a dollar sign (not a hyphen), so the echo should work correctly.
16896    # The option is referenced via a variable to avoid confusing sed.
16897    lt_compile=`echo "$ac_compile" | $SED \
16898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900    -e 's:$: $lt_compiler_flag:'`
16901    (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902    (eval "$lt_compile" 2>conftest.err)
16903    ac_status=$?
16904    cat conftest.err >&5
16905    echo "$as_me:16905: \$? = $ac_status" >&5
16906    if (exit $ac_status) && test -s "$ac_outfile"; then
16907      # The compiler can only warn and ignore the option if not recognized
16908      # So say no if there are warnings other than the usual output.
16909      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16910      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912        lt_cv_prog_compiler_pic_works_GCJ=yes
16913      fi
16914    fi
16915    $RM conftest*
16916
16917 fi
16918 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16919 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16920
16921 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16922     case $lt_prog_compiler_pic_GCJ in
16923      "" | " "*) ;;
16924      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16925      esac
16926 else
16927     lt_prog_compiler_pic_GCJ=
16928      lt_prog_compiler_can_build_shared_GCJ=no
16929 fi
16930
16931 fi
16932
16933
16934
16935 #
16936 # Check to make sure the static flag actually works.
16937 #
16938 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16939 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16940 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16941 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16942   echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944   lt_cv_prog_compiler_static_works_GCJ=no
16945    save_LDFLAGS="$LDFLAGS"
16946    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16947    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16948    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16949      # The linker can only warn and ignore the option if not recognized
16950      # So say no if there are warnings
16951      if test -s conftest.err; then
16952        # Append any errors to the config.log.
16953        cat conftest.err 1>&5
16954        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16955        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16956        if diff conftest.exp conftest.er2 >/dev/null; then
16957          lt_cv_prog_compiler_static_works_GCJ=yes
16958        fi
16959      else
16960        lt_cv_prog_compiler_static_works_GCJ=yes
16961      fi
16962    fi
16963    $RM -r conftest*
16964    LDFLAGS="$save_LDFLAGS"
16965
16966 fi
16967 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16968 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16969
16970 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16971     :
16972 else
16973     lt_prog_compiler_static_GCJ=
16974 fi
16975
16976
16977
16978
16979   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16981 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   lt_cv_prog_compiler_c_o_GCJ=no
16985    $RM -r conftest 2>/dev/null
16986    mkdir conftest
16987    cd conftest
16988    mkdir out
16989    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16990
16991    lt_compiler_flag="-o out/conftest2.$ac_objext"
16992    # Insert the option either (1) after the last *FLAGS variable, or
16993    # (2) before a word containing "conftest.", or (3) at the end.
16994    # Note that $ac_compile itself does not contain backslashes and begins
16995    # with a dollar sign (not a hyphen), so the echo should work correctly.
16996    lt_compile=`echo "$ac_compile" | $SED \
16997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16999    -e 's:$: $lt_compiler_flag:'`
17000    (eval echo "\"\$as_me:17000: $lt_compile\"" >&5)
17001    (eval "$lt_compile" 2>out/conftest.err)
17002    ac_status=$?
17003    cat out/conftest.err >&5
17004    echo "$as_me:17004: \$? = $ac_status" >&5
17005    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17006    then
17007      # The compiler can only warn and ignore the option if not recognized
17008      # So say no if there are warnings
17009      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17010      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17011      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17012        lt_cv_prog_compiler_c_o_GCJ=yes
17013      fi
17014    fi
17015    chmod u+w . 2>&5
17016    $RM conftest*
17017    # SGI C++ compiler will create directory out/ii_files/ for
17018    # template instantiation
17019    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17020    $RM out/* && rmdir out
17021    cd ..
17022    $RM -r conftest
17023    $RM conftest*
17024
17025 fi
17026 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17028
17029
17030
17031   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17033 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   lt_cv_prog_compiler_c_o_GCJ=no
17037    $RM -r conftest 2>/dev/null
17038    mkdir conftest
17039    cd conftest
17040    mkdir out
17041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17042
17043    lt_compiler_flag="-o out/conftest2.$ac_objext"
17044    # Insert the option either (1) after the last *FLAGS variable, or
17045    # (2) before a word containing "conftest.", or (3) at the end.
17046    # Note that $ac_compile itself does not contain backslashes and begins
17047    # with a dollar sign (not a hyphen), so the echo should work correctly.
17048    lt_compile=`echo "$ac_compile" | $SED \
17049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17051    -e 's:$: $lt_compiler_flag:'`
17052    (eval echo "\"\$as_me:17052: $lt_compile\"" >&5)
17053    (eval "$lt_compile" 2>out/conftest.err)
17054    ac_status=$?
17055    cat out/conftest.err >&5
17056    echo "$as_me:17056: \$? = $ac_status" >&5
17057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17058    then
17059      # The compiler can only warn and ignore the option if not recognized
17060      # So say no if there are warnings
17061      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17062      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17063      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17064        lt_cv_prog_compiler_c_o_GCJ=yes
17065      fi
17066    fi
17067    chmod u+w . 2>&5
17068    $RM conftest*
17069    # SGI C++ compiler will create directory out/ii_files/ for
17070    # template instantiation
17071    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17072    $RM out/* && rmdir out
17073    cd ..
17074    $RM -r conftest
17075    $RM conftest*
17076
17077 fi
17078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17080
17081
17082
17083
17084 hard_links="nottested"
17085 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17086   # do not overwrite the value of need_locks provided by the user
17087   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17089   hard_links=yes
17090   $RM conftest*
17091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17092   touch conftest.a
17093   ln conftest.a conftest.b 2>&5 || hard_links=no
17094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17095   echo "$as_me:$LINENO: result: $hard_links" >&5
17096 echo "${ECHO_T}$hard_links" >&6
17097   if test "$hard_links" = no; then
17098     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17100     need_locks=warn
17101   fi
17102 else
17103   need_locks=no
17104 fi
17105
17106
17107
17108   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17110
17111   runpath_var=
17112   allow_undefined_flag_GCJ=
17113   always_export_symbols_GCJ=no
17114   archive_cmds_GCJ=
17115   archive_expsym_cmds_GCJ=
17116   compiler_needs_object_GCJ=no
17117   enable_shared_with_static_runtimes_GCJ=no
17118   export_dynamic_flag_spec_GCJ=
17119   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17120   hardcode_automatic_GCJ=no
17121   hardcode_direct_GCJ=no
17122   hardcode_direct_absolute_GCJ=no
17123   hardcode_libdir_flag_spec_GCJ=
17124   hardcode_libdir_flag_spec_ld_GCJ=
17125   hardcode_libdir_separator_GCJ=
17126   hardcode_minus_L_GCJ=no
17127   hardcode_shlibpath_var_GCJ=unsupported
17128   inherit_rpath_GCJ=no
17129   link_all_deplibs_GCJ=unknown
17130   module_cmds_GCJ=
17131   module_expsym_cmds_GCJ=
17132   old_archive_from_new_cmds_GCJ=
17133   old_archive_from_expsyms_cmds_GCJ=
17134   thread_safe_flag_spec_GCJ=
17135   whole_archive_flag_spec_GCJ=
17136   # include_expsyms should be a list of space-separated symbols to be *always*
17137   # included in the symbol list
17138   include_expsyms_GCJ=
17139   # exclude_expsyms can be an extended regexp of symbols to exclude
17140   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17141   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17142   # as well as any symbol that contains `d'.
17143   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17144   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17145   # platforms (ab)use it in PIC code, but their linkers get confused if
17146   # the symbol is explicitly referenced.  Since portable code cannot
17147   # rely on this symbol name, it's probably fine to never include it in
17148   # preloaded symbol tables.
17149   # Exclude shared library initialization/finalization symbols.
17150   extract_expsyms_cmds=
17151
17152   case $host_os in
17153   cygwin* | mingw* | pw32* | cegcc*)
17154     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17155     # When not using gcc, we currently assume that we are using
17156     # Microsoft Visual C++.
17157     if test "$GCC" != yes; then
17158       with_gnu_ld=no
17159     fi
17160     ;;
17161   interix*)
17162     # we just hope/assume this is gcc and not c89 (= MSVC++)
17163     with_gnu_ld=yes
17164     ;;
17165   openbsd*)
17166     with_gnu_ld=no
17167     ;;
17168   esac
17169
17170   ld_shlibs_GCJ=yes
17171   if test "$with_gnu_ld" = yes; then
17172     # If archive_cmds runs LD, not CC, wlarc should be empty
17173     wlarc='${wl}'
17174
17175     # Set some defaults for GNU ld with shared library support. These
17176     # are reset later if shared libraries are not supported. Putting them
17177     # here allows them to be overridden if necessary.
17178     runpath_var=LD_RUN_PATH
17179     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17180     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17181     # ancient GNU ld didn't support --whole-archive et. al.
17182     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17183       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17184     else
17185       whole_archive_flag_spec_GCJ=
17186     fi
17187     supports_anon_versioning=no
17188     case `$LD -v 2>&1` in
17189       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17190       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17191       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17192       *\ 2.11.*) ;; # other 2.11 versions
17193       *) supports_anon_versioning=yes ;;
17194     esac
17195
17196     # See if GNU ld supports shared libraries.
17197     case $host_os in
17198     aix[3-9]*)
17199       # On AIX/PPC, the GNU linker is very broken
17200       if test "$host_cpu" != ia64; then
17201         ld_shlibs_GCJ=no
17202         cat <<_LT_EOF 1>&2
17203
17204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17205 *** to be unable to reliably create shared libraries on AIX.
17206 *** Therefore, libtool is disabling shared libraries support.  If you
17207 *** really care for shared libraries, you may want to modify your PATH
17208 *** so that a non-GNU linker is found, and then restart.
17209
17210 _LT_EOF
17211       fi
17212       ;;
17213
17214     amigaos*)
17215       case $host_cpu in
17216       powerpc)
17217             # see comment about AmigaOS4 .so support
17218             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17219             archive_expsym_cmds_GCJ=''
17220         ;;
17221       m68k)
17222             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)'
17223             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224             hardcode_minus_L_GCJ=yes
17225         ;;
17226       esac
17227       ;;
17228
17229     beos*)
17230       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17231         allow_undefined_flag_GCJ=unsupported
17232         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17233         # support --undefined.  This deserves some investigation.  FIXME
17234         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17235       else
17236         ld_shlibs_GCJ=no
17237       fi
17238       ;;
17239
17240     cygwin* | mingw* | pw32* | cegcc*)
17241       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17242       # as there is no search path for DLLs.
17243       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17244       allow_undefined_flag_GCJ=unsupported
17245       always_export_symbols_GCJ=no
17246       enable_shared_with_static_runtimes_GCJ=yes
17247       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17248
17249       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17250         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17251         # If the export-symbols file already is a .def file (1st line
17252         # is EXPORTS), use it as is; otherwise, prepend...
17253         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17254           cp $export_symbols $output_objdir/$soname.def;
17255         else
17256           echo EXPORTS > $output_objdir/$soname.def;
17257           cat $export_symbols >> $output_objdir/$soname.def;
17258         fi~
17259         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17260       else
17261         ld_shlibs_GCJ=no
17262       fi
17263       ;;
17264
17265     interix[3-9]*)
17266       hardcode_direct_GCJ=no
17267       hardcode_shlibpath_var_GCJ=no
17268       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17269       export_dynamic_flag_spec_GCJ='${wl}-E'
17270       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17271       # Instead, shared libraries are loaded at an image base (0x10000000 by
17272       # default) and relocated if they conflict, which is a slow very memory
17273       # consuming and fragmenting process.  To avoid this, we pick a random,
17274       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17275       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17276       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'
17277       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'
17278       ;;
17279
17280     gnu* | linux* | tpf* | k*bsd*-gnu)
17281       tmp_diet=no
17282       if test "$host_os" = linux-dietlibc; then
17283         case $cc_basename in
17284           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17285         esac
17286       fi
17287       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17288          && test "$tmp_diet" = no
17289       then
17290         tmp_addflag=
17291         tmp_sharedflag='-shared'
17292         case $cc_basename,$host_cpu in
17293         pgcc*)                          # Portland Group C compiler
17294           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'
17295           tmp_addflag=' $pic_flag'
17296           ;;
17297         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17298           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'
17299           tmp_addflag=' $pic_flag -Mnomain' ;;
17300         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17301           tmp_addflag=' -i_dynamic' ;;
17302         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17303           tmp_addflag=' -i_dynamic -nofor_main' ;;
17304         ifc* | ifort*)                  # Intel Fortran compiler
17305           tmp_addflag=' -nofor_main' ;;
17306         lf95*)                          # Lahey Fortran 8.1
17307           whole_archive_flag_spec_GCJ=
17308           tmp_sharedflag='--shared' ;;
17309         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17310           tmp_sharedflag='-qmkshrobj'
17311           tmp_addflag= ;;
17312         esac
17313         case `$CC -V 2>&1 | sed 5q` in
17314         *Sun\ C*)                       # Sun C 5.9
17315           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'
17316           compiler_needs_object_GCJ=yes
17317           tmp_sharedflag='-G' ;;
17318         *Sun\ F*)                       # Sun Fortran 8.3
17319           tmp_sharedflag='-G' ;;
17320         esac
17321         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17322
17323         if test "x$supports_anon_versioning" = xyes; then
17324           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17325             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17326             echo "local: *; };" >> $output_objdir/$libname.ver~
17327             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17328         fi
17329
17330         case $cc_basename in
17331         xlf*)
17332           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17333           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17334           hardcode_libdir_flag_spec_GCJ=
17335           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17336           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17337           if test "x$supports_anon_versioning" = xyes; then
17338             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17339               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17340               echo "local: *; };" >> $output_objdir/$libname.ver~
17341               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17342           fi
17343           ;;
17344         esac
17345       else
17346         ld_shlibs_GCJ=no
17347       fi
17348       ;;
17349
17350     netbsd*)
17351       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17352         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17353         wlarc=
17354       else
17355         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17356         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17357       fi
17358       ;;
17359
17360     solaris*)
17361       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17362         ld_shlibs_GCJ=no
17363         cat <<_LT_EOF 1>&2
17364
17365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17366 *** create shared libraries on Solaris systems.  Therefore, libtool
17367 *** is disabling shared libraries support.  We urge you to upgrade GNU
17368 *** binutils to release 2.9.1 or newer.  Another option is to modify
17369 *** your PATH or compiler configuration so that the native linker is
17370 *** used, and then restart.
17371
17372 _LT_EOF
17373       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17374         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17375         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17376       else
17377         ld_shlibs_GCJ=no
17378       fi
17379       ;;
17380
17381     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17382       case `$LD -v 2>&1` in
17383         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17384         ld_shlibs_GCJ=no
17385         cat <<_LT_EOF 1>&2
17386
17387 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17388 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17389 *** is disabling shared libraries support.  We urge you to upgrade GNU
17390 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17391 *** your PATH or compiler configuration so that the native linker is
17392 *** used, and then restart.
17393
17394 _LT_EOF
17395         ;;
17396         *)
17397           # For security reasons, it is highly recommended that you always
17398           # use absolute paths for naming shared libraries, and exclude the
17399           # DT_RUNPATH tag from executables and libraries.  But doing so
17400           # requires that you compile everything twice, which is a pain.
17401           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17402             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17403             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17404             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17405           else
17406             ld_shlibs_GCJ=no
17407           fi
17408         ;;
17409       esac
17410       ;;
17411
17412     sunos4*)
17413       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17414       wlarc=
17415       hardcode_direct_GCJ=yes
17416       hardcode_shlibpath_var_GCJ=no
17417       ;;
17418
17419     *)
17420       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17421         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17422         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17423       else
17424         ld_shlibs_GCJ=no
17425       fi
17426       ;;
17427     esac
17428
17429     if test "$ld_shlibs_GCJ" = no; then
17430       runpath_var=
17431       hardcode_libdir_flag_spec_GCJ=
17432       export_dynamic_flag_spec_GCJ=
17433       whole_archive_flag_spec_GCJ=
17434     fi
17435   else
17436     # PORTME fill in a description of your system's linker (not GNU ld)
17437     case $host_os in
17438     aix3*)
17439       allow_undefined_flag_GCJ=unsupported
17440       always_export_symbols_GCJ=yes
17441       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'
17442       # Note: this linker hardcodes the directories in LIBPATH if there
17443       # are no directories specified by -L.
17444       hardcode_minus_L_GCJ=yes
17445       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17446         # Neither direct hardcoding nor static linking is supported with a
17447         # broken collect2.
17448         hardcode_direct_GCJ=unsupported
17449       fi
17450       ;;
17451
17452     aix[4-9]*)
17453       if test "$host_cpu" = ia64; then
17454         # On IA64, the linker does run time linking by default, so we don't
17455         # have to do anything special.
17456         aix_use_runtimelinking=no
17457         exp_sym_flag='-Bexport'
17458         no_entry_flag=""
17459       else
17460         # If we're using GNU nm, then we don't want the "-C" option.
17461         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17462         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17463           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'
17464         else
17465           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'
17466         fi
17467         aix_use_runtimelinking=no
17468
17469         # Test if we are trying to use run time linking or normal
17470         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17471         # need to do runtime linking.
17472         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17473           for ld_flag in $LDFLAGS; do
17474           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17475             aix_use_runtimelinking=yes
17476             break
17477           fi
17478           done
17479           ;;
17480         esac
17481
17482         exp_sym_flag='-bexport'
17483         no_entry_flag='-bnoentry'
17484       fi
17485
17486       # When large executables or shared objects are built, AIX ld can
17487       # have problems creating the table of contents.  If linking a library
17488       # or program results in "error TOC overflow" add -mminimal-toc to
17489       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17490       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17491
17492       archive_cmds_GCJ=''
17493       hardcode_direct_GCJ=yes
17494       hardcode_direct_absolute_GCJ=yes
17495       hardcode_libdir_separator_GCJ=':'
17496       link_all_deplibs_GCJ=yes
17497       file_list_spec_GCJ='${wl}-f,'
17498
17499       if test "$GCC" = yes; then
17500         case $host_os in aix4.[012]|aix4.[012].*)
17501         # We only want to do this on AIX 4.2 and lower, the check
17502         # below for broken collect2 doesn't work under 4.3+
17503           collect2name=`${CC} -print-prog-name=collect2`
17504           if test -f "$collect2name" &&
17505            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17506           then
17507           # We have reworked collect2
17508           :
17509           else
17510           # We have old collect2
17511           hardcode_direct_GCJ=unsupported
17512           # It fails to find uninstalled libraries when the uninstalled
17513           # path is not listed in the libpath.  Setting hardcode_minus_L
17514           # to unsupported forces relinking
17515           hardcode_minus_L_GCJ=yes
17516           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517           hardcode_libdir_separator_GCJ=
17518           fi
17519           ;;
17520         esac
17521         shared_flag='-shared'
17522         if test "$aix_use_runtimelinking" = yes; then
17523           shared_flag="$shared_flag "'${wl}-G'
17524         fi
17525       else
17526         # not using gcc
17527         if test "$host_cpu" = ia64; then
17528         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17529         # chokes on -Wl,-G. The following line is correct:
17530           shared_flag='-G'
17531         else
17532           if test "$aix_use_runtimelinking" = yes; then
17533             shared_flag='${wl}-G'
17534           else
17535             shared_flag='${wl}-bM:SRE'
17536           fi
17537         fi
17538       fi
17539
17540       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17541       # It seems that -bexpall does not export symbols beginning with
17542       # underscore (_), so it is better to generate a list of symbols to export.
17543       always_export_symbols_GCJ=yes
17544       if test "$aix_use_runtimelinking" = yes; then
17545         # Warning - without using the other runtime loading flags (-brtl),
17546         # -berok will link without error, but may produce a broken library.
17547         allow_undefined_flag_GCJ='-berok'
17548         # Determine the default libpath from the value encoded in an
17549         # empty executable.
17550         if test x$gcc_no_link = xyes; then
17551   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17553    { (exit 1); exit 1; }; }
17554 fi
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561
17562 int
17563 main ()
17564 {
17565
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572   (eval $ac_link) 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } &&
17579          { ac_try='test -z "$ac_c_werror_flag"
17580                          || test ! -s conftest.err'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; } &&
17586          { ac_try='test -s conftest$ac_exeext'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592
17593 lt_aix_libpath_sed='
17594     /Import File Strings/,/^$/ {
17595         /^0/ {
17596             s/^0  *\(.*\)$/\1/
17597             p
17598         }
17599     }'
17600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17601 # Check for a 64-bit object if we didn't find anything.
17602 if test -z "$aix_libpath"; then
17603   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17604 fi
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 fi
17610 rm -f conftest.err conftest.$ac_objext \
17611       conftest$ac_exeext conftest.$ac_ext
17612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17613
17614         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17615         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"
17616       else
17617         if test "$host_cpu" = ia64; then
17618           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17619           allow_undefined_flag_GCJ="-z nodefs"
17620           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"
17621         else
17622          # Determine the default libpath from the value encoded in an
17623          # empty executable.
17624          if test x$gcc_no_link = xyes; then
17625   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17627    { (exit 1); exit 1; }; }
17628 fi
17629 cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635
17636 int
17637 main ()
17638 {
17639
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646   (eval $ac_link) 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_c_werror_flag"
17654                          || test ! -s conftest.err'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; } &&
17660          { ac_try='test -s conftest$ac_exeext'
17661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662   (eval $ac_try) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; }; then
17666
17667 lt_aix_libpath_sed='
17668     /Import File Strings/,/^$/ {
17669         /^0/ {
17670             s/^0  *\(.*\)$/\1/
17671             p
17672         }
17673     }'
17674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17675 # Check for a 64-bit object if we didn't find anything.
17676 if test -z "$aix_libpath"; then
17677   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17678 fi
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 fi
17684 rm -f conftest.err conftest.$ac_objext \
17685       conftest$ac_exeext conftest.$ac_ext
17686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17687
17688          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17689           # Warning - without using the other run time loading flags,
17690           # -berok will link without error, but may produce a broken library.
17691           no_undefined_flag_GCJ=' ${wl}-bernotok'
17692           allow_undefined_flag_GCJ=' ${wl}-berok'
17693           # Exported symbols can be pulled into shared objects from archives
17694           whole_archive_flag_spec_GCJ='$convenience'
17695           archive_cmds_need_lc_GCJ=yes
17696           # This is similar to how AIX traditionally builds its shared libraries.
17697           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'
17698         fi
17699       fi
17700       ;;
17701
17702     amigaos*)
17703       case $host_cpu in
17704       powerpc)
17705             # see comment about AmigaOS4 .so support
17706             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17707             archive_expsym_cmds_GCJ=''
17708         ;;
17709       m68k)
17710             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)'
17711             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712             hardcode_minus_L_GCJ=yes
17713         ;;
17714       esac
17715       ;;
17716
17717     bsdi[45]*)
17718       export_dynamic_flag_spec_GCJ=-rdynamic
17719       ;;
17720
17721     cygwin* | mingw* | pw32* | cegcc*)
17722       # When not using gcc, we currently assume that we are using
17723       # Microsoft Visual C++.
17724       # hardcode_libdir_flag_spec is actually meaningless, as there is
17725       # no search path for DLLs.
17726       hardcode_libdir_flag_spec_GCJ=' '
17727       allow_undefined_flag_GCJ=unsupported
17728       # Tell ltmain to make .lib files, not .a files.
17729       libext=lib
17730       # Tell ltmain to make .dll files, not .so files.
17731       shrext_cmds=".dll"
17732       # FIXME: Setting linknames here is a bad hack.
17733       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17734       # The linker will automatically build a .lib file if we build a DLL.
17735       old_archive_from_new_cmds_GCJ='true'
17736       # FIXME: Should let the user specify the lib program.
17737       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17738       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17739       enable_shared_with_static_runtimes_GCJ=yes
17740       ;;
17741
17742     darwin* | rhapsody*)
17743
17744
17745   archive_cmds_need_lc_GCJ=no
17746   hardcode_direct_GCJ=no
17747   hardcode_automatic_GCJ=yes
17748   hardcode_shlibpath_var_GCJ=unsupported
17749   whole_archive_flag_spec_GCJ=''
17750   link_all_deplibs_GCJ=yes
17751   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17752   case $cc_basename in
17753      ifort*) _lt_dar_can_shared=yes ;;
17754      *) _lt_dar_can_shared=$GCC ;;
17755   esac
17756   if test "$_lt_dar_can_shared" = "yes"; then
17757     output_verbose_link_cmd=echo
17758     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}"
17759     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17760     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}"
17761     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}"
17762
17763   else
17764   ld_shlibs_GCJ=no
17765   fi
17766
17767       ;;
17768
17769     dgux*)
17770       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17772       hardcode_shlibpath_var_GCJ=no
17773       ;;
17774
17775     freebsd1*)
17776       ld_shlibs_GCJ=no
17777       ;;
17778
17779     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17780     # support.  Future versions do this automatically, but an explicit c++rt0.o
17781     # does not break anything, and helps significantly (at the cost of a little
17782     # extra space).
17783     freebsd2.2*)
17784       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17785       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17786       hardcode_direct_GCJ=yes
17787       hardcode_shlibpath_var_GCJ=no
17788       ;;
17789
17790     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17791     freebsd2*)
17792       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17793       hardcode_direct_GCJ=yes
17794       hardcode_minus_L_GCJ=yes
17795       hardcode_shlibpath_var_GCJ=no
17796       ;;
17797
17798     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17799     freebsd* | dragonfly*)
17800       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17801       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17802       hardcode_direct_GCJ=yes
17803       hardcode_shlibpath_var_GCJ=no
17804       ;;
17805
17806     hpux9*)
17807       if test "$GCC" = yes; then
17808         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'
17809       else
17810         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'
17811       fi
17812       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17813       hardcode_libdir_separator_GCJ=:
17814       hardcode_direct_GCJ=yes
17815
17816       # hardcode_minus_L: Not really in the search PATH,
17817       # but as the default location of the library.
17818       hardcode_minus_L_GCJ=yes
17819       export_dynamic_flag_spec_GCJ='${wl}-E'
17820       ;;
17821
17822     hpux10*)
17823       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17824         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17825       else
17826         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17827       fi
17828       if test "$with_gnu_ld" = no; then
17829         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17830         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17831         hardcode_libdir_separator_GCJ=:
17832         hardcode_direct_GCJ=yes
17833         hardcode_direct_absolute_GCJ=yes
17834         export_dynamic_flag_spec_GCJ='${wl}-E'
17835         # hardcode_minus_L: Not really in the search PATH,
17836         # but as the default location of the library.
17837         hardcode_minus_L_GCJ=yes
17838       fi
17839       ;;
17840
17841     hpux11*)
17842       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17843         case $host_cpu in
17844         hppa*64*)
17845           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17846           ;;
17847         ia64*)
17848           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17849           ;;
17850         *)
17851           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17852           ;;
17853         esac
17854       else
17855         case $host_cpu in
17856         hppa*64*)
17857           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17858           ;;
17859         ia64*)
17860           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17861           ;;
17862         *)
17863           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17864           ;;
17865         esac
17866       fi
17867       if test "$with_gnu_ld" = no; then
17868         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17869         hardcode_libdir_separator_GCJ=:
17870
17871         case $host_cpu in
17872         hppa*64*|ia64*)
17873           hardcode_direct_GCJ=no
17874           hardcode_shlibpath_var_GCJ=no
17875           ;;
17876         *)
17877           hardcode_direct_GCJ=yes
17878           hardcode_direct_absolute_GCJ=yes
17879           export_dynamic_flag_spec_GCJ='${wl}-E'
17880
17881           # hardcode_minus_L: Not really in the search PATH,
17882           # but as the default location of the library.
17883           hardcode_minus_L_GCJ=yes
17884           ;;
17885         esac
17886       fi
17887       ;;
17888
17889     irix5* | irix6* | nonstopux*)
17890       if test "$GCC" = yes; then
17891         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'
17892         # Try to use the -exported_symbol ld option, if it does not
17893         # work, assume that -exports_file does not work either and
17894         # implicitly export all symbols.
17895         save_LDFLAGS="$LDFLAGS"
17896         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17897         if test x$gcc_no_link = xyes; then
17898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17900    { (exit 1); exit 1; }; }
17901 fi
17902 cat >conftest.$ac_ext <<_ACEOF
17903 int foo(void) {}
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907   (eval $ac_link) 2>conftest.er1
17908   ac_status=$?
17909   grep -v '^ *+' conftest.er1 >conftest.err
17910   rm -f conftest.er1
17911   cat conftest.err >&5
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); } &&
17914          { ac_try='test -z "$ac_c_werror_flag"
17915                          || test ! -s conftest.err'
17916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917   (eval $ac_try) 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; } &&
17921          { ac_try='test -s conftest$ac_exeext'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   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'
17928
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 fi
17934 rm -f conftest.err conftest.$ac_objext \
17935       conftest$ac_exeext conftest.$ac_ext
17936         LDFLAGS="$save_LDFLAGS"
17937       else
17938         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'
17939         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'
17940       fi
17941       archive_cmds_need_lc_GCJ='no'
17942       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943       hardcode_libdir_separator_GCJ=:
17944       inherit_rpath_GCJ=yes
17945       link_all_deplibs_GCJ=yes
17946       ;;
17947
17948     netbsd*)
17949       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17950         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17951       else
17952         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17953       fi
17954       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17955       hardcode_direct_GCJ=yes
17956       hardcode_shlibpath_var_GCJ=no
17957       ;;
17958
17959     newsos6)
17960       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961       hardcode_direct_GCJ=yes
17962       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17963       hardcode_libdir_separator_GCJ=:
17964       hardcode_shlibpath_var_GCJ=no
17965       ;;
17966
17967     *nto* | *qnx*)
17968       ;;
17969
17970     openbsd*)
17971       if test -f /usr/libexec/ld.so; then
17972         hardcode_direct_GCJ=yes
17973         hardcode_shlibpath_var_GCJ=no
17974         hardcode_direct_absolute_GCJ=yes
17975         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17976           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17977           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17978           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17979           export_dynamic_flag_spec_GCJ='${wl}-E'
17980         else
17981           case $host_os in
17982            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17983              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17984              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17985              ;;
17986            *)
17987              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17988              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17989              ;;
17990           esac
17991         fi
17992       else
17993         ld_shlibs_GCJ=no
17994       fi
17995       ;;
17996
17997     os2*)
17998       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17999       hardcode_minus_L_GCJ=yes
18000       allow_undefined_flag_GCJ=unsupported
18001       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'
18002       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18003       ;;
18004
18005     osf3*)
18006       if test "$GCC" = yes; then
18007         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18008         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'
18009       else
18010         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18011         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'
18012       fi
18013       archive_cmds_need_lc_GCJ='no'
18014       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18015       hardcode_libdir_separator_GCJ=:
18016       ;;
18017
18018     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18019       if test "$GCC" = yes; then
18020         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18021         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'
18022         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18023       else
18024         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18025         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'
18026         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~
18027         $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'
18028
18029         # Both c and cxx compiler support -rpath directly
18030         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18031       fi
18032       archive_cmds_need_lc_GCJ='no'
18033       hardcode_libdir_separator_GCJ=:
18034       ;;
18035
18036     solaris*)
18037       no_undefined_flag_GCJ=' -z defs'
18038       if test "$GCC" = yes; then
18039         wlarc='${wl}'
18040         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18041         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18042           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18043       else
18044         case `$CC -V 2>&1` in
18045         *"Compilers 5.0"*)
18046           wlarc=''
18047           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18048           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18049           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18050           ;;
18051         *)
18052           wlarc='${wl}'
18053           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18054           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18055           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18056           ;;
18057         esac
18058       fi
18059       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18060       hardcode_shlibpath_var_GCJ=no
18061       case $host_os in
18062       solaris2.[0-5] | solaris2.[0-5].*) ;;
18063       *)
18064         # The compiler driver will combine and reorder linker options,
18065         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18066         # but is careful enough not to reorder.
18067         # Supported since Solaris 2.6 (maybe 2.5.1?)
18068         if test "$GCC" = yes; then
18069           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18070         else
18071           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18072         fi
18073         ;;
18074       esac
18075       link_all_deplibs_GCJ=yes
18076       ;;
18077
18078     sunos4*)
18079       if test "x$host_vendor" = xsequent; then
18080         # Use $CC to link under sequent, because it throws in some extra .o
18081         # files that make .init and .fini sections work.
18082         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18083       else
18084         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18085       fi
18086       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18087       hardcode_direct_GCJ=yes
18088       hardcode_minus_L_GCJ=yes
18089       hardcode_shlibpath_var_GCJ=no
18090       ;;
18091
18092     sysv4)
18093       case $host_vendor in
18094         sni)
18095           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096           hardcode_direct_GCJ=yes # is this really true???
18097         ;;
18098         siemens)
18099           ## LD is ld it makes a PLAMLIB
18100           ## CC just makes a GrossModule.
18101           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18102           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18103           hardcode_direct_GCJ=no
18104         ;;
18105         motorola)
18106           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18107           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18108         ;;
18109       esac
18110       runpath_var='LD_RUN_PATH'
18111       hardcode_shlibpath_var_GCJ=no
18112       ;;
18113
18114     sysv4.3*)
18115       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116       hardcode_shlibpath_var_GCJ=no
18117       export_dynamic_flag_spec_GCJ='-Bexport'
18118       ;;
18119
18120     sysv4*MP*)
18121       if test -d /usr/nec; then
18122         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18123         hardcode_shlibpath_var_GCJ=no
18124         runpath_var=LD_RUN_PATH
18125         hardcode_runpath_var=yes
18126         ld_shlibs_GCJ=yes
18127       fi
18128       ;;
18129
18130     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18131       no_undefined_flag_GCJ='${wl}-z,text'
18132       archive_cmds_need_lc_GCJ=no
18133       hardcode_shlibpath_var_GCJ=no
18134       runpath_var='LD_RUN_PATH'
18135
18136       if test "$GCC" = yes; then
18137         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18138         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18139       else
18140         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18142       fi
18143       ;;
18144
18145     sysv5* | sco3.2v5* | sco5v6*)
18146       # Note: We can NOT use -z defs as we might desire, because we do not
18147       # link with -lc, and that would cause any symbols used from libc to
18148       # always be unresolved, which means just about no library would
18149       # ever link correctly.  If we're not using GNU ld we use -z text
18150       # though, which does catch some bad symbols but isn't as heavy-handed
18151       # as -z defs.
18152       no_undefined_flag_GCJ='${wl}-z,text'
18153       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18154       archive_cmds_need_lc_GCJ=no
18155       hardcode_shlibpath_var_GCJ=no
18156       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18157       hardcode_libdir_separator_GCJ=':'
18158       link_all_deplibs_GCJ=yes
18159       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18160       runpath_var='LD_RUN_PATH'
18161
18162       if test "$GCC" = yes; then
18163         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165       else
18166         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18167         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168       fi
18169       ;;
18170
18171     uts4*)
18172       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18174       hardcode_shlibpath_var_GCJ=no
18175       ;;
18176
18177     *)
18178       ld_shlibs_GCJ=no
18179       ;;
18180     esac
18181
18182     if test x$host_vendor = xsni; then
18183       case $host in
18184       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18185         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18186         ;;
18187       esac
18188     fi
18189   fi
18190
18191 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18192 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18193 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18194
18195 with_gnu_ld_GCJ=$with_gnu_ld
18196
18197
18198
18199
18200
18201
18202 #
18203 # Do we need to explicitly link libc?
18204 #
18205 case "x$archive_cmds_need_lc_GCJ" in
18206 x|xyes)
18207   # Assume -lc should be added
18208   archive_cmds_need_lc_GCJ=yes
18209
18210   if test "$enable_shared" = yes && test "$GCC" = yes; then
18211     case $archive_cmds_GCJ in
18212     *'~'*)
18213       # FIXME: we may have to deal with multi-command sequences.
18214       ;;
18215     '$CC '*)
18216       # Test whether the compiler implicitly links with -lc since on some
18217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18218       # to ld, don't add -lc before -lgcc.
18219       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18221       $RM conftest*
18222       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18223
18224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225   (eval $ac_compile) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } 2>conftest.err; then
18229         soname=conftest
18230         lib=conftest
18231         libobjs=conftest.$ac_objext
18232         deplibs=
18233         wl=$lt_prog_compiler_wl_GCJ
18234         pic_flag=$lt_prog_compiler_pic_GCJ
18235         compiler_flags=-v
18236         linker_flags=-v
18237         verstring=
18238         output_objdir=.
18239         libname=conftest
18240         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18241         allow_undefined_flag_GCJ=
18242         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18243   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }
18247         then
18248           archive_cmds_need_lc_GCJ=no
18249         else
18250           archive_cmds_need_lc_GCJ=yes
18251         fi
18252         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18253       else
18254         cat conftest.err 1>&5
18255       fi
18256       $RM conftest*
18257       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18258 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18259       ;;
18260     esac
18261   fi
18262   ;;
18263 esac
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
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   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18329 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18330 hardcode_action_GCJ=
18331 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18332    test -n "$runpath_var_GCJ" ||
18333    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18334
18335   # We can hardcode non-existent directories.
18336   if test "$hardcode_direct_GCJ" != no &&
18337      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18338      # have to relink, otherwise we might link with an installed library
18339      # when we should be linking with a yet-to-be-installed one
18340      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18341      test "$hardcode_minus_L_GCJ" != no; then
18342     # Linking always hardcodes the temporary library directory.
18343     hardcode_action_GCJ=relink
18344   else
18345     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18346     hardcode_action_GCJ=immediate
18347   fi
18348 else
18349   # We cannot hardcode anything, or else we can only hardcode existing
18350   # directories.
18351   hardcode_action_GCJ=unsupported
18352 fi
18353 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18354 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18355
18356 if test "$hardcode_action_GCJ" = relink ||
18357    test "$inherit_rpath_GCJ" = yes; then
18358   # Fast installation is not supported
18359   enable_fast_install=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361      test "$enable_shared" = no; then
18362   # Fast installation is not necessary
18363   enable_fast_install=needless
18364 fi
18365
18366
18367
18368
18369
18370
18371
18372 fi
18373
18374 compiler_GCJ=${GCJ-gcj}
18375 ac_ext=c
18376 ac_cpp='$CPP $CPPFLAGS'
18377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18380
18381
18382 if test "x$CC" != xcc; then
18383   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18384 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18385 else
18386   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18387 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18388 fi
18389 set dummy $CC; ac_cc=`echo $2 |
18390                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18391 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18392   echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394   cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400
18401 int
18402 main ()
18403 {
18404
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 # Make sure it works both with $CC and with simple cc.
18410 # We do the test twice because some compilers refuse to overwrite an
18411 # existing .o file with -o, though they will create one.
18412 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18413 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414   (eval $ac_try) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } &&
18418    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); };
18423 then
18424   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18425   if test "x$CC" != xcc; then
18426     # Test first that cc exists at all.
18427     if { ac_try='cc -c conftest.$ac_ext >&5'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; }; then
18433       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18434       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } &&
18439          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440   (eval $ac_try) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); };
18444       then
18445         # cc works too.
18446         :
18447       else
18448         # cc exists but doesn't like -o.
18449         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18450       fi
18451     fi
18452   fi
18453 else
18454   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18455 fi
18456 rm -f conftest*
18457
18458 fi
18459 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18460   echo "$as_me:$LINENO: result: yes" >&5
18461 echo "${ECHO_T}yes" >&6
18462 else
18463   echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6
18465
18466 cat >>confdefs.h <<\_ACEOF
18467 #define NO_MINUS_C_MINUS_O 1
18468 _ACEOF
18469
18470 fi
18471
18472 # FIXME: we rely on the cache variable name because
18473 # there is no other way.
18474 set dummy $CC
18475 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18476 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18477    # Losing compiler, so override with the script.
18478    # FIXME: It is wrong to rewrite CC.
18479    # But if we don't then we get into trouble of one sort or another.
18480    # A longer-term fix would be to have automake use am__CC in this case,
18481    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18482    CC="$am_aux_dir/compile $CC"
18483 fi
18484
18485
18486
18487
18488 subdirs="$subdirs classpath libltdl"
18489
18490
18491 # The -no-testsuite modules omit the test subdir.
18492
18493
18494 if test -d $srcdir/testsuite; then
18495   TESTSUBDIR_TRUE=
18496   TESTSUBDIR_FALSE='#'
18497 else
18498   TESTSUBDIR_TRUE='#'
18499   TESTSUBDIR_FALSE=
18500 fi
18501
18502
18503 # Should the runtime set system properties by examining the
18504 # environment variable GCJ_PROPERTIES?
18505 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18506 if test "${enable_getenv_properties+set}" = set; then
18507   enableval="$enable_getenv_properties"
18508
18509 fi;
18510
18511 # Whether GCJ_PROPERTIES is used depends on the target.
18512 if test -z "$enable_getenv_properties"; then
18513    enable_getenv_properties=${enable_getenv_properties_default-yes}
18514 fi
18515 if test "$enable_getenv_properties" = no; then
18516
18517 cat >>confdefs.h <<\_ACEOF
18518 #define DISABLE_GETENV_PROPERTIES 1
18519 _ACEOF
18520
18521 fi
18522
18523 # Whether we should use arguments to main()
18524 if test -z "$enable_main_args"; then
18525    enable_main_args=${enable_main_args_default-yes}
18526 fi
18527 if test "$enable_main_args" = no; then
18528
18529 cat >>confdefs.h <<\_ACEOF
18530 #define DISABLE_MAIN_ARGS 1
18531 _ACEOF
18532
18533 fi
18534
18535
18536 # Should we use hashtable-based synchronization?
18537 # Currently works only for Linux X86/ia64
18538 # Typically faster and more space-efficient
18539 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18540 if test "${enable_hash_synchronization+set}" = set; then
18541   enableval="$enable_hash_synchronization"
18542
18543 fi;
18544
18545 if test -z "$enable_hash_synchronization"; then
18546    enable_hash_synchronization=$enable_hash_synchronization_default
18547 fi
18548
18549
18550 install_ecj_jar=no
18551 ECJ_BUILD_JAR=
18552 ECJ_JAR=
18553
18554 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18555 if test "${with_ecj_jar+set}" = set; then
18556   withval="$with_ecj_jar"
18557   ECJ_JAR=$withval
18558 else
18559   if test -f $multi_basedir/ecj.jar; then
18560            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18561            ECJ_JAR='$(jardir)/ecj.jar'
18562            install_ecj_jar=yes
18563          fi
18564 fi;
18565
18566
18567
18568
18569 if test "$ECJ_JAR" != ""; then
18570   BUILD_ECJ1_TRUE=
18571   BUILD_ECJ1_FALSE='#'
18572 else
18573   BUILD_ECJ1_TRUE='#'
18574   BUILD_ECJ1_FALSE=
18575 fi
18576
18577
18578
18579 if test $install_ecj_jar = yes; then
18580   INSTALL_ECJ_JAR_TRUE=
18581   INSTALL_ECJ_JAR_FALSE='#'
18582 else
18583   INSTALL_ECJ_JAR_TRUE='#'
18584   INSTALL_ECJ_JAR_FALSE=
18585 fi
18586
18587
18588
18589 # Check whether --with-java-home or --without-java-home was given.
18590 if test "${with_java_home+set}" = set; then
18591   withval="$with_java_home"
18592   JAVA_HOME="${withval}"
18593 else
18594   JAVA_HOME=""
18595 fi;
18596
18597
18598 if test ! -z "$JAVA_HOME"; then
18599   JAVA_HOME_SET_TRUE=
18600   JAVA_HOME_SET_FALSE='#'
18601 else
18602   JAVA_HOME_SET_TRUE='#'
18603   JAVA_HOME_SET_FALSE=
18604 fi
18605
18606
18607
18608 suppress_libgcj_bc=no
18609 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18610 if test "${enable_libgcj_bc+set}" = set; then
18611   enableval="$enable_libgcj_bc"
18612   if test "$enable_libgcj_bc" = "no"; then
18613      suppress_libgcj_bc=yes
18614    fi
18615 fi;
18616
18617
18618 if test "$suppress_libgcj_bc" = "yes"; then
18619   SUPPRESS_LIBGCJ_BC_TRUE=
18620   SUPPRESS_LIBGCJ_BC_FALSE='#'
18621 else
18622   SUPPRESS_LIBGCJ_BC_TRUE='#'
18623   SUPPRESS_LIBGCJ_BC_FALSE=
18624 fi
18625
18626
18627 build_libgcj_reduced_reflection=no
18628 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18629 if test "${enable_reduced_reflection+set}" = set; then
18630   enableval="$enable_reduced_reflection"
18631   if test "$enable_reduced_reflection" = "yes"; then
18632      build_libgcj_reduced_reflection=yes
18633    fi
18634 fi;
18635
18636
18637 if test "$build_libgcj_reduced_reflection" = "yes"; then
18638   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18639   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18640 else
18641   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18642   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18643 fi
18644
18645
18646 # What is the native OS API for MinGW?
18647
18648 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18649 if test "${with_win32_nlsapi+set}" = set; then
18650   withval="$with_win32_nlsapi"
18651   case "${withval}" in
18652   ansi) with_win32_nlsapi=ansi ;;
18653   unicows) with_win32_nlsapi=unicows ;;
18654   unicode) with_win32_nlsapi=unicode ;;
18655   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18656 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18657    { (exit 1); exit 1; }; } ;;
18658 esac
18659 else
18660   with_win32_nlsapi=ansi
18661 fi;
18662
18663 case "${with_win32_nlsapi}" in
18664   unicows | unicode)
18665
18666 cat >>confdefs.h <<\_ACEOF
18667 #define MINGW_LIBGCJ_UNICODE 1
18668 _ACEOF
18669
18670     ;;
18671 esac
18672
18673 # configure.host sets slow_pthread_self if the synchronization code should
18674 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18675 if test "${slow_pthread_self}" = "yes"; then
18676
18677 cat >>confdefs.h <<\_ACEOF
18678 #define SLOW_PTHREAD_SELF 1
18679 _ACEOF
18680
18681 fi
18682
18683 # Check for gc debugging.  This option is handled both here and in the GC.
18684 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18685 if test "${enable_gc_debug+set}" = set; then
18686   enableval="$enable_gc_debug"
18687    if test "$enable_gc_debug" = "yes"; then
18688
18689 cat >>confdefs.h <<\_ACEOF
18690 #define LIBGCJ_GC_DEBUG 1
18691 _ACEOF
18692
18693   fi
18694 fi;
18695
18696 # See if the user has the interpreter included.
18697 # Check whether --enable-interpreter or --disable-interpreter was given.
18698 if test "${enable_interpreter+set}" = set; then
18699   enableval="$enable_interpreter"
18700   if test "$enable_interpreter" = yes; then
18701     # This can also be set in configure.host.
18702     libgcj_interpreter=yes
18703   elif test "$enable_interpreter" = no; then
18704     libgcj_interpreter=no
18705   fi
18706 fi;
18707
18708 if test "$libgcj_interpreter" = yes; then
18709
18710 cat >>confdefs.h <<\_ACEOF
18711 #define INTERPRETER 1
18712 _ACEOF
18713
18714 fi
18715 INTERPRETER="$libgcj_interpreter"
18716
18717
18718
18719 if test "$libgcj_interpreter" = yes; then
18720   INTERPRETER_TRUE=
18721   INTERPRETER_FALSE='#'
18722 else
18723   INTERPRETER_TRUE='#'
18724   INTERPRETER_FALSE=
18725 fi
18726
18727
18728 echo "$as_me:$LINENO: checking for exception model to use" >&5
18729 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18730 ac_ext=cc
18731 ac_cpp='$CXXCPP $CPPFLAGS'
18732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18735
18736 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18737 if test "${enable_sjlj_exceptions+set}" = set; then
18738   enableval="$enable_sjlj_exceptions"
18739   :
18740 else
18741   cat > conftest.$ac_ext << EOF
18742 #line 18742 "configure"
18743 struct S { ~S(); };
18744 void bar();
18745 void foo()
18746 {
18747   S s;
18748   bar();
18749 }
18750 EOF
18751 old_CXXFLAGS="$CXXFLAGS"
18752 CXXFLAGS=-S
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754   (eval $ac_compile) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; then
18758   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18759     enable_sjlj_exceptions=yes
18760   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18761     enable_sjlj_exceptions=no
18762   fi
18763 fi
18764 CXXFLAGS="$old_CXXFLAGS"
18765 rm -f conftest*
18766 fi;
18767 if test x$enable_sjlj_exceptions = xyes; then
18768
18769 cat >>confdefs.h <<\_ACEOF
18770 #define SJLJ_EXCEPTIONS 1
18771 _ACEOF
18772
18773   ac_exception_model_name=sjlj
18774 elif test x$enable_sjlj_exceptions = xno; then
18775   ac_exception_model_name="call frame"
18776 else
18777   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18778 echo "$as_me: error: unable to detect exception model" >&2;}
18779    { (exit 1); exit 1; }; }
18780 fi
18781 ac_ext=c
18782 ac_cpp='$CPP $CPPFLAGS'
18783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786
18787 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18788 echo "${ECHO_T}$ac_exception_model_name" >&6
18789
18790 # If we are non using SJLJ exceptions, and this host does not have support
18791 # for unwinding from a signal handler, enable checked dereferences and divides.
18792 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18793   CHECKREFSPEC=-fcheck-references
18794   DIVIDESPEC=-fuse-divide-subroutine
18795   EXCEPTIONSPEC=
18796 fi
18797
18798 # See if the user wants to disable java.net.  This is the mildly
18799 # ugly way that we admit that target-side configuration sucks.
18800 # Check whether --enable-java-net or --disable-java-net was given.
18801 if test "${enable_java_net+set}" = set; then
18802   enableval="$enable_java_net"
18803
18804 fi;
18805
18806 # Whether java.net is built by default can depend on the target.
18807 if test -z "$enable_java_net"; then
18808    enable_java_net=${enable_java_net_default-yes}
18809 fi
18810 if test "$enable_java_net" = no; then
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define DISABLE_JAVA_NET 1
18814 _ACEOF
18815
18816 fi
18817
18818 # See if the user wants to configure without libffi.  Some
18819 # architectures don't support it, and default values are set in
18820 # configure.host.
18821
18822 # Check whether --with-libffi or --without-libffi was given.
18823 if test "${with_libffi+set}" = set; then
18824   withval="$with_libffi"
18825   :
18826 else
18827   with_libffi=${with_libffi_default-yes}
18828 fi;
18829
18830 LIBFFI=
18831 LIBFFIINCS=
18832 if test "$with_libffi" != no; then
18833
18834 cat >>confdefs.h <<\_ACEOF
18835 #define USE_LIBFFI 1
18836 _ACEOF
18837
18838    LIBFFI=../libffi/libffi_convenience.la
18839    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18840 fi
18841
18842
18843
18844 # See if the user wants to disable JVMPI support.
18845 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18846 if test "${enable_jvmpi+set}" = set; then
18847   enableval="$enable_jvmpi"
18848
18849 fi;
18850
18851 if test "$enable_jvmpi" != no; then
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define ENABLE_JVMPI 1
18855 _ACEOF
18856
18857 fi
18858
18859 # If the target is an eCos system, use the appropriate eCos
18860 # I/O routines.
18861 # FIXME: this should not be a local option but a global target
18862 # system; at present there is no eCos target.
18863 TARGET_ECOS=${PROCESS-"no"}
18864
18865 # Check whether --with-ecos or --without-ecos was given.
18866 if test "${with_ecos+set}" = set; then
18867   withval="$with_ecos"
18868   TARGET_ECOS="$with_ecos"
18869
18870 fi;
18871
18872 case "$TARGET_ECOS" in
18873    no) case "$host" in
18874       *mingw*)
18875             PLATFORM=Win32
18876             PLATFORMNET=Win32
18877             PLATFORMH=win32.h
18878
18879 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18880 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18881 LD_PROG=`$CC --print-prog-name=ld`
18882 LD_VERSION=`$LD_PROG --version`
18883 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18884 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18885 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18886   LD_OK="ok"
18887 else
18888   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18889     LD_OK="ok"
18890   fi
18891 fi
18892 if test "x$LD_OK" != x; then
18893   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18894 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18895 else
18896   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18897 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18898   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18899 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18900
18901 cat >>confdefs.h <<\_ACEOF
18902 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18903 _ACEOF
18904
18905 fi
18906       ;;
18907       *)
18908             PLATFORM=Posix
18909             PLATFORMNET=Posix
18910             PLATFORMH=posix.h
18911       ;;
18912       esac
18913       ;;
18914    *)
18915       PLATFORM=Ecos
18916       PLATFORMNET=NoNet
18917
18918 cat >>confdefs.h <<\_ACEOF
18919 #define ECOS 1
18920 _ACEOF
18921
18922       PLATFORMH=posix.h
18923       ;;
18924 esac
18925
18926           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18927
18928
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 #include <stdint.h>
18936
18937 _ACEOF
18938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18939   $EGREP "uint32_t" >/dev/null 2>&1; then
18940
18941 cat >>confdefs.h <<\_ACEOF
18942 #define HAVE_INT32_DEFINED 1
18943 _ACEOF
18944
18945 fi
18946 rm -f conftest*
18947
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h.  */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h.  */
18954 #include <inttypes.h>
18955
18956 _ACEOF
18957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18958   $EGREP "uint32_t" >/dev/null 2>&1; then
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define HAVE_INT32_DEFINED 1
18962 _ACEOF
18963
18964 fi
18965 rm -f conftest*
18966
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 #include <sys/types.h>
18974
18975 _ACEOF
18976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18977   $EGREP "u_int32_t" >/dev/null 2>&1; then
18978
18979 cat >>confdefs.h <<\_ACEOF
18980 #define HAVE_BSD_INT32_DEFINED 1
18981 _ACEOF
18982
18983 fi
18984 rm -f conftest*
18985
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <sys/config.h>
18993
18994 _ACEOF
18995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18996   $EGREP "u_int32_t" >/dev/null 2>&1; then
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE_BSD_INT32_DEFINED 1
19000 _ACEOF
19001
19002 fi
19003 rm -f conftest*
19004
19005
19006
19007
19008 if test "$PLATFORM" = Win32; then
19009   USING_WIN32_PLATFORM_TRUE=
19010   USING_WIN32_PLATFORM_FALSE='#'
19011 else
19012   USING_WIN32_PLATFORM_TRUE='#'
19013   USING_WIN32_PLATFORM_FALSE=
19014 fi
19015
19016
19017
19018 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19019   USING_POSIX_PLATFORM_TRUE=
19020   USING_POSIX_PLATFORM_FALSE='#'
19021 else
19022   USING_POSIX_PLATFORM_TRUE='#'
19023   USING_POSIX_PLATFORM_FALSE=
19024 fi
19025
19026
19027 case "$host" in
19028   *-darwin*) DARWIN_CRT=true ;;
19029   *) DARWIN_CRT=false ;;
19030 esac
19031
19032
19033 if $DARWIN_CRT; then
19034   USING_DARWIN_CRT_TRUE=
19035   USING_DARWIN_CRT_FALSE='#'
19036 else
19037   USING_DARWIN_CRT_TRUE='#'
19038   USING_DARWIN_CRT_FALSE=
19039 fi
19040
19041
19042 # This may not be defined in a non-ANS conformant embedded system.
19043 # FIXME: Should these case a runtime exception in that case?
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h.  */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h.  */
19050 #include <time.h>
19051
19052 _ACEOF
19053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19054   $EGREP "localtime" >/dev/null 2>&1; then
19055
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_LOCALTIME 1
19058 _ACEOF
19059
19060 fi
19061 rm -f conftest*
19062
19063
19064 # Create the subdirectory for natFile.cc, or the attempt
19065 # to create the link will fail.
19066 test -d java || mkdir java
19067 test -d java/io || mkdir java/io
19068 test -d gnu || mkdir gnu
19069           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19070
19071
19072 # Likewise for natConcreteProcess.cc.
19073 test -d java/lang || mkdir java/lang
19074           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19075
19076
19077 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19078 test -d java/net || mkdir java/net
19079           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19080
19081           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19082
19083
19084 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19085 test -d gnu/java || mkdir gnu/java
19086 test -d gnu/java/net || mkdir gnu/java/net
19087           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19088
19089           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19090
19091
19092 # Likewise for natVMPipe.cc and natVMSelector.cc.
19093 test -d gnu/java/nio || mkdir gnu/java/nio
19094           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19095
19096           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19097
19098
19099 # Likewise for natFileChannelImpl.cc
19100 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19101           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19102
19103
19104 case "${host}" in
19105     *mingw*)
19106       SYSTEMSPEC="-lgdi32 -lws2_32"
19107       if test "${with_win32_nlsapi}" = "unicows"; then
19108         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19109       fi
19110     ;;
19111     *)
19112       SYSTEMSPEC=
19113     ;;
19114 esac
19115
19116
19117
19118 # Check whether --with-system-zlib or --without-system-zlib was given.
19119 if test "${with_system_zlib+set}" = set; then
19120   withval="$with_system_zlib"
19121
19122 fi;
19123 ZLIBSPEC=
19124
19125 ZLIBTESTSPEC=
19126
19127
19128 echo "$as_me:$LINENO: checking for X" >&5
19129 echo $ECHO_N "checking for X... $ECHO_C" >&6
19130
19131
19132 # Check whether --with-x or --without-x was given.
19133 if test "${with_x+set}" = set; then
19134   withval="$with_x"
19135
19136 fi;
19137 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19138 if test "x$with_x" = xno; then
19139   # The user explicitly disabled X.
19140   have_x=disabled
19141 else
19142   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19143     # Both variables are already set.
19144     have_x=yes
19145   else
19146     if test "${ac_cv_have_x+set}" = set; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149   # One or both of the vars are not set, and there is no cached value.
19150 ac_x_includes=no ac_x_libraries=no
19151 rm -fr conftest.dir
19152 if mkdir conftest.dir; then
19153   cd conftest.dir
19154   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19155   cat >Imakefile <<'_ACEOF'
19156 acfindx:
19157         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19158 _ACEOF
19159   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19160     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19161     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19162     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19163     for ac_extension in a so sl; do
19164       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19165          test -f $ac_im_libdir/libX11.$ac_extension; then
19166         ac_im_usrlibdir=$ac_im_libdir; break
19167       fi
19168     done
19169     # Screen out bogus values from the imake configuration.  They are
19170     # bogus both because they are the default anyway, and because
19171     # using them would break gcc on systems where it needs fixed includes.
19172     case $ac_im_incroot in
19173         /usr/include) ;;
19174         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19175     esac
19176     case $ac_im_usrlibdir in
19177         /usr/lib | /lib) ;;
19178         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19179     esac
19180   fi
19181   cd ..
19182   rm -fr conftest.dir
19183 fi
19184
19185 # Standard set of common directories for X headers.
19186 # Check X11 before X11Rn because it is often a symlink to the current release.
19187 ac_x_header_dirs='
19188 /usr/X11/include
19189 /usr/X11R6/include
19190 /usr/X11R5/include
19191 /usr/X11R4/include
19192
19193 /usr/include/X11
19194 /usr/include/X11R6
19195 /usr/include/X11R5
19196 /usr/include/X11R4
19197
19198 /usr/local/X11/include
19199 /usr/local/X11R6/include
19200 /usr/local/X11R5/include
19201 /usr/local/X11R4/include
19202
19203 /usr/local/include/X11
19204 /usr/local/include/X11R6
19205 /usr/local/include/X11R5
19206 /usr/local/include/X11R4
19207
19208 /usr/X386/include
19209 /usr/x386/include
19210 /usr/XFree86/include/X11
19211
19212 /usr/include
19213 /usr/local/include
19214 /usr/unsupported/include
19215 /usr/athena/include
19216 /usr/local/x11r5/include
19217 /usr/lpp/Xamples/include
19218
19219 /usr/openwin/include
19220 /usr/openwin/share/include'
19221
19222 if test "$ac_x_includes" = no; then
19223   # Guess where to find include files, by looking for Intrinsic.h.
19224   # First, try using that file with no special directory specified.
19225   cat >conftest.$ac_ext <<_ACEOF
19226 /* confdefs.h.  */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h.  */
19231 #include <X11/Intrinsic.h>
19232 _ACEOF
19233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } >/dev/null; then
19241   if test -s conftest.err; then
19242     ac_cpp_err=$ac_c_preproc_warn_flag
19243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19244   else
19245     ac_cpp_err=
19246   fi
19247 else
19248   ac_cpp_err=yes
19249 fi
19250 if test -z "$ac_cpp_err"; then
19251   # We can compile using X headers with no special include directory.
19252 ac_x_includes=
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257   for ac_dir in $ac_x_header_dirs; do
19258   if test -r "$ac_dir/X11/Intrinsic.h"; then
19259     ac_x_includes=$ac_dir
19260     break
19261   fi
19262 done
19263 fi
19264 rm -f conftest.err conftest.$ac_ext
19265 fi # $ac_x_includes = no
19266
19267 if test "$ac_x_libraries" = no; then
19268   # Check for the libraries.
19269   # See if we find them without any special options.
19270   # Don't add to $LIBS permanently.
19271   ac_save_LIBS=$LIBS
19272   LIBS="-lXt $LIBS"
19273   if test x$gcc_no_link = xyes; then
19274   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19276    { (exit 1); exit 1; }; }
19277 fi
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 #include <X11/Intrinsic.h>
19285 int
19286 main ()
19287 {
19288 XtMalloc (0)
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295   (eval $ac_link) 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_c_werror_flag"
19303                          || test ! -s conftest.err'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; } &&
19309          { ac_try='test -s conftest$ac_exeext'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; }; then
19315   LIBS=$ac_save_LIBS
19316 # We can link X programs with no special library path.
19317 ac_x_libraries=
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 LIBS=$ac_save_LIBS
19323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19324 do
19325   # Don't even attempt the hair of trying to link an X program!
19326   for ac_extension in a so sl; do
19327     if test -r $ac_dir/libXt.$ac_extension; then
19328       ac_x_libraries=$ac_dir
19329       break 2
19330     fi
19331   done
19332 done
19333 fi
19334 rm -f conftest.err conftest.$ac_objext \
19335       conftest$ac_exeext conftest.$ac_ext
19336 fi # $ac_x_libraries = no
19337
19338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19339   # Didn't find X anywhere.  Cache the known absence of X.
19340   ac_cv_have_x="have_x=no"
19341 else
19342   # Record where we found X for the cache.
19343   ac_cv_have_x="have_x=yes \
19344                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19345 fi
19346 fi
19347
19348   fi
19349   eval "$ac_cv_have_x"
19350 fi # $with_x != no
19351
19352 if test "$have_x" != yes; then
19353   echo "$as_me:$LINENO: result: $have_x" >&5
19354 echo "${ECHO_T}$have_x" >&6
19355   no_x=yes
19356 else
19357   # If each of the values was on the command line, it overrides each guess.
19358   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19359   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19360   # Update the cache value to reflect the command line values.
19361   ac_cv_have_x="have_x=yes \
19362                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19363   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19364 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19365 fi
19366
19367 if test "$no_x" = yes; then
19368   # Not all programs may use this symbol, but it does not hurt to define it.
19369
19370 cat >>confdefs.h <<\_ACEOF
19371 #define X_DISPLAY_MISSING 1
19372 _ACEOF
19373
19374   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19375 else
19376   if test -n "$x_includes"; then
19377     X_CFLAGS="$X_CFLAGS -I$x_includes"
19378   fi
19379
19380   # It would also be nice to do this for all -L options, not just this one.
19381   if test -n "$x_libraries"; then
19382     X_LIBS="$X_LIBS -L$x_libraries"
19383     # For Solaris; some versions of Sun CC require a space after -R and
19384     # others require no space.  Words are not sufficient . . . .
19385     case `(uname -sr) 2>/dev/null` in
19386     "SunOS 5"*)
19387       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19388 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19389       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19390       if test x$gcc_no_link = xyes; then
19391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19393    { (exit 1); exit 1; }; }
19394 fi
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401
19402 int
19403 main ()
19404 {
19405
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412   (eval $ac_link) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_R_nospace=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_R_nospace=no
19438 fi
19439 rm -f conftest.err conftest.$ac_objext \
19440       conftest$ac_exeext conftest.$ac_ext
19441       if test $ac_R_nospace = yes; then
19442         echo "$as_me:$LINENO: result: no" >&5
19443 echo "${ECHO_T}no" >&6
19444         X_LIBS="$X_LIBS -R$x_libraries"
19445       else
19446         LIBS="$ac_xsave_LIBS -R $x_libraries"
19447         if test x$gcc_no_link = xyes; then
19448   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19450    { (exit 1); exit 1; }; }
19451 fi
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458
19459 int
19460 main ()
19461 {
19462
19463   ;
19464   return 0;
19465 }
19466 _ACEOF
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469   (eval $ac_link) 2>conftest.er1
19470   ac_status=$?
19471   grep -v '^ *+' conftest.er1 >conftest.err
19472   rm -f conftest.er1
19473   cat conftest.err >&5
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); } &&
19476          { ac_try='test -z "$ac_c_werror_flag"
19477                          || test ! -s conftest.err'
19478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479   (eval $ac_try) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; } &&
19483          { ac_try='test -s conftest$ac_exeext'
19484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485   (eval $ac_try) 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); }; }; then
19489   ac_R_space=yes
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 ac_R_space=no
19495 fi
19496 rm -f conftest.err conftest.$ac_objext \
19497       conftest$ac_exeext conftest.$ac_ext
19498         if test $ac_R_space = yes; then
19499           echo "$as_me:$LINENO: result: yes" >&5
19500 echo "${ECHO_T}yes" >&6
19501           X_LIBS="$X_LIBS -R $x_libraries"
19502         else
19503           echo "$as_me:$LINENO: result: neither works" >&5
19504 echo "${ECHO_T}neither works" >&6
19505         fi
19506       fi
19507       LIBS=$ac_xsave_LIBS
19508     esac
19509   fi
19510
19511   # Check for system-dependent libraries X programs must link with.
19512   # Do this before checking for the system-independent R6 libraries
19513   # (-lICE), since we may need -lsocket or whatever for X linking.
19514
19515   if test "$ISC" = yes; then
19516     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19517   else
19518     # Martyn Johnson says this is needed for Ultrix, if the X
19519     # libraries were built with DECnet support.  And Karl Berry says
19520     # the Alpha needs dnet_stub (dnet does not exist).
19521     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19522     if test x$gcc_no_link = xyes; then
19523   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19524 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19525    { (exit 1); exit 1; }; }
19526 fi
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 /* Override any gcc2 internal prototype to avoid an error.  */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 /* We use char because int might match the return type of a gcc2
19539    builtin and then its argument prototype would still apply.  */
19540 char XOpenDisplay ();
19541 int
19542 main ()
19543 {
19544 XOpenDisplay ();
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551   (eval $ac_link) 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag"
19559                          || test ! -s conftest.err'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; } &&
19565          { ac_try='test -s conftest$ac_exeext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   :
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-ldnet  $LIBS"
19583 if test x$gcc_no_link = xyes; then
19584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19586    { (exit 1); exit 1; }; }
19587 fi
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594
19595 /* Override any gcc2 internal prototype to avoid an error.  */
19596 #ifdef __cplusplus
19597 extern "C"
19598 #endif
19599 /* We use char because int might match the return type of a gcc2
19600    builtin and then its argument prototype would still apply.  */
19601 char dnet_ntoa ();
19602 int
19603 main ()
19604 {
19605 dnet_ntoa ();
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19612   (eval $ac_link) 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } &&
19619          { ac_try='test -z "$ac_c_werror_flag"
19620                          || test ! -s conftest.err'
19621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622   (eval $ac_try) 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); }; } &&
19626          { ac_try='test -s conftest$ac_exeext'
19627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628   (eval $ac_try) 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; }; then
19632   ac_cv_lib_dnet_dnet_ntoa=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ac_cv_lib_dnet_dnet_ntoa=no
19638 fi
19639 rm -f conftest.err conftest.$ac_objext \
19640       conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19646   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19647 fi
19648
19649     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19650       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19651 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19652 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-ldnet_stub  $LIBS"
19657 if test x$gcc_no_link = xyes; then
19658   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19660    { (exit 1); exit 1; }; }
19661 fi
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h.  */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h.  */
19668
19669 /* Override any gcc2 internal prototype to avoid an error.  */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 /* We use char because int might match the return type of a gcc2
19674    builtin and then its argument prototype would still apply.  */
19675 char dnet_ntoa ();
19676 int
19677 main ()
19678 {
19679 dnet_ntoa ();
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19686   (eval $ac_link) 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_c_werror_flag"
19694                          || test ! -s conftest.err'
19695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696   (eval $ac_try) 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; } &&
19700          { ac_try='test -s conftest$ac_exeext'
19701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702   (eval $ac_try) 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; }; then
19706   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_cv_lib_dnet_stub_dnet_ntoa=no
19712 fi
19713 rm -f conftest.err conftest.$ac_objext \
19714       conftest$ac_exeext conftest.$ac_ext
19715 LIBS=$ac_check_lib_save_LIBS
19716 fi
19717 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19718 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19719 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19720   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19721 fi
19722
19723     fi
19724 fi
19725 rm -f conftest.err conftest.$ac_objext \
19726       conftest$ac_exeext conftest.$ac_ext
19727     LIBS="$ac_xsave_LIBS"
19728
19729     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19730     # to get the SysV transport functions.
19731     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19732     # needs -lnsl.
19733     # The nsl library prevents programs from opening the X display
19734     # on Irix 5.2, according to T.E. Dickey.
19735     # The functions gethostbyname, getservbyname, and inet_addr are
19736     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19737     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19738 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19739 if test "${ac_cv_func_gethostbyname+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   if test x$gcc_no_link = xyes; then
19743   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19745    { (exit 1); exit 1; }; }
19746 fi
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19755 #define gethostbyname innocuous_gethostbyname
19756
19757 /* System header to define __stub macros and hopefully few prototypes,
19758     which can conflict with char gethostbyname (); below.
19759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19760     <limits.h> exists even on freestanding compilers.  */
19761
19762 #ifdef __STDC__
19763 # include <limits.h>
19764 #else
19765 # include <assert.h>
19766 #endif
19767
19768 #undef gethostbyname
19769
19770 /* Override any gcc2 internal prototype to avoid an error.  */
19771 #ifdef __cplusplus
19772 extern "C"
19773 {
19774 #endif
19775 /* We use char because int might match the return type of a gcc2
19776    builtin and then its argument prototype would still apply.  */
19777 char gethostbyname ();
19778 /* The GNU C library defines this for functions which it implements
19779     to always fail with ENOSYS.  Some functions are actually named
19780     something starting with __ and the normal name is an alias.  */
19781 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19782 choke me
19783 #else
19784 char (*f) () = gethostbyname;
19785 #endif
19786 #ifdef __cplusplus
19787 }
19788 #endif
19789
19790 int
19791 main ()
19792 {
19793 return f != gethostbyname;
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800   (eval $ac_link) 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag"
19808                          || test ! -s conftest.err'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; } &&
19814          { ac_try='test -s conftest$ac_exeext'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; }; then
19820   ac_cv_func_gethostbyname=yes
19821 else
19822   echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_cv_func_gethostbyname=no
19826 fi
19827 rm -f conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 fi
19830 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19831 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19832
19833     if test $ac_cv_func_gethostbyname = no; then
19834       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19835 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19836 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   ac_check_lib_save_LIBS=$LIBS
19840 LIBS="-lnsl  $LIBS"
19841 if test x$gcc_no_link = xyes; then
19842   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19844    { (exit 1); exit 1; }; }
19845 fi
19846 cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852
19853 /* Override any gcc2 internal prototype to avoid an error.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 /* We use char because int might match the return type of a gcc2
19858    builtin and then its argument prototype would still apply.  */
19859 char gethostbyname ();
19860 int
19861 main ()
19862 {
19863 gethostbyname ();
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19870   (eval $ac_link) 2>conftest.er1
19871   ac_status=$?
19872   grep -v '^ *+' conftest.er1 >conftest.err
19873   rm -f conftest.er1
19874   cat conftest.err >&5
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); } &&
19877          { ac_try='test -z "$ac_c_werror_flag"
19878                          || test ! -s conftest.err'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; } &&
19884          { ac_try='test -s conftest$ac_exeext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_lib_nsl_gethostbyname=yes
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 ac_cv_lib_nsl_gethostbyname=no
19896 fi
19897 rm -f conftest.err conftest.$ac_objext \
19898       conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19900 fi
19901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19902 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19903 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19904   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19905 fi
19906
19907       if test $ac_cv_lib_nsl_gethostbyname = no; then
19908         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19909 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19910 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913   ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lbsd  $LIBS"
19915 if test x$gcc_no_link = xyes; then
19916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19918    { (exit 1); exit 1; }; }
19919 fi
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926
19927 /* Override any gcc2 internal prototype to avoid an error.  */
19928 #ifdef __cplusplus
19929 extern "C"
19930 #endif
19931 /* We use char because int might match the return type of a gcc2
19932    builtin and then its argument prototype would still apply.  */
19933 char gethostbyname ();
19934 int
19935 main ()
19936 {
19937 gethostbyname ();
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19944   (eval $ac_link) 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_c_werror_flag"
19952                          || test ! -s conftest.err'
19953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954   (eval $ac_try) 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; } &&
19958          { ac_try='test -s conftest$ac_exeext'
19959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960   (eval $ac_try) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   ac_cv_lib_bsd_gethostbyname=yes
19965 else
19966   echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ac_cv_lib_bsd_gethostbyname=no
19970 fi
19971 rm -f conftest.err conftest.$ac_objext \
19972       conftest$ac_exeext conftest.$ac_ext
19973 LIBS=$ac_check_lib_save_LIBS
19974 fi
19975 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19976 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19977 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19978   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19979 fi
19980
19981       fi
19982     fi
19983
19984     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19985     # socket/setsockopt and other routines are undefined under SCO ODT
19986     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19987     # on later versions), says Simon Leinen: it contains gethostby*
19988     # variants that don't use the name server (or something).  -lsocket
19989     # must be given before -lnsl if both are needed.  We assume that
19990     # if connect needs -lnsl, so does gethostbyname.
19991     echo "$as_me:$LINENO: checking for connect" >&5
19992 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19993 if test "${ac_cv_func_connect+set}" = set; then
19994   echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996   if test x$gcc_no_link = xyes; then
19997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19999    { (exit 1); exit 1; }; }
20000 fi
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20009 #define connect innocuous_connect
20010
20011 /* System header to define __stub macros and hopefully few prototypes,
20012     which can conflict with char connect (); below.
20013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20014     <limits.h> exists even on freestanding compilers.  */
20015
20016 #ifdef __STDC__
20017 # include <limits.h>
20018 #else
20019 # include <assert.h>
20020 #endif
20021
20022 #undef connect
20023
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 {
20028 #endif
20029 /* We use char because int might match the return type of a gcc2
20030    builtin and then its argument prototype would still apply.  */
20031 char connect ();
20032 /* The GNU C library defines this for functions which it implements
20033     to always fail with ENOSYS.  Some functions are actually named
20034     something starting with __ and the normal name is an alias.  */
20035 #if defined (__stub_connect) || defined (__stub___connect)
20036 choke me
20037 #else
20038 char (*f) () = connect;
20039 #endif
20040 #ifdef __cplusplus
20041 }
20042 #endif
20043
20044 int
20045 main ()
20046 {
20047 return f != connect;
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054   (eval $ac_link) 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -z "$ac_c_werror_flag"
20062                          || test ! -s conftest.err'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest$ac_exeext'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_cv_func_connect=yes
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_cv_func_connect=no
20080 fi
20081 rm -f conftest.err conftest.$ac_objext \
20082       conftest$ac_exeext conftest.$ac_ext
20083 fi
20084 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20085 echo "${ECHO_T}$ac_cv_func_connect" >&6
20086
20087     if test $ac_cv_func_connect = no; then
20088       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20089 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20090 if test "${ac_cv_lib_socket_connect+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20095 if test x$gcc_no_link = xyes; then
20096   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20098    { (exit 1); exit 1; }; }
20099 fi
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106
20107 /* Override any gcc2 internal prototype to avoid an error.  */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 /* We use char because int might match the return type of a gcc2
20112    builtin and then its argument prototype would still apply.  */
20113 char connect ();
20114 int
20115 main ()
20116 {
20117 connect ();
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20124   (eval $ac_link) 2>conftest.er1
20125   ac_status=$?
20126   grep -v '^ *+' conftest.er1 >conftest.err
20127   rm -f conftest.er1
20128   cat conftest.err >&5
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); } &&
20131          { ac_try='test -z "$ac_c_werror_flag"
20132                          || test ! -s conftest.err'
20133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134   (eval $ac_try) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); }; } &&
20138          { ac_try='test -s conftest$ac_exeext'
20139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140   (eval $ac_try) 2>&5
20141   ac_status=$?
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); }; }; then
20144   ac_cv_lib_socket_connect=yes
20145 else
20146   echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 ac_cv_lib_socket_connect=no
20150 fi
20151 rm -f conftest.err conftest.$ac_objext \
20152       conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20156 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20157 if test $ac_cv_lib_socket_connect = yes; then
20158   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20159 fi
20160
20161     fi
20162
20163     # Guillermo Gomez says -lposix is necessary on A/UX.
20164     echo "$as_me:$LINENO: checking for remove" >&5
20165 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20166 if test "${ac_cv_func_remove+set}" = set; then
20167   echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169   if test x$gcc_no_link = xyes; then
20170   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20172    { (exit 1); exit 1; }; }
20173 fi
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20182 #define remove innocuous_remove
20183
20184 /* System header to define __stub macros and hopefully few prototypes,
20185     which can conflict with char remove (); below.
20186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20187     <limits.h> exists even on freestanding compilers.  */
20188
20189 #ifdef __STDC__
20190 # include <limits.h>
20191 #else
20192 # include <assert.h>
20193 #endif
20194
20195 #undef remove
20196
20197 /* Override any gcc2 internal prototype to avoid an error.  */
20198 #ifdef __cplusplus
20199 extern "C"
20200 {
20201 #endif
20202 /* We use char because int might match the return type of a gcc2
20203    builtin and then its argument prototype would still apply.  */
20204 char remove ();
20205 /* The GNU C library defines this for functions which it implements
20206     to always fail with ENOSYS.  Some functions are actually named
20207     something starting with __ and the normal name is an alias.  */
20208 #if defined (__stub_remove) || defined (__stub___remove)
20209 choke me
20210 #else
20211 char (*f) () = remove;
20212 #endif
20213 #ifdef __cplusplus
20214 }
20215 #endif
20216
20217 int
20218 main ()
20219 {
20220 return f != remove;
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227   (eval $ac_link) 2>conftest.er1
20228   ac_status=$?
20229   grep -v '^ *+' conftest.er1 >conftest.err
20230   rm -f conftest.er1
20231   cat conftest.err >&5
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } &&
20234          { ac_try='test -z "$ac_c_werror_flag"
20235                          || test ! -s conftest.err'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; } &&
20241          { ac_try='test -s conftest$ac_exeext'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; }; then
20247   ac_cv_func_remove=yes
20248 else
20249   echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_cv_func_remove=no
20253 fi
20254 rm -f conftest.err conftest.$ac_objext \
20255       conftest$ac_exeext conftest.$ac_ext
20256 fi
20257 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20258 echo "${ECHO_T}$ac_cv_func_remove" >&6
20259
20260     if test $ac_cv_func_remove = no; then
20261       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20262 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20263 if test "${ac_cv_lib_posix_remove+set}" = set; then
20264   echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266   ac_check_lib_save_LIBS=$LIBS
20267 LIBS="-lposix  $LIBS"
20268 if test x$gcc_no_link = xyes; then
20269   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20271    { (exit 1); exit 1; }; }
20272 fi
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 /* Override any gcc2 internal prototype to avoid an error.  */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 /* We use char because int might match the return type of a gcc2
20285    builtin and then its argument prototype would still apply.  */
20286 char remove ();
20287 int
20288 main ()
20289 {
20290 remove ();
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20297   (eval $ac_link) 2>conftest.er1
20298   ac_status=$?
20299   grep -v '^ *+' conftest.er1 >conftest.err
20300   rm -f conftest.er1
20301   cat conftest.err >&5
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } &&
20304          { ac_try='test -z "$ac_c_werror_flag"
20305                          || test ! -s conftest.err'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; } &&
20311          { ac_try='test -s conftest$ac_exeext'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; }; then
20317   ac_cv_lib_posix_remove=yes
20318 else
20319   echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ac_cv_lib_posix_remove=no
20323 fi
20324 rm -f conftest.err conftest.$ac_objext \
20325       conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20327 fi
20328 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20329 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20330 if test $ac_cv_lib_posix_remove = yes; then
20331   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20332 fi
20333
20334     fi
20335
20336     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20337     echo "$as_me:$LINENO: checking for shmat" >&5
20338 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20339 if test "${ac_cv_func_shmat+set}" = set; then
20340   echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342   if test x$gcc_no_link = xyes; then
20343   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20345    { (exit 1); exit 1; }; }
20346 fi
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20355 #define shmat innocuous_shmat
20356
20357 /* System header to define __stub macros and hopefully few prototypes,
20358     which can conflict with char shmat (); below.
20359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20360     <limits.h> exists even on freestanding compilers.  */
20361
20362 #ifdef __STDC__
20363 # include <limits.h>
20364 #else
20365 # include <assert.h>
20366 #endif
20367
20368 #undef shmat
20369
20370 /* Override any gcc2 internal prototype to avoid an error.  */
20371 #ifdef __cplusplus
20372 extern "C"
20373 {
20374 #endif
20375 /* We use char because int might match the return type of a gcc2
20376    builtin and then its argument prototype would still apply.  */
20377 char shmat ();
20378 /* The GNU C library defines this for functions which it implements
20379     to always fail with ENOSYS.  Some functions are actually named
20380     something starting with __ and the normal name is an alias.  */
20381 #if defined (__stub_shmat) || defined (__stub___shmat)
20382 choke me
20383 #else
20384 char (*f) () = shmat;
20385 #endif
20386 #ifdef __cplusplus
20387 }
20388 #endif
20389
20390 int
20391 main ()
20392 {
20393 return f != shmat;
20394   ;
20395   return 0;
20396 }
20397 _ACEOF
20398 rm -f conftest.$ac_objext conftest$ac_exeext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400   (eval $ac_link) 2>conftest.er1
20401   ac_status=$?
20402   grep -v '^ *+' conftest.er1 >conftest.err
20403   rm -f conftest.er1
20404   cat conftest.err >&5
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); } &&
20407          { ac_try='test -z "$ac_c_werror_flag"
20408                          || test ! -s conftest.err'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; } &&
20414          { ac_try='test -s conftest$ac_exeext'
20415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416   (eval $ac_try) 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; }; then
20420   ac_cv_func_shmat=yes
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 ac_cv_func_shmat=no
20426 fi
20427 rm -f conftest.err conftest.$ac_objext \
20428       conftest$ac_exeext conftest.$ac_ext
20429 fi
20430 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20431 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20432
20433     if test $ac_cv_func_shmat = no; then
20434       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20435 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20436 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20437   echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439   ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-lipc  $LIBS"
20441 if test x$gcc_no_link = xyes; then
20442   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20444    { (exit 1); exit 1; }; }
20445 fi
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452
20453 /* Override any gcc2 internal prototype to avoid an error.  */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 /* We use char because int might match the return type of a gcc2
20458    builtin and then its argument prototype would still apply.  */
20459 char shmat ();
20460 int
20461 main ()
20462 {
20463 shmat ();
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20470   (eval $ac_link) 2>conftest.er1
20471   ac_status=$?
20472   grep -v '^ *+' conftest.er1 >conftest.err
20473   rm -f conftest.er1
20474   cat conftest.err >&5
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); } &&
20477          { ac_try='test -z "$ac_c_werror_flag"
20478                          || test ! -s conftest.err'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; } &&
20484          { ac_try='test -s conftest$ac_exeext'
20485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486   (eval $ac_try) 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; }; then
20490   ac_cv_lib_ipc_shmat=yes
20491 else
20492   echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20494
20495 ac_cv_lib_ipc_shmat=no
20496 fi
20497 rm -f conftest.err conftest.$ac_objext \
20498       conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20500 fi
20501 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20502 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20503 if test $ac_cv_lib_ipc_shmat = yes; then
20504   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20505 fi
20506
20507     fi
20508   fi
20509
20510   # Check for libraries that X11R6 Xt/Xaw programs need.
20511   ac_save_LDFLAGS=$LDFLAGS
20512   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20513   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20514   # check for ICE first), but we must link in the order -lSM -lICE or
20515   # we get undefined symbols.  So assume we have SM if we have ICE.
20516   # These have to be linked with before -lX11, unlike the other
20517   # libraries we check for below, so use a different variable.
20518   # John Interrante, Karl Berry
20519   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20520 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20521 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   ac_check_lib_save_LIBS=$LIBS
20525 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20526 if test x$gcc_no_link = xyes; then
20527   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20529    { (exit 1); exit 1; }; }
20530 fi
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537
20538 /* Override any gcc2 internal prototype to avoid an error.  */
20539 #ifdef __cplusplus
20540 extern "C"
20541 #endif
20542 /* We use char because int might match the return type of a gcc2
20543    builtin and then its argument prototype would still apply.  */
20544 char IceConnectionNumber ();
20545 int
20546 main ()
20547 {
20548 IceConnectionNumber ();
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555   (eval $ac_link) 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } &&
20562          { ac_try='test -z "$ac_c_werror_flag"
20563                          || test ! -s conftest.err'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; } &&
20569          { ac_try='test -s conftest$ac_exeext'
20570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571   (eval $ac_try) 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; }; then
20575   ac_cv_lib_ICE_IceConnectionNumber=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_cv_lib_ICE_IceConnectionNumber=no
20581 fi
20582 rm -f conftest.err conftest.$ac_objext \
20583       conftest$ac_exeext conftest.$ac_ext
20584 LIBS=$ac_check_lib_save_LIBS
20585 fi
20586 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20587 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20588 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20589   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20590 fi
20591
20592   LDFLAGS=$ac_save_LDFLAGS
20593
20594 fi
20595
20596
20597 # FIXME: this should be _libs on some hosts.
20598 libsubdir=.libs
20599
20600 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20601
20602 LIBSTDCXXSPEC=
20603 # extra LD Flags which are required for targets
20604 case "${host}" in
20605 *-*-darwin[0-7].*)
20606     # For now we have to disable it on darwin[8-9] because it slows down
20607     # the linking phase. A possible bug in ld?
20608     # on Darwin -single_module speeds up loading of the dynamic libraries.
20609     extra_ldflags_libjava=-Wl,-single_module
20610     ;;
20611 *-*-darwin[9]*)
20612     extra_gij_ldflags=-Wl,-allow_stack_execute
20613     ;;
20614 arm*linux*eabi)
20615     # Some of the ARM unwinder code is actually in libstdc++.  We
20616     # could in principle replicate it in libgcj, but it's better to
20617     # have a dependency on libstdc++.
20618     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20619     LIBSTDCXXSPEC=-lstdc++
20620     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20621     ;;
20622 esac
20623
20624
20625
20626
20627
20628
20629
20630 # Allow the GC to be disabled.  Can be useful when debugging.
20631 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20632 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20633 # Check whether --enable-java-gc or --disable-java-gc was given.
20634 if test "${enable_java_gc+set}" = set; then
20635   enableval="$enable_java_gc"
20636   GC=$enableval
20637 else
20638   GC=boehm
20639 fi;
20640 GCLIBS=
20641 GCINCS=
20642 GCDEPS=
20643 GCSPEC=
20644 JC1GCSPEC=
20645 GCTESTSPEC=
20646 case "$GC" in
20647  boehm)
20648     echo "$as_me:$LINENO: result: boehm" >&5
20649 echo "${ECHO_T}boehm" >&6
20650     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20651     JC1GCSPEC='-fuse-boehm-gc'
20652     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20653     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20654     GCOBJS=boehm.lo
20655     GCHDR=boehm-gc.h
20656     # The POSIX thread support needs to know this.
20657
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_BOEHM_GC 1
20660 _ACEOF
20661
20662     ;;
20663  no)
20664     echo "$as_me:$LINENO: result: none" >&5
20665 echo "${ECHO_T}none" >&6
20666     GCHDR=no-gc.h
20667     ;;
20668  *)
20669     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20670 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20671    { (exit 1); exit 1; }; }
20672     ;;
20673 esac
20674
20675
20676
20677
20678
20679
20680           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20681
20682
20683
20684 if test "$GC" = boehm; then
20685   USING_BOEHMGC_TRUE=
20686   USING_BOEHMGC_FALSE='#'
20687 else
20688   USING_BOEHMGC_TRUE='#'
20689   USING_BOEHMGC_FALSE=
20690 fi
20691
20692
20693
20694 if test "$GC" = no; then
20695   USING_NOGC_TRUE=
20696   USING_NOGC_FALSE='#'
20697 else
20698   USING_NOGC_TRUE='#'
20699   USING_NOGC_FALSE=
20700 fi
20701
20702
20703
20704 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20705 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20706 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20707 echo "$as_me:$LINENO: result: $THREADS" >&5
20708 echo "${ECHO_T}$THREADS" >&6
20709
20710 case "$THREADS" in
20711  no | none | single)
20712     THREADS=none
20713     ;;
20714  aix | posix | posix95 | pthreads)
20715     THREADS=posix
20716     case "$host" in
20717      *-*-linux*)
20718
20719 cat >>confdefs.h <<\_ACEOF
20720 #define LINUX_THREADS 1
20721 _ACEOF
20722
20723         ;;
20724     esac
20725     ;;
20726  win32)
20727     ;;
20728  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20729     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20730 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20731    { (exit 1); exit 1; }; }
20732     ;;
20733  *)
20734     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20735 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20736    { (exit 1); exit 1; }; }
20737     ;;
20738 esac
20739
20740 THREADCXXFLAGS=
20741 THREADLDFLAGS=
20742 THREADLIBS=
20743 THREADINCS=
20744 THREADDEPS=
20745 THREADH=
20746 THREADSPEC=
20747 THREADSTARTFILESPEC=
20748 case "$THREADS" in
20749  posix)
20750     case "$host" in
20751      *-*-cygwin*)
20752         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20753         ;;
20754      *-*-freebsd[1234]*)
20755         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20756         # merely adds pthread_* functions) but it does have a -pthread switch
20757         # which is required at link-time to select -lc_r *instead* of -lc.
20758         THREADLDFLAGS=-pthread
20759         # Don't set THREADSPEC here as might be expected since -pthread is
20760         # not processed when found within a spec file, it must come from
20761         # the command line.  For now, the user must provide the -pthread
20762         # switch to link code compiled with gcj.  In future, consider adding
20763         # support for weak references to pthread_* functions ala gthr.h API.
20764         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20765         ;;
20766      *-*-freebsd*)
20767         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20768         # systems which support threads and -lpthread.
20769         THREADLDFLAGS=-pthread
20770         THREADSPEC=-lpthread
20771         ;;
20772      alpha*-dec-osf* | hppa*-hp-hpux*)
20773         THREADCXXFLAGS=-pthread
20774         # boehm-gc needs some functions from librt, so link that too.
20775         THREADLIBS='-lpthread -lrt'
20776         THREADSPEC='-lpthread -lrt'
20777         ;;
20778      *)
20779         THREADLIBS=-lpthread
20780         THREADSPEC=-lpthread
20781         ;;
20782     esac
20783     THREADH=posix-threads.h
20784     # MIT pthreads doesn't seem to have the mutexattr functions.
20785     # But for now we don't check for it.  We just assume you aren't
20786     # using MIT pthreads.
20787
20788 cat >>confdefs.h <<\_ACEOF
20789 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20790 _ACEOF
20791
20792
20793     # If we're using the Boehm GC, then we happen to know that it
20794     # defines _REENTRANT, so we don't bother.  Eww.
20795     if test "$GC" != boehm; then
20796
20797 cat >>confdefs.h <<\_ACEOF
20798 #define _REENTRANT 1
20799 _ACEOF
20800
20801     fi
20802
20803 cat >>confdefs.h <<\_ACEOF
20804 #define _POSIX_PTHREAD_SEMANTICS 1
20805 _ACEOF
20806
20807     ;;
20808
20809  win32)
20810     THREADH=win32-threads.h
20811     THREADCXXFLAGS=-mthreads
20812     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20813     # But we do not want the executables created to be dependent on
20814     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20815     # exception handling contexts.  The following kludge achieves this effect
20816     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20817     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20818     # A workaround is to explicitly use -mthreads while linking Java programs.
20819     # See PR libgcj/28263.
20820     #
20821     # FIXME: In Java we are able to detect thread death at the end of
20822     # Thread.run() so we should be able to clean up the exception handling
20823     # contexts ourselves.
20824     THREADSTARTFILESPEC='crtmt%O%s'
20825     ;;
20826
20827  none)
20828     THREADH=no-threads.h
20829     ;;
20830 esac
20831           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842 if test "$THREADS" = posix; then
20843   USING_POSIX_THREADS_TRUE=
20844   USING_POSIX_THREADS_FALSE='#'
20845 else
20846   USING_POSIX_THREADS_TRUE='#'
20847   USING_POSIX_THREADS_FALSE=
20848 fi
20849
20850
20851
20852 if test "$THREADS" = win32; then
20853   USING_WIN32_THREADS_TRUE=
20854   USING_WIN32_THREADS_FALSE='#'
20855 else
20856   USING_WIN32_THREADS_TRUE='#'
20857   USING_WIN32_THREADS_FALSE=
20858 fi
20859
20860
20861
20862 if test "$THREADS" = none; then
20863   USING_NO_THREADS_TRUE=
20864   USING_NO_THREADS_FALSE='#'
20865 else
20866   USING_NO_THREADS_TRUE='#'
20867   USING_NO_THREADS_FALSE=
20868 fi
20869
20870
20871
20872 if test "$use_libgcj_bc" = yes; then
20873   USE_LIBGCJ_BC_TRUE=
20874   USE_LIBGCJ_BC_FALSE='#'
20875 else
20876   USE_LIBGCJ_BC_TRUE='#'
20877   USE_LIBGCJ_BC_FALSE=
20878 fi
20879
20880
20881 if test -d sysdep; then true; else mkdir sysdep; fi
20882           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20883
20884           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20885
20886           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20887
20888
20889 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20890 if test "$use_libgcj_bc" = yes; then
20891   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20892 fi
20893
20894
20895 HASH_SYNC_SPEC=
20896 # Hash synchronization is only useful with posix threads right now.
20897 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20898    HASH_SYNC_SPEC=-fhash-synchronization
20899
20900 cat >>confdefs.h <<\_ACEOF
20901 #define JV_HASH_SYNCHRONIZATION 1
20902 _ACEOF
20903
20904 fi
20905
20906
20907
20908
20909 if test "$GCC" = yes; then
20910   USING_GCC_TRUE=
20911   USING_GCC_FALSE='#'
20912 else
20913   USING_GCC_TRUE='#'
20914   USING_GCC_FALSE=
20915 fi
20916
20917
20918 # We're in the tree with gcc, and need to include some of its headers.
20919 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20920
20921 if test "x${with_newlib}" = "xyes"; then
20922    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20923    # may not work correctly, because the compiler may not be able to
20924    # link executables.
20925
20926    # We assume newlib.  This lets us hard-code the functions we know
20927    # we'll have.
20928
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_MEMMOVE 1
20931 _ACEOF
20932
20933
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_MEMCPY 1
20936 _ACEOF
20937
20938
20939 cat >>confdefs.h <<\_ACEOF
20940 #define HAVE_TIME 1
20941 _ACEOF
20942
20943
20944 cat >>confdefs.h <<\_ACEOF
20945 #define HAVE_GMTIME_R 1
20946 _ACEOF
20947
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_LOCALTIME_R 1
20951 _ACEOF
20952
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_USLEEP_DECL 1
20956 _ACEOF
20957
20958    # This is only for POSIX threads.
20959
20960 cat >>confdefs.h <<\_ACEOF
20961 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20962 _ACEOF
20963
20964
20965    # Assume we do not have getuid and friends.
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define NO_GETUID 1
20969 _ACEOF
20970
20971    PLATFORMNET=NoNet
20972 else
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003 for ac_func in strerror_r select fstat open fsync sleep opendir \
21004                    localtime_r getpwuid_r getcwd \
21005                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
21006                    nl_langinfo setlocale \
21007                    inet_pton uname inet_ntoa \
21008                    getrlimit sigaction ftruncate mmap \
21009                    getifaddrs
21010 do
21011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21012 echo "$as_me:$LINENO: checking for $ac_func" >&5
21013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21014 if eval "test \"\${$as_ac_var+set}\" = set"; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   if test x$gcc_no_link = xyes; then
21018   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21020    { (exit 1); exit 1; }; }
21021 fi
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21030 #define $ac_func innocuous_$ac_func
21031
21032 /* System header to define __stub macros and hopefully few prototypes,
21033     which can conflict with char $ac_func (); below.
21034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21035     <limits.h> exists even on freestanding compilers.  */
21036
21037 #ifdef __STDC__
21038 # include <limits.h>
21039 #else
21040 # include <assert.h>
21041 #endif
21042
21043 #undef $ac_func
21044
21045 /* Override any gcc2 internal prototype to avoid an error.  */
21046 #ifdef __cplusplus
21047 extern "C"
21048 {
21049 #endif
21050 /* We use char because int might match the return type of a gcc2
21051    builtin and then its argument prototype would still apply.  */
21052 char $ac_func ();
21053 /* The GNU C library defines this for functions which it implements
21054     to always fail with ENOSYS.  Some functions are actually named
21055     something starting with __ and the normal name is an alias.  */
21056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21057 choke me
21058 #else
21059 char (*f) () = $ac_func;
21060 #endif
21061 #ifdef __cplusplus
21062 }
21063 #endif
21064
21065 int
21066 main ()
21067 {
21068 return f != $ac_func;
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext conftest$ac_exeext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21075   (eval $ac_link) 2>conftest.er1
21076   ac_status=$?
21077   grep -v '^ *+' conftest.er1 >conftest.err
21078   rm -f conftest.er1
21079   cat conftest.err >&5
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } &&
21082          { ac_try='test -z "$ac_c_werror_flag"
21083                          || test ! -s conftest.err'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; } &&
21089          { ac_try='test -s conftest$ac_exeext'
21090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091   (eval $ac_try) 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); }; }; then
21095   eval "$as_ac_var=yes"
21096 else
21097   echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 eval "$as_ac_var=no"
21101 fi
21102 rm -f conftest.err conftest.$ac_objext \
21103       conftest$ac_exeext conftest.$ac_ext
21104 fi
21105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21107 if test `eval echo '${'$as_ac_var'}'` = yes; then
21108   cat >>confdefs.h <<_ACEOF
21109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21110 _ACEOF
21111
21112 fi
21113 done
21114
21115
21116
21117 for ac_func in inet_aton inet_addr
21118 do
21119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21120 echo "$as_me:$LINENO: checking for $ac_func" >&5
21121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21122 if eval "test \"\${$as_ac_var+set}\" = set"; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125   if test x$gcc_no_link = xyes; then
21126   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21128    { (exit 1); exit 1; }; }
21129 fi
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h.  */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h.  */
21136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21138 #define $ac_func innocuous_$ac_func
21139
21140 /* System header to define __stub macros and hopefully few prototypes,
21141     which can conflict with char $ac_func (); below.
21142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21143     <limits.h> exists even on freestanding compilers.  */
21144
21145 #ifdef __STDC__
21146 # include <limits.h>
21147 #else
21148 # include <assert.h>
21149 #endif
21150
21151 #undef $ac_func
21152
21153 /* Override any gcc2 internal prototype to avoid an error.  */
21154 #ifdef __cplusplus
21155 extern "C"
21156 {
21157 #endif
21158 /* We use char because int might match the return type of a gcc2
21159    builtin and then its argument prototype would still apply.  */
21160 char $ac_func ();
21161 /* The GNU C library defines this for functions which it implements
21162     to always fail with ENOSYS.  Some functions are actually named
21163     something starting with __ and the normal name is an alias.  */
21164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21165 choke me
21166 #else
21167 char (*f) () = $ac_func;
21168 #endif
21169 #ifdef __cplusplus
21170 }
21171 #endif
21172
21173 int
21174 main ()
21175 {
21176 return f != $ac_func;
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183   (eval $ac_link) 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } &&
21190          { ac_try='test -z "$ac_c_werror_flag"
21191                          || test ! -s conftest.err'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; } &&
21197          { ac_try='test -s conftest$ac_exeext'
21198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199   (eval $ac_try) 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); }; }; then
21203   eval "$as_ac_var=yes"
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208 eval "$as_ac_var=no"
21209 fi
21210 rm -f conftest.err conftest.$ac_objext \
21211       conftest$ac_exeext conftest.$ac_ext
21212 fi
21213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21215 if test `eval echo '${'$as_ac_var'}'` = yes; then
21216   cat >>confdefs.h <<_ACEOF
21217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21218 _ACEOF
21219  break
21220 fi
21221 done
21222
21223
21224
21225
21226 for ac_header in unistd.h dlfcn.h sys/resource.h
21227 do
21228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21230   echo "$as_me:$LINENO: checking for $ac_header" >&5
21231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21233   echo $ECHO_N "(cached) $ECHO_C" >&6
21234 fi
21235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21237 else
21238   # Is the header compilable?
21239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21241 cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247 $ac_includes_default
21248 #include <$ac_header>
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21252   (eval $ac_compile) 2>conftest.er1
21253   ac_status=$?
21254   grep -v '^ *+' conftest.er1 >conftest.err
21255   rm -f conftest.er1
21256   cat conftest.err >&5
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); } &&
21259          { ac_try='test -z "$ac_c_werror_flag"
21260                          || test ! -s conftest.err'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; } &&
21266          { ac_try='test -s conftest.$ac_objext'
21267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268   (eval $ac_try) 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; }; then
21272   ac_header_compiler=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277 ac_header_compiler=no
21278 fi
21279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21281 echo "${ECHO_T}$ac_header_compiler" >&6
21282
21283 # Is the header present?
21284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21286 cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h.  */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h.  */
21292 #include <$ac_header>
21293 _ACEOF
21294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } >/dev/null; then
21302   if test -s conftest.err; then
21303     ac_cpp_err=$ac_c_preproc_warn_flag
21304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21305   else
21306     ac_cpp_err=
21307   fi
21308 else
21309   ac_cpp_err=yes
21310 fi
21311 if test -z "$ac_cpp_err"; then
21312   ac_header_preproc=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317   ac_header_preproc=no
21318 fi
21319 rm -f conftest.err conftest.$ac_ext
21320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21321 echo "${ECHO_T}$ac_header_preproc" >&6
21322
21323 # So?  What about this header?
21324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21325   yes:no: )
21326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21330     ac_header_preproc=yes
21331     ;;
21332   no:yes:* )
21333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21345     (
21346       cat <<\_ASBOX
21347 ## ---------------------------------- ##
21348 ## Report this to the libjava lists.  ##
21349 ## ---------------------------------- ##
21350 _ASBOX
21351     ) |
21352       sed "s/^/$as_me: WARNING:     /" >&2
21353     ;;
21354 esac
21355 echo "$as_me:$LINENO: checking for $ac_header" >&5
21356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21358   echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360   eval "$as_ac_Header=\$ac_header_preproc"
21361 fi
21362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21364
21365 fi
21366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21367   cat >>confdefs.h <<_ACEOF
21368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21369 _ACEOF
21370
21371 fi
21372
21373 done
21374
21375    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21376    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21377 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21378 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   ac_check_lib_save_LIBS=$LIBS
21382 LIBS="-ldl  $LIBS"
21383 if test x$gcc_no_link = xyes; then
21384   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21386    { (exit 1); exit 1; }; }
21387 fi
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394
21395 /* Override any gcc2 internal prototype to avoid an error.  */
21396 #ifdef __cplusplus
21397 extern "C"
21398 #endif
21399 /* We use char because int might match the return type of a gcc2
21400    builtin and then its argument prototype would still apply.  */
21401 char dladdr ();
21402 int
21403 main ()
21404 {
21405 dladdr ();
21406   ;
21407   return 0;
21408 }
21409 _ACEOF
21410 rm -f conftest.$ac_objext conftest$ac_exeext
21411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21412   (eval $ac_link) 2>conftest.er1
21413   ac_status=$?
21414   grep -v '^ *+' conftest.er1 >conftest.err
21415   rm -f conftest.er1
21416   cat conftest.err >&5
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); } &&
21419          { ac_try='test -z "$ac_c_werror_flag"
21420                          || test ! -s conftest.err'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; } &&
21426          { ac_try='test -s conftest$ac_exeext'
21427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428   (eval $ac_try) 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   ac_cv_lib_dl_dladdr=yes
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437 ac_cv_lib_dl_dladdr=no
21438 fi
21439 rm -f conftest.err conftest.$ac_objext \
21440       conftest$ac_exeext conftest.$ac_ext
21441 LIBS=$ac_check_lib_save_LIBS
21442 fi
21443 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21444 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21445 if test $ac_cv_lib_dl_dladdr = yes; then
21446
21447
21448 cat >>confdefs.h <<\_ACEOF
21449 #define HAVE_DLADDR 1
21450 _ACEOF
21451
21452 else
21453
21454        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21455 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21456 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21457   echo $ECHO_N "(cached) $ECHO_C" >&6
21458 else
21459   ac_check_lib_save_LIBS=$LIBS
21460 LIBS="-ldld  $LIBS"
21461 if test x$gcc_no_link = xyes; then
21462   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21464    { (exit 1); exit 1; }; }
21465 fi
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472
21473 /* Override any gcc2 internal prototype to avoid an error.  */
21474 #ifdef __cplusplus
21475 extern "C"
21476 #endif
21477 /* We use char because int might match the return type of a gcc2
21478    builtin and then its argument prototype would still apply.  */
21479 char dladdr ();
21480 int
21481 main ()
21482 {
21483 dladdr ();
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490   (eval $ac_link) 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } &&
21497          { ac_try='test -z "$ac_c_werror_flag"
21498                          || test ! -s conftest.err'
21499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500   (eval $ac_try) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); }; } &&
21504          { ac_try='test -s conftest$ac_exeext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   ac_cv_lib_dld_dladdr=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 ac_cv_lib_dld_dladdr=no
21516 fi
21517 rm -f conftest.err conftest.$ac_objext \
21518       conftest$ac_exeext conftest.$ac_ext
21519 LIBS=$ac_check_lib_save_LIBS
21520 fi
21521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21522 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21523 if test $ac_cv_lib_dld_dladdr = yes; then
21524
21525
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_DLADDR 1
21528 _ACEOF
21529
21530 fi
21531
21532 fi
21533
21534
21535    if test x"$cross_compiling" = x"no"; then
21536      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21537 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21538 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21539   echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541   test "$cross_compiling" = yes &&
21542   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21543 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21544    { (exit 1); exit 1; }; }
21545 if test -r "/proc/self/exe"; then
21546   ac_cv_file__proc_self_exe=yes
21547 else
21548   ac_cv_file__proc_self_exe=no
21549 fi
21550 fi
21551 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21552 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21553 if test $ac_cv_file__proc_self_exe = yes; then
21554
21555 cat >>confdefs.h <<_ACEOF
21556 #define HAVE__PROC_SELF_EXE 1
21557 _ACEOF
21558
21559
21560
21561 cat >>confdefs.h <<\_ACEOF
21562 #define HAVE_PROC_SELF_EXE 1
21563 _ACEOF
21564
21565 fi
21566
21567      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21568 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21569 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   test "$cross_compiling" = yes &&
21573   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21574 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21575    { (exit 1); exit 1; }; }
21576 if test -r "/proc/self/maps"; then
21577   ac_cv_file__proc_self_maps=yes
21578 else
21579   ac_cv_file__proc_self_maps=no
21580 fi
21581 fi
21582 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21583 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21584 if test $ac_cv_file__proc_self_maps = yes; then
21585
21586 cat >>confdefs.h <<_ACEOF
21587 #define HAVE__PROC_SELF_MAPS 1
21588 _ACEOF
21589
21590
21591
21592 cat >>confdefs.h <<\_ACEOF
21593 #define HAVE_PROC_SELF_MAPS 1
21594 _ACEOF
21595
21596 fi
21597
21598    else
21599      case $host in
21600      *-linux*)
21601
21602 cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_PROC_SELF_EXE 1
21604 _ACEOF
21605
21606
21607 cat >>confdefs.h <<\_ACEOF
21608 #define HAVE_PROC_SELF_MAPS 1
21609 _ACEOF
21610
21611        ;;
21612      esac
21613    fi
21614
21615
21616       if test "X$prefix" = "XNONE"; then
21617     acl_final_prefix="$ac_default_prefix"
21618   else
21619     acl_final_prefix="$prefix"
21620   fi
21621   if test "X$exec_prefix" = "XNONE"; then
21622     acl_final_exec_prefix='${prefix}'
21623   else
21624     acl_final_exec_prefix="$exec_prefix"
21625   fi
21626   acl_save_prefix="$prefix"
21627   prefix="$acl_final_prefix"
21628   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21629   prefix="$acl_save_prefix"
21630
21631
21632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21633 if test "${with_gnu_ld+set}" = set; then
21634   withval="$with_gnu_ld"
21635   test "$withval" = no || with_gnu_ld=yes
21636 else
21637   with_gnu_ld=no
21638 fi;
21639 # Prepare PATH_SEPARATOR.
21640 # The user is always right.
21641 if test "${PATH_SEPARATOR+set}" != set; then
21642   echo "#! /bin/sh" >conf$$.sh
21643   echo  "exit 0"   >>conf$$.sh
21644   chmod +x conf$$.sh
21645   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21646     PATH_SEPARATOR=';'
21647   else
21648     PATH_SEPARATOR=:
21649   fi
21650   rm -f conf$$.sh
21651 fi
21652 ac_prog=ld
21653 if test "$GCC" = yes; then
21654   # Check if gcc -print-prog-name=ld gives a path.
21655   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21656 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21657   case $host in
21658   *-*-mingw*)
21659     # gcc leaves a trailing carriage return which upsets mingw
21660     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21661   *)
21662     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21663   esac
21664   case $ac_prog in
21665     # Accept absolute paths.
21666     [\\/]* | [A-Za-z]:[\\/]*)
21667       re_direlt='/[^/][^/]*/\.\./'
21668       # Canonicalize the path of ld
21669       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21670       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21671         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21672       done
21673       test -z "$LD" && LD="$ac_prog"
21674       ;;
21675   "")
21676     # If it fails, then pretend we aren't using GCC.
21677     ac_prog=ld
21678     ;;
21679   *)
21680     # If it is relative, then search for the first ld in PATH.
21681     with_gnu_ld=unknown
21682     ;;
21683   esac
21684 elif test "$with_gnu_ld" = yes; then
21685   echo "$as_me:$LINENO: checking for GNU ld" >&5
21686 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21687 else
21688   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21689 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21690 fi
21691 if test "${acl_cv_path_LD+set}" = set; then
21692   echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694   if test -z "$LD"; then
21695   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21696   for ac_dir in $PATH; do
21697     test -z "$ac_dir" && ac_dir=.
21698     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21699       acl_cv_path_LD="$ac_dir/$ac_prog"
21700       # Check to see if the program is GNU ld.  I'd rather use --version,
21701       # but apparently some GNU ld's only accept -v.
21702       # Break only if it was the GNU/non-GNU ld that we prefer.
21703       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21704         test "$with_gnu_ld" != no && break
21705       else
21706         test "$with_gnu_ld" != yes && break
21707       fi
21708     fi
21709   done
21710   IFS="$ac_save_ifs"
21711 else
21712   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21713 fi
21714 fi
21715
21716 LD="$acl_cv_path_LD"
21717 if test -n "$LD"; then
21718   echo "$as_me:$LINENO: result: $LD" >&5
21719 echo "${ECHO_T}$LD" >&6
21720 else
21721   echo "$as_me:$LINENO: result: no" >&5
21722 echo "${ECHO_T}no" >&6
21723 fi
21724 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21725 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21726    { (exit 1); exit 1; }; }
21727 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21728 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21729 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21730   echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21733 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21734   acl_cv_prog_gnu_ld=yes
21735 else
21736   acl_cv_prog_gnu_ld=no
21737 fi
21738 fi
21739 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21740 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21741 with_gnu_ld=$acl_cv_prog_gnu_ld
21742
21743
21744
21745                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21746 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21747 if test "${acl_cv_rpath+set}" = set; then
21748   echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750
21751     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21752     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21753     . ./conftest.sh
21754     rm -f ./conftest.sh
21755     acl_cv_rpath=done
21756
21757 fi
21758 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21759 echo "${ECHO_T}$acl_cv_rpath" >&6
21760   wl="$acl_cv_wl"
21761   libext="$acl_cv_libext"
21762   shlibext="$acl_cv_shlibext"
21763   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21764   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21765   hardcode_direct="$acl_cv_hardcode_direct"
21766   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21767     # Check whether --enable-rpath or --disable-rpath was given.
21768 if test "${enable_rpath+set}" = set; then
21769   enableval="$enable_rpath"
21770   :
21771 else
21772   enable_rpath=yes
21773 fi;
21774
21775
21776
21777
21778
21779
21780
21781     use_additional=yes
21782
21783   acl_save_prefix="$prefix"
21784   prefix="$acl_final_prefix"
21785   acl_save_exec_prefix="$exec_prefix"
21786   exec_prefix="$acl_final_exec_prefix"
21787
21788     eval additional_includedir=\"$includedir\"
21789     eval additional_libdir=\"$libdir\"
21790
21791   exec_prefix="$acl_save_exec_prefix"
21792   prefix="$acl_save_prefix"
21793
21794
21795 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21796 if test "${with_libiconv_prefix+set}" = set; then
21797   withval="$with_libiconv_prefix"
21798
21799     if test "X$withval" = "Xno"; then
21800       use_additional=no
21801     else
21802       if test "X$withval" = "X"; then
21803
21804   acl_save_prefix="$prefix"
21805   prefix="$acl_final_prefix"
21806   acl_save_exec_prefix="$exec_prefix"
21807   exec_prefix="$acl_final_exec_prefix"
21808
21809           eval additional_includedir=\"$includedir\"
21810           eval additional_libdir=\"$libdir\"
21811
21812   exec_prefix="$acl_save_exec_prefix"
21813   prefix="$acl_save_prefix"
21814
21815       else
21816         additional_includedir="$withval/include"
21817         additional_libdir="$withval/lib"
21818       fi
21819     fi
21820
21821 fi;
21822       LIBICONV=
21823   LTLIBICONV=
21824   INCICONV=
21825   rpathdirs=
21826   ltrpathdirs=
21827   names_already_handled=
21828   names_next_round='iconv '
21829   while test -n "$names_next_round"; do
21830     names_this_round="$names_next_round"
21831     names_next_round=
21832     for name in $names_this_round; do
21833       already_handled=
21834       for n in $names_already_handled; do
21835         if test "$n" = "$name"; then
21836           already_handled=yes
21837           break
21838         fi
21839       done
21840       if test -z "$already_handled"; then
21841         names_already_handled="$names_already_handled $name"
21842                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21843         eval value=\"\$HAVE_LIB$uppername\"
21844         if test -n "$value"; then
21845           if test "$value" = yes; then
21846             eval value=\"\$LIB$uppername\"
21847             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21848             eval value=\"\$LTLIB$uppername\"
21849             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21850           else
21851                                     :
21852           fi
21853         else
21854                               found_dir=
21855           found_la=
21856           found_so=
21857           found_a=
21858           if test $use_additional = yes; then
21859             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21860               found_dir="$additional_libdir"
21861               found_so="$additional_libdir/lib$name.$shlibext"
21862               if test -f "$additional_libdir/lib$name.la"; then
21863                 found_la="$additional_libdir/lib$name.la"
21864               fi
21865             else
21866               if test -f "$additional_libdir/lib$name.$libext"; then
21867                 found_dir="$additional_libdir"
21868                 found_a="$additional_libdir/lib$name.$libext"
21869                 if test -f "$additional_libdir/lib$name.la"; then
21870                   found_la="$additional_libdir/lib$name.la"
21871                 fi
21872               fi
21873             fi
21874           fi
21875           if test "X$found_dir" = "X"; then
21876             for x in $LDFLAGS $LTLIBICONV; do
21877
21878   acl_save_prefix="$prefix"
21879   prefix="$acl_final_prefix"
21880   acl_save_exec_prefix="$exec_prefix"
21881   exec_prefix="$acl_final_exec_prefix"
21882   eval x=\"$x\"
21883   exec_prefix="$acl_save_exec_prefix"
21884   prefix="$acl_save_prefix"
21885
21886               case "$x" in
21887                 -L*)
21888                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21889                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21890                     found_dir="$dir"
21891                     found_so="$dir/lib$name.$shlibext"
21892                     if test -f "$dir/lib$name.la"; then
21893                       found_la="$dir/lib$name.la"
21894                     fi
21895                   else
21896                     if test -f "$dir/lib$name.$libext"; then
21897                       found_dir="$dir"
21898                       found_a="$dir/lib$name.$libext"
21899                       if test -f "$dir/lib$name.la"; then
21900                         found_la="$dir/lib$name.la"
21901                       fi
21902                     fi
21903                   fi
21904                   ;;
21905               esac
21906               if test "X$found_dir" != "X"; then
21907                 break
21908               fi
21909             done
21910           fi
21911           if test "X$found_dir" != "X"; then
21912                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21913             if test "X$found_so" != "X"; then
21914                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21915                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21916               else
21917                                                                                 haveit=
21918                 for x in $ltrpathdirs; do
21919                   if test "X$x" = "X$found_dir"; then
21920                     haveit=yes
21921                     break
21922                   fi
21923                 done
21924                 if test -z "$haveit"; then
21925                   ltrpathdirs="$ltrpathdirs $found_dir"
21926                 fi
21927                                 if test "$hardcode_direct" = yes; then
21928                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21929                 else
21930                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21931                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21932                                                             haveit=
21933                     for x in $rpathdirs; do
21934                       if test "X$x" = "X$found_dir"; then
21935                         haveit=yes
21936                         break
21937                       fi
21938                     done
21939                     if test -z "$haveit"; then
21940                       rpathdirs="$rpathdirs $found_dir"
21941                     fi
21942                   else
21943                                                                                 haveit=
21944                     for x in $LDFLAGS $LIBICONV; do
21945
21946   acl_save_prefix="$prefix"
21947   prefix="$acl_final_prefix"
21948   acl_save_exec_prefix="$exec_prefix"
21949   exec_prefix="$acl_final_exec_prefix"
21950   eval x=\"$x\"
21951   exec_prefix="$acl_save_exec_prefix"
21952   prefix="$acl_save_prefix"
21953
21954                       if test "X$x" = "X-L$found_dir"; then
21955                         haveit=yes
21956                         break
21957                       fi
21958                     done
21959                     if test -z "$haveit"; then
21960                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21961                     fi
21962                     if test "$hardcode_minus_L" != no; then
21963                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21964                     else
21965                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21966                     fi
21967                   fi
21968                 fi
21969               fi
21970             else
21971               if test "X$found_a" != "X"; then
21972                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21973               else
21974                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21975               fi
21976             fi
21977                         additional_includedir=
21978             case "$found_dir" in
21979               */lib | */lib/)
21980                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21981                 additional_includedir="$basedir/include"
21982                 ;;
21983             esac
21984             if test "X$additional_includedir" != "X"; then
21985                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21986                 haveit=
21987                 if test "X$additional_includedir" = "X/usr/local/include"; then
21988                   if test -n "$GCC"; then
21989                     case $host_os in
21990                       linux*) haveit=yes;;
21991                     esac
21992                   fi
21993                 fi
21994                 if test -z "$haveit"; then
21995                   for x in $CPPFLAGS $INCICONV; do
21996
21997   acl_save_prefix="$prefix"
21998   prefix="$acl_final_prefix"
21999   acl_save_exec_prefix="$exec_prefix"
22000   exec_prefix="$acl_final_exec_prefix"
22001   eval x=\"$x\"
22002   exec_prefix="$acl_save_exec_prefix"
22003   prefix="$acl_save_prefix"
22004
22005                     if test "X$x" = "X-I$additional_includedir"; then
22006                       haveit=yes
22007                       break
22008                     fi
22009                   done
22010                   if test -z "$haveit"; then
22011                     if test -d "$additional_includedir"; then
22012                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22013                     fi
22014                   fi
22015                 fi
22016               fi
22017             fi
22018                         if test -n "$found_la"; then
22019                                                         save_libdir="$libdir"
22020               case "$found_la" in
22021                 */* | *\\*) . "$found_la" ;;
22022                 *) . "./$found_la" ;;
22023               esac
22024               libdir="$save_libdir"
22025                             for dep in $dependency_libs; do
22026                 case "$dep" in
22027                   -L*)
22028                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22029                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22030                       haveit=
22031                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22032                         if test -n "$GCC"; then
22033                           case $host_os in
22034                             linux*) haveit=yes;;
22035                           esac
22036                         fi
22037                       fi
22038                       if test -z "$haveit"; then
22039                         haveit=
22040                         for x in $LDFLAGS $LIBICONV; do
22041
22042   acl_save_prefix="$prefix"
22043   prefix="$acl_final_prefix"
22044   acl_save_exec_prefix="$exec_prefix"
22045   exec_prefix="$acl_final_exec_prefix"
22046   eval x=\"$x\"
22047   exec_prefix="$acl_save_exec_prefix"
22048   prefix="$acl_save_prefix"
22049
22050                           if test "X$x" = "X-L$additional_libdir"; then
22051                             haveit=yes
22052                             break
22053                           fi
22054                         done
22055                         if test -z "$haveit"; then
22056                           if test -d "$additional_libdir"; then
22057                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22058                           fi
22059                         fi
22060                         haveit=
22061                         for x in $LDFLAGS $LTLIBICONV; do
22062
22063   acl_save_prefix="$prefix"
22064   prefix="$acl_final_prefix"
22065   acl_save_exec_prefix="$exec_prefix"
22066   exec_prefix="$acl_final_exec_prefix"
22067   eval x=\"$x\"
22068   exec_prefix="$acl_save_exec_prefix"
22069   prefix="$acl_save_prefix"
22070
22071                           if test "X$x" = "X-L$additional_libdir"; then
22072                             haveit=yes
22073                             break
22074                           fi
22075                         done
22076                         if test -z "$haveit"; then
22077                           if test -d "$additional_libdir"; then
22078                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22079                           fi
22080                         fi
22081                       fi
22082                     fi
22083                     ;;
22084                   -R*)
22085                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22086                     if test "$enable_rpath" != no; then
22087                                                                   haveit=
22088                       for x in $rpathdirs; do
22089                         if test "X$x" = "X$dir"; then
22090                           haveit=yes
22091                           break
22092                         fi
22093                       done
22094                       if test -z "$haveit"; then
22095                         rpathdirs="$rpathdirs $dir"
22096                       fi
22097                                                                   haveit=
22098                       for x in $ltrpathdirs; do
22099                         if test "X$x" = "X$dir"; then
22100                           haveit=yes
22101                           break
22102                         fi
22103                       done
22104                       if test -z "$haveit"; then
22105                         ltrpathdirs="$ltrpathdirs $dir"
22106                       fi
22107                     fi
22108                     ;;
22109                   -l*)
22110                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22111                     ;;
22112                   *.la)
22113                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22114                     ;;
22115                   *)
22116                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22117                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22118                     ;;
22119                 esac
22120               done
22121             fi
22122           else
22123                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22124             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22125           fi
22126         fi
22127       fi
22128     done
22129   done
22130   if test "X$rpathdirs" != "X"; then
22131     if test -n "$hardcode_libdir_separator"; then
22132                         alldirs=
22133       for found_dir in $rpathdirs; do
22134         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22135       done
22136             acl_save_libdir="$libdir"
22137       libdir="$alldirs"
22138       eval flag=\"$hardcode_libdir_flag_spec\"
22139       libdir="$acl_save_libdir"
22140       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22141     else
22142             for found_dir in $rpathdirs; do
22143         acl_save_libdir="$libdir"
22144         libdir="$found_dir"
22145         eval flag=\"$hardcode_libdir_flag_spec\"
22146         libdir="$acl_save_libdir"
22147         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22148       done
22149     fi
22150   fi
22151   if test "X$ltrpathdirs" != "X"; then
22152             for found_dir in $ltrpathdirs; do
22153       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22154     done
22155   fi
22156
22157
22158
22159
22160
22161
22162
22163           am_save_CPPFLAGS="$CPPFLAGS"
22164
22165   for element in $INCICONV; do
22166     haveit=
22167     for x in $CPPFLAGS; do
22168
22169   acl_save_prefix="$prefix"
22170   prefix="$acl_final_prefix"
22171   acl_save_exec_prefix="$exec_prefix"
22172   exec_prefix="$acl_final_exec_prefix"
22173   eval x=\"$x\"
22174   exec_prefix="$acl_save_exec_prefix"
22175   prefix="$acl_save_prefix"
22176
22177       if test "X$x" = "X$element"; then
22178         haveit=yes
22179         break
22180       fi
22181     done
22182     if test -z "$haveit"; then
22183       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22184     fi
22185   done
22186
22187
22188   echo "$as_me:$LINENO: checking for iconv" >&5
22189 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22190 if test "${am_cv_func_iconv+set}" = set; then
22191   echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193
22194     am_cv_func_iconv="no, consider installing GNU libiconv"
22195     am_cv_lib_iconv=no
22196     if test x$gcc_no_link = xyes; then
22197   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22199    { (exit 1); exit 1; }; }
22200 fi
22201 cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h.  */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h.  */
22207 #include <stdlib.h>
22208 #include <iconv.h>
22209 int
22210 main ()
22211 {
22212 iconv_t cd = iconv_open("","");
22213        iconv(cd,NULL,NULL,NULL,NULL);
22214        iconv_close(cd);
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22221   (eval $ac_link) 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } &&
22228          { ac_try='test -z "$ac_c_werror_flag"
22229                          || test ! -s conftest.err'
22230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231   (eval $ac_try) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); }; } &&
22235          { ac_try='test -s conftest$ac_exeext'
22236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237   (eval $ac_try) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); }; }; then
22241   am_cv_func_iconv=yes
22242 else
22243   echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 fi
22247 rm -f conftest.err conftest.$ac_objext \
22248       conftest$ac_exeext conftest.$ac_ext
22249     if test "$am_cv_func_iconv" != yes; then
22250       am_save_LIBS="$LIBS"
22251       LIBS="$LIBS $LIBICONV"
22252       if test x$gcc_no_link = xyes; then
22253   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22255    { (exit 1); exit 1; }; }
22256 fi
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h.  */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h.  */
22263 #include <stdlib.h>
22264 #include <iconv.h>
22265 int
22266 main ()
22267 {
22268 iconv_t cd = iconv_open("","");
22269          iconv(cd,NULL,NULL,NULL,NULL);
22270          iconv_close(cd);
22271   ;
22272   return 0;
22273 }
22274 _ACEOF
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22277   (eval $ac_link) 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } &&
22284          { ac_try='test -z "$ac_c_werror_flag"
22285                          || test ! -s conftest.err'
22286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287   (eval $ac_try) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); }; } &&
22291          { ac_try='test -s conftest$ac_exeext'
22292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293   (eval $ac_try) 2>&5
22294   ac_status=$?
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); }; }; then
22297   am_cv_lib_iconv=yes
22298         am_cv_func_iconv=yes
22299 else
22300   echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303 fi
22304 rm -f conftest.err conftest.$ac_objext \
22305       conftest$ac_exeext conftest.$ac_ext
22306       LIBS="$am_save_LIBS"
22307     fi
22308
22309 fi
22310 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22311 echo "${ECHO_T}$am_cv_func_iconv" >&6
22312   if test "$am_cv_func_iconv" = yes; then
22313
22314 cat >>confdefs.h <<\_ACEOF
22315 #define HAVE_ICONV 1
22316 _ACEOF
22317
22318   fi
22319   if test "$am_cv_lib_iconv" = yes; then
22320     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22321 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22322     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22323 echo "${ECHO_T}$LIBICONV" >&6
22324   else
22325             CPPFLAGS="$am_save_CPPFLAGS"
22326     LIBICONV=
22327     LTLIBICONV=
22328   fi
22329
22330
22331
22332   if test "$am_cv_func_iconv" = yes; then
22333     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22334 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22335     if test "${am_cv_proto_iconv+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338
22339       cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345
22346 #include <stdlib.h>
22347 #include <iconv.h>
22348 extern
22349 #ifdef __cplusplus
22350 "C"
22351 #endif
22352 #if defined(__STDC__) || defined(__cplusplus)
22353 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22354 #else
22355 size_t iconv();
22356 #endif
22357
22358 int
22359 main ()
22360 {
22361
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22368   (eval $ac_compile) 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } &&
22375          { ac_try='test -z "$ac_c_werror_flag"
22376                          || test ! -s conftest.err'
22377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; } &&
22382          { ac_try='test -s conftest.$ac_objext'
22383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384   (eval $ac_try) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   am_cv_proto_iconv_arg1=""
22389 else
22390   echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393 am_cv_proto_iconv_arg1="const"
22394 fi
22395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22396       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);"
22397 fi
22398
22399     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22400     echo "$as_me:$LINENO: result: ${ac_t:-
22401          }$am_cv_proto_iconv" >&5
22402 echo "${ECHO_T}${ac_t:-
22403          }$am_cv_proto_iconv" >&6
22404
22405 cat >>confdefs.h <<_ACEOF
22406 #define ICONV_CONST $am_cv_proto_iconv_arg1
22407 _ACEOF
22408
22409   fi
22410
22411
22412   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22413 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22414 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   if test x$gcc_no_link = xyes; then
22418   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22420    { (exit 1); exit 1; }; }
22421 fi
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428 #include <locale.h>
22429 int
22430 main ()
22431 {
22432 return LC_MESSAGES
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439   (eval $ac_link) 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } &&
22446          { ac_try='test -z "$ac_c_werror_flag"
22447                          || test ! -s conftest.err'
22448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449   (eval $ac_try) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; } &&
22453          { ac_try='test -s conftest$ac_exeext'
22454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455   (eval $ac_try) 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459   am_cv_val_LC_MESSAGES=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464 am_cv_val_LC_MESSAGES=no
22465 fi
22466 rm -f conftest.err conftest.$ac_objext \
22467       conftest$ac_exeext conftest.$ac_ext
22468 fi
22469 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22470 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22471   if test $am_cv_val_LC_MESSAGES = yes; then
22472
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_LC_MESSAGES 1
22475 _ACEOF
22476
22477   fi
22478
22479    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22480 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22481 if test "${ac_cv_struct_tm+set}" = set; then
22482   echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484   cat >conftest.$ac_ext <<_ACEOF
22485 /* confdefs.h.  */
22486 _ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h.  */
22490 #include <sys/types.h>
22491 #include <time.h>
22492
22493 int
22494 main ()
22495 {
22496 struct tm *tp; tp->tm_sec;
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22503   (eval $ac_compile) 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } &&
22510          { ac_try='test -z "$ac_c_werror_flag"
22511                          || test ! -s conftest.err'
22512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513   (eval $ac_try) 2>&5
22514   ac_status=$?
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); }; } &&
22517          { ac_try='test -s conftest.$ac_objext'
22518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519   (eval $ac_try) 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523   ac_cv_struct_tm=time.h
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 ac_cv_struct_tm=sys/time.h
22529 fi
22530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22533 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22534 if test $ac_cv_struct_tm = sys/time.h; then
22535
22536 cat >>confdefs.h <<\_ACEOF
22537 #define TM_IN_SYS_TIME 1
22538 _ACEOF
22539
22540 fi
22541
22542 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22543 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22544 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22545   echo $ECHO_N "(cached) $ECHO_C" >&6
22546 else
22547   cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h.  */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h.  */
22553 #include <sys/types.h>
22554 #include <$ac_cv_struct_tm>
22555
22556
22557 int
22558 main ()
22559 {
22560 static struct tm ac_aggr;
22561 if (ac_aggr.tm_zone)
22562 return 0;
22563   ;
22564   return 0;
22565 }
22566 _ACEOF
22567 rm -f conftest.$ac_objext
22568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569   (eval $ac_compile) 2>conftest.er1
22570   ac_status=$?
22571   grep -v '^ *+' conftest.er1 >conftest.err
22572   rm -f conftest.er1
22573   cat conftest.err >&5
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } &&
22576          { ac_try='test -z "$ac_c_werror_flag"
22577                          || test ! -s conftest.err'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; } &&
22583          { ac_try='test -s conftest.$ac_objext'
22584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585   (eval $ac_try) 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; }; then
22589   ac_cv_member_struct_tm_tm_zone=yes
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600 #include <sys/types.h>
22601 #include <$ac_cv_struct_tm>
22602
22603
22604 int
22605 main ()
22606 {
22607 static struct tm ac_aggr;
22608 if (sizeof ac_aggr.tm_zone)
22609 return 0;
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext
22615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616   (eval $ac_compile) 2>conftest.er1
22617   ac_status=$?
22618   grep -v '^ *+' conftest.er1 >conftest.err
22619   rm -f conftest.er1
22620   cat conftest.err >&5
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } &&
22623          { ac_try='test -z "$ac_c_werror_flag"
22624                          || test ! -s conftest.err'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; } &&
22630          { ac_try='test -s conftest.$ac_objext'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; }; then
22636   ac_cv_member_struct_tm_tm_zone=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 ac_cv_member_struct_tm_tm_zone=no
22642 fi
22643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22644 fi
22645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 fi
22647 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22648 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22649 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22650
22651 cat >>confdefs.h <<_ACEOF
22652 #define HAVE_STRUCT_TM_TM_ZONE 1
22653 _ACEOF
22654
22655
22656 fi
22657
22658 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22659
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_TM_ZONE 1
22662 _ACEOF
22663
22664 else
22665   echo "$as_me:$LINENO: checking for tzname" >&5
22666 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22667 if test "${ac_cv_var_tzname+set}" = set; then
22668   echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670   if test x$gcc_no_link = xyes; then
22671   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22673    { (exit 1); exit 1; }; }
22674 fi
22675 cat >conftest.$ac_ext <<_ACEOF
22676 /* confdefs.h.  */
22677 _ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h.  */
22681 #include <time.h>
22682 #ifndef tzname /* For SGI.  */
22683 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22684 #endif
22685
22686 int
22687 main ()
22688 {
22689 atoi(*tzname);
22690   ;
22691   return 0;
22692 }
22693 _ACEOF
22694 rm -f conftest.$ac_objext conftest$ac_exeext
22695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22696   (eval $ac_link) 2>conftest.er1
22697   ac_status=$?
22698   grep -v '^ *+' conftest.er1 >conftest.err
22699   rm -f conftest.er1
22700   cat conftest.err >&5
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } &&
22703          { ac_try='test -z "$ac_c_werror_flag"
22704                          || test ! -s conftest.err'
22705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706   (eval $ac_try) 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); }; } &&
22710          { ac_try='test -s conftest$ac_exeext'
22711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712   (eval $ac_try) 2>&5
22713   ac_status=$?
22714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715   (exit $ac_status); }; }; then
22716   ac_cv_var_tzname=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721 ac_cv_var_tzname=no
22722 fi
22723 rm -f conftest.err conftest.$ac_objext \
22724       conftest$ac_exeext conftest.$ac_ext
22725 fi
22726 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22727 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22728   if test $ac_cv_var_tzname = yes; then
22729
22730 cat >>confdefs.h <<\_ACEOF
22731 #define HAVE_TZNAME 1
22732 _ACEOF
22733
22734   fi
22735 fi
22736
22737
22738
22739 for ac_func in gethostbyname_r
22740 do
22741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22742 echo "$as_me:$LINENO: checking for $ac_func" >&5
22743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22744 if eval "test \"\${$as_ac_var+set}\" = set"; then
22745   echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747   if test x$gcc_no_link = xyes; then
22748   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22750    { (exit 1); exit 1; }; }
22751 fi
22752 cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22760 #define $ac_func innocuous_$ac_func
22761
22762 /* System header to define __stub macros and hopefully few prototypes,
22763     which can conflict with char $ac_func (); below.
22764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22765     <limits.h> exists even on freestanding compilers.  */
22766
22767 #ifdef __STDC__
22768 # include <limits.h>
22769 #else
22770 # include <assert.h>
22771 #endif
22772
22773 #undef $ac_func
22774
22775 /* Override any gcc2 internal prototype to avoid an error.  */
22776 #ifdef __cplusplus
22777 extern "C"
22778 {
22779 #endif
22780 /* We use char because int might match the return type of a gcc2
22781    builtin and then its argument prototype would still apply.  */
22782 char $ac_func ();
22783 /* The GNU C library defines this for functions which it implements
22784     to always fail with ENOSYS.  Some functions are actually named
22785     something starting with __ and the normal name is an alias.  */
22786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22787 choke me
22788 #else
22789 char (*f) () = $ac_func;
22790 #endif
22791 #ifdef __cplusplus
22792 }
22793 #endif
22794
22795 int
22796 main ()
22797 {
22798 return f != $ac_func;
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22805   (eval $ac_link) 2>conftest.er1
22806   ac_status=$?
22807   grep -v '^ *+' conftest.er1 >conftest.err
22808   rm -f conftest.er1
22809   cat conftest.err >&5
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); } &&
22812          { ac_try='test -z "$ac_c_werror_flag"
22813                          || test ! -s conftest.err'
22814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); }; } &&
22819          { ac_try='test -s conftest$ac_exeext'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; }; then
22825   eval "$as_ac_var=yes"
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830 eval "$as_ac_var=no"
22831 fi
22832 rm -f conftest.err conftest.$ac_objext \
22833       conftest$ac_exeext conftest.$ac_ext
22834 fi
22835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22837 if test `eval echo '${'$as_ac_var'}'` = yes; then
22838   cat >>confdefs.h <<_ACEOF
22839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22840 _ACEOF
22841
22842
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_GETHOSTBYNAME_R 1
22845 _ACEOF
22846
22847      # There are two different kinds of gethostbyname_r.
22848      # We look for the one that returns `int'.
22849      # Hopefully this check is robust enough.
22850      cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 #include <netdb.h>
22857
22858 _ACEOF
22859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22860   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22861
22862
22863 cat >>confdefs.h <<\_ACEOF
22864 #define GETHOSTBYNAME_R_RETURNS_INT 1
22865 _ACEOF
22866
22867 fi
22868 rm -f conftest*
22869
22870
22871      case " $GCINCS " in
22872      *" -D_REENTRANT "*) ;;
22873      *)
22874                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22875 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22876 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22877   echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879    ac_ext=cc
22880 ac_cpp='$CXXCPP $CPPFLAGS'
22881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22884
22885           cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891 #include <netdb.h>
22892 int
22893 main ()
22894 {
22895 gethostbyname_r("", 0, 0);
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22902   (eval $ac_compile) 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } &&
22909          { ac_try='test -z "$ac_cxx_werror_flag"
22910                          || test ! -s conftest.err'
22911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; } &&
22916          { ac_try='test -s conftest.$ac_objext'
22917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918   (eval $ac_try) 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; }; then
22922   libjava_cv_gethostbyname_r_needs_reentrant=no
22923 else
22924   echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22926
22927                 CPPFLAGS_SAVE="$CPPFLAGS"
22928                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22929                 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 #include <netdb.h>
22936 int
22937 main ()
22938 {
22939 gethostbyname_r("", 0, 0);
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext
22945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22946   (eval $ac_compile) 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } &&
22953          { ac_try='test -z "$ac_cxx_werror_flag"
22954                          || test ! -s conftest.err'
22955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956   (eval $ac_try) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); }; } &&
22960          { ac_try='test -s conftest.$ac_objext'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; }; then
22966   libjava_cv_gethostbyname_r_needs_reentrant=yes
22967 else
22968   echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 libjava_cv_gethostbyname_r_needs_reentrant=fail
22972 fi
22973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22974                 CPPFLAGS="$CPPFLAGS_SAVE"
22975
22976 fi
22977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978           ac_ext=c
22979 ac_cpp='$CPP $CPPFLAGS'
22980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22983
22984
22985 fi
22986 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22987 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22988         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22989
22990 cat >>confdefs.h <<\_ACEOF
22991 #define _REENTRANT 1
22992 _ACEOF
22993
22994         fi
22995      ;;
22996      esac
22997
22998      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22999 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
23000 if test "${libjava_cv_struct_hostent_data+set}" = set; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003         cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h.  */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h.  */
23009
23010 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
23011 # define _REENTRANT 1
23012 #endif
23013 #include <netdb.h>
23014 int
23015 main ()
23016 {
23017 struct hostent_data data;
23018   ;
23019   return 0;
23020 }
23021 _ACEOF
23022 rm -f conftest.$ac_objext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23024   (eval $ac_compile) 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } &&
23031          { ac_try='test -z "$ac_c_werror_flag"
23032                          || test ! -s conftest.err'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; } &&
23038          { ac_try='test -s conftest.$ac_objext'
23039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   libjava_cv_struct_hostent_data=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 libjava_cv_struct_hostent_data=no
23050 fi
23051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
23054 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
23055      if test "x$libjava_cv_struct_hostent_data" = xyes; then
23056
23057 cat >>confdefs.h <<\_ACEOF
23058 #define HAVE_STRUCT_HOSTENT_DATA 1
23059 _ACEOF
23060
23061      fi
23062
23063 fi
23064 done
23065
23066
23067    # FIXME: libjava source code expects to find a prototype for
23068    # gethostbyaddr_r in netdb.h.  The outer check ensures that
23069    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
23070    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
23071    # linkage check is enough, yet C++ code requires proper prototypes.)
23072    cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h.  */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h.  */
23078 #include <netdb.h>
23079
23080 _ACEOF
23081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23082   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
23083
23084
23085 for ac_func in gethostbyaddr_r
23086 do
23087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23088 echo "$as_me:$LINENO: checking for $ac_func" >&5
23089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23090 if eval "test \"\${$as_ac_var+set}\" = set"; then
23091   echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093   if test x$gcc_no_link = xyes; then
23094   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23096    { (exit 1); exit 1; }; }
23097 fi
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h.  */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h.  */
23104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23106 #define $ac_func innocuous_$ac_func
23107
23108 /* System header to define __stub macros and hopefully few prototypes,
23109     which can conflict with char $ac_func (); below.
23110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23111     <limits.h> exists even on freestanding compilers.  */
23112
23113 #ifdef __STDC__
23114 # include <limits.h>
23115 #else
23116 # include <assert.h>
23117 #endif
23118
23119 #undef $ac_func
23120
23121 /* Override any gcc2 internal prototype to avoid an error.  */
23122 #ifdef __cplusplus
23123 extern "C"
23124 {
23125 #endif
23126 /* We use char because int might match the return type of a gcc2
23127    builtin and then its argument prototype would still apply.  */
23128 char $ac_func ();
23129 /* The GNU C library defines this for functions which it implements
23130     to always fail with ENOSYS.  Some functions are actually named
23131     something starting with __ and the normal name is an alias.  */
23132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23133 choke me
23134 #else
23135 char (*f) () = $ac_func;
23136 #endif
23137 #ifdef __cplusplus
23138 }
23139 #endif
23140
23141 int
23142 main ()
23143 {
23144 return f != $ac_func;
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext conftest$ac_exeext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151   (eval $ac_link) 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } &&
23158          { ac_try='test -z "$ac_c_werror_flag"
23159                          || test ! -s conftest.err'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; } &&
23165          { ac_try='test -s conftest$ac_exeext'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; }; then
23171   eval "$as_ac_var=yes"
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176 eval "$as_ac_var=no"
23177 fi
23178 rm -f conftest.err conftest.$ac_objext \
23179       conftest$ac_exeext conftest.$ac_ext
23180 fi
23181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23183 if test `eval echo '${'$as_ac_var'}'` = yes; then
23184   cat >>confdefs.h <<_ACEOF
23185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23186 _ACEOF
23187
23188
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_GETHOSTBYADDR_R 1
23191 _ACEOF
23192
23193      # There are two different kinds of gethostbyaddr_r.
23194      # We look for the one that returns `int'.
23195      # Hopefully this check is robust enough.
23196      cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h.  */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h.  */
23202 #include <netdb.h>
23203
23204 _ACEOF
23205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23206   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23207
23208
23209 cat >>confdefs.h <<\_ACEOF
23210 #define GETHOSTBYADDR_R_RETURNS_INT 1
23211 _ACEOF
23212
23213 fi
23214 rm -f conftest*
23215
23216 fi
23217 done
23218
23219 fi
23220 rm -f conftest*
23221
23222
23223
23224 for ac_func in gethostname
23225 do
23226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 echo "$as_me:$LINENO: checking for $ac_func" >&5
23228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23229 if eval "test \"\${$as_ac_var+set}\" = set"; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   if test x$gcc_no_link = xyes; then
23233   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23235    { (exit 1); exit 1; }; }
23236 fi
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23245 #define $ac_func innocuous_$ac_func
23246
23247 /* System header to define __stub macros and hopefully few prototypes,
23248     which can conflict with char $ac_func (); below.
23249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23250     <limits.h> exists even on freestanding compilers.  */
23251
23252 #ifdef __STDC__
23253 # include <limits.h>
23254 #else
23255 # include <assert.h>
23256 #endif
23257
23258 #undef $ac_func
23259
23260 /* Override any gcc2 internal prototype to avoid an error.  */
23261 #ifdef __cplusplus
23262 extern "C"
23263 {
23264 #endif
23265 /* We use char because int might match the return type of a gcc2
23266    builtin and then its argument prototype would still apply.  */
23267 char $ac_func ();
23268 /* The GNU C library defines this for functions which it implements
23269     to always fail with ENOSYS.  Some functions are actually named
23270     something starting with __ and the normal name is an alias.  */
23271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23272 choke me
23273 #else
23274 char (*f) () = $ac_func;
23275 #endif
23276 #ifdef __cplusplus
23277 }
23278 #endif
23279
23280 int
23281 main ()
23282 {
23283 return f != $ac_func;
23284   ;
23285   return 0;
23286 }
23287 _ACEOF
23288 rm -f conftest.$ac_objext conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290   (eval $ac_link) 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } &&
23297          { ac_try='test -z "$ac_c_werror_flag"
23298                          || test ! -s conftest.err'
23299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300   (eval $ac_try) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); }; } &&
23304          { ac_try='test -s conftest$ac_exeext'
23305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306   (eval $ac_try) 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); }; }; then
23310   eval "$as_ac_var=yes"
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315 eval "$as_ac_var=no"
23316 fi
23317 rm -f conftest.err conftest.$ac_objext \
23318       conftest$ac_exeext conftest.$ac_ext
23319 fi
23320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23322 if test `eval echo '${'$as_ac_var'}'` = yes; then
23323   cat >>confdefs.h <<_ACEOF
23324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325 _ACEOF
23326
23327
23328 cat >>confdefs.h <<\_ACEOF
23329 #define HAVE_GETHOSTNAME 1
23330 _ACEOF
23331
23332      cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h.  */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h.  */
23338 #include <unistd.h>
23339
23340 _ACEOF
23341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23342   $EGREP "gethostname" >/dev/null 2>&1; then
23343
23344
23345 cat >>confdefs.h <<\_ACEOF
23346 #define HAVE_GETHOSTNAME_DECL 1
23347 _ACEOF
23348
23349 fi
23350 rm -f conftest*
23351
23352 fi
23353 done
23354
23355
23356
23357 for ac_func in usleep
23358 do
23359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23360 echo "$as_me:$LINENO: checking for $ac_func" >&5
23361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23362 if eval "test \"\${$as_ac_var+set}\" = set"; then
23363   echo $ECHO_N "(cached) $ECHO_C" >&6
23364 else
23365   if test x$gcc_no_link = xyes; then
23366   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23368    { (exit 1); exit 1; }; }
23369 fi
23370 cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23378 #define $ac_func innocuous_$ac_func
23379
23380 /* System header to define __stub macros and hopefully few prototypes,
23381     which can conflict with char $ac_func (); below.
23382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23383     <limits.h> exists even on freestanding compilers.  */
23384
23385 #ifdef __STDC__
23386 # include <limits.h>
23387 #else
23388 # include <assert.h>
23389 #endif
23390
23391 #undef $ac_func
23392
23393 /* Override any gcc2 internal prototype to avoid an error.  */
23394 #ifdef __cplusplus
23395 extern "C"
23396 {
23397 #endif
23398 /* We use char because int might match the return type of a gcc2
23399    builtin and then its argument prototype would still apply.  */
23400 char $ac_func ();
23401 /* The GNU C library defines this for functions which it implements
23402     to always fail with ENOSYS.  Some functions are actually named
23403     something starting with __ and the normal name is an alias.  */
23404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23405 choke me
23406 #else
23407 char (*f) () = $ac_func;
23408 #endif
23409 #ifdef __cplusplus
23410 }
23411 #endif
23412
23413 int
23414 main ()
23415 {
23416 return f != $ac_func;
23417   ;
23418   return 0;
23419 }
23420 _ACEOF
23421 rm -f conftest.$ac_objext conftest$ac_exeext
23422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23423   (eval $ac_link) 2>conftest.er1
23424   ac_status=$?
23425   grep -v '^ *+' conftest.er1 >conftest.err
23426   rm -f conftest.er1
23427   cat conftest.err >&5
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); } &&
23430          { ac_try='test -z "$ac_c_werror_flag"
23431                          || test ! -s conftest.err'
23432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433   (eval $ac_try) 2>&5
23434   ac_status=$?
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); }; } &&
23437          { ac_try='test -s conftest$ac_exeext'
23438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439   (eval $ac_try) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443   eval "$as_ac_var=yes"
23444 else
23445   echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 eval "$as_ac_var=no"
23449 fi
23450 rm -f conftest.err conftest.$ac_objext \
23451       conftest$ac_exeext conftest.$ac_ext
23452 fi
23453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23455 if test `eval echo '${'$as_ac_var'}'` = yes; then
23456   cat >>confdefs.h <<_ACEOF
23457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23458 _ACEOF
23459
23460      cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 #include <unistd.h>
23467
23468 _ACEOF
23469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23470   $EGREP "usleep" >/dev/null 2>&1; then
23471
23472
23473 cat >>confdefs.h <<\_ACEOF
23474 #define HAVE_USLEEP_DECL 1
23475 _ACEOF
23476
23477 fi
23478 rm -f conftest*
23479
23480 fi
23481 done
23482
23483
23484    # Look for these functions in the thread library, but only bother
23485    # if using POSIX threads.
23486    if test "$THREADS" = posix; then
23487       save_LIBS="$LIBS"
23488       LIBS="$LIBS $THREADLIBS"
23489
23490       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23491       # Solaris 7 the name librt is preferred.
23492
23493 for ac_func in sched_yield
23494 do
23495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23496 echo "$as_me:$LINENO: checking for $ac_func" >&5
23497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23498 if eval "test \"\${$as_ac_var+set}\" = set"; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   if test x$gcc_no_link = xyes; then
23502   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23504    { (exit 1); exit 1; }; }
23505 fi
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23514 #define $ac_func innocuous_$ac_func
23515
23516 /* System header to define __stub macros and hopefully few prototypes,
23517     which can conflict with char $ac_func (); below.
23518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23519     <limits.h> exists even on freestanding compilers.  */
23520
23521 #ifdef __STDC__
23522 # include <limits.h>
23523 #else
23524 # include <assert.h>
23525 #endif
23526
23527 #undef $ac_func
23528
23529 /* Override any gcc2 internal prototype to avoid an error.  */
23530 #ifdef __cplusplus
23531 extern "C"
23532 {
23533 #endif
23534 /* We use char because int might match the return type of a gcc2
23535    builtin and then its argument prototype would still apply.  */
23536 char $ac_func ();
23537 /* The GNU C library defines this for functions which it implements
23538     to always fail with ENOSYS.  Some functions are actually named
23539     something starting with __ and the normal name is an alias.  */
23540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23541 choke me
23542 #else
23543 char (*f) () = $ac_func;
23544 #endif
23545 #ifdef __cplusplus
23546 }
23547 #endif
23548
23549 int
23550 main ()
23551 {
23552 return f != $ac_func;
23553   ;
23554   return 0;
23555 }
23556 _ACEOF
23557 rm -f conftest.$ac_objext conftest$ac_exeext
23558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23559   (eval $ac_link) 2>conftest.er1
23560   ac_status=$?
23561   grep -v '^ *+' conftest.er1 >conftest.err
23562   rm -f conftest.er1
23563   cat conftest.err >&5
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); } &&
23566          { ac_try='test -z "$ac_c_werror_flag"
23567                          || test ! -s conftest.err'
23568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); }; } &&
23573          { ac_try='test -s conftest$ac_exeext'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; }; then
23579   eval "$as_ac_var=yes"
23580 else
23581   echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 eval "$as_ac_var=no"
23585 fi
23586 rm -f conftest.err conftest.$ac_objext \
23587       conftest$ac_exeext conftest.$ac_ext
23588 fi
23589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591 if test `eval echo '${'$as_ac_var'}'` = yes; then
23592   cat >>confdefs.h <<_ACEOF
23593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594 _ACEOF
23595
23596 else
23597
23598         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23599 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23600 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lrt  $LIBS"
23605 if test x$gcc_no_link = xyes; then
23606   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23608    { (exit 1); exit 1; }; }
23609 fi
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617 /* Override any gcc2 internal prototype to avoid an error.  */
23618 #ifdef __cplusplus
23619 extern "C"
23620 #endif
23621 /* We use char because int might match the return type of a gcc2
23622    builtin and then its argument prototype would still apply.  */
23623 char sched_yield ();
23624 int
23625 main ()
23626 {
23627 sched_yield ();
23628   ;
23629   return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext conftest$ac_exeext
23633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23634   (eval $ac_link) 2>conftest.er1
23635   ac_status=$?
23636   grep -v '^ *+' conftest.er1 >conftest.err
23637   rm -f conftest.er1
23638   cat conftest.err >&5
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); } &&
23641          { ac_try='test -z "$ac_c_werror_flag"
23642                          || test ! -s conftest.err'
23643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644   (eval $ac_try) 2>&5
23645   ac_status=$?
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); }; } &&
23648          { ac_try='test -s conftest$ac_exeext'
23649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650   (eval $ac_try) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; }; then
23654   ac_cv_lib_rt_sched_yield=yes
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 ac_cv_lib_rt_sched_yield=no
23660 fi
23661 rm -f conftest.err conftest.$ac_objext \
23662       conftest$ac_exeext conftest.$ac_ext
23663 LIBS=$ac_check_lib_save_LIBS
23664 fi
23665 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23666 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23667 if test $ac_cv_lib_rt_sched_yield = yes; then
23668
23669           cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_SCHED_YIELD 1
23671 _ACEOF
23672
23673           THREADLIBS="$THREADLIBS -lrt"
23674           THREADSPEC="$THREADSPEC -lrt"
23675 else
23676
23677           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23678 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23679 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23680   echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23682   ac_check_lib_save_LIBS=$LIBS
23683 LIBS="-lposix4  $LIBS"
23684 if test x$gcc_no_link = xyes; then
23685   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23686 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23687    { (exit 1); exit 1; }; }
23688 fi
23689 cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h.  */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h.  */
23695
23696 /* Override any gcc2 internal prototype to avoid an error.  */
23697 #ifdef __cplusplus
23698 extern "C"
23699 #endif
23700 /* We use char because int might match the return type of a gcc2
23701    builtin and then its argument prototype would still apply.  */
23702 char sched_yield ();
23703 int
23704 main ()
23705 {
23706 sched_yield ();
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23713   (eval $ac_link) 2>conftest.er1
23714   ac_status=$?
23715   grep -v '^ *+' conftest.er1 >conftest.err
23716   rm -f conftest.er1
23717   cat conftest.err >&5
23718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); } &&
23720          { ac_try='test -z "$ac_c_werror_flag"
23721                          || test ! -s conftest.err'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; } &&
23727          { ac_try='test -s conftest$ac_exeext'
23728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729   (eval $ac_try) 2>&5
23730   ac_status=$?
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); }; }; then
23733   ac_cv_lib_posix4_sched_yield=yes
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738 ac_cv_lib_posix4_sched_yield=no
23739 fi
23740 rm -f conftest.err conftest.$ac_objext \
23741       conftest$ac_exeext conftest.$ac_ext
23742 LIBS=$ac_check_lib_save_LIBS
23743 fi
23744 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23745 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23746 if test $ac_cv_lib_posix4_sched_yield = yes; then
23747
23748             cat >>confdefs.h <<\_ACEOF
23749 #define HAVE_SCHED_YIELD 1
23750 _ACEOF
23751
23752             THREADLIBS="$THREADLIBS -lposix4"
23753             THREADSPEC="$THREADSPEC -lposix4"
23754 fi
23755
23756 fi
23757
23758 fi
23759 done
23760
23761
23762       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23763 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23764 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767   ac_check_lib_save_LIBS=$LIBS
23768 LIBS="-lrt  $LIBS"
23769 if test x$gcc_no_link = xyes; then
23770   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23772    { (exit 1); exit 1; }; }
23773 fi
23774 cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 /* Override any gcc2 internal prototype to avoid an error.  */
23782 #ifdef __cplusplus
23783 extern "C"
23784 #endif
23785 /* We use char because int might match the return type of a gcc2
23786    builtin and then its argument prototype would still apply.  */
23787 char clock_gettime ();
23788 int
23789 main ()
23790 {
23791 clock_gettime ();
23792   ;
23793   return 0;
23794 }
23795 _ACEOF
23796 rm -f conftest.$ac_objext conftest$ac_exeext
23797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23798   (eval $ac_link) 2>conftest.er1
23799   ac_status=$?
23800   grep -v '^ *+' conftest.er1 >conftest.err
23801   rm -f conftest.er1
23802   cat conftest.err >&5
23803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804   (exit $ac_status); } &&
23805          { ac_try='test -z "$ac_c_werror_flag"
23806                          || test ! -s conftest.err'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; } &&
23812          { ac_try='test -s conftest$ac_exeext'
23813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23814   (eval $ac_try) 2>&5
23815   ac_status=$?
23816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817   (exit $ac_status); }; }; then
23818   ac_cv_lib_rt_clock_gettime=yes
23819 else
23820   echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23822
23823 ac_cv_lib_rt_clock_gettime=no
23824 fi
23825 rm -f conftest.err conftest.$ac_objext \
23826       conftest$ac_exeext conftest.$ac_ext
23827 LIBS=$ac_check_lib_save_LIBS
23828 fi
23829 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23830 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23831 if test $ac_cv_lib_rt_clock_gettime = yes; then
23832
23833
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_CLOCK_GETTIME 1
23836 _ACEOF
23837
23838          case "$THREADSPEC" in
23839            *-lrt*) ;;
23840            *)
23841              THREADSPEC="$THREADSPEC -lrt"
23842              THREADLIBS="$THREADLIBS -lrt"
23843              ;;
23844          esac
23845 fi
23846
23847
23848       LIBS="$save_LIBS"
23849
23850       # We can save a little space at runtime if the mutex has m_count
23851       # or __m_count.  This is a nice hack for Linux.
23852       cat >conftest.$ac_ext <<_ACEOF
23853 /* confdefs.h.  */
23854 _ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h.  */
23858 #include <pthread.h>
23859 int
23860 main ()
23861 {
23862
23863           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23864
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 rm -f conftest.$ac_objext
23870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23871   (eval $ac_compile) 2>conftest.er1
23872   ac_status=$?
23873   grep -v '^ *+' conftest.er1 >conftest.err
23874   rm -f conftest.er1
23875   cat conftest.err >&5
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } &&
23878          { ac_try='test -z "$ac_c_werror_flag"
23879                          || test ! -s conftest.err'
23880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881   (eval $ac_try) 2>&5
23882   ac_status=$?
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); }; } &&
23885          { ac_try='test -s conftest.$ac_objext'
23886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887   (eval $ac_try) 2>&5
23888   ac_status=$?
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); }; }; then
23891
23892 cat >>confdefs.h <<\_ACEOF
23893 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23894 _ACEOF
23895
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900
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 fi
23950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23951 fi
23952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23953    fi
23954
23955    # We require a way to get the time.
23956    time_found=no
23957
23958
23959
23960 for ac_func in gettimeofday time ftime
23961 do
23962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23963 echo "$as_me:$LINENO: checking for $ac_func" >&5
23964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23965 if eval "test \"\${$as_ac_var+set}\" = set"; then
23966   echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968   if test x$gcc_no_link = xyes; then
23969   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23971    { (exit 1); exit 1; }; }
23972 fi
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23981 #define $ac_func innocuous_$ac_func
23982
23983 /* System header to define __stub macros and hopefully few prototypes,
23984     which can conflict with char $ac_func (); below.
23985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23986     <limits.h> exists even on freestanding compilers.  */
23987
23988 #ifdef __STDC__
23989 # include <limits.h>
23990 #else
23991 # include <assert.h>
23992 #endif
23993
23994 #undef $ac_func
23995
23996 /* Override any gcc2 internal prototype to avoid an error.  */
23997 #ifdef __cplusplus
23998 extern "C"
23999 {
24000 #endif
24001 /* We use char because int might match the return type of a gcc2
24002    builtin and then its argument prototype would still apply.  */
24003 char $ac_func ();
24004 /* The GNU C library defines this for functions which it implements
24005     to always fail with ENOSYS.  Some functions are actually named
24006     something starting with __ and the normal name is an alias.  */
24007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24008 choke me
24009 #else
24010 char (*f) () = $ac_func;
24011 #endif
24012 #ifdef __cplusplus
24013 }
24014 #endif
24015
24016 int
24017 main ()
24018 {
24019 return f != $ac_func;
24020   ;
24021   return 0;
24022 }
24023 _ACEOF
24024 rm -f conftest.$ac_objext conftest$ac_exeext
24025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24026   (eval $ac_link) 2>conftest.er1
24027   ac_status=$?
24028   grep -v '^ *+' conftest.er1 >conftest.err
24029   rm -f conftest.er1
24030   cat conftest.err >&5
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } &&
24033          { ac_try='test -z "$ac_c_werror_flag"
24034                          || test ! -s conftest.err'
24035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036   (eval $ac_try) 2>&5
24037   ac_status=$?
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); }; } &&
24040          { ac_try='test -s conftest$ac_exeext'
24041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24042   (eval $ac_try) 2>&5
24043   ac_status=$?
24044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045   (exit $ac_status); }; }; then
24046   eval "$as_ac_var=yes"
24047 else
24048   echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24050
24051 eval "$as_ac_var=no"
24052 fi
24053 rm -f conftest.err conftest.$ac_objext \
24054       conftest$ac_exeext conftest.$ac_ext
24055 fi
24056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24058 if test `eval echo '${'$as_ac_var'}'` = yes; then
24059   cat >>confdefs.h <<_ACEOF
24060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24061 _ACEOF
24062  time_found=yes
24063 fi
24064 done
24065
24066    if test "$time_found" = no; then
24067       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
24068 echo "$as_me: error: no function found to get the time" >&2;}
24069    { (exit 1); exit 1; }; }
24070    fi
24071
24072
24073 for ac_func in memmove
24074 do
24075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24076 echo "$as_me:$LINENO: checking for $ac_func" >&5
24077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24078 if eval "test \"\${$as_ac_var+set}\" = set"; then
24079   echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081   if test x$gcc_no_link = xyes; then
24082   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24084    { (exit 1); exit 1; }; }
24085 fi
24086 cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24094 #define $ac_func innocuous_$ac_func
24095
24096 /* System header to define __stub macros and hopefully few prototypes,
24097     which can conflict with char $ac_func (); below.
24098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24099     <limits.h> exists even on freestanding compilers.  */
24100
24101 #ifdef __STDC__
24102 # include <limits.h>
24103 #else
24104 # include <assert.h>
24105 #endif
24106
24107 #undef $ac_func
24108
24109 /* Override any gcc2 internal prototype to avoid an error.  */
24110 #ifdef __cplusplus
24111 extern "C"
24112 {
24113 #endif
24114 /* We use char because int might match the return type of a gcc2
24115    builtin and then its argument prototype would still apply.  */
24116 char $ac_func ();
24117 /* The GNU C library defines this for functions which it implements
24118     to always fail with ENOSYS.  Some functions are actually named
24119     something starting with __ and the normal name is an alias.  */
24120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24121 choke me
24122 #else
24123 char (*f) () = $ac_func;
24124 #endif
24125 #ifdef __cplusplus
24126 }
24127 #endif
24128
24129 int
24130 main ()
24131 {
24132 return f != $ac_func;
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 rm -f conftest.$ac_objext conftest$ac_exeext
24138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24139   (eval $ac_link) 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } &&
24146          { ac_try='test -z "$ac_c_werror_flag"
24147                          || test ! -s conftest.err'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; } &&
24153          { ac_try='test -s conftest$ac_exeext'
24154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155   (eval $ac_try) 2>&5
24156   ac_status=$?
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); }; }; then
24159   eval "$as_ac_var=yes"
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24163
24164 eval "$as_ac_var=no"
24165 fi
24166 rm -f conftest.err conftest.$ac_objext \
24167       conftest$ac_exeext conftest.$ac_ext
24168 fi
24169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24171 if test `eval echo '${'$as_ac_var'}'` = yes; then
24172   cat >>confdefs.h <<_ACEOF
24173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24174 _ACEOF
24175
24176 fi
24177 done
24178
24179
24180    # We require memcpy.
24181    memcpy_found=no
24182
24183 for ac_func in memcpy
24184 do
24185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24186 echo "$as_me:$LINENO: checking for $ac_func" >&5
24187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24188 if eval "test \"\${$as_ac_var+set}\" = set"; then
24189   echo $ECHO_N "(cached) $ECHO_C" >&6
24190 else
24191   if test x$gcc_no_link = xyes; then
24192   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24194    { (exit 1); exit 1; }; }
24195 fi
24196 cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24204 #define $ac_func innocuous_$ac_func
24205
24206 /* System header to define __stub macros and hopefully few prototypes,
24207     which can conflict with char $ac_func (); below.
24208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209     <limits.h> exists even on freestanding compilers.  */
24210
24211 #ifdef __STDC__
24212 # include <limits.h>
24213 #else
24214 # include <assert.h>
24215 #endif
24216
24217 #undef $ac_func
24218
24219 /* Override any gcc2 internal prototype to avoid an error.  */
24220 #ifdef __cplusplus
24221 extern "C"
24222 {
24223 #endif
24224 /* We use char because int might match the return type of a gcc2
24225    builtin and then its argument prototype would still apply.  */
24226 char $ac_func ();
24227 /* The GNU C library defines this for functions which it implements
24228     to always fail with ENOSYS.  Some functions are actually named
24229     something starting with __ and the normal name is an alias.  */
24230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24231 choke me
24232 #else
24233 char (*f) () = $ac_func;
24234 #endif
24235 #ifdef __cplusplus
24236 }
24237 #endif
24238
24239 int
24240 main ()
24241 {
24242 return f != $ac_func;
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext conftest$ac_exeext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24249   (eval $ac_link) 2>conftest.er1
24250   ac_status=$?
24251   grep -v '^ *+' conftest.er1 >conftest.err
24252   rm -f conftest.er1
24253   cat conftest.err >&5
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); } &&
24256          { ac_try='test -z "$ac_c_werror_flag"
24257                          || test ! -s conftest.err'
24258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; } &&
24263          { ac_try='test -s conftest$ac_exeext'
24264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265   (eval $ac_try) 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   eval "$as_ac_var=yes"
24270 else
24271   echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24273
24274 eval "$as_ac_var=no"
24275 fi
24276 rm -f conftest.err conftest.$ac_objext \
24277       conftest$ac_exeext conftest.$ac_ext
24278 fi
24279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24281 if test `eval echo '${'$as_ac_var'}'` = yes; then
24282   cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24284 _ACEOF
24285  memcpy_found=yes
24286 fi
24287 done
24288
24289    if test "$memcpy_found" = no; then
24290       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24291 echo "$as_me: error: memcpy is required" >&2;}
24292    { (exit 1); exit 1; }; }
24293    fi
24294    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24295    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24298   echo $ECHO_N "(cached) $ECHO_C" >&6
24299 else
24300   ac_check_lib_save_LIBS=$LIBS
24301 LIBS="-ldl  $LIBS"
24302 if test x$gcc_no_link = xyes; then
24303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24305    { (exit 1); exit 1; }; }
24306 fi
24307 cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h.  */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h.  */
24313
24314 /* Override any gcc2 internal prototype to avoid an error.  */
24315 #ifdef __cplusplus
24316 extern "C"
24317 #endif
24318 /* We use char because int might match the return type of a gcc2
24319    builtin and then its argument prototype would still apply.  */
24320 char dlopen ();
24321 int
24322 main ()
24323 {
24324 dlopen ();
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331   (eval $ac_link) 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } &&
24338          { ac_try='test -z "$ac_c_werror_flag"
24339                          || test ! -s conftest.err'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; } &&
24345          { ac_try='test -s conftest$ac_exeext'
24346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347   (eval $ac_try) 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   ac_cv_lib_dl_dlopen=yes
24352 else
24353   echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_cv_lib_dl_dlopen=no
24357 fi
24358 rm -f conftest.err conftest.$ac_objext \
24359       conftest$ac_exeext conftest.$ac_ext
24360 LIBS=$ac_check_lib_save_LIBS
24361 fi
24362 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24363 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24364 if test $ac_cv_lib_dl_dlopen = yes; then
24365
24366
24367 cat >>confdefs.h <<\_ACEOF
24368 #define HAVE_DLOPEN 1
24369 _ACEOF
24370
24371 else
24372
24373        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24374 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24375 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24376   echo $ECHO_N "(cached) $ECHO_C" >&6
24377 else
24378   ac_check_lib_save_LIBS=$LIBS
24379 LIBS="-ldld  $LIBS"
24380 if test x$gcc_no_link = xyes; then
24381   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24383    { (exit 1); exit 1; }; }
24384 fi
24385 cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391
24392 /* Override any gcc2 internal prototype to avoid an error.  */
24393 #ifdef __cplusplus
24394 extern "C"
24395 #endif
24396 /* We use char because int might match the return type of a gcc2
24397    builtin and then its argument prototype would still apply.  */
24398 char dlopen ();
24399 int
24400 main ()
24401 {
24402 dlopen ();
24403   ;
24404   return 0;
24405 }
24406 _ACEOF
24407 rm -f conftest.$ac_objext conftest$ac_exeext
24408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24409   (eval $ac_link) 2>conftest.er1
24410   ac_status=$?
24411   grep -v '^ *+' conftest.er1 >conftest.err
24412   rm -f conftest.er1
24413   cat conftest.err >&5
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); } &&
24416          { ac_try='test -z "$ac_c_werror_flag"
24417                          || test ! -s conftest.err'
24418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419   (eval $ac_try) 2>&5
24420   ac_status=$?
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); }; } &&
24423          { ac_try='test -s conftest$ac_exeext'
24424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425   (eval $ac_try) 2>&5
24426   ac_status=$?
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); }; }; then
24429   ac_cv_lib_dld_dlopen=yes
24430 else
24431   echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434 ac_cv_lib_dld_dlopen=no
24435 fi
24436 rm -f conftest.err conftest.$ac_objext \
24437       conftest$ac_exeext conftest.$ac_ext
24438 LIBS=$ac_check_lib_save_LIBS
24439 fi
24440 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24441 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24442 if test $ac_cv_lib_dld_dlopen = yes; then
24443
24444
24445 cat >>confdefs.h <<\_ACEOF
24446 #define HAVE_DLOPEN 1
24447 _ACEOF
24448
24449 fi
24450
24451 fi
24452
24453
24454    # Some library-finding code we stole from Tcl.
24455    #--------------------------------------------------------------------
24456    #    Check for the existence of the -lsocket and -lnsl libraries.
24457    #    The order here is important, so that they end up in the right
24458    #    order in the command line generated by make.  Here are some
24459    #    special considerations:
24460    #    1. Use "connect" and "accept" to check for -lsocket, and
24461    #       "gethostbyname" to check for -lnsl.
24462    #    2. Use each function name only once:  can't redo a check because
24463    #       autoconf caches the results of the last check and won't redo it.
24464    #    3. Use -lnsl and -lsocket only if they supply procedures that
24465    #       aren't already present in the normal libraries.  This is because
24466    #       IRIX 5.2 has libraries, but they aren't needed and they're
24467    #       bogus:  they goof up name resolution if used.
24468    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24469    #       To get around this problem, check for both libraries together
24470    #       if -lsocket doesn't work by itself.
24471    #--------------------------------------------------------------------
24472
24473    echo "$as_me:$LINENO: checking for socket libraries" >&5
24474 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24475 if test "${gcj_cv_lib_sockets+set}" = set; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   gcj_cv_lib_sockets=
24479      gcj_checkBoth=0
24480      unset ac_cv_func_connect
24481      echo "$as_me:$LINENO: checking for connect" >&5
24482 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24483 if test "${ac_cv_func_connect+set}" = set; then
24484   echo $ECHO_N "(cached) $ECHO_C" >&6
24485 else
24486   if test x$gcc_no_link = xyes; then
24487   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24489    { (exit 1); exit 1; }; }
24490 fi
24491 cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24499 #define connect innocuous_connect
24500
24501 /* System header to define __stub macros and hopefully few prototypes,
24502     which can conflict with char connect (); below.
24503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24504     <limits.h> exists even on freestanding compilers.  */
24505
24506 #ifdef __STDC__
24507 # include <limits.h>
24508 #else
24509 # include <assert.h>
24510 #endif
24511
24512 #undef connect
24513
24514 /* Override any gcc2 internal prototype to avoid an error.  */
24515 #ifdef __cplusplus
24516 extern "C"
24517 {
24518 #endif
24519 /* We use char because int might match the return type of a gcc2
24520    builtin and then its argument prototype would still apply.  */
24521 char connect ();
24522 /* The GNU C library defines this for functions which it implements
24523     to always fail with ENOSYS.  Some functions are actually named
24524     something starting with __ and the normal name is an alias.  */
24525 #if defined (__stub_connect) || defined (__stub___connect)
24526 choke me
24527 #else
24528 char (*f) () = connect;
24529 #endif
24530 #ifdef __cplusplus
24531 }
24532 #endif
24533
24534 int
24535 main ()
24536 {
24537 return f != connect;
24538   ;
24539   return 0;
24540 }
24541 _ACEOF
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24544   (eval $ac_link) 2>conftest.er1
24545   ac_status=$?
24546   grep -v '^ *+' conftest.er1 >conftest.err
24547   rm -f conftest.er1
24548   cat conftest.err >&5
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); } &&
24551          { ac_try='test -z "$ac_c_werror_flag"
24552                          || test ! -s conftest.err'
24553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554   (eval $ac_try) 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; } &&
24558          { ac_try='test -s conftest$ac_exeext'
24559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560   (eval $ac_try) 2>&5
24561   ac_status=$?
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); }; }; then
24564   ac_cv_func_connect=yes
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_cv_func_connect=no
24570 fi
24571 rm -f conftest.err conftest.$ac_objext \
24572       conftest$ac_exeext conftest.$ac_ext
24573 fi
24574 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24575 echo "${ECHO_T}$ac_cv_func_connect" >&6
24576 if test $ac_cv_func_connect = yes; then
24577   gcj_checkSocket=0
24578 else
24579   gcj_checkSocket=1
24580 fi
24581
24582      if test "$gcj_checkSocket" = 1; then
24583          unset ac_cv_func_connect
24584          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24585 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24586 if test "${ac_cv_lib_socket_main+set}" = set; then
24587   echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589   ac_check_lib_save_LIBS=$LIBS
24590 LIBS="-lsocket  $LIBS"
24591 if test x$gcc_no_link = xyes; then
24592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24594    { (exit 1); exit 1; }; }
24595 fi
24596 cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h.  */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h.  */
24602
24603
24604 int
24605 main ()
24606 {
24607 main ();
24608   ;
24609   return 0;
24610 }
24611 _ACEOF
24612 rm -f conftest.$ac_objext conftest$ac_exeext
24613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24614   (eval $ac_link) 2>conftest.er1
24615   ac_status=$?
24616   grep -v '^ *+' conftest.er1 >conftest.err
24617   rm -f conftest.er1
24618   cat conftest.err >&5
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } &&
24621          { ac_try='test -z "$ac_c_werror_flag"
24622                          || test ! -s conftest.err'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; } &&
24628          { ac_try='test -s conftest$ac_exeext'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; }; then
24634   ac_cv_lib_socket_main=yes
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639 ac_cv_lib_socket_main=no
24640 fi
24641 rm -f conftest.err conftest.$ac_objext \
24642       conftest$ac_exeext conftest.$ac_ext
24643 LIBS=$ac_check_lib_save_LIBS
24644 fi
24645 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24646 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24647 if test $ac_cv_lib_socket_main = yes; then
24648   gcj_cv_lib_sockets="-lsocket"
24649 else
24650   gcj_checkBoth=1
24651 fi
24652
24653      fi
24654      if test "$gcj_checkBoth" = 1; then
24655          gcj_oldLibs=$LIBS
24656          LIBS="$LIBS -lsocket -lnsl"
24657          unset ac_cv_func_accept
24658          echo "$as_me:$LINENO: checking for accept" >&5
24659 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24660 if test "${ac_cv_func_accept+set}" = set; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   if test x$gcc_no_link = xyes; then
24664   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24666    { (exit 1); exit 1; }; }
24667 fi
24668 cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h.  */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h.  */
24674 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24676 #define accept innocuous_accept
24677
24678 /* System header to define __stub macros and hopefully few prototypes,
24679     which can conflict with char accept (); below.
24680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24681     <limits.h> exists even on freestanding compilers.  */
24682
24683 #ifdef __STDC__
24684 # include <limits.h>
24685 #else
24686 # include <assert.h>
24687 #endif
24688
24689 #undef accept
24690
24691 /* Override any gcc2 internal prototype to avoid an error.  */
24692 #ifdef __cplusplus
24693 extern "C"
24694 {
24695 #endif
24696 /* We use char because int might match the return type of a gcc2
24697    builtin and then its argument prototype would still apply.  */
24698 char accept ();
24699 /* The GNU C library defines this for functions which it implements
24700     to always fail with ENOSYS.  Some functions are actually named
24701     something starting with __ and the normal name is an alias.  */
24702 #if defined (__stub_accept) || defined (__stub___accept)
24703 choke me
24704 #else
24705 char (*f) () = accept;
24706 #endif
24707 #ifdef __cplusplus
24708 }
24709 #endif
24710
24711 int
24712 main ()
24713 {
24714 return f != accept;
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext conftest$ac_exeext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721   (eval $ac_link) 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } &&
24728          { ac_try='test -z "$ac_c_werror_flag"
24729                          || test ! -s conftest.err'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; } &&
24735          { ac_try='test -s conftest$ac_exeext'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741   ac_cv_func_accept=yes
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 ac_cv_func_accept=no
24747 fi
24748 rm -f conftest.err conftest.$ac_objext \
24749       conftest$ac_exeext conftest.$ac_ext
24750 fi
24751 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24752 echo "${ECHO_T}$ac_cv_func_accept" >&6
24753 if test $ac_cv_func_accept = yes; then
24754   gcj_checkNsl=0
24755                         gcj_cv_lib_sockets="-lsocket -lnsl"
24756 fi
24757
24758          unset ac_cv_func_accept
24759          LIBS=$gcj_oldLibs
24760      fi
24761      unset ac_cv_func_gethostbyname
24762      gcj_oldLibs=$LIBS
24763      LIBS="$LIBS $gcj_cv_lib_sockets"
24764      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24765 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24766 if test "${ac_cv_func_gethostbyname+set}" = set; then
24767   echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769   if test x$gcc_no_link = xyes; then
24770   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24772    { (exit 1); exit 1; }; }
24773 fi
24774 cat >conftest.$ac_ext <<_ACEOF
24775 /* confdefs.h.  */
24776 _ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h.  */
24780 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24782 #define gethostbyname innocuous_gethostbyname
24783
24784 /* System header to define __stub macros and hopefully few prototypes,
24785     which can conflict with char gethostbyname (); below.
24786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24787     <limits.h> exists even on freestanding compilers.  */
24788
24789 #ifdef __STDC__
24790 # include <limits.h>
24791 #else
24792 # include <assert.h>
24793 #endif
24794
24795 #undef gethostbyname
24796
24797 /* Override any gcc2 internal prototype to avoid an error.  */
24798 #ifdef __cplusplus
24799 extern "C"
24800 {
24801 #endif
24802 /* We use char because int might match the return type of a gcc2
24803    builtin and then its argument prototype would still apply.  */
24804 char gethostbyname ();
24805 /* The GNU C library defines this for functions which it implements
24806     to always fail with ENOSYS.  Some functions are actually named
24807     something starting with __ and the normal name is an alias.  */
24808 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24809 choke me
24810 #else
24811 char (*f) () = gethostbyname;
24812 #endif
24813 #ifdef __cplusplus
24814 }
24815 #endif
24816
24817 int
24818 main ()
24819 {
24820 return f != gethostbyname;
24821   ;
24822   return 0;
24823 }
24824 _ACEOF
24825 rm -f conftest.$ac_objext conftest$ac_exeext
24826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24827   (eval $ac_link) 2>conftest.er1
24828   ac_status=$?
24829   grep -v '^ *+' conftest.er1 >conftest.err
24830   rm -f conftest.er1
24831   cat conftest.err >&5
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); } &&
24834          { ac_try='test -z "$ac_c_werror_flag"
24835                          || test ! -s conftest.err'
24836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837   (eval $ac_try) 2>&5
24838   ac_status=$?
24839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); }; } &&
24841          { ac_try='test -s conftest$ac_exeext'
24842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; }; then
24847   ac_cv_func_gethostbyname=yes
24848 else
24849   echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24851
24852 ac_cv_func_gethostbyname=no
24853 fi
24854 rm -f conftest.err conftest.$ac_objext \
24855       conftest$ac_exeext conftest.$ac_ext
24856 fi
24857 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24858 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24859 if test $ac_cv_func_gethostbyname = yes; then
24860   :
24861 else
24862   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24863 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24864 if test "${ac_cv_lib_nsl_main+set}" = set; then
24865   echo $ECHO_N "(cached) $ECHO_C" >&6
24866 else
24867   ac_check_lib_save_LIBS=$LIBS
24868 LIBS="-lnsl  $LIBS"
24869 if test x$gcc_no_link = xyes; then
24870   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24872    { (exit 1); exit 1; }; }
24873 fi
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880
24881
24882 int
24883 main ()
24884 {
24885 main ();
24886   ;
24887   return 0;
24888 }
24889 _ACEOF
24890 rm -f conftest.$ac_objext conftest$ac_exeext
24891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24892   (eval $ac_link) 2>conftest.er1
24893   ac_status=$?
24894   grep -v '^ *+' conftest.er1 >conftest.err
24895   rm -f conftest.er1
24896   cat conftest.err >&5
24897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); } &&
24899          { ac_try='test -z "$ac_c_werror_flag"
24900                          || test ! -s conftest.err'
24901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902   (eval $ac_try) 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; } &&
24906          { ac_try='test -s conftest$ac_exeext'
24907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24908   (eval $ac_try) 2>&5
24909   ac_status=$?
24910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); }; }; then
24912   ac_cv_lib_nsl_main=yes
24913 else
24914   echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917 ac_cv_lib_nsl_main=no
24918 fi
24919 rm -f conftest.err conftest.$ac_objext \
24920       conftest$ac_exeext conftest.$ac_ext
24921 LIBS=$ac_check_lib_save_LIBS
24922 fi
24923 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24924 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24925 if test $ac_cv_lib_nsl_main = yes; then
24926   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24927 fi
24928
24929 fi
24930
24931      unset ac_cv_func_gethostbyname
24932      LIBS=$gcj_oldLIBS
24933
24934 fi
24935 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24936 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24937    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24938
24939    if test "$with_system_zlib" = yes; then
24940       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24941 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24942 if test "${ac_cv_lib_z_deflate+set}" = set; then
24943   echo $ECHO_N "(cached) $ECHO_C" >&6
24944 else
24945   ac_check_lib_save_LIBS=$LIBS
24946 LIBS="-lz  $LIBS"
24947 if test x$gcc_no_link = xyes; then
24948   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24950    { (exit 1); exit 1; }; }
24951 fi
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958
24959 /* Override any gcc2 internal prototype to avoid an error.  */
24960 #ifdef __cplusplus
24961 extern "C"
24962 #endif
24963 /* We use char because int might match the return type of a gcc2
24964    builtin and then its argument prototype would still apply.  */
24965 char deflate ();
24966 int
24967 main ()
24968 {
24969 deflate ();
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 rm -f conftest.$ac_objext conftest$ac_exeext
24975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24976   (eval $ac_link) 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } &&
24983          { ac_try='test -z "$ac_c_werror_flag"
24984                          || test ! -s conftest.err'
24985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986   (eval $ac_try) 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); }; } &&
24990          { ac_try='test -s conftest$ac_exeext'
24991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; }; then
24996   ac_cv_lib_z_deflate=yes
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001 ac_cv_lib_z_deflate=no
25002 fi
25003 rm -f conftest.err conftest.$ac_objext \
25004       conftest$ac_exeext conftest.$ac_ext
25005 LIBS=$ac_check_lib_save_LIBS
25006 fi
25007 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25008 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25009 if test $ac_cv_lib_z_deflate = yes; then
25010   ZLIBSPEC=-lz
25011 else
25012   ZLIBSPEC=
25013 fi
25014
25015    fi
25016
25017    # Test for Gtk stuff, if asked for.
25018    if test "$use_gtk_awt" = yes; then
25019
25020   succeeded=no
25021
25022   if test -z "$PKG_CONFIG"; then
25023     # Extract the first word of "pkg-config", so it can be a program name with args.
25024 set dummy pkg-config; ac_word=$2
25025 echo "$as_me:$LINENO: checking for $ac_word" >&5
25026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030   case $PKG_CONFIG in
25031   [\\/]* | ?:[\\/]*)
25032   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25033   ;;
25034   *)
25035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25036 for as_dir in $PATH
25037 do
25038   IFS=$as_save_IFS
25039   test -z "$as_dir" && as_dir=.
25040   for ac_exec_ext in '' $ac_executable_extensions; do
25041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25042     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25044     break 2
25045   fi
25046 done
25047 done
25048
25049   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25050   ;;
25051 esac
25052 fi
25053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25054
25055 if test -n "$PKG_CONFIG"; then
25056   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25057 echo "${ECHO_T}$PKG_CONFIG" >&6
25058 else
25059   echo "$as_me:$LINENO: result: no" >&5
25060 echo "${ECHO_T}no" >&6
25061 fi
25062
25063   fi
25064
25065   if test "$PKG_CONFIG" = "no" ; then
25066      echo "*** The pkg-config script could not be found. Make sure it is"
25067      echo "*** in your path, or set the PKG_CONFIG environment variable"
25068      echo "*** to the full path to pkg-config."
25069      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25070   else
25071      PKG_CONFIG_MIN_VERSION=0.9.0
25072      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25073         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
25074 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
25075
25076         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
25077             echo "$as_me:$LINENO: result: yes" >&5
25078 echo "${ECHO_T}yes" >&6
25079             succeeded=yes
25080
25081             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25082 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
25083             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
25084             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25085 echo "${ECHO_T}$GTK_CFLAGS" >&6
25086
25087             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25088 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25089             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25090             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25091 echo "${ECHO_T}$GTK_LIBS" >&6
25092         else
25093             GTK_CFLAGS=""
25094             GTK_LIBS=""
25095             ## If we have a custom action on failure, don't print errors, but
25096             ## do set a variable so people can do so.
25097             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25098             echo $GTK_PKG_ERRORS
25099         fi
25100
25101
25102
25103      else
25104         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25105         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25106      fi
25107   fi
25108
25109   if test $succeeded = yes; then
25110      :
25111   else
25112      { { 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
25113 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;}
25114    { (exit 1); exit 1; }; }
25115   fi
25116
25117
25118
25119
25120
25121   succeeded=no
25122
25123   if test -z "$PKG_CONFIG"; then
25124     # Extract the first word of "pkg-config", so it can be a program name with args.
25125 set dummy pkg-config; ac_word=$2
25126 echo "$as_me:$LINENO: checking for $ac_word" >&5
25127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25128 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25129   echo $ECHO_N "(cached) $ECHO_C" >&6
25130 else
25131   case $PKG_CONFIG in
25132   [\\/]* | ?:[\\/]*)
25133   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25134   ;;
25135   *)
25136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25137 for as_dir in $PATH
25138 do
25139   IFS=$as_save_IFS
25140   test -z "$as_dir" && as_dir=.
25141   for ac_exec_ext in '' $ac_executable_extensions; do
25142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25143     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25145     break 2
25146   fi
25147 done
25148 done
25149
25150   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25151   ;;
25152 esac
25153 fi
25154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25155
25156 if test -n "$PKG_CONFIG"; then
25157   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25158 echo "${ECHO_T}$PKG_CONFIG" >&6
25159 else
25160   echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6
25162 fi
25163
25164   fi
25165
25166   if test "$PKG_CONFIG" = "no" ; then
25167      echo "*** The pkg-config script could not be found. Make sure it is"
25168      echo "*** in your path, or set the PKG_CONFIG environment variable"
25169      echo "*** to the full path to pkg-config."
25170      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25171   else
25172      PKG_CONFIG_MIN_VERSION=0.9.0
25173      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25174         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25175 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25176
25177         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25178             echo "$as_me:$LINENO: result: yes" >&5
25179 echo "${ECHO_T}yes" >&6
25180             succeeded=yes
25181
25182             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25183 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25184             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25185             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25186 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25187
25188             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25189 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25190             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25191             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25192 echo "${ECHO_T}$GLIB_LIBS" >&6
25193         else
25194             GLIB_CFLAGS=""
25195             GLIB_LIBS=""
25196             ## If we have a custom action on failure, don't print errors, but
25197             ## do set a variable so people can do so.
25198             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25199             echo $GLIB_PKG_ERRORS
25200         fi
25201
25202
25203
25204      else
25205         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25206         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25207      fi
25208   fi
25209
25210   if test $succeeded = yes; then
25211      :
25212   else
25213      { { 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
25214 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;}
25215    { (exit 1); exit 1; }; }
25216   fi
25217
25218
25219
25220
25221
25222   succeeded=no
25223
25224   if test -z "$PKG_CONFIG"; then
25225     # Extract the first word of "pkg-config", so it can be a program name with args.
25226 set dummy pkg-config; ac_word=$2
25227 echo "$as_me:$LINENO: checking for $ac_word" >&5
25228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25229 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25230   echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232   case $PKG_CONFIG in
25233   [\\/]* | ?:[\\/]*)
25234   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25235   ;;
25236   *)
25237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238 for as_dir in $PATH
25239 do
25240   IFS=$as_save_IFS
25241   test -z "$as_dir" && as_dir=.
25242   for ac_exec_ext in '' $ac_executable_extensions; do
25243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25246     break 2
25247   fi
25248 done
25249 done
25250
25251   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25252   ;;
25253 esac
25254 fi
25255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25256
25257 if test -n "$PKG_CONFIG"; then
25258   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25259 echo "${ECHO_T}$PKG_CONFIG" >&6
25260 else
25261   echo "$as_me:$LINENO: result: no" >&5
25262 echo "${ECHO_T}no" >&6
25263 fi
25264
25265   fi
25266
25267   if test "$PKG_CONFIG" = "no" ; then
25268      echo "*** The pkg-config script could not be found. Make sure it is"
25269      echo "*** in your path, or set the PKG_CONFIG environment variable"
25270      echo "*** to the full path to pkg-config."
25271      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25272   else
25273      PKG_CONFIG_MIN_VERSION=0.9.0
25274      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25275         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25276 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25277
25278         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25279             echo "$as_me:$LINENO: result: yes" >&5
25280 echo "${ECHO_T}yes" >&6
25281             succeeded=yes
25282
25283             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25284 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25285             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25286             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25287 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25288
25289             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25290 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25291             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25292             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25293 echo "${ECHO_T}$LIBART_LIBS" >&6
25294         else
25295             LIBART_CFLAGS=""
25296             LIBART_LIBS=""
25297             ## If we have a custom action on failure, don't print errors, but
25298             ## do set a variable so people can do so.
25299             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25300             echo $LIBART_PKG_ERRORS
25301         fi
25302
25303
25304
25305      else
25306         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25307         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25308      fi
25309   fi
25310
25311   if test $succeeded = yes; then
25312      :
25313   else
25314      { { 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
25315 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;}
25316    { (exit 1); exit 1; }; }
25317   fi
25318
25319
25320
25321
25322       # We require the XTest Extension to support java.awt.Robot.
25323       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25324 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25325 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25326   echo $ECHO_N "(cached) $ECHO_C" >&6
25327 else
25328   ac_check_lib_save_LIBS=$LIBS
25329 LIBS="-lXtst ${X_LIBS} $LIBS"
25330 if test x$gcc_no_link = xyes; then
25331   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25333    { (exit 1); exit 1; }; }
25334 fi
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341
25342 /* Override any gcc2 internal prototype to avoid an error.  */
25343 #ifdef __cplusplus
25344 extern "C"
25345 #endif
25346 /* We use char because int might match the return type of a gcc2
25347    builtin and then its argument prototype would still apply.  */
25348 char XTestQueryExtension ();
25349 int
25350 main ()
25351 {
25352 XTestQueryExtension ();
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 rm -f conftest.$ac_objext conftest$ac_exeext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25359   (eval $ac_link) 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } &&
25366          { ac_try='test -z "$ac_c_werror_flag"
25367                          || test ! -s conftest.err'
25368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369   (eval $ac_try) 2>&5
25370   ac_status=$?
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); }; } &&
25373          { ac_try='test -s conftest$ac_exeext'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; }; then
25379   ac_cv_lib_Xtst_XTestQueryExtension=yes
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384 ac_cv_lib_Xtst_XTestQueryExtension=no
25385 fi
25386 rm -f conftest.err conftest.$ac_objext \
25387       conftest$ac_exeext conftest.$ac_ext
25388 LIBS=$ac_check_lib_save_LIBS
25389 fi
25390 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25391 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25392 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25393   true
25394 else
25395   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25396 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25397    { (exit 1); exit 1; }; }
25398 fi
25399
25400    fi
25401
25402    # On Solaris, and maybe other architectures, the Boehm collector
25403    # requires -ldl.
25404    if test "$GC" = boehm; then
25405       case "${host}" in
25406           mips-sgi-irix6*)
25407             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25408             # libgcj.spec is used, so override here
25409             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25410           ;;
25411           *)
25412             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25413 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25414 if test "${ac_cv_lib_dl_main+set}" = set; then
25415   echo $ECHO_N "(cached) $ECHO_C" >&6
25416 else
25417   ac_check_lib_save_LIBS=$LIBS
25418 LIBS="-ldl  $LIBS"
25419 if test x$gcc_no_link = xyes; then
25420   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25421 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25422    { (exit 1); exit 1; }; }
25423 fi
25424 cat >conftest.$ac_ext <<_ACEOF
25425 /* confdefs.h.  */
25426 _ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h.  */
25430
25431
25432 int
25433 main ()
25434 {
25435 main ();
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest.$ac_objext conftest$ac_exeext
25441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25442   (eval $ac_link) 2>conftest.er1
25443   ac_status=$?
25444   grep -v '^ *+' conftest.er1 >conftest.err
25445   rm -f conftest.er1
25446   cat conftest.err >&5
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); } &&
25449          { ac_try='test -z "$ac_c_werror_flag"
25450                          || test ! -s conftest.err'
25451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452   (eval $ac_try) 2>&5
25453   ac_status=$?
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); }; } &&
25456          { ac_try='test -s conftest$ac_exeext'
25457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458   (eval $ac_try) 2>&5
25459   ac_status=$?
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; }; then
25462   ac_cv_lib_dl_main=yes
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467 ac_cv_lib_dl_main=no
25468 fi
25469 rm -f conftest.err conftest.$ac_objext \
25470       conftest$ac_exeext conftest.$ac_ext
25471 LIBS=$ac_check_lib_save_LIBS
25472 fi
25473 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25474 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25475 if test $ac_cv_lib_dl_main = yes; then
25476   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25477 fi
25478
25479           ;;
25480       esac
25481    fi
25482 fi
25483
25484 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25485 case $build in
25486     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25487     *)         CLASSPATH_SEPARATOR=':' ;;
25488 esac
25489
25490
25491 # We must search the source tree for java.lang, since we still don't
25492 # have libgcj.jar nor java/lang/*.class
25493 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25494 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25495
25496 # Since some classes depend on this one, we need its source available
25497 # before we can do any GCJ compilation test :-(
25498 if test ! -f gnu/classpath/Configuration.java; then
25499   test -d gnu || mkdir gnu
25500   test -d gnu/classpath || mkdir gnu/classpath
25501   # Note that it is not crucial that all the values here be correct.
25502   sed -e "s,@prefix@,$prefix," \
25503       -e "s,@VERSION@,$VERSION," \
25504       -e "s,@LIBDEBUG@,false," \
25505       -e "s,@INIT_LOAD_LIBRARY@,false," \
25506       -e "s,@@,$LIBGCJDEBUG," \
25507       -e "s,@default_toolkit@,$TOOLKIT," \
25508       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25509       -e "s,@GTK_CAIRO_ENABLED@,false," \
25510       -e "s,@ECJ_JAR@,," \
25511       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
25512         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25513         > gnu/classpath/Configuration.java
25514   # We do not want to redirect the output of the grep below to /dev/null,
25515   # but we add /dev/null to the input list so that grep will print the
25516   # filename of Configuration.java in case it finds any matches.
25517   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25518     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25519 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25520    { (exit 1); exit 1; }; }
25521   fi
25522 fi
25523
25524
25525 for ac_prog in gcj
25526 do
25527   # Extract the first word of "$ac_prog", so it can be a program name with args.
25528 set dummy $ac_prog; ac_word=$2
25529 echo "$as_me:$LINENO: checking for $ac_word" >&5
25530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25531 if test "${ac_cv_prog_GCJ+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   if test -n "$GCJ"; then
25535   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25536 else
25537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25538 for as_dir in $PATH
25539 do
25540   IFS=$as_save_IFS
25541   test -z "$as_dir" && as_dir=.
25542   for ac_exec_ext in '' $ac_executable_extensions; do
25543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25544     ac_cv_prog_GCJ="$ac_prog"
25545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25546     break 2
25547   fi
25548 done
25549 done
25550
25551 fi
25552 fi
25553 GCJ=$ac_cv_prog_GCJ
25554 if test -n "$GCJ"; then
25555   echo "$as_me:$LINENO: result: $GCJ" >&5
25556 echo "${ECHO_T}$GCJ" >&6
25557 else
25558   echo "$as_me:$LINENO: result: no" >&5
25559 echo "${ECHO_T}no" >&6
25560 fi
25561
25562   test -n "$GCJ" && break
25563 done
25564 test -n "$GCJ" || GCJ="gcj"
25565
25566 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25567 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25568    { (exit 1); exit 1; }; }
25569 if test "x${GCJFLAGS-unset}" = xunset; then
25570    GCJFLAGS="-g -O2"
25571 fi
25572
25573
25574 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25575
25576 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25577 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25578 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25579   echo $ECHO_N "(cached) $ECHO_C" >&6
25580 else
25581   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25582   # We make a subdir and do the tests there.  Otherwise we can end up
25583   # making bogus files that we don't know about and never remove.  For
25584   # instance it was reported that on HP-UX the gcc test will end up
25585   # making a dummy file named `D' -- because `-MD' means `put the output
25586   # in D'.
25587   mkdir conftest.dir
25588   # Copy depcomp to subdir because otherwise we won't find it if we're
25589   # using a relative directory.
25590   cp "$am_depcomp" conftest.dir
25591   cd conftest.dir
25592   # We will build objects and dependencies in a subdirectory because
25593   # it helps to detect inapplicable dependency modes.  For instance
25594   # both Tru64's cc and ICC support -MD to output dependencies as a
25595   # side effect of compilation, but ICC will put the dependencies in
25596   # the current directory while Tru64 will put them in the object
25597   # directory.
25598   mkdir sub
25599
25600   am_cv_GCJ_dependencies_compiler_type=none
25601   if test "$am_compiler_list" = ""; then
25602      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25603   fi
25604   for depmode in $am_compiler_list; do
25605     # Setup a source with many dependencies, because some compilers
25606     # like to wrap large dependency lists on column 80 (with \), and
25607     # we should not choose a depcomp mode which is confused by this.
25608     #
25609     # We need to recreate these files for each test, as the compiler may
25610     # overwrite some of them when testing with obscure command lines.
25611     # This happens at least with the AIX C compiler.
25612     : > sub/conftest.c
25613     for i in 1 2 3 4 5 6; do
25614       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25615       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25616       # Solaris 8's {/usr,}/bin/sh.
25617       touch sub/conftst$i.h
25618     done
25619     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25620
25621     case $depmode in
25622     nosideeffect)
25623       # after this tag, mechanisms are not by side-effect, so they'll
25624       # only be used when explicitly requested
25625       if test "x$enable_dependency_tracking" = xyes; then
25626         continue
25627       else
25628         break
25629       fi
25630       ;;
25631     none) break ;;
25632     esac
25633     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25634     # mode.  It turns out that the SunPro C++ compiler does not properly
25635     # handle `-M -o', and we need to detect this.
25636     if depmode=$depmode \
25637        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25638        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25639        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25640          >/dev/null 2>conftest.err &&
25641        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25642        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25643        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25644       # icc doesn't choke on unknown options, it will just issue warnings
25645       # or remarks (even with -Werror).  So we grep stderr for any message
25646       # that says an option was ignored or not supported.
25647       # When given -MP, icc 7.0 and 7.1 complain thusly:
25648       #   icc: Command line warning: ignoring option '-M'; no argument required
25649       # The diagnosis changed in icc 8.0:
25650       #   icc: Command line remark: option '-MP' not supported
25651       if (grep 'ignoring option' conftest.err ||
25652           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25653         am_cv_GCJ_dependencies_compiler_type=$depmode
25654         break
25655       fi
25656     fi
25657   done
25658
25659   cd ..
25660   rm -rf conftest.dir
25661 else
25662   am_cv_GCJ_dependencies_compiler_type=none
25663 fi
25664
25665 fi
25666 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25667 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25668 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25669
25670
25671
25672 if
25673   test "x$enable_dependency_tracking" != xno \
25674   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25675   am__fastdepGCJ_TRUE=
25676   am__fastdepGCJ_FALSE='#'
25677 else
25678   am__fastdepGCJ_TRUE='#'
25679   am__fastdepGCJ_FALSE=
25680 fi
25681
25682
25683
25684
25685 # Now remove it.
25686 rm -f gnu/classpath/Configuration.java
25687
25688 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25689
25690 echo "$as_me:$LINENO: checking for void *" >&5
25691 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25692 if test "${ac_cv_type_void_p+set}" = set; then
25693   echo $ECHO_N "(cached) $ECHO_C" >&6
25694 else
25695   cat >conftest.$ac_ext <<_ACEOF
25696 /* confdefs.h.  */
25697 _ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h.  */
25701 $ac_includes_default
25702 int
25703 main ()
25704 {
25705 if ((void * *) 0)
25706   return 0;
25707 if (sizeof (void *))
25708   return 0;
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext
25714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25715   (eval $ac_compile) 2>conftest.er1
25716   ac_status=$?
25717   grep -v '^ *+' conftest.er1 >conftest.err
25718   rm -f conftest.er1
25719   cat conftest.err >&5
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } &&
25722          { ac_try='test -z "$ac_c_werror_flag"
25723                          || test ! -s conftest.err'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; } &&
25729          { ac_try='test -s conftest.$ac_objext'
25730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731   (eval $ac_try) 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); }; }; then
25735   ac_cv_type_void_p=yes
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740 ac_cv_type_void_p=no
25741 fi
25742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25743 fi
25744 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25745 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25746
25747 echo "$as_me:$LINENO: checking size of void *" >&5
25748 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25749 if test "${ac_cv_sizeof_void_p+set}" = set; then
25750   echo $ECHO_N "(cached) $ECHO_C" >&6
25751 else
25752   if test "$ac_cv_type_void_p" = yes; then
25753   # The cast to unsigned long works around a bug in the HP C Compiler
25754   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25755   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25756   # This bug is HP SR number 8606223364.
25757   if test "$cross_compiling" = yes; then
25758   # Depending upon the size, compute the lo and hi bounds.
25759 cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765 $ac_includes_default
25766 int
25767 main ()
25768 {
25769 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25770 test_array [0] = 0
25771
25772   ;
25773   return 0;
25774 }
25775 _ACEOF
25776 rm -f conftest.$ac_objext
25777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25778   (eval $ac_compile) 2>conftest.er1
25779   ac_status=$?
25780   grep -v '^ *+' conftest.er1 >conftest.err
25781   rm -f conftest.er1
25782   cat conftest.err >&5
25783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); } &&
25785          { ac_try='test -z "$ac_c_werror_flag"
25786                          || test ! -s conftest.err'
25787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788   (eval $ac_try) 2>&5
25789   ac_status=$?
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); }; } &&
25792          { ac_try='test -s conftest.$ac_objext'
25793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794   (eval $ac_try) 2>&5
25795   ac_status=$?
25796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797   (exit $ac_status); }; }; then
25798   ac_lo=0 ac_mid=0
25799   while :; do
25800     cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806 $ac_includes_default
25807 int
25808 main ()
25809 {
25810 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25811 test_array [0] = 0
25812
25813   ;
25814   return 0;
25815 }
25816 _ACEOF
25817 rm -f conftest.$ac_objext
25818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25819   (eval $ac_compile) 2>conftest.er1
25820   ac_status=$?
25821   grep -v '^ *+' conftest.er1 >conftest.err
25822   rm -f conftest.er1
25823   cat conftest.err >&5
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); } &&
25826          { ac_try='test -z "$ac_c_werror_flag"
25827                          || test ! -s conftest.err'
25828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829   (eval $ac_try) 2>&5
25830   ac_status=$?
25831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832   (exit $ac_status); }; } &&
25833          { ac_try='test -s conftest.$ac_objext'
25834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25835   (eval $ac_try) 2>&5
25836   ac_status=$?
25837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838   (exit $ac_status); }; }; then
25839   ac_hi=$ac_mid; break
25840 else
25841   echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25843
25844 ac_lo=`expr $ac_mid + 1`
25845                     if test $ac_lo -le $ac_mid; then
25846                       ac_lo= ac_hi=
25847                       break
25848                     fi
25849                     ac_mid=`expr 2 '*' $ac_mid + 1`
25850 fi
25851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25852   done
25853 else
25854   echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25856
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h.  */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h.  */
25863 $ac_includes_default
25864 int
25865 main ()
25866 {
25867 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25868 test_array [0] = 0
25869
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 rm -f conftest.$ac_objext
25875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25876   (eval $ac_compile) 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } &&
25883          { ac_try='test -z "$ac_c_werror_flag"
25884                          || test ! -s conftest.err'
25885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886   (eval $ac_try) 2>&5
25887   ac_status=$?
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); }; } &&
25890          { ac_try='test -s conftest.$ac_objext'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; }; then
25896   ac_hi=-1 ac_mid=-1
25897   while :; do
25898     cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 $ac_includes_default
25905 int
25906 main ()
25907 {
25908 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25909 test_array [0] = 0
25910
25911   ;
25912   return 0;
25913 }
25914 _ACEOF
25915 rm -f conftest.$ac_objext
25916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25917   (eval $ac_compile) 2>conftest.er1
25918   ac_status=$?
25919   grep -v '^ *+' conftest.er1 >conftest.err
25920   rm -f conftest.er1
25921   cat conftest.err >&5
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); } &&
25924          { ac_try='test -z "$ac_c_werror_flag"
25925                          || test ! -s conftest.err'
25926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927   (eval $ac_try) 2>&5
25928   ac_status=$?
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); }; } &&
25931          { ac_try='test -s conftest.$ac_objext'
25932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933   (eval $ac_try) 2>&5
25934   ac_status=$?
25935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936   (exit $ac_status); }; }; then
25937   ac_lo=$ac_mid; break
25938 else
25939   echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942 ac_hi=`expr '(' $ac_mid ')' - 1`
25943                        if test $ac_mid -le $ac_hi; then
25944                          ac_lo= ac_hi=
25945                          break
25946                        fi
25947                        ac_mid=`expr 2 '*' $ac_mid`
25948 fi
25949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25950   done
25951 else
25952   echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 ac_lo= ac_hi=
25956 fi
25957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958 fi
25959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25960 # Binary search between lo and hi bounds.
25961 while test "x$ac_lo" != "x$ac_hi"; do
25962   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25963   cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969 $ac_includes_default
25970 int
25971 main ()
25972 {
25973 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25974 test_array [0] = 0
25975
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 rm -f conftest.$ac_objext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982   (eval $ac_compile) 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } &&
25989          { ac_try='test -z "$ac_c_werror_flag"
25990                          || test ! -s conftest.err'
25991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; } &&
25996          { ac_try='test -s conftest.$ac_objext'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; }; then
26002   ac_hi=$ac_mid
26003 else
26004   echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007 ac_lo=`expr '(' $ac_mid ')' + 1`
26008 fi
26009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010 done
26011 case $ac_lo in
26012 ?*) ac_cv_sizeof_void_p=$ac_lo;;
26013 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26014 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26016 See \`config.log' for more details." >&5
26017 echo "$as_me: error: cannot compute sizeof (void *), 77
26018 See \`config.log' for more details." >&2;}
26019    { (exit 1); exit 1; }; }; } ;;
26020 esac
26021 else
26022   if test "$cross_compiling" = yes; then
26023   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26024 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26025 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26026 See \`config.log' for more details." >&5
26027 echo "$as_me: error: cannot run test program while cross compiling
26028 See \`config.log' for more details." >&2;}
26029    { (exit 1); exit 1; }; }; }
26030 else
26031   cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h.  */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h.  */
26037 $ac_includes_default
26038 long longval () { return (long) (sizeof (void *)); }
26039 unsigned long ulongval () { return (long) (sizeof (void *)); }
26040 #include <stdio.h>
26041 #include <stdlib.h>
26042 int
26043 main ()
26044 {
26045
26046   FILE *f = fopen ("conftest.val", "w");
26047   if (! f)
26048     exit (1);
26049   if (((long) (sizeof (void *))) < 0)
26050     {
26051       long i = longval ();
26052       if (i != ((long) (sizeof (void *))))
26053         exit (1);
26054       fprintf (f, "%ld\n", i);
26055     }
26056   else
26057     {
26058       unsigned long i = ulongval ();
26059       if (i != ((long) (sizeof (void *))))
26060         exit (1);
26061       fprintf (f, "%lu\n", i);
26062     }
26063   exit (ferror (f) || fclose (f) != 0);
26064
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest$ac_exeext
26070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26071   (eval $ac_link) 2>&5
26072   ac_status=$?
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076   (eval $ac_try) 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); }; }; then
26080   ac_cv_sizeof_void_p=`cat conftest.val`
26081 else
26082   echo "$as_me: program exited with status $ac_status" >&5
26083 echo "$as_me: failed program was:" >&5
26084 sed 's/^/| /' conftest.$ac_ext >&5
26085
26086 ( exit $ac_status )
26087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26090 See \`config.log' for more details." >&5
26091 echo "$as_me: error: cannot compute sizeof (void *), 77
26092 See \`config.log' for more details." >&2;}
26093    { (exit 1); exit 1; }; }; }
26094 fi
26095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26096 fi
26097 fi
26098 rm -f conftest.val
26099 else
26100   ac_cv_sizeof_void_p=0
26101 fi
26102 fi
26103 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26104 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26105 cat >>confdefs.h <<_ACEOF
26106 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26107 _ACEOF
26108
26109
26110
26111 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26112 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26113 if test "${ac_cv_c_bigendian+set}" = set; then
26114   echo $ECHO_N "(cached) $ECHO_C" >&6
26115 else
26116   # See if sys/param.h defines the BYTE_ORDER macro.
26117 cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123 #include <sys/types.h>
26124 #include <sys/param.h>
26125
26126 int
26127 main ()
26128 {
26129 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26130  bogus endian macros
26131 #endif
26132
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26139   (eval $ac_compile) 2>conftest.er1
26140   ac_status=$?
26141   grep -v '^ *+' conftest.er1 >conftest.err
26142   rm -f conftest.er1
26143   cat conftest.err >&5
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -z "$ac_c_werror_flag"
26147                          || test ! -s conftest.err'
26148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149   (eval $ac_try) 2>&5
26150   ac_status=$?
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); }; } &&
26153          { ac_try='test -s conftest.$ac_objext'
26154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155   (eval $ac_try) 2>&5
26156   ac_status=$?
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); }; }; then
26159   # It does; now see whether it defined to BIG_ENDIAN or not.
26160 cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166 #include <sys/types.h>
26167 #include <sys/param.h>
26168
26169 int
26170 main ()
26171 {
26172 #if BYTE_ORDER != BIG_ENDIAN
26173  not big endian
26174 #endif
26175
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182   (eval $ac_compile) 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } &&
26189          { ac_try='test -z "$ac_c_werror_flag"
26190                          || test ! -s conftest.err'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; } &&
26196          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26202   ac_cv_c_bigendian=yes
26203 else
26204   echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 ac_cv_c_bigendian=no
26208 fi
26209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26210 else
26211   echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214 # It does not; compile a test program.
26215 if test "$cross_compiling" = yes; then
26216   # try to guess the endianness by grepping values into an object file
26217   ac_cv_c_bigendian=unknown
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26225 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26227 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26228 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26230 int
26231 main ()
26232 {
26233  _ascii (); _ebcdic ();
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 rm -f conftest.$ac_objext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26240   (eval $ac_compile) 2>conftest.er1
26241   ac_status=$?
26242   grep -v '^ *+' conftest.er1 >conftest.err
26243   rm -f conftest.er1
26244   cat conftest.err >&5
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); } &&
26247          { ac_try='test -z "$ac_c_werror_flag"
26248                          || test ! -s conftest.err'
26249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250   (eval $ac_try) 2>&5
26251   ac_status=$?
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); }; } &&
26254          { ac_try='test -s conftest.$ac_objext'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; }; then
26260   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26261   ac_cv_c_bigendian=yes
26262 fi
26263 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26264   if test "$ac_cv_c_bigendian" = unknown; then
26265     ac_cv_c_bigendian=no
26266   else
26267     # finding both strings is unlikely to happen, but who knows?
26268     ac_cv_c_bigendian=unknown
26269   fi
26270 fi
26271 else
26272   echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275 fi
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 else
26278   cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 int
26285 main ()
26286 {
26287   /* Are we little or big endian?  From Harbison&Steele.  */
26288   union
26289   {
26290     long l;
26291     char c[sizeof (long)];
26292   } u;
26293   u.l = 1;
26294   exit (u.c[sizeof (long) - 1] == 1);
26295 }
26296 _ACEOF
26297 rm -f conftest$ac_exeext
26298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26299   (eval $ac_link) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   ac_cv_c_bigendian=no
26309 else
26310   echo "$as_me: program exited with status $ac_status" >&5
26311 echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314 ( exit $ac_status )
26315 ac_cv_c_bigendian=yes
26316 fi
26317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26318 fi
26319 fi
26320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26321 fi
26322 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26324 case $ac_cv_c_bigendian in
26325   yes)
26326
26327 cat >>confdefs.h <<\_ACEOF
26328 #define WORDS_BIGENDIAN 1
26329 _ACEOF
26330  ;;
26331   no)
26332      ;;
26333   *)
26334     { { echo "$as_me:$LINENO: error: unknown endianness
26335 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26336 echo "$as_me: error: unknown endianness
26337 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26338    { (exit 1); exit 1; }; } ;;
26339 esac
26340
26341
26342 ZLIBS=
26343 SYS_ZLIBS=
26344 ZINCS=
26345
26346 if test -z "$ZLIBSPEC"; then
26347    # Use zlib from the GCC tree.
26348    ZINCS='-I$(top_srcdir)/../zlib'
26349    ZLIBS=../zlib/libzgcj_convenience.la
26350 else
26351    # System's zlib.
26352    SYS_ZLIBS="$ZLIBSPEC"
26353 fi
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365 if test "$NATIVE" = yes; then
26366   NATIVE_TRUE=
26367   NATIVE_FALSE='#'
26368 else
26369   NATIVE_TRUE='#'
26370   NATIVE_FALSE=
26371 fi
26372
26373
26374
26375 if test "$enable_shared" = yes; then
26376   ENABLE_SHARED_TRUE=
26377   ENABLE_SHARED_FALSE='#'
26378 else
26379   ENABLE_SHARED_TRUE='#'
26380   ENABLE_SHARED_FALSE=
26381 fi
26382
26383
26384
26385 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26386   NEEDS_DATA_START_TRUE=
26387   NEEDS_DATA_START_FALSE='#'
26388 else
26389   NEEDS_DATA_START_TRUE='#'
26390   NEEDS_DATA_START_FALSE=
26391 fi
26392
26393
26394
26395 if test -z "${with_multisubdir}"; then
26396   INSTALL_BINARIES_TRUE=
26397   INSTALL_BINARIES_FALSE='#'
26398 else
26399   INSTALL_BINARIES_TRUE='#'
26400   INSTALL_BINARIES_FALSE=
26401 fi
26402
26403
26404
26405 # Process the option "--enable-version-specific-runtime-libs"
26406 # Calculate toolexeclibdir
26407 case ${version_specific_libs} in
26408   yes)
26409     # Need the gcc compiler version to know where to install libraries
26410     # and header files if --enable-version-specific-runtime-libs option
26411     # is selected.
26412     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26413     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26414     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26415     toolexeclibdir=$toolexecmainlibdir
26416     ;;
26417   no)
26418     if test -n "$with_cross_host" &&
26419        test x"$with_cross_host" != x"no"; then
26420       # Install a library built with a cross compiler in tooldir, not libdir.
26421       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26422       toolexecmainlibdir='$(toolexecdir)/lib'
26423     else
26424       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26425       toolexecmainlibdir='$(libdir)'
26426     fi
26427     multi_os_directory=`$CC -print-multi-os-directory`
26428     case $multi_os_directory in
26429       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26430       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26431     esac
26432     ;;
26433 esac
26434
26435
26436
26437
26438 # Determine gcj and libgcj version number.
26439 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26440 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26441 GCJVERSION=$gcjversion
26442
26443
26444 cat >>confdefs.h <<_ACEOF
26445 #define GCJVERSION "$GCJVERSION"
26446 _ACEOF
26447
26448
26449 # Determine where the standard .db file and GNU Classpath JNI
26450 # libraries are found.
26451 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26452 multi_os_directory=`$CC -print-multi-os-directory`
26453 case $multi_os_directory in
26454   .)
26455    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26456    ;;
26457   *)
26458    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26459    ;;
26460 esac
26461
26462
26463
26464
26465 cat >>confdefs.h <<\_ACEOF
26466 #define JV_VERSION "1.5.0"
26467 _ACEOF
26468
26469
26470 cat >>confdefs.h <<\_ACEOF
26471 #define JV_API_VERSION "1.5"
26472 _ACEOF
26473
26474
26475
26476 case "${with_gxx_include_dir}" in
26477   yes)
26478     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26479 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26480    { (exit 1); exit 1; }; }
26481     ;;
26482   no | "")
26483     case "${enable_version_specific_runtime_libs}" in
26484       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26485       *)
26486         libstdcxx_incdir='c++/$(gcc_version)'
26487         gxx_include_dir='include/$(libstdcxx_incdir)'
26488         if test -n "$with_cross_host" &&
26489            test x"$with_cross_host" != x"no"; then
26490           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26491         else
26492           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26493         fi;;
26494     esac ;;
26495   *) gxx_include_dir=${with_gxx_include_dir} ;;
26496 esac
26497
26498
26499
26500
26501 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26502 # On that system, sys/ioctl.h will not include sys/filio.h unless
26503 # BSD_COMP is defined; just including sys/filio.h is simpler.
26504 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26505 # for now.  If you change this, you also must update natFile.cc.
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26530                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26531                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26532                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26533                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26534 do
26535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26537   echo "$as_me:$LINENO: checking for $ac_header" >&5
26538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 fi
26542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26544 else
26545   # Is the header compilable?
26546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26548 cat >conftest.$ac_ext <<_ACEOF
26549 /* confdefs.h.  */
26550 _ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h.  */
26554 $ac_includes_default
26555 #include <$ac_header>
26556 _ACEOF
26557 rm -f conftest.$ac_objext
26558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26559   (eval $ac_compile) 2>conftest.er1
26560   ac_status=$?
26561   grep -v '^ *+' conftest.er1 >conftest.err
26562   rm -f conftest.er1
26563   cat conftest.err >&5
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); } &&
26566          { ac_try='test -z "$ac_c_werror_flag"
26567                          || test ! -s conftest.err'
26568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569   (eval $ac_try) 2>&5
26570   ac_status=$?
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); }; } &&
26573          { ac_try='test -s conftest.$ac_objext'
26574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575   (eval $ac_try) 2>&5
26576   ac_status=$?
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); }; }; then
26579   ac_header_compiler=yes
26580 else
26581   echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 ac_header_compiler=no
26585 fi
26586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26588 echo "${ECHO_T}$ac_header_compiler" >&6
26589
26590 # Is the header present?
26591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26593 cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599 #include <$ac_header>
26600 _ACEOF
26601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26603   ac_status=$?
26604   grep -v '^ *+' conftest.er1 >conftest.err
26605   rm -f conftest.er1
26606   cat conftest.err >&5
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); } >/dev/null; then
26609   if test -s conftest.err; then
26610     ac_cpp_err=$ac_c_preproc_warn_flag
26611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26612   else
26613     ac_cpp_err=
26614   fi
26615 else
26616   ac_cpp_err=yes
26617 fi
26618 if test -z "$ac_cpp_err"; then
26619   ac_header_preproc=yes
26620 else
26621   echo "$as_me: failed program was:" >&5
26622 sed 's/^/| /' conftest.$ac_ext >&5
26623
26624   ac_header_preproc=no
26625 fi
26626 rm -f conftest.err conftest.$ac_ext
26627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26628 echo "${ECHO_T}$ac_header_preproc" >&6
26629
26630 # So?  What about this header?
26631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26632   yes:no: )
26633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26637     ac_header_preproc=yes
26638     ;;
26639   no:yes:* )
26640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26652     (
26653       cat <<\_ASBOX
26654 ## ---------------------------------- ##
26655 ## Report this to the libjava lists.  ##
26656 ## ---------------------------------- ##
26657 _ASBOX
26658     ) |
26659       sed "s/^/$as_me: WARNING:     /" >&2
26660     ;;
26661 esac
26662 echo "$as_me:$LINENO: checking for $ac_header" >&5
26663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   eval "$as_ac_Header=\$ac_header_preproc"
26668 fi
26669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26671
26672 fi
26673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26674   cat >>confdefs.h <<_ACEOF
26675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26676 _ACEOF
26677
26678 fi
26679
26680 done
26681
26682
26683 for ac_header in inttypes.h
26684 do
26685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26687   echo "$as_me:$LINENO: checking for $ac_header" >&5
26688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 fi
26692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26694 else
26695   # Is the header compilable?
26696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 $ac_includes_default
26705 #include <$ac_header>
26706 _ACEOF
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709   (eval $ac_compile) 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } &&
26716          { ac_try='test -z "$ac_c_werror_flag"
26717                          || test ! -s conftest.err'
26718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719   (eval $ac_try) 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; } &&
26723          { ac_try='test -s conftest.$ac_objext'
26724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725   (eval $ac_try) 2>&5
26726   ac_status=$?
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); }; }; then
26729   ac_header_compiler=yes
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734 ac_header_compiler=no
26735 fi
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26738 echo "${ECHO_T}$ac_header_compiler" >&6
26739
26740 # Is the header present?
26741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 #include <$ac_header>
26750 _ACEOF
26751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26753   ac_status=$?
26754   grep -v '^ *+' conftest.er1 >conftest.err
26755   rm -f conftest.er1
26756   cat conftest.err >&5
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); } >/dev/null; then
26759   if test -s conftest.err; then
26760     ac_cpp_err=$ac_c_preproc_warn_flag
26761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26762   else
26763     ac_cpp_err=
26764   fi
26765 else
26766   ac_cpp_err=yes
26767 fi
26768 if test -z "$ac_cpp_err"; then
26769   ac_header_preproc=yes
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774   ac_header_preproc=no
26775 fi
26776 rm -f conftest.err conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26778 echo "${ECHO_T}$ac_header_preproc" >&6
26779
26780 # So?  What about this header?
26781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26782   yes:no: )
26783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26787     ac_header_preproc=yes
26788     ;;
26789   no:yes:* )
26790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26802     (
26803       cat <<\_ASBOX
26804 ## ---------------------------------- ##
26805 ## Report this to the libjava lists.  ##
26806 ## ---------------------------------- ##
26807 _ASBOX
26808     ) |
26809       sed "s/^/$as_me: WARNING:     /" >&2
26810     ;;
26811 esac
26812 echo "$as_me:$LINENO: checking for $ac_header" >&5
26813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815   echo $ECHO_N "(cached) $ECHO_C" >&6
26816 else
26817   eval "$as_ac_Header=\$ac_header_preproc"
26818 fi
26819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26821
26822 fi
26823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26824   cat >>confdefs.h <<_ACEOF
26825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26826 _ACEOF
26827
26828
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_INTTYPES_H 1
26831 _ACEOF
26832
26833
26834 cat >>confdefs.h <<\_ACEOF
26835 #define JV_HAVE_INTTYPES_H 1
26836 _ACEOF
26837
26838
26839 fi
26840
26841 done
26842
26843
26844 echo "$as_me:$LINENO: checking for ssize_t" >&5
26845 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26846 if test "${ac_cv_type_ssize_t+set}" = set; then
26847   echo $ECHO_N "(cached) $ECHO_C" >&6
26848 else
26849   cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h.  */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h.  */
26855 $ac_includes_default
26856 int
26857 main ()
26858 {
26859 if ((ssize_t *) 0)
26860   return 0;
26861 if (sizeof (ssize_t))
26862   return 0;
26863   ;
26864   return 0;
26865 }
26866 _ACEOF
26867 rm -f conftest.$ac_objext
26868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26869   (eval $ac_compile) 2>conftest.er1
26870   ac_status=$?
26871   grep -v '^ *+' conftest.er1 >conftest.err
26872   rm -f conftest.er1
26873   cat conftest.err >&5
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); } &&
26876          { ac_try='test -z "$ac_c_werror_flag"
26877                          || test ! -s conftest.err'
26878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879   (eval $ac_try) 2>&5
26880   ac_status=$?
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); }; } &&
26883          { ac_try='test -s conftest.$ac_objext'
26884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885   (eval $ac_try) 2>&5
26886   ac_status=$?
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); }; }; then
26889   ac_cv_type_ssize_t=yes
26890 else
26891   echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26893
26894 ac_cv_type_ssize_t=no
26895 fi
26896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26897 fi
26898 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26899 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26900 if test $ac_cv_type_ssize_t = yes; then
26901   :
26902 else
26903
26904 cat >>confdefs.h <<_ACEOF
26905 #define ssize_t int
26906 _ACEOF
26907
26908 fi
26909
26910 echo "$as_me:$LINENO: checking for magic_t" >&5
26911 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26912 if test "${ac_cv_type_magic_t+set}" = set; then
26913   echo $ECHO_N "(cached) $ECHO_C" >&6
26914 else
26915   cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921
26922 #ifdef HAVE_MAGIC_H
26923 #include <magic.h>
26924 #endif
26925
26926 int
26927 main ()
26928 {
26929 if ((magic_t *) 0)
26930   return 0;
26931 if (sizeof (magic_t))
26932   return 0;
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext
26938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26939   (eval $ac_compile) 2>conftest.er1
26940   ac_status=$?
26941   grep -v '^ *+' conftest.er1 >conftest.err
26942   rm -f conftest.er1
26943   cat conftest.err >&5
26944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945   (exit $ac_status); } &&
26946          { ac_try='test -z "$ac_c_werror_flag"
26947                          || test ! -s conftest.err'
26948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949   (eval $ac_try) 2>&5
26950   ac_status=$?
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); }; } &&
26953          { ac_try='test -s conftest.$ac_objext'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; }; then
26959   ac_cv_type_magic_t=yes
26960 else
26961   echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26963
26964 ac_cv_type_magic_t=no
26965 fi
26966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26967 fi
26968 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26969 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26970 if test $ac_cv_type_magic_t = yes; then
26971
26972
26973 cat >>confdefs.h <<\_ACEOF
26974 #define HAVE_MAGIC_T 1
26975 _ACEOF
26976
26977 fi
26978
26979
26980 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26981 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26982 cat >conftest.$ac_ext <<_ACEOF
26983 /* confdefs.h.  */
26984 _ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h.  */
26988 #include <sys/types.h>
26989 #if STDC_HEADERS
26990 #include <stdlib.h>
26991 #include <stddef.h>
26992 #endif
26993 #if HAVE_NETINET_IN_H
26994 #include <netinet/in.h>
26995 #endif
26996 int
26997 main ()
26998 {
26999 in_addr_t foo;
27000   ;
27001   return 0;
27002 }
27003 _ACEOF
27004 rm -f conftest.$ac_objext
27005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27006   (eval $ac_compile) 2>conftest.er1
27007   ac_status=$?
27008   grep -v '^ *+' conftest.er1 >conftest.err
27009   rm -f conftest.er1
27010   cat conftest.err >&5
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); } &&
27013          { ac_try='test -z "$ac_c_werror_flag"
27014                          || test ! -s conftest.err'
27015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016   (eval $ac_try) 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); }; } &&
27020          { ac_try='test -s conftest.$ac_objext'
27021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022   (eval $ac_try) 2>&5
27023   ac_status=$?
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); }; }; then
27026
27027 cat >>confdefs.h <<\_ACEOF
27028 #define HAVE_IN_ADDR_T 1
27029 _ACEOF
27030
27031    echo "$as_me:$LINENO: result: yes" >&5
27032 echo "${ECHO_T}yes" >&6
27033 else
27034   echo "$as_me: failed program was:" >&5
27035 sed 's/^/| /' conftest.$ac_ext >&5
27036
27037 echo "$as_me:$LINENO: result: no" >&5
27038 echo "${ECHO_T}no" >&6
27039 fi
27040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041
27042 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
27043 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
27044 cat >conftest.$ac_ext <<_ACEOF
27045 /* confdefs.h.  */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h.  */
27050 #include <netinet/in.h>
27051 int
27052 main ()
27053 {
27054 struct ip_mreq mreq;
27055   ;
27056   return 0;
27057 }
27058 _ACEOF
27059 rm -f conftest.$ac_objext
27060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27061   (eval $ac_compile) 2>conftest.er1
27062   ac_status=$?
27063   grep -v '^ *+' conftest.er1 >conftest.err
27064   rm -f conftest.er1
27065   cat conftest.err >&5
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } &&
27068          { ac_try='test -z "$ac_c_werror_flag"
27069                          || test ! -s conftest.err'
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); }; } &&
27075          { ac_try='test -s conftest.$ac_objext'
27076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077   (eval $ac_try) 2>&5
27078   ac_status=$?
27079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080   (exit $ac_status); }; }; then
27081
27082 cat >>confdefs.h <<\_ACEOF
27083 #define HAVE_STRUCT_IP_MREQ 1
27084 _ACEOF
27085
27086    echo "$as_me:$LINENO: result: yes" >&5
27087 echo "${ECHO_T}yes" >&6
27088 else
27089   echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27091
27092 echo "$as_me:$LINENO: result: no" >&5
27093 echo "${ECHO_T}no" >&6
27094 fi
27095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27096
27097 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
27098 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
27099 cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105 #include <netinet/in.h>
27106 int
27107 main ()
27108 {
27109 struct ipv6_mreq mreq6;
27110   ;
27111   return 0;
27112 }
27113 _ACEOF
27114 rm -f conftest.$ac_objext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27116   (eval $ac_compile) 2>conftest.er1
27117   ac_status=$?
27118   grep -v '^ *+' conftest.er1 >conftest.err
27119   rm -f conftest.er1
27120   cat conftest.err >&5
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); } &&
27123          { ac_try='test -z "$ac_c_werror_flag"
27124                          || test ! -s conftest.err'
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); }; } &&
27130          { ac_try='test -s conftest.$ac_objext'
27131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132   (eval $ac_try) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; }; then
27136
27137 cat >>confdefs.h <<\_ACEOF
27138 #define HAVE_STRUCT_IPV6_MREQ 1
27139 _ACEOF
27140
27141    echo "$as_me:$LINENO: result: yes" >&5
27142 echo "${ECHO_T}yes" >&6
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 echo "$as_me:$LINENO: result: no" >&5
27148 echo "${ECHO_T}no" >&6
27149 fi
27150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27151
27152 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27153 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27154 cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 #include <netinet/in.h>
27161 int
27162 main ()
27163 {
27164 struct sockaddr_in6 addr6;
27165   ;
27166   return 0;
27167 }
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27171   (eval $ac_compile) 2>conftest.er1
27172   ac_status=$?
27173   grep -v '^ *+' conftest.er1 >conftest.err
27174   rm -f conftest.er1
27175   cat conftest.err >&5
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); } &&
27178          { ac_try='test -z "$ac_c_werror_flag"
27179                          || test ! -s conftest.err'
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); }; } &&
27185          { ac_try='test -s conftest.$ac_objext'
27186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187   (eval $ac_try) 2>&5
27188   ac_status=$?
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); }; }; then
27191
27192 cat >>confdefs.h <<\_ACEOF
27193 #define HAVE_INET6 1
27194 _ACEOF
27195
27196    echo "$as_me:$LINENO: result: yes" >&5
27197 echo "${ECHO_T}yes" >&6
27198 else
27199   echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27201
27202 echo "$as_me:$LINENO: result: no" >&5
27203 echo "${ECHO_T}no" >&6
27204 fi
27205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27206
27207 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27208 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27209 cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 #define _POSIX_PII_SOCKET
27216 #include <sys/types.h>
27217 #include <sys/socket.h>
27218 int
27219 main ()
27220 {
27221 socklen_t x = 5;
27222   ;
27223   return 0;
27224 }
27225 _ACEOF
27226 rm -f conftest.$ac_objext
27227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27228   (eval $ac_compile) 2>conftest.er1
27229   ac_status=$?
27230   grep -v '^ *+' conftest.er1 >conftest.err
27231   rm -f conftest.er1
27232   cat conftest.err >&5
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); } &&
27235          { ac_try='test -z "$ac_c_werror_flag"
27236                          || test ! -s conftest.err'
27237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27238   (eval $ac_try) 2>&5
27239   ac_status=$?
27240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241   (exit $ac_status); }; } &&
27242          { ac_try='test -s conftest.$ac_objext'
27243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244   (eval $ac_try) 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; }; then
27248
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_SOCKLEN_T 1
27251 _ACEOF
27252
27253    echo "$as_me:$LINENO: result: yes" >&5
27254 echo "${ECHO_T}yes" >&6
27255 else
27256   echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27258
27259 echo "$as_me:$LINENO: result: no" >&5
27260 echo "${ECHO_T}no" >&6
27261 fi
27262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27263
27264 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27265 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27266 cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272 #include <time.h>
27273 int
27274 main ()
27275 {
27276 struct tm tim; tim.tm_gmtoff = 0;
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext
27282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27283   (eval $ac_compile) 2>conftest.er1
27284   ac_status=$?
27285   grep -v '^ *+' conftest.er1 >conftest.err
27286   rm -f conftest.er1
27287   cat conftest.err >&5
27288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289   (exit $ac_status); } &&
27290          { ac_try='test -z "$ac_c_werror_flag"
27291                          || test ! -s conftest.err'
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); }; } &&
27297          { ac_try='test -s conftest.$ac_objext'
27298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299   (eval $ac_try) 2>&5
27300   ac_status=$?
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); }; }; then
27303
27304 cat >>confdefs.h <<\_ACEOF
27305 #define STRUCT_TM_HAS_GMTOFF 1
27306 _ACEOF
27307
27308    echo "$as_me:$LINENO: result: yes" >&5
27309 echo "${ECHO_T}yes" >&6
27310 else
27311   echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27313
27314 echo "$as_me:$LINENO: result: no" >&5
27315 echo "${ECHO_T}no" >&6
27316    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27317 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27318                cat >conftest.$ac_ext <<_ACEOF
27319 /* confdefs.h.  */
27320 _ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h.  */
27324 #include <time.h>
27325 int
27326 main ()
27327 {
27328 void i(){long z2 = 2*timezone;}
27329   ;
27330   return 0;
27331 }
27332 _ACEOF
27333 rm -f conftest.$ac_objext
27334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27335   (eval $ac_compile) 2>conftest.er1
27336   ac_status=$?
27337   grep -v '^ *+' conftest.er1 >conftest.err
27338   rm -f conftest.er1
27339   cat conftest.err >&5
27340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); } &&
27342          { ac_try='test -z "$ac_c_werror_flag"
27343                          || test ! -s conftest.err'
27344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345   (eval $ac_try) 2>&5
27346   ac_status=$?
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); }; } &&
27349          { ac_try='test -s conftest.$ac_objext'
27350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351   (eval $ac_try) 2>&5
27352   ac_status=$?
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); }; }; then
27355
27356 cat >>confdefs.h <<\_ACEOF
27357 #define HAVE_TIMEZONE 1
27358 _ACEOF
27359
27360       echo "$as_me:$LINENO: result: yes" >&5
27361 echo "${ECHO_T}yes" >&6
27362 else
27363   echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366 echo "$as_me:$LINENO: result: no" >&5
27367 echo "${ECHO_T}no" >&6
27368        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27369 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27370               cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376 #include <time.h>
27377 int
27378 main ()
27379 {
27380 long z2 = _timezone;
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 rm -f conftest.$ac_objext
27386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27387   (eval $ac_compile) 2>conftest.er1
27388   ac_status=$?
27389   grep -v '^ *+' conftest.er1 >conftest.err
27390   rm -f conftest.er1
27391   cat conftest.err >&5
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); } &&
27394          { ac_try='test -z "$ac_c_werror_flag"
27395                          || test ! -s conftest.err'
27396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397   (eval $ac_try) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; } &&
27401          { ac_try='test -s conftest.$ac_objext'
27402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403   (eval $ac_try) 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; }; then
27407
27408 cat >>confdefs.h <<\_ACEOF
27409 #define HAVE_UNDERSCORE_TIMEZONE 1
27410 _ACEOF
27411
27412           echo "$as_me:$LINENO: result: yes" >&5
27413 echo "${ECHO_T}yes" >&6
27414 else
27415   echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418 echo "$as_me:$LINENO: result: no" >&5
27419 echo "${ECHO_T}no" >&6
27420 fi
27421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27422 fi
27423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27424 fi
27425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426
27427 for ac_prog in perl
27428 do
27429   # Extract the first word of "$ac_prog", so it can be a program name with args.
27430 set dummy $ac_prog; ac_word=$2
27431 echo "$as_me:$LINENO: checking for $ac_word" >&5
27432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27433 if test "${ac_cv_prog_PERL+set}" = set; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 else
27436   if test -n "$PERL"; then
27437   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27438 else
27439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27440 for as_dir in $PATH
27441 do
27442   IFS=$as_save_IFS
27443   test -z "$as_dir" && as_dir=.
27444   for ac_exec_ext in '' $ac_executable_extensions; do
27445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27446     ac_cv_prog_PERL="$ac_prog"
27447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27448     break 2
27449   fi
27450 done
27451 done
27452
27453 fi
27454 fi
27455 PERL=$ac_cv_prog_PERL
27456 if test -n "$PERL"; then
27457   echo "$as_me:$LINENO: result: $PERL" >&5
27458 echo "${ECHO_T}$PERL" >&6
27459 else
27460   echo "$as_me:$LINENO: result: no" >&5
27461 echo "${ECHO_T}no" >&6
27462 fi
27463
27464   test -n "$PERL" && break
27465 done
27466 test -n "$PERL" || PERL="false"
27467
27468
27469 SYSDEP_SOURCES=
27470 SIGNAL_HANDLER_AUX=
27471
27472 case "${host}" in
27473  i?86-*-linux*)
27474     SIGNAL_HANDLER=include/i386-signal.h
27475     ;;
27476  sparc*-sun-solaris*)
27477     SIGNAL_HANDLER=include/sparc-signal.h
27478     ;;
27479 # ia64-*)
27480 #    SYSDEP_SOURCES=sysdep/ia64.c
27481 #    test -d sysdep || mkdir sysdep
27482 #    ;;
27483  hppa*-*-linux*)
27484     SIGNAL_HANDLER=include/pa-signal.h
27485     ;;
27486  hppa*-hp-hpux*)
27487     SIGNAL_HANDLER=include/hppa-signal.h
27488     ;;
27489  ia64-*-linux*)
27490     SIGNAL_HANDLER=include/dwarf2-signal.h
27491     ;;
27492  powerpc*-*-linux*)
27493     SIGNAL_HANDLER=include/powerpc-signal.h
27494     ;;
27495  alpha*-*-linux*)
27496     SIGNAL_HANDLER=include/dwarf2-signal.h
27497     ;;
27498  s390*-*-linux*)
27499     SIGNAL_HANDLER=include/s390-signal.h
27500     ;;
27501  x86_64*-*-linux*)
27502     SIGNAL_HANDLER=include/x86_64-signal.h
27503     SIGNAL_HANDLER_AUX=include/i386-signal.h
27504     ;;
27505  sparc*-*-linux*)
27506     SIGNAL_HANDLER=include/dwarf2-signal.h
27507     ;;
27508  sh*-*-linux*)
27509     SIGNAL_HANDLER=include/sh-signal.h
27510     ;;
27511  *mingw*)
27512     SIGNAL_HANDLER=include/win32-signal.h
27513     ;;
27514  mips*-*-linux*)
27515     SIGNAL_HANDLER=include/mips-signal.h
27516     ;;
27517  m68*-*-linux*)
27518     SIGNAL_HANDLER=include/dwarf2-signal.h
27519     ;;
27520  powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27521     SIGNAL_HANDLER=include/darwin-signal.h
27522     ;;
27523  powerpc*-*-aix*)
27524     SIGNAL_HANDLER=include/aix-signal.h
27525     ;;
27526  *)
27527     SIGNAL_HANDLER=include/default-signal.h
27528     ;;
27529 esac
27530
27531 # If we're using sjlj exceptions, forget what we just learned.
27532 if test "$enable_sjlj_exceptions" = yes; then
27533    SIGNAL_HANDLER=include/default-signal.h
27534    SIGNAL_HANDLER_AUX=
27535 fi
27536
27537
27538
27539 if test -z "$SIGNAL_HANDLER_AUX"; then
27540   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27541 fi
27542
27543                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27544
27545
27546 if test "${multilib}" = "yes"; then
27547   multilib_arg="--enable-multilib"
27548 else
27549   multilib_arg=
27550 fi
27551
27552 # See if we support thread-local storage.
27553
27554    # Check whether --enable-tls or --disable-tls was given.
27555 if test "${enable_tls+set}" = set; then
27556   enableval="$enable_tls"
27557
27558       case "$enableval" in
27559        yes|no) ;;
27560        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27561 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27562    { (exit 1); exit 1; }; } ;;
27563       esac
27564
27565 else
27566   enable_tls=yes
27567 fi;
27568
27569   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27570 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27571 if test "${gcc_cv_have_tls+set}" = set; then
27572   echo $ECHO_N "(cached) $ECHO_C" >&6
27573 else
27574
27575     if test "$cross_compiling" = yes; then
27576                 if test x$gcc_no_link = xyes; then
27577   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27579    { (exit 1); exit 1; }; }
27580 fi
27581 cat >conftest.$ac_ext <<_ACEOF
27582 __thread int a; int b; int main() { return a = b; }
27583 _ACEOF
27584 rm -f conftest.$ac_objext conftest$ac_exeext
27585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27586   (eval $ac_link) 2>conftest.er1
27587   ac_status=$?
27588   grep -v '^ *+' conftest.er1 >conftest.err
27589   rm -f conftest.er1
27590   cat conftest.err >&5
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); } &&
27593          { ac_try='test -z "$ac_c_werror_flag"
27594                          || test ! -s conftest.err'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; } &&
27600          { ac_try='test -s conftest$ac_exeext'
27601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602   (eval $ac_try) 2>&5
27603   ac_status=$?
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); }; }; then
27606   gcc_cv_have_tls=yes
27607 else
27608   echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27610
27611 gcc_cv_have_tls=no
27612 fi
27613 rm -f conftest.err conftest.$ac_objext \
27614       conftest$ac_exeext conftest.$ac_ext
27615
27616
27617 else
27618   cat >conftest.$ac_ext <<_ACEOF
27619 __thread int a; int b; int main() { return a = b; }
27620 _ACEOF
27621 rm -f conftest$ac_exeext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27623   (eval $ac_link) 2>&5
27624   ac_status=$?
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; }; then
27632                       chktls_save_LDFLAGS="$LDFLAGS"
27633       LDFLAGS="-static $LDFLAGS"
27634       if test x$gcc_no_link = xyes; then
27635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27637    { (exit 1); exit 1; }; }
27638 fi
27639 cat >conftest.$ac_ext <<_ACEOF
27640 int main() { return 0; }
27641 _ACEOF
27642 rm -f conftest.$ac_objext conftest$ac_exeext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27644   (eval $ac_link) 2>conftest.er1
27645   ac_status=$?
27646   grep -v '^ *+' conftest.er1 >conftest.err
27647   rm -f conftest.er1
27648   cat conftest.err >&5
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); } &&
27651          { ac_try='test -z "$ac_c_werror_flag"
27652                          || test ! -s conftest.err'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; } &&
27658          { ac_try='test -s conftest$ac_exeext'
27659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660   (eval $ac_try) 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   if test "$cross_compiling" = yes; then
27665   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27667 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27668 See \`config.log' for more details." >&5
27669 echo "$as_me: error: cannot run test program while cross compiling
27670 See \`config.log' for more details." >&2;}
27671    { (exit 1); exit 1; }; }; }
27672 else
27673   cat >conftest.$ac_ext <<_ACEOF
27674 __thread int a; int b; int main() { return a = b; }
27675 _ACEOF
27676 rm -f conftest$ac_exeext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27678   (eval $ac_link) 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683   (eval $ac_try) 2>&5
27684   ac_status=$?
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); }; }; then
27687   gcc_cv_have_tls=yes
27688 else
27689   echo "$as_me: program exited with status $ac_status" >&5
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693 ( exit $ac_status )
27694 gcc_cv_have_tls=no
27695 fi
27696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27697 fi
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702 gcc_cv_have_tls=yes
27703 fi
27704 rm -f conftest.err conftest.$ac_objext \
27705       conftest$ac_exeext conftest.$ac_ext
27706       LDFLAGS="$chktls_save_LDFLAGS"
27707       if test $gcc_cv_have_tls = yes; then
27708                                                 chktls_save_CFLAGS="$CFLAGS"
27709         thread_CFLAGS=failed
27710         for flag in '' '-pthread' '-lpthread'; do
27711           CFLAGS="$flag $chktls_save_CFLAGS"
27712           if test x$gcc_no_link = xyes; then
27713   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27715    { (exit 1); exit 1; }; }
27716 fi
27717 cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723 #include <pthread.h>
27724                 void *g(void *d) { return NULL; }
27725 int
27726 main ()
27727 {
27728 pthread_t t; pthread_create(&t,NULL,g,NULL);
27729   ;
27730   return 0;
27731 }
27732 _ACEOF
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27735   (eval $ac_link) 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } &&
27742          { ac_try='test -z "$ac_c_werror_flag"
27743                          || test ! -s conftest.err'
27744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745   (eval $ac_try) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; } &&
27749          { ac_try='test -s conftest$ac_exeext'
27750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751   (eval $ac_try) 2>&5
27752   ac_status=$?
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); }; }; then
27755   thread_CFLAGS="$flag"
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 fi
27761 rm -f conftest.err conftest.$ac_objext \
27762       conftest$ac_exeext conftest.$ac_ext
27763           if test "X$thread_CFLAGS" != Xfailed; then
27764             break
27765           fi
27766         done
27767         CFLAGS="$chktls_save_CFLAGS"
27768         if test "X$thread_CFLAGS" != Xfailed; then
27769           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27770           if test "$cross_compiling" = yes; then
27771   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27772 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27774 See \`config.log' for more details." >&5
27775 echo "$as_me: error: cannot run test program while cross compiling
27776 See \`config.log' for more details." >&2;}
27777    { (exit 1); exit 1; }; }; }
27778 else
27779   cat >conftest.$ac_ext <<_ACEOF
27780 /* confdefs.h.  */
27781 _ACEOF
27782 cat confdefs.h >>conftest.$ac_ext
27783 cat >>conftest.$ac_ext <<_ACEOF
27784 /* end confdefs.h.  */
27785 #include <pthread.h>
27786                 __thread int a;
27787                 static int *a_in_other_thread;
27788                 static void *
27789                 thread_func (void *arg)
27790                 {
27791                   a_in_other_thread = &a;
27792                   return (void *)0;
27793                 }
27794 int
27795 main ()
27796 {
27797 pthread_t thread;
27798                 void *thread_retval;
27799                 int *a_in_main_thread;
27800                 if (pthread_create (&thread, (pthread_attr_t *)0,
27801                                     thread_func, (void *)0))
27802                   return 0;
27803                 a_in_main_thread = &a;
27804                 if (pthread_join (thread, &thread_retval))
27805                   return 0;
27806                 return (a_in_other_thread == a_in_main_thread);
27807   ;
27808   return 0;
27809 }
27810 _ACEOF
27811 rm -f conftest$ac_exeext
27812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27813   (eval $ac_link) 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818   (eval $ac_try) 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; }; then
27822   gcc_cv_have_tls=yes
27823 else
27824   echo "$as_me: program exited with status $ac_status" >&5
27825 echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27827
27828 ( exit $ac_status )
27829 gcc_cv_have_tls=no
27830 fi
27831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27832 fi
27833           CFLAGS="$chktls_save_CFLAGS"
27834         fi
27835       fi
27836 else
27837   echo "$as_me: program exited with status $ac_status" >&5
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841 ( exit $ac_status )
27842 gcc_cv_have_tls=no
27843 fi
27844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27845 fi
27846 fi
27847 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27848 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27849   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27850
27851 cat >>confdefs.h <<\_ACEOF
27852 #define HAVE_TLS 1
27853 _ACEOF
27854
27855   fi
27856
27857 # For _Unwind_GetIPInfo.
27858
27859
27860 # Check whether --with-system-libunwind or --without-system-libunwind was given.
27861 if test "${with_system_libunwind+set}" = set; then
27862   withval="$with_system_libunwind"
27863
27864 fi;
27865   # If system-libunwind was not specifically set, pick a default setting.
27866   if test x$with_system_libunwind = x; then
27867     case ${target} in
27868       ia64-*-hpux*) with_system_libunwind=yes ;;
27869       *) with_system_libunwind=no ;;
27870     esac
27871   fi
27872   # Based on system-libunwind and target, do we have ipinfo?
27873   if  test x$with_system_libunwind = xyes; then
27874     case ${target} in
27875       ia64-*-*) have_unwind_getipinfo=no ;;
27876       *) have_unwind_getipinfo=yes ;;
27877     esac
27878   else
27879      have_unwind_getipinfo=yes
27880   fi
27881
27882   if test x$have_unwind_getipinfo = xyes; then
27883
27884 cat >>confdefs.h <<\_ACEOF
27885 #define HAVE_GETIPINFO 1
27886 _ACEOF
27887
27888   fi
27889
27890
27891 # See if linker supports anonymous version scripts.
27892 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27893 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27894 if test "${libjava_cv_anon_version_script+set}" = set; then
27895   echo $ECHO_N "(cached) $ECHO_C" >&6
27896 else
27897   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27898    libjava_cv_anon_version_script=no
27899    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27900    echo '{ global: globalsymb*; local: *; };' > conftest.map
27901    if test x$gcc_no_link = xyes; then
27902   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27904    { (exit 1); exit 1; }; }
27905 fi
27906 cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912 void globalsymbol (void) {} void localsymbol (void) {}
27913 int
27914 main ()
27915 {
27916
27917   ;
27918   return 0;
27919 }
27920 _ACEOF
27921 rm -f conftest.$ac_objext conftest$ac_exeext
27922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27923   (eval $ac_link) 2>conftest.er1
27924   ac_status=$?
27925   grep -v '^ *+' conftest.er1 >conftest.err
27926   rm -f conftest.er1
27927   cat conftest.err >&5
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); } &&
27930          { ac_try='test -z "$ac_c_werror_flag"
27931                          || test ! -s conftest.err'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; } &&
27937          { ac_try='test -s conftest$ac_exeext'
27938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939   (eval $ac_try) 2>&5
27940   ac_status=$?
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); }; }; then
27943   libjava_cv_anon_version_script=yes
27944 else
27945   echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27947
27948 fi
27949 rm -f conftest.err conftest.$ac_objext \
27950       conftest$ac_exeext conftest.$ac_ext
27951    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27952
27953 fi
27954 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27955 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27956
27957
27958 if test "$libjava_cv_anon_version_script" = yes; then
27959   ANONVERSCRIPT_TRUE=
27960   ANONVERSCRIPT_FALSE='#'
27961 else
27962   ANONVERSCRIPT_TRUE='#'
27963   ANONVERSCRIPT_FALSE=
27964 fi
27965
27966
27967 # Check if linker supports static linking on a per library basis
27968 LD_START_STATIC_SPEC=
27969 LD_FINISH_STATIC_SPEC=
27970 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27971   if $LD --help 2>&1 | grep -q -e -non_shared ; then
27972     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27973     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27974   fi
27975 fi
27976
27977
27978
27979 here=`${PWDCMD-pwd}`
27980
27981
27982 # We get this from the environment.
27983
27984
27985
27986 # Check whether --with-python-dir or --without-python-dir was given.
27987 if test "${with_python_dir+set}" = set; then
27988   withval="$with_python_dir"
27989   with_python_dir=$withval
27990 else
27991   with_python_dir=""
27992 fi;
27993
27994 if test "x${with_python_dir}" = "x"
27995 then
27996   # Needed for installing Python modules during make install.
27997   python_mod_dir="\${prefix}/share/python"
27998   # Needed for substituting into aot-compile*
27999   python_mod_dir_expanded="${prefix}/share/python"
28000 else
28001   python_mod_dir="\${prefix}${with_python_dir}"
28002   python_mod_dir_expanded="${prefix}${with_python_dir}"
28003 fi
28004 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
28005 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
28006
28007
28008
28009 # needed for aot-compile-rpm
28010 MAKE=`which make`
28011
28012
28013 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
28014 if test "${enable_aot_compile_rpm+set}" = set; then
28015   enableval="$enable_aot_compile_rpm"
28016   case "${enableval}" in
28017     yes) AOT_RPM_ENABLED=yes ;;
28018     no)  AOT_RPM_ENABLED=no ;;
28019     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
28020 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
28021    { (exit 1); exit 1; }; } ;;
28022   esac
28023 else
28024   AOT_RPM_ENABLED=no
28025
28026 fi;
28027
28028
28029 if test "x${AOT_RPM_ENABLED}" = xyes; then
28030   INSTALL_AOT_RPM_TRUE=
28031   INSTALL_AOT_RPM_FALSE='#'
28032 else
28033   INSTALL_AOT_RPM_TRUE='#'
28034   INSTALL_AOT_RPM_FALSE=
28035 fi
28036
28037
28038 # Check whether --enable-java-home or --disable-java-home was given.
28039 if test "${enable_java_home+set}" = set; then
28040   enableval="$enable_java_home"
28041   case "${enableval}" in
28042     yes) JAVA_HOME_ENABLED=yes ;;
28043     no)  JAVA_HOME_ENABLED=no ;;
28044     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
28045 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
28046    { (exit 1); exit 1; }; } ;;
28047   esac
28048 else
28049   JAVA_HOME_ENABLED=no
28050
28051 fi;
28052
28053
28054 if test "x${JAVA_HOME_ENABLED}" = xyes; then
28055   CREATE_JAVA_HOME_TRUE=
28056   CREATE_JAVA_HOME_FALSE='#'
28057 else
28058   CREATE_JAVA_HOME_TRUE='#'
28059   CREATE_JAVA_HOME_FALSE=
28060 fi
28061
28062
28063 # Only do these checks if java-home above is enabled.
28064 if test "x${JAVA_HOME_ENABLED}" = xyes
28065 then
28066
28067
28068 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28069 if test "${with_gcc_suffix+set}" = set; then
28070   withval="$with_gcc_suffix"
28071   gcc_suffix=$withval
28072 else
28073   gcc_suffix=""
28074 fi;
28075   echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28076 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28077
28078
28079
28080 # Check whether --with-arch-directory or --without-arch-directory was given.
28081 if test "${with_arch_directory+set}" = set; then
28082   withval="$with_arch_directory"
28083   host_cpu=$withval
28084 else
28085   host_cpu=""
28086 fi;
28087
28088
28089 # Check whether --with-os-directory or --without-os-directory was given.
28090 if test "${with_os_directory+set}" = set; then
28091   withval="$with_os_directory"
28092   host_os=$withval
28093 else
28094   host_os=""
28095 fi;
28096
28097
28098 # Check whether --with-origin-name or --without-origin-name was given.
28099 if test "${with_origin_name+set}" = set; then
28100   withval="$with_origin_name"
28101   origin_name=$withval
28102 else
28103   origin_name=gcj${gcc_suffix}
28104 fi;
28105   echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28106 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28107
28108
28109 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28110 if test "${with_arch_suffix+set}" = set; then
28111   withval="$with_arch_suffix"
28112   arch_suffix=$withval
28113 else
28114   arch_suffix=""
28115 fi;
28116   echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28117 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28118
28119
28120 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28121 if test "${with_jvm_root_dir+set}" = set; then
28122   withval="$with_jvm_root_dir"
28123   jvm_root_dir=$withval
28124 else
28125   jvm_root_dir="\${prefix}/lib/jvm"
28126 fi;
28127   echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28128 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28129
28130
28131 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28132 if test "${with_jvm_jar_dir+set}" = set; then
28133   withval="$with_jvm_jar_dir"
28134   jvm_jar_dir=$withval
28135 else
28136   jvm_jar_dir=\${prefix}/lib/jvm-exports
28137 fi;
28138   echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28139 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28140
28141   JAVA_VERSION=1.5.0
28142   BUILD_VERSION=0
28143
28144
28145   echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28146 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28147
28148   jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28149   sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28150   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28151   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28152
28153   JVM_ROOT_DIR=${jvm_root_dir}
28154
28155   echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28156 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28157
28158   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28159
28160   echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28161 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28162
28163   JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28164
28165   echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28166 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28167
28168   JRE_DIR=${jre_dir}
28169
28170
28171   SDK_DIR=${sdk_dir}
28172
28173
28174   JRE_LNK=${jre_lnk}
28175
28176
28177   SDK_LNK=${sdk_lnk}
28178
28179
28180   SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28181
28182   echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28183 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28184
28185   SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28186
28187   echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28188 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28189
28190   SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28191
28192   echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28193 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28194
28195   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28196
28197   echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28198 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28199
28200   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28201
28202   echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28203 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28204
28205   # Find gcj prefix using gcj found in PATH.
28206   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28207
28208   # Where do the gcj binaries live?
28209   # For jhbuild based builds, they all live in a sibling of bin called
28210   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
28211   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28212
28213   echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28214 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28215
28216   echo host is ${host}
28217   if test "x${host_cpu}" = "x"
28218   then
28219     case ${host} in
28220       *-mingw* | *-cygwin*)
28221         host_cpu=x86;;
28222       i486-* | i586-* | i686-*)
28223         host_cpu=i386;;
28224       *)
28225         host_cpu=${host_cpu};;
28226     esac
28227   fi
28228   echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28229 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28230   CPU=${host_cpu}
28231
28232
28233   if test "x${host_os}" = "x"
28234   then
28235     case ${host} in
28236       *-mingw* | *-cygwin*)
28237         host_os=win32;;
28238       *-linux*)
28239         host_os=linux;;
28240       *)
28241         host_os=${host_os};;
28242     esac
28243   fi
28244   echo os directory: ${host_os}
28245   OS=${host_os}
28246
28247
28248   # make an expanded $libdir, for substituting into
28249   # scripts (and other non-Makefile things).
28250   LIBDIR=$libdir
28251   if test "x${exec_prefix}" = "xNONE"
28252   then
28253       lib_exec_prefix=$prefix
28254   else
28255       lib_exec_prefix=$exec_prefix
28256   fi
28257   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28258
28259 fi
28260
28261                                                                                                               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/rebuild-gcj-db"
28262
28263
28264 if test ${multilib} = yes; then
28265   multilib_arg="--enable-multilib"
28266 else
28267   multilib_arg=
28268 fi
28269
28270           ac_config_files="$ac_config_files scripts/jar"
28271
28272 cat >confcache <<\_ACEOF
28273 # This file is a shell script that caches the results of configure
28274 # tests run on this system so they can be shared between configure
28275 # scripts and configure runs, see configure's option --config-cache.
28276 # It is not useful on other systems.  If it contains results you don't
28277 # want to keep, you may remove or edit it.
28278 #
28279 # config.status only pays attention to the cache file if you give it
28280 # the --recheck option to rerun configure.
28281 #
28282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28284 # following values.
28285
28286 _ACEOF
28287
28288 # The following way of writing the cache mishandles newlines in values,
28289 # but we know of no workaround that is simple, portable, and efficient.
28290 # So, don't put newlines in cache variables' values.
28291 # Ultrix sh set writes to stderr and can't be redirected directly,
28292 # and sets the high bit in the cache file unless we assign to the vars.
28293 {
28294   (set) 2>&1 |
28295     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28296     *ac_space=\ *)
28297       # `set' does not quote correctly, so add quotes (double-quote
28298       # substitution turns \\\\ into \\, and sed turns \\ into \).
28299       sed -n \
28300         "s/'/'\\\\''/g;
28301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28302       ;;
28303     *)
28304       # `set' quotes correctly as required by POSIX, so do not add quotes.
28305       sed -n \
28306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28307       ;;
28308     esac;
28309 } |
28310   sed '
28311      t clear
28312      : clear
28313      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28314      t end
28315      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28316      : end' >>confcache
28317 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28318   if test -w $cache_file; then
28319     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28320     cat confcache >$cache_file
28321   else
28322     echo "not updating unwritable cache $cache_file"
28323   fi
28324 fi
28325 rm -f confcache
28326
28327 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28328 # Let make expand exec_prefix.
28329 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28330
28331 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28332 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28333 # trailing colons and then remove the whole line if VPATH becomes empty
28334 # (actually we leave an empty line to preserve line numbers).
28335 if test "x$srcdir" = x.; then
28336   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28337 s/:*\$(srcdir):*/:/;
28338 s/:*\${srcdir}:*/:/;
28339 s/:*@srcdir@:*/:/;
28340 s/^\([^=]*=[     ]*\):*/\1/;
28341 s/:*$//;
28342 s/^[^=]*=[       ]*$//;
28343 }'
28344 fi
28345
28346 DEFS=-DHAVE_CONFIG_H
28347
28348 ac_libobjs=
28349 ac_ltlibobjs=
28350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28351   # 1. Remove the extension, and $U if already installed.
28352   ac_i=`echo "$ac_i" |
28353          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28354   # 2. Add them.
28355   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28356   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28357 done
28358 LIBOBJS=$ac_libobjs
28359
28360 LTLIBOBJS=$ac_ltlibobjs
28361
28362
28363 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
28364   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
28365 Usually this means the macro was only invoked conditionally." >&5
28366 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
28367 Usually this means the macro was only invoked conditionally." >&2;}
28368    { (exit 1); exit 1; }; }
28369 fi
28370 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28371   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28372 Usually this means the macro was only invoked conditionally." >&5
28373 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28374 Usually this means the macro was only invoked conditionally." >&2;}
28375    { (exit 1); exit 1; }; }
28376 fi
28377 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28378   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28379 Usually this means the macro was only invoked conditionally." >&5
28380 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28381 Usually this means the macro was only invoked conditionally." >&2;}
28382    { (exit 1); exit 1; }; }
28383 fi
28384 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28385   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28386 Usually this means the macro was only invoked conditionally." >&5
28387 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28388 Usually this means the macro was only invoked conditionally." >&2;}
28389    { (exit 1); exit 1; }; }
28390 fi
28391 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28392   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28393 Usually this means the macro was only invoked conditionally." >&5
28394 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28395 Usually this means the macro was only invoked conditionally." >&2;}
28396    { (exit 1); exit 1; }; }
28397 fi
28398 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28399   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28400 Usually this means the macro was only invoked conditionally." >&5
28401 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28402 Usually this means the macro was only invoked conditionally." >&2;}
28403    { (exit 1); exit 1; }; }
28404 fi
28405 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28406   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28407 Usually this means the macro was only invoked conditionally." >&5
28408 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28409 Usually this means the macro was only invoked conditionally." >&2;}
28410    { (exit 1); exit 1; }; }
28411 fi
28412 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28413   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28414 Usually this means the macro was only invoked conditionally." >&5
28415 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28416 Usually this means the macro was only invoked conditionally." >&2;}
28417    { (exit 1); exit 1; }; }
28418 fi
28419 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28420   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28421 Usually this means the macro was only invoked conditionally." >&5
28422 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28423 Usually this means the macro was only invoked conditionally." >&2;}
28424    { (exit 1); exit 1; }; }
28425 fi
28426 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28427   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28428 Usually this means the macro was only invoked conditionally." >&5
28429 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28430 Usually this means the macro was only invoked conditionally." >&2;}
28431    { (exit 1); exit 1; }; }
28432 fi
28433 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28434   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28435 Usually this means the macro was only invoked conditionally." >&5
28436 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28437 Usually this means the macro was only invoked conditionally." >&2;}
28438    { (exit 1); exit 1; }; }
28439 fi
28440 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28441   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28442 Usually this means the macro was only invoked conditionally." >&5
28443 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28444 Usually this means the macro was only invoked conditionally." >&2;}
28445    { (exit 1); exit 1; }; }
28446 fi
28447 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28448   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28449 Usually this means the macro was only invoked conditionally." >&5
28450 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28451 Usually this means the macro was only invoked conditionally." >&2;}
28452    { (exit 1); exit 1; }; }
28453 fi
28454 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28455   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28456 Usually this means the macro was only invoked conditionally." >&5
28457 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28458 Usually this means the macro was only invoked conditionally." >&2;}
28459    { (exit 1); exit 1; }; }
28460 fi
28461 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28462   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28463 Usually this means the macro was only invoked conditionally." >&5
28464 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28465 Usually this means the macro was only invoked conditionally." >&2;}
28466    { (exit 1); exit 1; }; }
28467 fi
28468 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28469   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28470 Usually this means the macro was only invoked conditionally." >&5
28471 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28472 Usually this means the macro was only invoked conditionally." >&2;}
28473    { (exit 1); exit 1; }; }
28474 fi
28475 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28476   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28477 Usually this means the macro was only invoked conditionally." >&5
28478 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28479 Usually this means the macro was only invoked conditionally." >&2;}
28480    { (exit 1); exit 1; }; }
28481 fi
28482 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28483   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28484 Usually this means the macro was only invoked conditionally." >&5
28485 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28486 Usually this means the macro was only invoked conditionally." >&2;}
28487    { (exit 1); exit 1; }; }
28488 fi
28489 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28490   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28491 Usually this means the macro was only invoked conditionally." >&5
28492 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28493 Usually this means the macro was only invoked conditionally." >&2;}
28494    { (exit 1); exit 1; }; }
28495 fi
28496 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28497   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28498 Usually this means the macro was only invoked conditionally." >&5
28499 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28500 Usually this means the macro was only invoked conditionally." >&2;}
28501    { (exit 1); exit 1; }; }
28502 fi
28503 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28504   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28505 Usually this means the macro was only invoked conditionally." >&5
28506 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28507 Usually this means the macro was only invoked conditionally." >&2;}
28508    { (exit 1); exit 1; }; }
28509 fi
28510 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28511   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28512 Usually this means the macro was only invoked conditionally." >&5
28513 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28514 Usually this means the macro was only invoked conditionally." >&2;}
28515    { (exit 1); exit 1; }; }
28516 fi
28517 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28518   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28519 Usually this means the macro was only invoked conditionally." >&5
28520 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28521 Usually this means the macro was only invoked conditionally." >&2;}
28522    { (exit 1); exit 1; }; }
28523 fi
28524 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28525   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28526 Usually this means the macro was only invoked conditionally." >&5
28527 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28528 Usually this means the macro was only invoked conditionally." >&2;}
28529    { (exit 1); exit 1; }; }
28530 fi
28531 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28532   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28533 Usually this means the macro was only invoked conditionally." >&5
28534 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28535 Usually this means the macro was only invoked conditionally." >&2;}
28536    { (exit 1); exit 1; }; }
28537 fi
28538 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28539   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28540 Usually this means the macro was only invoked conditionally." >&5
28541 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28542 Usually this means the macro was only invoked conditionally." >&2;}
28543    { (exit 1); exit 1; }; }
28544 fi
28545 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28546   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28547 Usually this means the macro was only invoked conditionally." >&5
28548 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28549 Usually this means the macro was only invoked conditionally." >&2;}
28550    { (exit 1); exit 1; }; }
28551 fi
28552 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28553   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28554 Usually this means the macro was only invoked conditionally." >&5
28555 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28556 Usually this means the macro was only invoked conditionally." >&2;}
28557    { (exit 1); exit 1; }; }
28558 fi
28559 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28560   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28561 Usually this means the macro was only invoked conditionally." >&5
28562 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28563 Usually this means the macro was only invoked conditionally." >&2;}
28564    { (exit 1); exit 1; }; }
28565 fi
28566 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28567   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28568 Usually this means the macro was only invoked conditionally." >&5
28569 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28570 Usually this means the macro was only invoked conditionally." >&2;}
28571    { (exit 1); exit 1; }; }
28572 fi
28573 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28574   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28575 Usually this means the macro was only invoked conditionally." >&5
28576 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28577 Usually this means the macro was only invoked conditionally." >&2;}
28578    { (exit 1); exit 1; }; }
28579 fi
28580 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
28581   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
28582 Usually this means the macro was only invoked conditionally." >&5
28583 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
28584 Usually this means the macro was only invoked conditionally." >&2;}
28585    { (exit 1); exit 1; }; }
28586 fi
28587 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28588   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28589 Usually this means the macro was only invoked conditionally." >&5
28590 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28591 Usually this means the macro was only invoked conditionally." >&2;}
28592    { (exit 1); exit 1; }; }
28593 fi
28594 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28595   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28596 Usually this means the macro was only invoked conditionally." >&5
28597 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28598 Usually this means the macro was only invoked conditionally." >&2;}
28599    { (exit 1); exit 1; }; }
28600 fi
28601 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28602   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28603 Usually this means the macro was only invoked conditionally." >&5
28604 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28605 Usually this means the macro was only invoked conditionally." >&2;}
28606    { (exit 1); exit 1; }; }
28607 fi
28608
28609 : ${CONFIG_STATUS=./config.status}
28610 ac_clean_files_save=$ac_clean_files
28611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28612 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28614 cat >$CONFIG_STATUS <<_ACEOF
28615 #! $SHELL
28616 # Generated by $as_me.
28617 # Run this file to recreate the current configuration.
28618 # Compiler output produced by configure, useful for debugging
28619 # configure, is in config.log if it exists.
28620
28621 debug=false
28622 ac_cs_recheck=false
28623 ac_cs_silent=false
28624 SHELL=\${CONFIG_SHELL-$SHELL}
28625 _ACEOF
28626
28627 cat >>$CONFIG_STATUS <<\_ACEOF
28628 ## --------------------- ##
28629 ## M4sh Initialization.  ##
28630 ## --------------------- ##
28631
28632 # Be Bourne compatible
28633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28634   emulate sh
28635   NULLCMD=:
28636   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28637   # is contrary to our usage.  Disable this feature.
28638   alias -g '${1+"$@"}'='"$@"'
28639 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28640   set -o posix
28641 fi
28642 DUALCASE=1; export DUALCASE # for MKS sh
28643
28644 # Support unset when possible.
28645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28646   as_unset=unset
28647 else
28648   as_unset=false
28649 fi
28650
28651
28652 # Work around bugs in pre-3.0 UWIN ksh.
28653 $as_unset ENV MAIL MAILPATH
28654 PS1='$ '
28655 PS2='> '
28656 PS4='+ '
28657
28658 # NLS nuisances.
28659 for as_var in \
28660   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28661   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28662   LC_TELEPHONE LC_TIME
28663 do
28664   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28665     eval $as_var=C; export $as_var
28666   else
28667     $as_unset $as_var
28668   fi
28669 done
28670
28671 # Required to use basename.
28672 if expr a : '\(a\)' >/dev/null 2>&1; then
28673   as_expr=expr
28674 else
28675   as_expr=false
28676 fi
28677
28678 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28679   as_basename=basename
28680 else
28681   as_basename=false
28682 fi
28683
28684
28685 # Name of the executable.
28686 as_me=`$as_basename "$0" ||
28687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28688          X"$0" : 'X\(//\)$' \| \
28689          X"$0" : 'X\(/\)$' \| \
28690          .     : '\(.\)' 2>/dev/null ||
28691 echo X/"$0" |
28692     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28693           /^X\/\(\/\/\)$/{ s//\1/; q; }
28694           /^X\/\(\/\).*/{ s//\1/; q; }
28695           s/.*/./; q'`
28696
28697
28698 # PATH needs CR, and LINENO needs CR and PATH.
28699 # Avoid depending upon Character Ranges.
28700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28703 as_cr_digits='0123456789'
28704 as_cr_alnum=$as_cr_Letters$as_cr_digits
28705
28706 # The user is always right.
28707 if test "${PATH_SEPARATOR+set}" != set; then
28708   echo "#! /bin/sh" >conf$$.sh
28709   echo  "exit 0"   >>conf$$.sh
28710   chmod +x conf$$.sh
28711   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28712     PATH_SEPARATOR=';'
28713   else
28714     PATH_SEPARATOR=:
28715   fi
28716   rm -f conf$$.sh
28717 fi
28718
28719
28720   as_lineno_1=$LINENO
28721   as_lineno_2=$LINENO
28722   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28723   test "x$as_lineno_1" != "x$as_lineno_2" &&
28724   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28725   # Find who we are.  Look in the path if we contain no path at all
28726   # relative or not.
28727   case $0 in
28728     *[\\/]* ) as_myself=$0 ;;
28729     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28730 for as_dir in $PATH
28731 do
28732   IFS=$as_save_IFS
28733   test -z "$as_dir" && as_dir=.
28734   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28735 done
28736
28737        ;;
28738   esac
28739   # We did not find ourselves, most probably we were run as `sh COMMAND'
28740   # in which case we are not to be found in the path.
28741   if test "x$as_myself" = x; then
28742     as_myself=$0
28743   fi
28744   if test ! -f "$as_myself"; then
28745     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28746 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28747    { (exit 1); exit 1; }; }
28748   fi
28749   case $CONFIG_SHELL in
28750   '')
28751     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28752 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28753 do
28754   IFS=$as_save_IFS
28755   test -z "$as_dir" && as_dir=.
28756   for as_base in sh bash ksh sh5; do
28757          case $as_dir in
28758          /*)
28759            if ("$as_dir/$as_base" -c '
28760   as_lineno_1=$LINENO
28761   as_lineno_2=$LINENO
28762   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28763   test "x$as_lineno_1" != "x$as_lineno_2" &&
28764   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28765              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28766              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28767              CONFIG_SHELL=$as_dir/$as_base
28768              export CONFIG_SHELL
28769              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28770            fi;;
28771          esac
28772        done
28773 done
28774 ;;
28775   esac
28776
28777   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28778   # uniformly replaced by the line number.  The first 'sed' inserts a
28779   # line-number line before each line; the second 'sed' does the real
28780   # work.  The second script uses 'N' to pair each line-number line
28781   # with the numbered line, and appends trailing '-' during
28782   # substitution so that $LINENO is not a special case at line end.
28783   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28784   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28785   sed '=' <$as_myself |
28786     sed '
28787       N
28788       s,$,-,
28789       : loop
28790       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28791       t loop
28792       s,-$,,
28793       s,^['$as_cr_digits']*\n,,
28794     ' >$as_me.lineno &&
28795   chmod +x $as_me.lineno ||
28796     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28797 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28798    { (exit 1); exit 1; }; }
28799
28800   # Don't try to exec as it changes $[0], causing all sort of problems
28801   # (the dirname of $[0] is not the place where we might find the
28802   # original and so on.  Autoconf is especially sensible to this).
28803   . ./$as_me.lineno
28804   # Exit status is that of the last command.
28805   exit
28806 }
28807
28808
28809 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28810   *c*,-n*) ECHO_N= ECHO_C='
28811 ' ECHO_T='      ' ;;
28812   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28813   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28814 esac
28815
28816 if expr a : '\(a\)' >/dev/null 2>&1; then
28817   as_expr=expr
28818 else
28819   as_expr=false
28820 fi
28821
28822 rm -f conf$$ conf$$.exe conf$$.file
28823 echo >conf$$.file
28824 if ln -s conf$$.file conf$$ 2>/dev/null; then
28825   # We could just check for DJGPP; but this test a) works b) is more generic
28826   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28827   if test -f conf$$.exe; then
28828     # Don't use ln at all; we don't have any links
28829     as_ln_s='cp -p'
28830   else
28831     as_ln_s='ln -s'
28832   fi
28833 elif ln conf$$.file conf$$ 2>/dev/null; then
28834   as_ln_s=ln
28835 else
28836   as_ln_s='cp -p'
28837 fi
28838 rm -f conf$$ conf$$.exe conf$$.file
28839
28840 if mkdir -p . 2>/dev/null; then
28841   as_mkdir_p=:
28842 else
28843   test -d ./-p && rmdir ./-p
28844   as_mkdir_p=false
28845 fi
28846
28847 as_executable_p="test -f"
28848
28849 # Sed expression to map a string onto a valid CPP name.
28850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28851
28852 # Sed expression to map a string onto a valid variable name.
28853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28854
28855
28856 # IFS
28857 # We need space, tab and new line, in precisely that order.
28858 as_nl='
28859 '
28860 IFS="   $as_nl"
28861
28862 # CDPATH.
28863 $as_unset CDPATH
28864
28865 exec 6>&1
28866
28867 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28868 # report actual input values of CONFIG_FILES etc. instead of their
28869 # values after options handling.  Logging --version etc. is OK.
28870 exec 5>>config.log
28871 {
28872   echo
28873   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28874 ## Running $as_me. ##
28875 _ASBOX
28876 } >&5
28877 cat >&5 <<_CSEOF
28878
28879 This file was extended by libjava $as_me version-unused, which was
28880 generated by GNU Autoconf 2.59.  Invocation command line was
28881
28882   CONFIG_FILES    = $CONFIG_FILES
28883   CONFIG_HEADERS  = $CONFIG_HEADERS
28884   CONFIG_LINKS    = $CONFIG_LINKS
28885   CONFIG_COMMANDS = $CONFIG_COMMANDS
28886   $ $0 $@
28887
28888 _CSEOF
28889 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28890 echo >&5
28891 _ACEOF
28892
28893 # Files that config.status was made for.
28894 if test -n "$ac_config_files"; then
28895   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28896 fi
28897
28898 if test -n "$ac_config_headers"; then
28899   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28900 fi
28901
28902 if test -n "$ac_config_links"; then
28903   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28904 fi
28905
28906 if test -n "$ac_config_commands"; then
28907   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28908 fi
28909
28910 cat >>$CONFIG_STATUS <<\_ACEOF
28911
28912 ac_cs_usage="\
28913 \`$as_me' instantiates files from templates according to the
28914 current configuration.
28915
28916 Usage: $0 [OPTIONS] [FILE]...
28917
28918   -h, --help       print this help, then exit
28919   -V, --version    print version number, then exit
28920   -q, --quiet      do not print progress messages
28921   -d, --debug      don't remove temporary files
28922       --recheck    update $as_me by reconfiguring in the same conditions
28923   --file=FILE[:TEMPLATE]
28924                    instantiate the configuration file FILE
28925   --header=FILE[:TEMPLATE]
28926                    instantiate the configuration header FILE
28927
28928 Configuration files:
28929 $config_files
28930
28931 Configuration headers:
28932 $config_headers
28933
28934 Configuration links:
28935 $config_links
28936
28937 Configuration commands:
28938 $config_commands
28939
28940 Report bugs to <bug-autoconf@gnu.org>."
28941 _ACEOF
28942
28943 cat >>$CONFIG_STATUS <<_ACEOF
28944 ac_cs_version="\\
28945 libjava config.status version-unused
28946 configured by $0, generated by GNU Autoconf 2.59,
28947   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28948
28949 Copyright (C) 2003 Free Software Foundation, Inc.
28950 This config.status script is free software; the Free Software Foundation
28951 gives unlimited permission to copy, distribute and modify it."
28952 srcdir=$srcdir
28953 INSTALL="$INSTALL"
28954 _ACEOF
28955
28956 cat >>$CONFIG_STATUS <<\_ACEOF
28957 # If no file are specified by the user, then we need to provide default
28958 # value.  By we need to know if files were specified by the user.
28959 ac_need_defaults=:
28960 while test $# != 0
28961 do
28962   case $1 in
28963   --*=*)
28964     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28965     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28966     ac_shift=:
28967     ;;
28968   -*)
28969     ac_option=$1
28970     ac_optarg=$2
28971     ac_shift=shift
28972     ;;
28973   *) # This is not an option, so the user has probably given explicit
28974      # arguments.
28975      ac_option=$1
28976      ac_need_defaults=false;;
28977   esac
28978
28979   case $ac_option in
28980   # Handling of the options.
28981 _ACEOF
28982 cat >>$CONFIG_STATUS <<\_ACEOF
28983   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28984     ac_cs_recheck=: ;;
28985   --version | --vers* | -V )
28986     echo "$ac_cs_version"; exit 0 ;;
28987   --he | --h)
28988     # Conflict between --help and --header
28989     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28990 Try \`$0 --help' for more information." >&5
28991 echo "$as_me: error: ambiguous option: $1
28992 Try \`$0 --help' for more information." >&2;}
28993    { (exit 1); exit 1; }; };;
28994   --help | --hel | -h )
28995     echo "$ac_cs_usage"; exit 0 ;;
28996   --debug | --d* | -d )
28997     debug=: ;;
28998   --file | --fil | --fi | --f )
28999     $ac_shift
29000     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29001     ac_need_defaults=false;;
29002   --header | --heade | --head | --hea )
29003     $ac_shift
29004     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29005     ac_need_defaults=false;;
29006   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29007   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29008     ac_cs_silent=: ;;
29009
29010   # This is an error.
29011   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29012 Try \`$0 --help' for more information." >&5
29013 echo "$as_me: error: unrecognized option: $1
29014 Try \`$0 --help' for more information." >&2;}
29015    { (exit 1); exit 1; }; } ;;
29016
29017   *) ac_config_targets="$ac_config_targets $1" ;;
29018
29019   esac
29020   shift
29021 done
29022
29023 ac_configure_extra_args=
29024
29025 if $ac_cs_silent; then
29026   exec 6>/dev/null
29027   ac_configure_extra_args="$ac_configure_extra_args --silent"
29028 fi
29029
29030 _ACEOF
29031 cat >>$CONFIG_STATUS <<_ACEOF
29032 if \$ac_cs_recheck; then
29033   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29034   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29035 fi
29036
29037 _ACEOF
29038
29039 cat >>$CONFIG_STATUS <<_ACEOF
29040 #
29041 # INIT-COMMANDS section.
29042 #
29043
29044
29045 srcdir="$srcdir"
29046 host="$host"
29047 target="$target"
29048 with_multisubdir="$with_multisubdir"
29049 with_multisrctop="$with_multisrctop"
29050 with_target_subdir="$with_target_subdir"
29051 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29052 multi_basedir="$multi_basedir"
29053 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29054 CC="$CC"
29055 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29056
29057
29058 # The HP-UX ksh and POSIX shell print the target directory to stdout
29059 # if CDPATH is set.
29060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29061
29062 sed_quote_subst='$sed_quote_subst'
29063 double_quote_subst='$double_quote_subst'
29064 delay_variable_subst='$delay_variable_subst'
29065 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29066 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29067 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29068 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29069 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29070 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29071 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29072 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29073 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29074 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29075 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29076 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29077 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29078 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29079 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29080 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29081 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29082 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29083 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29084 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29085 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29086 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29087 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29088 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29089 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29090 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29091 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29092 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29093 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29094 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29095 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29096 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29097 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29098 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29099 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29100 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29101 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29102 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29103 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29104 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29105 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29106 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29107 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29108 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29109 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"`'
29110 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"`'
29111 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29112 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29113 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29114 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29115 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29116 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29117 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29118 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29119 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29120 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29121 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29122 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29123 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29124 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29125 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29126 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29127 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29128 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29129 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29130 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29131 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29132 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29133 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29134 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29135 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29136 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29137 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29138 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29139 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29140 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29141 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29142 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29143 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29144 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29145 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29146 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29147 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29148 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29149 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29150 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29151 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29152 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29153 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29154 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29155 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29156 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29157 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29158 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29159 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29160 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29161 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29162 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29163 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29164 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29165 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29166 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29167 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29168 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29169 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29170 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29171 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29172 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29173 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29174 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29175 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29176 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29177 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29178 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29179 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29180 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29181 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29182 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29183 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29184 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29185 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29186 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29187 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29188 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29189 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29190 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29191 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29192 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29193 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29194 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29195 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29196 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29197 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29198 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29199 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29200 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29201 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29202 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29203 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29204 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29205 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29206 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29207 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29208 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29209 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29210 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29211 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29212 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29213 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29214 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29215 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29216 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29217 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29218 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29219 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29220 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29221 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29222 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29223 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29224 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29225 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29226 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29227 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29228 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29229 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29230 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29231 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29232 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29233 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29234 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29235 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29236 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29237 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29238 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29239 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29240 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29241 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29242 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29243 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29244 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29245 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29246 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29247 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29248 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29249 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29250 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29251 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29252 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29253 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29254 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29255 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29256 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29257 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29258 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29259 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29260 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29261 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29262 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29263 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29264 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29265 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29266 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29267 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29268 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29269 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29270 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29271 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29272 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29273 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29274 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29275 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29276 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29277 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29278 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29279 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29280 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29281 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29282 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29283
29284 LTCC='$LTCC'
29285 LTCFLAGS='$LTCFLAGS'
29286 compiler='$compiler_DEFAULT'
29287
29288 # Quote evaled strings.
29289 for var in SED \
29290 GREP \
29291 EGREP \
29292 FGREP \
29293 LD \
29294 NM \
29295 LN_S \
29296 lt_SP2NL \
29297 lt_NL2SP \
29298 reload_flag \
29299 OBJDUMP \
29300 deplibs_check_method \
29301 file_magic_cmd \
29302 AR \
29303 AR_FLAGS \
29304 STRIP \
29305 RANLIB \
29306 CC \
29307 CFLAGS \
29308 compiler \
29309 lt_cv_sys_global_symbol_pipe \
29310 lt_cv_sys_global_symbol_to_cdecl \
29311 lt_cv_sys_global_symbol_to_c_name_address \
29312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29313 SHELL \
29314 ECHO \
29315 lt_prog_compiler_no_builtin_flag \
29316 lt_prog_compiler_wl \
29317 lt_prog_compiler_pic \
29318 lt_prog_compiler_static \
29319 lt_cv_prog_compiler_c_o \
29320 need_locks \
29321 DSYMUTIL \
29322 NMEDIT \
29323 LIPO \
29324 OTOOL \
29325 OTOOL64 \
29326 shrext_cmds \
29327 export_dynamic_flag_spec \
29328 whole_archive_flag_spec \
29329 compiler_needs_object \
29330 with_gnu_ld \
29331 allow_undefined_flag \
29332 no_undefined_flag \
29333 hardcode_libdir_flag_spec \
29334 hardcode_libdir_flag_spec_ld \
29335 hardcode_libdir_separator \
29336 fix_srcfile_path \
29337 exclude_expsyms \
29338 include_expsyms \
29339 file_list_spec \
29340 variables_saved_for_relink \
29341 libname_spec \
29342 library_names_spec \
29343 soname_spec \
29344 finish_eval \
29345 old_striplib \
29346 striplib \
29347 compiler_lib_search_dirs \
29348 predep_objects \
29349 postdep_objects \
29350 predeps \
29351 postdeps \
29352 compiler_lib_search_path \
29353 LD_CXX \
29354 LD_GCJ \
29355 compiler_CXX \
29356 compiler_GCJ \
29357 lt_prog_compiler_no_builtin_flag_CXX \
29358 lt_prog_compiler_no_builtin_flag_GCJ \
29359 lt_prog_compiler_wl_CXX \
29360 lt_prog_compiler_wl_GCJ \
29361 lt_prog_compiler_pic_CXX \
29362 lt_prog_compiler_pic_GCJ \
29363 lt_prog_compiler_static_CXX \
29364 lt_prog_compiler_static_GCJ \
29365 lt_cv_prog_compiler_c_o_CXX \
29366 lt_cv_prog_compiler_c_o_GCJ \
29367 export_dynamic_flag_spec_CXX \
29368 export_dynamic_flag_spec_GCJ \
29369 whole_archive_flag_spec_CXX \
29370 whole_archive_flag_spec_GCJ \
29371 compiler_needs_object_CXX \
29372 compiler_needs_object_GCJ \
29373 with_gnu_ld_CXX \
29374 with_gnu_ld_GCJ \
29375 allow_undefined_flag_CXX \
29376 allow_undefined_flag_GCJ \
29377 no_undefined_flag_CXX \
29378 no_undefined_flag_GCJ \
29379 hardcode_libdir_flag_spec_CXX \
29380 hardcode_libdir_flag_spec_GCJ \
29381 hardcode_libdir_flag_spec_ld_CXX \
29382 hardcode_libdir_flag_spec_ld_GCJ \
29383 hardcode_libdir_separator_CXX \
29384 hardcode_libdir_separator_GCJ \
29385 fix_srcfile_path_CXX \
29386 fix_srcfile_path_GCJ \
29387 exclude_expsyms_CXX \
29388 exclude_expsyms_GCJ \
29389 include_expsyms_CXX \
29390 include_expsyms_GCJ \
29391 file_list_spec_CXX \
29392 file_list_spec_GCJ \
29393 compiler_lib_search_dirs_CXX \
29394 compiler_lib_search_dirs_GCJ \
29395 predep_objects_CXX \
29396 predep_objects_GCJ \
29397 postdep_objects_CXX \
29398 postdep_objects_GCJ \
29399 predeps_CXX \
29400 predeps_GCJ \
29401 postdeps_CXX \
29402 postdeps_GCJ \
29403 compiler_lib_search_path_CXX \
29404 compiler_lib_search_path_GCJ; do
29405     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29406     *[\\\\\\\`\\"\\\$]*)
29407       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29408       ;;
29409     *)
29410       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29411       ;;
29412     esac
29413 done
29414
29415 # Double-quote double-evaled strings.
29416 for var in reload_cmds \
29417 old_postinstall_cmds \
29418 old_postuninstall_cmds \
29419 old_archive_cmds \
29420 extract_expsyms_cmds \
29421 old_archive_from_new_cmds \
29422 old_archive_from_expsyms_cmds \
29423 archive_cmds \
29424 archive_expsym_cmds \
29425 module_cmds \
29426 module_expsym_cmds \
29427 export_symbols_cmds \
29428 prelink_cmds \
29429 postinstall_cmds \
29430 postuninstall_cmds \
29431 finish_cmds \
29432 sys_lib_search_path_spec \
29433 sys_lib_dlsearch_path_spec \
29434 old_archive_cmds_CXX \
29435 old_archive_cmds_GCJ \
29436 old_archive_from_new_cmds_CXX \
29437 old_archive_from_new_cmds_GCJ \
29438 old_archive_from_expsyms_cmds_CXX \
29439 old_archive_from_expsyms_cmds_GCJ \
29440 archive_cmds_CXX \
29441 archive_cmds_GCJ \
29442 archive_expsym_cmds_CXX \
29443 archive_expsym_cmds_GCJ \
29444 module_cmds_CXX \
29445 module_cmds_GCJ \
29446 module_expsym_cmds_CXX \
29447 module_expsym_cmds_GCJ \
29448 export_symbols_cmds_CXX \
29449 export_symbols_cmds_GCJ \
29450 prelink_cmds_CXX \
29451 prelink_cmds_GCJ; do
29452     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29453     *[\\\\\\\`\\"\\\$]*)
29454       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29455       ;;
29456     *)
29457       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29458       ;;
29459     esac
29460 done
29461
29462 # Fix-up fallback echo if it was mangled by the above quoting rules.
29463 case \$lt_ECHO in
29464 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29465   ;;
29466 esac
29467
29468 ac_aux_dir='$ac_aux_dir'
29469 xsi_shell='$xsi_shell'
29470 lt_shell_append='$lt_shell_append'
29471
29472 # See if we are running on zsh, and set the options which allow our
29473 # commands through without removal of \ escapes INIT.
29474 if test -n "\${ZSH_VERSION+set}" ; then
29475    setopt NO_GLOB_SUBST
29476 fi
29477
29478
29479     PACKAGE='$PACKAGE'
29480     VERSION='$VERSION'
29481     TIMESTAMP='$TIMESTAMP'
29482     RM='$RM'
29483     ofile='$ofile'
29484
29485
29486
29487
29488
29489
29490
29491
29492 _ACEOF
29493
29494
29495
29496 cat >>$CONFIG_STATUS <<\_ACEOF
29497 for ac_config_target in $ac_config_targets
29498 do
29499   case "$ac_config_target" in
29500   # Handling of arguments.
29501   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29502   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29503   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29504   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29505   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29506   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29507   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29508   "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29509   "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29510   "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29511   "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29512   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29513   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29514   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29515   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29516   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29517   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29518   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29519   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29520   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29521   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29522   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29523   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29524   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29525   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29526   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29527   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29528   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29529   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29530   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29531   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29532   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29533   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29534   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29535   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29537    { (exit 1); exit 1; }; };;
29538   esac
29539 done
29540
29541 # If the user did not use the arguments to specify the items to instantiate,
29542 # then the envvar interface is used.  Set only those that are not.
29543 # We use the long form for the default assignment because of an extremely
29544 # bizarre bug on SunOS 4.1.3.
29545 if $ac_need_defaults; then
29546   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29547   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29548   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29549   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29550 fi
29551
29552 # Have a temporary directory for convenience.  Make it in the build tree
29553 # simply because there is no reason to put it here, and in addition,
29554 # creating and moving files from /tmp can sometimes cause problems.
29555 # Create a temporary directory, and hook for its removal unless debugging.
29556 $debug ||
29557 {
29558   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29559   trap '{ (exit 1); exit 1; }' 1 2 13 15
29560 }
29561
29562 # Create a (secure) tmp directory for tmp files.
29563
29564 {
29565   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29566   test -n "$tmp" && test -d "$tmp"
29567 }  ||
29568 {
29569   tmp=./confstat$$-$RANDOM
29570   (umask 077 && mkdir $tmp)
29571 } ||
29572 {
29573    echo "$me: cannot create a temporary directory in ." >&2
29574    { (exit 1); exit 1; }
29575 }
29576
29577 _ACEOF
29578
29579 cat >>$CONFIG_STATUS <<_ACEOF
29580
29581 #
29582 # CONFIG_FILES section.
29583 #
29584
29585 # No need to generate the scripts if there are no CONFIG_FILES.
29586 # This happens for instance when ./config.status config.h
29587 if test -n "\$CONFIG_FILES"; then
29588   # Protect against being on the right side of a sed subst in config.status.
29589   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29590    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29591 s,@SHELL@,$SHELL,;t t
29592 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29593 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29594 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29595 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29596 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29597 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29598 s,@exec_prefix@,$exec_prefix,;t t
29599 s,@prefix@,$prefix,;t t
29600 s,@program_transform_name@,$program_transform_name,;t t
29601 s,@bindir@,$bindir,;t t
29602 s,@sbindir@,$sbindir,;t t
29603 s,@libexecdir@,$libexecdir,;t t
29604 s,@datadir@,$datadir,;t t
29605 s,@sysconfdir@,$sysconfdir,;t t
29606 s,@sharedstatedir@,$sharedstatedir,;t t
29607 s,@localstatedir@,$localstatedir,;t t
29608 s,@libdir@,$libdir,;t t
29609 s,@includedir@,$includedir,;t t
29610 s,@oldincludedir@,$oldincludedir,;t t
29611 s,@infodir@,$infodir,;t t
29612 s,@mandir@,$mandir,;t t
29613 s,@build_alias@,$build_alias,;t t
29614 s,@host_alias@,$host_alias,;t t
29615 s,@target_alias@,$target_alias,;t t
29616 s,@DEFS@,$DEFS,;t t
29617 s,@ECHO_C@,$ECHO_C,;t t
29618 s,@ECHO_N@,$ECHO_N,;t t
29619 s,@ECHO_T@,$ECHO_T,;t t
29620 s,@LIBS@,$LIBS,;t t
29621 s,@build@,$build,;t t
29622 s,@build_cpu@,$build_cpu,;t t
29623 s,@build_vendor@,$build_vendor,;t t
29624 s,@build_os@,$build_os,;t t
29625 s,@build_libsubdir@,$build_libsubdir,;t t
29626 s,@build_subdir@,$build_subdir,;t t
29627 s,@host_subdir@,$host_subdir,;t t
29628 s,@target_subdir@,$target_subdir,;t t
29629 s,@multi_basedir@,$multi_basedir,;t t
29630 s,@host@,$host,;t t
29631 s,@host_cpu@,$host_cpu,;t t
29632 s,@host_vendor@,$host_vendor,;t t
29633 s,@host_os@,$host_os,;t t
29634 s,@target@,$target,;t t
29635 s,@target_cpu@,$target_cpu,;t t
29636 s,@target_vendor@,$target_vendor,;t t
29637 s,@target_os@,$target_os,;t t
29638 s,@target_noncanonical@,$target_noncanonical,;t t
29639 s,@LN_S@,$LN_S,;t t
29640 s,@mkinstalldirs@,$mkinstalldirs,;t t
29641 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
29642 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
29643 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
29644 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29645 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29646 s,@CC@,$CC,;t t
29647 s,@ac_ct_CC@,$ac_ct_CC,;t t
29648 s,@EXEEXT@,$EXEEXT,;t t
29649 s,@OBJEXT@,$OBJEXT,;t t
29650 s,@CXX@,$CXX,;t t
29651 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29652 s,@CFLAGS@,$CFLAGS,;t t
29653 s,@CXXFLAGS@,$CXXFLAGS,;t t
29654 s,@LDFLAGS@,$LDFLAGS,;t t
29655 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29656 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29657 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29658 s,@CYGPATH_W@,$CYGPATH_W,;t t
29659 s,@PACKAGE@,$PACKAGE,;t t
29660 s,@VERSION@,$VERSION,;t t
29661 s,@ACLOCAL@,$ACLOCAL,;t t
29662 s,@AUTOCONF@,$AUTOCONF,;t t
29663 s,@AUTOMAKE@,$AUTOMAKE,;t t
29664 s,@AUTOHEADER@,$AUTOHEADER,;t t
29665 s,@MAKEINFO@,$MAKEINFO,;t t
29666 s,@install_sh@,$install_sh,;t t
29667 s,@STRIP@,$STRIP,;t t
29668 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29669 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29670 s,@mkdir_p@,$mkdir_p,;t t
29671 s,@AWK@,$AWK,;t t
29672 s,@SET_MAKE@,$SET_MAKE,;t t
29673 s,@am__leading_dot@,$am__leading_dot,;t t
29674 s,@AMTAR@,$AMTAR,;t t
29675 s,@am__tar@,$am__tar,;t t
29676 s,@am__untar@,$am__untar,;t t
29677 s,@DEPDIR@,$DEPDIR,;t t
29678 s,@am__include@,$am__include,;t t
29679 s,@am__quote@,$am__quote,;t t
29680 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29681 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29682 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29683 s,@CCDEPMODE@,$CCDEPMODE,;t t
29684 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29685 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29686 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29687 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29688 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29689 s,@AS@,$AS,;t t
29690 s,@ac_ct_AS@,$ac_ct_AS,;t t
29691 s,@LD@,$LD,;t t
29692 s,@ac_ct_LD@,$ac_ct_LD,;t t
29693 s,@AR@,$AR,;t t
29694 s,@ac_ct_AR@,$ac_ct_AR,;t t
29695 s,@RANLIB@,$RANLIB,;t t
29696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29697 s,@JAR@,$JAR,;t t
29698 s,@ZIP@,$ZIP,;t t
29699 s,@UNZIP@,$UNZIP,;t t
29700 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29701 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29702 s,@MAINT@,$MAINT,;t t
29703 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29704 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29705 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29706 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29707 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29708 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29709 s,@TOOLKIT@,$TOOLKIT,;t t
29710 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29711 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29712 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29713 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29714 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29715 s,@GCJH@,$GCJH,;t t
29716 s,@host_exeext@,$host_exeext,;t t
29717 s,@INCLTDL@,$INCLTDL,;t t
29718 s,@LIBLTDL@,$LIBLTDL,;t t
29719 s,@DIRLTDL@,$DIRLTDL,;t t
29720 s,@LIBTOOL@,$LIBTOOL,;t t
29721 s,@SED@,$SED,;t t
29722 s,@EGREP@,$EGREP,;t t
29723 s,@FGREP@,$FGREP,;t t
29724 s,@GREP@,$GREP,;t t
29725 s,@DUMPBIN@,$DUMPBIN,;t t
29726 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29727 s,@NM@,$NM,;t t
29728 s,@OBJDUMP@,$OBJDUMP,;t t
29729 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29730 s,@lt_ECHO@,$lt_ECHO,;t t
29731 s,@DSYMUTIL@,$DSYMUTIL,;t t
29732 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29733 s,@NMEDIT@,$NMEDIT,;t t
29734 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29735 s,@LIPO@,$LIPO,;t t
29736 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29737 s,@OTOOL@,$OTOOL,;t t
29738 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29739 s,@OTOOL64@,$OTOOL64,;t t
29740 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29741 s,@CPP@,$CPP,;t t
29742 s,@CPPFLAGS@,$CPPFLAGS,;t t
29743 s,@CXXCPP@,$CXXCPP,;t t
29744 s,@GCJ@,$GCJ,;t t
29745 s,@GCJFLAGS@,$GCJFLAGS,;t t
29746 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29747 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29748 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29749 s,@subdirs@,$subdirs,;t t
29750 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29751 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29752 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29753 s,@ECJ_JAR@,$ECJ_JAR,;t t
29754 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29755 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29756 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29757 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29758 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29759 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29760 s,@JAVA_HOME@,$JAVA_HOME,;t t
29761 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29762 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29763 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29764 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29765 s,@INTERPRETER@,$INTERPRETER,;t t
29766 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29767 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29768 s,@LIBFFI@,$LIBFFI,;t t
29769 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29770 s,@PLATFORM@,$PLATFORM,;t t
29771 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29772 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29773 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29774 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29775 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29776 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29777 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29778 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29779 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29780 s,@X_CFLAGS@,$X_CFLAGS,;t t
29781 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29782 s,@X_LIBS@,$X_LIBS,;t t
29783 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29784 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29785 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29786 s,@extra_ldflags@,$extra_ldflags,;t t
29787 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29788 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29789 s,@GCLIBS@,$GCLIBS,;t t
29790 s,@GCINCS@,$GCINCS,;t t
29791 s,@GCDEPS@,$GCDEPS,;t t
29792 s,@GCSPEC@,$GCSPEC,;t t
29793 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29794 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29795 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29796 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29797 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29798 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29799 s,@THREADLIBS@,$THREADLIBS,;t t
29800 s,@THREADINCS@,$THREADINCS,;t t
29801 s,@THREADDEPS@,$THREADDEPS,;t t
29802 s,@THREADSPEC@,$THREADSPEC,;t t
29803 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29804 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29805 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29806 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29807 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29808 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29809 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29810 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29811 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29812 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29813 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29814 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29815 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29816 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29817 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29818 s,@LIBICONV@,$LIBICONV,;t t
29819 s,@LTLIBICONV@,$LTLIBICONV,;t t
29820 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29821 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29822 s,@GTK_LIBS@,$GTK_LIBS,;t t
29823 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29824 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29825 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29826 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29827 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29828 s,@ZLIBS@,$ZLIBS,;t t
29829 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29830 s,@ZINCS@,$ZINCS,;t t
29831 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29832 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29833 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29834 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29835 s,@IEEESPEC@,$IEEESPEC,;t t
29836 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29837 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29838 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29839 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29840 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29841 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29842 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
29843 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
29844 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29845 s,@toolexecdir@,$toolexecdir,;t t
29846 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29847 s,@toolexeclibdir@,$toolexeclibdir,;t t
29848 s,@GCJVERSION@,$GCJVERSION,;t t
29849 s,@dbexecdir@,$dbexecdir,;t t
29850 s,@gcjsubdir@,$gcjsubdir,;t t
29851 s,@gxx_include_dir@,$gxx_include_dir,;t t
29852 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29853 s,@PERL@,$PERL,;t t
29854 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29855 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29856 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29857 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29858 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29859 s,@here@,$here,;t t
29860 s,@python_mod_dir@,$python_mod_dir,;t t
29861 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29862 s,@MAKE@,$MAKE,;t t
29863 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29864 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29865 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29866 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29867 s,@gcc_suffix@,$gcc_suffix,;t t
29868 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29869 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29870 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29871 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29872 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29873 s,@JRE_DIR@,$JRE_DIR,;t t
29874 s,@SDK_DIR@,$SDK_DIR,;t t
29875 s,@JRE_LNK@,$JRE_LNK,;t t
29876 s,@SDK_LNK@,$SDK_LNK,;t t
29877 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29878 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29879 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29880 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29881 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29882 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29883 s,@CPU@,$CPU,;t t
29884 s,@OS@,$OS,;t t
29885 s,@LIBDIR@,$LIBDIR,;t t
29886 s,@LIBOBJS@,$LIBOBJS,;t t
29887 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29888 CEOF
29889
29890 _ACEOF
29891
29892   cat >>$CONFIG_STATUS <<\_ACEOF
29893   # Split the substitutions into bite-sized pieces for seds with
29894   # small command number limits, like on Digital OSF/1 and HP-UX.
29895   ac_max_sed_lines=48
29896   ac_sed_frag=1 # Number of current file.
29897   ac_beg=1 # First line for current file.
29898   ac_end=$ac_max_sed_lines # Line after last line for current file.
29899   ac_more_lines=:
29900   ac_sed_cmds=
29901   while $ac_more_lines; do
29902     if test $ac_beg -gt 1; then
29903       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29904     else
29905       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29906     fi
29907     if test ! -s $tmp/subs.frag; then
29908       ac_more_lines=false
29909     else
29910       # The purpose of the label and of the branching condition is to
29911       # speed up the sed processing (if there are no `@' at all, there
29912       # is no need to browse any of the substitutions).
29913       # These are the two extra sed commands mentioned above.
29914       (echo ':t
29915   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29916       if test -z "$ac_sed_cmds"; then
29917         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29918       else
29919         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29920       fi
29921       ac_sed_frag=`expr $ac_sed_frag + 1`
29922       ac_beg=$ac_end
29923       ac_end=`expr $ac_end + $ac_max_sed_lines`
29924     fi
29925   done
29926   if test -z "$ac_sed_cmds"; then
29927     ac_sed_cmds=cat
29928   fi
29929 fi # test -n "$CONFIG_FILES"
29930
29931 _ACEOF
29932 cat >>$CONFIG_STATUS <<\_ACEOF
29933 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29934   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29935   case $ac_file in
29936   - | *:- | *:-:* ) # input from stdin
29937         cat >$tmp/stdin
29938         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29939         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29940   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29941         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29942   * )   ac_file_in=$ac_file.in ;;
29943   esac
29944
29945   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29946   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29948          X"$ac_file" : 'X\(//\)[^/]' \| \
29949          X"$ac_file" : 'X\(//\)$' \| \
29950          X"$ac_file" : 'X\(/\)' \| \
29951          .     : '\(.\)' 2>/dev/null ||
29952 echo X"$ac_file" |
29953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29955           /^X\(\/\/\)$/{ s//\1/; q; }
29956           /^X\(\/\).*/{ s//\1/; q; }
29957           s/.*/./; q'`
29958   { if $as_mkdir_p; then
29959     mkdir -p "$ac_dir"
29960   else
29961     as_dir="$ac_dir"
29962     as_dirs=
29963     while test ! -d "$as_dir"; do
29964       as_dirs="$as_dir $as_dirs"
29965       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29967          X"$as_dir" : 'X\(//\)[^/]' \| \
29968          X"$as_dir" : 'X\(//\)$' \| \
29969          X"$as_dir" : 'X\(/\)' \| \
29970          .     : '\(.\)' 2>/dev/null ||
29971 echo X"$as_dir" |
29972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29974           /^X\(\/\/\)$/{ s//\1/; q; }
29975           /^X\(\/\).*/{ s//\1/; q; }
29976           s/.*/./; q'`
29977     done
29978     test ! -n "$as_dirs" || mkdir $as_dirs
29979   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29981    { (exit 1); exit 1; }; }; }
29982
29983   ac_builddir=.
29984
29985 if test "$ac_dir" != .; then
29986   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29987   # A "../" for each directory in $ac_dir_suffix.
29988   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29989 else
29990   ac_dir_suffix= ac_top_builddir=
29991 fi
29992
29993 case $srcdir in
29994   .)  # No --srcdir option.  We are building in place.
29995     ac_srcdir=.
29996     if test -z "$ac_top_builddir"; then
29997        ac_top_srcdir=.
29998     else
29999        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30000     fi ;;
30001   [\\/]* | ?:[\\/]* )  # Absolute path.
30002     ac_srcdir=$srcdir$ac_dir_suffix;
30003     ac_top_srcdir=$srcdir ;;
30004   *) # Relative path.
30005     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30006     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30007 esac
30008
30009 # Do not use `cd foo && pwd` to compute absolute paths, because
30010 # the directories may not exist.
30011 case `pwd` in
30012 .) ac_abs_builddir="$ac_dir";;
30013 *)
30014   case "$ac_dir" in
30015   .) ac_abs_builddir=`pwd`;;
30016   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30017   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30018   esac;;
30019 esac
30020 case $ac_abs_builddir in
30021 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30022 *)
30023   case ${ac_top_builddir}. in
30024   .) ac_abs_top_builddir=$ac_abs_builddir;;
30025   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30026   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30027   esac;;
30028 esac
30029 case $ac_abs_builddir in
30030 .) ac_abs_srcdir=$ac_srcdir;;
30031 *)
30032   case $ac_srcdir in
30033   .) ac_abs_srcdir=$ac_abs_builddir;;
30034   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30035   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30036   esac;;
30037 esac
30038 case $ac_abs_builddir in
30039 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30040 *)
30041   case $ac_top_srcdir in
30042   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30043   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30044   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30045   esac;;
30046 esac
30047
30048
30049   case $INSTALL in
30050   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30051   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30052   esac
30053
30054   if test x"$ac_file" != x-; then
30055     { echo "$as_me:$LINENO: creating $ac_file" >&5
30056 echo "$as_me: creating $ac_file" >&6;}
30057     rm -f "$ac_file"
30058   fi
30059   # Let's still pretend it is `configure' which instantiates (i.e., don't
30060   # use $as_me), people would be surprised to read:
30061   #    /* config.h.  Generated by config.status.  */
30062   if test x"$ac_file" = x-; then
30063     configure_input=
30064   else
30065     configure_input="$ac_file.  "
30066   fi
30067   configure_input=$configure_input"Generated from `echo $ac_file_in |
30068                                      sed 's,.*/,,'` by configure."
30069
30070   # First look for the input files in the build tree, otherwise in the
30071   # src tree.
30072   ac_file_inputs=`IFS=:
30073     for f in $ac_file_in; do
30074       case $f in
30075       -) echo $tmp/stdin ;;
30076       [\\/$]*)
30077          # Absolute (can't be DOS-style, as IFS=:)
30078          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30079 echo "$as_me: error: cannot find input file: $f" >&2;}
30080    { (exit 1); exit 1; }; }
30081          echo "$f";;
30082       *) # Relative
30083          if test -f "$f"; then
30084            # Build tree
30085            echo "$f"
30086          elif test -f "$srcdir/$f"; then
30087            # Source tree
30088            echo "$srcdir/$f"
30089          else
30090            # /dev/null tree
30091            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30092 echo "$as_me: error: cannot find input file: $f" >&2;}
30093    { (exit 1); exit 1; }; }
30094          fi;;
30095       esac
30096     done` || { (exit 1); exit 1; }
30097 _ACEOF
30098 cat >>$CONFIG_STATUS <<_ACEOF
30099   sed "$ac_vpsub
30100 $extrasub
30101 _ACEOF
30102 cat >>$CONFIG_STATUS <<\_ACEOF
30103 :t
30104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30105 s,@configure_input@,$configure_input,;t t
30106 s,@srcdir@,$ac_srcdir,;t t
30107 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30108 s,@top_srcdir@,$ac_top_srcdir,;t t
30109 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30110 s,@builddir@,$ac_builddir,;t t
30111 s,@abs_builddir@,$ac_abs_builddir,;t t
30112 s,@top_builddir@,$ac_top_builddir,;t t
30113 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30114 s,@INSTALL@,$ac_INSTALL,;t t
30115 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30116   rm -f $tmp/stdin
30117   if test x"$ac_file" != x-; then
30118     mv $tmp/out $ac_file
30119   else
30120     cat $tmp/out
30121     rm -f $tmp/out
30122   fi
30123
30124   # Run the commands associated with the file.
30125   case $ac_file in
30126     scripts/jar ) chmod +x scripts/jar ;;
30127   esac
30128 done
30129 _ACEOF
30130 cat >>$CONFIG_STATUS <<\_ACEOF
30131
30132 #
30133 # CONFIG_HEADER section.
30134 #
30135
30136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30138 #
30139 # ac_d sets the value in "#define NAME VALUE" lines.
30140 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30141 ac_dB='[         ].*$,\1#\2'
30142 ac_dC=' '
30143 ac_dD=',;t'
30144 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30145 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30146 ac_uB='$,\1#\2define\3'
30147 ac_uC=' '
30148 ac_uD=',;t'
30149
30150 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30151   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30152   case $ac_file in
30153   - | *:- | *:-:* ) # input from stdin
30154         cat >$tmp/stdin
30155         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30156         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30157   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30158         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30159   * )   ac_file_in=$ac_file.in ;;
30160   esac
30161
30162   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30163 echo "$as_me: creating $ac_file" >&6;}
30164
30165   # First look for the input files in the build tree, otherwise in the
30166   # src tree.
30167   ac_file_inputs=`IFS=:
30168     for f in $ac_file_in; do
30169       case $f in
30170       -) echo $tmp/stdin ;;
30171       [\\/$]*)
30172          # Absolute (can't be DOS-style, as IFS=:)
30173          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30174 echo "$as_me: error: cannot find input file: $f" >&2;}
30175    { (exit 1); exit 1; }; }
30176          # Do quote $f, to prevent DOS paths from being IFS'd.
30177          echo "$f";;
30178       *) # Relative
30179          if test -f "$f"; then
30180            # Build tree
30181            echo "$f"
30182          elif test -f "$srcdir/$f"; then
30183            # Source tree
30184            echo "$srcdir/$f"
30185          else
30186            # /dev/null tree
30187            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30188 echo "$as_me: error: cannot find input file: $f" >&2;}
30189    { (exit 1); exit 1; }; }
30190          fi;;
30191       esac
30192     done` || { (exit 1); exit 1; }
30193   # Remove the trailing spaces.
30194   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30195
30196 _ACEOF
30197
30198 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30199 # `conftest.undefs', that substitutes the proper values into
30200 # config.h.in to produce config.h.  The first handles `#define'
30201 # templates, and the second `#undef' templates.
30202 # And first: Protect against being on the right side of a sed subst in
30203 # config.status.  Protect against being in an unquoted here document
30204 # in config.status.
30205 rm -f conftest.defines conftest.undefs
30206 # Using a here document instead of a string reduces the quoting nightmare.
30207 # Putting comments in sed scripts is not portable.
30208 #
30209 # `end' is used to avoid that the second main sed command (meant for
30210 # 0-ary CPP macros) applies to n-ary macro definitions.
30211 # See the Autoconf documentation for `clear'.
30212 cat >confdef2sed.sed <<\_ACEOF
30213 s/[\\&,]/\\&/g
30214 s,[\\$`],\\&,g
30215 t clear
30216 : clear
30217 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30218 t end
30219 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30220 : end
30221 _ACEOF
30222 # If some macros were called several times there might be several times
30223 # the same #defines, which is useless.  Nevertheless, we may not want to
30224 # sort them, since we want the *last* AC-DEFINE to be honored.
30225 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30226 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30227 rm -f confdef2sed.sed
30228
30229 # This sed command replaces #undef with comments.  This is necessary, for
30230 # example, in the case of _POSIX_SOURCE, which is predefined and required
30231 # on some systems where configure will not decide to define it.
30232 cat >>conftest.undefs <<\_ACEOF
30233 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30234 _ACEOF
30235
30236 # Break up conftest.defines because some shells have a limit on the size
30237 # of here documents, and old seds have small limits too (100 cmds).
30238 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30239 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30240 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30241 echo '  :' >>$CONFIG_STATUS
30242 rm -f conftest.tail
30243 while grep . conftest.defines >/dev/null
30244 do
30245   # Write a limited-size here document to $tmp/defines.sed.
30246   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30247   # Speed up: don't consider the non `#define' lines.
30248   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30249   # Work around the forget-to-reset-the-flag bug.
30250   echo 't clr' >>$CONFIG_STATUS
30251   echo ': clr' >>$CONFIG_STATUS
30252   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30253   echo 'CEOF
30254   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30255   rm -f $tmp/in
30256   mv $tmp/out $tmp/in
30257 ' >>$CONFIG_STATUS
30258   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30259   rm -f conftest.defines
30260   mv conftest.tail conftest.defines
30261 done
30262 rm -f conftest.defines
30263 echo '  fi # grep' >>$CONFIG_STATUS
30264 echo >>$CONFIG_STATUS
30265
30266 # Break up conftest.undefs because some shells have a limit on the size
30267 # of here documents, and old seds have small limits too (100 cmds).
30268 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30269 rm -f conftest.tail
30270 while grep . conftest.undefs >/dev/null
30271 do
30272   # Write a limited-size here document to $tmp/undefs.sed.
30273   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30274   # Speed up: don't consider the non `#undef'
30275   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30276   # Work around the forget-to-reset-the-flag bug.
30277   echo 't clr' >>$CONFIG_STATUS
30278   echo ': clr' >>$CONFIG_STATUS
30279   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30280   echo 'CEOF
30281   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30282   rm -f $tmp/in
30283   mv $tmp/out $tmp/in
30284 ' >>$CONFIG_STATUS
30285   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30286   rm -f conftest.undefs
30287   mv conftest.tail conftest.undefs
30288 done
30289 rm -f conftest.undefs
30290
30291 cat >>$CONFIG_STATUS <<\_ACEOF
30292   # Let's still pretend it is `configure' which instantiates (i.e., don't
30293   # use $as_me), people would be surprised to read:
30294   #    /* config.h.  Generated by config.status.  */
30295   if test x"$ac_file" = x-; then
30296     echo "/* Generated by configure.  */" >$tmp/config.h
30297   else
30298     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30299   fi
30300   cat $tmp/in >>$tmp/config.h
30301   rm -f $tmp/in
30302   if test x"$ac_file" != x-; then
30303     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30304       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30305 echo "$as_me: $ac_file is unchanged" >&6;}
30306     else
30307       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30309          X"$ac_file" : 'X\(//\)[^/]' \| \
30310          X"$ac_file" : 'X\(//\)$' \| \
30311          X"$ac_file" : 'X\(/\)' \| \
30312          .     : '\(.\)' 2>/dev/null ||
30313 echo X"$ac_file" |
30314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30316           /^X\(\/\/\)$/{ s//\1/; q; }
30317           /^X\(\/\).*/{ s//\1/; q; }
30318           s/.*/./; q'`
30319       { if $as_mkdir_p; then
30320     mkdir -p "$ac_dir"
30321   else
30322     as_dir="$ac_dir"
30323     as_dirs=
30324     while test ! -d "$as_dir"; do
30325       as_dirs="$as_dir $as_dirs"
30326       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30328          X"$as_dir" : 'X\(//\)[^/]' \| \
30329          X"$as_dir" : 'X\(//\)$' \| \
30330          X"$as_dir" : 'X\(/\)' \| \
30331          .     : '\(.\)' 2>/dev/null ||
30332 echo X"$as_dir" |
30333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30335           /^X\(\/\/\)$/{ s//\1/; q; }
30336           /^X\(\/\).*/{ s//\1/; q; }
30337           s/.*/./; q'`
30338     done
30339     test ! -n "$as_dirs" || mkdir $as_dirs
30340   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30342    { (exit 1); exit 1; }; }; }
30343
30344       rm -f $ac_file
30345       mv $tmp/config.h $ac_file
30346     fi
30347   else
30348     cat $tmp/config.h
30349     rm -f $tmp/config.h
30350   fi
30351 # Compute $ac_file's index in $config_headers.
30352 _am_stamp_count=1
30353 for _am_header in $config_headers :; do
30354   case $_am_header in
30355     $ac_file | $ac_file:* )
30356       break ;;
30357     * )
30358       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30359   esac
30360 done
30361 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30362 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30363          X$ac_file : 'X\(//\)[^/]' \| \
30364          X$ac_file : 'X\(//\)$' \| \
30365          X$ac_file : 'X\(/\)' \| \
30366          .     : '\(.\)' 2>/dev/null ||
30367 echo X$ac_file |
30368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30370           /^X\(\/\/\)$/{ s//\1/; q; }
30371           /^X\(\/\).*/{ s//\1/; q; }
30372           s/.*/./; q'`/stamp-h$_am_stamp_count
30373 done
30374 _ACEOF
30375 cat >>$CONFIG_STATUS <<\_ACEOF
30376
30377 #
30378 # CONFIG_LINKS section.
30379 #
30380
30381 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30382   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30383   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30384
30385   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30386 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30387
30388   if test ! -r $srcdir/$ac_source; then
30389     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30390 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30391    { (exit 1); exit 1; }; }
30392   fi
30393   rm -f $ac_dest
30394
30395   # Make relative symlinks.
30396   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30397 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30398          X"$ac_dest" : 'X\(//\)[^/]' \| \
30399          X"$ac_dest" : 'X\(//\)$' \| \
30400          X"$ac_dest" : 'X\(/\)' \| \
30401          .     : '\(.\)' 2>/dev/null ||
30402 echo X"$ac_dest" |
30403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30404           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30405           /^X\(\/\/\)$/{ s//\1/; q; }
30406           /^X\(\/\).*/{ s//\1/; q; }
30407           s/.*/./; q'`
30408   { if $as_mkdir_p; then
30409     mkdir -p "$ac_dest_dir"
30410   else
30411     as_dir="$ac_dest_dir"
30412     as_dirs=
30413     while test ! -d "$as_dir"; do
30414       as_dirs="$as_dir $as_dirs"
30415       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30417          X"$as_dir" : 'X\(//\)[^/]' \| \
30418          X"$as_dir" : 'X\(//\)$' \| \
30419          X"$as_dir" : 'X\(/\)' \| \
30420          .     : '\(.\)' 2>/dev/null ||
30421 echo X"$as_dir" |
30422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30423           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30424           /^X\(\/\/\)$/{ s//\1/; q; }
30425           /^X\(\/\).*/{ s//\1/; q; }
30426           s/.*/./; q'`
30427     done
30428     test ! -n "$as_dirs" || mkdir $as_dirs
30429   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30430 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30431    { (exit 1); exit 1; }; }; }
30432
30433   ac_builddir=.
30434
30435 if test "$ac_dest_dir" != .; then
30436   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30437   # A "../" for each directory in $ac_dir_suffix.
30438   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30439 else
30440   ac_dir_suffix= ac_top_builddir=
30441 fi
30442
30443 case $srcdir in
30444   .)  # No --srcdir option.  We are building in place.
30445     ac_srcdir=.
30446     if test -z "$ac_top_builddir"; then
30447        ac_top_srcdir=.
30448     else
30449        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30450     fi ;;
30451   [\\/]* | ?:[\\/]* )  # Absolute path.
30452     ac_srcdir=$srcdir$ac_dir_suffix;
30453     ac_top_srcdir=$srcdir ;;
30454   *) # Relative path.
30455     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30456     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30457 esac
30458
30459 # Do not use `cd foo && pwd` to compute absolute paths, because
30460 # the directories may not exist.
30461 case `pwd` in
30462 .) ac_abs_builddir="$ac_dest_dir";;
30463 *)
30464   case "$ac_dest_dir" in
30465   .) ac_abs_builddir=`pwd`;;
30466   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30467   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30468   esac;;
30469 esac
30470 case $ac_abs_builddir in
30471 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30472 *)
30473   case ${ac_top_builddir}. in
30474   .) ac_abs_top_builddir=$ac_abs_builddir;;
30475   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30476   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30477   esac;;
30478 esac
30479 case $ac_abs_builddir in
30480 .) ac_abs_srcdir=$ac_srcdir;;
30481 *)
30482   case $ac_srcdir in
30483   .) ac_abs_srcdir=$ac_abs_builddir;;
30484   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30485   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30486   esac;;
30487 esac
30488 case $ac_abs_builddir in
30489 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30490 *)
30491   case $ac_top_srcdir in
30492   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30493   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30494   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30495   esac;;
30496 esac
30497
30498
30499   case $srcdir in
30500   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30501       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30502   esac
30503
30504   # Try a symlink, then a hard link, then a copy.
30505   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30506     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30507     cp -p $srcdir/$ac_source $ac_dest ||
30508     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30509 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30510    { (exit 1); exit 1; }; }
30511 done
30512 _ACEOF
30513 cat >>$CONFIG_STATUS <<\_ACEOF
30514
30515 #
30516 # CONFIG_COMMANDS section.
30517 #
30518 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30519   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30520   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30521   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30522 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30523          X"$ac_dest" : 'X\(//\)[^/]' \| \
30524          X"$ac_dest" : 'X\(//\)$' \| \
30525          X"$ac_dest" : 'X\(/\)' \| \
30526          .     : '\(.\)' 2>/dev/null ||
30527 echo X"$ac_dest" |
30528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30529           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30530           /^X\(\/\/\)$/{ s//\1/; q; }
30531           /^X\(\/\).*/{ s//\1/; q; }
30532           s/.*/./; q'`
30533   { if $as_mkdir_p; then
30534     mkdir -p "$ac_dir"
30535   else
30536     as_dir="$ac_dir"
30537     as_dirs=
30538     while test ! -d "$as_dir"; do
30539       as_dirs="$as_dir $as_dirs"
30540       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30542          X"$as_dir" : 'X\(//\)[^/]' \| \
30543          X"$as_dir" : 'X\(//\)$' \| \
30544          X"$as_dir" : 'X\(/\)' \| \
30545          .     : '\(.\)' 2>/dev/null ||
30546 echo X"$as_dir" |
30547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30548           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30549           /^X\(\/\/\)$/{ s//\1/; q; }
30550           /^X\(\/\).*/{ s//\1/; q; }
30551           s/.*/./; q'`
30552     done
30553     test ! -n "$as_dirs" || mkdir $as_dirs
30554   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30556    { (exit 1); exit 1; }; }; }
30557
30558   ac_builddir=.
30559
30560 if test "$ac_dir" != .; then
30561   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30562   # A "../" for each directory in $ac_dir_suffix.
30563   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30564 else
30565   ac_dir_suffix= ac_top_builddir=
30566 fi
30567
30568 case $srcdir in
30569   .)  # No --srcdir option.  We are building in place.
30570     ac_srcdir=.
30571     if test -z "$ac_top_builddir"; then
30572        ac_top_srcdir=.
30573     else
30574        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30575     fi ;;
30576   [\\/]* | ?:[\\/]* )  # Absolute path.
30577     ac_srcdir=$srcdir$ac_dir_suffix;
30578     ac_top_srcdir=$srcdir ;;
30579   *) # Relative path.
30580     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30581     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30582 esac
30583
30584 # Do not use `cd foo && pwd` to compute absolute paths, because
30585 # the directories may not exist.
30586 case `pwd` in
30587 .) ac_abs_builddir="$ac_dir";;
30588 *)
30589   case "$ac_dir" in
30590   .) ac_abs_builddir=`pwd`;;
30591   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30592   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30593   esac;;
30594 esac
30595 case $ac_abs_builddir in
30596 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30597 *)
30598   case ${ac_top_builddir}. in
30599   .) ac_abs_top_builddir=$ac_abs_builddir;;
30600   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30601   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30602   esac;;
30603 esac
30604 case $ac_abs_builddir in
30605 .) ac_abs_srcdir=$ac_srcdir;;
30606 *)
30607   case $ac_srcdir in
30608   .) ac_abs_srcdir=$ac_abs_builddir;;
30609   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30610   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30611   esac;;
30612 esac
30613 case $ac_abs_builddir in
30614 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30615 *)
30616   case $ac_top_srcdir in
30617   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30618   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30619   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30620   esac;;
30621 esac
30622
30623
30624   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30625 echo "$as_me: executing $ac_dest commands" >&6;}
30626   case $ac_dest in
30627     default-1 )
30628 # Only add multilib support code if we just rebuilt the top-level
30629 # Makefile.
30630 case " $CONFIG_FILES " in
30631  *" Makefile "*)
30632    ac_file=Makefile . ${multi_basedir}/config-ml.in
30633    ;;
30634 esac ;;
30635     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30636   # Strip MF so we end up with the name of the file.
30637   mf=`echo "$mf" | sed -e 's/:.*$//'`
30638   # Check whether this is an Automake generated Makefile or not.
30639   # We used to match only the files named `Makefile.in', but
30640   # some people rename them; so instead we look at the file content.
30641   # Grep'ing the first line is not enough: some people post-process
30642   # each Makefile.in and add a new line on top of each file to say so.
30643   # So let's grep whole file.
30644   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30645     dirpart=`(dirname "$mf") 2>/dev/null ||
30646 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30647          X"$mf" : 'X\(//\)[^/]' \| \
30648          X"$mf" : 'X\(//\)$' \| \
30649          X"$mf" : 'X\(/\)' \| \
30650          .     : '\(.\)' 2>/dev/null ||
30651 echo X"$mf" |
30652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30654           /^X\(\/\/\)$/{ s//\1/; q; }
30655           /^X\(\/\).*/{ s//\1/; q; }
30656           s/.*/./; q'`
30657   else
30658     continue
30659   fi
30660   # Extract the definition of DEPDIR, am__include, and am__quote
30661   # from the Makefile without running `make'.
30662   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30663   test -z "$DEPDIR" && continue
30664   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30665   test -z "am__include" && continue
30666   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30667   # When using ansi2knr, U may be empty or an underscore; expand it
30668   U=`sed -n 's/^U = //p' < "$mf"`
30669   # Find all dependency output files, they are included files with
30670   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30671   # simplest approach to changing $(DEPDIR) to its actual value in the
30672   # expansion.
30673   for file in `sed -n "
30674     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30675        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30676     # Make sure the directory exists.
30677     test -f "$dirpart/$file" && continue
30678     fdir=`(dirname "$file") 2>/dev/null ||
30679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30680          X"$file" : 'X\(//\)[^/]' \| \
30681          X"$file" : 'X\(//\)$' \| \
30682          X"$file" : 'X\(/\)' \| \
30683          .     : '\(.\)' 2>/dev/null ||
30684 echo X"$file" |
30685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30687           /^X\(\/\/\)$/{ s//\1/; q; }
30688           /^X\(\/\).*/{ s//\1/; q; }
30689           s/.*/./; q'`
30690     { if $as_mkdir_p; then
30691     mkdir -p $dirpart/$fdir
30692   else
30693     as_dir=$dirpart/$fdir
30694     as_dirs=
30695     while test ! -d "$as_dir"; do
30696       as_dirs="$as_dir $as_dirs"
30697       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30699          X"$as_dir" : 'X\(//\)[^/]' \| \
30700          X"$as_dir" : 'X\(//\)$' \| \
30701          X"$as_dir" : 'X\(/\)' \| \
30702          .     : '\(.\)' 2>/dev/null ||
30703 echo X"$as_dir" |
30704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30706           /^X\(\/\/\)$/{ s//\1/; q; }
30707           /^X\(\/\).*/{ s//\1/; q; }
30708           s/.*/./; q'`
30709     done
30710     test ! -n "$as_dirs" || mkdir $as_dirs
30711   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30712 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30713    { (exit 1); exit 1; }; }; }
30714
30715     # echo "creating $dirpart/$file"
30716     echo '# dummy' > "$dirpart/$file"
30717   done
30718 done
30719  ;;
30720     libtool )
30721
30722     # See if we are running on zsh, and set the options which allow our
30723     # commands through without removal of \ escapes.
30724     if test -n "${ZSH_VERSION+set}" ; then
30725       setopt NO_GLOB_SUBST
30726     fi
30727
30728     cfgfile="${ofile}T"
30729     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30730     $RM "$cfgfile"
30731
30732     cat <<_LT_EOF >> "$cfgfile"
30733 #! $SHELL
30734
30735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30736 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30739 #
30740 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30741 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30742 #   Written by Gordon Matzigkeit, 1996
30743 #
30744 #   This file is part of GNU Libtool.
30745 #
30746 # GNU Libtool is free software; you can redistribute it and/or
30747 # modify it under the terms of the GNU General Public License as
30748 # published by the Free Software Foundation; either version 2 of
30749 # the License, or (at your option) any later version.
30750 #
30751 # As a special exception to the GNU General Public License,
30752 # if you distribute this file as part of a program or library that
30753 # is built using GNU Libtool, you may include this file under the
30754 # same distribution terms that you use for the rest of that program.
30755 #
30756 # GNU Libtool is distributed in the hope that it will be useful,
30757 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30758 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30759 # GNU General Public License for more details.
30760 #
30761 # You should have received a copy of the GNU General Public License
30762 # along with GNU Libtool; see the file COPYING.  If not, a copy
30763 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30764 # obtained by writing to the Free Software Foundation, Inc.,
30765 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30766
30767
30768 # The names of the tagged configurations supported by this script.
30769 available_tags="CXX GCJ "
30770
30771 # ### BEGIN LIBTOOL CONFIG
30772
30773 # Which release of libtool.m4 was used?
30774 macro_version=$macro_version
30775 macro_revision=$macro_revision
30776
30777 # Whether or not to build shared libraries.
30778 build_libtool_libs=$enable_shared
30779
30780 # Whether or not to build static libraries.
30781 build_old_libs=$enable_static
30782
30783 # What type of objects to build.
30784 pic_mode=$pic_mode
30785
30786 # Whether or not to optimize for fast installation.
30787 fast_install=$enable_fast_install
30788
30789 # The host system.
30790 host_alias=$host_alias
30791 host=$host
30792 host_os=$host_os
30793
30794 # The build system.
30795 build_alias=$build_alias
30796 build=$build
30797 build_os=$build_os
30798
30799 # A sed program that does not truncate output.
30800 SED=$lt_SED
30801
30802 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30803 Xsed="\$SED -e 1s/^X//"
30804
30805 # A grep program that handles long lines.
30806 GREP=$lt_GREP
30807
30808 # An ERE matcher.
30809 EGREP=$lt_EGREP
30810
30811 # A literal string matcher.
30812 FGREP=$lt_FGREP
30813
30814 # A BSD- or MS-compatible name lister.
30815 NM=$lt_NM
30816
30817 # Whether we need soft or hard links.
30818 LN_S=$lt_LN_S
30819
30820 # What is the maximum length of a command?
30821 max_cmd_len=$max_cmd_len
30822
30823 # Object file suffix (normally "o").
30824 objext=$ac_objext
30825
30826 # Executable file suffix (normally "").
30827 exeext=$exeext
30828
30829 # whether the shell understands "unset".
30830 lt_unset=$lt_unset
30831
30832 # turn spaces into newlines.
30833 SP2NL=$lt_lt_SP2NL
30834
30835 # turn newlines into spaces.
30836 NL2SP=$lt_lt_NL2SP
30837
30838 # How to create reloadable object files.
30839 reload_flag=$lt_reload_flag
30840 reload_cmds=$lt_reload_cmds
30841
30842 # An object symbol dumper.
30843 OBJDUMP=$lt_OBJDUMP
30844
30845 # Method to check whether dependent libraries are shared objects.
30846 deplibs_check_method=$lt_deplibs_check_method
30847
30848 # Command to use when deplibs_check_method == "file_magic".
30849 file_magic_cmd=$lt_file_magic_cmd
30850
30851 # The archiver.
30852 AR=$lt_AR
30853 AR_FLAGS=$lt_AR_FLAGS
30854
30855 # A symbol stripping program.
30856 STRIP=$lt_STRIP
30857
30858 # Commands used to install an old-style archive.
30859 RANLIB=$lt_RANLIB
30860 old_postinstall_cmds=$lt_old_postinstall_cmds
30861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30862
30863 # A C compiler.
30864 LTCC=$lt_CC
30865
30866 # LTCC compiler flags.
30867 LTCFLAGS=$lt_CFLAGS
30868
30869 # Take the output of nm and produce a listing of raw symbols and C names.
30870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30871
30872 # Transform the output of nm in a proper C declaration.
30873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30874
30875 # Transform the output of nm in a C name address pair.
30876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30877
30878 # Transform the output of nm in a C name address pair when lib prefix is needed.
30879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30880
30881 # The name of the directory that contains temporary libtool files.
30882 objdir=$objdir
30883
30884 # Shell to use when invoking shell scripts.
30885 SHELL=$lt_SHELL
30886
30887 # An echo program that does not interpret backslashes.
30888 ECHO=$lt_ECHO
30889
30890 # Used to examine libraries when file_magic_cmd begins with "file".
30891 MAGIC_CMD=$MAGIC_CMD
30892
30893 # Must we lock files when doing compilation?
30894 need_locks=$lt_need_locks
30895
30896 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30897 DSYMUTIL=$lt_DSYMUTIL
30898
30899 # Tool to change global to local symbols on Mac OS X.
30900 NMEDIT=$lt_NMEDIT
30901
30902 # Tool to manipulate fat objects and archives on Mac OS X.
30903 LIPO=$lt_LIPO
30904
30905 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30906 OTOOL=$lt_OTOOL
30907
30908 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30909 OTOOL64=$lt_OTOOL64
30910
30911 # Old archive suffix (normally "a").
30912 libext=$libext
30913
30914 # Shared library suffix (normally ".so").
30915 shrext_cmds=$lt_shrext_cmds
30916
30917 # The commands to extract the exported symbol list from a shared archive.
30918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30919
30920 # Variables whose values should be saved in libtool wrapper scripts and
30921 # restored at link time.
30922 variables_saved_for_relink=$lt_variables_saved_for_relink
30923
30924 # Do we need the "lib" prefix for modules?
30925 need_lib_prefix=$need_lib_prefix
30926
30927 # Do we need a version for libraries?
30928 need_version=$need_version
30929
30930 # Library versioning type.
30931 version_type=$version_type
30932
30933 # Shared library runtime path variable.
30934 runpath_var=$runpath_var
30935
30936 # Shared library path variable.
30937 shlibpath_var=$shlibpath_var
30938
30939 # Is shlibpath searched before the hard-coded library search path?
30940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30941
30942 # Format of library name prefix.
30943 libname_spec=$lt_libname_spec
30944
30945 # List of archive names.  First name is the real one, the rest are links.
30946 # The last name is the one that the linker finds with -lNAME
30947 library_names_spec=$lt_library_names_spec
30948
30949 # The coded name of the library, if different from the real name.
30950 soname_spec=$lt_soname_spec
30951
30952 # Command to use after installation of a shared archive.
30953 postinstall_cmds=$lt_postinstall_cmds
30954
30955 # Command to use after uninstallation of a shared archive.
30956 postuninstall_cmds=$lt_postuninstall_cmds
30957
30958 # Commands used to finish a libtool library installation in a directory.
30959 finish_cmds=$lt_finish_cmds
30960
30961 # As "finish_cmds", except a single script fragment to be evaled but
30962 # not shown.
30963 finish_eval=$lt_finish_eval
30964
30965 # Whether we should hardcode library paths into libraries.
30966 hardcode_into_libs=$hardcode_into_libs
30967
30968 # Compile-time system search path for libraries.
30969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30970
30971 # Run-time system search path for libraries.
30972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30973
30974 # Whether dlopen is supported.
30975 dlopen_support=$enable_dlopen
30976
30977 # Whether dlopen of programs is supported.
30978 dlopen_self=$enable_dlopen_self
30979
30980 # Whether dlopen of statically linked programs is supported.
30981 dlopen_self_static=$enable_dlopen_self_static
30982
30983 # Commands to strip libraries.
30984 old_striplib=$lt_old_striplib
30985 striplib=$lt_striplib
30986
30987
30988 # The linker used to build libraries.
30989 LD=$lt_LD
30990
30991 # Commands used to build an old-style archive.
30992 old_archive_cmds=$lt_old_archive_cmds
30993
30994 # A language specific compiler.
30995 CC=$lt_compiler
30996
30997 # Is the compiler the GNU compiler?
30998 with_gcc=$GCC
30999
31000 # Compiler flag to turn off builtin functions.
31001 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31002
31003 # How to pass a linker flag through the compiler.
31004 wl=$lt_lt_prog_compiler_wl
31005
31006 # Additional compiler flags for building library objects.
31007 pic_flag=$lt_lt_prog_compiler_pic
31008
31009 # Compiler flag to prevent dynamic linking.
31010 link_static_flag=$lt_lt_prog_compiler_static
31011
31012 # Does compiler simultaneously support -c and -o options?
31013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31014
31015 # Whether or not to add -lc for building shared libraries.
31016 build_libtool_need_lc=$archive_cmds_need_lc
31017
31018 # Whether or not to disallow shared libs when runtime libs are static.
31019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31020
31021 # Compiler flag to allow reflexive dlopens.
31022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31023
31024 # Compiler flag to generate shared objects directly from archives.
31025 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31026
31027 # Whether the compiler copes with passing no objects directly.
31028 compiler_needs_object=$lt_compiler_needs_object
31029
31030 # Create an old-style archive from a shared archive.
31031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31032
31033 # Create a temporary old-style archive to link instead of a shared archive.
31034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31035
31036 # Commands used to build a shared archive.
31037 archive_cmds=$lt_archive_cmds
31038 archive_expsym_cmds=$lt_archive_expsym_cmds
31039
31040 # Commands used to build a loadable module if different from building
31041 # a shared archive.
31042 module_cmds=$lt_module_cmds
31043 module_expsym_cmds=$lt_module_expsym_cmds
31044
31045 # Whether we are building with GNU ld or not.
31046 with_gnu_ld=$lt_with_gnu_ld
31047
31048 # Flag that allows shared libraries with undefined symbols to be built.
31049 allow_undefined_flag=$lt_allow_undefined_flag
31050
31051 # Flag that enforces no undefined symbols.
31052 no_undefined_flag=$lt_no_undefined_flag
31053
31054 # Flag to hardcode \$libdir into a binary during linking.
31055 # This must work even if \$libdir does not exist
31056 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31057
31058 # If ld is used when linking, flag to hardcode \$libdir into a binary
31059 # during linking.  This must work even if \$libdir does not exist.
31060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31061
31062 # Whether we need a single "-rpath" flag with a separated argument.
31063 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31064
31065 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31066 # DIR into the resulting binary.
31067 hardcode_direct=$hardcode_direct
31068
31069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31070 # DIR into the resulting binary and the resulting library dependency is
31071 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31072 # library is relocated.
31073 hardcode_direct_absolute=$hardcode_direct_absolute
31074
31075 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31076 # into the resulting binary.
31077 hardcode_minus_L=$hardcode_minus_L
31078
31079 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31080 # into the resulting binary.
31081 hardcode_shlibpath_var=$hardcode_shlibpath_var
31082
31083 # Set to "yes" if building a shared library automatically hardcodes DIR
31084 # into the library and all subsequent libraries and executables linked
31085 # against it.
31086 hardcode_automatic=$hardcode_automatic
31087
31088 # Set to yes if linker adds runtime paths of dependent libraries
31089 # to runtime path list.
31090 inherit_rpath=$inherit_rpath
31091
31092 # Whether libtool must link a program against all its dependency libraries.
31093 link_all_deplibs=$link_all_deplibs
31094
31095 # Fix the shell variable \$srcfile for the compiler.
31096 fix_srcfile_path=$lt_fix_srcfile_path
31097
31098 # Set to "yes" if exported symbols are required.
31099 always_export_symbols=$always_export_symbols
31100
31101 # The commands to list exported symbols.
31102 export_symbols_cmds=$lt_export_symbols_cmds
31103
31104 # Symbols that should not be listed in the preloaded symbols.
31105 exclude_expsyms=$lt_exclude_expsyms
31106
31107 # Symbols that must always be exported.
31108 include_expsyms=$lt_include_expsyms
31109
31110 # Commands necessary for linking programs (against libraries) with templates.
31111 prelink_cmds=$lt_prelink_cmds
31112
31113 # Specify filename containing input files.
31114 file_list_spec=$lt_file_list_spec
31115
31116 # How to hardcode a shared library path into an executable.
31117 hardcode_action=$hardcode_action
31118
31119 # The directories searched by this compiler when creating a shared library.
31120 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31121
31122 # Dependencies to place before and after the objects being linked to
31123 # create a shared library.
31124 predep_objects=$lt_predep_objects
31125 postdep_objects=$lt_postdep_objects
31126 predeps=$lt_predeps
31127 postdeps=$lt_postdeps
31128
31129 # The library search path used internally by the compiler when linking
31130 # a shared library.
31131 compiler_lib_search_path=$lt_compiler_lib_search_path
31132
31133 # ### END LIBTOOL CONFIG
31134
31135 _LT_EOF
31136
31137   case $host_os in
31138   aix3*)
31139     cat <<\_LT_EOF >> "$cfgfile"
31140 # AIX sometimes has problems with the GCC collect2 program.  For some
31141 # reason, if we set the COLLECT_NAMES environment variable, the problems
31142 # vanish in a puff of smoke.
31143 if test "X${COLLECT_NAMES+set}" != Xset; then
31144   COLLECT_NAMES=
31145   export COLLECT_NAMES
31146 fi
31147 _LT_EOF
31148     ;;
31149   esac
31150
31151
31152 ltmain="$ac_aux_dir/ltmain.sh"
31153
31154
31155   # We use sed instead of cat because bash on DJGPP gets confused if
31156   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31157   # text mode, it properly converts lines to CR/LF.  This bash problem
31158   # is reportedly fixed, but why not run on old versions too?
31159   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31160     || (rm -f "$cfgfile"; exit 1)
31161
31162   case $xsi_shell in
31163   yes)
31164     cat << \_LT_EOF >> "$cfgfile"
31165
31166 # func_dirname file append nondir_replacement
31167 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31168 # otherwise set result to NONDIR_REPLACEMENT.
31169 func_dirname ()
31170 {
31171   case ${1} in
31172     */*) func_dirname_result="${1%/*}${2}" ;;
31173     *  ) func_dirname_result="${3}" ;;
31174   esac
31175 }
31176
31177 # func_basename file
31178 func_basename ()
31179 {
31180   func_basename_result="${1##*/}"
31181 }
31182
31183 # func_dirname_and_basename file append nondir_replacement
31184 # perform func_basename and func_dirname in a single function
31185 # call:
31186 #   dirname:  Compute the dirname of FILE.  If nonempty,
31187 #             add APPEND to the result, otherwise set result
31188 #             to NONDIR_REPLACEMENT.
31189 #             value returned in "$func_dirname_result"
31190 #   basename: Compute filename of FILE.
31191 #             value retuned in "$func_basename_result"
31192 # Implementation must be kept synchronized with func_dirname
31193 # and func_basename. For efficiency, we do not delegate to
31194 # those functions but instead duplicate the functionality here.
31195 func_dirname_and_basename ()
31196 {
31197   case ${1} in
31198     */*) func_dirname_result="${1%/*}${2}" ;;
31199     *  ) func_dirname_result="${3}" ;;
31200   esac
31201   func_basename_result="${1##*/}"
31202 }
31203
31204 # func_stripname prefix suffix name
31205 # strip PREFIX and SUFFIX off of NAME.
31206 # PREFIX and SUFFIX must not contain globbing or regex special
31207 # characters, hashes, percent signs, but SUFFIX may contain a leading
31208 # dot (in which case that matches only a dot).
31209 func_stripname ()
31210 {
31211   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31212   # positional parameters, so assign one to ordinary parameter first.
31213   func_stripname_result=${3}
31214   func_stripname_result=${func_stripname_result#"${1}"}
31215   func_stripname_result=${func_stripname_result%"${2}"}
31216 }
31217
31218 # func_opt_split
31219 func_opt_split ()
31220 {
31221   func_opt_split_opt=${1%%=*}
31222   func_opt_split_arg=${1#*=}
31223 }
31224
31225 # func_lo2o object
31226 func_lo2o ()
31227 {
31228   case ${1} in
31229     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31230     *)    func_lo2o_result=${1} ;;
31231   esac
31232 }
31233
31234 # func_xform libobj-or-source
31235 func_xform ()
31236 {
31237   func_xform_result=${1%.*}.lo
31238 }
31239
31240 # func_arith arithmetic-term...
31241 func_arith ()
31242 {
31243   func_arith_result=$(( $* ))
31244 }
31245
31246 # func_len string
31247 # STRING may not start with a hyphen.
31248 func_len ()
31249 {
31250   func_len_result=${#1}
31251 }
31252
31253 _LT_EOF
31254     ;;
31255   *) # Bourne compatible functions.
31256     cat << \_LT_EOF >> "$cfgfile"
31257
31258 # func_dirname file append nondir_replacement
31259 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31260 # otherwise set result to NONDIR_REPLACEMENT.
31261 func_dirname ()
31262 {
31263   # Extract subdirectory from the argument.
31264   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31265   if test "X$func_dirname_result" = "X${1}"; then
31266     func_dirname_result="${3}"
31267   else
31268     func_dirname_result="$func_dirname_result${2}"
31269   fi
31270 }
31271
31272 # func_basename file
31273 func_basename ()
31274 {
31275   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31276 }
31277
31278
31279 # func_stripname prefix suffix name
31280 # strip PREFIX and SUFFIX off of NAME.
31281 # PREFIX and SUFFIX must not contain globbing or regex special
31282 # characters, hashes, percent signs, but SUFFIX may contain a leading
31283 # dot (in which case that matches only a dot).
31284 # func_strip_suffix prefix name
31285 func_stripname ()
31286 {
31287   case ${2} in
31288     .*) func_stripname_result=`$ECHO "X${3}" \
31289            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31290     *)  func_stripname_result=`$ECHO "X${3}" \
31291            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31292   esac
31293 }
31294
31295 # sed scripts:
31296 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31297 my_sed_long_arg='1s/^-[^=]*=//'
31298
31299 # func_opt_split
31300 func_opt_split ()
31301 {
31302   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31303   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31304 }
31305
31306 # func_lo2o object
31307 func_lo2o ()
31308 {
31309   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31310 }
31311
31312 # func_xform libobj-or-source
31313 func_xform ()
31314 {
31315   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31316 }
31317
31318 # func_arith arithmetic-term...
31319 func_arith ()
31320 {
31321   func_arith_result=`expr "$@"`
31322 }
31323
31324 # func_len string
31325 # STRING may not start with a hyphen.
31326 func_len ()
31327 {
31328   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31329 }
31330
31331 _LT_EOF
31332 esac
31333
31334 case $lt_shell_append in
31335   yes)
31336     cat << \_LT_EOF >> "$cfgfile"
31337
31338 # func_append var value
31339 # Append VALUE to the end of shell variable VAR.
31340 func_append ()
31341 {
31342   eval "$1+=\$2"
31343 }
31344 _LT_EOF
31345     ;;
31346   *)
31347     cat << \_LT_EOF >> "$cfgfile"
31348
31349 # func_append var value
31350 # Append VALUE to the end of shell variable VAR.
31351 func_append ()
31352 {
31353   eval "$1=\$$1\$2"
31354 }
31355
31356 _LT_EOF
31357     ;;
31358   esac
31359
31360
31361   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31362     || (rm -f "$cfgfile"; exit 1)
31363
31364   mv -f "$cfgfile" "$ofile" ||
31365     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31366   chmod +x "$ofile"
31367
31368
31369     cat <<_LT_EOF >> "$ofile"
31370
31371 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31372
31373 # The linker used to build libraries.
31374 LD=$lt_LD_CXX
31375
31376 # Commands used to build an old-style archive.
31377 old_archive_cmds=$lt_old_archive_cmds_CXX
31378
31379 # A language specific compiler.
31380 CC=$lt_compiler_CXX
31381
31382 # Is the compiler the GNU compiler?
31383 with_gcc=$GCC_CXX
31384
31385 # Compiler flag to turn off builtin functions.
31386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31387
31388 # How to pass a linker flag through the compiler.
31389 wl=$lt_lt_prog_compiler_wl_CXX
31390
31391 # Additional compiler flags for building library objects.
31392 pic_flag=$lt_lt_prog_compiler_pic_CXX
31393
31394 # Compiler flag to prevent dynamic linking.
31395 link_static_flag=$lt_lt_prog_compiler_static_CXX
31396
31397 # Does compiler simultaneously support -c and -o options?
31398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31399
31400 # Whether or not to add -lc for building shared libraries.
31401 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31402
31403 # Whether or not to disallow shared libs when runtime libs are static.
31404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31405
31406 # Compiler flag to allow reflexive dlopens.
31407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31408
31409 # Compiler flag to generate shared objects directly from archives.
31410 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31411
31412 # Whether the compiler copes with passing no objects directly.
31413 compiler_needs_object=$lt_compiler_needs_object_CXX
31414
31415 # Create an old-style archive from a shared archive.
31416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31417
31418 # Create a temporary old-style archive to link instead of a shared archive.
31419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31420
31421 # Commands used to build a shared archive.
31422 archive_cmds=$lt_archive_cmds_CXX
31423 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31424
31425 # Commands used to build a loadable module if different from building
31426 # a shared archive.
31427 module_cmds=$lt_module_cmds_CXX
31428 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31429
31430 # Whether we are building with GNU ld or not.
31431 with_gnu_ld=$lt_with_gnu_ld_CXX
31432
31433 # Flag that allows shared libraries with undefined symbols to be built.
31434 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31435
31436 # Flag that enforces no undefined symbols.
31437 no_undefined_flag=$lt_no_undefined_flag_CXX
31438
31439 # Flag to hardcode \$libdir into a binary during linking.
31440 # This must work even if \$libdir does not exist
31441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31442
31443 # If ld is used when linking, flag to hardcode \$libdir into a binary
31444 # during linking.  This must work even if \$libdir does not exist.
31445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31446
31447 # Whether we need a single "-rpath" flag with a separated argument.
31448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31449
31450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31451 # DIR into the resulting binary.
31452 hardcode_direct=$hardcode_direct_CXX
31453
31454 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31455 # DIR into the resulting binary and the resulting library dependency is
31456 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31457 # library is relocated.
31458 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31459
31460 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31461 # into the resulting binary.
31462 hardcode_minus_L=$hardcode_minus_L_CXX
31463
31464 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31465 # into the resulting binary.
31466 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31467
31468 # Set to "yes" if building a shared library automatically hardcodes DIR
31469 # into the library and all subsequent libraries and executables linked
31470 # against it.
31471 hardcode_automatic=$hardcode_automatic_CXX
31472
31473 # Set to yes if linker adds runtime paths of dependent libraries
31474 # to runtime path list.
31475 inherit_rpath=$inherit_rpath_CXX
31476
31477 # Whether libtool must link a program against all its dependency libraries.
31478 link_all_deplibs=$link_all_deplibs_CXX
31479
31480 # Fix the shell variable \$srcfile for the compiler.
31481 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31482
31483 # Set to "yes" if exported symbols are required.
31484 always_export_symbols=$always_export_symbols_CXX
31485
31486 # The commands to list exported symbols.
31487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31488
31489 # Symbols that should not be listed in the preloaded symbols.
31490 exclude_expsyms=$lt_exclude_expsyms_CXX
31491
31492 # Symbols that must always be exported.
31493 include_expsyms=$lt_include_expsyms_CXX
31494
31495 # Commands necessary for linking programs (against libraries) with templates.
31496 prelink_cmds=$lt_prelink_cmds_CXX
31497
31498 # Specify filename containing input files.
31499 file_list_spec=$lt_file_list_spec_CXX
31500
31501 # How to hardcode a shared library path into an executable.
31502 hardcode_action=$hardcode_action_CXX
31503
31504 # The directories searched by this compiler when creating a shared library.
31505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31506
31507 # Dependencies to place before and after the objects being linked to
31508 # create a shared library.
31509 predep_objects=$lt_predep_objects_CXX
31510 postdep_objects=$lt_postdep_objects_CXX
31511 predeps=$lt_predeps_CXX
31512 postdeps=$lt_postdeps_CXX
31513
31514 # The library search path used internally by the compiler when linking
31515 # a shared library.
31516 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31517
31518 # ### END LIBTOOL TAG CONFIG: CXX
31519 _LT_EOF
31520
31521
31522     cat <<_LT_EOF >> "$ofile"
31523
31524 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31525
31526 # The linker used to build libraries.
31527 LD=$lt_LD_GCJ
31528
31529 # Commands used to build an old-style archive.
31530 old_archive_cmds=$lt_old_archive_cmds_GCJ
31531
31532 # A language specific compiler.
31533 CC=$lt_compiler_GCJ
31534
31535 # Is the compiler the GNU compiler?
31536 with_gcc=$GCC_GCJ
31537
31538 # Compiler flag to turn off builtin functions.
31539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31540
31541 # How to pass a linker flag through the compiler.
31542 wl=$lt_lt_prog_compiler_wl_GCJ
31543
31544 # Additional compiler flags for building library objects.
31545 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31546
31547 # Compiler flag to prevent dynamic linking.
31548 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31549
31550 # Does compiler simultaneously support -c and -o options?
31551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31552
31553 # Whether or not to add -lc for building shared libraries.
31554 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31555
31556 # Whether or not to disallow shared libs when runtime libs are static.
31557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31558
31559 # Compiler flag to allow reflexive dlopens.
31560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31561
31562 # Compiler flag to generate shared objects directly from archives.
31563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31564
31565 # Whether the compiler copes with passing no objects directly.
31566 compiler_needs_object=$lt_compiler_needs_object_GCJ
31567
31568 # Create an old-style archive from a shared archive.
31569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31570
31571 # Create a temporary old-style archive to link instead of a shared archive.
31572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31573
31574 # Commands used to build a shared archive.
31575 archive_cmds=$lt_archive_cmds_GCJ
31576 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31577
31578 # Commands used to build a loadable module if different from building
31579 # a shared archive.
31580 module_cmds=$lt_module_cmds_GCJ
31581 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31582
31583 # Whether we are building with GNU ld or not.
31584 with_gnu_ld=$lt_with_gnu_ld_GCJ
31585
31586 # Flag that allows shared libraries with undefined symbols to be built.
31587 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31588
31589 # Flag that enforces no undefined symbols.
31590 no_undefined_flag=$lt_no_undefined_flag_GCJ
31591
31592 # Flag to hardcode \$libdir into a binary during linking.
31593 # This must work even if \$libdir does not exist
31594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31595
31596 # If ld is used when linking, flag to hardcode \$libdir into a binary
31597 # during linking.  This must work even if \$libdir does not exist.
31598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31599
31600 # Whether we need a single "-rpath" flag with a separated argument.
31601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31602
31603 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31604 # DIR into the resulting binary.
31605 hardcode_direct=$hardcode_direct_GCJ
31606
31607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31608 # DIR into the resulting binary and the resulting library dependency is
31609 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31610 # library is relocated.
31611 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31612
31613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31614 # into the resulting binary.
31615 hardcode_minus_L=$hardcode_minus_L_GCJ
31616
31617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31618 # into the resulting binary.
31619 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31620
31621 # Set to "yes" if building a shared library automatically hardcodes DIR
31622 # into the library and all subsequent libraries and executables linked
31623 # against it.
31624 hardcode_automatic=$hardcode_automatic_GCJ
31625
31626 # Set to yes if linker adds runtime paths of dependent libraries
31627 # to runtime path list.
31628 inherit_rpath=$inherit_rpath_GCJ
31629
31630 # Whether libtool must link a program against all its dependency libraries.
31631 link_all_deplibs=$link_all_deplibs_GCJ
31632
31633 # Fix the shell variable \$srcfile for the compiler.
31634 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31635
31636 # Set to "yes" if exported symbols are required.
31637 always_export_symbols=$always_export_symbols_GCJ
31638
31639 # The commands to list exported symbols.
31640 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31641
31642 # Symbols that should not be listed in the preloaded symbols.
31643 exclude_expsyms=$lt_exclude_expsyms_GCJ
31644
31645 # Symbols that must always be exported.
31646 include_expsyms=$lt_include_expsyms_GCJ
31647
31648 # Commands necessary for linking programs (against libraries) with templates.
31649 prelink_cmds=$lt_prelink_cmds_GCJ
31650
31651 # Specify filename containing input files.
31652 file_list_spec=$lt_file_list_spec_GCJ
31653
31654 # How to hardcode a shared library path into an executable.
31655 hardcode_action=$hardcode_action_GCJ
31656
31657 # The directories searched by this compiler when creating a shared library.
31658 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31659
31660 # Dependencies to place before and after the objects being linked to
31661 # create a shared library.
31662 predep_objects=$lt_predep_objects_GCJ
31663 postdep_objects=$lt_postdep_objects_GCJ
31664 predeps=$lt_predeps_GCJ
31665 postdeps=$lt_postdeps_GCJ
31666
31667 # The library search path used internally by the compiler when linking
31668 # a shared library.
31669 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31670
31671 # ### END LIBTOOL TAG CONFIG: GCJ
31672 _LT_EOF
31673
31674  ;;
31675   esac
31676 done
31677 _ACEOF
31678
31679 cat >>$CONFIG_STATUS <<\_ACEOF
31680
31681 { (exit 0); exit 0; }
31682 _ACEOF
31683 chmod +x $CONFIG_STATUS
31684 ac_clean_files=$ac_clean_files_save
31685
31686
31687 # configure is writing to config.log, and then calls config.status.
31688 # config.status does its own redirection, appending to config.log.
31689 # Unfortunately, on DOS this fails, as config.log is still kept open
31690 # by configure, so config.status won't be able to write to it; its
31691 # output is simply discarded.  So we exec the FD to /dev/null,
31692 # effectively closing config.log, so it can be properly (re)opened and
31693 # appended to by config.status.  When coming back to configure, we
31694 # need to make the FD available again.
31695 if test "$no_create" != yes; then
31696   ac_cs_success=:
31697   ac_config_status_args=
31698   test "$silent" = yes &&
31699     ac_config_status_args="$ac_config_status_args --quiet"
31700   exec 5>/dev/null
31701   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31702   exec 5>>config.log
31703   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31704   # would make configure fail if this is the last instruction.
31705   $ac_cs_success || { (exit 1); exit 1; }
31706 fi
31707
31708 #
31709 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31710 #
31711 if test "$no_recursion" != yes; then
31712
31713   # Remove --cache-file and --srcdir arguments so they do not pile up.
31714   ac_sub_configure_args=
31715   ac_prev=
31716   eval "set x $ac_configure_args"
31717   shift
31718   for ac_arg
31719   do
31720     if test -n "$ac_prev"; then
31721       ac_prev=
31722       continue
31723     fi
31724     case $ac_arg in
31725     -cache-file | --cache-file | --cache-fil | --cache-fi \
31726     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31727       ac_prev=cache_file ;;
31728     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31729     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31730     | --c=*)
31731       ;;
31732     --config-cache | -C)
31733       ;;
31734     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31735       ac_prev=srcdir ;;
31736     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31737       ;;
31738     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31739       ac_prev=prefix ;;
31740     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31741       ;;
31742     *)
31743       case $ac_arg in
31744       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31745       esac
31746       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31747     esac
31748   done
31749
31750   # Always prepend --prefix to ensure using the same prefix
31751   # in subdir configurations.
31752   ac_arg="--prefix=$prefix"
31753   case $ac_arg in
31754   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31755   esac
31756   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31757
31758   ac_popdir=`pwd`
31759   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31760
31761     # Do not complain, so a configure script can configure whichever
31762     # parts of a large source tree are present.
31763     test -d "$srcdir/$ac_dir" || continue
31764
31765     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31766 echo "$as_me: configuring in $ac_dir" >&6;}
31767     { if $as_mkdir_p; then
31768     mkdir -p "$ac_dir"
31769   else
31770     as_dir="$ac_dir"
31771     as_dirs=
31772     while test ! -d "$as_dir"; do
31773       as_dirs="$as_dir $as_dirs"
31774       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31776          X"$as_dir" : 'X\(//\)[^/]' \| \
31777          X"$as_dir" : 'X\(//\)$' \| \
31778          X"$as_dir" : 'X\(/\)' \| \
31779          .     : '\(.\)' 2>/dev/null ||
31780 echo X"$as_dir" |
31781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31783           /^X\(\/\/\)$/{ s//\1/; q; }
31784           /^X\(\/\).*/{ s//\1/; q; }
31785           s/.*/./; q'`
31786     done
31787     test ! -n "$as_dirs" || mkdir $as_dirs
31788   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31790    { (exit 1); exit 1; }; }; }
31791
31792     ac_builddir=.
31793
31794 if test "$ac_dir" != .; then
31795   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31796   # A "../" for each directory in $ac_dir_suffix.
31797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31798 else
31799   ac_dir_suffix= ac_top_builddir=
31800 fi
31801
31802 case $srcdir in
31803   .)  # No --srcdir option.  We are building in place.
31804     ac_srcdir=.
31805     if test -z "$ac_top_builddir"; then
31806        ac_top_srcdir=.
31807     else
31808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31809     fi ;;
31810   [\\/]* | ?:[\\/]* )  # Absolute path.
31811     ac_srcdir=$srcdir$ac_dir_suffix;
31812     ac_top_srcdir=$srcdir ;;
31813   *) # Relative path.
31814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31816 esac
31817
31818 # Do not use `cd foo && pwd` to compute absolute paths, because
31819 # the directories may not exist.
31820 case `pwd` in
31821 .) ac_abs_builddir="$ac_dir";;
31822 *)
31823   case "$ac_dir" in
31824   .) ac_abs_builddir=`pwd`;;
31825   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31826   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31827   esac;;
31828 esac
31829 case $ac_abs_builddir in
31830 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31831 *)
31832   case ${ac_top_builddir}. in
31833   .) ac_abs_top_builddir=$ac_abs_builddir;;
31834   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31835   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31836   esac;;
31837 esac
31838 case $ac_abs_builddir in
31839 .) ac_abs_srcdir=$ac_srcdir;;
31840 *)
31841   case $ac_srcdir in
31842   .) ac_abs_srcdir=$ac_abs_builddir;;
31843   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31844   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31845   esac;;
31846 esac
31847 case $ac_abs_builddir in
31848 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31849 *)
31850   case $ac_top_srcdir in
31851   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31852   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31853   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31854   esac;;
31855 esac
31856
31857
31858     cd "$ac_dir"
31859
31860     # Check for guested configure; otherwise get Cygnus style configure.
31861     if test -f "$ac_srcdir/configure.gnu"; then
31862       ac_sub_configure=$ac_srcdir/configure.gnu
31863     elif test -f "$ac_srcdir/configure"; then
31864       ac_sub_configure=$ac_srcdir/configure
31865     elif test -f "$ac_srcdir/configure.in"; then
31866       # This should be Cygnus configure.
31867       ac_sub_configure=$ac_aux_dir/configure
31868     else
31869       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31870 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31871       ac_sub_configure=
31872     fi
31873
31874     # The recursion is here.
31875     if test -n "$ac_sub_configure"; then
31876       # Make the cache file name correct relative to the subdirectory.
31877       case $cache_file in
31878       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31879       *) # Relative path.
31880         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31881       esac
31882
31883       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31884 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31885       # The eval makes quoting arguments work.
31886       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31887            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31888         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31889 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31890    { (exit 1); exit 1; }; }
31891     fi
31892
31893     cd "$ac_popdir"
31894   done
31895 fi
31896