libfuncs.h (LTI_synchronize): New libfunc_index.
[official-gcc.git] / libjava / configure
blob04cdb53c32874761fb3f9088e36b453433d90086
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
253 esac
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
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
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
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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"
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`
398 exec 6>&1
401 # Initializations.
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}
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}
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=''
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"
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464 ac_pwd=`pwd`
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
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'
504 ac_prev=
505 for ac_option
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
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
518 case $ac_option in
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 bindir=$ac_optarg ;;
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
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 ;;
537 --config-cache | -C)
538 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
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 ;;
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
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 ;;
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 libdir=$ac_optarg ;;
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 ;;
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 ;;
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 mandir=$ac_optarg ;;
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
637 no_create=yes ;;
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 ;;
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 ;;
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
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 ;;
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 ;;
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
712 site=$ac_optarg ;;
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 srcdir=$ac_optarg ;;
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 ;;
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 ;;
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
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'" ;;
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" ;;
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
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 ;;
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 ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
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 ;;
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}
800 esac
801 done
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; }; }
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
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
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
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
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
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
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853 test "$silent" = yes && exec 6>/dev/null
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=..
876 else
877 ac_srcdir_defaulted=no
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; }; }
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
930 # Report the --help message.
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.
938 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
943 Defaults for the options are specified in brackets.
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 \`..']
956 _ACEOF
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]
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'.
970 For better control, use the options below.
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
987 cat <<\_ACEOF
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
994 X features:
995 --x-includes=DIR X include files are in DIR
996 --x-libraries=DIR X library files are in DIR
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
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
1011 Optional Features:
1012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014 --enable-multilib build many library versions (default)
1015 --enable-version-specific-runtime-libs
1016 specify that runtime libraries should be installed
1017 in a compiler-specific directory
1018 --enable-plugin build gcjwebplugin web browser plugin
1019 --enable-gconf-peer compile GConf native peers for util.preferences
1020 --enable-java-maintainer-mode
1021 allow rebuilding of .class and .h files
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-maintainer-mode enable make rules and dependencies not useful
1025 (and sometimes confusing) to the casual installer
1026 --enable-libgcj-debug enable runtime debugging code
1027 --enable-java-awt list of AWT peer implementations to be built
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --disable-getenv-properties
1036 don't set system properties from GCJ_PROPERTIES
1037 --enable-hash-synchronization
1038 use global hash table for monitor locks
1039 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1040 libgcj
1041 --enable-gc-debug include full support for pointer backtracing etc.
1042 --enable-interpreter enable interpreter
1043 --enable-sjlj-exceptions
1044 force use of builtin_setjmp for exceptions
1045 --disable-java-net disable java.net
1046 --disable-jvmpi disable JVMPI support
1047 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1048 --disable-rpath do not hardcode runtime library paths
1049 --enable-tls Use thread-local storage [default=yes]
1051 Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-build-libsubdir=DIR Directory where to find libraries for build system
1055 --with-target-subdir=SUBDIR
1056 configure in a subdirectory
1057 --with-cross-host=HOST configure with a cross compiler from HOST
1058 --with-newlib configure with newlib
1059 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1061 both]
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-ecj-jar=FILE use preinstalled ecj jar
1064 --with-java-home=DIRECTORY
1065 value of java.home system property
1066 --with-win32-nlsapi=ansi or unicows or unicode
1067 native MinGW libgcj Win32 OS API (default is ansi)
1068 --without-libffi don't use libffi
1069 --with-ecos enable runtime eCos target support
1070 --with-system-zlib use installed libz
1071 --with-x use the X Window System
1072 --with-gnu-ld assume the C compiler uses GNU ld default=no
1073 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1074 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1076 Some influential environment variables:
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1085 CPP C preprocessor
1086 CXXCPP C++ preprocessor
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1091 _ACEOF
1094 if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1096 ac_popdir=`pwd`
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1099 ac_builddir=.
1101 if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 else
1106 ac_dir_suffix= ac_top_builddir=
1109 case $srcdir in
1110 .) # No --srcdir option. We are building in place.
1111 ac_srcdir=.
1112 if test -z "$ac_top_builddir"; then
1113 ac_top_srcdir=.
1114 else
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 fi ;;
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1120 *) # Relative path.
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123 esac
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1127 case `pwd` in
1128 .) ac_abs_builddir="$ac_dir";;
1130 case "$ac_dir" in
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134 esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143 esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1148 case $ac_srcdir in
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152 esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161 esac;;
1162 esac
1164 cd $ac_dir
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1167 echo
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1170 echo
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
1173 test -f $ac_srcdir/configure.in; then
1174 echo
1175 $ac_configure --help
1176 else
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 cd $ac_popdir
1180 done
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1185 cat <<\_ACEOF
1186 libjava configure version-unused
1187 generated by GNU Autoconf 2.59
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1192 _ACEOF
1193 exit 0
1195 exec 5>config.log
1196 cat >&5 <<_ACEOF
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1200 It was created by libjava $as_me version-unused, which was
1201 generated by GNU Autoconf 2.59. Invocation command line was
1203 $ $0 $@
1205 _ACEOF
1207 cat <<_ASUNAME
1208 ## --------- ##
1209 ## Platform. ##
1210 ## --------- ##
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229 _ASUNAME
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 for as_dir in $PATH
1234 IFS=$as_save_IFS
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1237 done
1239 } >&5
1241 cat >&5 <<_ACEOF
1244 ## ----------- ##
1245 ## Core tests. ##
1246 ## ----------- ##
1248 _ACEOF
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_configure_args=
1257 ac_configure_args0=
1258 ac_configure_args1=
1259 ac_sep=
1260 ac_must_keep_next=false
1261 for ac_pass in 1 2
1263 for ac_arg
1265 case $ac_arg in
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 continue ;;
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 esac
1273 case $ac_pass in
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
1278 ac_must_keep_next=false # Got value, back to normal.
1279 else
1280 case $ac_arg in
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287 esac
1289 -* ) ac_must_keep_next=true ;;
1290 esac
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1294 ac_sep=" "
1296 esac
1297 done
1298 done
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log. We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1310 echo
1312 cat <<\_ASBOX
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1316 _ASBOX
1317 echo
1318 # The following way of writing the cache mishandles newlines in values,
1320 (set) 2>&1 |
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322 *ac_space=\ *)
1323 sed -n \
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1328 sed -n \
1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 esac;
1333 echo
1335 cat <<\_ASBOX
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1339 _ASBOX
1340 echo
1341 for ac_var in $ac_subst_vars
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1345 done | sort
1346 echo
1348 if test -n "$ac_subst_files"; then
1349 cat <<\_ASBOX
1350 ## ------------- ##
1351 ## Output files. ##
1352 ## ------------- ##
1353 _ASBOX
1354 echo
1355 for ac_var in $ac_subst_files
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1363 if test -s confdefs.h; then
1364 cat <<\_ASBOX
1365 ## ----------- ##
1366 ## confdefs.h. ##
1367 ## ----------- ##
1368 _ASBOX
1369 echo
1370 sed "/^$/d" confdefs.h | sort
1371 echo
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1376 } >&5
1377 rm -f core *.core &&
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379 exit $exit_status
1381 for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 done
1384 ac_signal=0
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389 echo >confdefs.h
1391 # Predefined preprocessor variables.
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 _ACEOF
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 _ACEOF
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 _ACEOF
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 _ACEOF
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423 else
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427 for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1432 . "$ac_site_file"
1434 done
1436 if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1442 case $cache_file in
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1445 esac
1447 else
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1450 >$cache_file
1453 # Check that the precious variables saved in the cache have kept the same
1454 # value.
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1463 set,)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,set)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,);;
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
1474 # differences in whitespace do not lead to failure.
1475 ac_old_val_w=`echo x $ac_old_val`
1476 ac_new_val_w=`echo x $ac_new_val`
1477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 ac_cache_corrupted=:
1481 else
1482 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1483 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1484 eval $ac_var=\$ac_old_val
1486 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1487 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1488 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1489 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1490 fi;;
1491 esac
1492 # Pass precious variables to config.status.
1493 if test "$ac_new_set" = set; then
1494 case $ac_new_val in
1495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 *) ac_arg=$ac_var=$ac_new_val ;;
1498 esac
1499 case " $ac_configure_args " in
1500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1501 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 esac
1504 done
1505 if $ac_cache_corrupted; then
1506 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1553 ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1568 done
1569 if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1604 build=$ac_cv_build
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610 case ${build_alias} in
1611 "") build_noncanonical=${build} ;;
1612 *) build_noncanonical=${build_alias} ;;
1613 esac
1615 case ${host_alias} in
1616 "") host_noncanonical=${build_noncanonical} ;;
1617 *) host_noncanonical=${host_alias} ;;
1618 esac
1620 case ${target_alias} in
1621 "") target_noncanonical=${host_noncanonical} ;;
1622 *) target_noncanonical=${target_alias} ;;
1623 esac
1626 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1627 # have matching libraries, they should use host libraries: Makefile.tpl
1628 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1629 # However, they still use the build modules, because the corresponding
1630 # host modules (e.g. bison) are only built for the host when bootstrap
1631 # finishes. So:
1632 # - build_subdir is where we find build modules, and never changes.
1633 # - build_libsubdir is where we find build libraries, and can be overridden.
1635 # Prefix 'build-' so this never conflicts with target_subdir.
1636 build_subdir="build-${build_noncanonical}"
1638 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1639 if test "${with_build_libsubdir+set}" = set; then
1640 withval="$with_build_libsubdir"
1641 build_libsubdir="$withval"
1642 else
1643 build_libsubdir="$build_subdir"
1645 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1646 if ( test $srcdir = . && test -d gcc ) \
1647 || test -d $srcdir/../host-${host_noncanonical}; then
1648 host_subdir="host-${host_noncanonical}"
1649 else
1650 host_subdir=.
1652 # No prefix.
1653 target_subdir=${target_noncanonical}
1656 # We use these options to decide which functions to include.
1658 # Check whether --with-target-subdir or --without-target-subdir was given.
1659 if test "${with_target_subdir+set}" = set; then
1660 withval="$with_target_subdir"
1664 # We may get other options which we don't document:
1665 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1667 # Find the rest of the source tree framework.
1668 # Default to --enable-multilib
1669 # Check whether --enable-multilib or --disable-multilib was given.
1670 if test "${enable_multilib+set}" = set; then
1671 enableval="$enable_multilib"
1672 case "$enableval" in
1673 yes) multilib=yes ;;
1674 no) multilib=no ;;
1675 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1676 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1677 { (exit 1); exit 1; }; } ;;
1678 esac
1679 else
1680 multilib=yes
1683 # We may get other options which we leave undocumented:
1684 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1685 # See config-ml.in if you want the gory details.
1687 if test "$srcdir" = "."; then
1688 if test "$with_target_subdir" != "."; then
1689 multi_basedir="$srcdir/$with_multisrctop../.."
1690 else
1691 multi_basedir="$srcdir/$with_multisrctop.."
1693 else
1694 multi_basedir="$srcdir/.."
1698 # Even if the default multilib is not a cross compilation,
1699 # it may be that some of the other multilibs are.
1700 if test $cross_compiling = no && test $multilib = yes \
1701 && test "x${with_multisubdir}" != x ; then
1702 cross_compiling=maybe
1705 ac_config_commands="$ac_config_commands default-1"
1708 echo "$as_me:$LINENO: checking host system type" >&5
1709 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1710 if test "${ac_cv_host+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 ac_cv_host_alias=$host_alias
1714 test -z "$ac_cv_host_alias" &&
1715 ac_cv_host_alias=$ac_cv_build_alias
1716 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1717 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1718 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1719 { (exit 1); exit 1; }; }
1722 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1723 echo "${ECHO_T}$ac_cv_host" >&6
1724 host=$ac_cv_host
1725 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730 echo "$as_me:$LINENO: checking target system type" >&5
1731 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1732 if test "${ac_cv_target+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 ac_cv_target_alias=$target_alias
1736 test "x$ac_cv_target_alias" = "x" &&
1737 ac_cv_target_alias=$ac_cv_host_alias
1738 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1740 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1741 { (exit 1); exit 1; }; }
1744 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1745 echo "${ECHO_T}$ac_cv_target" >&6
1746 target=$ac_cv_target
1747 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752 # The aliases save the names the user supplied, while $host etc.
1753 # will get canonicalized.
1754 test -n "$target_alias" &&
1755 test "$program_prefix$program_suffix$program_transform_name" = \
1756 NONENONEs,x,x, &&
1757 program_prefix=${target_alias}-
1758 case ${build_alias} in
1759 "") build_noncanonical=${build} ;;
1760 *) build_noncanonical=${build_alias} ;;
1761 esac
1763 case ${target_alias} in
1764 "") target_noncanonical=${host_noncanonical} ;;
1765 *) target_noncanonical=${target_alias} ;;
1766 esac
1771 # This works around the fact that libtool configuration may change LD
1772 # for this particular configuration, but some shells, instead of
1773 # keeping the changes in LD private, export them just because LD is
1774 # exported.
1775 ORIGINAL_LD_FOR_MULTILIBS=$LD
1777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1779 LN_S=$as_ln_s
1780 if test "$LN_S" = "ln -s"; then
1781 echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785 echo "${ECHO_T}no, using $LN_S" >&6
1789 # This works around an automake problem.
1790 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1794 # Check whether --with-cross-host or --without-cross-host was given.
1795 if test "${with_cross_host+set}" = set; then
1796 withval="$with_cross_host"
1801 # Check whether --with-newlib or --without-newlib was given.
1802 if test "${with_newlib+set}" = set; then
1803 withval="$with_newlib"
1807 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1808 if test "${enable_version_specific_runtime_libs+set}" = set; then
1809 enableval="$enable_version_specific_runtime_libs"
1810 case "$enableval" in
1811 yes) version_specific_libs=yes ;;
1812 no) version_specific_libs=no ;;
1813 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1814 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1815 { (exit 1); exit 1; }; };;
1816 esac
1817 else
1818 version_specific_libs=no
1822 # Check whether --enable-plugin or --disable-plugin was given.
1823 if test "${enable_plugin+set}" = set; then
1824 enableval="$enable_plugin"
1825 case "$enableval" in
1826 yes) plugin_enabled=yes ;;
1827 no) plugin_enabled=no ;;
1828 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1829 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1830 { (exit 1); exit 1; }; };;
1831 esac
1832 else
1833 plugin_enabled=no
1837 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1838 if test "${enable_gconf_peer+set}" = set; then
1839 enableval="$enable_gconf_peer"
1840 case "$enableval" in
1841 yes) gconf_enabled=yes ;;
1842 no) gconf_enabled=no ;;
1843 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1844 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1845 { (exit 1); exit 1; }; };;
1846 esac
1847 else
1848 gconf_enabled=no
1852 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1853 if test "${enable_java_maintainer_mode+set}" = set; then
1854 enableval="$enable_java_maintainer_mode"
1859 if test "$enable_java_maintainer_mode" = yes; then
1860 JAVA_MAINTAINER_MODE_TRUE=
1861 JAVA_MAINTAINER_MODE_FALSE='#'
1862 else
1863 JAVA_MAINTAINER_MODE_TRUE='#'
1864 JAVA_MAINTAINER_MODE_FALSE=
1868 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1871 # (1) We use an abnormal CXX (without library references), so we
1872 # must cache it under a different name.
1873 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1874 # the non-multilib-adjusted value will be used in multilibs.
1875 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1876 # (4) As another side effect, automake doesn't automatically include them
1877 # in Makefile.in.
1878 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1879 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1880 # used in later tests. This may not be necessary in libjava; I don't know.
1883 save_CXXFLAGS="$CXXFLAGS"
1884 CXXFLAGS="$CXXFLAGS -fno-builtin"
1885 ac_ext=c
1886 ac_cpp='$CPP $CPPFLAGS'
1887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 if test -n "$ac_tool_prefix"; then
1891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 break 2
1912 done
1913 done
1917 CC=$ac_cv_prog_CC
1918 if test -n "$CC"; then
1919 echo "$as_me:$LINENO: result: $CC" >&5
1920 echo "${ECHO_T}$CC" >&6
1921 else
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1927 if test -z "$ac_cv_prog_CC"; then
1928 ac_ct_CC=$CC
1929 # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$ac_ct_CC"; then
1937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_ac_ct_CC="gcc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1950 done
1951 done
1955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956 if test -n "$ac_ct_CC"; then
1957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958 echo "${ECHO_T}$ac_ct_CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1964 CC=$ac_ct_CC
1965 else
1966 CC="$ac_cv_prog_CC"
1969 if test -z "$CC"; then
1970 if test -n "$ac_tool_prefix"; then
1971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}cc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_CC="${ac_tool_prefix}cc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1992 done
1993 done
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999 echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6
2001 else
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2007 if test -z "$ac_cv_prog_CC"; then
2008 ac_ct_CC=$CC
2009 # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$ac_ct_CC"; then
2017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_ac_ct_CC="cc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 CC=$ac_ct_CC
2045 else
2046 CC="$ac_cv_prog_CC"
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2071 continue
2073 ac_cv_prog_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2077 done
2078 done
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2083 shift
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2088 shift
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2104 if test -z "$CC"; then
2105 if test -n "$ac_tool_prefix"; then
2106 for ac_prog in cl
2108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136 echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2138 else
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2143 test -n "$CC" && break
2144 done
2146 if test -z "$CC"; then
2147 ac_ct_CC=$CC
2148 for ac_prog in cl
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_ac_ct_CC="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2171 done
2172 done
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2180 else
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2185 test -n "$ac_ct_CC" && break
2186 done
2188 CC=$ac_ct_CC
2194 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }; }
2202 # Provide some information about the compiler.
2203 echo "$as_me:$LINENO:" \
2204 "checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207 (eval $ac_compiler --version </dev/null >&5) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212 (eval $ac_compiler -v </dev/null >&5) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217 (eval $ac_compiler -V </dev/null >&5) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 # FIXME: Cleanup?
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 gcc_no_link=no
2244 else
2245 gcc_no_link=yes
2248 if test x$gcc_no_link = xyes; then
2249 # Setting cross_compile will disable run tests; it will
2250 # also disable AC_CHECK_FILE but that's generally
2251 # correct if we can't link.
2252 cross_compiling=yes
2253 EXEEXT=
2254 else
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2263 main ()
2267 return 0;
2269 _ACEOF
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2272 # Try to create an executable without -o first, disregard a.out.
2273 # It will help us diagnose broken compilers, and finding out an intuition
2274 # of exeext.
2275 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2276 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2278 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2279 (eval $ac_link_default) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 # Find the output, starting from the most likely. This scheme is
2284 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2285 # resort.
2287 # Be careful to initialize this variable, since it used to be cached.
2288 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2289 ac_cv_exeext=
2290 # b.out is created by i960 compilers.
2291 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2293 test -f "$ac_file" || continue
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2297 conftest.$ac_ext )
2298 # This is the source file.
2300 [ab].out )
2301 # We found the default executable, but exeext='' is most
2302 # certainly right.
2303 break;;
2304 *.* )
2305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306 # FIXME: I believe we export ac_cv_exeext for Libtool,
2307 # but it would be cool to find out if it's true. Does anybody
2308 # maintain Libtool? --akim.
2309 export ac_cv_exeext
2310 break;;
2312 break;;
2313 esac
2314 done
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2320 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&2;}
2325 { (exit 77); exit 77; }; }; }
2328 ac_exeext=$ac_cv_exeext
2329 echo "$as_me:$LINENO: result: $ac_file" >&5
2330 echo "${ECHO_T}$ac_file" >&6
2332 # Check the compiler produces executables we can run. If not, either
2333 # the compiler is broken, or we cross compile.
2334 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337 # If not cross compiling, check that we can run a simple program.
2338 if test "$cross_compiling" != yes; then
2339 if { ac_try='./$ac_file'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 cross_compiling=no
2346 else
2347 if test "$cross_compiling" = maybe; then
2348 cross_compiling=yes
2349 else
2350 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2351 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2353 If you meant to cross compile, use \`--host'.
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }; }
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2365 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2366 ac_clean_files=$ac_clean_files_save
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2371 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2372 echo "${ECHO_T}$cross_compiling" >&6
2374 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2375 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2377 (eval $ac_link) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2383 # work properly (i.e., refer to `conftest.exe'), while it won't with
2384 # `rm'.
2385 for ac_file in conftest.exe conftest conftest.*; do
2386 test -f "$ac_file" || continue
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390 export ac_cv_exeext
2391 break;;
2392 * ) break;;
2393 esac
2394 done
2395 else
2396 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2397 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }; }
2405 rm -f conftest$ac_cv_exeext
2406 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2407 echo "${ECHO_T}$ac_cv_exeext" >&6
2409 rm -f conftest.$ac_ext
2410 EXEEXT=$ac_cv_exeext
2411 ac_exeext=$EXEEXT
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2426 main ()
2430 return 0;
2432 _ACEOF
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2443 break;;
2444 esac
2445 done
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2455 See \`config.log' for more details." >&2;}
2456 { (exit 1); exit 1; }; }; }
2459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2462 echo "${ECHO_T}$ac_cv_objext" >&6
2463 OBJEXT=$ac_cv_objext
2464 ac_objext=$OBJEXT
2465 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2480 #ifndef __GNUC__
2481 choke me
2482 #endif
2485 return 0;
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 ac_compiler_gnu=yes
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 ac_compiler_gnu=no
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2521 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2523 GCC=`test $ac_compiler_gnu = yes && echo yes`
2524 ac_test_CFLAGS=${CFLAGS+set}
2525 ac_save_CFLAGS=$CFLAGS
2526 CFLAGS="-g"
2527 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_g+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2540 main ()
2544 return 0;
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag"
2557 || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 ac_cv_prog_cc_g=yes
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_cv_prog_cc_g=no
2576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2580 if test "$ac_test_CFLAGS" = set; then
2581 CFLAGS=$ac_save_CFLAGS
2582 elif test $ac_cv_prog_cc_g = yes; then
2583 if test "$GCC" = yes; then
2584 CFLAGS="-g -O2"
2585 else
2586 CFLAGS="-g"
2588 else
2589 if test "$GCC" = yes; then
2590 CFLAGS="-O2"
2591 else
2592 CFLAGS=
2595 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2596 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 ac_cv_prog_cc_stdc=no
2601 ac_save_CC=$CC
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 #include <stdarg.h>
2609 #include <stdio.h>
2610 #include <sys/types.h>
2611 #include <sys/stat.h>
2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2613 struct buf { int x; };
2614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2615 static char *e (p, i)
2616 char **p;
2617 int i;
2619 return p[i];
2621 static char *f (char * (*g) (char **, int), char **p, ...)
2623 char *s;
2624 va_list v;
2625 va_start (v,p);
2626 s = g (p, va_arg (v,int));
2627 va_end (v);
2628 return s;
2631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2632 function prototypes and stuff, but not '\xHH' hex character constants.
2633 These don't provoke an error unfortunately, instead are silently treated
2634 as 'x'. The following induces an error, until -std1 is added to get
2635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2636 array size at least. It's necessary to write '\x00'==0 to get something
2637 that's true only with -std1. */
2638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2640 int test (int i, double x);
2641 struct s1 {int (*f) (int a);};
2642 struct s2 {int (*f) (double a);};
2643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2644 int argc;
2645 char **argv;
2647 main ()
2649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2651 return 0;
2653 _ACEOF
2654 # Don't try gcc -ansi; that turns off useful extensions and
2655 # breaks some systems' header files.
2656 # AIX -qlanglvl=ansi
2657 # Ultrix and OSF/1 -std1
2658 # HP-UX 10.20 and later -Ae
2659 # HP-UX older versions -Aa -D_HPUX_SOURCE
2660 # SVR4 -Xc -D__EXTENSIONS__
2661 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2663 CC="$ac_save_CC $ac_arg"
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_cv_prog_cc_stdc=$ac_arg
2687 break
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2693 rm -f conftest.err conftest.$ac_objext
2694 done
2695 rm -f conftest.$ac_ext conftest.$ac_objext
2696 CC=$ac_save_CC
2700 case "x$ac_cv_prog_cc_stdc" in
2701 x|xno)
2702 echo "$as_me:$LINENO: result: none needed" >&5
2703 echo "${ECHO_T}none needed" >&6 ;;
2705 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2706 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2707 CC="$CC $ac_cv_prog_cc_stdc" ;;
2708 esac
2710 # Some people use a C++ compiler to compile C. Since we use `exit',
2711 # in C++ we need to declare it. In case someone uses the same compiler
2712 # for both compiling C and C++ we need to have the C++ compiler decide
2713 # the declaration of exit, since it's the most demanding environment.
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #ifndef __cplusplus
2716 choke me
2717 #endif
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 for ac_declaration in \
2742 '' \
2743 'extern "C" void std::exit (int) throw (); using std::exit;' \
2744 'extern "C" void std::exit (int); using std::exit;' \
2745 'extern "C" void exit (int) throw ();' \
2746 'extern "C" void exit (int);' \
2747 'void exit (int);'
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2755 $ac_declaration
2756 #include <stdlib.h>
2758 main ()
2760 exit (42);
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 continue
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801 $ac_declaration
2803 main ()
2805 exit (42);
2807 return 0;
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 break
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840 rm -f conftest*
2841 if test -n "$ac_declaration"; then
2842 echo '#ifdef __cplusplus' >>confdefs.h
2843 echo $ac_declaration >>confdefs.h
2844 echo '#endif' >>confdefs.h
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_ext=c
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 ac_ext=cc
2860 ac_cpp='$CXXCPP $CPPFLAGS'
2861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_CXX+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$CXX"; then
2875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2893 CXX=$ac_cv_prog_CXX
2894 if test -n "$CXX"; then
2895 echo "$as_me:$LINENO: result: $CXX" >&5
2896 echo "${ECHO_T}$CXX" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2902 test -n "$CXX" && break
2903 done
2905 if test -z "$CXX"; then
2906 ac_ct_CXX=$CXX
2907 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$ac_ct_CXX"; then
2917 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2935 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2936 if test -n "$ac_ct_CXX"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2938 echo "${ECHO_T}$ac_ct_CXX" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2944 test -n "$ac_ct_CXX" && break
2945 done
2946 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2948 CXX=$ac_ct_CXX
2952 # Provide some information about the compiler.
2953 echo "$as_me:$LINENO:" \
2954 "checking for C++ compiler version" >&5
2955 ac_compiler=`set X $ac_compile; echo $2`
2956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2957 (eval $ac_compiler --version </dev/null >&5) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2962 (eval $ac_compiler -v </dev/null >&5) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2967 (eval $ac_compiler -V </dev/null >&5) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2972 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2974 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2985 main ()
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_cxx_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_compiler_gnu=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_compiler_gnu=no
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3028 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3030 GXX=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CXXFLAGS=${CXXFLAGS+set}
3032 ac_save_CXXFLAGS=$CXXFLAGS
3033 CXXFLAGS="-g"
3034 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3035 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3036 if test "${ac_cv_prog_cxx_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3047 main ()
3051 return 0;
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_cxx_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cxx_g=yes
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 ac_cv_prog_cxx_g=no
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3087 if test "$ac_test_CXXFLAGS" = set; then
3088 CXXFLAGS=$ac_save_CXXFLAGS
3089 elif test $ac_cv_prog_cxx_g = yes; then
3090 if test "$GXX" = yes; then
3091 CXXFLAGS="-g -O2"
3092 else
3093 CXXFLAGS="-g"
3095 else
3096 if test "$GXX" = yes; then
3097 CXXFLAGS="-O2"
3098 else
3099 CXXFLAGS=
3102 for ac_declaration in \
3103 '' \
3104 'extern "C" void std::exit (int) throw (); using std::exit;' \
3105 'extern "C" void std::exit (int); using std::exit;' \
3106 'extern "C" void exit (int) throw ();' \
3107 'extern "C" void exit (int);' \
3108 'void exit (int);'
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 $ac_declaration
3117 #include <stdlib.h>
3119 main ()
3121 exit (42);
3123 return 0;
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 continue
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 $ac_declaration
3164 main ()
3166 exit (42);
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_cxx_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 break
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 done
3201 rm -f conftest*
3202 if test -n "$ac_declaration"; then
3203 echo '#ifdef __cplusplus' >>confdefs.h
3204 echo $ac_declaration >>confdefs.h
3205 echo '#endif' >>confdefs.h
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 CXXFLAGS="$save_CXXFLAGS"
3220 am__api_version="1.9"
3221 # Find a good install program. We prefer a C program (faster),
3222 # so one script is as good as another. But avoid the broken or
3223 # incompatible versions:
3224 # SysV /etc/install, /usr/sbin/install
3225 # SunOS /usr/etc/install
3226 # IRIX /sbin/install
3227 # AIX /bin/install
3228 # AmigaOS /C/install, which installs bootblocks on floppy discs
3229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3232 # OS/2's system install, which has a completely different semantic
3233 # ./install, which can be erroneously created by make from ./install.sh.
3234 # Reject install programs that cannot install multiple files.
3235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3237 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 # Account for people who put trailing slashes in PATH elements.
3247 case $as_dir/ in
3248 ./ | .// | /cC/* | \
3249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3251 /usr/ucb/* ) ;;
3253 # OSF1 and SCO ODT 3.0 have their own names for install.
3254 # Don't use installbsd from OSF since it installs stuff as root
3255 # by default.
3256 for ac_prog in ginstall scoinst install; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3259 if test $ac_prog = install &&
3260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3261 # AIX install. It has an incompatible calling convention.
3263 elif test $ac_prog = install &&
3264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265 # program-specific install script used by HP pwplus--don't use.
3267 else
3268 rm -rf conftest.one conftest.two conftest.dir
3269 echo one > conftest.one
3270 echo two > conftest.two
3271 mkdir conftest.dir
3272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3273 test -s conftest.one && test -s conftest.two &&
3274 test -s conftest.dir/conftest.one &&
3275 test -s conftest.dir/conftest.two
3276 then
3277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3278 break 3
3282 done
3283 done
3285 esac
3286 done
3288 rm -rf conftest.one conftest.two conftest.dir
3291 if test "${ac_cv_path_install+set}" = set; then
3292 INSTALL=$ac_cv_path_install
3293 else
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for INSTALL within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the value is a relative name.
3298 INSTALL=$ac_install_sh
3301 echo "$as_me:$LINENO: result: $INSTALL" >&5
3302 echo "${ECHO_T}$INSTALL" >&6
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3313 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3314 # Just in case
3315 sleep 1
3316 echo timestamp > conftest.file
3317 # Do `set' in a subshell so we don't clobber the current shell's
3318 # arguments. Must try -L first in case configure is actually a
3319 # symlink; some systems play weird games with the mod time of symlinks
3320 # (eg FreeBSD returns the mod time of the symlink's containing
3321 # directory).
3322 if (
3323 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3324 if test "$*" = "X"; then
3325 # -L didn't work.
3326 set X `ls -t $srcdir/configure conftest.file`
3328 rm -f conftest.file
3329 if test "$*" != "X $srcdir/configure conftest.file" \
3330 && test "$*" != "X conftest.file $srcdir/configure"; then
3332 # If neither matched, then we have a broken ls. This can happen
3333 # if, for instance, CONFIG_SHELL is bash and it inherits a
3334 # broken ls alias from the environment. This has actually
3335 # happened. Such a system could not be considered "sane".
3336 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3337 alias in your environment" >&5
3338 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3339 alias in your environment" >&2;}
3340 { (exit 1); exit 1; }; }
3343 test "$2" = conftest.file
3345 then
3346 # Ok.
3348 else
3349 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3350 Check your system clock" >&5
3351 echo "$as_me: error: newly created file is older than distributed files!
3352 Check your system clock" >&2;}
3353 { (exit 1); exit 1; }; }
3355 echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6
3357 test "$program_prefix" != NONE &&
3358 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3359 # Use a double $ so make ignores it.
3360 test "$program_suffix" != NONE &&
3361 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3362 # Double any \ or $. echo might interpret backslashes.
3363 # By default was `s,x,x', remove it if useless.
3364 cat <<\_ACEOF >conftest.sed
3365 s/[\\$]/&&/g;s/;s,x,x,$//
3366 _ACEOF
3367 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3368 rm conftest.sed
3370 # expand $ac_aux_dir to an absolute path
3371 am_aux_dir=`cd $ac_aux_dir && pwd`
3373 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3374 # Use eval to expand $SHELL
3375 if eval "$MISSING --run true"; then
3376 am_missing_run="$MISSING --run "
3377 else
3378 am_missing_run=
3379 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3380 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3383 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3384 # We used to keeping the `.' as first argument, in order to
3385 # allow $(mkdir_p) to be used without argument. As in
3386 # $(mkdir_p) $(somedir)
3387 # where $(somedir) is conditionally defined. However this is wrong
3388 # for two reasons:
3389 # 1. if the package is installed by a user who cannot write `.'
3390 # make install will fail,
3391 # 2. the above comment should most certainly read
3392 # $(mkdir_p) $(DESTDIR)$(somedir)
3393 # so it does not work when $(somedir) is undefined and
3394 # $(DESTDIR) is not.
3395 # To support the latter case, we have to write
3396 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3397 # so the `.' trick is pointless.
3398 mkdir_p='mkdir -p --'
3399 else
3400 # On NextStep and OpenStep, the `mkdir' command does not
3401 # recognize any option. It will interpret all options as
3402 # directories to create, and then abort because `.' already
3403 # exists.
3404 for d in ./-p ./--version;
3406 test -d $d && rmdir $d
3407 done
3408 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3409 if test -f "$ac_aux_dir/mkinstalldirs"; then
3410 mkdir_p='$(mkinstalldirs)'
3411 else
3412 mkdir_p='$(install_sh) -d'
3416 for ac_prog in gawk mawk nawk awk
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_prog_AWK+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 if test -n "$AWK"; then
3426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_AWK="$ac_prog"
3436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3444 AWK=$ac_cv_prog_AWK
3445 if test -n "$AWK"; then
3446 echo "$as_me:$LINENO: result: $AWK" >&5
3447 echo "${ECHO_T}$AWK" >&6
3448 else
3449 echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3453 test -n "$AWK" && break
3454 done
3456 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3457 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3459 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 cat >conftest.make <<\_ACEOF
3463 all:
3464 @echo 'ac_maketemp="$(MAKE)"'
3465 _ACEOF
3466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3467 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3468 if test -n "$ac_maketemp"; then
3469 eval ac_cv_prog_make_${ac_make}_set=yes
3470 else
3471 eval ac_cv_prog_make_${ac_make}_set=no
3473 rm -f conftest.make
3475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478 SET_MAKE=
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 SET_MAKE="MAKE=${MAKE-make}"
3485 rm -rf .tst 2>/dev/null
3486 mkdir .tst 2>/dev/null
3487 if test -d .tst; then
3488 am__leading_dot=.
3489 else
3490 am__leading_dot=_
3492 rmdir .tst 2>/dev/null
3494 DEPDIR="${am__leading_dot}deps"
3496 ac_config_commands="$ac_config_commands depfiles"
3499 am_make=${MAKE-make}
3500 cat > confinc << 'END'
3501 am__doit:
3502 @echo done
3503 .PHONY: am__doit
3505 # If we don't find an include directive, just comment out the code.
3506 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3507 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3508 am__include="#"
3509 am__quote=
3510 _am_result=none
3511 # First try GNU make style include.
3512 echo "include confinc" > confmf
3513 # We grep out `Entering directory' and `Leaving directory'
3514 # messages which can occur if `w' ends up in MAKEFLAGS.
3515 # In particular we don't look at `^make:' because GNU make might
3516 # be invoked under some other name (usually "gmake"), in which
3517 # case it prints its new name instead of `make'.
3518 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3519 am__include=include
3520 am__quote=
3521 _am_result=GNU
3523 # Now try BSD make style include.
3524 if test "$am__include" = "#"; then
3525 echo '.include "confinc"' > confmf
3526 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3527 am__include=.include
3528 am__quote="\""
3529 _am_result=BSD
3534 echo "$as_me:$LINENO: result: $_am_result" >&5
3535 echo "${ECHO_T}$_am_result" >&6
3536 rm -f confinc confmf
3538 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3539 if test "${enable_dependency_tracking+set}" = set; then
3540 enableval="$enable_dependency_tracking"
3543 if test "x$enable_dependency_tracking" != xno; then
3544 am_depcomp="$ac_aux_dir/depcomp"
3545 AMDEPBACKSLASH='\'
3549 if test "x$enable_dependency_tracking" != xno; then
3550 AMDEP_TRUE=
3551 AMDEP_FALSE='#'
3552 else
3553 AMDEP_TRUE='#'
3554 AMDEP_FALSE=
3559 # test to see if srcdir already configured
3560 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3561 test -f $srcdir/config.status; then
3562 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3563 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3564 { (exit 1); exit 1; }; }
3567 # test whether we have cygpath
3568 if test -z "$CYGPATH_W"; then
3569 if (cygpath --version) >/dev/null 2>/dev/null; then
3570 CYGPATH_W='cygpath -w'
3571 else
3572 CYGPATH_W=echo
3577 # Define the identity of the package.
3578 PACKAGE='libjava'
3579 VERSION='version-unused'
3582 cat >>confdefs.h <<_ACEOF
3583 #define PACKAGE "$PACKAGE"
3584 _ACEOF
3587 cat >>confdefs.h <<_ACEOF
3588 #define VERSION "$VERSION"
3589 _ACEOF
3591 # Some tools Automake needs.
3593 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3596 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3599 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3602 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3605 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3607 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3609 # Installed binaries are usually stripped using `strip' when the user
3610 # run `make install-strip'. However `strip' might not be the right
3611 # tool to use in cross-compilation environments, therefore Automake
3612 # will honor the `STRIP' environment variable to overrule this program.
3613 if test "$cross_compiling" != no; then
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}strip; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_STRIP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 if test -n "$STRIP"; then
3623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3636 done
3637 done
3641 STRIP=$ac_cv_prog_STRIP
3642 if test -n "$STRIP"; then
3643 echo "$as_me:$LINENO: result: $STRIP" >&5
3644 echo "${ECHO_T}$STRIP" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3651 if test -z "$ac_cv_prog_STRIP"; then
3652 ac_ct_STRIP=$STRIP
3653 # Extract the first word of "strip", so it can be a program name with args.
3654 set dummy strip; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if test -n "$ac_ct_STRIP"; then
3661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_ac_ct_STRIP="strip"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3677 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3681 if test -n "$ac_ct_STRIP"; then
3682 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3683 echo "${ECHO_T}$ac_ct_STRIP" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 STRIP=$ac_ct_STRIP
3690 else
3691 STRIP="$ac_cv_prog_STRIP"
3695 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3697 # We need awk for the "check" target. The system "awk" is bad on
3698 # some platforms.
3699 # Always define AMTAR for backward compatibility.
3701 AMTAR=${AMTAR-"${am_missing_run}tar"}
3703 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3708 depcc="$CC" am_compiler_list=
3710 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3720 # in D'.
3721 mkdir conftest.dir
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3725 cd conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3731 # directory.
3732 mkdir sub
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3746 : > sub/conftest.c
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3752 done
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755 case $depmode in
3756 nosideeffect)
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3760 continue
3761 else
3762 break
3765 none) break ;;
3766 esac
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3788 break
3791 done
3793 cd ..
3794 rm -rf conftest.dir
3795 else
3796 am_cv_CC_dependencies_compiler_type=none
3800 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809 am__fastdepCC_TRUE=
3810 am__fastdepCC_FALSE='#'
3811 else
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3817 depcc="$CXX" am_compiler_list=
3819 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3820 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3821 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825 # We make a subdir and do the tests there. Otherwise we can end up
3826 # making bogus files that we don't know about and never remove. For
3827 # instance it was reported that on HP-UX the gcc test will end up
3828 # making a dummy file named `D' -- because `-MD' means `put the output
3829 # in D'.
3830 mkdir conftest.dir
3831 # Copy depcomp to subdir because otherwise we won't find it if we're
3832 # using a relative directory.
3833 cp "$am_depcomp" conftest.dir
3834 cd conftest.dir
3835 # We will build objects and dependencies in a subdirectory because
3836 # it helps to detect inapplicable dependency modes. For instance
3837 # both Tru64's cc and ICC support -MD to output dependencies as a
3838 # side effect of compilation, but ICC will put the dependencies in
3839 # the current directory while Tru64 will put them in the object
3840 # directory.
3841 mkdir sub
3843 am_cv_CXX_dependencies_compiler_type=none
3844 if test "$am_compiler_list" = ""; then
3845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847 for depmode in $am_compiler_list; do
3848 # Setup a source with many dependencies, because some compilers
3849 # like to wrap large dependency lists on column 80 (with \), and
3850 # we should not choose a depcomp mode which is confused by this.
3852 # We need to recreate these files for each test, as the compiler may
3853 # overwrite some of them when testing with obscure command lines.
3854 # This happens at least with the AIX C compiler.
3855 : > sub/conftest.c
3856 for i in 1 2 3 4 5 6; do
3857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859 # Solaris 8's {/usr,}/bin/sh.
3860 touch sub/conftst$i.h
3861 done
3862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864 case $depmode in
3865 nosideeffect)
3866 # after this tag, mechanisms are not by side-effect, so they'll
3867 # only be used when explicitly requested
3868 if test "x$enable_dependency_tracking" = xyes; then
3869 continue
3870 else
3871 break
3874 none) break ;;
3875 esac
3876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3877 # mode. It turns out that the SunPro C++ compiler does not properly
3878 # handle `-M -o', and we need to detect this.
3879 if depmode=$depmode \
3880 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3883 >/dev/null 2>conftest.err &&
3884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887 # icc doesn't choke on unknown options, it will just issue warnings
3888 # or remarks (even with -Werror). So we grep stderr for any message
3889 # that says an option was ignored or not supported.
3890 # When given -MP, icc 7.0 and 7.1 complain thusly:
3891 # icc: Command line warning: ignoring option '-M'; no argument required
3892 # The diagnosis changed in icc 8.0:
3893 # icc: Command line remark: option '-MP' not supported
3894 if (grep 'ignoring option' conftest.err ||
3895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896 am_cv_CXX_dependencies_compiler_type=$depmode
3897 break
3900 done
3902 cd ..
3903 rm -rf conftest.dir
3904 else
3905 am_cv_CXX_dependencies_compiler_type=none
3909 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3910 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3916 test "x$enable_dependency_tracking" != xno \
3917 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3918 am__fastdepCXX_TRUE=
3919 am__fastdepCXX_FALSE='#'
3920 else
3921 am__fastdepCXX_TRUE='#'
3922 am__fastdepCXX_FALSE=
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}as; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_AS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 if test -n "$AS"; then
3937 ac_cv_prog_AS="$AS" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_AS="${ac_tool_prefix}as"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3955 AS=$ac_cv_prog_AS
3956 if test -n "$AS"; then
3957 echo "$as_me:$LINENO: result: $AS" >&5
3958 echo "${ECHO_T}$AS" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3965 if test -z "$ac_cv_prog_AS"; then
3966 ac_ct_AS=$AS
3967 # Extract the first word of "as", so it can be a program name with args.
3968 set dummy as; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 if test -n "$ac_ct_AS"; then
3975 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_AS="as"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3993 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3994 if test -n "$ac_ct_AS"; then
3995 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3996 echo "${ECHO_T}$ac_ct_AS" >&6
3997 else
3998 echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4002 AS=$ac_ct_AS
4003 else
4004 AS="$ac_cv_prog_AS"
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}ld; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_LD+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$LD"; then
4016 ac_cv_prog_LD="$LD" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_LD="${ac_tool_prefix}ld"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4034 LD=$ac_cv_prog_LD
4035 if test -n "$LD"; then
4036 echo "$as_me:$LINENO: result: $LD" >&5
4037 echo "${ECHO_T}$LD" >&6
4038 else
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4044 if test -z "$ac_cv_prog_LD"; then
4045 ac_ct_LD=$LD
4046 # Extract the first word of "ld", so it can be a program name with args.
4047 set dummy ld; ac_word=$2
4048 echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4050 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 if test -n "$ac_ct_LD"; then
4054 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_LD="ld"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4067 done
4068 done
4072 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4073 if test -n "$ac_ct_LD"; then
4074 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4075 echo "${ECHO_T}$ac_ct_LD" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 LD=$ac_ct_LD
4082 else
4083 LD="$ac_cv_prog_LD"
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_AR+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if test -n "$AR"; then
4095 ac_cv_prog_AR="$AR" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_AR="${ac_tool_prefix}ar"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4108 done
4109 done
4113 AR=$ac_cv_prog_AR
4114 if test -n "$AR"; then
4115 echo "$as_me:$LINENO: result: $AR" >&5
4116 echo "${ECHO_T}$AR" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4123 if test -z "$ac_cv_prog_AR"; then
4124 ac_ct_AR=$AR
4125 # Extract the first word of "ar", so it can be a program name with args.
4126 set dummy ar; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 if test -n "$ac_ct_AR"; then
4133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_AR="ar"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4152 if test -n "$ac_ct_AR"; then
4153 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4154 echo "${ECHO_T}$ac_ct_AR" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4160 AR=$ac_ct_AR
4161 else
4162 AR="$ac_cv_prog_AR"
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_RANLIB+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$RANLIB"; then
4174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194 echo "$as_me:$LINENO: result: $RANLIB" >&5
4195 echo "${ECHO_T}$RANLIB" >&6
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4202 if test -z "$ac_cv_prog_RANLIB"; then
4203 ac_ct_RANLIB=$RANLIB
4204 # Extract the first word of "ranlib", so it can be a program name with args.
4205 set dummy ranlib; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 if test -n "$ac_ct_RANLIB"; then
4212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_RANLIB="ranlib"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4232 if test -n "$ac_ct_RANLIB"; then
4233 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4240 RANLIB=$ac_ct_RANLIB
4241 else
4242 RANLIB="$ac_cv_prog_RANLIB"
4245 for ac_prog in gawk mawk nawk awk
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_AWK+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 if test -n "$AWK"; then
4255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_AWK="$ac_prog"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4273 AWK=$ac_cv_prog_AWK
4274 if test -n "$AWK"; then
4275 echo "$as_me:$LINENO: result: $AWK" >&5
4276 echo "${ECHO_T}$AWK" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4282 test -n "$AWK" && break
4283 done
4285 for ac_prog in jar fastjar gjar
4287 # Extract the first word of "$ac_prog", so it can be a program name with args.
4288 set dummy $ac_prog; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_prog_JAR+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 if test -n "$JAR"; then
4295 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_JAR="$ac_prog"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4313 JAR=$ac_cv_prog_JAR
4314 if test -n "$JAR"; then
4315 echo "$as_me:$LINENO: result: $JAR" >&5
4316 echo "${ECHO_T}$JAR" >&6
4317 else
4318 echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4322 test -n "$JAR" && break
4323 done
4324 test -n "$JAR" || JAR="no"
4326 # Extract the first word of "zip", so it can be a program name with args.
4327 set dummy zip; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_ZIP+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 case $ZIP in
4334 [\\/]* | ?:[\\/]*)
4335 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4352 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4354 esac
4356 ZIP=$ac_cv_path_ZIP
4358 if test -n "$ZIP"; then
4359 echo "$as_me:$LINENO: result: $ZIP" >&5
4360 echo "${ECHO_T}$ZIP" >&6
4361 else
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4366 # Extract the first word of "unzip", so it can be a program name with args.
4367 set dummy unzip; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_UNZIP+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 case $UNZIP in
4374 [\\/]* | ?:[\\/]*)
4375 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4392 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4394 esac
4396 UNZIP=$ac_cv_path_UNZIP
4398 if test -n "$UNZIP"; then
4399 echo "$as_me:$LINENO: result: $UNZIP" >&5
4400 echo "${ECHO_T}$UNZIP" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4407 # We need a jar that supports -@. This is a GNU extension.
4408 if test "$JAR" != no; then
4409 rm -f config-test.jar
4410 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4411 if test -f config-test.jar; then
4412 rm -f config-test.jar
4413 else
4414 JAR=no
4418 # Prefer the jar we found, but fall back to our jar script.
4419 if test "$JAR" = no; then
4420 if test "$ZIP" = no; then
4421 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4422 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4423 { (exit 1); exit 1; }; }
4424 else
4425 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4426 JAR=`pwd`/scripts/jar
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 # Reject install programs that cannot install multiple files.
4444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4446 if test -z "$INSTALL"; then
4447 if test "${ac_cv_path_install+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 # Account for people who put trailing slashes in PATH elements.
4456 case $as_dir/ in
4457 ./ | .// | /cC/* | \
4458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4460 /usr/ucb/* ) ;;
4462 # OSF1 and SCO ODT 3.0 have their own names for install.
4463 # Don't use installbsd from OSF since it installs stuff as root
4464 # by default.
4465 for ac_prog in ginstall scoinst install; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4468 if test $ac_prog = install &&
4469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4470 # AIX install. It has an incompatible calling convention.
4472 elif test $ac_prog = install &&
4473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4474 # program-specific install script used by HP pwplus--don't use.
4476 else
4477 rm -rf conftest.one conftest.two conftest.dir
4478 echo one > conftest.one
4479 echo two > conftest.two
4480 mkdir conftest.dir
4481 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4482 test -s conftest.one && test -s conftest.two &&
4483 test -s conftest.dir/conftest.one &&
4484 test -s conftest.dir/conftest.two
4485 then
4486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4487 break 3
4491 done
4492 done
4494 esac
4495 done
4497 rm -rf conftest.one conftest.two conftest.dir
4500 if test "${ac_cv_path_install+set}" = set; then
4501 INSTALL=$ac_cv_path_install
4502 else
4503 # As a last resort, use the slow shell script. Don't cache a
4504 # value for INSTALL within a source directory, because that will
4505 # break other packages using the cache if that directory is
4506 # removed, or if the value is a relative name.
4507 INSTALL=$ac_install_sh
4510 echo "$as_me:$LINENO: result: $INSTALL" >&5
4511 echo "${ECHO_T}$INSTALL" >&6
4513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4514 # It thinks the first close brace ends the variable substitution.
4515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4522 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4523 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4524 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4525 if test "${enable_maintainer_mode+set}" = set; then
4526 enableval="$enable_maintainer_mode"
4527 USE_MAINTAINER_MODE=$enableval
4528 else
4529 USE_MAINTAINER_MODE=no
4531 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4532 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4535 if test $USE_MAINTAINER_MODE = yes; then
4536 MAINTAINER_MODE_TRUE=
4537 MAINTAINER_MODE_FALSE='#'
4538 else
4539 MAINTAINER_MODE_TRUE='#'
4540 MAINTAINER_MODE_FALSE=
4543 MAINT=$MAINTAINER_MODE_TRUE
4549 # configure.host sets the following important variables
4550 # libgcj_cflags - host specific C compiler flags
4551 # libgcj_cxxflags - host specific C++ compiler flags
4552 # libgcj_javaflags - host specific Java compiler flags
4554 libgcj_cflags=
4555 libgcj_cxxflags=
4556 libgcj_javaflags=
4558 . ${srcdir}/configure.host
4560 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4561 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4562 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4566 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4567 acl_cv_prog_gnu_ld=yes
4568 else
4569 acl_cv_prog_gnu_ld=no
4572 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4573 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4574 with_gnu_ld=$acl_cv_prog_gnu_ld
4576 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4577 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4578 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4582 acl_cv_prog_gnu_ld_symbolic=no
4584 if test x"$with_gnu_ld" = x"yes"; then
4585 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4586 acl_cv_prog_gnu_ld_symbolic=yes
4590 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4591 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4592 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4593 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4594 else
4595 SYMBOLIC_LDFLAGS=''
4598 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4599 if test -z "$libgcj_ld_symbolic"; then
4600 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4603 LIBGCJ_CFLAGS="${libgcj_cflags}"
4604 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4605 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4606 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4607 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4614 # Only use libltdl for non-newlib builds.
4615 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4616 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4617 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4618 library_names_spec=
4619 libname_spec='lib$name'
4620 soname_spec=
4621 shrext=".so"
4622 postinstall_cmds=
4623 postuninstall_cmds=
4624 finish_cmds=
4625 finish_eval=
4626 shlibpath_var=
4627 shlibpath_overrides_runpath=unknown
4628 version_type=none
4629 dynamic_linker="$host_os ld.so"
4630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4631 if test "$GCC" = yes; then
4632 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4633 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4634 # if the path contains ";" then we assume it to be the separator
4635 # otherwise default to the standard path separator (i.e. ":") - it is
4636 # assumed that no part of a normal pathname contains ";" but that should
4637 # okay in the real world where ";" in dirpaths is itself problematic.
4638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4639 else
4640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4642 else
4643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4645 need_lib_prefix=unknown
4646 hardcode_into_libs=no
4648 # when you set need_version to no, make sure it does not cause -set_version
4649 # flags to be left without arguments
4650 need_version=unknown
4652 case $host_os in
4653 aix3*)
4654 version_type=linux
4655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4656 shlibpath_var=LIBPATH
4658 # AIX 3 has no versioning support, so we append a major version to the name.
4659 soname_spec='${libname}${release}${shared_ext}$major'
4662 aix[4-9]*)
4663 version_type=linux
4664 need_lib_prefix=no
4665 need_version=no
4666 hardcode_into_libs=yes
4667 if test "$host_cpu" = ia64; then
4668 # AIX 5 supports IA64
4669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4670 shlibpath_var=LD_LIBRARY_PATH
4671 else
4672 # With GCC up to 2.95.x, collect2 would create an import file
4673 # for dependence libraries. The import file would start with
4674 # the line `#! .'. This would cause the generated library to
4675 # depend on `.', always an invalid library. This was fixed in
4676 # development snapshots of GCC prior to 3.0.
4677 case $host_os in
4678 aix4 | aix4.[01] | aix4.[01].*)
4679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4680 echo ' yes '
4681 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4683 else
4684 can_build_shared=no
4687 esac
4688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4689 # soname into executable. Probably we can add versioning support to
4690 # collect2, so additional links can be useful in future.
4691 if test "$aix_use_runtimelinking" = yes; then
4692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4693 # instead of lib<name>.a to let people know that these are not
4694 # typical AIX shared libraries.
4695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4696 else
4697 # We preserve .a as extension for shared libraries through AIX4.2
4698 # and later when we are not doing run time linking.
4699 library_names_spec='${libname}${release}.a $libname.a'
4700 soname_spec='${libname}${release}${shared_ext}$major'
4702 shlibpath_var=LIBPATH
4706 amigaos*)
4707 library_names_spec='$libname.ixlibrary $libname.a'
4708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4709 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4712 beos*)
4713 library_names_spec='${libname}${shared_ext}'
4714 dynamic_linker="$host_os ld.so"
4715 shlibpath_var=LIBRARY_PATH
4718 bsdi4*)
4719 version_type=linux
4720 need_version=no
4721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4722 soname_spec='${libname}${release}${shared_ext}$major'
4723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4724 shlibpath_var=LD_LIBRARY_PATH
4725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4727 # the default ld.so.conf also contains /usr/contrib/lib and
4728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4729 # libtool to hard-code these into programs
4732 cygwin* | mingw* | pw32*)
4733 version_type=windows
4734 shrext=".dll"
4735 need_version=no
4736 need_lib_prefix=no
4738 case $GCC,$host_os in
4739 yes,cygwin* | yes,mingw* | yes,pw32*)
4740 library_names_spec='$libname.dll.a'
4741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4742 postinstall_cmds='base_file=`basename \${file}`~
4743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4744 dldir=$destdir/`dirname \$dlpath`~
4745 test -d \$dldir || mkdir -p \$dldir~
4746 $install_prog $dir/$dlname \$dldir/$dlname'
4747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4748 dlpath=$dir/\$dldll~
4749 $rm \$dlpath'
4750 shlibpath_overrides_runpath=yes
4752 case $host_os in
4753 cygwin*)
4754 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4755 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4756 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4758 mingw*)
4759 # MinGW DLLs use traditional 'lib' prefix
4760 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4762 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4763 # It is most probably a Windows format PATH printed by
4764 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4765 # path with ; separators, and with drive letters. We can handle the
4766 # drive letters (cygwin fileutils understands them), so leave them,
4767 # especially as we might pass files found there to a mingw objdump,
4768 # which wouldn't understand a cygwinified path. Ahh.
4769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4770 else
4771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4774 pw32*)
4775 # pw32 DLLs use 'pw' prefix rather than 'lib'
4776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4778 esac
4782 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4784 esac
4785 dynamic_linker='Win32 ld.exe'
4786 # FIXME: first we should search . and the directory the executable is in
4787 shlibpath_var=PATH
4790 darwin* | rhapsody*)
4791 dynamic_linker="$host_os dyld"
4792 version_type=darwin
4793 need_lib_prefix=no
4794 need_version=no
4795 # FIXME: Relying on posixy $() will cause problems for
4796 # cross-compilation, but unfortunately the echo tests do not
4797 # yet detect zsh echo's removal of \ escapes.
4798 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4799 soname_spec='${libname}${release}${major}$shared_ext'
4800 shlibpath_overrides_runpath=yes
4801 shlibpath_var=DYLD_LIBRARY_PATH
4802 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4803 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4804 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4805 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4810 dgux*)
4811 version_type=linux
4812 need_lib_prefix=no
4813 need_version=no
4814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4815 soname_spec='${libname}${release}${shared_ext}$major'
4816 shlibpath_var=LD_LIBRARY_PATH
4819 freebsd1*)
4820 dynamic_linker=no
4823 freebsd*)
4824 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4825 version_type=freebsd-$objformat
4826 case $version_type in
4827 freebsd-elf*)
4828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4829 need_version=no
4830 need_lib_prefix=no
4832 freebsd-*)
4833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4834 need_version=yes
4836 esac
4837 shlibpath_var=LD_LIBRARY_PATH
4838 case $host_os in
4839 freebsd2*)
4840 shlibpath_overrides_runpath=yes
4842 freebsd3.01* | freebsdelf3.01*)
4843 shlibpath_overrides_runpath=yes
4844 hardcode_into_libs=yes
4846 *) # from 3.2 on
4847 shlibpath_overrides_runpath=no
4848 hardcode_into_libs=yes
4850 esac
4853 gnu*)
4854 version_type=linux
4855 need_lib_prefix=no
4856 need_version=no
4857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4858 soname_spec='${libname}${release}${shared_ext}$major'
4859 shlibpath_var=LD_LIBRARY_PATH
4860 hardcode_into_libs=yes
4863 hpux9* | hpux10* | hpux11*)
4864 # Give a soname corresponding to the major version so that dld.sl refuses to
4865 # link against other versions.
4866 version_type=sunos
4867 need_lib_prefix=no
4868 need_version=no
4869 case "$host_cpu" in
4870 ia64*)
4871 shrext='.so'
4872 hardcode_into_libs=yes
4873 dynamic_linker="$host_os dld.so"
4874 shlibpath_var=LD_LIBRARY_PATH
4875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4877 soname_spec='${libname}${release}${shared_ext}$major'
4878 if test "X$HPUX_IA64_MODE" = X32; then
4879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4880 else
4881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4885 hppa*64*)
4886 shrext='.sl'
4887 hardcode_into_libs=yes
4888 dynamic_linker="$host_os dld.sl"
4889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4892 soname_spec='${libname}${release}${shared_ext}$major'
4893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4897 shrext='.sl'
4898 dynamic_linker="$host_os dld.sl"
4899 shlibpath_var=SHLIB_PATH
4900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902 soname_spec='${libname}${release}${shared_ext}$major'
4904 esac
4905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4906 postinstall_cmds='chmod 555 $lib'
4909 irix5* | irix6* | nonstopux*)
4910 case $host_os in
4911 nonstopux*) version_type=nonstopux ;;
4913 if test "$lt_cv_prog_gnu_ld" = yes; then
4914 version_type=linux
4915 else
4916 version_type=irix
4917 fi ;;
4918 esac
4919 need_lib_prefix=no
4920 need_version=no
4921 soname_spec='${libname}${release}${shared_ext}$major'
4922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4923 case $host_os in
4924 irix5* | nonstopux*)
4925 libsuff= shlibsuff=
4928 case $LD in # libtool.m4 will add one of these switches to LD
4929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4930 libsuff= shlibsuff= libmagic=32-bit;;
4931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4932 libsuff=32 shlibsuff=N32 libmagic=N32;;
4933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4935 *) libsuff= shlibsuff= libmagic=never-match;;
4936 esac
4938 esac
4939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4940 shlibpath_overrides_runpath=no
4941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4943 hardcode_into_libs=yes
4946 # No shared lib support for Linux oldld, aout, or coff.
4947 linux*oldld* | linux*aout* | linux*coff*)
4948 dynamic_linker=no
4951 # This must be Linux ELF.
4952 linux*|k*bsd*-gnu)
4953 version_type=linux
4954 need_lib_prefix=no
4955 need_version=no
4956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4957 soname_spec='${libname}${release}${shared_ext}$major'
4958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4959 shlibpath_var=LD_LIBRARY_PATH
4960 shlibpath_overrides_runpath=no
4961 # This implies no fast_install, which is unacceptable.
4962 # Some rework will be needed to allow for fast_install
4963 # before this can be enabled.
4964 hardcode_into_libs=yes
4966 # We used to test for /lib/ld.so.1 and disable shared libraries on
4967 # powerpc, because MkLinux only supported shared libraries with the
4968 # GNU dynamic linker. Since this was broken with cross compilers,
4969 # most powerpc-linux boxes support dynamic linking these days and
4970 # people can always --disable-shared, the test was removed, and we
4971 # assume the GNU/Linux dynamic linker is in use.
4972 dynamic_linker='GNU/Linux ld.so'
4975 netbsd*)
4976 version_type=sunos
4977 need_lib_prefix=no
4978 need_version=no
4979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4982 dynamic_linker='NetBSD (a.out) ld.so'
4983 else
4984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4985 soname_spec='${libname}${release}${shared_ext}$major'
4986 dynamic_linker='NetBSD ld.elf_so'
4988 shlibpath_var=LD_LIBRARY_PATH
4989 shlibpath_overrides_runpath=yes
4990 hardcode_into_libs=yes
4993 newsos6)
4994 version_type=linux
4995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4996 shlibpath_var=LD_LIBRARY_PATH
4997 shlibpath_overrides_runpath=yes
5000 nto-qnx)
5001 version_type=linux
5002 need_lib_prefix=no
5003 need_version=no
5004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5005 soname_spec='${libname}${release}${shared_ext}$major'
5006 shlibpath_var=LD_LIBRARY_PATH
5007 shlibpath_overrides_runpath=yes
5010 openbsd*)
5011 version_type=sunos
5012 need_lib_prefix=no
5013 need_version=no
5014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5016 shlibpath_var=LD_LIBRARY_PATH
5017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5018 case $host_os in
5019 openbsd2.[89] | openbsd2.[89].*)
5020 shlibpath_overrides_runpath=no
5023 shlibpath_overrides_runpath=yes
5025 esac
5026 else
5027 shlibpath_overrides_runpath=yes
5031 os2*)
5032 libname_spec='$name'
5033 shrext=".dll"
5034 need_lib_prefix=no
5035 library_names_spec='$libname${shared_ext} $libname.a'
5036 dynamic_linker='OS/2 ld.exe'
5037 shlibpath_var=LIBPATH
5040 osf3* | osf4* | osf5*)
5041 version_type=osf
5042 need_lib_prefix=no
5043 need_version=no
5044 soname_spec='${libname}${release}${shared_ext}$major'
5045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5046 shlibpath_var=LD_LIBRARY_PATH
5047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5051 sco3.2v5*)
5052 version_type=osf
5053 soname_spec='${libname}${release}${shared_ext}$major'
5054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5055 shlibpath_var=LD_LIBRARY_PATH
5058 solaris*)
5059 version_type=linux
5060 need_lib_prefix=no
5061 need_version=no
5062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5063 soname_spec='${libname}${release}${shared_ext}$major'
5064 shlibpath_var=LD_LIBRARY_PATH
5065 shlibpath_overrides_runpath=yes
5066 hardcode_into_libs=yes
5067 # ldd complains unless libraries are executable
5068 postinstall_cmds='chmod +x $lib'
5071 sunos4*)
5072 version_type=sunos
5073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5075 shlibpath_var=LD_LIBRARY_PATH
5076 shlibpath_overrides_runpath=yes
5077 if test "$with_gnu_ld" = yes; then
5078 need_lib_prefix=no
5080 need_version=yes
5083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5084 version_type=linux
5085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5086 soname_spec='${libname}${release}${shared_ext}$major'
5087 shlibpath_var=LD_LIBRARY_PATH
5088 case $host_vendor in
5089 sni)
5090 shlibpath_overrides_runpath=no
5091 need_lib_prefix=no
5092 export_dynamic_flag_spec='${wl}-Blargedynsym'
5093 runpath_var=LD_RUN_PATH
5095 siemens)
5096 need_lib_prefix=no
5098 motorola)
5099 need_lib_prefix=no
5100 need_version=no
5101 shlibpath_overrides_runpath=no
5102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5104 esac
5107 sysv4*MP*)
5108 if test -d /usr/nec ;then
5109 version_type=linux
5110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5111 soname_spec='$libname${shared_ext}.$major'
5112 shlibpath_var=LD_LIBRARY_PATH
5116 uts4*)
5117 version_type=linux
5118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5119 soname_spec='${libname}${release}${shared_ext}$major'
5120 shlibpath_var=LD_LIBRARY_PATH
5124 dynamic_linker=no
5126 esac
5127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5128 echo "${ECHO_T}$dynamic_linker" >&6
5129 test "$dynamic_linker" = no && can_build_shared=no
5132 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5133 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5134 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 libltdl_cv_shlibpath_var="$shlibpath_var"
5139 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5140 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5141 if test -n "$libltdl_cv_shlibpath_var"; then
5143 cat >>confdefs.h <<_ACEOF
5144 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5145 _ACEOF
5151 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5154 # See if the user has requested runtime debugging.
5155 LIBGCJDEBUG="disable"
5157 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5158 if test "${enable_libgcj_debug+set}" = set; then
5159 enableval="$enable_libgcj_debug"
5160 if test "$enable_libgcj_debug" = yes; then
5162 cat >>confdefs.h <<\_ACEOF
5163 #define DEBUG 1
5164 _ACEOF
5166 LIBGCJDEBUG="enable"
5171 # Check whether --with-escher or --without-escher was given.
5172 if test "${with_escher+set}" = set; then
5173 withval="$with_escher"
5176 case "$with_escher" in
5178 use_escher=false
5180 "no")
5181 use_escher=false
5183 "yes")
5184 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5185 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5186 { (exit 1); exit 1; }; }
5189 use_escher=true
5191 esac
5193 # Determine which AWT peer libraries to build
5194 # Check whether --enable-java-awt or --disable-java-awt was given.
5195 if test "${enable_java_awt+set}" = set; then
5196 enableval="$enable_java_awt"
5200 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5201 use_xlib_awt=""
5202 use_gtk_awt=""
5203 use_qt_awt=""
5204 use_x_awt=""
5205 # The default toolkit to use is the first one specified.
5206 TOOLKIT=
5209 for peer in $peerlibs ; do
5210 case $peer in
5211 xlib)
5212 if test "$no_x" = yes; then
5213 echo "*** xlib peers requested but no X library available" 1>&2
5214 exit 1
5215 else
5216 use_xlib_awt="yes"
5217 if test -z "$TOOLKIT"; then
5218 TOOLKIT=gnu.awt.xlib.XToolkit
5222 gtk)
5223 if test "$no_x" = yes; then
5224 echo "*** gtk peers requested but no X library available" 1>&2
5225 exit 1
5226 else
5227 use_gtk_awt=yes
5228 if test -z "$TOOLKIT"; then
5229 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5234 if test "$no_x" = yes; then
5235 # Perhaps we should admit the possibility of embedded Qt.
5236 echo "*** Qt peers requested but no X library available" 1>&2
5237 exit 1
5238 else
5239 use_qt_awt=yes
5240 if test -z "$TOOLKIT"; then
5241 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5246 use_x_awt=yes
5247 if test -z "$TOOLKIT"; then
5248 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5252 use_xlib_awt=
5253 use_gtk_awt=
5254 use_qt_awt=
5255 use_x_awt=
5256 break
5259 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5260 exit 1
5261 esac
5262 done
5266 if test "$use_xlib_awt" = yes; then
5267 XLIB_AWT_TRUE=
5268 XLIB_AWT_FALSE='#'
5269 else
5270 XLIB_AWT_TRUE='#'
5271 XLIB_AWT_FALSE=
5276 if test "$use_x_awt" = yes; then
5277 X_AWT_TRUE=
5278 X_AWT_FALSE='#'
5279 else
5280 X_AWT_TRUE='#'
5281 X_AWT_FALSE=
5286 cat >>confdefs.h <<_ACEOF
5287 #define AWT_TOOLKIT "$TOOLKIT"
5288 _ACEOF
5292 cat >>confdefs.h <<_ACEOF
5293 #define LIBGCJ_PREFIX "$prefix"
5294 _ACEOF
5297 # Create standard.omit based on decisions we just made.
5298 cp $srcdir/standard.omit.in standard.omit
5299 if test "$use_xlib_awt" != yes; then
5300 echo gnu/awt/xlib >> standard.omit
5301 echo gnu/gcj/xlib >> standard.omit
5303 if test "$use_x_awt" != yes; then
5304 echo gnu/java/awt/peer/x >> standard.omit
5307 # Tools that need to be compiled against classpath's tools classes
5308 : > vm-tools-packages
5309 for package in gnu/gcj/tools/gc_analyze ; do
5310 echo $package >> standard.omit
5311 echo $package >> vm-tools-packages
5312 done
5314 if test -z "${with_multisubdir}"; then
5315 builddotdot=.
5316 else
5317 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5320 NATIVE=yes
5322 # Which gcj and host gcj (for ecjx) do we use?
5323 which_gcj=default
5324 host_exeext=${ac_exeext}
5325 GCJ_FOR_ECJX=
5326 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5327 if test -n "${with_cross_host}"; then
5328 # We are being configured with a cross compiler. We can't
5329 # use ac_exeext, because that is for the target platform.
5330 NATIVE=no
5331 cross_host_exeext=
5332 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5333 case "${with_cross_host}" in
5334 *mingw* | *cygwin*)
5335 cross_host_exeext=.exe
5337 esac
5338 host_exeext=${cross_host_exeext}
5339 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5340 if test x"$build_noncanonical" = x"$with_cross_host"; then
5341 # Ordinary cross (host!=target and host=build)
5342 which_gcj=built
5343 else
5344 # Canadian cross (host!=target and host!=build)
5345 which_gcj=cross
5347 else
5348 which_gcj=cross
5350 else
5351 # We are being configured with a native or crossed-native compiler
5352 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5353 if test x"$build" = x"$host"; then
5354 # True native build (host=target and host=build)
5355 which_gcj=built
5356 else
5357 # Crossed-native build (host=target and host!=build)
5358 which_gcj=cross
5360 else
5361 which_gcj=path
5364 case "${which_gcj}" in
5365 built)
5366 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5367 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5369 cross)
5370 if test "x${with_newlib}" = "xyes"; then
5371 # FIXME (comment): Why is this needed?
5372 GCC_UNWIND_INCLUDE=
5373 GCJ="${target_noncanonical}-gcj"
5374 else
5375 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5377 GCJH='$(target_noncanonical)-gcjh'
5379 path)
5380 GCJ="gcj -B`${PWDCMD-pwd}`/"
5381 GCJH=gcjh
5383 esac
5389 # Create it, so that compile/link tests don't fail
5390 test -f libgcj.spec || touch libgcj.spec
5394 # Set up to configure Classpath.
5395 # FIXME: no supported way to pass args in autoconf.
5396 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5397 # Disable tool wrappers to avoid ltdl.h configure check.
5398 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5399 ac_configure_args="$ac_configure_args --disable-load-library"
5400 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5401 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5402 dir1=`cd $srcdir && pwd`
5403 dir2=`pwd`
5404 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5405 ac_configure_args="$ac_configure_args --disable-core-jni"
5406 ac_configure_args="$ac_configure_args --disable-examples"
5407 ac_configure_args="$ac_configure_args --with-glibj=build"
5408 if test "$plugin_enabled" != yes; then
5409 ac_configure_args="$ac_configure_args --disable-plugin"
5411 if test "$gconf_enabled" != yes; then
5412 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5413 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5415 if test "$use_gtk_awt" != yes; then
5416 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5418 if test "$use_qt_awt" != yes; then
5419 ac_configure_args="$ac_configure_args --disable-qt-peer"
5420 else
5421 # We need this as qt is disabled by default in classpath.
5422 ac_configure_args="$ac_configure_args --enable-qt-peer"
5424 if test "$use_x_awt" != yes; then
5425 ac_configure_args="$ac_configure_args --without-escher"
5426 else
5427 # We need this as escher is disabled by default in classpath.
5428 if test "$use_escher" != true; then
5429 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5430 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5431 { (exit 1); exit 1; }; }
5432 else
5433 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5436 # -Werror causes unavoidable problems in code using alsa.
5437 ac_configure_args="$ac_configure_args --disable-Werror"
5439 # Only use libltdl for non-newlib builds.
5440 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5441 case $enable_ltdl_convenience in
5442 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5443 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5444 { (exit 1); exit 1; }; } ;;
5445 "") enable_ltdl_convenience=yes
5446 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5447 esac
5448 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5449 LTDLINCL='-I${top_srcdir}/''libltdl'
5450 # For backwards non-gettext consistent compatibility...
5451 INCLTDL="$LTDLINCL"
5453 enable_dlopen=yes
5457 DIRLTDL=libltdl
5459 cat >>confdefs.h <<\_ACEOF
5460 #define USE_LTDL 1
5461 _ACEOF
5463 # Sigh. Libtool's macro doesn't do the right thing.
5464 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5465 # FIXME: this is a hack.
5466 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5467 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5474 macro_version='2.1a'
5475 macro_revision='1.2435'
5488 ltmain="$ac_aux_dir/ltmain.sh"
5490 # Set options
5493 enable_win32_dll=no
5496 # Check whether --enable-shared or --disable-shared was given.
5497 if test "${enable_shared+set}" = set; then
5498 enableval="$enable_shared"
5499 p=${PACKAGE-default}
5500 case $enableval in
5501 yes) enable_shared=yes ;;
5502 no) enable_shared=no ;;
5504 enable_shared=no
5505 # Look at the argument we got. We use all the common list separators.
5506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5507 for pkg in $enableval; do
5508 IFS="$lt_save_ifs"
5509 if test "X$pkg" = "X$p"; then
5510 enable_shared=yes
5512 done
5513 IFS="$lt_save_ifs"
5515 esac
5516 else
5517 enable_shared=yes
5527 # Check whether --enable-static or --disable-static was given.
5528 if test "${enable_static+set}" = set; then
5529 enableval="$enable_static"
5530 p=${PACKAGE-default}
5531 case $enableval in
5532 yes) enable_static=yes ;;
5533 no) enable_static=no ;;
5535 enable_static=no
5536 # Look at the argument we got. We use all the common list separators.
5537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5538 for pkg in $enableval; do
5539 IFS="$lt_save_ifs"
5540 if test "X$pkg" = "X$p"; then
5541 enable_static=yes
5543 done
5544 IFS="$lt_save_ifs"
5546 esac
5547 else
5548 enable_static=yes
5559 # Check whether --with-pic or --without-pic was given.
5560 if test "${with_pic+set}" = set; then
5561 withval="$with_pic"
5562 pic_mode="$withval"
5563 else
5564 pic_mode=default
5567 test -z "$pic_mode" && pic_mode=default
5575 # Check whether --enable-fast-install or --disable-fast-install was given.
5576 if test "${enable_fast_install+set}" = set; then
5577 enableval="$enable_fast_install"
5578 p=${PACKAGE-default}
5579 case $enableval in
5580 yes) enable_fast_install=yes ;;
5581 no) enable_fast_install=no ;;
5583 enable_fast_install=no
5584 # Look at the argument we got. We use all the common list separators.
5585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5586 for pkg in $enableval; do
5587 IFS="$lt_save_ifs"
5588 if test "X$pkg" = "X$p"; then
5589 enable_fast_install=yes
5591 done
5592 IFS="$lt_save_ifs"
5594 esac
5595 else
5596 enable_fast_install=yes
5606 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5607 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5608 if test "${lt_cv_path_SED+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 # Loop through the user's path and test for sed and gsed.
5612 # Then use that list of sed's as ones to test for truncation.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for lt_ac_prog in sed gsed; do
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5621 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5623 done
5624 done
5625 done
5626 IFS=$as_save_IFS
5627 lt_ac_max=0
5628 lt_ac_count=0
5629 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5630 # along with /bin/sed that truncates output.
5631 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5632 test ! -f $lt_ac_sed && continue
5633 cat /dev/null > conftest.in
5634 lt_ac_count=0
5635 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5636 # Check for GNU sed and select it if it is found.
5637 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5638 lt_cv_path_SED=$lt_ac_sed
5639 break
5641 while true; do
5642 cat conftest.in conftest.in >conftest.tmp
5643 mv conftest.tmp conftest.in
5644 cp conftest.in conftest.nl
5645 echo >>conftest.nl
5646 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5647 cmp -s conftest.out conftest.nl || break
5648 # 10000 chars as input seems more than enough
5649 test $lt_ac_count -gt 10 && break
5650 lt_ac_count=`expr $lt_ac_count + 1`
5651 if test $lt_ac_count -gt $lt_ac_max; then
5652 lt_ac_max=$lt_ac_count
5653 lt_cv_path_SED=$lt_ac_sed
5655 done
5656 done
5660 SED=$lt_cv_path_SED
5662 echo "$as_me:$LINENO: result: $SED" >&5
5663 echo "${ECHO_T}$SED" >&6
5665 test -z "$SED" && SED=sed
5666 Xsed="$SED -e 1s/^X//"
5678 echo "$as_me:$LINENO: checking for egrep" >&5
5679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5680 if test "${ac_cv_prog_egrep+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5684 then ac_cv_prog_egrep='grep -E'
5685 else ac_cv_prog_egrep='egrep'
5688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5690 EGREP=$ac_cv_prog_egrep
5693 echo "$as_me:$LINENO: checking for fgrep" >&5
5694 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5695 if test "${ac_cv_prog_fgrep+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5699 then ac_cv_prog_fgrep='grep -F'
5700 else ac_cv_prog_fgrep='fgrep'
5703 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5704 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5705 FGREP=$ac_cv_prog_fgrep
5708 test -z "$GREP" && GREP=grep
5728 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5729 if test "${with_gnu_ld+set}" = set; then
5730 withval="$with_gnu_ld"
5731 test "$withval" = no || with_gnu_ld=yes
5732 else
5733 with_gnu_ld=no
5735 ac_prog=ld
5736 if test "$GCC" = yes; then
5737 # Check if gcc -print-prog-name=ld gives a path.
5738 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5739 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5740 case $host in
5741 *-*-mingw*)
5742 # gcc leaves a trailing carriage return which upsets mingw
5743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5746 esac
5747 case $ac_prog in
5748 # Accept absolute paths.
5749 [\\/]* | ?:[\\/]*)
5750 re_direlt='/[^/][^/]*/\.\./'
5751 # Canonicalize the pathname of ld
5752 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5753 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5754 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5755 done
5756 test -z "$LD" && LD="$ac_prog"
5759 # If it fails, then pretend we aren't using GCC.
5760 ac_prog=ld
5763 # If it is relative, then search for the first ld in PATH.
5764 with_gnu_ld=unknown
5766 esac
5767 elif test "$with_gnu_ld" = yes; then
5768 echo "$as_me:$LINENO: checking for GNU ld" >&5
5769 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5770 else
5771 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5772 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5774 if test "${lt_cv_path_LD+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 if test -z "$LD"; then
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH; do
5780 IFS="$lt_save_ifs"
5781 test -z "$ac_dir" && ac_dir=.
5782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5783 lt_cv_path_LD="$ac_dir/$ac_prog"
5784 # Check to see if the program is GNU ld. I'd rather use --version,
5785 # but apparently some variants of GNU ld only accept -v.
5786 # Break only if it was the GNU/non-GNU ld that we prefer.
5787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5788 *GNU* | *'with BFD'*)
5789 test "$with_gnu_ld" != no && break
5792 test "$with_gnu_ld" != yes && break
5794 esac
5796 done
5797 IFS="$lt_save_ifs"
5798 else
5799 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5803 LD="$lt_cv_path_LD"
5804 if test -n "$LD"; then
5805 echo "$as_me:$LINENO: result: $LD" >&5
5806 echo "${ECHO_T}$LD" >&6
5807 else
5808 echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6
5811 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5812 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5813 { (exit 1); exit 1; }; }
5814 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5815 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5816 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5820 case `$LD -v 2>&1 </dev/null` in
5821 *GNU* | *'with BFD'*)
5822 lt_cv_prog_gnu_ld=yes
5825 lt_cv_prog_gnu_ld=no
5827 esac
5829 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5830 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5831 with_gnu_ld=$lt_cv_prog_gnu_ld
5842 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5843 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5844 if test "${lt_cv_path_NM+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 if test -n "$NM"; then
5848 # Let the user override the test.
5849 lt_cv_path_NM="$NM"
5850 else
5851 lt_nm_to_check="${ac_tool_prefix}nm"
5852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5853 lt_nm_to_check="$lt_nm_to_check nm"
5855 for lt_tmp_nm in $lt_nm_to_check; do
5856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5858 IFS="$lt_save_ifs"
5859 test -z "$ac_dir" && ac_dir=.
5860 tmp_nm="$ac_dir/$lt_tmp_nm"
5861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5862 # Check to see if the nm accepts a BSD-compat flag.
5863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5864 # nm: unknown option "B" ignored
5865 # Tru64's nm complains that /dev/null is an invalid object file
5866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5867 */dev/null* | *'Invalid file or object type'*)
5868 lt_cv_path_NM="$tmp_nm -B"
5869 break
5872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5873 */dev/null*)
5874 lt_cv_path_NM="$tmp_nm -p"
5875 break
5878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5879 continue # so that we can try to find one that supports BSD flags
5881 esac
5883 esac
5885 done
5886 IFS="$lt_save_ifs"
5887 done
5888 : ${lt_cv_path_NM=no}
5891 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5892 echo "${ECHO_T}$lt_cv_path_NM" >&6
5893 if test "$lt_cv_path_NM" != "no"; then
5894 NM="$lt_cv_path_NM"
5895 else
5896 # Didn't find any BSD compatible name lister, look for dumpbin.
5897 if test -n "$ac_tool_prefix"; then
5898 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907 if test -n "$DUMPBIN"; then
5908 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5921 done
5922 done
5926 DUMPBIN=$ac_cv_prog_DUMPBIN
5927 if test -n "$DUMPBIN"; then
5928 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5929 echo "${ECHO_T}$DUMPBIN" >&6
5930 else
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5935 test -n "$DUMPBIN" && break
5936 done
5938 if test -z "$DUMPBIN"; then
5939 ac_ct_DUMPBIN=$DUMPBIN
5940 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5942 # Extract the first word of "$ac_prog", so it can be a program name with args.
5943 set dummy $ac_prog; ac_word=$2
5944 echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5946 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 if test -n "$ac_ct_DUMPBIN"; then
5950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5963 done
5964 done
5968 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5969 if test -n "$ac_ct_DUMPBIN"; then
5970 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5971 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5977 test -n "$ac_ct_DUMPBIN" && break
5978 done
5979 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5981 DUMPBIN=$ac_ct_DUMPBIN
5985 if test "$DUMPBIN" != ":"; then
5986 NM="$DUMPBIN"
5989 test -z "$NM" && NM=nm
5996 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5997 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5998 if test "${lt_cv_nm_interface+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 lt_cv_nm_interface="BSD nm"
6002 echo "int some_variable = 0;" > conftest.$ac_ext
6003 (eval echo "\"\$as_me:6003: $ac_compile\"" >&5)
6004 (eval "$ac_compile" 2>conftest.err)
6005 cat conftest.err >&5
6006 (eval echo "\"\$as_me:6006: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6008 cat conftest.err >&5
6009 (eval echo "\"\$as_me:6009: output\"" >&5)
6010 cat conftest.out >&5
6011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6012 lt_cv_nm_interface="MS dumpbin"
6014 rm -f conftest*
6016 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6017 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6019 # find the maximum length of command line arguments
6020 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6026 teststring="ABCD"
6028 case $build_os in
6029 msdosdjgpp*)
6030 # On DJGPP, this test can blow up pretty badly due to problems in libc
6031 # (any single argument exceeding 2000 bytes causes a buffer overrun
6032 # during glob expansion). Even if it were fixed, the result of this
6033 # check would be larger than it should be.
6034 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6037 gnu*)
6038 # Under GNU Hurd, this test is not required because there is
6039 # no limit to the length of command line arguments.
6040 # Libtool will interpret -1 as no limit whatsoever
6041 lt_cv_sys_max_cmd_len=-1;
6044 cygwin* | mingw*)
6045 # On Win9x/ME, this test blows up -- it succeeds, but takes
6046 # about 5 minutes as the teststring grows exponentially.
6047 # Worse, since 9x/ME are not pre-emptively multitasking,
6048 # you end up with a "frozen" computer, even though with patience
6049 # the test eventually succeeds (with a max line length of 256k).
6050 # Instead, let's just punt: use the minimum linelength reported by
6051 # all of the supported platforms: 8192 (on NT/2K/XP).
6052 lt_cv_sys_max_cmd_len=8192;
6055 amigaos*)
6056 # On AmigaOS with pdksh, this test takes hours, literally.
6057 # So we just punt and use a minimum line length of 8192.
6058 lt_cv_sys_max_cmd_len=8192;
6061 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062 # This has been around since 386BSD, at least. Likely further.
6063 if test -x /sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065 elif test -x /usr/sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067 else
6068 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6070 # And add a safety zone
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 interix*)
6076 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077 lt_cv_sys_max_cmd_len=196608
6080 osf*)
6081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083 # nice to cause kernel panics so lets avoid the loop below.
6084 # First set a reasonable default.
6085 lt_cv_sys_max_cmd_len=16384
6087 if test -x /sbin/sysconfig; then
6088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6090 esac
6093 sco3.2v5*)
6094 lt_cv_sys_max_cmd_len=102400
6096 sysv5* | sco5v6* | sysv4.2uw2*)
6097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098 if test -n "$kargmax"; then
6099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6100 else
6101 lt_cv_sys_max_cmd_len=32768
6105 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6106 if test -n $lt_cv_sys_max_cmd_len; then
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109 else
6110 # Make teststring a little bigger before we do anything with it.
6111 # a 1K string should be a reasonable start.
6112 for i in 1 2 3 4 5 6 7 8 ; do
6113 teststring=$teststring$teststring
6114 done
6115 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6116 # If test is not a shell built-in, we'll probably end up computing a
6117 # maximum length that is only half of the actual maximum length, but
6118 # we can't tell.
6119 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6120 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6121 test $i != 17 # 1/2 MB should be enough
6123 i=`expr $i + 1`
6124 teststring=$teststring$teststring
6125 done
6126 # Only check the string length outside the loop.
6127 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6128 teststring=
6129 # Add a significant safety factor because C++ compilers can tack on
6130 # massive amounts of additional arguments before passing them to the
6131 # linker. It appears as though 1/2 is a usable value.
6132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135 esac
6139 if test -n $lt_cv_sys_max_cmd_len ; then
6140 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6141 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6142 else
6143 echo "$as_me:$LINENO: result: none" >&5
6144 echo "${ECHO_T}none" >&6
6146 max_cmd_len=$lt_cv_sys_max_cmd_len
6153 : ${CP="cp -f"}
6154 : ${MV="mv -f"}
6155 : ${RM="rm -f"}
6157 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6158 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6159 # Try some XSI features
6160 xsi_shell=no
6161 ( _lt_dummy="a/b/c"
6162 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6163 = c,a/b,, ) >/dev/null 2>&1 \
6164 && xsi_shell=yes
6165 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6166 echo "${ECHO_T}$xsi_shell" >&6
6169 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6170 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6171 lt_shell_append=no
6172 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173 >/dev/null 2>&1 \
6174 && lt_shell_append=yes
6175 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6176 echo "${ECHO_T}$lt_shell_append" >&6
6179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6180 lt_unset=unset
6181 else
6182 lt_unset=false
6189 # test EBCDIC or ASCII
6190 case `echo X|tr X '\101'` in
6191 A) # ASCII based system
6192 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6193 lt_SP2NL='tr \040 \012'
6194 lt_NL2SP='tr \015\012 \040\040'
6196 *) # EBCDIC based system
6197 lt_SP2NL='tr \100 \n'
6198 lt_NL2SP='tr \r\n \100\100'
6200 esac
6210 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6211 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6212 if test "${lt_cv_ld_reload_flag+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 lt_cv_ld_reload_flag='-r'
6217 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6218 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6219 reload_flag=$lt_cv_ld_reload_flag
6220 case $reload_flag in
6221 "" | " "*) ;;
6222 *) reload_flag=" $reload_flag" ;;
6223 esac
6224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6225 case $host_os in
6226 darwin*)
6227 if test "$GCC" = yes; then
6228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 else
6230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233 esac
6244 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6245 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6246 if test "${lt_cv_deplibs_check_method+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 lt_cv_file_magic_cmd='$MAGIC_CMD'
6250 lt_cv_file_magic_test_file=
6251 lt_cv_deplibs_check_method='unknown'
6252 # Need to set the preceding variable on all platforms that support
6253 # interlibrary dependencies.
6254 # 'none' -- dependencies not supported.
6255 # `unknown' -- same as none, but documents that we really don't know.
6256 # 'pass_all' -- all dependencies passed with no checks.
6257 # 'test_compile' -- check by making test program.
6258 # 'file_magic [[regex]]' -- check by looking for files in library path
6259 # which responds to the $file_magic_cmd with a given extended regex.
6260 # If you have `file' or equivalent on your system and you're not sure
6261 # whether `pass_all' will *always* work, you probably want this one.
6263 case $host_os in
6264 aix[4-9]*)
6265 lt_cv_deplibs_check_method=pass_all
6268 beos*)
6269 lt_cv_deplibs_check_method=pass_all
6272 bsdi[45]*)
6273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6274 lt_cv_file_magic_cmd='/usr/bin/file -L'
6275 lt_cv_file_magic_test_file=/shlib/libc.so
6278 cygwin*)
6279 # func_win32_libid is a shell function defined in ltmain.sh
6280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6281 lt_cv_file_magic_cmd='func_win32_libid'
6284 mingw* | pw32*)
6285 # Base MSYS/MinGW do not provide the 'file' command needed by
6286 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6287 # unless we find 'file', for example because we are cross-compiling.
6288 if ( file / ) >/dev/null 2>&1; then
6289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6290 lt_cv_file_magic_cmd='func_win32_libid'
6291 else
6292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6293 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | dragonfly*)
6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303 case $host_cpu in
6304 i*86 )
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311 esac
6312 else
6313 lt_cv_deplibs_check_method=pass_all
6317 gnu*)
6318 lt_cv_deplibs_check_method=pass_all
6321 hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6323 case $host_cpu in
6324 ia64*)
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6328 hppa*64*)
6329 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]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6336 esac
6339 interix[3-9]*)
6340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6344 irix5* | irix6* | nonstopux*)
6345 case $LD in
6346 *-32|*"-32 ") libmagic=32-bit;;
6347 *-n32|*"-n32 ") libmagic=N32;;
6348 *-64|*"-64 ") libmagic=64-bit;;
6349 *) libmagic=never-match;;
6350 esac
6351 lt_cv_deplibs_check_method=pass_all
6354 # This must be Linux ELF.
6355 linux* | k*bsd*-gnu)
6356 lt_cv_deplibs_check_method=pass_all
6359 netbsd*)
6360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6362 else
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6367 newos6*)
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6369 lt_cv_file_magic_cmd=/usr/bin/file
6370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6373 *nto* | *qnx*)
6374 lt_cv_deplibs_check_method=pass_all
6377 openbsd*)
6378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6380 else
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385 osf3* | osf4* | osf5*)
6386 lt_cv_deplibs_check_method=pass_all
6389 rdos*)
6390 lt_cv_deplibs_check_method=pass_all
6393 solaris*)
6394 lt_cv_deplibs_check_method=pass_all
6397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6398 lt_cv_deplibs_check_method=pass_all
6401 sysv4 | sysv4.3*)
6402 case $host_vendor in
6403 motorola)
6404 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]'
6405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6407 ncr)
6408 lt_cv_deplibs_check_method=pass_all
6410 sequent)
6411 lt_cv_file_magic_cmd='/bin/file'
6412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6414 sni)
6415 lt_cv_file_magic_cmd='/bin/file'
6416 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6417 lt_cv_file_magic_test_file=/lib/libc.so
6419 siemens)
6420 lt_cv_deplibs_check_method=pass_all
6423 lt_cv_deplibs_check_method=pass_all
6425 esac
6428 tpf*)
6429 lt_cv_deplibs_check_method=pass_all
6431 esac
6434 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6435 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6436 file_magic_cmd=$lt_cv_file_magic_cmd
6437 deplibs_check_method=$lt_cv_deplibs_check_method
6438 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ar; ac_word=$2
6454 echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6456 if test "${ac_cv_prog_AR+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 if test -n "$AR"; then
6460 ac_cv_prog_AR="$AR" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_AR="${ac_tool_prefix}ar"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6478 AR=$ac_cv_prog_AR
6479 if test -n "$AR"; then
6480 echo "$as_me:$LINENO: result: $AR" >&5
6481 echo "${ECHO_T}$AR" >&6
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6488 if test -z "$ac_cv_prog_AR"; then
6489 ac_ct_AR=$AR
6490 # Extract the first word of "ar", so it can be a program name with args.
6491 set dummy ar; ac_word=$2
6492 echo "$as_me:$LINENO: checking for $ac_word" >&5
6493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6494 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 if test -n "$ac_ct_AR"; then
6498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_AR="ar"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6511 done
6512 done
6514 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6518 if test -n "$ac_ct_AR"; then
6519 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6520 echo "${ECHO_T}$ac_ct_AR" >&6
6521 else
6522 echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6526 AR=$ac_ct_AR
6527 else
6528 AR="$ac_cv_prog_AR"
6531 test -z "$AR" && AR=ar
6532 test -z "$AR_FLAGS" && AR_FLAGS=cru
6544 if test -n "$ac_tool_prefix"; then
6545 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}strip; ac_word=$2
6547 echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549 if test "${ac_cv_prog_STRIP+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 if test -n "$STRIP"; then
6553 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6571 STRIP=$ac_cv_prog_STRIP
6572 if test -n "$STRIP"; then
6573 echo "$as_me:$LINENO: result: $STRIP" >&5
6574 echo "${ECHO_T}$STRIP" >&6
6575 else
6576 echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6
6581 if test -z "$ac_cv_prog_STRIP"; then
6582 ac_ct_STRIP=$STRIP
6583 # Extract the first word of "strip", so it can be a program name with args.
6584 set dummy strip; ac_word=$2
6585 echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590 if test -n "$ac_ct_STRIP"; then
6591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_ac_ct_STRIP="strip"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6607 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6611 if test -n "$ac_ct_STRIP"; then
6612 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6613 echo "${ECHO_T}$ac_ct_STRIP" >&6
6614 else
6615 echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6
6619 STRIP=$ac_ct_STRIP
6620 else
6621 STRIP="$ac_cv_prog_STRIP"
6624 test -z "$STRIP" && STRIP=:
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6634 echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636 if test "${ac_cv_prog_RANLIB+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639 if test -n "$RANLIB"; then
6640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6653 done
6654 done
6658 RANLIB=$ac_cv_prog_RANLIB
6659 if test -n "$RANLIB"; then
6660 echo "$as_me:$LINENO: result: $RANLIB" >&5
6661 echo "${ECHO_T}$RANLIB" >&6
6662 else
6663 echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6
6668 if test -z "$ac_cv_prog_RANLIB"; then
6669 ac_ct_RANLIB=$RANLIB
6670 # Extract the first word of "ranlib", so it can be a program name with args.
6671 set dummy ranlib; ac_word=$2
6672 echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 if test -n "$ac_ct_RANLIB"; then
6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_RANLIB="ranlib"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6694 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6698 if test -n "$ac_ct_RANLIB"; then
6699 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6700 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6701 else
6702 echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6706 RANLIB=$ac_ct_RANLIB
6707 else
6708 RANLIB="$ac_cv_prog_RANLIB"
6711 test -z "$RANLIB" && RANLIB=:
6718 # Determine commands to create old-style static archives.
6719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6720 old_postinstall_cmds='chmod 644 $oldlib'
6721 old_postuninstall_cmds=
6723 if test -n "$RANLIB"; then
6724 case $host_os in
6725 openbsd*)
6726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6731 esac
6732 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6768 # If no C compiler was specified, use CC.
6769 LTCC=${LTCC-"$CC"}
6771 # If no C compiler flags were specified, use CFLAGS.
6772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6774 # Allow CC to be a program name with arguments.
6775 compiler=$CC
6778 # Check for command to grab the raw symbol name followed by C symbol from nm.
6779 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6780 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6781 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6785 # These are sane defaults that work on at least a few old systems.
6786 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6788 # Character class describing NM global symbol codes.
6789 symcode='[BCDEGRST]'
6791 # Regexp to match symbols that can be accessed directly from C.
6792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6794 # Define system-specific variables.
6795 case $host_os in
6796 aix*)
6797 symcode='[BCDT]'
6799 cygwin* | mingw* | pw32*)
6800 symcode='[ABCDGISTW]'
6802 hpux*)
6803 if test "$host_cpu" = ia64; then
6804 symcode='[ABCDEGRST]'
6807 irix* | nonstopux*)
6808 symcode='[BCDEGRST]'
6810 osf*)
6811 symcode='[BCDEGQRST]'
6813 solaris*)
6814 symcode='[BDRT]'
6816 sco3.2v5*)
6817 symcode='[DT]'
6819 sysv4.2uw2*)
6820 symcode='[DT]'
6822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6823 symcode='[ABDT]'
6825 sysv4)
6826 symcode='[DFNSTU]'
6828 esac
6830 # If we're using GNU nm, then use its standard symbol codes.
6831 case `$NM -V 2>&1` in
6832 *GNU* | *'with BFD'*)
6833 symcode='[ABCDGIRSTW]' ;;
6834 esac
6836 # Transform an extracted symbol line into a proper C declaration.
6837 # Some systems (esp. on ia64) link data and code symbols differently,
6838 # so use this general approach.
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6844 # Handle CRLF in mingw tool chain
6845 opt_cr=
6846 case $build_os in
6847 mingw*)
6848 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6850 esac
6852 # Try without a prefix underscore, then with it.
6853 for ac_symprfx in "" "_"; do
6855 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6856 symxfrm="\\1 $ac_symprfx\\2 \\2"
6858 # Write the raw and C identifiers.
6859 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860 # Fake it for dumpbin and say T for any non-static function
6861 # and D for any global variable.
6862 # Also find C++ and __fastcall symbols from MSVC++,
6863 # which start with @ or ?.
6864 lt_cv_sys_global_symbol_pipe="$AWK '"\
6865 " {last_section=section; section=\$ 3};"\
6866 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6867 " \$ 0!~/External *\|/{next};"\
6868 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6869 " {if(hide[section]) next};"\
6870 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6871 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6872 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6873 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6874 " ' prfx=^$ac_symprfx"
6875 else
6876 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879 # Check to see that the pipe works correctly.
6880 pipe_works=no
6882 rm -f conftest*
6883 cat > conftest.$ac_ext <<_LT_EOF
6884 #ifdef __cplusplus
6885 extern "C" {
6886 #endif
6887 char nm_test_var;
6888 void nm_test_func(void);
6889 void nm_test_func(void){}
6890 #ifdef __cplusplus
6892 #endif
6893 int main(){nm_test_var='a';nm_test_func();return(0);}
6894 _LT_EOF
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; then
6901 # Now try to grab the symbols.
6902 nlist=conftest.nm
6903 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6904 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && test -s "$nlist"; then
6908 # Try sorting and uniquifying the output.
6909 if sort "$nlist" | uniq > "$nlist"T; then
6910 mv -f "$nlist"T "$nlist"
6911 else
6912 rm -f "$nlist"T
6915 # Make sure that we snagged all the symbols we need.
6916 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6917 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6918 cat <<_LT_EOF > conftest.$ac_ext
6919 #ifdef __cplusplus
6920 extern "C" {
6921 #endif
6923 _LT_EOF
6924 # Now generate the symbol file.
6925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6927 cat <<_LT_EOF >> conftest.$ac_ext
6929 /* The mapping between symbol names and symbols. */
6930 const struct {
6931 const char *name;
6932 void *address;
6934 lt__PROGRAM__LTX_preloaded_symbols[] =
6936 { "@PROGRAM@", (void *) 0 },
6937 _LT_EOF
6938 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6939 cat <<\_LT_EOF >> conftest.$ac_ext
6940 {0, (void *) 0}
6943 /* This works around a problem in FreeBSD linker */
6944 #ifdef FREEBSD_WORKAROUND
6945 static const void *lt_preloaded_setup() {
6946 return lt__PROGRAM__LTX_preloaded_symbols;
6948 #endif
6950 #ifdef __cplusplus
6952 #endif
6953 _LT_EOF
6954 # Now try linking the two files.
6955 mv conftest.$ac_objext conftstm.$ac_objext
6956 lt_save_LIBS="$LIBS"
6957 lt_save_CFLAGS="$CFLAGS"
6958 LIBS="conftstm.$ac_objext"
6959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6965 pipe_works=yes
6967 LIBS="$lt_save_LIBS"
6968 CFLAGS="$lt_save_CFLAGS"
6969 else
6970 echo "cannot find nm_test_func in $nlist" >&5
6972 else
6973 echo "cannot find nm_test_var in $nlist" >&5
6975 else
6976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6978 else
6979 echo "$progname: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6982 rm -f conftest* conftst*
6984 # Do not use the global_symbol_pipe unless it works.
6985 if test "$pipe_works" = yes; then
6986 break
6987 else
6988 lt_cv_sys_global_symbol_pipe=
6990 done
6994 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6995 lt_cv_sys_global_symbol_to_cdecl=
6997 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6998 echo "$as_me:$LINENO: result: failed" >&5
6999 echo "${ECHO_T}failed" >&6
7000 else
7001 echo "$as_me:$LINENO: result: ok" >&5
7002 echo "${ECHO_T}ok" >&6
7022 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7023 if test "${enable_libtool_lock+set}" = set; then
7024 enableval="$enable_libtool_lock"
7027 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7029 # Some flags need to be propagated to the compiler or linker for good
7030 # libtool support.
7031 case $host in
7032 ia64-*-hpux*)
7033 # Find out which ABI we are using.
7034 echo 'int i;' > conftest.$ac_ext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; then
7040 case `/usr/bin/file conftest.$ac_objext` in
7041 *ELF-32*)
7042 HPUX_IA64_MODE="32"
7044 *ELF-64*)
7045 HPUX_IA64_MODE="64"
7047 esac
7049 rm -rf conftest*
7051 *-*-irix6*)
7052 # Find out which ABI we are using.
7053 echo '#line 7053 "configure"' > conftest.$ac_ext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; then
7059 if test "$lt_cv_prog_gnu_ld" = yes; then
7060 case `/usr/bin/file conftest.$ac_objext` in
7061 *32-bit*)
7062 LD="${LD-ld} -melf32bsmip"
7064 *N32*)
7065 LD="${LD-ld} -melf32bmipn32"
7067 *64-bit*)
7068 LD="${LD-ld} -melf64bmip"
7070 esac
7071 else
7072 case `/usr/bin/file conftest.$ac_objext` in
7073 *32-bit*)
7074 LD="${LD-ld} -32"
7076 *N32*)
7077 LD="${LD-ld} -n32"
7079 *64-bit*)
7080 LD="${LD-ld} -64"
7082 esac
7085 rm -rf conftest*
7088 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7089 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7090 # Find out which ABI we are using.
7091 echo 'int i;' > conftest.$ac_ext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; then
7097 case `/usr/bin/file conftest.o` in
7098 *32-bit*)
7099 case $host in
7100 x86_64-*kfreebsd*-gnu)
7101 LD="${LD-ld} -m elf_i386_fbsd"
7103 x86_64-*linux*)
7104 LD="${LD-ld} -m elf_i386"
7106 ppc64-*linux*|powerpc64-*linux*)
7107 LD="${LD-ld} -m elf32ppclinux"
7109 s390x-*linux*)
7110 LD="${LD-ld} -m elf_s390"
7112 sparc64-*linux*)
7113 LD="${LD-ld} -m elf32_sparc"
7115 esac
7117 *64-bit*)
7118 case $host in
7119 x86_64-*kfreebsd*-gnu)
7120 LD="${LD-ld} -m elf_x86_64_fbsd"
7122 x86_64-*linux*)
7123 LD="${LD-ld} -m elf_x86_64"
7125 ppc*-*linux*|powerpc*-*linux*)
7126 LD="${LD-ld} -m elf64ppc"
7128 s390*-*linux*|s390*-*tpf*)
7129 LD="${LD-ld} -m elf64_s390"
7131 sparc*-*linux*)
7132 LD="${LD-ld} -m elf64_sparc"
7134 esac
7136 esac
7138 rm -rf conftest*
7141 *-*-sco3.2v5*)
7142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7143 SAVE_CFLAGS="$CFLAGS"
7144 CFLAGS="$CFLAGS -belf"
7145 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7146 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7147 if test "${lt_cv_cc_needs_belf+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 ac_ext=c
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 if test x$gcc_no_link = xyes; then
7157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7159 { (exit 1); exit 1; }; }
7161 cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7169 main ()
7173 return 0;
7175 _ACEOF
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178 (eval $ac_link) 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 lt_cv_cc_needs_belf=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 lt_cv_cc_needs_belf=no
7205 rm -f conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 ac_ext=c
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7215 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7218 CFLAGS="$SAVE_CFLAGS"
7221 sparc*-*solaris*)
7222 # Find out which ABI we are using.
7223 echo 'int i;' > conftest.$ac_ext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; then
7229 case `/usr/bin/file conftest.o` in
7230 *64-bit*)
7231 case $lt_cv_prog_gnu_ld in
7232 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7233 *) LD="${LD-ld} -64" ;;
7234 esac
7236 esac
7238 rm -rf conftest*
7240 esac
7242 need_locks="$enable_libtool_lock"
7244 ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7250 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7251 # On Suns, sometimes $CPP names a directory.
7252 if test -n "$CPP" && test -d "$CPP"; then
7253 CPP=
7255 if test -z "$CPP"; then
7256 if test "${ac_cv_prog_CPP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 # Double quotes because CPP needs to be expanded
7260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7262 ac_preproc_ok=false
7263 for ac_c_preproc_warn_flag in '' yes
7265 # Use a header file that comes with gcc, so configuring glibc
7266 # with a fresh cross-compiler works.
7267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268 # <limits.h> exists even on freestanding compilers.
7269 # On the NeXT, cc -E runs the code through the compiler's parser,
7270 # not just through cpp. "Syntax error" is here to catch this case.
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #ifdef __STDC__
7278 # include <limits.h>
7279 #else
7280 # include <assert.h>
7281 #endif
7282 Syntax error
7283 _ACEOF
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } >/dev/null; then
7292 if test -s conftest.err; then
7293 ac_cpp_err=$ac_c_preproc_warn_flag
7294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7295 else
7296 ac_cpp_err=
7298 else
7299 ac_cpp_err=yes
7301 if test -z "$ac_cpp_err"; then
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 # Broken: fails on valid input.
7308 continue
7310 rm -f conftest.err conftest.$ac_ext
7312 # OK, works on sane cases. Now check whether non-existent headers
7313 # can be detected and how.
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 #include <ac_nonexistent.h>
7321 _ACEOF
7322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } >/dev/null; then
7330 if test -s conftest.err; then
7331 ac_cpp_err=$ac_c_preproc_warn_flag
7332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7333 else
7334 ac_cpp_err=
7336 else
7337 ac_cpp_err=yes
7339 if test -z "$ac_cpp_err"; then
7340 # Broken: success on invalid input.
7341 continue
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 # Passes both tests.
7347 ac_preproc_ok=:
7348 break
7350 rm -f conftest.err conftest.$ac_ext
7352 done
7353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7354 rm -f conftest.err conftest.$ac_ext
7355 if $ac_preproc_ok; then
7356 break
7359 done
7360 ac_cv_prog_CPP=$CPP
7363 CPP=$ac_cv_prog_CPP
7364 else
7365 ac_cv_prog_CPP=$CPP
7367 echo "$as_me:$LINENO: result: $CPP" >&5
7368 echo "${ECHO_T}$CPP" >&6
7369 ac_preproc_ok=false
7370 for ac_c_preproc_warn_flag in '' yes
7372 # Use a header file that comes with gcc, so configuring glibc
7373 # with a fresh cross-compiler works.
7374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7375 # <limits.h> exists even on freestanding compilers.
7376 # On the NeXT, cc -E runs the code through the compiler's parser,
7377 # not just through cpp. "Syntax error" is here to catch this case.
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389 Syntax error
7390 _ACEOF
7391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } >/dev/null; then
7399 if test -s conftest.err; then
7400 ac_cpp_err=$ac_c_preproc_warn_flag
7401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7402 else
7403 ac_cpp_err=
7405 else
7406 ac_cpp_err=yes
7408 if test -z "$ac_cpp_err"; then
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 # Broken: fails on valid input.
7415 continue
7417 rm -f conftest.err conftest.$ac_ext
7419 # OK, works on sane cases. Now check whether non-existent headers
7420 # can be detected and how.
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #include <ac_nonexistent.h>
7428 _ACEOF
7429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } >/dev/null; then
7437 if test -s conftest.err; then
7438 ac_cpp_err=$ac_c_preproc_warn_flag
7439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7440 else
7441 ac_cpp_err=
7443 else
7444 ac_cpp_err=yes
7446 if test -z "$ac_cpp_err"; then
7447 # Broken: success on invalid input.
7448 continue
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 # Passes both tests.
7454 ac_preproc_ok=:
7455 break
7457 rm -f conftest.err conftest.$ac_ext
7459 done
7460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7461 rm -f conftest.err conftest.$ac_ext
7462 if $ac_preproc_ok; then
7464 else
7465 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7468 See \`config.log' for more details." >&5
7469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7470 See \`config.log' for more details." >&2;}
7471 { (exit 1); exit 1; }; }; }
7474 ac_ext=c
7475 ac_cpp='$CPP $CPPFLAGS'
7476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7483 if test "${ac_cv_header_stdc+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 #include <stdlib.h>
7493 #include <stdarg.h>
7494 #include <string.h>
7495 #include <float.h>
7498 main ()
7502 return 0;
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_header_stdc=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_cv_header_stdc=no
7534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7536 if test $ac_cv_header_stdc = yes; then
7537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 #include <string.h>
7546 _ACEOF
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548 $EGREP "memchr" >/dev/null 2>&1; then
7550 else
7551 ac_cv_header_stdc=no
7553 rm -f conftest*
7557 if test $ac_cv_header_stdc = yes; then
7558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 #include <stdlib.h>
7567 _ACEOF
7568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7569 $EGREP "free" >/dev/null 2>&1; then
7571 else
7572 ac_cv_header_stdc=no
7574 rm -f conftest*
7578 if test $ac_cv_header_stdc = yes; then
7579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7580 if test "$cross_compiling" = yes; then
7582 else
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <ctype.h>
7590 #if ((' ' & 0x0FF) == 0x020)
7591 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7592 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7593 #else
7594 # define ISLOWER(c) \
7595 (('a' <= (c) && (c) <= 'i') \
7596 || ('j' <= (c) && (c) <= 'r') \
7597 || ('s' <= (c) && (c) <= 'z'))
7598 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7599 #endif
7601 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7603 main ()
7605 int i;
7606 for (i = 0; i < 256; i++)
7607 if (XOR (islower (i), ISLOWER (i))
7608 || toupper (i) != TOUPPER (i))
7609 exit(2);
7610 exit (0);
7612 _ACEOF
7613 rm -f conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7625 else
7626 echo "$as_me: program exited with status $ac_status" >&5
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ( exit $ac_status )
7631 ac_cv_header_stdc=no
7633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7638 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7639 if test $ac_cv_header_stdc = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 #define STDC_HEADERS 1
7643 _ACEOF
7647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7658 inttypes.h stdint.h unistd.h
7660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661 echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 $ac_includes_default
7674 #include <$ac_header>
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678 (eval $ac_compile) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -z "$ac_c_werror_flag"
7686 || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest.$ac_objext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 eval "$as_ac_Header=yes"
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 eval "$as_ac_Header=no"
7705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7716 done
7720 for ac_header in dlfcn.h
7722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 $ac_includes_default
7736 #include <$ac_header>
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740 (eval $ac_compile) 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -z "$ac_c_werror_flag"
7748 || test ! -s conftest.err'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 (eval $ac_try) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest.$ac_objext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 eval "$as_ac_Header=yes"
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 eval "$as_ac_Header=no"
7767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7772 cat >>confdefs.h <<_ACEOF
7773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 _ACEOF
7778 done
7782 ac_ext=cc
7783 ac_cpp='$CXXCPP $CPPFLAGS'
7784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7787 if test -n "$ac_tool_prefix"; then
7788 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7792 echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794 if test "${ac_cv_prog_CXX+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 if test -n "$CXX"; then
7798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7816 CXX=$ac_cv_prog_CXX
7817 if test -n "$CXX"; then
7818 echo "$as_me:$LINENO: result: $CXX" >&5
7819 echo "${ECHO_T}$CXX" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7825 test -n "$CXX" && break
7826 done
7828 if test -z "$CXX"; then
7829 ac_ct_CXX=$CXX
7830 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7832 # Extract the first word of "$ac_prog", so it can be a program name with args.
7833 set dummy $ac_prog; ac_word=$2
7834 echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 if test -n "$ac_ct_CXX"; then
7840 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_CXX="$ac_prog"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7853 done
7854 done
7858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7859 if test -n "$ac_ct_CXX"; then
7860 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7861 echo "${ECHO_T}$ac_ct_CXX" >&6
7862 else
7863 echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6
7867 test -n "$ac_ct_CXX" && break
7868 done
7869 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7871 CXX=$ac_ct_CXX
7875 # Provide some information about the compiler.
7876 echo "$as_me:$LINENO:" \
7877 "checking for C++ compiler version" >&5
7878 ac_compiler=`set X $ac_compile; echo $2`
7879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7880 (eval $ac_compiler --version </dev/null >&5) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }
7884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7885 (eval $ac_compiler -v </dev/null >&5) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }
7889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7890 (eval $ac_compiler -V </dev/null >&5) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }
7895 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7896 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7897 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7908 main ()
7910 #ifndef __GNUC__
7911 choke me
7912 #endif
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_cxx_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_compiler_gnu=yes
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 ac_compiler_gnu=no
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7951 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7952 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7953 GXX=`test $ac_compiler_gnu = yes && echo yes`
7954 ac_test_CXXFLAGS=${CXXFLAGS+set}
7955 ac_save_CXXFLAGS=$CXXFLAGS
7956 CXXFLAGS="-g"
7957 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7958 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7959 if test "${ac_cv_prog_cxx_g+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7970 main ()
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_cxx_werror_flag"
7987 || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_cv_prog_cxx_g=yes
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_cv_prog_cxx_g=no
8006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8009 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8010 if test "$ac_test_CXXFLAGS" = set; then
8011 CXXFLAGS=$ac_save_CXXFLAGS
8012 elif test $ac_cv_prog_cxx_g = yes; then
8013 if test "$GXX" = yes; then
8014 CXXFLAGS="-g -O2"
8015 else
8016 CXXFLAGS="-g"
8018 else
8019 if test "$GXX" = yes; then
8020 CXXFLAGS="-O2"
8021 else
8022 CXXFLAGS=
8025 for ac_declaration in \
8026 '' \
8027 'extern "C" void std::exit (int) throw (); using std::exit;' \
8028 'extern "C" void std::exit (int); using std::exit;' \
8029 'extern "C" void exit (int) throw ();' \
8030 'extern "C" void exit (int);' \
8031 'void exit (int);'
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_declaration
8040 #include <stdlib.h>
8042 main ()
8044 exit (42);
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051 (eval $ac_compile) 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_cxx_werror_flag"
8059 || test ! -s conftest.err'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; } &&
8065 { ac_try='test -s conftest.$ac_objext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 continue
8078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_declaration
8087 main ()
8089 exit (42);
8091 return 0;
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096 (eval $ac_compile) 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -z "$ac_cxx_werror_flag"
8104 || test ! -s conftest.err'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; } &&
8110 { ac_try='test -s conftest.$ac_objext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 break
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123 done
8124 rm -f conftest*
8125 if test -n "$ac_declaration"; then
8126 echo '#ifdef __cplusplus' >>confdefs.h
8127 echo $ac_declaration >>confdefs.h
8128 echo '#endif' >>confdefs.h
8131 ac_ext=c
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8138 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8139 (test "X$CXX" != "Xg++"))) ; then
8140 ac_ext=cc
8141 ac_cpp='$CXXCPP $CPPFLAGS'
8142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8145 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8146 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8147 if test -z "$CXXCPP"; then
8148 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151 # Double quotes because CXXCPP needs to be expanded
8152 for CXXCPP in "$CXX -E" "/lib/cpp"
8154 ac_preproc_ok=false
8155 for ac_cxx_preproc_warn_flag in '' yes
8157 # Use a header file that comes with gcc, so configuring glibc
8158 # with a fresh cross-compiler works.
8159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8160 # <limits.h> exists even on freestanding compilers.
8161 # On the NeXT, cc -E runs the code through the compiler's parser,
8162 # not just through cpp. "Syntax error" is here to catch this case.
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #ifdef __STDC__
8170 # include <limits.h>
8171 #else
8172 # include <assert.h>
8173 #endif
8174 Syntax error
8175 _ACEOF
8176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } >/dev/null; then
8184 if test -s conftest.err; then
8185 ac_cpp_err=$ac_cxx_preproc_warn_flag
8186 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8187 else
8188 ac_cpp_err=
8190 else
8191 ac_cpp_err=yes
8193 if test -z "$ac_cpp_err"; then
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 # Broken: fails on valid input.
8200 continue
8202 rm -f conftest.err conftest.$ac_ext
8204 # OK, works on sane cases. Now check whether non-existent headers
8205 # can be detected and how.
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 <ac_nonexistent.h>
8213 _ACEOF
8214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } >/dev/null; then
8222 if test -s conftest.err; then
8223 ac_cpp_err=$ac_cxx_preproc_warn_flag
8224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8225 else
8226 ac_cpp_err=
8228 else
8229 ac_cpp_err=yes
8231 if test -z "$ac_cpp_err"; then
8232 # Broken: success on invalid input.
8233 continue
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 # Passes both tests.
8239 ac_preproc_ok=:
8240 break
8242 rm -f conftest.err conftest.$ac_ext
8244 done
8245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8246 rm -f conftest.err conftest.$ac_ext
8247 if $ac_preproc_ok; then
8248 break
8251 done
8252 ac_cv_prog_CXXCPP=$CXXCPP
8255 CXXCPP=$ac_cv_prog_CXXCPP
8256 else
8257 ac_cv_prog_CXXCPP=$CXXCPP
8259 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8260 echo "${ECHO_T}$CXXCPP" >&6
8261 ac_preproc_ok=false
8262 for ac_cxx_preproc_warn_flag in '' yes
8264 # Use a header file that comes with gcc, so configuring glibc
8265 # with a fresh cross-compiler works.
8266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 # <limits.h> exists even on freestanding compilers.
8268 # On the NeXT, cc -E runs the code through the compiler's parser,
8269 # not just through cpp. "Syntax error" is here to catch this case.
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #ifdef __STDC__
8277 # include <limits.h>
8278 #else
8279 # include <assert.h>
8280 #endif
8281 Syntax error
8282 _ACEOF
8283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } >/dev/null; then
8291 if test -s conftest.err; then
8292 ac_cpp_err=$ac_cxx_preproc_warn_flag
8293 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8294 else
8295 ac_cpp_err=
8297 else
8298 ac_cpp_err=yes
8300 if test -z "$ac_cpp_err"; then
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 # Broken: fails on valid input.
8307 continue
8309 rm -f conftest.err conftest.$ac_ext
8311 # OK, works on sane cases. Now check whether non-existent headers
8312 # can be detected and how.
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <ac_nonexistent.h>
8320 _ACEOF
8321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } >/dev/null; then
8329 if test -s conftest.err; then
8330 ac_cpp_err=$ac_cxx_preproc_warn_flag
8331 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8332 else
8333 ac_cpp_err=
8335 else
8336 ac_cpp_err=yes
8338 if test -z "$ac_cpp_err"; then
8339 # Broken: success on invalid input.
8340 continue
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 # Passes both tests.
8346 ac_preproc_ok=:
8347 break
8349 rm -f conftest.err conftest.$ac_ext
8351 done
8352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8353 rm -f conftest.err conftest.$ac_ext
8354 if $ac_preproc_ok; then
8356 else
8357 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8358 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8359 _lt_caught_CXX_error=yes; }
8362 ac_ext=c
8363 ac_cpp='$CPP $CPPFLAGS'
8364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368 else
8369 _lt_caught_CXX_error=yes
8376 # This can be used to rebuild libtool when needed
8377 LIBTOOL_DEPS="$ltmain"
8379 # Always use our own libtool.
8380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8406 test -z "$LN_S" && LN_S="ln -s"
8421 if test -n "${ZSH_VERSION+set}" ; then
8422 setopt NO_GLOB_SUBST
8425 echo "$as_me:$LINENO: checking for objdir" >&5
8426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8427 if test "${lt_cv_objdir+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 rm -f .libs 2>/dev/null
8431 mkdir .libs 2>/dev/null
8432 if test -d .libs; then
8433 lt_cv_objdir=.libs
8434 else
8435 # MS-DOS does not allow filenames that begin with a dot.
8436 lt_cv_objdir=_libs
8438 rmdir .libs 2>/dev/null
8440 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8441 echo "${ECHO_T}$lt_cv_objdir" >&6
8442 objdir=$lt_cv_objdir
8448 cat >>confdefs.h <<_ACEOF
8449 #define LT_OBJDIR "$lt_cv_objdir/"
8450 _ACEOF
8468 case $host_os in
8469 aix3*)
8470 # AIX sometimes has problems with the GCC collect2 program. For some
8471 # reason, if we set the COLLECT_NAMES environment variable, the problems
8472 # vanish in a puff of smoke.
8473 if test "X${COLLECT_NAMES+set}" != Xset; then
8474 COLLECT_NAMES=
8475 export COLLECT_NAMES
8478 esac
8480 # Sed substitution that helps us do robust quoting. It backslashifies
8481 # metacharacters that are still active within double-quoted strings.
8482 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8484 # Same as above, but do not quote variable references.
8485 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8487 # Sed substitution to delay expansion of an escaped shell variable in a
8488 # double_quote_subst'ed string.
8489 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8491 # Sed substitution to delay expansion of an escaped single quote.
8492 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8494 # Sed substitution to avoid accidental globbing in evaled expressions
8495 no_glob_subst='s/\*/\\\*/g'
8497 # Global variables:
8498 ofile=libtool
8499 can_build_shared=yes
8501 # All known linkers require a `.a' archive for static linking (except MSVC,
8502 # which needs '.lib').
8503 libext=a
8505 with_gnu_ld="$lt_cv_prog_gnu_ld"
8507 old_CC="$CC"
8508 old_CFLAGS="$CFLAGS"
8510 # Set sane defaults for various variables
8511 test -z "$CC" && CC=cc
8512 test -z "$LTCC" && LTCC=$CC
8513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8514 test -z "$LD" && LD=ld
8515 test -z "$ac_objext" && ac_objext=o
8517 for cc_temp in $compiler""; do
8518 case $cc_temp in
8519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8521 \-*) ;;
8522 *) break;;
8523 esac
8524 done
8525 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8528 # Only perform the check for file, if the check method requires it
8529 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8530 case $deplibs_check_method in
8531 file_magic*)
8532 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8533 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8534 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8535 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538 case $MAGIC_CMD in
8539 [\\/*] | ?:[\\/]*)
8540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8543 lt_save_MAGIC_CMD="$MAGIC_CMD"
8544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8545 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8546 for ac_dir in $ac_dummy; do
8547 IFS="$lt_save_ifs"
8548 test -z "$ac_dir" && ac_dir=.
8549 if test -f $ac_dir/${ac_tool_prefix}file; then
8550 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8551 if test -n "$file_magic_test_file"; then
8552 case $deplibs_check_method in
8553 "file_magic "*)
8554 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8556 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8557 $EGREP "$file_magic_regex" > /dev/null; then
8559 else
8560 cat <<_LT_EOF 1>&2
8562 *** Warning: the command libtool uses to detect shared libraries,
8563 *** $file_magic_cmd, produces output that libtool cannot recognize.
8564 *** The result is that libtool may fail to recognize shared libraries
8565 *** as such. This will affect the creation of libtool libraries that
8566 *** depend on shared libraries, but programs linked with such libtool
8567 *** libraries will work regardless of this problem. Nevertheless, you
8568 *** may want to report the problem to your system manager and/or to
8569 *** bug-libtool@gnu.org
8571 _LT_EOF
8572 fi ;;
8573 esac
8575 break
8577 done
8578 IFS="$lt_save_ifs"
8579 MAGIC_CMD="$lt_save_MAGIC_CMD"
8581 esac
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if test -n "$MAGIC_CMD"; then
8586 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8587 echo "${ECHO_T}$MAGIC_CMD" >&6
8588 else
8589 echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8597 if test -z "$lt_cv_path_MAGIC_CMD"; then
8598 if test -n "$ac_tool_prefix"; then
8599 echo "$as_me:$LINENO: checking for file" >&5
8600 echo $ECHO_N "checking for file... $ECHO_C" >&6
8601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604 case $MAGIC_CMD in
8605 [\\/*] | ?:[\\/]*)
8606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8609 lt_save_MAGIC_CMD="$MAGIC_CMD"
8610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8612 for ac_dir in $ac_dummy; do
8613 IFS="$lt_save_ifs"
8614 test -z "$ac_dir" && ac_dir=.
8615 if test -f $ac_dir/file; then
8616 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8617 if test -n "$file_magic_test_file"; then
8618 case $deplibs_check_method in
8619 "file_magic "*)
8620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8623 $EGREP "$file_magic_regex" > /dev/null; then
8625 else
8626 cat <<_LT_EOF 1>&2
8628 *** Warning: the command libtool uses to detect shared libraries,
8629 *** $file_magic_cmd, produces output that libtool cannot recognize.
8630 *** The result is that libtool may fail to recognize shared libraries
8631 *** as such. This will affect the creation of libtool libraries that
8632 *** depend on shared libraries, but programs linked with such libtool
8633 *** libraries will work regardless of this problem. Nevertheless, you
8634 *** may want to report the problem to your system manager and/or to
8635 *** bug-libtool@gnu.org
8637 _LT_EOF
8638 fi ;;
8639 esac
8641 break
8643 done
8644 IFS="$lt_save_ifs"
8645 MAGIC_CMD="$lt_save_MAGIC_CMD"
8647 esac
8650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8651 if test -n "$MAGIC_CMD"; then
8652 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8653 echo "${ECHO_T}$MAGIC_CMD" >&6
8654 else
8655 echo "$as_me:$LINENO: result: no" >&5
8656 echo "${ECHO_T}no" >&6
8660 else
8661 MAGIC_CMD=:
8667 esac
8669 # Use C for the default configuration in the libtool script
8671 lt_save_CC="$CC"
8672 ac_ext=c
8673 ac_cpp='$CPP $CPPFLAGS'
8674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679 # Source file extension for C test sources.
8680 ac_ext=c
8682 # Object file extension for compiled C test sources.
8683 objext=o
8684 objext=$objext
8686 # Code to be used in simple compile tests
8687 lt_simple_compile_test_code="int some_variable = 0;"
8689 # Code to be used in simple link tests
8690 lt_simple_link_test_code='int main(){return(0);}'
8698 # If no C compiler was specified, use CC.
8699 LTCC=${LTCC-"$CC"}
8701 # If no C compiler flags were specified, use CFLAGS.
8702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8704 # Allow CC to be a program name with arguments.
8705 compiler=$CC
8707 # Save the default compiler, since it gets overwritten when the other
8708 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8709 compiler_DEFAULT=$CC
8711 # save warnings/boilerplate of simple test code
8712 ac_outfile=conftest.$ac_objext
8713 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8715 _lt_compiler_boilerplate=`cat conftest.err`
8716 $RM conftest*
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8721 _lt_linker_boilerplate=`cat conftest.err`
8722 $RM conftest*
8725 ## CAVEAT EMPTOR:
8726 ## There is no encapsulation within the following macros, do not change
8727 ## the running order or otherwise move them around unless you know exactly
8728 ## what you are doing...
8729 if test -n "$compiler"; then
8731 lt_prog_compiler_no_builtin_flag=
8733 if test "$GCC" = yes; then
8734 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8736 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8737 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8738 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 lt_cv_prog_compiler_rtti_exceptions=no
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744 lt_compiler_flag="-fno-rtti -fno-exceptions"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 # The option is referenced via a variable to avoid confusing sed.
8750 lt_compile=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:8754: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>conftest.err)
8756 ac_status=$?
8757 cat conftest.err >&5
8758 echo "$as_me:8758: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s "$ac_outfile"; then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings other than the usual output.
8762 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_rtti_exceptions=yes
8768 $RM conftest*
8771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8772 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8774 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8775 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8776 else
8787 lt_prog_compiler_wl=
8788 lt_prog_compiler_pic=
8789 lt_prog_compiler_static=
8791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8794 if test "$GCC" = yes; then
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_static='-static'
8798 case $host_os in
8799 aix*)
8800 # All AIX code is PIC.
8801 if test "$host_cpu" = ia64; then
8802 # AIX 5 now supports IA64 processor
8803 lt_prog_compiler_static='-Bstatic'
8807 amigaos*)
8808 if test "$host_cpu" = m68k; then
8809 # FIXME: we need at least 68020 code to build shared libraries, but
8810 # adding the `-m68020' flag to GCC prevents building anything better,
8811 # like `-m68040'.
8812 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8816 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8817 # PIC is the default for these OSes.
8820 mingw* | cygwin* | pw32* | os2*)
8821 # This hack is so that the source file can tell whether it is being
8822 # built for inclusion in a dll (and should export symbols for example).
8823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8824 # (--disable-auto-import) libraries
8825 lt_prog_compiler_pic='-DDLL_EXPORT'
8828 darwin* | rhapsody*)
8829 # PIC is the default on this platform
8830 # Common symbols not allowed in MH_DYLIB files
8831 lt_prog_compiler_pic='-fno-common'
8834 hpux*)
8835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 # not for PA HP-UX.
8837 case $host_cpu in
8838 hppa*64*|ia64*)
8839 # +Z the default
8842 lt_prog_compiler_pic='-fPIC'
8844 esac
8847 interix[3-9]*)
8848 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8849 # Instead, we relocate shared libraries at runtime.
8852 msdosdjgpp*)
8853 # Just because we use GCC doesn't mean we suddenly get shared libraries
8854 # on systems that don't support them.
8855 lt_prog_compiler_can_build_shared=no
8856 enable_shared=no
8859 *nto* | *qnx*)
8860 # QNX uses GNU C++, but need to define -shared option too, otherwise
8861 # it will coredump.
8862 lt_prog_compiler_pic='-fPIC -shared'
8865 sysv4*MP*)
8866 if test -d /usr/nec; then
8867 lt_prog_compiler_pic=-Kconform_pic
8872 lt_prog_compiler_pic='-fPIC'
8874 esac
8875 else
8876 # PORTME Check for flag to pass linker flags through the system compiler.
8877 case $host_os in
8878 aix*)
8879 lt_prog_compiler_wl='-Wl,'
8880 if test "$host_cpu" = ia64; then
8881 # AIX 5 now supports IA64 processor
8882 lt_prog_compiler_static='-Bstatic'
8883 else
8884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8887 darwin*)
8888 # PIC is the default on this platform
8889 # Common symbols not allowed in MH_DYLIB files
8890 case $cc_basename in
8891 xlc*)
8892 lt_prog_compiler_pic='-qnocommon'
8893 lt_prog_compiler_wl='-Wl,'
8895 esac
8898 mingw* | cygwin* | pw32* | os2*)
8899 # This hack is so that the source file can tell whether it is being
8900 # built for inclusion in a dll (and should export symbols for example).
8901 lt_prog_compiler_pic='-DDLL_EXPORT'
8904 hpux9* | hpux10* | hpux11*)
8905 lt_prog_compiler_wl='-Wl,'
8906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8907 # not for PA HP-UX.
8908 case $host_cpu in
8909 hppa*64*|ia64*)
8910 # +Z the default
8913 lt_prog_compiler_pic='+Z'
8915 esac
8916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8917 lt_prog_compiler_static='${wl}-a ${wl}archive'
8920 irix5* | irix6* | nonstopux*)
8921 lt_prog_compiler_wl='-Wl,'
8922 # PIC (with -KPIC) is the default.
8923 lt_prog_compiler_static='-non_shared'
8926 linux* | k*bsd*-gnu)
8927 case $cc_basename in
8928 icc* | ecc*)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-static'
8933 pgcc* | pgf77* | pgf90* | pgf95*)
8934 # Portland Group compilers (*not* the Pentium gcc compiler,
8935 # which looks to be a dead project)
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_pic='-fpic'
8938 lt_prog_compiler_static='-Bstatic'
8940 ccc*)
8941 lt_prog_compiler_wl='-Wl,'
8942 # All Alpha code is PIC.
8943 lt_prog_compiler_static='-non_shared'
8946 case `$CC -V 2>&1 | sed 5q` in
8947 *Sun\ C*)
8948 # Sun C 5.9
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_wl='-Wl,'
8953 *Sun\ F*)
8954 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8955 lt_prog_compiler_pic='-KPIC'
8956 lt_prog_compiler_static='-Bstatic'
8957 lt_prog_compiler_wl=''
8959 esac
8961 esac
8964 newsos6)
8965 lt_prog_compiler_pic='-KPIC'
8966 lt_prog_compiler_static='-Bstatic'
8969 *nto* | *qnx*)
8970 # QNX uses GNU C++, but need to define -shared option too, otherwise
8971 # it will coredump.
8972 lt_prog_compiler_pic='-fPIC -shared'
8975 osf3* | osf4* | osf5*)
8976 lt_prog_compiler_wl='-Wl,'
8977 # All OSF/1 code is PIC.
8978 lt_prog_compiler_static='-non_shared'
8981 rdos*)
8982 lt_prog_compiler_static='-non_shared'
8985 solaris*)
8986 lt_prog_compiler_pic='-KPIC'
8987 lt_prog_compiler_static='-Bstatic'
8988 case $cc_basename in
8989 f77* | f90* | f95*)
8990 lt_prog_compiler_wl='-Qoption ld ';;
8992 lt_prog_compiler_wl='-Wl,';;
8993 esac
8996 sunos4*)
8997 lt_prog_compiler_wl='-Qoption ld '
8998 lt_prog_compiler_pic='-PIC'
8999 lt_prog_compiler_static='-Bstatic'
9002 sysv4 | sysv4.2uw2* | sysv4.3*)
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-KPIC'
9005 lt_prog_compiler_static='-Bstatic'
9008 sysv4*MP*)
9009 if test -d /usr/nec ;then
9010 lt_prog_compiler_pic='-Kconform_pic'
9011 lt_prog_compiler_static='-Bstatic'
9015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-KPIC'
9018 lt_prog_compiler_static='-Bstatic'
9021 unicos*)
9022 lt_prog_compiler_wl='-Wl,'
9023 lt_prog_compiler_can_build_shared=no
9026 uts4*)
9027 lt_prog_compiler_pic='-pic'
9028 lt_prog_compiler_static='-Bstatic'
9032 lt_prog_compiler_can_build_shared=no
9034 esac
9037 case $host_os in
9038 # For platforms which do not support PIC, -DPIC is meaningless:
9039 *djgpp*)
9040 lt_prog_compiler_pic=
9043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9045 esac
9046 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9047 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9055 # Check to make sure the PIC flag actually works.
9057 if test -n "$lt_prog_compiler_pic"; then
9058 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9059 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9060 if test "${lt_prog_compiler_pic_works+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 lt_prog_compiler_pic_works=no
9064 ac_outfile=conftest.$ac_objext
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 # The option is referenced via a variable to avoid confusing sed.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:9076: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>conftest.err)
9078 ac_status=$?
9079 cat conftest.err >&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s "$ac_outfile"; then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings other than the usual output.
9084 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_prog_compiler_pic_works=yes
9090 $RM conftest*
9093 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9094 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9096 if test x"$lt_prog_compiler_pic_works" = xyes; then
9097 case $lt_prog_compiler_pic in
9098 "" | " "*) ;;
9099 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9100 esac
9101 else
9102 lt_prog_compiler_pic=
9103 lt_prog_compiler_can_build_shared=no
9114 # Check to make sure the static flag actually works.
9116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9117 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9119 if test "${lt_prog_compiler_static_works+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 lt_prog_compiler_static_works=no
9123 save_LDFLAGS="$LDFLAGS"
9124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9127 # The linker can only warn and ignore the option if not recognized
9128 # So say no if there are warnings
9129 if test -s conftest.err; then
9130 # Append any errors to the config.log.
9131 cat conftest.err 1>&5
9132 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134 if diff conftest.exp conftest.er2 >/dev/null; then
9135 lt_prog_compiler_static_works=yes
9137 else
9138 lt_prog_compiler_static_works=yes
9141 $RM conftest*
9142 LDFLAGS="$save_LDFLAGS"
9145 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9146 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9148 if test x"$lt_prog_compiler_static_works" = xyes; then
9150 else
9151 lt_prog_compiler_static=
9160 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 lt_cv_prog_compiler_c_o=no
9166 $RM -r conftest 2>/dev/null
9167 mkdir conftest
9168 cd conftest
9169 mkdir out
9170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9172 lt_compiler_flag="-o out/conftest2.$ac_objext"
9173 # Insert the option either (1) after the last *FLAGS variable, or
9174 # (2) before a word containing "conftest.", or (3) at the end.
9175 # Note that $ac_compile itself does not contain backslashes and begins
9176 # with a dollar sign (not a hyphen), so the echo should work correctly.
9177 lt_compile=`echo "$ac_compile" | $SED \
9178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9180 -e 's:$: $lt_compiler_flag:'`
9181 (eval echo "\"\$as_me:9181: $lt_compile\"" >&5)
9182 (eval "$lt_compile" 2>out/conftest.err)
9183 ac_status=$?
9184 cat out/conftest.err >&5
9185 echo "$as_me:9185: \$? = $ac_status" >&5
9186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9187 then
9188 # The compiler can only warn and ignore the option if not recognized
9189 # So say no if there are warnings
9190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9193 lt_cv_prog_compiler_c_o=yes
9196 chmod u+w . 2>&5
9197 $RM conftest*
9198 # SGI C++ compiler will create directory out/ii_files/ for
9199 # template instantiation
9200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9201 $RM out/* && rmdir out
9202 cd ..
9203 $RM -r conftest
9204 $RM conftest*
9207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9215 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9216 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9217 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 lt_cv_prog_compiler_c_o=no
9221 $RM -r conftest 2>/dev/null
9222 mkdir conftest
9223 cd conftest
9224 mkdir out
9225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9227 lt_compiler_flag="-o out/conftest2.$ac_objext"
9228 # Insert the option either (1) after the last *FLAGS variable, or
9229 # (2) before a word containing "conftest.", or (3) at the end.
9230 # Note that $ac_compile itself does not contain backslashes and begins
9231 # with a dollar sign (not a hyphen), so the echo should work correctly.
9232 lt_compile=`echo "$ac_compile" | $SED \
9233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9235 -e 's:$: $lt_compiler_flag:'`
9236 (eval echo "\"\$as_me:9236: $lt_compile\"" >&5)
9237 (eval "$lt_compile" 2>out/conftest.err)
9238 ac_status=$?
9239 cat out/conftest.err >&5
9240 echo "$as_me:9240: \$? = $ac_status" >&5
9241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9242 then
9243 # The compiler can only warn and ignore the option if not recognized
9244 # So say no if there are warnings
9245 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9248 lt_cv_prog_compiler_c_o=yes
9251 chmod u+w . 2>&5
9252 $RM conftest*
9253 # SGI C++ compiler will create directory out/ii_files/ for
9254 # template instantiation
9255 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9256 $RM out/* && rmdir out
9257 cd ..
9258 $RM -r conftest
9259 $RM conftest*
9262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9263 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9268 hard_links="nottested"
9269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9270 # do not overwrite the value of need_locks provided by the user
9271 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9272 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9273 hard_links=yes
9274 $RM conftest*
9275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276 touch conftest.a
9277 ln conftest.a conftest.b 2>&5 || hard_links=no
9278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9279 echo "$as_me:$LINENO: result: $hard_links" >&5
9280 echo "${ECHO_T}$hard_links" >&6
9281 if test "$hard_links" = no; then
9282 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9283 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9284 need_locks=warn
9286 else
9287 need_locks=no
9295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9298 runpath_var=
9299 allow_undefined_flag=
9300 always_export_symbols=no
9301 archive_cmds=
9302 archive_expsym_cmds=
9303 compiler_needs_object=no
9304 enable_shared_with_static_runtimes=no
9305 export_dynamic_flag_spec=
9306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9307 hardcode_automatic=no
9308 hardcode_direct=no
9309 hardcode_direct_absolute=no
9310 hardcode_libdir_flag_spec=
9311 hardcode_libdir_flag_spec_ld=
9312 hardcode_libdir_separator=
9313 hardcode_minus_L=no
9314 hardcode_shlibpath_var=unsupported
9315 inherit_rpath=no
9316 link_all_deplibs=unknown
9317 module_cmds=
9318 module_expsym_cmds=
9319 old_archive_from_new_cmds=
9320 old_archive_from_expsyms_cmds=
9321 thread_safe_flag_spec=
9322 whole_archive_flag_spec=
9323 # include_expsyms should be a list of space-separated symbols to be *always*
9324 # included in the symbol list
9325 include_expsyms=
9326 # exclude_expsyms can be an extended regexp of symbols to exclude
9327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9329 # as well as any symbol that contains `d'.
9330 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9332 # platforms (ab)use it in PIC code, but their linkers get confused if
9333 # the symbol is explicitly referenced. Since portable code cannot
9334 # rely on this symbol name, it's probably fine to never include it in
9335 # preloaded symbol tables.
9336 extract_expsyms_cmds=
9338 case $host_os in
9339 cygwin* | mingw* | pw32*)
9340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 if test "$GCC" != yes; then
9344 with_gnu_ld=no
9347 interix*)
9348 # we just hope/assume this is gcc and not c89 (= MSVC++)
9349 with_gnu_ld=yes
9351 openbsd*)
9352 with_gnu_ld=no
9354 esac
9356 ld_shlibs=yes
9357 if test "$with_gnu_ld" = yes; then
9358 # If archive_cmds runs LD, not CC, wlarc should be empty
9359 wlarc='${wl}'
9361 # Set some defaults for GNU ld with shared library support. These
9362 # are reset later if shared libraries are not supported. Putting them
9363 # here allows them to be overridden if necessary.
9364 runpath_var=LD_RUN_PATH
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 export_dynamic_flag_spec='${wl}--export-dynamic'
9367 # ancient GNU ld didn't support --whole-archive et. al.
9368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9369 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9370 else
9371 whole_archive_flag_spec=
9373 supports_anon_versioning=no
9374 case `$LD -v 2>&1` in
9375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9378 *\ 2.11.*) ;; # other 2.11 versions
9379 *) supports_anon_versioning=yes ;;
9380 esac
9382 # See if GNU ld supports shared libraries.
9383 case $host_os in
9384 aix[3-9]*)
9385 # On AIX/PPC, the GNU linker is very broken
9386 if test "$host_cpu" != ia64; then
9387 ld_shlibs=no
9388 cat <<_LT_EOF 1>&2
9390 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9391 *** to be unable to reliably create shared libraries on AIX.
9392 *** Therefore, libtool is disabling shared libraries support. If you
9393 *** really care for shared libraries, you may want to modify your PATH
9394 *** so that a non-GNU linker is found, and then restart.
9396 _LT_EOF
9400 amigaos*)
9401 if test "$host_cpu" = m68k; then
9402 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)'
9403 hardcode_libdir_flag_spec='-L$libdir'
9404 hardcode_minus_L=yes
9407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9408 # that the semantics of dynamic libraries on AmigaOS, at least up
9409 # to version 4, is to share data among multiple programs linked
9410 # with the same dynamic library. Since this doesn't match the
9411 # behavior of shared libraries on other platforms, we can't use
9412 # them.
9413 ld_shlibs=no
9416 beos*)
9417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9418 allow_undefined_flag=unsupported
9419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9420 # support --undefined. This deserves some investigation. FIXME
9421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 else
9423 ld_shlibs=no
9427 cygwin* | mingw* | pw32*)
9428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9429 # as there is no search path for DLLs.
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 allow_undefined_flag=unsupported
9432 always_export_symbols=no
9433 enable_shared_with_static_runtimes=yes
9434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9438 # If the export-symbols file already is a .def file (1st line
9439 # is EXPORTS), use it as is; otherwise, prepend...
9440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9441 cp $export_symbols $output_objdir/$soname.def;
9442 else
9443 echo EXPORTS > $output_objdir/$soname.def;
9444 cat $export_symbols >> $output_objdir/$soname.def;
9446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9447 else
9448 ld_shlibs=no
9452 interix[3-9]*)
9453 hardcode_direct=no
9454 hardcode_shlibpath_var=no
9455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9456 export_dynamic_flag_spec='${wl}-E'
9457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9458 # Instead, shared libraries are loaded at an image base (0x10000000 by
9459 # default) and relocated if they conflict, which is a slow very memory
9460 # consuming and fragmenting process. To avoid this, we pick a random,
9461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9464 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'
9467 gnu* | linux* | tpf* | k*bsd*-gnu)
9468 tmp_diet=no
9469 if test "$host_os" = linux-dietlibc; then
9470 case $cc_basename in
9471 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9472 esac
9474 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9475 && test "$tmp_diet" = no
9476 then
9477 tmp_addflag=
9478 case $cc_basename,$host_cpu in
9479 pgcc*) # Portland Group C compiler
9480 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'
9481 tmp_addflag=' $pic_flag'
9483 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9484 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'
9485 tmp_addflag=' $pic_flag -Mnomain' ;;
9486 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9487 tmp_addflag=' -i_dynamic' ;;
9488 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9489 tmp_addflag=' -i_dynamic -nofor_main' ;;
9490 ifc* | ifort*) # Intel Fortran compiler
9491 tmp_addflag=' -nofor_main' ;;
9492 esac
9493 case `$CC -V 2>&1 | sed 5q` in
9494 *Sun\ C*) # Sun C 5.9
9495 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'
9496 compiler_needs_object=yes
9497 tmp_sharedflag='-G' ;;
9498 *Sun\ F*) # Sun Fortran 8.3
9499 tmp_sharedflag='-G' ;;
9501 tmp_sharedflag='-shared' ;;
9502 esac
9503 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 if test "x$supports_anon_versioning" = xyes; then
9506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9508 echo "local: *; };" >> $output_objdir/$libname.ver~
9509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9511 else
9512 ld_shlibs=no
9516 netbsd*)
9517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9519 wlarc=
9520 else
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526 solaris*)
9527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9528 ld_shlibs=no
9529 cat <<_LT_EOF 1>&2
9531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9532 *** create shared libraries on Solaris systems. Therefore, libtool
9533 *** is disabling shared libraries support. We urge you to upgrade GNU
9534 *** binutils to release 2.9.1 or newer. Another option is to modify
9535 *** your PATH or compiler configuration so that the native linker is
9536 *** used, and then restart.
9538 _LT_EOF
9539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9542 else
9543 ld_shlibs=no
9547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9548 case `$LD -v 2>&1` in
9549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9550 ld_shlibs=no
9551 cat <<_LT_EOF 1>&2
9553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9554 *** reliably create shared libraries on SCO systems. Therefore, libtool
9555 *** is disabling shared libraries support. We urge you to upgrade GNU
9556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9557 *** your PATH or compiler configuration so that the native linker is
9558 *** used, and then restart.
9560 _LT_EOF
9563 # For security reasons, it is highly recommended that you always
9564 # use absolute paths for naming shared libraries, and exclude the
9565 # DT_RUNPATH tag from executables and libraries. But doing so
9566 # requires that you compile everything twice, which is a pain.
9567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9571 else
9572 ld_shlibs=no
9575 esac
9578 sunos4*)
9579 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 wlarc=
9581 hardcode_direct=yes
9582 hardcode_shlibpath_var=no
9586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9589 else
9590 ld_shlibs=no
9593 esac
9595 if test "$ld_shlibs" = no; then
9596 runpath_var=
9597 hardcode_libdir_flag_spec=
9598 export_dynamic_flag_spec=
9599 whole_archive_flag_spec=
9601 else
9602 # PORTME fill in a description of your system's linker (not GNU ld)
9603 case $host_os in
9604 aix3*)
9605 allow_undefined_flag=unsupported
9606 always_export_symbols=yes
9607 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'
9608 # Note: this linker hardcodes the directories in LIBPATH if there
9609 # are no directories specified by -L.
9610 hardcode_minus_L=yes
9611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9612 # Neither direct hardcoding nor static linking is supported with a
9613 # broken collect2.
9614 hardcode_direct=unsupported
9618 aix[4-9]*)
9619 if test "$host_cpu" = ia64; then
9620 # On IA64, the linker does run time linking by default, so we don't
9621 # have to do anything special.
9622 aix_use_runtimelinking=no
9623 exp_sym_flag='-Bexport'
9624 no_entry_flag=""
9625 else
9626 # If we're using GNU nm, then we don't want the "-C" option.
9627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9629 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'
9630 else
9631 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'
9633 aix_use_runtimelinking=no
9635 # Test if we are trying to use run time linking or normal
9636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9637 # need to do runtime linking.
9638 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9639 for ld_flag in $LDFLAGS; do
9640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9641 aix_use_runtimelinking=yes
9642 break
9644 done
9646 esac
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9658 archive_cmds=''
9659 hardcode_direct=yes
9660 hardcode_direct_absolute=yes
9661 hardcode_libdir_separator=':'
9662 link_all_deplibs=yes
9663 file_list_spec='${wl}-f,'
9665 if test "$GCC" = yes; then
9666 case $host_os in aix4.[012]|aix4.[012].*)
9667 # We only want to do this on AIX 4.2 and lower, the check
9668 # below for broken collect2 doesn't work under 4.3+
9669 collect2name=`${CC} -print-prog-name=collect2`
9670 if test -f "$collect2name" &&
9671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9672 then
9673 # We have reworked collect2
9675 else
9676 # We have old collect2
9677 hardcode_direct=unsupported
9678 # It fails to find uninstalled libraries when the uninstalled
9679 # path is not listed in the libpath. Setting hardcode_minus_L
9680 # to unsupported forces relinking
9681 hardcode_minus_L=yes
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_libdir_separator=
9686 esac
9687 shared_flag='-shared'
9688 if test "$aix_use_runtimelinking" = yes; then
9689 shared_flag="$shared_flag "'${wl}-G'
9691 else
9692 # not using gcc
9693 if test "$host_cpu" = ia64; then
9694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9695 # chokes on -Wl,-G. The following line is correct:
9696 shared_flag='-G'
9697 else
9698 if test "$aix_use_runtimelinking" = yes; then
9699 shared_flag='${wl}-G'
9700 else
9701 shared_flag='${wl}-bM:SRE'
9706 # It seems that -bexpall does not export symbols beginning with
9707 # underscore (_), so it is better to generate a list of symbols to export.
9708 always_export_symbols=yes
9709 if test "$aix_use_runtimelinking" = yes; then
9710 # Warning - without using the other runtime loading flags (-brtl),
9711 # -berok will link without error, but may produce a broken library.
9712 allow_undefined_flag='-berok'
9713 # Determine the default libpath from the value encoded in an
9714 # empty executable.
9715 if test x$gcc_no_link = xyes; then
9716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9718 { (exit 1); exit 1; }; }
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9728 main ()
9732 return 0;
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9758 lt_aix_libpath_sed='
9759 /Import File Strings/,/^$/ {
9760 /^0/ {
9761 s/^0 *\(.*\)$/\1/
9765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766 # Check for a 64-bit object if we didn't find anything.
9767 if test -z "$aix_libpath"; then
9768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9775 rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9780 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"
9781 else
9782 if test "$host_cpu" = ia64; then
9783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9784 allow_undefined_flag="-z nodefs"
9785 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"
9786 else
9787 # Determine the default libpath from the value encoded in an
9788 # empty executable.
9789 if test x$gcc_no_link = xyes; then
9790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9792 { (exit 1); exit 1; }; }
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9802 main ()
9806 return 0;
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811 (eval $ac_link) 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag"
9819 || test ! -s conftest.err'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; } &&
9825 { ac_try='test -s conftest$ac_exeext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9832 lt_aix_libpath_sed='
9833 /Import File Strings/,/^$/ {
9834 /^0/ {
9835 s/^0 *\(.*\)$/\1/
9839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9840 # Check for a 64-bit object if we didn't find anything.
9841 if test -z "$aix_libpath"; then
9842 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9849 rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854 # Warning - without using the other run time loading flags,
9855 # -berok will link without error, but may produce a broken library.
9856 no_undefined_flag=' ${wl}-bernotok'
9857 allow_undefined_flag=' ${wl}-berok'
9858 # Exported symbols can be pulled into shared objects from archives
9859 whole_archive_flag_spec='$convenience'
9860 archive_cmds_need_lc=yes
9861 # This is similar to how AIX traditionally builds its shared libraries.
9862 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'
9867 amigaos*)
9868 if test "$host_cpu" = m68k; then
9869 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)'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_minus_L=yes
9873 # see comment about different semantics on the GNU ld section
9874 ld_shlibs=no
9877 bsdi[45]*)
9878 export_dynamic_flag_spec=-rdynamic
9881 cygwin* | mingw* | pw32*)
9882 # When not using gcc, we currently assume that we are using
9883 # Microsoft Visual C++.
9884 # hardcode_libdir_flag_spec is actually meaningless, as there is
9885 # no search path for DLLs.
9886 hardcode_libdir_flag_spec=' '
9887 allow_undefined_flag=unsupported
9888 # Tell ltmain to make .lib files, not .a files.
9889 libext=lib
9890 # Tell ltmain to make .dll files, not .so files.
9891 shrext_cmds=".dll"
9892 # FIXME: Setting linknames here is a bad hack.
9893 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9894 # The linker will automatically build a .lib file if we build a DLL.
9895 old_archive_from_new_cmds='true'
9896 # FIXME: Should let the user specify the lib program.
9897 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9898 fix_srcfile_path='`cygpath -w "$srcfile"`'
9899 enable_shared_with_static_runtimes=yes
9902 darwin* | rhapsody*)
9903 case $host_os in
9904 rhapsody* | darwin1.[012])
9905 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9907 *) # Darwin 1.3 on
9908 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9909 10.[012])
9910 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9912 10.*)
9913 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9915 esac
9917 esac
9918 archive_cmds_need_lc=no
9919 hardcode_direct=no
9920 hardcode_automatic=yes
9921 hardcode_shlibpath_var=unsupported
9922 whole_archive_flag_spec=''
9923 link_all_deplibs=yes
9924 if test "$GCC" = yes ; then
9925 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 lt_cv_apple_cc_single_mod=no
9929 if test -z "${LT_MULTI_MODULE}"; then
9930 # By default we will add the -single_module flag. You can override
9931 # by either setting the environment variable LT_MULTI_MODULE
9932 # non-empty at configure time, or by adding -multi-module to the
9933 # link flags.
9934 echo "int foo(void){return 1;}" > conftest.c
9935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9936 -dynamiclib ${wl}-single_module conftest.c
9937 if test -f libconftest.dylib; then
9938 lt_cv_apple_cc_single_mod=yes
9939 rm libconftest.dylib
9941 rm conftest.$ac_ext
9945 output_verbose_link_cmd=echo
9946 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9947 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9948 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9949 else
9950 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9951 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9953 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9954 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9955 else
9956 case $cc_basename in
9957 xlc*)
9958 output_verbose_link_cmd=echo
9959 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9960 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9962 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9963 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9966 ld_shlibs=no
9968 esac
9972 dgux*)
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_shlibpath_var=no
9978 freebsd1*)
9979 ld_shlibs=no
9982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9983 # support. Future versions do this automatically, but an explicit c++rt0.o
9984 # does not break anything, and helps significantly (at the cost of a little
9985 # extra space).
9986 freebsd2.2*)
9987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9988 hardcode_libdir_flag_spec='-R$libdir'
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9994 freebsd2*)
9995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_direct=yes
9997 hardcode_minus_L=yes
9998 hardcode_shlibpath_var=no
10001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10002 freebsd* | dragonfly*)
10003 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10004 hardcode_libdir_flag_spec='-R$libdir'
10005 hardcode_direct=yes
10006 hardcode_shlibpath_var=no
10009 hpux9*)
10010 if test "$GCC" = yes; then
10011 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'
10012 else
10013 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'
10015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10016 hardcode_libdir_separator=:
10017 hardcode_direct=yes
10019 # hardcode_minus_L: Not really in the search PATH,
10020 # but as the default location of the library.
10021 hardcode_minus_L=yes
10022 export_dynamic_flag_spec='${wl}-E'
10025 hpux10*)
10026 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10027 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10028 else
10029 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10031 if test "$with_gnu_ld" = no; then
10032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10033 hardcode_libdir_flag_spec_ld='+b $libdir'
10034 hardcode_libdir_separator=:
10035 hardcode_direct=yes
10036 hardcode_direct_absolute=yes
10037 export_dynamic_flag_spec='${wl}-E'
10038 # hardcode_minus_L: Not really in the search PATH,
10039 # but as the default location of the library.
10040 hardcode_minus_L=yes
10044 hpux11*)
10045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10046 case $host_cpu in
10047 hppa*64*)
10048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 ia64*)
10051 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10056 esac
10057 else
10058 case $host_cpu in
10059 hppa*64*)
10060 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 ia64*)
10063 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 esac
10070 if test "$with_gnu_ld" = no; then
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
10074 case $host_cpu in
10075 hppa*64*|ia64*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10080 hardcode_direct=yes
10081 hardcode_direct_absolute=yes
10082 export_dynamic_flag_spec='${wl}-E'
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10088 esac
10092 irix5* | irix6* | nonstopux*)
10093 if test "$GCC" = yes; then
10094 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'
10095 # Try to use the -exported_symbol ld option, if it does not
10096 # work, assume that -exports_file does not work either and
10097 # implicitly export all symbols.
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10100 if test x$gcc_no_link = xyes; then
10101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10103 { (exit 1); exit 1; }; }
10105 cat >conftest.$ac_ext <<_ACEOF
10106 int foo(void) {}
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -z "$ac_c_werror_flag"
10118 || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 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'
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10137 rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LDFLAGS="$save_LDFLAGS"
10140 else
10141 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'
10142 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'
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10147 inherit_rpath=yes
10148 link_all_deplibs=yes
10151 netbsd*)
10152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10154 else
10155 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10157 hardcode_libdir_flag_spec='-R$libdir'
10158 hardcode_direct=yes
10159 hardcode_shlibpath_var=no
10162 newsos6)
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_direct=yes
10165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator=:
10167 hardcode_shlibpath_var=no
10170 *nto* | *qnx*)
10173 openbsd*)
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10176 hardcode_direct_absolute=yes
10177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10181 export_dynamic_flag_spec='${wl}-E'
10182 else
10183 case $host_os in
10184 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_libdir_flag_spec='-R$libdir'
10189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10192 esac
10196 os2*)
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_minus_L=yes
10199 allow_undefined_flag=unsupported
10200 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'
10201 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10204 osf3*)
10205 if test "$GCC" = yes; then
10206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10207 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'
10208 else
10209 allow_undefined_flag=' -expect_unresolved \*'
10210 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'
10212 archive_cmds_need_lc='no'
10213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214 hardcode_libdir_separator=:
10217 osf4* | osf5*) # as osf3* with the addition of -msym flag
10218 if test "$GCC" = yes; then
10219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10220 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'
10221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222 else
10223 allow_undefined_flag=' -expect_unresolved \*'
10224 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'
10225 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~
10226 $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'
10228 # Both c and cxx compiler support -rpath directly
10229 hardcode_libdir_flag_spec='-rpath $libdir'
10231 archive_cmds_need_lc='no'
10232 hardcode_libdir_separator=:
10235 solaris*)
10236 no_undefined_flag=' -z defs'
10237 if test "$GCC" = yes; then
10238 wlarc='${wl}'
10239 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10241 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10242 else
10243 case `$CC -V 2>&1` in
10244 *"Compilers 5.0"*)
10245 wlarc=''
10246 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10251 wlarc='${wl}'
10252 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10256 esac
10258 hardcode_libdir_flag_spec='-R$libdir'
10259 hardcode_shlibpath_var=no
10260 case $host_os in
10261 solaris2.[0-5] | solaris2.[0-5].*) ;;
10263 # The compiler driver will combine and reorder linker options,
10264 # but understands `-z linker_flag'. GCC discards it without `$wl',
10265 # but is careful enough not to reorder.
10266 # Supported since Solaris 2.6 (maybe 2.5.1?)
10267 if test "$GCC" = yes; then
10268 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10269 else
10270 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10273 esac
10274 link_all_deplibs=yes
10277 sunos4*)
10278 if test "x$host_vendor" = xsequent; then
10279 # Use $CC to link under sequent, because it throws in some extra .o
10280 # files that make .init and .fini sections work.
10281 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10282 else
10283 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10291 sysv4)
10292 case $host_vendor in
10293 sni)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_direct=yes # is this really true???
10297 siemens)
10298 ## LD is ld it makes a PLAMLIB
10299 ## CC just makes a GrossModule.
10300 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10301 reload_cmds='$CC -r -o $output$reload_objs'
10302 hardcode_direct=no
10304 motorola)
10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10308 esac
10309 runpath_var='LD_RUN_PATH'
10310 hardcode_shlibpath_var=no
10313 sysv4.3*)
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_shlibpath_var=no
10316 export_dynamic_flag_spec='-Bexport'
10319 sysv4*MP*)
10320 if test -d /usr/nec; then
10321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_shlibpath_var=no
10323 runpath_var=LD_RUN_PATH
10324 hardcode_runpath_var=yes
10325 ld_shlibs=yes
10329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10330 no_undefined_flag='${wl}-z,text'
10331 archive_cmds_need_lc=no
10332 hardcode_shlibpath_var=no
10333 runpath_var='LD_RUN_PATH'
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 sysv5* | sco3.2v5* | sco5v6*)
10345 # Note: We can NOT use -z defs as we might desire, because we do not
10346 # link with -lc, and that would cause any symbols used from libc to
10347 # always be unresolved, which means just about no library would
10348 # ever link correctly. If we're not using GNU ld we use -z text
10349 # though, which does catch some bad symbols but isn't as heavy-handed
10350 # as -z defs.
10351 no_undefined_flag='${wl}-z,text'
10352 allow_undefined_flag='${wl}-z,nodefs'
10353 archive_cmds_need_lc=no
10354 hardcode_shlibpath_var=no
10355 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10356 hardcode_libdir_separator=':'
10357 link_all_deplibs=yes
10358 export_dynamic_flag_spec='${wl}-Bexport'
10359 runpath_var='LD_RUN_PATH'
10361 if test "$GCC" = yes; then
10362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 else
10365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370 uts4*)
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_shlibpath_var=no
10377 ld_shlibs=no
10379 esac
10381 if test x$host_vendor = xsni; then
10382 case $host in
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384 export_dynamic_flag_spec='${wl}-Blargedynsym'
10386 esac
10390 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10391 echo "${ECHO_T}$ld_shlibs" >&6
10392 test "$ld_shlibs" = no && can_build_shared=no
10394 with_gnu_ld=$with_gnu_ld
10411 # Do we need to explicitly link libc?
10413 case "x$archive_cmds_need_lc" in
10414 x|xyes)
10415 # Assume -lc should be added
10416 archive_cmds_need_lc=yes
10418 if test "$enable_shared" = yes && test "$GCC" = yes; then
10419 case $archive_cmds in
10420 *'~'*)
10421 # FIXME: we may have to deal with multi-command sequences.
10423 '$CC '*)
10424 # Test whether the compiler implicitly links with -lc since on some
10425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10426 # to ld, don't add -lc before -lgcc.
10427 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10429 $RM conftest*
10430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433 (eval $ac_compile) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } 2>conftest.err; then
10437 soname=conftest
10438 lib=conftest
10439 libobjs=conftest.$ac_objext
10440 deplibs=
10441 wl=$lt_prog_compiler_wl
10442 pic_flag=$lt_prog_compiler_pic
10443 compiler_flags=-v
10444 linker_flags=-v
10445 verstring=
10446 output_objdir=.
10447 libname=conftest
10448 lt_save_allow_undefined_flag=$allow_undefined_flag
10449 allow_undefined_flag=
10450 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10451 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }
10455 then
10456 archive_cmds_need_lc=no
10457 else
10458 archive_cmds_need_lc=yes
10460 allow_undefined_flag=$lt_save_allow_undefined_flag
10461 else
10462 cat conftest.err 1>&5
10464 $RM conftest*
10465 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10466 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10468 esac
10471 esac
10629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10631 withGCC=$GCC
10632 if test "$withGCC" = yes; then
10633 case $host_os in
10634 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10635 *) lt_awk_arg="/^libraries:/" ;;
10636 esac
10637 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10638 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10639 # if the path contains ";" then we assume it to be the separator
10640 # otherwise default to the standard path separator (i.e. ":") - it is
10641 # assumed that no part of a normal pathname contains ";" but that should
10642 # okay in the real world where ";" in dirpaths is itself problematic.
10643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10644 else
10645 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10647 # Ok, now we have the path, separated by spaces, we can step through it
10648 # and add multilib dir if necessary.
10649 lt_tmp_lt_search_path_spec=
10650 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10651 for lt_sys_path in $lt_search_path_spec; do
10652 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10653 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10654 else
10655 test -d "$lt_sys_path" && \
10656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10658 done
10659 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10660 BEGIN {RS=" "; FS="/|\n";} {
10661 lt_foo="";
10662 lt_count=0;
10663 for (lt_i = NF; lt_i > 0; lt_i--) {
10664 if ($lt_i != "" && $lt_i != ".") {
10665 if ($lt_i == "..") {
10666 lt_count++;
10667 } else {
10668 if (lt_count == 0) {
10669 lt_foo="/" $lt_i lt_foo;
10670 } else {
10671 lt_count--;
10676 if (lt_foo != "") { lt_freq[lt_foo]++; }
10677 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10679 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10680 else
10681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10683 library_names_spec=
10684 libname_spec='lib$name'
10685 soname_spec=
10686 shrext_cmds=".so"
10687 postinstall_cmds=
10688 postuninstall_cmds=
10689 finish_cmds=
10690 finish_eval=
10691 shlibpath_var=
10692 shlibpath_overrides_runpath=unknown
10693 version_type=none
10694 dynamic_linker="$host_os ld.so"
10695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696 need_lib_prefix=unknown
10697 hardcode_into_libs=no
10699 # when you set need_version to no, make sure it does not cause -set_version
10700 # flags to be left without arguments
10701 need_version=unknown
10703 case $host_os in
10704 aix3*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707 shlibpath_var=LIBPATH
10709 # AIX 3 has no versioning support, so we append a major version to the name.
10710 soname_spec='${libname}${release}${shared_ext}$major'
10713 aix[4-9]*)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 hardcode_into_libs=yes
10718 if test "$host_cpu" = ia64; then
10719 # AIX 5 supports IA64
10720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 else
10723 # With GCC up to 2.95.x, collect2 would create an import file
10724 # for dependence libraries. The import file would start with
10725 # the line `#! .'. This would cause the generated library to
10726 # depend on `.', always an invalid library. This was fixed in
10727 # development snapshots of GCC prior to 3.0.
10728 case $host_os in
10729 aix4 | aix4.[01] | aix4.[01].*)
10730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731 echo ' yes '
10732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10734 else
10735 can_build_shared=no
10738 esac
10739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740 # soname into executable. Probably we can add versioning support to
10741 # collect2, so additional links can be useful in future.
10742 if test "$aix_use_runtimelinking" = yes; then
10743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744 # instead of lib<name>.a to let people know that these are not
10745 # typical AIX shared libraries.
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 else
10748 # We preserve .a as extension for shared libraries through AIX4.2
10749 # and later when we are not doing run time linking.
10750 library_names_spec='${libname}${release}.a $libname.a'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LIBPATH
10757 amigaos*)
10758 if test "$host_cpu" = m68k; then
10759 library_names_spec='$libname.ixlibrary $libname.a'
10760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10761 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'
10762 else
10763 dynamic_linker=no
10767 beos*)
10768 library_names_spec='${libname}${shared_ext}'
10769 dynamic_linker="$host_os ld.so"
10770 shlibpath_var=LIBRARY_PATH
10773 bsdi[45]*)
10774 version_type=linux
10775 need_version=no
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10782 # the default ld.so.conf also contains /usr/contrib/lib and
10783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10784 # libtool to hard-code these into programs
10787 cygwin* | mingw* | pw32*)
10788 version_type=windows
10789 shrext_cmds=".dll"
10790 need_version=no
10791 need_lib_prefix=no
10793 case $withGCC,$host_os in
10794 yes,cygwin* | yes,mingw* | yes,pw32*)
10795 library_names_spec='$libname.dll.a'
10796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10797 postinstall_cmds='base_file=`basename \${file}`~
10798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10799 dldir=$destdir/`dirname \$dlpath`~
10800 test -d \$dldir || mkdir -p \$dldir~
10801 $install_prog $dir/$dlname \$dldir/$dlname~
10802 chmod a+x \$dldir/$dlname~
10803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10807 dlpath=$dir/\$dldll~
10808 $RM \$dlpath'
10809 shlibpath_overrides_runpath=yes
10811 case $host_os in
10812 cygwin*)
10813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10815 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10817 mingw*)
10818 # MinGW DLLs use traditional 'lib' prefix
10819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10821 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10822 # It is most probably a Windows format PATH printed by
10823 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10824 # path with ; separators, and with drive letters. We can handle the
10825 # drive letters (cygwin fileutils understands them), so leave them,
10826 # especially as we might pass files found there to a mingw objdump,
10827 # which wouldn't understand a cygwinified path. Ahh.
10828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10829 else
10830 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10833 pw32*)
10834 # pw32 DLLs use 'pw' prefix rather than 'lib'
10835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837 esac
10841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10843 esac
10844 dynamic_linker='Win32 ld.exe'
10845 # FIXME: first we should search . and the directory the executable is in
10846 shlibpath_var=PATH
10849 darwin* | rhapsody*)
10850 dynamic_linker="$host_os dyld"
10851 version_type=darwin
10852 need_lib_prefix=no
10853 need_version=no
10854 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10855 soname_spec='${libname}${release}${major}$shared_ext'
10856 shlibpath_overrides_runpath=yes
10857 shlibpath_var=DYLD_LIBRARY_PATH
10858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10860 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10864 dgux*)
10865 version_type=linux
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10873 freebsd1*)
10874 dynamic_linker=no
10877 freebsd* | dragonfly*)
10878 # DragonFly does not have aout. When/if they implement a new
10879 # versioning mechanism, adjust this.
10880 if test -x /usr/bin/objformat; then
10881 objformat=`/usr/bin/objformat`
10882 else
10883 case $host_os in
10884 freebsd[123]*) objformat=aout ;;
10885 *) objformat=elf ;;
10886 esac
10888 version_type=freebsd-$objformat
10889 case $version_type in
10890 freebsd-elf*)
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10892 need_version=no
10893 need_lib_prefix=no
10895 freebsd-*)
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10897 need_version=yes
10899 esac
10900 shlibpath_var=LD_LIBRARY_PATH
10901 case $host_os in
10902 freebsd2*)
10903 shlibpath_overrides_runpath=yes
10905 freebsd3.[01]* | freebsdelf3.[01]*)
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10914 *) # from 4.6 on, and DragonFly
10915 shlibpath_overrides_runpath=yes
10916 hardcode_into_libs=yes
10918 esac
10921 gnu*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 hardcode_into_libs=yes
10931 hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 case $host_cpu in
10938 ia64*)
10939 shrext_cmds='.so'
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 if test "X$HPUX_IA64_MODE" = X32; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948 else
10949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953 hppa*64*)
10954 shrext_cmds='.sl'
10955 hardcode_into_libs=yes
10956 dynamic_linker="$host_os dld.sl"
10957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965 shrext_cmds='.sl'
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=SHLIB_PATH
10968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10972 esac
10973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10974 postinstall_cmds='chmod 555 $lib'
10977 interix[3-9]*)
10978 version_type=linux
10979 need_lib_prefix=no
10980 need_version=no
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10989 irix5* | irix6* | nonstopux*)
10990 case $host_os in
10991 nonstopux*) version_type=nonstopux ;;
10993 if test "$lt_cv_prog_gnu_ld" = yes; then
10994 version_type=linux
10995 else
10996 version_type=irix
10997 fi ;;
10998 esac
10999 need_lib_prefix=no
11000 need_version=no
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003 case $host_os in
11004 irix5* | nonstopux*)
11005 libsuff= shlibsuff=
11008 case $LD in # libtool.m4 will add one of these switches to LD
11009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010 libsuff= shlibsuff= libmagic=32-bit;;
11011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012 libsuff=32 shlibsuff=N32 libmagic=N32;;
11013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015 *) libsuff= shlibsuff= libmagic=never-match;;
11016 esac
11018 esac
11019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020 shlibpath_overrides_runpath=no
11021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023 hardcode_into_libs=yes
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11028 dynamic_linker=no
11031 # This must be Linux ELF.
11032 linux* | k*bsd*-gnu)
11033 version_type=linux
11034 need_lib_prefix=no
11035 need_version=no
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11041 # Some binutils ld are patched to set DT_RUNPATH
11042 save_LDFLAGS=$LDFLAGS
11043 save_libdir=$libdir
11044 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11045 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11046 if test x$gcc_no_link = xyes; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11059 main ()
11063 return 0;
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest$ac_exeext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11089 shlibpath_overrides_runpath=yes
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11097 rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS=$save_LDFLAGS
11100 libdir=$save_libdir
11102 # This implies no fast_install, which is unacceptable.
11103 # Some rework will be needed to allow for fast_install
11104 # before this can be enabled.
11105 hardcode_into_libs=yes
11107 # Append ld.so.conf contents to the search path
11108 if test -f /etc/ld.so.conf; then
11109 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11113 # We used to test for /lib/ld.so.1 and disable shared libraries on
11114 # powerpc, because MkLinux only supported shared libraries with the
11115 # GNU dynamic linker. Since this was broken with cross compilers,
11116 # most powerpc-linux boxes support dynamic linking these days and
11117 # people can always --disable-shared, the test was removed, and we
11118 # assume the GNU/Linux dynamic linker is in use.
11119 dynamic_linker='GNU/Linux ld.so'
11122 netbsd*)
11123 version_type=sunos
11124 need_lib_prefix=no
11125 need_version=no
11126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 dynamic_linker='NetBSD (a.out) ld.so'
11130 else
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 dynamic_linker='NetBSD ld.elf_so'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11140 newsos6)
11141 version_type=linux
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11147 *nto* | *qnx*)
11148 version_type=qnx
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 dynamic_linker='ldqnx.so'
11159 openbsd*)
11160 version_type=sunos
11161 sys_lib_dlsearch_path_spec="/usr/lib"
11162 need_lib_prefix=no
11163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11164 case $host_os in
11165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11166 *) need_version=no ;;
11167 esac
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11172 case $host_os in
11173 openbsd2.[89] | openbsd2.[89].*)
11174 shlibpath_overrides_runpath=no
11177 shlibpath_overrides_runpath=yes
11179 esac
11180 else
11181 shlibpath_overrides_runpath=yes
11185 os2*)
11186 libname_spec='$name'
11187 shrext_cmds=".dll"
11188 need_lib_prefix=no
11189 library_names_spec='$libname${shared_ext} $libname.a'
11190 dynamic_linker='OS/2 ld.exe'
11191 shlibpath_var=LIBPATH
11194 osf3* | osf4* | osf5*)
11195 version_type=osf
11196 need_lib_prefix=no
11197 need_version=no
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11205 rdos*)
11206 dynamic_linker=no
11209 solaris*)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11218 # ldd complains unless libraries are executable
11219 postinstall_cmds='chmod +x $lib'
11222 sunos4*)
11223 version_type=sunos
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 if test "$with_gnu_ld" = yes; then
11229 need_lib_prefix=no
11231 need_version=yes
11234 sysv4 | sysv4.3*)
11235 version_type=linux
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 case $host_vendor in
11240 sni)
11241 shlibpath_overrides_runpath=no
11242 need_lib_prefix=no
11243 runpath_var=LD_RUN_PATH
11245 siemens)
11246 need_lib_prefix=no
11248 motorola)
11249 need_lib_prefix=no
11250 need_version=no
11251 shlibpath_overrides_runpath=no
11252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11254 esac
11257 sysv4*MP*)
11258 if test -d /usr/nec ;then
11259 version_type=linux
11260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11261 soname_spec='$libname${shared_ext}.$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11267 version_type=freebsd-elf
11268 need_lib_prefix=no
11269 need_version=no
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11274 hardcode_into_libs=yes
11275 if test "$with_gnu_ld" = yes; then
11276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11277 else
11278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11279 case $host_os in
11280 sco3.2v5*)
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11283 esac
11285 sys_lib_dlsearch_path_spec='/usr/lib'
11288 tpf*)
11289 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11290 version_type=linux
11291 need_lib_prefix=no
11292 need_version=no
11293 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11299 uts4*)
11300 version_type=linux
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11307 dynamic_linker=no
11309 esac
11310 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11311 echo "${ECHO_T}$dynamic_linker" >&6
11312 test "$dynamic_linker" = no && can_build_shared=no
11314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11315 if test "$GCC" = yes; then
11316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11405 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11407 hardcode_action=
11408 if test -n "$hardcode_libdir_flag_spec" ||
11409 test -n "$runpath_var" ||
11410 test "X$hardcode_automatic" = "Xyes" ; then
11412 # We can hardcode non-existent directories.
11413 if test "$hardcode_direct" != no &&
11414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11415 # have to relink, otherwise we might link with an installed library
11416 # when we should be linking with a yet-to-be-installed one
11417 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11418 test "$hardcode_minus_L" != no; then
11419 # Linking always hardcodes the temporary library directory.
11420 hardcode_action=relink
11421 else
11422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11423 hardcode_action=immediate
11425 else
11426 # We cannot hardcode anything, or else we can only hardcode existing
11427 # directories.
11428 hardcode_action=unsupported
11430 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11431 echo "${ECHO_T}$hardcode_action" >&6
11433 if test "$hardcode_action" = relink ||
11434 test "$inherit_rpath" = yes; then
11435 # Fast installation is not supported
11436 enable_fast_install=no
11437 elif test "$shlibpath_overrides_runpath" = yes ||
11438 test "$enable_shared" = no; then
11439 # Fast installation is not necessary
11440 enable_fast_install=needless
11448 if test "x$enable_dlopen" != xyes; then
11449 enable_dlopen=unknown
11450 enable_dlopen_self=unknown
11451 enable_dlopen_self_static=unknown
11452 else
11453 lt_cv_dlopen=no
11454 lt_cv_dlopen_libs=
11456 case $host_os in
11457 beos*)
11458 lt_cv_dlopen="load_add_on"
11459 lt_cv_dlopen_libs=
11460 lt_cv_dlopen_self=yes
11463 mingw* | pw32*)
11464 lt_cv_dlopen="LoadLibrary"
11465 lt_cv_dlopen_libs=
11468 cygwin*)
11469 lt_cv_dlopen="dlopen"
11470 lt_cv_dlopen_libs=
11473 darwin*)
11474 # if libdl is installed we need to link against it
11475 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11476 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11477 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldl $LIBS"
11482 if test x$gcc_no_link = xyes; then
11483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11485 { (exit 1); exit 1; }; }
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11494 /* Override any gcc2 internal prototype to avoid an error. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 /* We use char because int might match the return type of a gcc2
11499 builtin and then its argument prototype would still apply. */
11500 char dlopen ();
11502 main ()
11504 dlopen ();
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 (eval $ac_link) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_lib_dl_dlopen=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_lib_dl_dlopen=no
11538 rm -f conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11544 if test $ac_cv_lib_dl_dlopen = yes; then
11545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11546 else
11548 lt_cv_dlopen="dyld"
11549 lt_cv_dlopen_libs=
11550 lt_cv_dlopen_self=yes
11557 echo "$as_me:$LINENO: checking for shl_load" >&5
11558 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11559 if test "${ac_cv_func_shl_load+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 if test x$gcc_no_link = xyes; then
11563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11565 { (exit 1); exit 1; }; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11575 #define shl_load innocuous_shl_load
11577 /* System header to define __stub macros and hopefully few prototypes,
11578 which can conflict with char shl_load (); below.
11579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11580 <limits.h> exists even on freestanding compilers. */
11582 #ifdef __STDC__
11583 # include <limits.h>
11584 #else
11585 # include <assert.h>
11586 #endif
11588 #undef shl_load
11590 /* Override any gcc2 internal prototype to avoid an error. */
11591 #ifdef __cplusplus
11592 extern "C"
11594 #endif
11595 /* We use char because int might match the return type of a gcc2
11596 builtin and then its argument prototype would still apply. */
11597 char shl_load ();
11598 /* The GNU C library defines this for functions which it implements
11599 to always fail with ENOSYS. Some functions are actually named
11600 something starting with __ and the normal name is an alias. */
11601 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11602 choke me
11603 #else
11604 char (*f) () = shl_load;
11605 #endif
11606 #ifdef __cplusplus
11608 #endif
11611 main ()
11613 return f != shl_load;
11615 return 0;
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag"
11628 || test ! -s conftest.err'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_cv_func_shl_load=yes
11641 else
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_cv_func_shl_load=no
11647 rm -f conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11651 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11652 if test $ac_cv_func_shl_load = yes; then
11653 lt_cv_dlopen="shl_load"
11654 else
11655 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-ldld $LIBS"
11662 if test x$gcc_no_link = xyes; then
11663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11665 { (exit 1); exit 1; }; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h. */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11674 /* Override any gcc2 internal prototype to avoid an error. */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680 char shl_load ();
11682 main ()
11684 shl_load ();
11686 return 0;
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_c_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_cv_lib_dld_shl_load=yes
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 ac_cv_lib_dld_shl_load=no
11718 rm -f conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11722 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11724 if test $ac_cv_lib_dld_shl_load = yes; then
11725 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11726 else
11727 echo "$as_me:$LINENO: checking for dlopen" >&5
11728 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11729 if test "${ac_cv_func_dlopen+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 if test x$gcc_no_link = xyes; then
11733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11735 { (exit 1); exit 1; }; }
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11745 #define dlopen innocuous_dlopen
11747 /* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char dlopen (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11752 #ifdef __STDC__
11753 # include <limits.h>
11754 #else
11755 # include <assert.h>
11756 #endif
11758 #undef dlopen
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 #ifdef __cplusplus
11762 extern "C"
11764 #endif
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11767 char dlopen ();
11768 /* The GNU C library defines this for functions which it implements
11769 to always fail with ENOSYS. Some functions are actually named
11770 something starting with __ and the normal name is an alias. */
11771 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11772 choke me
11773 #else
11774 char (*f) () = dlopen;
11775 #endif
11776 #ifdef __cplusplus
11778 #endif
11781 main ()
11783 return f != dlopen;
11785 return 0;
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_func_dlopen=yes
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_cv_func_dlopen=no
11817 rm -f conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11821 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11822 if test $ac_cv_func_dlopen = yes; then
11823 lt_cv_dlopen="dlopen"
11824 else
11825 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-ldl $LIBS"
11832 if test x$gcc_no_link = xyes; then
11833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11835 { (exit 1); exit 1; }; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char dlopen ();
11852 main ()
11854 dlopen ();
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_lib_dl_dlopen=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_cv_lib_dl_dlopen=no
11888 rm -f conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11893 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11894 if test $ac_cv_lib_dl_dlopen = yes; then
11895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11896 else
11897 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11898 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11899 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-lsvld $LIBS"
11904 if test x$gcc_no_link = xyes; then
11905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11907 { (exit 1); exit 1; }; }
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 /* Override any gcc2 internal prototype to avoid an error. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11922 char dlopen ();
11924 main ()
11926 dlopen ();
11928 return 0;
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_lib_svld_dlopen=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_cv_lib_svld_dlopen=no
11960 rm -f conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11964 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11965 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11966 if test $ac_cv_lib_svld_dlopen = yes; then
11967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11968 else
11969 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11970 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11971 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 ac_check_lib_save_LIBS=$LIBS
11975 LIBS="-ldld $LIBS"
11976 if test x$gcc_no_link = xyes; then
11977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11979 { (exit 1); exit 1; }; }
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11988 /* Override any gcc2 internal prototype to avoid an error. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 /* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
11994 char dld_link ();
11996 main ()
11998 dld_link ();
12000 return 0;
12002 _ACEOF
12003 rm -f conftest.$ac_objext conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_cv_lib_dld_dld_link=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_cv_lib_dld_dld_link=no
12032 rm -f conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_lib_save_LIBS
12036 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12037 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12038 if test $ac_cv_lib_dld_dld_link = yes; then
12039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12058 esac
12060 if test "x$lt_cv_dlopen" != xno; then
12061 enable_dlopen=yes
12062 else
12063 enable_dlopen=no
12066 case $lt_cv_dlopen in
12067 dlopen)
12068 save_CPPFLAGS="$CPPFLAGS"
12069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12071 save_LDFLAGS="$LDFLAGS"
12072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12074 save_LIBS="$LIBS"
12075 LIBS="$lt_cv_dlopen_libs $LIBS"
12077 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12078 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12079 if test "${lt_cv_dlopen_self+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082 if test "$cross_compiling" = yes; then :
12083 lt_cv_dlopen_self=cross
12084 else
12085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12086 lt_status=$lt_dlunknown
12087 cat > conftest.$ac_ext <<_LT_EOF
12088 #line 12088 "configure"
12089 #include "confdefs.h"
12091 #if HAVE_DLFCN_H
12092 #include <dlfcn.h>
12093 #endif
12095 #include <stdio.h>
12097 #ifdef RTLD_GLOBAL
12098 # define LT_DLGLOBAL RTLD_GLOBAL
12099 #else
12100 # ifdef DL_GLOBAL
12101 # define LT_DLGLOBAL DL_GLOBAL
12102 # else
12103 # define LT_DLGLOBAL 0
12104 # endif
12105 #endif
12107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12108 find out it does not work in some platform. */
12109 #ifndef LT_DLLAZY_OR_NOW
12110 # ifdef RTLD_LAZY
12111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12112 # else
12113 # ifdef DL_LAZY
12114 # define LT_DLLAZY_OR_NOW DL_LAZY
12115 # else
12116 # ifdef RTLD_NOW
12117 # define LT_DLLAZY_OR_NOW RTLD_NOW
12118 # else
12119 # ifdef DL_NOW
12120 # define LT_DLLAZY_OR_NOW DL_NOW
12121 # else
12122 # define LT_DLLAZY_OR_NOW 0
12123 # endif
12124 # endif
12125 # endif
12126 # endif
12127 #endif
12129 #ifdef __cplusplus
12130 extern "C" void exit (int);
12131 #endif
12133 void fnord() { int i=42;}
12134 int main ()
12136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12137 int status = $lt_dlunknown;
12139 if (self)
12141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12143 /* dlclose (self); */
12145 else
12146 puts (dlerror ());
12148 exit (status);
12150 _LT_EOF
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12156 (./conftest; exit; ) >&5 2>/dev/null
12157 lt_status=$?
12158 case x$lt_status in
12159 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12160 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12161 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12162 esac
12163 else :
12164 # compilation failed
12165 lt_cv_dlopen_self=no
12168 rm -fr conftest*
12172 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12173 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12175 if test "x$lt_cv_dlopen_self" = xyes; then
12176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12177 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12178 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12179 if test "${lt_cv_dlopen_self_static+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 if test "$cross_compiling" = yes; then :
12183 lt_cv_dlopen_self_static=cross
12184 else
12185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12186 lt_status=$lt_dlunknown
12187 cat > conftest.$ac_ext <<_LT_EOF
12188 #line 12188 "configure"
12189 #include "confdefs.h"
12191 #if HAVE_DLFCN_H
12192 #include <dlfcn.h>
12193 #endif
12195 #include <stdio.h>
12197 #ifdef RTLD_GLOBAL
12198 # define LT_DLGLOBAL RTLD_GLOBAL
12199 #else
12200 # ifdef DL_GLOBAL
12201 # define LT_DLGLOBAL DL_GLOBAL
12202 # else
12203 # define LT_DLGLOBAL 0
12204 # endif
12205 #endif
12207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12208 find out it does not work in some platform. */
12209 #ifndef LT_DLLAZY_OR_NOW
12210 # ifdef RTLD_LAZY
12211 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12212 # else
12213 # ifdef DL_LAZY
12214 # define LT_DLLAZY_OR_NOW DL_LAZY
12215 # else
12216 # ifdef RTLD_NOW
12217 # define LT_DLLAZY_OR_NOW RTLD_NOW
12218 # else
12219 # ifdef DL_NOW
12220 # define LT_DLLAZY_OR_NOW DL_NOW
12221 # else
12222 # define LT_DLLAZY_OR_NOW 0
12223 # endif
12224 # endif
12225 # endif
12226 # endif
12227 #endif
12229 #ifdef __cplusplus
12230 extern "C" void exit (int);
12231 #endif
12233 void fnord() { int i=42;}
12234 int main ()
12236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12237 int status = $lt_dlunknown;
12239 if (self)
12241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12243 /* dlclose (self); */
12245 else
12246 puts (dlerror ());
12248 exit (status);
12250 _LT_EOF
12251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12252 (eval $ac_link) 2>&5
12253 ac_status=$?
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12256 (./conftest; exit; ) >&5 2>/dev/null
12257 lt_status=$?
12258 case x$lt_status in
12259 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12260 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12261 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12262 esac
12263 else :
12264 # compilation failed
12265 lt_cv_dlopen_self_static=no
12268 rm -fr conftest*
12272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12273 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12276 CPPFLAGS="$save_CPPFLAGS"
12277 LDFLAGS="$save_LDFLAGS"
12278 LIBS="$save_LIBS"
12280 esac
12282 case $lt_cv_dlopen_self in
12283 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12284 *) enable_dlopen_self=unknown ;;
12285 esac
12287 case $lt_cv_dlopen_self_static in
12288 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12289 *) enable_dlopen_self_static=unknown ;;
12290 esac
12309 striplib=
12310 old_striplib=
12311 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12312 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12313 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12316 echo "$as_me:$LINENO: result: yes" >&5
12317 echo "${ECHO_T}yes" >&6
12318 else
12319 # FIXME - insert some real tests, host_os isn't really good enough
12320 case $host_os in
12321 darwin*)
12322 if test -n "$STRIP" ; then
12323 striplib="$STRIP -x"
12324 old_striplib="$STRIP -S"
12325 echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6
12327 else
12328 echo "$as_me:$LINENO: result: no" >&5
12329 echo "${ECHO_T}no" >&6
12333 echo "$as_me:$LINENO: result: no" >&5
12334 echo "${ECHO_T}no" >&6
12336 esac
12350 # Report which library types will actually be built
12351 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12352 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12353 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12354 echo "${ECHO_T}$can_build_shared" >&6
12356 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12357 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12358 test "$can_build_shared" = "no" && enable_shared=no
12360 # On AIX, shared libraries and static libraries use the same namespace, and
12361 # are all built from PIC.
12362 case $host_os in
12363 aix3*)
12364 test "$enable_shared" = yes && enable_static=no
12365 if test -n "$RANLIB"; then
12366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12367 postinstall_cmds='$RANLIB $lib'
12371 aix[4-9]*)
12372 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12373 test "$enable_shared" = yes && enable_static=no
12376 esac
12377 echo "$as_me:$LINENO: result: $enable_shared" >&5
12378 echo "${ECHO_T}$enable_shared" >&6
12380 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12381 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12382 # Make sure either enable_shared or enable_static is yes.
12383 test "$enable_shared" = yes || enable_static=yes
12384 echo "$as_me:$LINENO: result: $enable_static" >&5
12385 echo "${ECHO_T}$enable_static" >&6
12391 ac_ext=c
12392 ac_cpp='$CPP $CPPFLAGS'
12393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12397 CC="$lt_save_CC"
12400 ac_ext=cc
12401 ac_cpp='$CXXCPP $CPPFLAGS'
12402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12406 archive_cmds_need_lc_CXX=no
12407 allow_undefined_flag_CXX=
12408 always_export_symbols_CXX=no
12409 archive_expsym_cmds_CXX=
12410 compiler_needs_object_CXX=no
12411 export_dynamic_flag_spec_CXX=
12412 hardcode_direct_CXX=no
12413 hardcode_direct_absolute_CXX=no
12414 hardcode_libdir_flag_spec_CXX=
12415 hardcode_libdir_flag_spec_ld_CXX=
12416 hardcode_libdir_separator_CXX=
12417 hardcode_minus_L_CXX=no
12418 hardcode_shlibpath_var_CXX=unsupported
12419 hardcode_automatic_CXX=no
12420 inherit_rpath_CXX=no
12421 module_cmds_CXX=
12422 module_expsym_cmds_CXX=
12423 link_all_deplibs_CXX=unknown
12424 old_archive_cmds_CXX=$old_archive_cmds
12425 no_undefined_flag_CXX=
12426 whole_archive_flag_spec_CXX=
12427 enable_shared_with_static_runtimes_CXX=no
12429 # Source file extension for C++ test sources.
12430 ac_ext=cpp
12432 # Object file extension for compiled C++ test sources.
12433 objext=o
12434 objext_CXX=$objext
12436 # No sense in running all these tests if we already determined that
12437 # the CXX compiler isn't working. Some variables (like enable_shared)
12438 # are currently assumed to apply to all compilers on this platform,
12439 # and will be corrupted by setting them based on a non-working compiler.
12440 if test "$_lt_caught_CXX_error" != yes; then
12441 # Code to be used in simple compile tests
12442 lt_simple_compile_test_code="int some_variable = 0;"
12444 # Code to be used in simple link tests
12445 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12447 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12454 # If no C compiler was specified, use CC.
12455 LTCC=${LTCC-"$CC"}
12457 # If no C compiler flags were specified, use CFLAGS.
12458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12460 # Allow CC to be a program name with arguments.
12461 compiler=$CC
12464 # save warnings/boilerplate of simple test code
12465 ac_outfile=conftest.$ac_objext
12466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12468 _lt_compiler_boilerplate=`cat conftest.err`
12469 $RM conftest*
12471 ac_outfile=conftest.$ac_objext
12472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12474 _lt_linker_boilerplate=`cat conftest.err`
12475 $RM conftest*
12478 # Allow CC to be a program name with arguments.
12479 lt_save_CC=$CC
12480 lt_save_LD=$LD
12481 lt_save_GCC=$GCC
12482 GCC=$GXX
12483 lt_save_with_gnu_ld=$with_gnu_ld
12484 lt_save_path_LD=$lt_cv_path_LD
12485 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12486 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12487 else
12488 $as_unset lt_cv_prog_gnu_ld
12490 if test -n "${lt_cv_path_LDCXX+set}"; then
12491 lt_cv_path_LD=$lt_cv_path_LDCXX
12492 else
12493 $as_unset lt_cv_path_LD
12495 test -z "${LDCXX+set}" || LD=$LDCXX
12496 CC=${CXX-"c++"}
12497 compiler=$CC
12498 compiler_CXX=$CC
12499 for cc_temp in $compiler""; do
12500 case $cc_temp in
12501 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12502 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12503 \-*) ;;
12504 *) break;;
12505 esac
12506 done
12507 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12510 if test -n "$compiler"; then
12511 # We don't want -fno-exception when compiling C++ code, so set the
12512 # no_builtin_flag separately
12513 if test "$GXX" = yes; then
12514 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12515 else
12516 lt_prog_compiler_no_builtin_flag_CXX=
12519 if test "$GXX" = yes; then
12520 # Set up default GNU C++ configuration
12524 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12525 if test "${with_gnu_ld+set}" = set; then
12526 withval="$with_gnu_ld"
12527 test "$withval" = no || with_gnu_ld=yes
12528 else
12529 with_gnu_ld=no
12531 ac_prog=ld
12532 if test "$GCC" = yes; then
12533 # Check if gcc -print-prog-name=ld gives a path.
12534 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12535 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12536 case $host in
12537 *-*-mingw*)
12538 # gcc leaves a trailing carriage return which upsets mingw
12539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12542 esac
12543 case $ac_prog in
12544 # Accept absolute paths.
12545 [\\/]* | ?:[\\/]*)
12546 re_direlt='/[^/][^/]*/\.\./'
12547 # Canonicalize the pathname of ld
12548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12551 done
12552 test -z "$LD" && LD="$ac_prog"
12555 # If it fails, then pretend we aren't using GCC.
12556 ac_prog=ld
12559 # If it is relative, then search for the first ld in PATH.
12560 with_gnu_ld=unknown
12562 esac
12563 elif test "$with_gnu_ld" = yes; then
12564 echo "$as_me:$LINENO: checking for GNU ld" >&5
12565 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12566 else
12567 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12568 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12570 if test "${lt_cv_path_LD+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 if test -z "$LD"; then
12574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12575 for ac_dir in $PATH; do
12576 IFS="$lt_save_ifs"
12577 test -z "$ac_dir" && ac_dir=.
12578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12579 lt_cv_path_LD="$ac_dir/$ac_prog"
12580 # Check to see if the program is GNU ld. I'd rather use --version,
12581 # but apparently some variants of GNU ld only accept -v.
12582 # Break only if it was the GNU/non-GNU ld that we prefer.
12583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12584 *GNU* | *'with BFD'*)
12585 test "$with_gnu_ld" != no && break
12588 test "$with_gnu_ld" != yes && break
12590 esac
12592 done
12593 IFS="$lt_save_ifs"
12594 else
12595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12599 LD="$lt_cv_path_LD"
12600 if test -n "$LD"; then
12601 echo "$as_me:$LINENO: result: $LD" >&5
12602 echo "${ECHO_T}$LD" >&6
12603 else
12604 echo "$as_me:$LINENO: result: no" >&5
12605 echo "${ECHO_T}no" >&6
12607 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12608 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12609 { (exit 1); exit 1; }; }
12610 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12611 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12612 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12616 case `$LD -v 2>&1 </dev/null` in
12617 *GNU* | *'with BFD'*)
12618 lt_cv_prog_gnu_ld=yes
12621 lt_cv_prog_gnu_ld=no
12623 esac
12625 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12626 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12627 with_gnu_ld=$lt_cv_prog_gnu_ld
12635 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12636 # archiving commands below assume that GNU ld is being used.
12637 if test "$with_gnu_ld" = yes; then
12638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639 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'
12641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12644 # If archive_cmds runs LD, not CC, wlarc should be empty
12645 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12646 # investigate it a little bit more. (MM)
12647 wlarc='${wl}'
12649 # ancient GNU ld didn't support --whole-archive et. al.
12650 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12651 $GREP 'no-whole-archive' > /dev/null; then
12652 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12653 else
12654 whole_archive_flag_spec_CXX=
12656 else
12657 with_gnu_ld=no
12658 wlarc=
12660 # A generic and very simple default shared library creation
12661 # command for GNU C++ for the case where it uses the native
12662 # linker, instead of GNU ld. If possible, this setting should
12663 # overridden to take advantage of the native linker features on
12664 # the platform it is being used on.
12665 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12668 # Commands to make compiler produce verbose output that lists
12669 # what "hidden" libraries, object files and flags are used when
12670 # linking a shared library.
12671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12673 else
12674 GXX=no
12675 with_gnu_ld=no
12676 wlarc=
12679 # PORTME: fill in a description of your system's C++ link characteristics
12680 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12682 ld_shlibs_CXX=yes
12683 case $host_os in
12684 aix3*)
12685 # FIXME: insert proper C++ library support
12686 ld_shlibs_CXX=no
12688 aix[4-9]*)
12689 if test "$host_cpu" = ia64; then
12690 # On IA64, the linker does run time linking by default, so we don't
12691 # have to do anything special.
12692 aix_use_runtimelinking=no
12693 exp_sym_flag='-Bexport'
12694 no_entry_flag=""
12695 else
12696 aix_use_runtimelinking=no
12698 # Test if we are trying to use run time linking or normal
12699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12700 # need to do runtime linking.
12701 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12702 for ld_flag in $LDFLAGS; do
12703 case $ld_flag in
12704 *-brtl*)
12705 aix_use_runtimelinking=yes
12706 break
12708 esac
12709 done
12711 esac
12713 exp_sym_flag='-bexport'
12714 no_entry_flag='-bnoentry'
12717 # When large executables or shared objects are built, AIX ld can
12718 # have problems creating the table of contents. If linking a library
12719 # or program results in "error TOC overflow" add -mminimal-toc to
12720 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12721 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12723 archive_cmds_CXX=''
12724 hardcode_direct_CXX=yes
12725 hardcode_direct_absolute_CXX=yes
12726 hardcode_libdir_separator_CXX=':'
12727 link_all_deplibs_CXX=yes
12728 file_list_spec_CXX='${wl}-f,'
12730 if test "$GXX" = yes; then
12731 case $host_os in aix4.[012]|aix4.[012].*)
12732 # We only want to do this on AIX 4.2 and lower, the check
12733 # below for broken collect2 doesn't work under 4.3+
12734 collect2name=`${CC} -print-prog-name=collect2`
12735 if test -f "$collect2name" &&
12736 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12737 then
12738 # We have reworked collect2
12740 else
12741 # We have old collect2
12742 hardcode_direct_CXX=unsupported
12743 # It fails to find uninstalled libraries when the uninstalled
12744 # path is not listed in the libpath. Setting hardcode_minus_L
12745 # to unsupported forces relinking
12746 hardcode_minus_L_CXX=yes
12747 hardcode_libdir_flag_spec_CXX='-L$libdir'
12748 hardcode_libdir_separator_CXX=
12750 esac
12751 shared_flag='-shared'
12752 if test "$aix_use_runtimelinking" = yes; then
12753 shared_flag="$shared_flag "'${wl}-G'
12755 else
12756 # not using gcc
12757 if test "$host_cpu" = ia64; then
12758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12759 # chokes on -Wl,-G. The following line is correct:
12760 shared_flag='-G'
12761 else
12762 if test "$aix_use_runtimelinking" = yes; then
12763 shared_flag='${wl}-G'
12764 else
12765 shared_flag='${wl}-bM:SRE'
12770 # It seems that -bexpall does not export symbols beginning with
12771 # underscore (_), so it is better to generate a list of symbols to
12772 # export.
12773 always_export_symbols_CXX=yes
12774 if test "$aix_use_runtimelinking" = yes; then
12775 # Warning - without using the other runtime loading flags (-brtl),
12776 # -berok will link without error, but may produce a broken library.
12777 allow_undefined_flag_CXX='-berok'
12778 # Determine the default libpath from the value encoded in an empty
12779 # executable.
12780 if test x$gcc_no_link = xyes; then
12781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12783 { (exit 1); exit 1; }; }
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12793 main ()
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_cxx_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12823 lt_aix_libpath_sed='
12824 /Import File Strings/,/^$/ {
12825 /^0/ {
12826 s/^0 *\(.*\)$/\1/
12830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12831 # Check for a 64-bit object if we didn't find anything.
12832 if test -z "$aix_libpath"; then
12833 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12835 else
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12840 rm -f conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12844 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12846 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"
12847 else
12848 if test "$host_cpu" = ia64; then
12849 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12850 allow_undefined_flag_CXX="-z nodefs"
12851 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"
12852 else
12853 # Determine the default libpath from the value encoded in an
12854 # empty executable.
12855 if test x$gcc_no_link = xyes; then
12856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12858 { (exit 1); exit 1; }; }
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h. */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12868 main ()
12872 return 0;
12874 _ACEOF
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_cxx_werror_flag"
12885 || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12898 lt_aix_libpath_sed='
12899 /Import File Strings/,/^$/ {
12900 /^0/ {
12901 s/^0 *\(.*\)$/\1/
12905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12906 # Check for a 64-bit object if we didn't find anything.
12907 if test -z "$aix_libpath"; then
12908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12915 rm -f conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12920 # Warning - without using the other run time loading flags,
12921 # -berok will link without error, but may produce a broken library.
12922 no_undefined_flag_CXX=' ${wl}-bernotok'
12923 allow_undefined_flag_CXX=' ${wl}-berok'
12924 # Exported symbols can be pulled into shared objects from archives
12925 whole_archive_flag_spec_CXX='$convenience'
12926 archive_cmds_need_lc_CXX=yes
12927 # This is similar to how AIX traditionally builds its shared
12928 # libraries.
12929 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'
12934 beos*)
12935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12936 allow_undefined_flag_CXX=unsupported
12937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12938 # support --undefined. This deserves some investigation. FIXME
12939 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 else
12941 ld_shlibs_CXX=no
12945 chorus*)
12946 case $cc_basename in
12948 # FIXME: insert proper C++ library support
12949 ld_shlibs_CXX=no
12951 esac
12954 cygwin* | mingw* | pw32*)
12955 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12956 # as there is no search path for DLLs.
12957 hardcode_libdir_flag_spec_CXX='-L$libdir'
12958 allow_undefined_flag_CXX=unsupported
12959 always_export_symbols_CXX=no
12960 enable_shared_with_static_runtimes_CXX=yes
12962 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12963 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'
12964 # If the export-symbols file already is a .def file (1st line
12965 # is EXPORTS), use it as is; otherwise, prepend...
12966 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12967 cp $export_symbols $output_objdir/$soname.def;
12968 else
12969 echo EXPORTS > $output_objdir/$soname.def;
12970 cat $export_symbols >> $output_objdir/$soname.def;
12972 $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'
12973 else
12974 ld_shlibs_CXX=no
12977 darwin* | rhapsody*)
12978 case $host_os in
12979 rhapsody* | darwin1.[012])
12980 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12982 *) # Darwin 1.3 on
12983 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12984 10.[012])
12985 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12987 10.*)
12988 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12990 esac
12992 esac
12993 archive_cmds_need_lc_CXX=no
12994 hardcode_direct_CXX=no
12995 hardcode_automatic_CXX=yes
12996 hardcode_shlibpath_var_CXX=unsupported
12997 whole_archive_flag_spec_CXX=''
12998 link_all_deplibs_CXX=yes
13000 if test "$GXX" = yes ; then
13001 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 lt_cv_apple_cc_single_mod=no
13005 if test -z "${LT_MULTI_MODULE}"; then
13006 # By default we will add the -single_module flag. You can override
13007 # by either setting the environment variable LT_MULTI_MODULE
13008 # non-empty at configure time, or by adding -multi-module to the
13009 # link flags.
13010 echo "int foo(void){return 1;}" > conftest.c
13011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13012 -dynamiclib ${wl}-single_module conftest.c
13013 if test -f libconftest.dylib; then
13014 lt_cv_apple_cc_single_mod=yes
13015 rm libconftest.dylib
13017 rm conftest.$ac_ext
13021 output_verbose_link_cmd=echo
13022 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13023 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13024 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13025 else
13026 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'
13027 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13029 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13030 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13031 else
13032 case $cc_basename in
13033 xlc*)
13034 output_verbose_link_cmd=echo
13035 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
13036 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13037 # Don't fix this by using the ld -exported_symbols_list flag,
13038 # it doesn't exist in older darwin lds
13039 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13040 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13043 ld_shlibs_CXX=no
13045 esac
13049 dgux*)
13050 case $cc_basename in
13051 ec++*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13055 ghcx*)
13056 # Green Hills C++ Compiler
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13064 esac
13067 freebsd[12]*)
13068 # C++ shared libraries reported to be fairly broken before
13069 # switch to ELF
13070 ld_shlibs_CXX=no
13073 freebsd-elf*)
13074 archive_cmds_need_lc_CXX=no
13077 freebsd* | dragonfly*)
13078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13079 # conventions
13080 ld_shlibs_CXX=yes
13083 gnu*)
13086 hpux9*)
13087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13088 hardcode_libdir_separator_CXX=:
13089 export_dynamic_flag_spec_CXX='${wl}-E'
13090 hardcode_direct_CXX=yes
13091 hardcode_minus_L_CXX=yes # Not in the search PATH,
13092 # but as the default
13093 # location of the library.
13095 case $cc_basename in
13096 CC*)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13100 aCC*)
13101 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'
13102 # Commands to make compiler produce verbose output that lists
13103 # what "hidden" libraries, object files and flags are used when
13104 # linking a shared library.
13106 # There doesn't appear to be a way to prevent this compiler from
13107 # explicitly linking system object files so we need to strip them
13108 # from the output so that they don't get included in the library
13109 # dependencies.
13110 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'
13113 if test "$GXX" = yes; then
13114 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'
13115 else
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13120 esac
13123 hpux10*|hpux11*)
13124 if test $with_gnu_ld = no; then
13125 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13126 hardcode_libdir_separator_CXX=:
13128 case $host_cpu in
13129 hppa*64*|ia64*)
13132 export_dynamic_flag_spec_CXX='${wl}-E'
13134 esac
13136 case $host_cpu in
13137 hppa*64*|ia64*)
13138 hardcode_direct_CXX=no
13139 hardcode_shlibpath_var_CXX=no
13142 hardcode_direct_CXX=yes
13143 hardcode_direct_absolute_CXX=yes
13144 hardcode_minus_L_CXX=yes # Not in the search PATH,
13145 # but as the default
13146 # location of the library.
13148 esac
13150 case $cc_basename in
13151 CC*)
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13155 aCC*)
13156 case $host_cpu in
13157 hppa*64*)
13158 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160 ia64*)
13161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13166 esac
13167 # Commands to make compiler produce verbose output that lists
13168 # what "hidden" libraries, object files and flags are used when
13169 # linking a shared library.
13171 # There doesn't appear to be a way to prevent this compiler from
13172 # explicitly linking system object files so we need to strip them
13173 # from the output so that they don't get included in the library
13174 # dependencies.
13175 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'
13178 if test "$GXX" = yes; then
13179 if test $with_gnu_ld = no; then
13180 case $host_cpu in
13181 hppa*64*)
13182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13184 ia64*)
13185 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 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'
13190 esac
13192 else
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13197 esac
13200 interix[3-9]*)
13201 hardcode_direct_CXX=no
13202 hardcode_shlibpath_var_CXX=no
13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13204 export_dynamic_flag_spec_CXX='${wl}-E'
13205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13206 # Instead, shared libraries are loaded at an image base (0x10000000 by
13207 # default) and relocated if they conflict, which is a slow very memory
13208 # consuming and fragmenting process. To avoid this, we pick a random,
13209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13211 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'
13212 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'
13214 irix5* | irix6*)
13215 case $cc_basename in
13216 CC*)
13217 # SGI C++
13218 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'
13220 # Archives containing C++ object files must be created using
13221 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13222 # necessary to make sure instantiated templates are included
13223 # in the archive.
13224 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13227 if test "$GXX" = yes; then
13228 if test "$with_gnu_ld" = no; then
13229 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'
13230 else
13231 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'
13234 link_all_deplibs_CXX=yes
13236 esac
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238 hardcode_libdir_separator_CXX=:
13239 inherit_rpath_CXX=yes
13242 linux* | k*bsd*-gnu)
13243 case $cc_basename in
13244 KCC*)
13245 # Kuck and Associates, Inc. (KAI) C++ Compiler
13247 # KCC will only create a shared library if the output file
13248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13249 # to its proper name (with version) after linking.
13250 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'
13251 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'
13252 # Commands to make compiler produce verbose output that lists
13253 # what "hidden" libraries, object files and flags are used when
13254 # linking a shared library.
13256 # There doesn't appear to be a way to prevent this compiler from
13257 # explicitly linking system object files so we need to strip them
13258 # from the output so that they don't get included in the library
13259 # dependencies.
13260 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'
13262 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13263 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13265 # Archives containing C++ object files must be created using
13266 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13267 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13269 icpc* | ecpc* )
13270 # Intel C++
13271 with_gnu_ld=yes
13272 # version 8.0 and above of icpc choke on multiply defined symbols
13273 # if we add $predep_objects and $postdep_objects, however 7.1 and
13274 # earlier do not add the objects themselves.
13275 case `$CC -V 2>&1` in
13276 *"Version 7."*)
13277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 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'
13280 *) # Version 8.0 or newer
13281 tmp_idyn=
13282 case $host_cpu in
13283 ia64*) tmp_idyn=' -i_dynamic';;
13284 esac
13285 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 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'
13288 esac
13289 archive_cmds_need_lc_CXX=no
13290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13292 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13294 pgCC*)
13295 # Portland Group C++ compiler
13296 case `$CC -V` in
13297 *pgCC\ [1-5]*)
13298 prelink_cmds_CXX='tpldir=Template.dir~
13299 rm -rf $tpldir~
13300 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13301 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13302 old_archive_cmds_CXX='tpldir=Template.dir~
13303 rm -rf $tpldir~
13304 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13305 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13306 $RANLIB $oldlib'
13307 archive_cmds_CXX='tpldir=Template.dir~
13308 rm -rf $tpldir~
13309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13310 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13311 archive_expsym_cmds_CXX='tpldir=Template.dir~
13312 rm -rf $tpldir~
13313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13314 $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'
13316 *) # Version 6 will use weak symbols
13317 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13318 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'
13320 esac
13322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13324 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'
13326 cxx*)
13327 # Compaq C++
13328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329 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'
13331 runpath_var=LD_RUN_PATH
13332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13333 hardcode_libdir_separator_CXX=:
13335 # Commands to make compiler produce verbose output that lists
13336 # what "hidden" libraries, object files and flags are used when
13337 # linking a shared library.
13339 # There doesn't appear to be a way to prevent this compiler from
13340 # explicitly linking system object files so we need to strip them
13341 # from the output so that they don't get included in the library
13342 # dependencies.
13343 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'
13346 case `$CC -V 2>&1 | sed 5q` in
13347 *Sun\ C*)
13348 # Sun C++ 5.9
13349 no_undefined_flag_CXX=' -zdefs'
13350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 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'
13352 hardcode_libdir_flag_spec_CXX='-R$libdir'
13353 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'
13354 compiler_needs_object_CXX=yes
13356 # Not sure whether something based on
13357 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13358 # would be better.
13359 output_verbose_link_cmd='echo'
13361 # Archives containing C++ object files must be created using
13362 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13363 # necessary to make sure instantiated templates are included
13364 # in the archive.
13365 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13367 esac
13369 esac
13372 lynxos*)
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13377 m88k*)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13382 mvs*)
13383 case $cc_basename in
13384 cxx*)
13385 # FIXME: insert proper C++ library support
13386 ld_shlibs_CXX=no
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13392 esac
13395 netbsd*)
13396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13397 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13398 wlarc=
13399 hardcode_libdir_flag_spec_CXX='-R$libdir'
13400 hardcode_direct_CXX=yes
13401 hardcode_shlibpath_var_CXX=no
13403 # Workaround some broken pre-1.5 toolchains
13404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13407 *nto* | *qnx*)
13408 ld_shlibs_CXX=yes
13411 openbsd2*)
13412 # C++ shared libraries are fairly broken
13413 ld_shlibs_CXX=no
13416 openbsd*)
13417 hardcode_direct_CXX=yes
13418 hardcode_shlibpath_var_CXX=no
13419 hardcode_direct_absolute_CXX=yes
13420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13423 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13424 export_dynamic_flag_spec_CXX='${wl}-E'
13425 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13427 output_verbose_link_cmd=echo
13430 osf3* | osf4* | osf5*)
13431 case $cc_basename in
13432 KCC*)
13433 # Kuck and Associates, Inc. (KAI) C++ Compiler
13435 # KCC will only create a shared library if the output file
13436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13437 # to its proper name (with version) after linking.
13438 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'
13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13441 hardcode_libdir_separator_CXX=:
13443 # Archives containing C++ object files must be created using
13444 # the KAI C++ compiler.
13445 case $host in
13446 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13447 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13448 esac
13450 RCC*)
13451 # Rational C++ 2.4.1
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13455 cxx*)
13456 case $host in
13457 osf3*)
13458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13459 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'
13460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13463 allow_undefined_flag_CXX=' -expect_unresolved \*'
13464 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'
13465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13466 echo "-hidden">> $lib.exp~
13467 $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~
13468 $RM $lib.exp'
13469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13471 esac
13473 hardcode_libdir_separator_CXX=:
13475 # Commands to make compiler produce verbose output that lists
13476 # what "hidden" libraries, object files and flags are used when
13477 # linking a shared library.
13479 # There doesn't appear to be a way to prevent this compiler from
13480 # explicitly linking system object files so we need to strip them
13481 # from the output so that they don't get included in the library
13482 # dependencies.
13483 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'
13486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13488 case $host in
13489 osf3*)
13490 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'
13493 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'
13495 esac
13497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13498 hardcode_libdir_separator_CXX=:
13500 # Commands to make compiler produce verbose output that lists
13501 # what "hidden" libraries, object files and flags are used when
13502 # linking a shared library.
13503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13505 else
13506 # FIXME: insert proper C++ library support
13507 ld_shlibs_CXX=no
13510 esac
13513 psos*)
13514 # FIXME: insert proper C++ library support
13515 ld_shlibs_CXX=no
13518 sunos4*)
13519 case $cc_basename in
13520 CC*)
13521 # Sun C++ 4.x
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13525 lcc*)
13526 # Lucid
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13534 esac
13537 solaris*)
13538 case $cc_basename in
13539 CC*)
13540 # Sun C++ 4.2, 5.x and Centerline C++
13541 archive_cmds_need_lc_CXX=yes
13542 no_undefined_flag_CXX=' -zdefs'
13543 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13545 $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'
13547 hardcode_libdir_flag_spec_CXX='-R$libdir'
13548 hardcode_shlibpath_var_CXX=no
13549 case $host_os in
13550 solaris2.[0-5] | solaris2.[0-5].*) ;;
13552 # The compiler driver will combine and reorder linker options,
13553 # but understands `-z linker_flag'.
13554 # Supported since Solaris 2.6 (maybe 2.5.1?)
13555 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13557 esac
13558 link_all_deplibs_CXX=yes
13560 output_verbose_link_cmd='echo'
13562 # Archives containing C++ object files must be created using
13563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13564 # necessary to make sure instantiated templates are included
13565 # in the archive.
13566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13568 gcx*)
13569 # Green Hills C++ Compiler
13570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13572 # The C++ compiler must be used to create the archive.
13573 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13576 # GNU C++ compiler with Solaris linker
13577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13578 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13579 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13580 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13582 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13584 # Commands to make compiler produce verbose output that lists
13585 # what "hidden" libraries, object files and flags are used when
13586 # linking a shared library.
13587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13588 else
13589 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13590 # platform.
13591 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13593 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13595 # Commands to make compiler produce verbose output that lists
13596 # what "hidden" libraries, object files and flags are used when
13597 # linking a shared library.
13598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13601 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13602 case $host_os in
13603 solaris2.[0-5] | solaris2.[0-5].*) ;;
13605 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13607 esac
13610 esac
13613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13614 no_undefined_flag_CXX='${wl}-z,text'
13615 archive_cmds_need_lc_CXX=no
13616 hardcode_shlibpath_var_CXX=no
13617 runpath_var='LD_RUN_PATH'
13619 case $cc_basename in
13620 CC*)
13621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 esac
13631 sysv5* | sco3.2v5* | sco5v6*)
13632 # Note: We can NOT use -z defs as we might desire, because we do not
13633 # link with -lc, and that would cause any symbols used from libc to
13634 # always be unresolved, which means just about no library would
13635 # ever link correctly. If we're not using GNU ld we use -z text
13636 # though, which does catch some bad symbols but isn't as heavy-handed
13637 # as -z defs.
13638 no_undefined_flag_CXX='${wl}-z,text'
13639 allow_undefined_flag_CXX='${wl}-z,nodefs'
13640 archive_cmds_need_lc_CXX=no
13641 hardcode_shlibpath_var_CXX=no
13642 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13643 hardcode_libdir_separator_CXX=':'
13644 link_all_deplibs_CXX=yes
13645 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13646 runpath_var='LD_RUN_PATH'
13648 case $cc_basename in
13649 CC*)
13650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 esac
13660 tandem*)
13661 case $cc_basename in
13662 NCC*)
13663 # NonStop-UX NCC 3.20
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13668 # FIXME: insert proper C++ library support
13669 ld_shlibs_CXX=no
13671 esac
13674 vxworks*)
13675 # FIXME: insert proper C++ library support
13676 ld_shlibs_CXX=no
13680 # FIXME: insert proper C++ library support
13681 ld_shlibs_CXX=no
13683 esac
13685 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13686 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13687 test "$ld_shlibs_CXX" = no && can_build_shared=no
13689 GCC_CXX="$GXX"
13690 LD_CXX="$LD"
13692 ## CAVEAT EMPTOR:
13693 ## There is no encapsulation within the following macros, do not change
13694 ## the running order or otherwise move them around unless you know exactly
13695 ## what you are doing...
13696 # Dependencies to place before and after the object being linked:
13697 predep_objects_CXX=
13698 postdep_objects_CXX=
13699 predeps_CXX=
13700 postdeps_CXX=
13701 compiler_lib_search_path_CXX=
13703 cat > conftest.$ac_ext <<_LT_EOF
13704 class Foo
13706 public:
13707 Foo (void) { a = 0; }
13708 private:
13709 int a;
13711 _LT_EOF
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; then
13718 # Parse the compiler output and extract the necessary
13719 # objects, libraries and library flags.
13721 # Sentinel used to keep track of whether or not we are before
13722 # the conftest object file.
13723 pre_test_object_deps_done=no
13725 # The `*' in the case matches for architectures that use `case' in
13726 # $output_verbose_cmd can trigger glob expansion during the loop
13727 # eval without this substitution.
13728 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13730 for p in `eval $output_verbose_link_cmd`; do
13731 case $p in
13733 -L* | -R* | -l*)
13734 # Some compilers place space between "-{L,R}" and the path.
13735 # Remove the space.
13736 if test $p = "-L" ||
13737 test $p = "-R"; then
13738 prev=$p
13739 continue
13740 else
13741 prev=
13744 if test "$pre_test_object_deps_done" = no; then
13745 case $p in
13746 -L* | -R*)
13747 # Internal compiler library paths should come after those
13748 # provided the user. The postdeps already come after the
13749 # user supplied libs so there is no need to process them.
13750 if test -z "$compiler_lib_search_path_CXX"; then
13751 compiler_lib_search_path_CXX="${prev}${p}"
13752 else
13753 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13756 # The "-l" case would never come before the object being
13757 # linked, so don't bother handling this case.
13758 esac
13759 else
13760 if test -z "$postdeps_CXX"; then
13761 postdeps_CXX="${prev}${p}"
13762 else
13763 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13768 *.$objext)
13769 # This assumes that the test object file only shows up
13770 # once in the compiler output.
13771 if test "$p" = "conftest.$objext"; then
13772 pre_test_object_deps_done=yes
13773 continue
13776 if test "$pre_test_object_deps_done" = no; then
13777 if test -z "$predep_objects_CXX"; then
13778 predep_objects_CXX="$p"
13779 else
13780 predep_objects_CXX="$predep_objects_CXX $p"
13782 else
13783 if test -z "$postdep_objects_CXX"; then
13784 postdep_objects_CXX="$p"
13785 else
13786 postdep_objects_CXX="$postdep_objects_CXX $p"
13791 *) ;; # Ignore the rest.
13793 esac
13794 done
13796 # Clean up.
13797 rm -f a.out a.exe
13798 else
13799 echo "libtool.m4: error: problem compiling CXX test program"
13802 $RM -f confest.$objext
13804 # PORTME: override above test on systems where it is broken
13805 case $host_os in
13806 interix[3-9]*)
13807 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13808 # hack all around it, let's just trust "g++" to DTRT.
13809 predep_objects_CXX=
13810 postdep_objects_CXX=
13811 postdeps_CXX=
13814 linux*)
13815 case `$CC -V 2>&1 | sed 5q` in
13816 *Sun\ C*)
13817 # Sun C++ 5.9
13819 # The more standards-conforming stlport4 library is
13820 # incompatible with the Cstd library. Avoid specifying
13821 # it if it's in CXXFLAGS. Ignore libCrun as
13822 # -library=stlport4 depends on it.
13823 case " $CXX $CXXFLAGS " in
13824 *" -library=stlport4 "*)
13825 solaris_use_stlport4=yes
13827 esac
13829 if test "$solaris_use_stlport4" != yes; then
13830 postdeps_CXX='-library=Cstd -library=Crun'
13833 esac
13836 solaris*)
13837 case $cc_basename in
13838 CC*)
13839 # The more standards-conforming stlport4 library is
13840 # incompatible with the Cstd library. Avoid specifying
13841 # it if it's in CXXFLAGS. Ignore libCrun as
13842 # -library=stlport4 depends on it.
13843 case " $CXX $CXXFLAGS " in
13844 *" -library=stlport4 "*)
13845 solaris_use_stlport4=yes
13847 esac
13849 # Adding this requires a known-good setup of shared libraries for
13850 # Sun compiler versions before 5.6, else PIC objects from an old
13851 # archive will be linked into the output, leading to subtle bugs.
13852 if test "$solaris_use_stlport4" != yes; then
13853 postdeps_CXX='-library=Cstd -library=Crun'
13856 esac
13858 esac
13861 case " $postdeps_CXX " in
13862 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13863 esac
13890 lt_prog_compiler_wl_CXX=
13891 lt_prog_compiler_pic_CXX=
13892 lt_prog_compiler_static_CXX=
13894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13897 # C++ specific cases for pic, static, wl, etc.
13898 if test "$GXX" = yes; then
13899 lt_prog_compiler_wl_CXX='-Wl,'
13900 lt_prog_compiler_static_CXX='-static'
13902 case $host_os in
13903 aix*)
13904 # All AIX code is PIC.
13905 if test "$host_cpu" = ia64; then
13906 # AIX 5 now supports IA64 processor
13907 lt_prog_compiler_static_CXX='-Bstatic'
13910 amigaos*)
13911 if test "$host_cpu" = m68k; then
13912 # FIXME: we need at least 68020 code to build shared libraries, but
13913 # adding the `-m68020' flag to GCC prevents building anything better,
13914 # like `-m68040'.
13915 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13919 # PIC is the default for these OSes.
13921 mingw* | cygwin* | os2* | pw32*)
13922 # This hack is so that the source file can tell whether it is being
13923 # built for inclusion in a dll (and should export symbols for example).
13924 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13925 # (--disable-auto-import) libraries
13926 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13928 darwin* | rhapsody*)
13929 # PIC is the default on this platform
13930 # Common symbols not allowed in MH_DYLIB files
13931 lt_prog_compiler_pic_CXX='-fno-common'
13933 *djgpp*)
13934 # DJGPP does not support shared libraries at all
13935 lt_prog_compiler_pic_CXX=
13937 interix[3-9]*)
13938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13939 # Instead, we relocate shared libraries at runtime.
13941 sysv4*MP*)
13942 if test -d /usr/nec; then
13943 lt_prog_compiler_pic_CXX=-Kconform_pic
13946 hpux*)
13947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13948 # not for PA HP-UX.
13949 case $host_cpu in
13950 hppa*64*|ia64*)
13953 lt_prog_compiler_pic_CXX='-fPIC'
13955 esac
13957 *qnx* | *nto*)
13958 # QNX uses GNU C++, but need to define -shared option too, otherwise
13959 # it will coredump.
13960 lt_prog_compiler_pic_CXX='-fPIC -shared'
13963 lt_prog_compiler_pic_CXX='-fPIC'
13965 esac
13966 else
13967 case $host_os in
13968 aix[4-9]*)
13969 # All AIX code is PIC.
13970 if test "$host_cpu" = ia64; then
13971 # AIX 5 now supports IA64 processor
13972 lt_prog_compiler_static_CXX='-Bstatic'
13973 else
13974 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13977 chorus*)
13978 case $cc_basename in
13979 cxch68*)
13980 # Green Hills C++ Compiler
13981 # _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"
13983 esac
13985 darwin*)
13986 # PIC is the default on this platform
13987 # Common symbols not allowed in MH_DYLIB files
13988 case $cc_basename in
13989 xlc*)
13990 lt_prog_compiler_pic_CXX='-qnocommon'
13991 lt_prog_compiler_wl_CXX='-Wl,'
13993 esac
13995 dgux*)
13996 case $cc_basename in
13997 ec++*)
13998 lt_prog_compiler_pic_CXX='-KPIC'
14000 ghcx*)
14001 # Green Hills C++ Compiler
14002 lt_prog_compiler_pic_CXX='-pic'
14006 esac
14008 freebsd* | dragonfly*)
14009 # FreeBSD uses GNU C++
14011 hpux9* | hpux10* | hpux11*)
14012 case $cc_basename in
14013 CC*)
14014 lt_prog_compiler_wl_CXX='-Wl,'
14015 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14016 if test "$host_cpu" != ia64; then
14017 lt_prog_compiler_pic_CXX='+Z'
14020 aCC*)
14021 lt_prog_compiler_wl_CXX='-Wl,'
14022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023 case $host_cpu in
14024 hppa*64*|ia64*)
14025 # +Z the default
14028 lt_prog_compiler_pic_CXX='+Z'
14030 esac
14034 esac
14036 interix*)
14037 # This is c89, which is MS Visual C++ (no shared libs)
14038 # Anyone wants to do a port?
14040 irix5* | irix6* | nonstopux*)
14041 case $cc_basename in
14042 CC*)
14043 lt_prog_compiler_wl_CXX='-Wl,'
14044 lt_prog_compiler_static_CXX='-non_shared'
14045 # CC pic flag -KPIC is the default.
14049 esac
14051 linux* | k*bsd*-gnu)
14052 case $cc_basename in
14053 KCC*)
14054 # KAI C++ Compiler
14055 lt_prog_compiler_wl_CXX='--backend -Wl,'
14056 lt_prog_compiler_pic_CXX='-fPIC'
14058 icpc* | ecpc* )
14059 # Intel C++
14060 lt_prog_compiler_wl_CXX='-Wl,'
14061 lt_prog_compiler_pic_CXX='-KPIC'
14062 lt_prog_compiler_static_CXX='-static'
14064 pgCC*)
14065 # Portland Group C++ compiler
14066 lt_prog_compiler_wl_CXX='-Wl,'
14067 lt_prog_compiler_pic_CXX='-fpic'
14068 lt_prog_compiler_static_CXX='-Bstatic'
14070 cxx*)
14071 # Compaq C++
14072 # Make sure the PIC flag is empty. It appears that all Alpha
14073 # Linux and Compaq Tru64 Unix objects are PIC.
14074 lt_prog_compiler_pic_CXX=
14075 lt_prog_compiler_static_CXX='-non_shared'
14078 case `$CC -V 2>&1 | sed 5q` in
14079 *Sun\ C*)
14080 # Sun C++ 5.9
14081 lt_prog_compiler_pic_CXX='-KPIC'
14082 lt_prog_compiler_static_CXX='-Bstatic'
14083 lt_prog_compiler_wl_CXX='-Qoption ld '
14085 esac
14087 esac
14089 lynxos*)
14091 m88k*)
14093 mvs*)
14094 case $cc_basename in
14095 cxx*)
14096 lt_prog_compiler_pic_CXX='-W c,exportall'
14100 esac
14102 netbsd*)
14104 *qnx* | *nto*)
14105 # QNX uses GNU C++, but need to define -shared option too, otherwise
14106 # it will coredump.
14107 lt_prog_compiler_pic_CXX='-fPIC -shared'
14109 osf3* | osf4* | osf5*)
14110 case $cc_basename in
14111 KCC*)
14112 lt_prog_compiler_wl_CXX='--backend -Wl,'
14114 RCC*)
14115 # Rational C++ 2.4.1
14116 lt_prog_compiler_pic_CXX='-pic'
14118 cxx*)
14119 # Digital/Compaq C++
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 # Make sure the PIC flag is empty. It appears that all Alpha
14122 # Linux and Compaq Tru64 Unix objects are PIC.
14123 lt_prog_compiler_pic_CXX=
14124 lt_prog_compiler_static_CXX='-non_shared'
14128 esac
14130 psos*)
14132 solaris*)
14133 case $cc_basename in
14134 CC*)
14135 # Sun C++ 4.2, 5.x and Centerline C++
14136 lt_prog_compiler_pic_CXX='-KPIC'
14137 lt_prog_compiler_static_CXX='-Bstatic'
14138 lt_prog_compiler_wl_CXX='-Qoption ld '
14140 gcx*)
14141 # Green Hills C++ Compiler
14142 lt_prog_compiler_pic_CXX='-PIC'
14146 esac
14148 sunos4*)
14149 case $cc_basename in
14150 CC*)
14151 # Sun C++ 4.x
14152 lt_prog_compiler_pic_CXX='-pic'
14153 lt_prog_compiler_static_CXX='-Bstatic'
14155 lcc*)
14156 # Lucid
14157 lt_prog_compiler_pic_CXX='-pic'
14161 esac
14163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14164 case $cc_basename in
14165 CC*)
14166 lt_prog_compiler_wl_CXX='-Wl,'
14167 lt_prog_compiler_pic_CXX='-KPIC'
14168 lt_prog_compiler_static_CXX='-Bstatic'
14170 esac
14172 tandem*)
14173 case $cc_basename in
14174 NCC*)
14175 # NonStop-UX NCC 3.20
14176 lt_prog_compiler_pic_CXX='-KPIC'
14180 esac
14182 vxworks*)
14185 lt_prog_compiler_can_build_shared_CXX=no
14187 esac
14190 case $host_os in
14191 # For platforms which do not support PIC, -DPIC is meaningless:
14192 *djgpp*)
14193 lt_prog_compiler_pic_CXX=
14196 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14198 esac
14199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14200 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14205 # Check to make sure the PIC flag actually works.
14207 if test -n "$lt_prog_compiler_pic_CXX"; then
14208 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14209 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14210 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 lt_prog_compiler_pic_works_CXX=no
14214 ac_outfile=conftest.$ac_objext
14215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14217 # Insert the option either (1) after the last *FLAGS variable, or
14218 # (2) before a word containing "conftest.", or (3) at the end.
14219 # Note that $ac_compile itself does not contain backslashes and begins
14220 # with a dollar sign (not a hyphen), so the echo should work correctly.
14221 # The option is referenced via a variable to avoid confusing sed.
14222 lt_compile=`echo "$ac_compile" | $SED \
14223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225 -e 's:$: $lt_compiler_flag:'`
14226 (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227 (eval "$lt_compile" 2>conftest.err)
14228 ac_status=$?
14229 cat conftest.err >&5
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 if (exit $ac_status) && test -s "$ac_outfile"; then
14232 # The compiler can only warn and ignore the option if not recognized
14233 # So say no if there are warnings other than the usual output.
14234 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14237 lt_prog_compiler_pic_works_CXX=yes
14240 $RM conftest*
14243 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14244 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14246 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14247 case $lt_prog_compiler_pic_CXX in
14248 "" | " "*) ;;
14249 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14250 esac
14251 else
14252 lt_prog_compiler_pic_CXX=
14253 lt_prog_compiler_can_build_shared_CXX=no
14261 # Check to make sure the static flag actually works.
14263 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14264 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14265 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14266 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 lt_prog_compiler_static_works_CXX=no
14270 save_LDFLAGS="$LDFLAGS"
14271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14272 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14274 # The linker can only warn and ignore the option if not recognized
14275 # So say no if there are warnings
14276 if test -s conftest.err; then
14277 # Append any errors to the config.log.
14278 cat conftest.err 1>&5
14279 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281 if diff conftest.exp conftest.er2 >/dev/null; then
14282 lt_prog_compiler_static_works_CXX=yes
14284 else
14285 lt_prog_compiler_static_works_CXX=yes
14288 $RM conftest*
14289 LDFLAGS="$save_LDFLAGS"
14292 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14293 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14295 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14297 else
14298 lt_prog_compiler_static_CXX=
14304 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14305 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14306 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 lt_cv_prog_compiler_c_o_CXX=no
14310 $RM -r conftest 2>/dev/null
14311 mkdir conftest
14312 cd conftest
14313 mkdir out
14314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14316 lt_compiler_flag="-o out/conftest2.$ac_objext"
14317 # Insert the option either (1) after the last *FLAGS variable, or
14318 # (2) before a word containing "conftest.", or (3) at the end.
14319 # Note that $ac_compile itself does not contain backslashes and begins
14320 # with a dollar sign (not a hyphen), so the echo should work correctly.
14321 lt_compile=`echo "$ac_compile" | $SED \
14322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14324 -e 's:$: $lt_compiler_flag:'`
14325 (eval echo "\"\$as_me:14325: $lt_compile\"" >&5)
14326 (eval "$lt_compile" 2>out/conftest.err)
14327 ac_status=$?
14328 cat out/conftest.err >&5
14329 echo "$as_me:14329: \$? = $ac_status" >&5
14330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14331 then
14332 # The compiler can only warn and ignore the option if not recognized
14333 # So say no if there are warnings
14334 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14335 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14336 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14337 lt_cv_prog_compiler_c_o_CXX=yes
14340 chmod u+w . 2>&5
14341 $RM conftest*
14342 # SGI C++ compiler will create directory out/ii_files/ for
14343 # template instantiation
14344 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14345 $RM out/* && rmdir out
14346 cd ..
14347 $RM -r conftest
14348 $RM conftest*
14351 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14352 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14356 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14357 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14358 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 lt_cv_prog_compiler_c_o_CXX=no
14362 $RM -r conftest 2>/dev/null
14363 mkdir conftest
14364 cd conftest
14365 mkdir out
14366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14368 lt_compiler_flag="-o out/conftest2.$ac_objext"
14369 # Insert the option either (1) after the last *FLAGS variable, or
14370 # (2) before a word containing "conftest.", or (3) at the end.
14371 # Note that $ac_compile itself does not contain backslashes and begins
14372 # with a dollar sign (not a hyphen), so the echo should work correctly.
14373 lt_compile=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
14377 (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>out/conftest.err)
14379 ac_status=$?
14380 cat out/conftest.err >&5
14381 echo "$as_me:14381: \$? = $ac_status" >&5
14382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14383 then
14384 # The compiler can only warn and ignore the option if not recognized
14385 # So say no if there are warnings
14386 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14389 lt_cv_prog_compiler_c_o_CXX=yes
14392 chmod u+w . 2>&5
14393 $RM conftest*
14394 # SGI C++ compiler will create directory out/ii_files/ for
14395 # template instantiation
14396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14397 $RM out/* && rmdir out
14398 cd ..
14399 $RM -r conftest
14400 $RM conftest*
14403 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14404 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14409 hard_links="nottested"
14410 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14411 # do not overwrite the value of need_locks provided by the user
14412 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14413 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14414 hard_links=yes
14415 $RM conftest*
14416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14417 touch conftest.a
14418 ln conftest.a conftest.b 2>&5 || hard_links=no
14419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14420 echo "$as_me:$LINENO: result: $hard_links" >&5
14421 echo "${ECHO_T}$hard_links" >&6
14422 if test "$hard_links" = no; then
14423 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14424 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14425 need_locks=warn
14427 else
14428 need_locks=no
14433 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14437 case $host_os in
14438 aix[4-9]*)
14439 # If we're using GNU nm, then we don't want the "-C" option.
14440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14441 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14442 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'
14443 else
14444 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'
14447 pw32*)
14448 export_symbols_cmds_CXX="$ltdll_cmds"
14450 cygwin* | mingw*)
14451 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'
14454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14456 esac
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
14462 with_gnu_ld_CXX=$with_gnu_ld
14470 # Do we need to explicitly link libc?
14472 case "x$archive_cmds_need_lc_CXX" in
14473 x|xyes)
14474 # Assume -lc should be added
14475 archive_cmds_need_lc_CXX=yes
14477 if test "$enable_shared" = yes && test "$GCC" = yes; then
14478 case $archive_cmds_CXX in
14479 *'~'*)
14480 # FIXME: we may have to deal with multi-command sequences.
14482 '$CC '*)
14483 # Test whether the compiler implicitly links with -lc since on some
14484 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14485 # to ld, don't add -lc before -lgcc.
14486 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14487 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14488 $RM conftest*
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } 2>conftest.err; then
14496 soname=conftest
14497 lib=conftest
14498 libobjs=conftest.$ac_objext
14499 deplibs=
14500 wl=$lt_prog_compiler_wl_CXX
14501 pic_flag=$lt_prog_compiler_pic_CXX
14502 compiler_flags=-v
14503 linker_flags=-v
14504 verstring=
14505 output_objdir=.
14506 libname=conftest
14507 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14508 allow_undefined_flag_CXX=
14509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14510 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }
14514 then
14515 archive_cmds_need_lc_CXX=no
14516 else
14517 archive_cmds_need_lc_CXX=yes
14519 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14520 else
14521 cat conftest.err 1>&5
14523 $RM conftest*
14524 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14525 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14527 esac
14530 esac
14595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14597 withGCC=$GXX
14598 library_names_spec=
14599 libname_spec='lib$name'
14600 soname_spec=
14601 shrext_cmds=".so"
14602 postinstall_cmds=
14603 postuninstall_cmds=
14604 finish_cmds=
14605 finish_eval=
14606 shlibpath_var=
14607 shlibpath_overrides_runpath=unknown
14608 version_type=none
14609 dynamic_linker="$host_os ld.so"
14610 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14611 need_lib_prefix=unknown
14612 hardcode_into_libs=no
14614 # when you set need_version to no, make sure it does not cause -set_version
14615 # flags to be left without arguments
14616 need_version=unknown
14618 case $host_os in
14619 aix3*)
14620 version_type=linux
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14622 shlibpath_var=LIBPATH
14624 # AIX 3 has no versioning support, so we append a major version to the name.
14625 soname_spec='${libname}${release}${shared_ext}$major'
14628 aix[4-9]*)
14629 version_type=linux
14630 need_lib_prefix=no
14631 need_version=no
14632 hardcode_into_libs=yes
14633 if test "$host_cpu" = ia64; then
14634 # AIX 5 supports IA64
14635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 else
14638 # With GCC up to 2.95.x, collect2 would create an import file
14639 # for dependence libraries. The import file would start with
14640 # the line `#! .'. This would cause the generated library to
14641 # depend on `.', always an invalid library. This was fixed in
14642 # development snapshots of GCC prior to 3.0.
14643 case $host_os in
14644 aix4 | aix4.[01] | aix4.[01].*)
14645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14646 echo ' yes '
14647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14649 else
14650 can_build_shared=no
14653 esac
14654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14655 # soname into executable. Probably we can add versioning support to
14656 # collect2, so additional links can be useful in future.
14657 if test "$aix_use_runtimelinking" = yes; then
14658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14659 # instead of lib<name>.a to let people know that these are not
14660 # typical AIX shared libraries.
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 else
14663 # We preserve .a as extension for shared libraries through AIX4.2
14664 # and later when we are not doing run time linking.
14665 library_names_spec='${libname}${release}.a $libname.a'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LIBPATH
14672 amigaos*)
14673 if test "$host_cpu" = m68k; then
14674 library_names_spec='$libname.ixlibrary $libname.a'
14675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14676 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'
14677 else
14678 dynamic_linker=no
14682 beos*)
14683 library_names_spec='${libname}${shared_ext}'
14684 dynamic_linker="$host_os ld.so"
14685 shlibpath_var=LIBRARY_PATH
14688 bsdi[45]*)
14689 version_type=linux
14690 need_version=no
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14697 # the default ld.so.conf also contains /usr/contrib/lib and
14698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14699 # libtool to hard-code these into programs
14702 cygwin* | mingw* | pw32*)
14703 version_type=windows
14704 shrext_cmds=".dll"
14705 need_version=no
14706 need_lib_prefix=no
14708 case $withGCC,$host_os in
14709 yes,cygwin* | yes,mingw* | yes,pw32*)
14710 library_names_spec='$libname.dll.a'
14711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14712 postinstall_cmds='base_file=`basename \${file}`~
14713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14714 dldir=$destdir/`dirname \$dlpath`~
14715 test -d \$dldir || mkdir -p \$dldir~
14716 $install_prog $dir/$dlname \$dldir/$dlname~
14717 chmod a+x \$dldir/$dlname~
14718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14722 dlpath=$dir/\$dldll~
14723 $RM \$dlpath'
14724 shlibpath_overrides_runpath=yes
14726 case $host_os in
14727 cygwin*)
14728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14732 mingw*)
14733 # MinGW DLLs use traditional 'lib' prefix
14734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14735 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14737 # It is most probably a Windows format PATH printed by
14738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14739 # path with ; separators, and with drive letters. We can handle the
14740 # drive letters (cygwin fileutils understands them), so leave them,
14741 # especially as we might pass files found there to a mingw objdump,
14742 # which wouldn't understand a cygwinified path. Ahh.
14743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14744 else
14745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14748 pw32*)
14749 # pw32 DLLs use 'pw' prefix rather than 'lib'
14750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14752 esac
14756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14758 esac
14759 dynamic_linker='Win32 ld.exe'
14760 # FIXME: first we should search . and the directory the executable is in
14761 shlibpath_var=PATH
14764 darwin* | rhapsody*)
14765 dynamic_linker="$host_os dyld"
14766 version_type=darwin
14767 need_lib_prefix=no
14768 need_version=no
14769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14770 soname_spec='${libname}${release}${major}$shared_ext'
14771 shlibpath_overrides_runpath=yes
14772 shlibpath_var=DYLD_LIBRARY_PATH
14773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14778 dgux*)
14779 version_type=linux
14780 need_lib_prefix=no
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14787 freebsd1*)
14788 dynamic_linker=no
14791 freebsd* | dragonfly*)
14792 # DragonFly does not have aout. When/if they implement a new
14793 # versioning mechanism, adjust this.
14794 if test -x /usr/bin/objformat; then
14795 objformat=`/usr/bin/objformat`
14796 else
14797 case $host_os in
14798 freebsd[123]*) objformat=aout ;;
14799 *) objformat=elf ;;
14800 esac
14802 version_type=freebsd-$objformat
14803 case $version_type in
14804 freebsd-elf*)
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14806 need_version=no
14807 need_lib_prefix=no
14809 freebsd-*)
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14811 need_version=yes
14813 esac
14814 shlibpath_var=LD_LIBRARY_PATH
14815 case $host_os in
14816 freebsd2*)
14817 shlibpath_overrides_runpath=yes
14819 freebsd3.[01]* | freebsdelf3.[01]*)
14820 shlibpath_overrides_runpath=yes
14821 hardcode_into_libs=yes
14823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14825 shlibpath_overrides_runpath=no
14826 hardcode_into_libs=yes
14828 *) # from 4.6 on, and DragonFly
14829 shlibpath_overrides_runpath=yes
14830 hardcode_into_libs=yes
14832 esac
14835 gnu*)
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 hardcode_into_libs=yes
14845 hpux9* | hpux10* | hpux11*)
14846 # Give a soname corresponding to the major version so that dld.sl refuses to
14847 # link against other versions.
14848 version_type=sunos
14849 need_lib_prefix=no
14850 need_version=no
14851 case $host_cpu in
14852 ia64*)
14853 shrext_cmds='.so'
14854 hardcode_into_libs=yes
14855 dynamic_linker="$host_os dld.so"
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 if test "X$HPUX_IA64_MODE" = X32; then
14861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14862 else
14863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14867 hppa*64*)
14868 shrext_cmds='.sl'
14869 hardcode_into_libs=yes
14870 dynamic_linker="$host_os dld.sl"
14871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14879 shrext_cmds='.sl'
14880 dynamic_linker="$host_os dld.sl"
14881 shlibpath_var=SHLIB_PATH
14882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14886 esac
14887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14888 postinstall_cmds='chmod 555 $lib'
14891 interix[3-9]*)
14892 version_type=linux
14893 need_lib_prefix=no
14894 need_version=no
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=no
14900 hardcode_into_libs=yes
14903 irix5* | irix6* | nonstopux*)
14904 case $host_os in
14905 nonstopux*) version_type=nonstopux ;;
14907 if test "$lt_cv_prog_gnu_ld" = yes; then
14908 version_type=linux
14909 else
14910 version_type=irix
14911 fi ;;
14912 esac
14913 need_lib_prefix=no
14914 need_version=no
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14917 case $host_os in
14918 irix5* | nonstopux*)
14919 libsuff= shlibsuff=
14922 case $LD in # libtool.m4 will add one of these switches to LD
14923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14924 libsuff= shlibsuff= libmagic=32-bit;;
14925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14926 libsuff=32 shlibsuff=N32 libmagic=N32;;
14927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14929 *) libsuff= shlibsuff= libmagic=never-match;;
14930 esac
14932 esac
14933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14934 shlibpath_overrides_runpath=no
14935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14937 hardcode_into_libs=yes
14940 # No shared lib support for Linux oldld, aout, or coff.
14941 linux*oldld* | linux*aout* | linux*coff*)
14942 dynamic_linker=no
14945 # This must be Linux ELF.
14946 linux* | k*bsd*-gnu)
14947 version_type=linux
14948 need_lib_prefix=no
14949 need_version=no
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 shlibpath_overrides_runpath=no
14955 # Some binutils ld are patched to set DT_RUNPATH
14956 save_LDFLAGS=$LDFLAGS
14957 save_libdir=$libdir
14958 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14959 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14960 if test x$gcc_no_link = xyes; then
14961 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14963 { (exit 1); exit 1; }; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14973 main ()
14977 return 0;
14979 _ACEOF
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>conftest.er1
14983 ac_status=$?
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -z "$ac_cxx_werror_flag"
14990 || test ! -s conftest.err'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15003 shlibpath_overrides_runpath=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15011 rm -f conftest.err conftest.$ac_objext \
15012 conftest$ac_exeext conftest.$ac_ext
15013 LDFLAGS=$save_LDFLAGS
15014 libdir=$save_libdir
15016 # This implies no fast_install, which is unacceptable.
15017 # Some rework will be needed to allow for fast_install
15018 # before this can be enabled.
15019 hardcode_into_libs=yes
15021 # Append ld.so.conf contents to the search path
15022 if test -f /etc/ld.so.conf; then
15023 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15024 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15027 # We used to test for /lib/ld.so.1 and disable shared libraries on
15028 # powerpc, because MkLinux only supported shared libraries with the
15029 # GNU dynamic linker. Since this was broken with cross compilers,
15030 # most powerpc-linux boxes support dynamic linking these days and
15031 # people can always --disable-shared, the test was removed, and we
15032 # assume the GNU/Linux dynamic linker is in use.
15033 dynamic_linker='GNU/Linux ld.so'
15036 netbsd*)
15037 version_type=sunos
15038 need_lib_prefix=no
15039 need_version=no
15040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15043 dynamic_linker='NetBSD (a.out) ld.so'
15044 else
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 dynamic_linker='NetBSD ld.elf_so'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=yes
15051 hardcode_into_libs=yes
15054 newsos6)
15055 version_type=linux
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15061 *nto* | *qnx*)
15062 version_type=qnx
15063 need_lib_prefix=no
15064 need_version=no
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15068 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes
15070 dynamic_linker='ldqnx.so'
15073 openbsd*)
15074 version_type=sunos
15075 sys_lib_dlsearch_path_spec="/usr/lib"
15076 need_lib_prefix=no
15077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15078 case $host_os in
15079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15080 *) need_version=no ;;
15081 esac
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15086 case $host_os in
15087 openbsd2.[89] | openbsd2.[89].*)
15088 shlibpath_overrides_runpath=no
15091 shlibpath_overrides_runpath=yes
15093 esac
15094 else
15095 shlibpath_overrides_runpath=yes
15099 os2*)
15100 libname_spec='$name'
15101 shrext_cmds=".dll"
15102 need_lib_prefix=no
15103 library_names_spec='$libname${shared_ext} $libname.a'
15104 dynamic_linker='OS/2 ld.exe'
15105 shlibpath_var=LIBPATH
15108 osf3* | osf4* | osf5*)
15109 version_type=osf
15110 need_lib_prefix=no
15111 need_version=no
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15119 rdos*)
15120 dynamic_linker=no
15123 solaris*)
15124 version_type=linux
15125 need_lib_prefix=no
15126 need_version=no
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15132 # ldd complains unless libraries are executable
15133 postinstall_cmds='chmod +x $lib'
15136 sunos4*)
15137 version_type=sunos
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 if test "$with_gnu_ld" = yes; then
15143 need_lib_prefix=no
15145 need_version=yes
15148 sysv4 | sysv4.3*)
15149 version_type=linux
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 case $host_vendor in
15154 sni)
15155 shlibpath_overrides_runpath=no
15156 need_lib_prefix=no
15157 runpath_var=LD_RUN_PATH
15159 siemens)
15160 need_lib_prefix=no
15162 motorola)
15163 need_lib_prefix=no
15164 need_version=no
15165 shlibpath_overrides_runpath=no
15166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15168 esac
15171 sysv4*MP*)
15172 if test -d /usr/nec ;then
15173 version_type=linux
15174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15175 soname_spec='$libname${shared_ext}.$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15181 version_type=freebsd-elf
15182 need_lib_prefix=no
15183 need_version=no
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes
15188 hardcode_into_libs=yes
15189 if test "$with_gnu_ld" = yes; then
15190 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15191 else
15192 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15193 case $host_os in
15194 sco3.2v5*)
15195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15197 esac
15199 sys_lib_dlsearch_path_spec='/usr/lib'
15202 tpf*)
15203 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15204 version_type=linux
15205 need_lib_prefix=no
15206 need_version=no
15207 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=no
15210 hardcode_into_libs=yes
15213 uts4*)
15214 version_type=linux
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 shlibpath_var=LD_LIBRARY_PATH
15221 dynamic_linker=no
15223 esac
15224 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15225 echo "${ECHO_T}$dynamic_linker" >&6
15226 test "$dynamic_linker" = no && can_build_shared=no
15228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15229 if test "$GCC" = yes; then
15230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15268 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15270 hardcode_action_CXX=
15271 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15272 test -n "$runpath_var_CXX" ||
15273 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15275 # We can hardcode non-existent directories.
15276 if test "$hardcode_direct_CXX" != no &&
15277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15278 # have to relink, otherwise we might link with an installed library
15279 # when we should be linking with a yet-to-be-installed one
15280 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15281 test "$hardcode_minus_L_CXX" != no; then
15282 # Linking always hardcodes the temporary library directory.
15283 hardcode_action_CXX=relink
15284 else
15285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15286 hardcode_action_CXX=immediate
15288 else
15289 # We cannot hardcode anything, or else we can only hardcode existing
15290 # directories.
15291 hardcode_action_CXX=unsupported
15293 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15294 echo "${ECHO_T}$hardcode_action_CXX" >&6
15296 if test "$hardcode_action_CXX" = relink ||
15297 test "$inherit_rpath_CXX" = yes; then
15298 # Fast installation is not supported
15299 enable_fast_install=no
15300 elif test "$shlibpath_overrides_runpath" = yes ||
15301 test "$enable_shared" = no; then
15302 # Fast installation is not necessary
15303 enable_fast_install=needless
15312 fi # test -n "$compiler"
15314 CC=$lt_save_CC
15315 LDCXX=$LD
15316 LD=$lt_save_LD
15317 GCC=$lt_save_GCC
15318 with_gnu_ld=$lt_save_with_gnu_ld
15319 lt_cv_path_LDCXX=$lt_cv_path_LD
15320 lt_cv_path_LD=$lt_save_path_LD
15321 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15322 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15323 fi # test "$_lt_caught_CXX_error" != yes
15325 ac_ext=c
15326 ac_cpp='$CPP $CPPFLAGS'
15327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15343 ac_config_commands="$ac_config_commands libtool"
15348 # Only expand once:
15352 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
15354 # Extract the first word of "$ac_prog", so it can be a program name with args.
15355 set dummy $ac_prog; ac_word=$2
15356 echo "$as_me:$LINENO: checking for $ac_word" >&5
15357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15358 if test "${ac_cv_prog_GCJ+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361 if test -n "$GCJ"; then
15362 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15363 else
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_GCJ="$ac_prog"
15372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15375 done
15376 done
15380 GCJ=$ac_cv_prog_GCJ
15381 if test -n "$GCJ"; then
15382 echo "$as_me:$LINENO: result: $GCJ" >&5
15383 echo "${ECHO_T}$GCJ" >&6
15384 else
15385 echo "$as_me:$LINENO: result: no" >&5
15386 echo "${ECHO_T}no" >&6
15389 test -n "$GCJ" && break
15390 done
15391 test -n "$GCJ" || GCJ="gcj"
15393 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15394 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15395 { (exit 1); exit 1; }; }
15396 if test "x${GCJFLAGS-unset}" = xunset; then
15397 GCJFLAGS="-g -O2"
15401 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15403 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15405 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15409 # We make a subdir and do the tests there. Otherwise we can end up
15410 # making bogus files that we don't know about and never remove. For
15411 # instance it was reported that on HP-UX the gcc test will end up
15412 # making a dummy file named `D' -- because `-MD' means `put the output
15413 # in D'.
15414 mkdir conftest.dir
15415 # Copy depcomp to subdir because otherwise we won't find it if we're
15416 # using a relative directory.
15417 cp "$am_depcomp" conftest.dir
15418 cd conftest.dir
15419 # We will build objects and dependencies in a subdirectory because
15420 # it helps to detect inapplicable dependency modes. For instance
15421 # both Tru64's cc and ICC support -MD to output dependencies as a
15422 # side effect of compilation, but ICC will put the dependencies in
15423 # the current directory while Tru64 will put them in the object
15424 # directory.
15425 mkdir sub
15427 am_cv_GCJ_dependencies_compiler_type=none
15428 if test "$am_compiler_list" = ""; then
15429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15431 for depmode in $am_compiler_list; do
15432 # Setup a source with many dependencies, because some compilers
15433 # like to wrap large dependency lists on column 80 (with \), and
15434 # we should not choose a depcomp mode which is confused by this.
15436 # We need to recreate these files for each test, as the compiler may
15437 # overwrite some of them when testing with obscure command lines.
15438 # This happens at least with the AIX C compiler.
15439 : > sub/conftest.c
15440 for i in 1 2 3 4 5 6; do
15441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15443 # Solaris 8's {/usr,}/bin/sh.
15444 touch sub/conftst$i.h
15445 done
15446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15448 case $depmode in
15449 nosideeffect)
15450 # after this tag, mechanisms are not by side-effect, so they'll
15451 # only be used when explicitly requested
15452 if test "x$enable_dependency_tracking" = xyes; then
15453 continue
15454 else
15455 break
15458 none) break ;;
15459 esac
15460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15461 # mode. It turns out that the SunPro C++ compiler does not properly
15462 # handle `-M -o', and we need to detect this.
15463 if depmode=$depmode \
15464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15467 >/dev/null 2>conftest.err &&
15468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15469 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15471 # icc doesn't choke on unknown options, it will just issue warnings
15472 # or remarks (even with -Werror). So we grep stderr for any message
15473 # that says an option was ignored or not supported.
15474 # When given -MP, icc 7.0 and 7.1 complain thusly:
15475 # icc: Command line warning: ignoring option '-M'; no argument required
15476 # The diagnosis changed in icc 8.0:
15477 # icc: Command line remark: option '-MP' not supported
15478 if (grep 'ignoring option' conftest.err ||
15479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15480 am_cv_GCJ_dependencies_compiler_type=$depmode
15481 break
15484 done
15486 cd ..
15487 rm -rf conftest.dir
15488 else
15489 am_cv_GCJ_dependencies_compiler_type=none
15493 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15494 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15495 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15500 test "x$enable_dependency_tracking" != xno \
15501 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15502 am__fastdepGCJ_TRUE=
15503 am__fastdepGCJ_FALSE='#'
15504 else
15505 am__fastdepGCJ_TRUE='#'
15506 am__fastdepGCJ_FALSE=
15511 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
15513 # Extract the first word of "$ac_prog", so it can be a program name with args.
15514 set dummy $ac_prog; ac_word=$2
15515 echo "$as_me:$LINENO: checking for $ac_word" >&5
15516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15517 if test "${ac_cv_prog_GCJ+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 if test -n "$GCJ"; then
15521 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15522 else
15523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15524 for as_dir in $PATH
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15530 ac_cv_prog_GCJ="$ac_prog"
15531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15532 break 2
15534 done
15535 done
15539 GCJ=$ac_cv_prog_GCJ
15540 if test -n "$GCJ"; then
15541 echo "$as_me:$LINENO: result: $GCJ" >&5
15542 echo "${ECHO_T}$GCJ" >&6
15543 else
15544 echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6
15548 test -n "$GCJ" && break
15549 done
15550 test -n "$GCJ" || GCJ="gcj"
15552 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15553 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15554 { (exit 1); exit 1; }; }
15555 if test "x${GCJFLAGS-unset}" = xunset; then
15556 GCJFLAGS="-g -O2"
15560 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15562 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15563 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15564 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15568 # We make a subdir and do the tests there. Otherwise we can end up
15569 # making bogus files that we don't know about and never remove. For
15570 # instance it was reported that on HP-UX the gcc test will end up
15571 # making a dummy file named `D' -- because `-MD' means `put the output
15572 # in D'.
15573 mkdir conftest.dir
15574 # Copy depcomp to subdir because otherwise we won't find it if we're
15575 # using a relative directory.
15576 cp "$am_depcomp" conftest.dir
15577 cd conftest.dir
15578 # We will build objects and dependencies in a subdirectory because
15579 # it helps to detect inapplicable dependency modes. For instance
15580 # both Tru64's cc and ICC support -MD to output dependencies as a
15581 # side effect of compilation, but ICC will put the dependencies in
15582 # the current directory while Tru64 will put them in the object
15583 # directory.
15584 mkdir sub
15586 am_cv_GCJ_dependencies_compiler_type=none
15587 if test "$am_compiler_list" = ""; then
15588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15590 for depmode in $am_compiler_list; do
15591 # Setup a source with many dependencies, because some compilers
15592 # like to wrap large dependency lists on column 80 (with \), and
15593 # we should not choose a depcomp mode which is confused by this.
15595 # We need to recreate these files for each test, as the compiler may
15596 # overwrite some of them when testing with obscure command lines.
15597 # This happens at least with the AIX C compiler.
15598 : > sub/conftest.c
15599 for i in 1 2 3 4 5 6; do
15600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15602 # Solaris 8's {/usr,}/bin/sh.
15603 touch sub/conftst$i.h
15604 done
15605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15607 case $depmode in
15608 nosideeffect)
15609 # after this tag, mechanisms are not by side-effect, so they'll
15610 # only be used when explicitly requested
15611 if test "x$enable_dependency_tracking" = xyes; then
15612 continue
15613 else
15614 break
15617 none) break ;;
15618 esac
15619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15620 # mode. It turns out that the SunPro C++ compiler does not properly
15621 # handle `-M -o', and we need to detect this.
15622 if depmode=$depmode \
15623 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15625 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15626 >/dev/null 2>conftest.err &&
15627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15628 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15630 # icc doesn't choke on unknown options, it will just issue warnings
15631 # or remarks (even with -Werror). So we grep stderr for any message
15632 # that says an option was ignored or not supported.
15633 # When given -MP, icc 7.0 and 7.1 complain thusly:
15634 # icc: Command line warning: ignoring option '-M'; no argument required
15635 # The diagnosis changed in icc 8.0:
15636 # icc: Command line remark: option '-MP' not supported
15637 if (grep 'ignoring option' conftest.err ||
15638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15639 am_cv_GCJ_dependencies_compiler_type=$depmode
15640 break
15643 done
15645 cd ..
15646 rm -rf conftest.dir
15647 else
15648 am_cv_GCJ_dependencies_compiler_type=none
15652 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15653 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15654 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15659 test "x$enable_dependency_tracking" != xno \
15660 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15661 am__fastdepGCJ_TRUE=
15662 am__fastdepGCJ_FALSE='#'
15663 else
15664 am__fastdepGCJ_TRUE='#'
15665 am__fastdepGCJ_FALSE=
15673 # Source file extension for Java test sources.
15674 ac_ext=c
15676 # Object file extension for compiled Java test sources.
15677 objext=o
15678 objext_GCJ=$objext
15680 # Code to be used in simple compile tests
15681 lt_simple_compile_test_code="int some_variable = 0;"
15683 # Code to be used in simple link tests
15684 lt_simple_link_test_code='int main(){return(0);}'
15686 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15693 # If no C compiler was specified, use CC.
15694 LTCC=${LTCC-"$CC"}
15696 # If no C compiler flags were specified, use CFLAGS.
15697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15699 # Allow CC to be a program name with arguments.
15700 compiler=$CC
15703 # save warnings/boilerplate of simple test code
15704 ac_outfile=conftest.$ac_objext
15705 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15706 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15707 _lt_compiler_boilerplate=`cat conftest.err`
15708 $RM conftest*
15710 ac_outfile=conftest.$ac_objext
15711 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15712 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15713 _lt_linker_boilerplate=`cat conftest.err`
15714 $RM conftest*
15717 # Allow CC to be a program name with arguments.
15718 compiler=$CC
15719 compiler_GCJ=$CC
15720 for cc_temp in $compiler""; do
15721 case $cc_temp in
15722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15724 \-*) ;;
15725 *) break;;
15726 esac
15727 done
15728 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15731 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15732 archive_cmds_need_lc_GCJ=no
15734 old_archive_cmds_GCJ=$old_archive_cmds
15736 ## CAVEAT EMPTOR:
15737 ## There is no encapsulation within the following macros, do not change
15738 ## the running order or otherwise move them around unless you know exactly
15739 ## what you are doing...
15740 if test -n "$compiler"; then
15742 lt_prog_compiler_no_builtin_flag_GCJ=
15744 if test "$GCC" = yes; then
15745 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15747 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15748 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15749 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 lt_cv_prog_compiler_rtti_exceptions=no
15753 ac_outfile=conftest.$ac_objext
15754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15755 lt_compiler_flag="-fno-rtti -fno-exceptions"
15756 # Insert the option either (1) after the last *FLAGS variable, or
15757 # (2) before a word containing "conftest.", or (3) at the end.
15758 # Note that $ac_compile itself does not contain backslashes and begins
15759 # with a dollar sign (not a hyphen), so the echo should work correctly.
15760 # The option is referenced via a variable to avoid confusing sed.
15761 lt_compile=`echo "$ac_compile" | $SED \
15762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15764 -e 's:$: $lt_compiler_flag:'`
15765 (eval echo "\"\$as_me:15765: $lt_compile\"" >&5)
15766 (eval "$lt_compile" 2>conftest.err)
15767 ac_status=$?
15768 cat conftest.err >&5
15769 echo "$as_me:15769: \$? = $ac_status" >&5
15770 if (exit $ac_status) && test -s "$ac_outfile"; then
15771 # The compiler can only warn and ignore the option if not recognized
15772 # So say no if there are warnings other than the usual output.
15773 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15776 lt_cv_prog_compiler_rtti_exceptions=yes
15779 $RM conftest*
15782 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15783 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15785 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15786 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15787 else
15795 lt_prog_compiler_wl_GCJ=
15796 lt_prog_compiler_pic_GCJ=
15797 lt_prog_compiler_static_GCJ=
15799 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15802 if test "$GCC" = yes; then
15803 lt_prog_compiler_wl_GCJ='-Wl,'
15804 lt_prog_compiler_static_GCJ='-static'
15806 case $host_os in
15807 aix*)
15808 # All AIX code is PIC.
15809 if test "$host_cpu" = ia64; then
15810 # AIX 5 now supports IA64 processor
15811 lt_prog_compiler_static_GCJ='-Bstatic'
15815 amigaos*)
15816 if test "$host_cpu" = m68k; then
15817 # FIXME: we need at least 68020 code to build shared libraries, but
15818 # adding the `-m68020' flag to GCC prevents building anything better,
15819 # like `-m68040'.
15820 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15825 # PIC is the default for these OSes.
15828 mingw* | cygwin* | pw32* | os2*)
15829 # This hack is so that the source file can tell whether it is being
15830 # built for inclusion in a dll (and should export symbols for example).
15831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15832 # (--disable-auto-import) libraries
15836 darwin* | rhapsody*)
15837 # PIC is the default on this platform
15838 # Common symbols not allowed in MH_DYLIB files
15839 lt_prog_compiler_pic_GCJ='-fno-common'
15842 hpux*)
15843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15844 # not for PA HP-UX.
15845 case $host_cpu in
15846 hppa*64*|ia64*)
15847 # +Z the default
15850 lt_prog_compiler_pic_GCJ='-fPIC'
15852 esac
15855 interix[3-9]*)
15856 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15857 # Instead, we relocate shared libraries at runtime.
15860 msdosdjgpp*)
15861 # Just because we use GCC doesn't mean we suddenly get shared libraries
15862 # on systems that don't support them.
15863 lt_prog_compiler_can_build_shared_GCJ=no
15864 enable_shared=no
15867 *nto* | *qnx*)
15868 # QNX uses GNU C++, but need to define -shared option too, otherwise
15869 # it will coredump.
15870 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15873 sysv4*MP*)
15874 if test -d /usr/nec; then
15875 lt_prog_compiler_pic_GCJ=-Kconform_pic
15880 lt_prog_compiler_pic_GCJ='-fPIC'
15882 esac
15883 else
15884 # PORTME Check for flag to pass linker flags through the system compiler.
15885 case $host_os in
15886 aix*)
15887 lt_prog_compiler_wl_GCJ='-Wl,'
15888 if test "$host_cpu" = ia64; then
15889 # AIX 5 now supports IA64 processor
15890 lt_prog_compiler_static_GCJ='-Bstatic'
15891 else
15892 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15895 darwin*)
15896 # PIC is the default on this platform
15897 # Common symbols not allowed in MH_DYLIB files
15898 case $cc_basename in
15899 xlc*)
15900 lt_prog_compiler_pic_GCJ='-qnocommon'
15901 lt_prog_compiler_wl_GCJ='-Wl,'
15903 esac
15906 mingw* | cygwin* | pw32* | os2*)
15907 # This hack is so that the source file can tell whether it is being
15908 # built for inclusion in a dll (and should export symbols for example).
15912 hpux9* | hpux10* | hpux11*)
15913 lt_prog_compiler_wl_GCJ='-Wl,'
15914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15915 # not for PA HP-UX.
15916 case $host_cpu in
15917 hppa*64*|ia64*)
15918 # +Z the default
15921 lt_prog_compiler_pic_GCJ='+Z'
15923 esac
15924 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15925 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15928 irix5* | irix6* | nonstopux*)
15929 lt_prog_compiler_wl_GCJ='-Wl,'
15930 # PIC (with -KPIC) is the default.
15931 lt_prog_compiler_static_GCJ='-non_shared'
15934 linux* | k*bsd*-gnu)
15935 case $cc_basename in
15936 icc* | ecc*)
15937 lt_prog_compiler_wl_GCJ='-Wl,'
15938 lt_prog_compiler_pic_GCJ='-KPIC'
15939 lt_prog_compiler_static_GCJ='-static'
15941 pgcc* | pgf77* | pgf90* | pgf95*)
15942 # Portland Group compilers (*not* the Pentium gcc compiler,
15943 # which looks to be a dead project)
15944 lt_prog_compiler_wl_GCJ='-Wl,'
15945 lt_prog_compiler_pic_GCJ='-fpic'
15946 lt_prog_compiler_static_GCJ='-Bstatic'
15948 ccc*)
15949 lt_prog_compiler_wl_GCJ='-Wl,'
15950 # All Alpha code is PIC.
15951 lt_prog_compiler_static_GCJ='-non_shared'
15954 case `$CC -V 2>&1 | sed 5q` in
15955 *Sun\ C*)
15956 # Sun C 5.9
15957 lt_prog_compiler_pic_GCJ='-KPIC'
15958 lt_prog_compiler_static_GCJ='-Bstatic'
15959 lt_prog_compiler_wl_GCJ='-Wl,'
15961 *Sun\ F*)
15962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15963 lt_prog_compiler_pic_GCJ='-KPIC'
15964 lt_prog_compiler_static_GCJ='-Bstatic'
15965 lt_prog_compiler_wl_GCJ=''
15967 esac
15969 esac
15972 newsos6)
15973 lt_prog_compiler_pic_GCJ='-KPIC'
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15977 *nto* | *qnx*)
15978 # QNX uses GNU C++, but need to define -shared option too, otherwise
15979 # it will coredump.
15980 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15983 osf3* | osf4* | osf5*)
15984 lt_prog_compiler_wl_GCJ='-Wl,'
15985 # All OSF/1 code is PIC.
15986 lt_prog_compiler_static_GCJ='-non_shared'
15989 rdos*)
15990 lt_prog_compiler_static_GCJ='-non_shared'
15993 solaris*)
15994 lt_prog_compiler_pic_GCJ='-KPIC'
15995 lt_prog_compiler_static_GCJ='-Bstatic'
15996 case $cc_basename in
15997 f77* | f90* | f95*)
15998 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16000 lt_prog_compiler_wl_GCJ='-Wl,';;
16001 esac
16004 sunos4*)
16005 lt_prog_compiler_wl_GCJ='-Qoption ld '
16006 lt_prog_compiler_pic_GCJ='-PIC'
16007 lt_prog_compiler_static_GCJ='-Bstatic'
16010 sysv4 | sysv4.2uw2* | sysv4.3*)
16011 lt_prog_compiler_wl_GCJ='-Wl,'
16012 lt_prog_compiler_pic_GCJ='-KPIC'
16013 lt_prog_compiler_static_GCJ='-Bstatic'
16016 sysv4*MP*)
16017 if test -d /usr/nec ;then
16018 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16019 lt_prog_compiler_static_GCJ='-Bstatic'
16023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 lt_prog_compiler_pic_GCJ='-KPIC'
16026 lt_prog_compiler_static_GCJ='-Bstatic'
16029 unicos*)
16030 lt_prog_compiler_wl_GCJ='-Wl,'
16031 lt_prog_compiler_can_build_shared_GCJ=no
16034 uts4*)
16035 lt_prog_compiler_pic_GCJ='-pic'
16036 lt_prog_compiler_static_GCJ='-Bstatic'
16040 lt_prog_compiler_can_build_shared_GCJ=no
16042 esac
16045 case $host_os in
16046 # For platforms which do not support PIC, -DPIC is meaningless:
16047 *djgpp*)
16048 lt_prog_compiler_pic_GCJ=
16051 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16053 esac
16054 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16055 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16060 # Check to make sure the PIC flag actually works.
16062 if test -n "$lt_prog_compiler_pic_GCJ"; then
16063 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16064 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16065 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068 lt_prog_compiler_pic_works_GCJ=no
16069 ac_outfile=conftest.$ac_objext
16070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16071 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16072 # Insert the option either (1) after the last *FLAGS variable, or
16073 # (2) before a word containing "conftest.", or (3) at the end.
16074 # Note that $ac_compile itself does not contain backslashes and begins
16075 # with a dollar sign (not a hyphen), so the echo should work correctly.
16076 # The option is referenced via a variable to avoid confusing sed.
16077 lt_compile=`echo "$ac_compile" | $SED \
16078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16080 -e 's:$: $lt_compiler_flag:'`
16081 (eval echo "\"\$as_me:16081: $lt_compile\"" >&5)
16082 (eval "$lt_compile" 2>conftest.err)
16083 ac_status=$?
16084 cat conftest.err >&5
16085 echo "$as_me:16085: \$? = $ac_status" >&5
16086 if (exit $ac_status) && test -s "$ac_outfile"; then
16087 # The compiler can only warn and ignore the option if not recognized
16088 # So say no if there are warnings other than the usual output.
16089 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16092 lt_prog_compiler_pic_works_GCJ=yes
16095 $RM conftest*
16098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16099 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16101 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16102 case $lt_prog_compiler_pic_GCJ in
16103 "" | " "*) ;;
16104 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16105 esac
16106 else
16107 lt_prog_compiler_pic_GCJ=
16108 lt_prog_compiler_can_build_shared_GCJ=no
16116 # Check to make sure the static flag actually works.
16118 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16119 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16120 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16121 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124 lt_prog_compiler_static_works_GCJ=no
16125 save_LDFLAGS="$LDFLAGS"
16126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16129 # The linker can only warn and ignore the option if not recognized
16130 # So say no if there are warnings
16131 if test -s conftest.err; then
16132 # Append any errors to the config.log.
16133 cat conftest.err 1>&5
16134 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16136 if diff conftest.exp conftest.er2 >/dev/null; then
16137 lt_prog_compiler_static_works_GCJ=yes
16139 else
16140 lt_prog_compiler_static_works_GCJ=yes
16143 $RM conftest*
16144 LDFLAGS="$save_LDFLAGS"
16147 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16148 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16150 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16152 else
16153 lt_prog_compiler_static_GCJ=
16159 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16160 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16161 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164 lt_cv_prog_compiler_c_o_GCJ=no
16165 $RM -r conftest 2>/dev/null
16166 mkdir conftest
16167 cd conftest
16168 mkdir out
16169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16171 lt_compiler_flag="-o out/conftest2.$ac_objext"
16172 # Insert the option either (1) after the last *FLAGS variable, or
16173 # (2) before a word containing "conftest.", or (3) at the end.
16174 # Note that $ac_compile itself does not contain backslashes and begins
16175 # with a dollar sign (not a hyphen), so the echo should work correctly.
16176 lt_compile=`echo "$ac_compile" | $SED \
16177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16179 -e 's:$: $lt_compiler_flag:'`
16180 (eval echo "\"\$as_me:16180: $lt_compile\"" >&5)
16181 (eval "$lt_compile" 2>out/conftest.err)
16182 ac_status=$?
16183 cat out/conftest.err >&5
16184 echo "$as_me:16184: \$? = $ac_status" >&5
16185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16186 then
16187 # The compiler can only warn and ignore the option if not recognized
16188 # So say no if there are warnings
16189 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16192 lt_cv_prog_compiler_c_o_GCJ=yes
16195 chmod u+w . 2>&5
16196 $RM conftest*
16197 # SGI C++ compiler will create directory out/ii_files/ for
16198 # template instantiation
16199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16200 $RM out/* && rmdir out
16201 cd ..
16202 $RM -r conftest
16203 $RM conftest*
16206 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16207 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16211 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16212 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16213 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 lt_cv_prog_compiler_c_o_GCJ=no
16217 $RM -r conftest 2>/dev/null
16218 mkdir conftest
16219 cd conftest
16220 mkdir out
16221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16223 lt_compiler_flag="-o out/conftest2.$ac_objext"
16224 # Insert the option either (1) after the last *FLAGS variable, or
16225 # (2) before a word containing "conftest.", or (3) at the end.
16226 # Note that $ac_compile itself does not contain backslashes and begins
16227 # with a dollar sign (not a hyphen), so the echo should work correctly.
16228 lt_compile=`echo "$ac_compile" | $SED \
16229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16231 -e 's:$: $lt_compiler_flag:'`
16232 (eval echo "\"\$as_me:16232: $lt_compile\"" >&5)
16233 (eval "$lt_compile" 2>out/conftest.err)
16234 ac_status=$?
16235 cat out/conftest.err >&5
16236 echo "$as_me:16236: \$? = $ac_status" >&5
16237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16238 then
16239 # The compiler can only warn and ignore the option if not recognized
16240 # So say no if there are warnings
16241 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16244 lt_cv_prog_compiler_c_o_GCJ=yes
16247 chmod u+w . 2>&5
16248 $RM conftest*
16249 # SGI C++ compiler will create directory out/ii_files/ for
16250 # template instantiation
16251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16252 $RM out/* && rmdir out
16253 cd ..
16254 $RM -r conftest
16255 $RM conftest*
16258 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16259 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16264 hard_links="nottested"
16265 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16266 # do not overwrite the value of need_locks provided by the user
16267 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16269 hard_links=yes
16270 $RM conftest*
16271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16272 touch conftest.a
16273 ln conftest.a conftest.b 2>&5 || hard_links=no
16274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16275 echo "$as_me:$LINENO: result: $hard_links" >&5
16276 echo "${ECHO_T}$hard_links" >&6
16277 if test "$hard_links" = no; then
16278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16280 need_locks=warn
16282 else
16283 need_locks=no
16288 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16289 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16291 runpath_var=
16292 allow_undefined_flag_GCJ=
16293 always_export_symbols_GCJ=no
16294 archive_cmds_GCJ=
16295 archive_expsym_cmds_GCJ=
16296 compiler_needs_object_GCJ=no
16297 enable_shared_with_static_runtimes_GCJ=no
16298 export_dynamic_flag_spec_GCJ=
16299 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16300 hardcode_automatic_GCJ=no
16301 hardcode_direct_GCJ=no
16302 hardcode_direct_absolute_GCJ=no
16303 hardcode_libdir_flag_spec_GCJ=
16304 hardcode_libdir_flag_spec_ld_GCJ=
16305 hardcode_libdir_separator_GCJ=
16306 hardcode_minus_L_GCJ=no
16307 hardcode_shlibpath_var_GCJ=unsupported
16308 inherit_rpath_GCJ=no
16309 link_all_deplibs_GCJ=unknown
16310 module_cmds_GCJ=
16311 module_expsym_cmds_GCJ=
16312 old_archive_from_new_cmds_GCJ=
16313 old_archive_from_expsyms_cmds_GCJ=
16314 thread_safe_flag_spec_GCJ=
16315 whole_archive_flag_spec_GCJ=
16316 # include_expsyms should be a list of space-separated symbols to be *always*
16317 # included in the symbol list
16318 include_expsyms_GCJ=
16319 # exclude_expsyms can be an extended regexp of symbols to exclude
16320 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16321 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16322 # as well as any symbol that contains `d'.
16323 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16324 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16325 # platforms (ab)use it in PIC code, but their linkers get confused if
16326 # the symbol is explicitly referenced. Since portable code cannot
16327 # rely on this symbol name, it's probably fine to never include it in
16328 # preloaded symbol tables.
16329 extract_expsyms_cmds=
16331 case $host_os in
16332 cygwin* | mingw* | pw32*)
16333 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16334 # When not using gcc, we currently assume that we are using
16335 # Microsoft Visual C++.
16336 if test "$GCC" != yes; then
16337 with_gnu_ld=no
16340 interix*)
16341 # we just hope/assume this is gcc and not c89 (= MSVC++)
16342 with_gnu_ld=yes
16344 openbsd*)
16345 with_gnu_ld=no
16347 esac
16349 ld_shlibs_GCJ=yes
16350 if test "$with_gnu_ld" = yes; then
16351 # If archive_cmds runs LD, not CC, wlarc should be empty
16352 wlarc='${wl}'
16354 # Set some defaults for GNU ld with shared library support. These
16355 # are reset later if shared libraries are not supported. Putting them
16356 # here allows them to be overridden if necessary.
16357 runpath_var=LD_RUN_PATH
16358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16359 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16360 # ancient GNU ld didn't support --whole-archive et. al.
16361 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16362 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16363 else
16364 whole_archive_flag_spec_GCJ=
16366 supports_anon_versioning=no
16367 case `$LD -v 2>&1` in
16368 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16369 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16370 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16371 *\ 2.11.*) ;; # other 2.11 versions
16372 *) supports_anon_versioning=yes ;;
16373 esac
16375 # See if GNU ld supports shared libraries.
16376 case $host_os in
16377 aix[3-9]*)
16378 # On AIX/PPC, the GNU linker is very broken
16379 if test "$host_cpu" != ia64; then
16380 ld_shlibs_GCJ=no
16381 cat <<_LT_EOF 1>&2
16383 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16384 *** to be unable to reliably create shared libraries on AIX.
16385 *** Therefore, libtool is disabling shared libraries support. If you
16386 *** really care for shared libraries, you may want to modify your PATH
16387 *** so that a non-GNU linker is found, and then restart.
16389 _LT_EOF
16393 amigaos*)
16394 if test "$host_cpu" = m68k; then
16395 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)'
16396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397 hardcode_minus_L_GCJ=yes
16400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16401 # that the semantics of dynamic libraries on AmigaOS, at least up
16402 # to version 4, is to share data among multiple programs linked
16403 # with the same dynamic library. Since this doesn't match the
16404 # behavior of shared libraries on other platforms, we can't use
16405 # them.
16406 ld_shlibs_GCJ=no
16409 beos*)
16410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16411 allow_undefined_flag_GCJ=unsupported
16412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16413 # support --undefined. This deserves some investigation. FIXME
16414 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16415 else
16416 ld_shlibs_GCJ=no
16420 cygwin* | mingw* | pw32*)
16421 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16422 # as there is no search path for DLLs.
16423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16424 allow_undefined_flag_GCJ=unsupported
16425 always_export_symbols_GCJ=no
16426 enable_shared_with_static_runtimes_GCJ=yes
16427 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16429 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16431 # If the export-symbols file already is a .def file (1st line
16432 # is EXPORTS), use it as is; otherwise, prepend...
16433 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16434 cp $export_symbols $output_objdir/$soname.def;
16435 else
16436 echo EXPORTS > $output_objdir/$soname.def;
16437 cat $export_symbols >> $output_objdir/$soname.def;
16439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16440 else
16441 ld_shlibs_GCJ=no
16445 interix[3-9]*)
16446 hardcode_direct_GCJ=no
16447 hardcode_shlibpath_var_GCJ=no
16448 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16449 export_dynamic_flag_spec_GCJ='${wl}-E'
16450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16451 # Instead, shared libraries are loaded at an image base (0x10000000 by
16452 # default) and relocated if they conflict, which is a slow very memory
16453 # consuming and fragmenting process. To avoid this, we pick a random,
16454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16456 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'
16457 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'
16460 gnu* | linux* | tpf* | k*bsd*-gnu)
16461 tmp_diet=no
16462 if test "$host_os" = linux-dietlibc; then
16463 case $cc_basename in
16464 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16465 esac
16467 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16468 && test "$tmp_diet" = no
16469 then
16470 tmp_addflag=
16471 case $cc_basename,$host_cpu in
16472 pgcc*) # Portland Group C compiler
16473 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'
16474 tmp_addflag=' $pic_flag'
16476 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16477 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'
16478 tmp_addflag=' $pic_flag -Mnomain' ;;
16479 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16480 tmp_addflag=' -i_dynamic' ;;
16481 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16482 tmp_addflag=' -i_dynamic -nofor_main' ;;
16483 ifc* | ifort*) # Intel Fortran compiler
16484 tmp_addflag=' -nofor_main' ;;
16485 esac
16486 case `$CC -V 2>&1 | sed 5q` in
16487 *Sun\ C*) # Sun C 5.9
16488 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'
16489 compiler_needs_object_GCJ=yes
16490 tmp_sharedflag='-G' ;;
16491 *Sun\ F*) # Sun Fortran 8.3
16492 tmp_sharedflag='-G' ;;
16494 tmp_sharedflag='-shared' ;;
16495 esac
16496 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16498 if test "x$supports_anon_versioning" = xyes; then
16499 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16501 echo "local: *; };" >> $output_objdir/$libname.ver~
16502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16504 else
16505 ld_shlibs_GCJ=no
16509 netbsd*)
16510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16511 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16512 wlarc=
16513 else
16514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16519 solaris*)
16520 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16521 ld_shlibs_GCJ=no
16522 cat <<_LT_EOF 1>&2
16524 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16525 *** create shared libraries on Solaris systems. Therefore, libtool
16526 *** is disabling shared libraries support. We urge you to upgrade GNU
16527 *** binutils to release 2.9.1 or newer. Another option is to modify
16528 *** your PATH or compiler configuration so that the native linker is
16529 *** used, and then restart.
16531 _LT_EOF
16532 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16533 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16534 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16535 else
16536 ld_shlibs_GCJ=no
16540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16541 case `$LD -v 2>&1` in
16542 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16543 ld_shlibs_GCJ=no
16544 cat <<_LT_EOF 1>&2
16546 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16547 *** reliably create shared libraries on SCO systems. Therefore, libtool
16548 *** is disabling shared libraries support. We urge you to upgrade GNU
16549 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16550 *** your PATH or compiler configuration so that the native linker is
16551 *** used, and then restart.
16553 _LT_EOF
16556 # For security reasons, it is highly recommended that you always
16557 # use absolute paths for naming shared libraries, and exclude the
16558 # DT_RUNPATH tag from executables and libraries. But doing so
16559 # requires that you compile everything twice, which is a pain.
16560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16564 else
16565 ld_shlibs_GCJ=no
16568 esac
16571 sunos4*)
16572 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16573 wlarc=
16574 hardcode_direct_GCJ=yes
16575 hardcode_shlibpath_var_GCJ=no
16579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16581 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16582 else
16583 ld_shlibs_GCJ=no
16586 esac
16588 if test "$ld_shlibs_GCJ" = no; then
16589 runpath_var=
16590 hardcode_libdir_flag_spec_GCJ=
16591 export_dynamic_flag_spec_GCJ=
16592 whole_archive_flag_spec_GCJ=
16594 else
16595 # PORTME fill in a description of your system's linker (not GNU ld)
16596 case $host_os in
16597 aix3*)
16598 allow_undefined_flag_GCJ=unsupported
16599 always_export_symbols_GCJ=yes
16600 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'
16601 # Note: this linker hardcodes the directories in LIBPATH if there
16602 # are no directories specified by -L.
16603 hardcode_minus_L_GCJ=yes
16604 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16605 # Neither direct hardcoding nor static linking is supported with a
16606 # broken collect2.
16607 hardcode_direct_GCJ=unsupported
16611 aix[4-9]*)
16612 if test "$host_cpu" = ia64; then
16613 # On IA64, the linker does run time linking by default, so we don't
16614 # have to do anything special.
16615 aix_use_runtimelinking=no
16616 exp_sym_flag='-Bexport'
16617 no_entry_flag=""
16618 else
16619 # If we're using GNU nm, then we don't want the "-C" option.
16620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16622 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'
16623 else
16624 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'
16626 aix_use_runtimelinking=no
16628 # Test if we are trying to use run time linking or normal
16629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16630 # need to do runtime linking.
16631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16632 for ld_flag in $LDFLAGS; do
16633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16634 aix_use_runtimelinking=yes
16635 break
16637 done
16639 esac
16641 exp_sym_flag='-bexport'
16642 no_entry_flag='-bnoentry'
16645 # When large executables or shared objects are built, AIX ld can
16646 # have problems creating the table of contents. If linking a library
16647 # or program results in "error TOC overflow" add -mminimal-toc to
16648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16651 archive_cmds_GCJ=''
16652 hardcode_direct_GCJ=yes
16653 hardcode_direct_absolute_GCJ=yes
16654 hardcode_libdir_separator_GCJ=':'
16655 link_all_deplibs_GCJ=yes
16656 file_list_spec_GCJ='${wl}-f,'
16658 if test "$GCC" = yes; then
16659 case $host_os in aix4.[012]|aix4.[012].*)
16660 # We only want to do this on AIX 4.2 and lower, the check
16661 # below for broken collect2 doesn't work under 4.3+
16662 collect2name=`${CC} -print-prog-name=collect2`
16663 if test -f "$collect2name" &&
16664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16665 then
16666 # We have reworked collect2
16668 else
16669 # We have old collect2
16670 hardcode_direct_GCJ=unsupported
16671 # It fails to find uninstalled libraries when the uninstalled
16672 # path is not listed in the libpath. Setting hardcode_minus_L
16673 # to unsupported forces relinking
16674 hardcode_minus_L_GCJ=yes
16675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16676 hardcode_libdir_separator_GCJ=
16679 esac
16680 shared_flag='-shared'
16681 if test "$aix_use_runtimelinking" = yes; then
16682 shared_flag="$shared_flag "'${wl}-G'
16684 else
16685 # not using gcc
16686 if test "$host_cpu" = ia64; then
16687 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16688 # chokes on -Wl,-G. The following line is correct:
16689 shared_flag='-G'
16690 else
16691 if test "$aix_use_runtimelinking" = yes; then
16692 shared_flag='${wl}-G'
16693 else
16694 shared_flag='${wl}-bM:SRE'
16699 # It seems that -bexpall does not export symbols beginning with
16700 # underscore (_), so it is better to generate a list of symbols to export.
16701 always_export_symbols_GCJ=yes
16702 if test "$aix_use_runtimelinking" = yes; then
16703 # Warning - without using the other runtime loading flags (-brtl),
16704 # -berok will link without error, but may produce a broken library.
16705 allow_undefined_flag_GCJ='-berok'
16706 # Determine the default libpath from the value encoded in an
16707 # empty executable.
16708 if test x$gcc_no_link = xyes; then
16709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16711 { (exit 1); exit 1; }; }
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16721 main ()
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730 (eval $ac_link) 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest$ac_exeext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16751 lt_aix_libpath_sed='
16752 /Import File Strings/,/^$/ {
16753 /^0/ {
16754 s/^0 *\(.*\)$/\1/
16758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16759 # Check for a 64-bit object if we didn't find anything.
16760 if test -z "$aix_libpath"; then
16761 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16768 rm -f conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16772 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16773 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"
16774 else
16775 if test "$host_cpu" = ia64; then
16776 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16777 allow_undefined_flag_GCJ="-z nodefs"
16778 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"
16779 else
16780 # Determine the default libpath from the value encoded in an
16781 # empty executable.
16782 if test x$gcc_no_link = xyes; then
16783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16785 { (exit 1); exit 1; }; }
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h. */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16795 main ()
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16825 lt_aix_libpath_sed='
16826 /Import File Strings/,/^$/ {
16827 /^0/ {
16828 s/^0 *\(.*\)$/\1/
16832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16833 # Check for a 64-bit object if we didn't find anything.
16834 if test -z "$aix_libpath"; then
16835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16837 else
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16842 rm -f conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16846 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16847 # Warning - without using the other run time loading flags,
16848 # -berok will link without error, but may produce a broken library.
16849 no_undefined_flag_GCJ=' ${wl}-bernotok'
16850 allow_undefined_flag_GCJ=' ${wl}-berok'
16851 # Exported symbols can be pulled into shared objects from archives
16852 whole_archive_flag_spec_GCJ='$convenience'
16853 archive_cmds_need_lc_GCJ=yes
16854 # This is similar to how AIX traditionally builds its shared libraries.
16855 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'
16860 amigaos*)
16861 if test "$host_cpu" = m68k; then
16862 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)'
16863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864 hardcode_minus_L_GCJ=yes
16866 # see comment about different semantics on the GNU ld section
16867 ld_shlibs_GCJ=no
16870 bsdi[45]*)
16871 export_dynamic_flag_spec_GCJ=-rdynamic
16874 cygwin* | mingw* | pw32*)
16875 # When not using gcc, we currently assume that we are using
16876 # Microsoft Visual C++.
16877 # hardcode_libdir_flag_spec is actually meaningless, as there is
16878 # no search path for DLLs.
16879 hardcode_libdir_flag_spec_GCJ=' '
16880 allow_undefined_flag_GCJ=unsupported
16881 # Tell ltmain to make .lib files, not .a files.
16882 libext=lib
16883 # Tell ltmain to make .dll files, not .so files.
16884 shrext_cmds=".dll"
16885 # FIXME: Setting linknames here is a bad hack.
16886 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16887 # The linker will automatically build a .lib file if we build a DLL.
16888 old_archive_from_new_cmds_GCJ='true'
16889 # FIXME: Should let the user specify the lib program.
16890 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16891 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16892 enable_shared_with_static_runtimes_GCJ=yes
16895 darwin* | rhapsody*)
16896 case $host_os in
16897 rhapsody* | darwin1.[012])
16898 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16900 *) # Darwin 1.3 on
16901 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16902 10.[012])
16903 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16905 10.*)
16906 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16908 esac
16910 esac
16911 archive_cmds_need_lc_GCJ=no
16912 hardcode_direct_GCJ=no
16913 hardcode_automatic_GCJ=yes
16914 hardcode_shlibpath_var_GCJ=unsupported
16915 whole_archive_flag_spec_GCJ=''
16916 link_all_deplibs_GCJ=yes
16917 if test "$GCC" = yes ; then
16918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921 lt_cv_apple_cc_single_mod=no
16922 if test -z "${LT_MULTI_MODULE}"; then
16923 # By default we will add the -single_module flag. You can override
16924 # by either setting the environment variable LT_MULTI_MODULE
16925 # non-empty at configure time, or by adding -multi-module to the
16926 # link flags.
16927 echo "int foo(void){return 1;}" > conftest.c
16928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16929 -dynamiclib ${wl}-single_module conftest.c
16930 if test -f libconftest.dylib; then
16931 lt_cv_apple_cc_single_mod=yes
16932 rm libconftest.dylib
16934 rm conftest.$ac_ext
16938 output_verbose_link_cmd=echo
16939 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16940 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16941 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16942 else
16943 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16944 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16946 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16947 module_expsym_cmds_GCJ='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16948 else
16949 case $cc_basename in
16950 xlc*)
16951 output_verbose_link_cmd=echo
16952 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16953 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16955 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16956 module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16959 ld_shlibs_GCJ=no
16961 esac
16965 dgux*)
16966 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16968 hardcode_shlibpath_var_GCJ=no
16971 freebsd1*)
16972 ld_shlibs_GCJ=no
16975 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16976 # support. Future versions do this automatically, but an explicit c++rt0.o
16977 # does not break anything, and helps significantly (at the cost of a little
16978 # extra space).
16979 freebsd2.2*)
16980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982 hardcode_direct_GCJ=yes
16983 hardcode_shlibpath_var_GCJ=no
16986 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16987 freebsd2*)
16988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_direct_GCJ=yes
16990 hardcode_minus_L_GCJ=yes
16991 hardcode_shlibpath_var_GCJ=no
16994 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16995 freebsd* | dragonfly*)
16996 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16998 hardcode_direct_GCJ=yes
16999 hardcode_shlibpath_var_GCJ=no
17002 hpux9*)
17003 if test "$GCC" = yes; then
17004 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'
17005 else
17006 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'
17008 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010 hardcode_direct_GCJ=yes
17012 # hardcode_minus_L: Not really in the search PATH,
17013 # but as the default location of the library.
17014 hardcode_minus_L_GCJ=yes
17015 export_dynamic_flag_spec_GCJ='${wl}-E'
17018 hpux10*)
17019 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17020 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17021 else
17022 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17024 if test "$with_gnu_ld" = no; then
17025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17026 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17027 hardcode_libdir_separator_GCJ=:
17028 hardcode_direct_GCJ=yes
17029 hardcode_direct_absolute_GCJ=yes
17030 export_dynamic_flag_spec_GCJ='${wl}-E'
17031 # hardcode_minus_L: Not really in the search PATH,
17032 # but as the default location of the library.
17033 hardcode_minus_L_GCJ=yes
17037 hpux11*)
17038 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17039 case $host_cpu in
17040 hppa*64*)
17041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 ia64*)
17044 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17049 esac
17050 else
17051 case $host_cpu in
17052 hppa*64*)
17053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 ia64*)
17056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17059 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17061 esac
17063 if test "$with_gnu_ld" = no; then
17064 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17065 hardcode_libdir_separator_GCJ=:
17067 case $host_cpu in
17068 hppa*64*|ia64*)
17069 hardcode_direct_GCJ=no
17070 hardcode_shlibpath_var_GCJ=no
17073 hardcode_direct_GCJ=yes
17074 hardcode_direct_absolute_GCJ=yes
17075 export_dynamic_flag_spec_GCJ='${wl}-E'
17077 # hardcode_minus_L: Not really in the search PATH,
17078 # but as the default location of the library.
17079 hardcode_minus_L_GCJ=yes
17081 esac
17085 irix5* | irix6* | nonstopux*)
17086 if test "$GCC" = yes; then
17087 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'
17088 # Try to use the -exported_symbol ld option, if it does not
17089 # work, assume that -exports_file does not work either and
17090 # implicitly export all symbols.
17091 save_LDFLAGS="$LDFLAGS"
17092 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17093 if test x$gcc_no_link = xyes; then
17094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17096 { (exit 1); exit 1; }; }
17098 cat >conftest.$ac_ext <<_ACEOF
17099 int foo(void) {}
17100 _ACEOF
17101 rm -f conftest.$ac_objext conftest$ac_exeext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17103 (eval $ac_link) 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -z "$ac_c_werror_flag"
17111 || test ! -s conftest.err'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest$ac_exeext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 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'
17125 else
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17130 rm -f conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LDFLAGS="$save_LDFLAGS"
17133 else
17134 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'
17135 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'
17137 archive_cmds_need_lc_GCJ='no'
17138 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17139 hardcode_libdir_separator_GCJ=:
17140 inherit_rpath_GCJ=yes
17141 link_all_deplibs_GCJ=yes
17144 netbsd*)
17145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17146 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17147 else
17148 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17150 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17151 hardcode_direct_GCJ=yes
17152 hardcode_shlibpath_var_GCJ=no
17155 newsos6)
17156 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157 hardcode_direct_GCJ=yes
17158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17159 hardcode_libdir_separator_GCJ=:
17160 hardcode_shlibpath_var_GCJ=no
17163 *nto* | *qnx*)
17166 openbsd*)
17167 hardcode_direct_GCJ=yes
17168 hardcode_shlibpath_var_GCJ=no
17169 hardcode_direct_absolute_GCJ=yes
17170 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17171 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17172 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17174 export_dynamic_flag_spec_GCJ='${wl}-E'
17175 else
17176 case $host_os in
17177 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17178 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17179 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17182 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17185 esac
17189 os2*)
17190 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17191 hardcode_minus_L_GCJ=yes
17192 allow_undefined_flag_GCJ=unsupported
17193 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'
17194 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17197 osf3*)
17198 if test "$GCC" = yes; then
17199 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17200 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'
17201 else
17202 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17203 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'
17205 archive_cmds_need_lc_GCJ='no'
17206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17207 hardcode_libdir_separator_GCJ=:
17210 osf4* | osf5*) # as osf3* with the addition of -msym flag
17211 if test "$GCC" = yes; then
17212 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17213 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'
17214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17215 else
17216 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17217 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'
17218 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~
17219 $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'
17221 # Both c and cxx compiler support -rpath directly
17222 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17224 archive_cmds_need_lc_GCJ='no'
17225 hardcode_libdir_separator_GCJ=:
17228 solaris*)
17229 no_undefined_flag_GCJ=' -z defs'
17230 if test "$GCC" = yes; then
17231 wlarc='${wl}'
17232 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17233 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17234 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17235 else
17236 case `$CC -V 2>&1` in
17237 *"Compilers 5.0"*)
17238 wlarc=''
17239 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17240 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17244 wlarc='${wl}'
17245 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17246 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17247 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17249 esac
17251 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17252 hardcode_shlibpath_var_GCJ=no
17253 case $host_os in
17254 solaris2.[0-5] | solaris2.[0-5].*) ;;
17256 # The compiler driver will combine and reorder linker options,
17257 # but understands `-z linker_flag'. GCC discards it without `$wl',
17258 # but is careful enough not to reorder.
17259 # Supported since Solaris 2.6 (maybe 2.5.1?)
17260 if test "$GCC" = yes; then
17261 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17262 else
17263 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17266 esac
17267 link_all_deplibs_GCJ=yes
17270 sunos4*)
17271 if test "x$host_vendor" = xsequent; then
17272 # Use $CC to link under sequent, because it throws in some extra .o
17273 # files that make .init and .fini sections work.
17274 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17275 else
17276 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279 hardcode_direct_GCJ=yes
17280 hardcode_minus_L_GCJ=yes
17281 hardcode_shlibpath_var_GCJ=no
17284 sysv4)
17285 case $host_vendor in
17286 sni)
17287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288 hardcode_direct_GCJ=yes # is this really true???
17290 siemens)
17291 ## LD is ld it makes a PLAMLIB
17292 ## CC just makes a GrossModule.
17293 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17294 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17295 hardcode_direct_GCJ=no
17297 motorola)
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17301 esac
17302 runpath_var='LD_RUN_PATH'
17303 hardcode_shlibpath_var_GCJ=no
17306 sysv4.3*)
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_shlibpath_var_GCJ=no
17309 export_dynamic_flag_spec_GCJ='-Bexport'
17312 sysv4*MP*)
17313 if test -d /usr/nec; then
17314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17315 hardcode_shlibpath_var_GCJ=no
17316 runpath_var=LD_RUN_PATH
17317 hardcode_runpath_var=yes
17318 ld_shlibs_GCJ=yes
17322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17323 no_undefined_flag_GCJ='${wl}-z,text'
17324 archive_cmds_need_lc_GCJ=no
17325 hardcode_shlibpath_var_GCJ=no
17326 runpath_var='LD_RUN_PATH'
17328 if test "$GCC" = yes; then
17329 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 else
17332 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17337 sysv5* | sco3.2v5* | sco5v6*)
17338 # Note: We can NOT use -z defs as we might desire, because we do not
17339 # link with -lc, and that would cause any symbols used from libc to
17340 # always be unresolved, which means just about no library would
17341 # ever link correctly. If we're not using GNU ld we use -z text
17342 # though, which does catch some bad symbols but isn't as heavy-handed
17343 # as -z defs.
17344 no_undefined_flag_GCJ='${wl}-z,text'
17345 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17346 archive_cmds_need_lc_GCJ=no
17347 hardcode_shlibpath_var_GCJ=no
17348 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17349 hardcode_libdir_separator_GCJ=':'
17350 link_all_deplibs_GCJ=yes
17351 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17352 runpath_var='LD_RUN_PATH'
17354 if test "$GCC" = yes; then
17355 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 else
17358 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17363 uts4*)
17364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366 hardcode_shlibpath_var_GCJ=no
17370 ld_shlibs_GCJ=no
17372 esac
17374 if test x$host_vendor = xsni; then
17375 case $host in
17376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17377 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17379 esac
17383 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17384 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17385 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17387 with_gnu_ld_GCJ=$with_gnu_ld
17395 # Do we need to explicitly link libc?
17397 case "x$archive_cmds_need_lc_GCJ" in
17398 x|xyes)
17399 # Assume -lc should be added
17400 archive_cmds_need_lc_GCJ=yes
17402 if test "$enable_shared" = yes && test "$GCC" = yes; then
17403 case $archive_cmds_GCJ in
17404 *'~'*)
17405 # FIXME: we may have to deal with multi-command sequences.
17407 '$CC '*)
17408 # Test whether the compiler implicitly links with -lc since on some
17409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17410 # to ld, don't add -lc before -lgcc.
17411 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17413 $RM conftest*
17414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } 2>conftest.err; then
17421 soname=conftest
17422 lib=conftest
17423 libobjs=conftest.$ac_objext
17424 deplibs=
17425 wl=$lt_prog_compiler_wl_GCJ
17426 pic_flag=$lt_prog_compiler_pic_GCJ
17427 compiler_flags=-v
17428 linker_flags=-v
17429 verstring=
17430 output_objdir=.
17431 libname=conftest
17432 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17433 allow_undefined_flag_GCJ=
17434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17435 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }
17439 then
17440 archive_cmds_need_lc_GCJ=no
17441 else
17442 archive_cmds_need_lc_GCJ=yes
17444 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17445 else
17446 cat conftest.err 1>&5
17448 $RM conftest*
17449 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17450 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17452 esac
17455 esac
17520 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17522 withGCC=$GCC
17523 library_names_spec=
17524 libname_spec='lib$name'
17525 soname_spec=
17526 shrext_cmds=".so"
17527 postinstall_cmds=
17528 postuninstall_cmds=
17529 finish_cmds=
17530 finish_eval=
17531 shlibpath_var=
17532 shlibpath_overrides_runpath=unknown
17533 version_type=none
17534 dynamic_linker="$host_os ld.so"
17535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17536 need_lib_prefix=unknown
17537 hardcode_into_libs=no
17539 # when you set need_version to no, make sure it does not cause -set_version
17540 # flags to be left without arguments
17541 need_version=unknown
17543 case $host_os in
17544 aix3*)
17545 version_type=linux
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17547 shlibpath_var=LIBPATH
17549 # AIX 3 has no versioning support, so we append a major version to the name.
17550 soname_spec='${libname}${release}${shared_ext}$major'
17553 aix[4-9]*)
17554 version_type=linux
17555 need_lib_prefix=no
17556 need_version=no
17557 hardcode_into_libs=yes
17558 if test "$host_cpu" = ia64; then
17559 # AIX 5 supports IA64
17560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 else
17563 # With GCC up to 2.95.x, collect2 would create an import file
17564 # for dependence libraries. The import file would start with
17565 # the line `#! .'. This would cause the generated library to
17566 # depend on `.', always an invalid library. This was fixed in
17567 # development snapshots of GCC prior to 3.0.
17568 case $host_os in
17569 aix4 | aix4.[01] | aix4.[01].*)
17570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17571 echo ' yes '
17572 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17574 else
17575 can_build_shared=no
17578 esac
17579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17580 # soname into executable. Probably we can add versioning support to
17581 # collect2, so additional links can be useful in future.
17582 if test "$aix_use_runtimelinking" = yes; then
17583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17584 # instead of lib<name>.a to let people know that these are not
17585 # typical AIX shared libraries.
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 else
17588 # We preserve .a as extension for shared libraries through AIX4.2
17589 # and later when we are not doing run time linking.
17590 library_names_spec='${libname}${release}.a $libname.a'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17593 shlibpath_var=LIBPATH
17597 amigaos*)
17598 if test "$host_cpu" = m68k; then
17599 library_names_spec='$libname.ixlibrary $libname.a'
17600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17601 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'
17602 else
17603 dynamic_linker=no
17607 beos*)
17608 library_names_spec='${libname}${shared_ext}'
17609 dynamic_linker="$host_os ld.so"
17610 shlibpath_var=LIBRARY_PATH
17613 bsdi[45]*)
17614 version_type=linux
17615 need_version=no
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17622 # the default ld.so.conf also contains /usr/contrib/lib and
17623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17624 # libtool to hard-code these into programs
17627 cygwin* | mingw* | pw32*)
17628 version_type=windows
17629 shrext_cmds=".dll"
17630 need_version=no
17631 need_lib_prefix=no
17633 case $withGCC,$host_os in
17634 yes,cygwin* | yes,mingw* | yes,pw32*)
17635 library_names_spec='$libname.dll.a'
17636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17637 postinstall_cmds='base_file=`basename \${file}`~
17638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17639 dldir=$destdir/`dirname \$dlpath`~
17640 test -d \$dldir || mkdir -p \$dldir~
17641 $install_prog $dir/$dlname \$dldir/$dlname~
17642 chmod a+x \$dldir/$dlname~
17643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17647 dlpath=$dir/\$dldll~
17648 $RM \$dlpath'
17649 shlibpath_overrides_runpath=yes
17651 case $host_os in
17652 cygwin*)
17653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17657 mingw*)
17658 # MinGW DLLs use traditional 'lib' prefix
17659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17660 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17661 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17662 # It is most probably a Windows format PATH printed by
17663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17664 # path with ; separators, and with drive letters. We can handle the
17665 # drive letters (cygwin fileutils understands them), so leave them,
17666 # especially as we might pass files found there to a mingw objdump,
17667 # which wouldn't understand a cygwinified path. Ahh.
17668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17669 else
17670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17673 pw32*)
17674 # pw32 DLLs use 'pw' prefix rather than 'lib'
17675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677 esac
17681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17683 esac
17684 dynamic_linker='Win32 ld.exe'
17685 # FIXME: first we should search . and the directory the executable is in
17686 shlibpath_var=PATH
17689 darwin* | rhapsody*)
17690 dynamic_linker="$host_os dyld"
17691 version_type=darwin
17692 need_lib_prefix=no
17693 need_version=no
17694 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17695 soname_spec='${libname}${release}${major}$shared_ext'
17696 shlibpath_overrides_runpath=yes
17697 shlibpath_var=DYLD_LIBRARY_PATH
17698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17703 dgux*)
17704 version_type=linux
17705 need_lib_prefix=no
17706 need_version=no
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17708 soname_spec='${libname}${release}${shared_ext}$major'
17709 shlibpath_var=LD_LIBRARY_PATH
17712 freebsd1*)
17713 dynamic_linker=no
17716 freebsd* | dragonfly*)
17717 # DragonFly does not have aout. When/if they implement a new
17718 # versioning mechanism, adjust this.
17719 if test -x /usr/bin/objformat; then
17720 objformat=`/usr/bin/objformat`
17721 else
17722 case $host_os in
17723 freebsd[123]*) objformat=aout ;;
17724 *) objformat=elf ;;
17725 esac
17727 version_type=freebsd-$objformat
17728 case $version_type in
17729 freebsd-elf*)
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17731 need_version=no
17732 need_lib_prefix=no
17734 freebsd-*)
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17736 need_version=yes
17738 esac
17739 shlibpath_var=LD_LIBRARY_PATH
17740 case $host_os in
17741 freebsd2*)
17742 shlibpath_overrides_runpath=yes
17744 freebsd3.[01]* | freebsdelf3.[01]*)
17745 shlibpath_overrides_runpath=yes
17746 hardcode_into_libs=yes
17748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17750 shlibpath_overrides_runpath=no
17751 hardcode_into_libs=yes
17753 *) # from 4.6 on, and DragonFly
17754 shlibpath_overrides_runpath=yes
17755 hardcode_into_libs=yes
17757 esac
17760 gnu*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 hardcode_into_libs=yes
17770 hpux9* | hpux10* | hpux11*)
17771 # Give a soname corresponding to the major version so that dld.sl refuses to
17772 # link against other versions.
17773 version_type=sunos
17774 need_lib_prefix=no
17775 need_version=no
17776 case $host_cpu in
17777 ia64*)
17778 shrext_cmds='.so'
17779 hardcode_into_libs=yes
17780 dynamic_linker="$host_os dld.so"
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 soname_spec='${libname}${release}${shared_ext}$major'
17785 if test "X$HPUX_IA64_MODE" = X32; then
17786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17787 else
17788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17792 hppa*64*)
17793 shrext_cmds='.sl'
17794 hardcode_into_libs=yes
17795 dynamic_linker="$host_os dld.sl"
17796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17799 soname_spec='${libname}${release}${shared_ext}$major'
17800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17804 shrext_cmds='.sl'
17805 dynamic_linker="$host_os dld.sl"
17806 shlibpath_var=SHLIB_PATH
17807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17811 esac
17812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17813 postinstall_cmds='chmod 555 $lib'
17816 interix[3-9]*)
17817 version_type=linux
17818 need_lib_prefix=no
17819 need_version=no
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=no
17825 hardcode_into_libs=yes
17828 irix5* | irix6* | nonstopux*)
17829 case $host_os in
17830 nonstopux*) version_type=nonstopux ;;
17832 if test "$lt_cv_prog_gnu_ld" = yes; then
17833 version_type=linux
17834 else
17835 version_type=irix
17836 fi ;;
17837 esac
17838 need_lib_prefix=no
17839 need_version=no
17840 soname_spec='${libname}${release}${shared_ext}$major'
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17842 case $host_os in
17843 irix5* | nonstopux*)
17844 libsuff= shlibsuff=
17847 case $LD in # libtool.m4 will add one of these switches to LD
17848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17849 libsuff= shlibsuff= libmagic=32-bit;;
17850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17851 libsuff=32 shlibsuff=N32 libmagic=N32;;
17852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17854 *) libsuff= shlibsuff= libmagic=never-match;;
17855 esac
17857 esac
17858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17859 shlibpath_overrides_runpath=no
17860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17862 hardcode_into_libs=yes
17865 # No shared lib support for Linux oldld, aout, or coff.
17866 linux*oldld* | linux*aout* | linux*coff*)
17867 dynamic_linker=no
17870 # This must be Linux ELF.
17871 linux* | k*bsd*-gnu)
17872 version_type=linux
17873 need_lib_prefix=no
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 shlibpath_overrides_runpath=no
17880 # Some binutils ld are patched to set DT_RUNPATH
17881 save_LDFLAGS=$LDFLAGS
17882 save_libdir=$libdir
17883 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17884 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17885 if test x$gcc_no_link = xyes; then
17886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17888 { (exit 1); exit 1; }; }
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17898 main ()
17902 return 0;
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 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17928 shlibpath_overrides_runpath=yes
17931 else
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 LDFLAGS=$save_LDFLAGS
17939 libdir=$save_libdir
17941 # This implies no fast_install, which is unacceptable.
17942 # Some rework will be needed to allow for fast_install
17943 # before this can be enabled.
17944 hardcode_into_libs=yes
17946 # Append ld.so.conf contents to the search path
17947 if test -f /etc/ld.so.conf; then
17948 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17952 # We used to test for /lib/ld.so.1 and disable shared libraries on
17953 # powerpc, because MkLinux only supported shared libraries with the
17954 # GNU dynamic linker. Since this was broken with cross compilers,
17955 # most powerpc-linux boxes support dynamic linking these days and
17956 # people can always --disable-shared, the test was removed, and we
17957 # assume the GNU/Linux dynamic linker is in use.
17958 dynamic_linker='GNU/Linux ld.so'
17961 netbsd*)
17962 version_type=sunos
17963 need_lib_prefix=no
17964 need_version=no
17965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17968 dynamic_linker='NetBSD (a.out) ld.so'
17969 else
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 dynamic_linker='NetBSD ld.elf_so'
17974 shlibpath_var=LD_LIBRARY_PATH
17975 shlibpath_overrides_runpath=yes
17976 hardcode_into_libs=yes
17979 newsos6)
17980 version_type=linux
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 shlibpath_overrides_runpath=yes
17986 *nto* | *qnx*)
17987 version_type=qnx
17988 need_lib_prefix=no
17989 need_version=no
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 soname_spec='${libname}${release}${shared_ext}$major'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=no
17994 hardcode_into_libs=yes
17995 dynamic_linker='ldqnx.so'
17998 openbsd*)
17999 version_type=sunos
18000 sys_lib_dlsearch_path_spec="/usr/lib"
18001 need_lib_prefix=no
18002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18003 case $host_os in
18004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18005 *) need_version=no ;;
18006 esac
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18011 case $host_os in
18012 openbsd2.[89] | openbsd2.[89].*)
18013 shlibpath_overrides_runpath=no
18016 shlibpath_overrides_runpath=yes
18018 esac
18019 else
18020 shlibpath_overrides_runpath=yes
18024 os2*)
18025 libname_spec='$name'
18026 shrext_cmds=".dll"
18027 need_lib_prefix=no
18028 library_names_spec='$libname${shared_ext} $libname.a'
18029 dynamic_linker='OS/2 ld.exe'
18030 shlibpath_var=LIBPATH
18033 osf3* | osf4* | osf5*)
18034 version_type=osf
18035 need_lib_prefix=no
18036 need_version=no
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18044 rdos*)
18045 dynamic_linker=no
18048 solaris*)
18049 version_type=linux
18050 need_lib_prefix=no
18051 need_version=no
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18056 hardcode_into_libs=yes
18057 # ldd complains unless libraries are executable
18058 postinstall_cmds='chmod +x $lib'
18061 sunos4*)
18062 version_type=sunos
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18065 shlibpath_var=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath=yes
18067 if test "$with_gnu_ld" = yes; then
18068 need_lib_prefix=no
18070 need_version=yes
18073 sysv4 | sysv4.3*)
18074 version_type=linux
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 shlibpath_var=LD_LIBRARY_PATH
18078 case $host_vendor in
18079 sni)
18080 shlibpath_overrides_runpath=no
18081 need_lib_prefix=no
18082 runpath_var=LD_RUN_PATH
18084 siemens)
18085 need_lib_prefix=no
18087 motorola)
18088 need_lib_prefix=no
18089 need_version=no
18090 shlibpath_overrides_runpath=no
18091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18093 esac
18096 sysv4*MP*)
18097 if test -d /usr/nec ;then
18098 version_type=linux
18099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18100 soname_spec='$libname${shared_ext}.$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18106 version_type=freebsd-elf
18107 need_lib_prefix=no
18108 need_version=no
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18110 soname_spec='${libname}${release}${shared_ext}$major'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 shlibpath_overrides_runpath=yes
18113 hardcode_into_libs=yes
18114 if test "$with_gnu_ld" = yes; then
18115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18116 else
18117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18118 case $host_os in
18119 sco3.2v5*)
18120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18122 esac
18124 sys_lib_dlsearch_path_spec='/usr/lib'
18127 tpf*)
18128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18129 version_type=linux
18130 need_lib_prefix=no
18131 need_version=no
18132 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath=no
18135 hardcode_into_libs=yes
18138 uts4*)
18139 version_type=linux
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 shlibpath_var=LD_LIBRARY_PATH
18146 dynamic_linker=no
18148 esac
18149 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18150 echo "${ECHO_T}$dynamic_linker" >&6
18151 test "$dynamic_linker" = no && can_build_shared=no
18153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18154 if test "$GCC" = yes; then
18155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18193 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18195 hardcode_action_GCJ=
18196 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18197 test -n "$runpath_var_GCJ" ||
18198 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18200 # We can hardcode non-existent directories.
18201 if test "$hardcode_direct_GCJ" != no &&
18202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18203 # have to relink, otherwise we might link with an installed library
18204 # when we should be linking with a yet-to-be-installed one
18205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18206 test "$hardcode_minus_L_GCJ" != no; then
18207 # Linking always hardcodes the temporary library directory.
18208 hardcode_action_GCJ=relink
18209 else
18210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18211 hardcode_action_GCJ=immediate
18213 else
18214 # We cannot hardcode anything, or else we can only hardcode existing
18215 # directories.
18216 hardcode_action_GCJ=unsupported
18218 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18219 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18221 if test "$hardcode_action_GCJ" = relink ||
18222 test "$inherit_rpath_GCJ" = yes; then
18223 # Fast installation is not supported
18224 enable_fast_install=no
18225 elif test "$shlibpath_overrides_runpath" = yes ||
18226 test "$enable_shared" = no; then
18227 # Fast installation is not necessary
18228 enable_fast_install=needless
18239 compiler_GCJ=${GCJ-gcj}
18240 ac_ext=c
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18247 if test "x$CC" != xcc; then
18248 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18249 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18250 else
18251 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18252 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18254 set dummy $CC; ac_cc=`echo $2 |
18255 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18256 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18267 main ()
18271 return 0;
18273 _ACEOF
18274 # Make sure it works both with $CC and with simple cc.
18275 # We do the test twice because some compilers refuse to overwrite an
18276 # existing .o file with -o, though they will create one.
18277 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18278 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); };
18288 then
18289 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18290 if test "x$CC" != xcc; then
18291 # Test first that cc exists at all.
18292 if { ac_try='cc -c conftest.$ac_ext >&5'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18299 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); };
18309 then
18310 # cc works too.
18312 else
18313 # cc exists but doesn't like -o.
18314 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18318 else
18319 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18321 rm -f conftest*
18324 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18325 echo "$as_me:$LINENO: result: yes" >&5
18326 echo "${ECHO_T}yes" >&6
18327 else
18328 echo "$as_me:$LINENO: result: no" >&5
18329 echo "${ECHO_T}no" >&6
18331 cat >>confdefs.h <<\_ACEOF
18332 #define NO_MINUS_C_MINUS_O 1
18333 _ACEOF
18337 # FIXME: we rely on the cache variable name because
18338 # there is no other way.
18339 set dummy $CC
18340 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18341 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18342 # Losing compiler, so override with the script.
18343 # FIXME: It is wrong to rewrite CC.
18344 # But if we don't then we get into trouble of one sort or another.
18345 # A longer-term fix would be to have automake use am__CC in this case,
18346 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18347 CC="$am_aux_dir/compile $CC"
18353 subdirs="$subdirs classpath libltdl"
18356 # The -no-testsuite modules omit the test subdir.
18359 if test -d $srcdir/testsuite; then
18360 TESTSUBDIR_TRUE=
18361 TESTSUBDIR_FALSE='#'
18362 else
18363 TESTSUBDIR_TRUE='#'
18364 TESTSUBDIR_FALSE=
18368 # Should the runtime set system properties by examining the
18369 # environment variable GCJ_PROPERTIES?
18370 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18371 if test "${enable_getenv_properties+set}" = set; then
18372 enableval="$enable_getenv_properties"
18376 # Whether GCJ_PROPERTIES is used depends on the target.
18377 if test -z "$enable_getenv_properties"; then
18378 enable_getenv_properties=${enable_getenv_properties_default-yes}
18380 if test "$enable_getenv_properties" = no; then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define DISABLE_GETENV_PROPERTIES 1
18384 _ACEOF
18388 # Whether we should use arguments to main()
18389 if test -z "$enable_main_args"; then
18390 enable_main_args=${enable_main_args_default-yes}
18392 if test "$enable_main_args" = no; then
18394 cat >>confdefs.h <<\_ACEOF
18395 #define DISABLE_MAIN_ARGS 1
18396 _ACEOF
18401 # Should we use hashtable-based synchronization?
18402 # Currently works only for Linux X86/ia64
18403 # Typically faster and more space-efficient
18404 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18405 if test "${enable_hash_synchronization+set}" = set; then
18406 enableval="$enable_hash_synchronization"
18410 if test -z "$enable_hash_synchronization"; then
18411 enable_hash_synchronization=$enable_hash_synchronization_default
18415 install_ecj_jar=no
18416 ECJ_BUILD_JAR=
18417 ECJ_JAR=
18419 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18420 if test "${with_ecj_jar+set}" = set; then
18421 withval="$with_ecj_jar"
18422 ECJ_JAR=$withval
18423 else
18424 if test -f $multi_basedir/ecj.jar; then
18425 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18426 ECJ_JAR='$(jardir)/ecj.jar'
18427 install_ecj_jar=yes
18434 if test "$ECJ_JAR" != ""; then
18435 BUILD_ECJ1_TRUE=
18436 BUILD_ECJ1_FALSE='#'
18437 else
18438 BUILD_ECJ1_TRUE='#'
18439 BUILD_ECJ1_FALSE=
18444 if test $install_ecj_jar = yes; then
18445 INSTALL_ECJ_JAR_TRUE=
18446 INSTALL_ECJ_JAR_FALSE='#'
18447 else
18448 INSTALL_ECJ_JAR_TRUE='#'
18449 INSTALL_ECJ_JAR_FALSE=
18454 # Check whether --with-java-home or --without-java-home was given.
18455 if test "${with_java_home+set}" = set; then
18456 withval="$with_java_home"
18457 JAVA_HOME="${withval}"
18458 else
18459 JAVA_HOME=""
18463 if test ! -z "$JAVA_HOME"; then
18464 JAVA_HOME_SET_TRUE=
18465 JAVA_HOME_SET_FALSE='#'
18466 else
18467 JAVA_HOME_SET_TRUE='#'
18468 JAVA_HOME_SET_FALSE=
18473 suppress_libgcj_bc=no
18474 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18475 if test "${enable_libgcj_bc+set}" = set; then
18476 enableval="$enable_libgcj_bc"
18477 if test "$enable_libgcj_bc" = "no"; then
18478 suppress_libgcj_bc=yes
18483 if test "$suppress_libgcj_bc" = "yes"; then
18484 SUPPRESS_LIBGCJ_BC_TRUE=
18485 SUPPRESS_LIBGCJ_BC_FALSE='#'
18486 else
18487 SUPPRESS_LIBGCJ_BC_TRUE='#'
18488 SUPPRESS_LIBGCJ_BC_FALSE=
18492 # What is the native OS API for MinGW?
18494 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18495 if test "${with_win32_nlsapi+set}" = set; then
18496 withval="$with_win32_nlsapi"
18497 case "${withval}" in
18498 ansi) with_win32_nlsapi=ansi ;;
18499 unicows) with_win32_nlsapi=unicows ;;
18500 unicode) with_win32_nlsapi=unicode ;;
18501 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18502 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18503 { (exit 1); exit 1; }; } ;;
18504 esac
18505 else
18506 with_win32_nlsapi=ansi
18509 case "${with_win32_nlsapi}" in
18510 unicows | unicode)
18512 cat >>confdefs.h <<\_ACEOF
18513 #define MINGW_LIBGCJ_UNICODE 1
18514 _ACEOF
18517 esac
18519 # configure.host sets slow_pthread_self if the synchronization code should
18520 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18521 if test "${slow_pthread_self}" = "yes"; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define SLOW_PTHREAD_SELF 1
18525 _ACEOF
18529 # Check for gc debugging. This option is handled both here and in the GC.
18530 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18531 if test "${enable_gc_debug+set}" = set; then
18532 enableval="$enable_gc_debug"
18533 if test "$enable_gc_debug" = "yes"; then
18535 cat >>confdefs.h <<\_ACEOF
18536 #define LIBGCJ_GC_DEBUG 1
18537 _ACEOF
18542 # See if the user has the interpreter included.
18543 # Check whether --enable-interpreter or --disable-interpreter was given.
18544 if test "${enable_interpreter+set}" = set; then
18545 enableval="$enable_interpreter"
18546 if test "$enable_interpreter" = yes; then
18547 # This can also be set in configure.host.
18548 libgcj_interpreter=yes
18549 elif test "$enable_interpreter" = no; then
18550 libgcj_interpreter=no
18554 if test "$libgcj_interpreter" = yes; then
18556 cat >>confdefs.h <<\_ACEOF
18557 #define INTERPRETER 1
18558 _ACEOF
18561 INTERPRETER="$libgcj_interpreter"
18565 if test "$libgcj_interpreter" = yes; then
18566 INTERPRETER_TRUE=
18567 INTERPRETER_FALSE='#'
18568 else
18569 INTERPRETER_TRUE='#'
18570 INTERPRETER_FALSE=
18574 echo "$as_me:$LINENO: checking for exception model to use" >&5
18575 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18576 ac_ext=cc
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18582 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18583 if test "${enable_sjlj_exceptions+set}" = set; then
18584 enableval="$enable_sjlj_exceptions"
18586 else
18587 cat > conftest.$ac_ext << EOF
18588 #line 18588 "configure"
18589 struct S { ~S(); };
18590 void bar();
18591 void foo()
18593 S s;
18594 bar();
18597 old_CXXFLAGS="$CXXFLAGS"
18598 CXXFLAGS=-S
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; then
18604 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18605 enable_sjlj_exceptions=yes
18606 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18607 enable_sjlj_exceptions=no
18610 CXXFLAGS="$old_CXXFLAGS"
18611 rm -f conftest*
18613 if test x$enable_sjlj_exceptions = xyes; then
18615 cat >>confdefs.h <<\_ACEOF
18616 #define SJLJ_EXCEPTIONS 1
18617 _ACEOF
18619 ac_exception_model_name=sjlj
18620 elif test x$enable_sjlj_exceptions = xno; then
18621 ac_exception_model_name="call frame"
18622 else
18623 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18624 echo "$as_me: error: unable to detect exception model" >&2;}
18625 { (exit 1); exit 1; }; }
18627 ac_ext=c
18628 ac_cpp='$CPP $CPPFLAGS'
18629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18633 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18634 echo "${ECHO_T}$ac_exception_model_name" >&6
18636 # If we are non using SJLJ exceptions, and this host does not have support
18637 # for unwinding from a signal handler, enable checked dereferences and divides.
18638 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18639 CHECKREFSPEC=-fcheck-references
18640 DIVIDESPEC=-fuse-divide-subroutine
18641 EXCEPTIONSPEC=
18644 # See if the user wants to disable java.net. This is the mildly
18645 # ugly way that we admit that target-side configuration sucks.
18646 # Check whether --enable-java-net or --disable-java-net was given.
18647 if test "${enable_java_net+set}" = set; then
18648 enableval="$enable_java_net"
18652 # Whether java.net is built by default can depend on the target.
18653 if test -z "$enable_java_net"; then
18654 enable_java_net=${enable_java_net_default-yes}
18656 if test "$enable_java_net" = no; then
18658 cat >>confdefs.h <<\_ACEOF
18659 #define DISABLE_JAVA_NET 1
18660 _ACEOF
18664 # See if the user wants to configure without libffi. Some
18665 # architectures don't support it, and default values are set in
18666 # configure.host.
18668 # Check whether --with-libffi or --without-libffi was given.
18669 if test "${with_libffi+set}" = set; then
18670 withval="$with_libffi"
18672 else
18673 with_libffi=${with_libffi_default-yes}
18676 LIBFFI=
18677 LIBFFIINCS=
18678 if test "$with_libffi" != no; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define USE_LIBFFI 1
18682 _ACEOF
18684 LIBFFI=../libffi/libffi_convenience.la
18685 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18690 # See if the user wants to disable JVMPI support.
18691 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18692 if test "${enable_jvmpi+set}" = set; then
18693 enableval="$enable_jvmpi"
18697 if test "$enable_jvmpi" != no; then
18699 cat >>confdefs.h <<\_ACEOF
18700 #define ENABLE_JVMPI 1
18701 _ACEOF
18705 # If the target is an eCos system, use the appropriate eCos
18706 # I/O routines.
18707 # FIXME: this should not be a local option but a global target
18708 # system; at present there is no eCos target.
18709 TARGET_ECOS=${PROCESS-"no"}
18711 # Check whether --with-ecos or --without-ecos was given.
18712 if test "${with_ecos+set}" = set; then
18713 withval="$with_ecos"
18714 TARGET_ECOS="$with_ecos"
18718 case "$TARGET_ECOS" in
18719 no) case "$host" in
18720 *mingw*)
18721 PLATFORM=Win32
18722 PLATFORMNET=Win32
18723 PLATFORMH=win32.h
18725 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18726 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18727 LD_PROG=`$CC --print-prog-name=ld`
18728 LD_VERSION=`$LD_PROG --version`
18729 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18730 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18731 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18732 LD_OK="ok"
18733 else
18734 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18735 LD_OK="ok"
18738 if test "x$LD_OK" != x; then
18739 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18740 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18741 else
18742 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18743 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18744 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18745 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18747 cat >>confdefs.h <<\_ACEOF
18748 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18749 _ACEOF
18754 PLATFORM=Posix
18755 PLATFORMNET=Posix
18756 PLATFORMH=posix.h
18758 esac
18761 PLATFORM=Ecos
18762 PLATFORMNET=NoNet
18764 cat >>confdefs.h <<\_ACEOF
18765 #define ECOS 1
18766 _ACEOF
18768 PLATFORMH=posix.h
18770 esac
18772 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <stdint.h>
18783 _ACEOF
18784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18785 $EGREP "uint32_t" >/dev/null 2>&1; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_INT32_DEFINED 1
18789 _ACEOF
18792 rm -f conftest*
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h. */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 #include <inttypes.h>
18802 _ACEOF
18803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18804 $EGREP "uint32_t" >/dev/null 2>&1; then
18806 cat >>confdefs.h <<\_ACEOF
18807 #define HAVE_INT32_DEFINED 1
18808 _ACEOF
18811 rm -f conftest*
18813 cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h. */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819 #include <sys/types.h>
18821 _ACEOF
18822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18823 $EGREP "u_int32_t" >/dev/null 2>&1; then
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE_BSD_INT32_DEFINED 1
18827 _ACEOF
18830 rm -f conftest*
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <sys/config.h>
18840 _ACEOF
18841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18842 $EGREP "u_int32_t" >/dev/null 2>&1; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define HAVE_BSD_INT32_DEFINED 1
18846 _ACEOF
18849 rm -f conftest*
18854 if test "$PLATFORM" = Win32; then
18855 USING_WIN32_PLATFORM_TRUE=
18856 USING_WIN32_PLATFORM_FALSE='#'
18857 else
18858 USING_WIN32_PLATFORM_TRUE='#'
18859 USING_WIN32_PLATFORM_FALSE=
18864 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18865 USING_POSIX_PLATFORM_TRUE=
18866 USING_POSIX_PLATFORM_FALSE='#'
18867 else
18868 USING_POSIX_PLATFORM_TRUE='#'
18869 USING_POSIX_PLATFORM_FALSE=
18873 case "$host" in
18874 *-darwin*) DARWIN_CRT=true ;;
18875 *) DARWIN_CRT=false ;;
18876 esac
18879 if $DARWIN_CRT; then
18880 USING_DARWIN_CRT_TRUE=
18881 USING_DARWIN_CRT_FALSE='#'
18882 else
18883 USING_DARWIN_CRT_TRUE='#'
18884 USING_DARWIN_CRT_FALSE=
18888 # This may not be defined in a non-ANS conformant embedded system.
18889 # FIXME: Should these case a runtime exception in that case?
18890 cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 #include <time.h>
18898 _ACEOF
18899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18900 $EGREP "localtime" >/dev/null 2>&1; then
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE_LOCALTIME 1
18904 _ACEOF
18907 rm -f conftest*
18910 # Create the subdirectory for natFile.cc, or the attempt
18911 # to create the link will fail.
18912 test -d java || mkdir java
18913 test -d java/io || mkdir java/io
18914 test -d gnu || mkdir gnu
18915 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18918 # Likewise for natConcreteProcess.cc.
18919 test -d java/lang || mkdir java/lang
18920 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18923 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18924 test -d java/net || mkdir java/net
18925 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18927 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18930 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18931 test -d gnu/java || mkdir gnu/java
18932 test -d gnu/java/net || mkdir gnu/java/net
18933 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18935 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18938 # Likewise for natVMPipe.cc and natVMSelector.cc.
18939 test -d gnu/java/nio || mkdir gnu/java/nio
18940 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18942 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18945 # Likewise for natFileChannelImpl.cc
18946 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18947 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18950 case "${host}" in
18951 *mingw*)
18952 SYSTEMSPEC="-lgdi32 -lws2_32"
18953 if test "${with_win32_nlsapi}" = "unicows"; then
18954 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18958 SYSTEMSPEC=
18960 esac
18964 # Check whether --with-system-zlib or --without-system-zlib was given.
18965 if test "${with_system_zlib+set}" = set; then
18966 withval="$with_system_zlib"
18969 ZLIBSPEC=
18971 ZLIBTESTSPEC=
18974 echo "$as_me:$LINENO: checking for X" >&5
18975 echo $ECHO_N "checking for X... $ECHO_C" >&6
18978 # Check whether --with-x or --without-x was given.
18979 if test "${with_x+set}" = set; then
18980 withval="$with_x"
18983 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18984 if test "x$with_x" = xno; then
18985 # The user explicitly disabled X.
18986 have_x=disabled
18987 else
18988 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18989 # Both variables are already set.
18990 have_x=yes
18991 else
18992 if test "${ac_cv_have_x+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995 # One or both of the vars are not set, and there is no cached value.
18996 ac_x_includes=no ac_x_libraries=no
18997 rm -fr conftest.dir
18998 if mkdir conftest.dir; then
18999 cd conftest.dir
19000 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19001 cat >Imakefile <<'_ACEOF'
19002 acfindx:
19003 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19004 _ACEOF
19005 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19007 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19008 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19009 for ac_extension in a so sl; do
19010 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19011 test -f $ac_im_libdir/libX11.$ac_extension; then
19012 ac_im_usrlibdir=$ac_im_libdir; break
19014 done
19015 # Screen out bogus values from the imake configuration. They are
19016 # bogus both because they are the default anyway, and because
19017 # using them would break gcc on systems where it needs fixed includes.
19018 case $ac_im_incroot in
19019 /usr/include) ;;
19020 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19021 esac
19022 case $ac_im_usrlibdir in
19023 /usr/lib | /lib) ;;
19024 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19025 esac
19027 cd ..
19028 rm -fr conftest.dir
19031 # Standard set of common directories for X headers.
19032 # Check X11 before X11Rn because it is often a symlink to the current release.
19033 ac_x_header_dirs='
19034 /usr/X11/include
19035 /usr/X11R6/include
19036 /usr/X11R5/include
19037 /usr/X11R4/include
19039 /usr/include/X11
19040 /usr/include/X11R6
19041 /usr/include/X11R5
19042 /usr/include/X11R4
19044 /usr/local/X11/include
19045 /usr/local/X11R6/include
19046 /usr/local/X11R5/include
19047 /usr/local/X11R4/include
19049 /usr/local/include/X11
19050 /usr/local/include/X11R6
19051 /usr/local/include/X11R5
19052 /usr/local/include/X11R4
19054 /usr/X386/include
19055 /usr/x386/include
19056 /usr/XFree86/include/X11
19058 /usr/include
19059 /usr/local/include
19060 /usr/unsupported/include
19061 /usr/athena/include
19062 /usr/local/x11r5/include
19063 /usr/lpp/Xamples/include
19065 /usr/openwin/include
19066 /usr/openwin/share/include'
19068 if test "$ac_x_includes" = no; then
19069 # Guess where to find include files, by looking for Intrinsic.h.
19070 # First, try using that file with no special directory specified.
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 #include <X11/Intrinsic.h>
19078 _ACEOF
19079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } >/dev/null; then
19087 if test -s conftest.err; then
19088 ac_cpp_err=$ac_c_preproc_warn_flag
19089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19090 else
19091 ac_cpp_err=
19093 else
19094 ac_cpp_err=yes
19096 if test -z "$ac_cpp_err"; then
19097 # We can compile using X headers with no special include directory.
19098 ac_x_includes=
19099 else
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 for ac_dir in $ac_x_header_dirs; do
19104 if test -r "$ac_dir/X11/Intrinsic.h"; then
19105 ac_x_includes=$ac_dir
19106 break
19108 done
19110 rm -f conftest.err conftest.$ac_ext
19111 fi # $ac_x_includes = no
19113 if test "$ac_x_libraries" = no; then
19114 # Check for the libraries.
19115 # See if we find them without any special options.
19116 # Don't add to $LIBS permanently.
19117 ac_save_LIBS=$LIBS
19118 LIBS="-lXt $LIBS"
19119 if test x$gcc_no_link = xyes; then
19120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19122 { (exit 1); exit 1; }; }
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 #include <X11/Intrinsic.h>
19132 main ()
19134 XtMalloc (0)
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 LIBS=$ac_save_LIBS
19162 # We can link X programs with no special library path.
19163 ac_x_libraries=
19164 else
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 LIBS=$ac_save_LIBS
19169 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19171 # Don't even attempt the hair of trying to link an X program!
19172 for ac_extension in a so sl; do
19173 if test -r $ac_dir/libXt.$ac_extension; then
19174 ac_x_libraries=$ac_dir
19175 break 2
19177 done
19178 done
19180 rm -f conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 fi # $ac_x_libraries = no
19184 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19185 # Didn't find X anywhere. Cache the known absence of X.
19186 ac_cv_have_x="have_x=no"
19187 else
19188 # Record where we found X for the cache.
19189 ac_cv_have_x="have_x=yes \
19190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19195 eval "$ac_cv_have_x"
19196 fi # $with_x != no
19198 if test "$have_x" != yes; then
19199 echo "$as_me:$LINENO: result: $have_x" >&5
19200 echo "${ECHO_T}$have_x" >&6
19201 no_x=yes
19202 else
19203 # If each of the values was on the command line, it overrides each guess.
19204 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19205 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19206 # Update the cache value to reflect the command line values.
19207 ac_cv_have_x="have_x=yes \
19208 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19209 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19210 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19213 if test "$no_x" = yes; then
19214 # Not all programs may use this symbol, but it does not hurt to define it.
19216 cat >>confdefs.h <<\_ACEOF
19217 #define X_DISPLAY_MISSING 1
19218 _ACEOF
19220 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19221 else
19222 if test -n "$x_includes"; then
19223 X_CFLAGS="$X_CFLAGS -I$x_includes"
19226 # It would also be nice to do this for all -L options, not just this one.
19227 if test -n "$x_libraries"; then
19228 X_LIBS="$X_LIBS -L$x_libraries"
19229 # For Solaris; some versions of Sun CC require a space after -R and
19230 # others require no space. Words are not sufficient . . . .
19231 case `(uname -sr) 2>/dev/null` in
19232 "SunOS 5"*)
19233 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19234 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19235 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19236 if test x$gcc_no_link = xyes; then
19237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19239 { (exit 1); exit 1; }; }
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19249 main ()
19253 return 0;
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258 (eval $ac_link) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest$ac_exeext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_R_nospace=yes
19279 else
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_R_nospace=no
19285 rm -f conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19287 if test $ac_R_nospace = yes; then
19288 echo "$as_me:$LINENO: result: no" >&5
19289 echo "${ECHO_T}no" >&6
19290 X_LIBS="$X_LIBS -R$x_libraries"
19291 else
19292 LIBS="$ac_xsave_LIBS -R $x_libraries"
19293 if test x$gcc_no_link = xyes; then
19294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19296 { (exit 1); exit 1; }; }
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h. */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19306 main ()
19310 return 0;
19312 _ACEOF
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_R_space=yes
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_R_space=no
19342 rm -f conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 if test $ac_R_space = yes; then
19345 echo "$as_me:$LINENO: result: yes" >&5
19346 echo "${ECHO_T}yes" >&6
19347 X_LIBS="$X_LIBS -R $x_libraries"
19348 else
19349 echo "$as_me:$LINENO: result: neither works" >&5
19350 echo "${ECHO_T}neither works" >&6
19353 LIBS=$ac_xsave_LIBS
19354 esac
19357 # Check for system-dependent libraries X programs must link with.
19358 # Do this before checking for the system-independent R6 libraries
19359 # (-lICE), since we may need -lsocket or whatever for X linking.
19361 if test "$ISC" = yes; then
19362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19363 else
19364 # Martyn Johnson says this is needed for Ultrix, if the X
19365 # libraries were built with DECnet support. And Karl Berry says
19366 # the Alpha needs dnet_stub (dnet does not exist).
19367 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19368 if test x$gcc_no_link = xyes; then
19369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19371 { (exit 1); exit 1; }; }
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 /* Override any gcc2 internal prototype to avoid an error. */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 /* We use char because int might match the return type of a gcc2
19385 builtin and then its argument prototype would still apply. */
19386 char XOpenDisplay ();
19388 main ()
19390 XOpenDisplay ();
19392 return 0;
19394 _ACEOF
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397 (eval $ac_link) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19423 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19424 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 ac_check_lib_save_LIBS=$LIBS
19428 LIBS="-ldnet $LIBS"
19429 if test x$gcc_no_link = xyes; then
19430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19432 { (exit 1); exit 1; }; }
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19441 /* Override any gcc2 internal prototype to avoid an error. */
19442 #ifdef __cplusplus
19443 extern "C"
19444 #endif
19445 /* We use char because int might match the return type of a gcc2
19446 builtin and then its argument prototype would still apply. */
19447 char dnet_ntoa ();
19449 main ()
19451 dnet_ntoa ();
19453 return 0;
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458 (eval $ac_link) 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest$ac_exeext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_dnet_dnet_ntoa=yes
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_lib_dnet_dnet_ntoa=no
19485 rm -f conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext conftest.$ac_ext
19487 LIBS=$ac_check_lib_save_LIBS
19489 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19490 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19491 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19492 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19495 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19496 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19497 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19498 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 ac_check_lib_save_LIBS=$LIBS
19502 LIBS="-ldnet_stub $LIBS"
19503 if test x$gcc_no_link = xyes; then
19504 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19506 { (exit 1); exit 1; }; }
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 /* Override any gcc2 internal prototype to avoid an error. */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 /* We use char because int might match the return type of a gcc2
19520 builtin and then its argument prototype would still apply. */
19521 char dnet_ntoa ();
19523 main ()
19525 dnet_ntoa ();
19527 return 0;
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19532 (eval $ac_link) 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try='test -z "$ac_c_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_cv_lib_dnet_stub_dnet_ntoa=no
19559 rm -f conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19563 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19564 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19565 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19566 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19571 rm -f conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573 LIBS="$ac_xsave_LIBS"
19575 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19576 # to get the SysV transport functions.
19577 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19578 # needs -lnsl.
19579 # The nsl library prevents programs from opening the X display
19580 # on Irix 5.2, according to T.E. Dickey.
19581 # The functions gethostbyname, getservbyname, and inet_addr are
19582 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19583 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19584 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19585 if test "${ac_cv_func_gethostbyname+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 if test x$gcc_no_link = xyes; then
19589 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19591 { (exit 1); exit 1; }; }
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19601 #define gethostbyname innocuous_gethostbyname
19603 /* System header to define __stub macros and hopefully few prototypes,
19604 which can conflict with char gethostbyname (); below.
19605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19606 <limits.h> exists even on freestanding compilers. */
19608 #ifdef __STDC__
19609 # include <limits.h>
19610 #else
19611 # include <assert.h>
19612 #endif
19614 #undef gethostbyname
19616 /* Override any gcc2 internal prototype to avoid an error. */
19617 #ifdef __cplusplus
19618 extern "C"
19620 #endif
19621 /* We use char because int might match the return type of a gcc2
19622 builtin and then its argument prototype would still apply. */
19623 char gethostbyname ();
19624 /* The GNU C library defines this for functions which it implements
19625 to always fail with ENOSYS. Some functions are actually named
19626 something starting with __ and the normal name is an alias. */
19627 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19628 choke me
19629 #else
19630 char (*f) () = gethostbyname;
19631 #endif
19632 #ifdef __cplusplus
19634 #endif
19637 main ()
19639 return f != gethostbyname;
19641 return 0;
19643 _ACEOF
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag"
19654 || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest$ac_exeext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_func_gethostbyname=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_func_gethostbyname=no
19673 rm -f conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19677 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19679 if test $ac_cv_func_gethostbyname = no; then
19680 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19681 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19682 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lnsl $LIBS"
19687 if test x$gcc_no_link = xyes; then
19688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19690 { (exit 1); exit 1; }; }
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19699 /* Override any gcc2 internal prototype to avoid an error. */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19705 char gethostbyname ();
19707 main ()
19709 gethostbyname ();
19711 return 0;
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_lib_nsl_gethostbyname=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_nsl_gethostbyname=no
19743 rm -f conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19748 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19749 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19753 if test $ac_cv_lib_nsl_gethostbyname = no; then
19754 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19755 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19756 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759 ac_check_lib_save_LIBS=$LIBS
19760 LIBS="-lbsd $LIBS"
19761 if test x$gcc_no_link = xyes; then
19762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19764 { (exit 1); exit 1; }; }
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19773 /* Override any gcc2 internal prototype to avoid an error. */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 /* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19779 char gethostbyname ();
19781 main ()
19783 gethostbyname ();
19785 return 0;
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_lib_bsd_gethostbyname=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_lib_bsd_gethostbyname=no
19817 rm -f conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19819 LIBS=$ac_check_lib_save_LIBS
19821 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19822 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19823 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19830 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19831 # socket/setsockopt and other routines are undefined under SCO ODT
19832 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19833 # on later versions), says Simon Leinen: it contains gethostby*
19834 # variants that don't use the name server (or something). -lsocket
19835 # must be given before -lnsl if both are needed. We assume that
19836 # if connect needs -lnsl, so does gethostbyname.
19837 echo "$as_me:$LINENO: checking for connect" >&5
19838 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19839 if test "${ac_cv_func_connect+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842 if test x$gcc_no_link = xyes; then
19843 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19845 { (exit 1); exit 1; }; }
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19855 #define connect innocuous_connect
19857 /* System header to define __stub macros and hopefully few prototypes,
19858 which can conflict with char connect (); below.
19859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860 <limits.h> exists even on freestanding compilers. */
19862 #ifdef __STDC__
19863 # include <limits.h>
19864 #else
19865 # include <assert.h>
19866 #endif
19868 #undef connect
19870 /* Override any gcc2 internal prototype to avoid an error. */
19871 #ifdef __cplusplus
19872 extern "C"
19874 #endif
19875 /* We use char because int might match the return type of a gcc2
19876 builtin and then its argument prototype would still apply. */
19877 char connect ();
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined (__stub_connect) || defined (__stub___connect)
19882 choke me
19883 #else
19884 char (*f) () = connect;
19885 #endif
19886 #ifdef __cplusplus
19888 #endif
19891 main ()
19893 return f != connect;
19895 return 0;
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_func_connect=yes
19921 else
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_cv_func_connect=no
19927 rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19931 echo "${ECHO_T}$ac_cv_func_connect" >&6
19933 if test $ac_cv_func_connect = no; then
19934 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19935 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19936 if test "${ac_cv_lib_socket_connect+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939 ac_check_lib_save_LIBS=$LIBS
19940 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19941 if test x$gcc_no_link = xyes; then
19942 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19943 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19944 { (exit 1); exit 1; }; }
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19953 /* Override any gcc2 internal prototype to avoid an error. */
19954 #ifdef __cplusplus
19955 extern "C"
19956 #endif
19957 /* We use char because int might match the return type of a gcc2
19958 builtin and then its argument prototype would still apply. */
19959 char connect ();
19961 main ()
19963 connect ();
19965 return 0;
19967 _ACEOF
19968 rm -f conftest.$ac_objext conftest$ac_exeext
19969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19970 (eval $ac_link) 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag"
19978 || test ! -s conftest.err'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest$ac_exeext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_cv_lib_socket_connect=yes
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_lib_socket_connect=no
19997 rm -f conftest.err conftest.$ac_objext \
19998 conftest$ac_exeext conftest.$ac_ext
19999 LIBS=$ac_check_lib_save_LIBS
20001 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20002 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20003 if test $ac_cv_lib_socket_connect = yes; then
20004 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20009 # Guillermo Gomez says -lposix is necessary on A/UX.
20010 echo "$as_me:$LINENO: checking for remove" >&5
20011 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20012 if test "${ac_cv_func_remove+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 if test x$gcc_no_link = xyes; then
20016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20018 { (exit 1); exit 1; }; }
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028 #define remove innocuous_remove
20030 /* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char remove (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20035 #ifdef __STDC__
20036 # include <limits.h>
20037 #else
20038 # include <assert.h>
20039 #endif
20041 #undef remove
20043 /* Override any gcc2 internal prototype to avoid an error. */
20044 #ifdef __cplusplus
20045 extern "C"
20047 #endif
20048 /* We use char because int might match the return type of a gcc2
20049 builtin and then its argument prototype would still apply. */
20050 char remove ();
20051 /* The GNU C library defines this for functions which it implements
20052 to always fail with ENOSYS. Some functions are actually named
20053 something starting with __ and the normal name is an alias. */
20054 #if defined (__stub_remove) || defined (__stub___remove)
20055 choke me
20056 #else
20057 char (*f) () = remove;
20058 #endif
20059 #ifdef __cplusplus
20061 #endif
20064 main ()
20066 return f != remove;
20068 return 0;
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073 (eval $ac_link) 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest$ac_exeext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_cv_func_remove=yes
20094 else
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_cv_func_remove=no
20100 rm -f conftest.err conftest.$ac_objext \
20101 conftest$ac_exeext conftest.$ac_ext
20103 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20104 echo "${ECHO_T}$ac_cv_func_remove" >&6
20106 if test $ac_cv_func_remove = no; then
20107 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20108 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20109 if test "${ac_cv_lib_posix_remove+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 ac_check_lib_save_LIBS=$LIBS
20113 LIBS="-lposix $LIBS"
20114 if test x$gcc_no_link = xyes; then
20115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20117 { (exit 1); exit 1; }; }
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any gcc2 internal prototype to avoid an error. */
20127 #ifdef __cplusplus
20128 extern "C"
20129 #endif
20130 /* We use char because int might match the return type of a gcc2
20131 builtin and then its argument prototype would still apply. */
20132 char remove ();
20134 main ()
20136 remove ();
20138 return 0;
20140 _ACEOF
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag"
20151 || test ! -s conftest.err'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_lib_posix_remove=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_lib_posix_remove=no
20170 rm -f conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20174 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20175 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20176 if test $ac_cv_lib_posix_remove = yes; then
20177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20182 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20183 echo "$as_me:$LINENO: checking for shmat" >&5
20184 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20185 if test "${ac_cv_func_shmat+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 if test x$gcc_no_link = xyes; then
20189 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20191 { (exit 1); exit 1; }; }
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20201 #define shmat innocuous_shmat
20203 /* System header to define __stub macros and hopefully few prototypes,
20204 which can conflict with char shmat (); below.
20205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20206 <limits.h> exists even on freestanding compilers. */
20208 #ifdef __STDC__
20209 # include <limits.h>
20210 #else
20211 # include <assert.h>
20212 #endif
20214 #undef shmat
20216 /* Override any gcc2 internal prototype to avoid an error. */
20217 #ifdef __cplusplus
20218 extern "C"
20220 #endif
20221 /* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20223 char shmat ();
20224 /* The GNU C library defines this for functions which it implements
20225 to always fail with ENOSYS. Some functions are actually named
20226 something starting with __ and the normal name is an alias. */
20227 #if defined (__stub_shmat) || defined (__stub___shmat)
20228 choke me
20229 #else
20230 char (*f) () = shmat;
20231 #endif
20232 #ifdef __cplusplus
20234 #endif
20237 main ()
20239 return f != shmat;
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246 (eval $ac_link) 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -z "$ac_c_werror_flag"
20254 || test ! -s conftest.err'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; } &&
20260 { ac_try='test -s conftest$ac_exeext'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 ac_cv_func_shmat=yes
20267 else
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 ac_cv_func_shmat=no
20273 rm -f conftest.err conftest.$ac_objext \
20274 conftest$ac_exeext conftest.$ac_ext
20276 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20277 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20279 if test $ac_cv_func_shmat = no; then
20280 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20281 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20282 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285 ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-lipc $LIBS"
20287 if test x$gcc_no_link = xyes; then
20288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20290 { (exit 1); exit 1; }; }
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20299 /* Override any gcc2 internal prototype to avoid an error. */
20300 #ifdef __cplusplus
20301 extern "C"
20302 #endif
20303 /* We use char because int might match the return type of a gcc2
20304 builtin and then its argument prototype would still apply. */
20305 char shmat ();
20307 main ()
20309 shmat ();
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316 (eval $ac_link) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest$ac_exeext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_cv_lib_ipc_shmat=yes
20337 else
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_cv_lib_ipc_shmat=no
20343 rm -f conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20345 LIBS=$ac_check_lib_save_LIBS
20347 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20348 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20349 if test $ac_cv_lib_ipc_shmat = yes; then
20350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20356 # Check for libraries that X11R6 Xt/Xaw programs need.
20357 ac_save_LDFLAGS=$LDFLAGS
20358 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20359 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20360 # check for ICE first), but we must link in the order -lSM -lICE or
20361 # we get undefined symbols. So assume we have SM if we have ICE.
20362 # These have to be linked with before -lX11, unlike the other
20363 # libraries we check for below, so use a different variable.
20364 # John Interrante, Karl Berry
20365 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20366 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20367 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370 ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20372 if test x$gcc_no_link = xyes; then
20373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20375 { (exit 1); exit 1; }; }
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h. */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 /* Override any gcc2 internal prototype to avoid an error. */
20385 #ifdef __cplusplus
20386 extern "C"
20387 #endif
20388 /* We use char because int might match the return type of a gcc2
20389 builtin and then its argument prototype would still apply. */
20390 char IceConnectionNumber ();
20392 main ()
20394 IceConnectionNumber ();
20396 return 0;
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest$ac_exeext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_cv_lib_ICE_IceConnectionNumber=yes
20422 else
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_cv_lib_ICE_IceConnectionNumber=no
20428 rm -f conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext conftest.$ac_ext
20430 LIBS=$ac_check_lib_save_LIBS
20432 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20433 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20434 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20435 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20438 LDFLAGS=$ac_save_LDFLAGS
20443 # FIXME: this should be _libs on some hosts.
20444 libsubdir=.libs
20446 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20448 LIBSTDCXXSPEC=
20449 # extra LD Flags which are required for targets
20450 case "${host}" in
20451 *-*-darwin[0-7].*)
20452 # For now we have to disable it on darwin[8-9] because it slows down
20453 # the linking phase. A possible bug in ld?
20454 # on Darwin -single_module speeds up loading of the dynamic libraries.
20455 extra_ldflags_libjava=-Wl,-single_module
20457 *-*-darwin[9]*)
20458 extra_gij_ldflags=-Wl,-allow_stack_execute
20460 arm*linux*eabi)
20461 # Some of the ARM unwinder code is actually in libstdc++. We
20462 # could in principle replicate it in libgcj, but it's better to
20463 # have a dependency on libstdc++.
20464 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20465 LIBSTDCXXSPEC=-lstdc++
20466 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20468 esac
20476 # Allow the GC to be disabled. Can be useful when debugging.
20477 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20478 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20479 # Check whether --enable-java-gc or --disable-java-gc was given.
20480 if test "${enable_java_gc+set}" = set; then
20481 enableval="$enable_java_gc"
20482 GC=$enableval
20483 else
20484 GC=boehm
20486 GCLIBS=
20487 GCINCS=
20488 GCDEPS=
20489 GCSPEC=
20490 JC1GCSPEC=
20491 GCTESTSPEC=
20492 case "$GC" in
20493 boehm)
20494 echo "$as_me:$LINENO: result: boehm" >&5
20495 echo "${ECHO_T}boehm" >&6
20496 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20497 JC1GCSPEC='-fuse-boehm-gc'
20498 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20499 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20500 GCOBJS=boehm.lo
20501 GCHDR=boehm-gc.h
20502 # The POSIX thread support needs to know this.
20504 cat >>confdefs.h <<\_ACEOF
20505 #define HAVE_BOEHM_GC 1
20506 _ACEOF
20510 echo "$as_me:$LINENO: result: none" >&5
20511 echo "${ECHO_T}none" >&6
20512 GCHDR=no-gc.h
20515 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20516 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20517 { (exit 1); exit 1; }; }
20519 esac
20526 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20530 if test "$GC" = boehm; then
20531 USING_BOEHMGC_TRUE=
20532 USING_BOEHMGC_FALSE='#'
20533 else
20534 USING_BOEHMGC_TRUE='#'
20535 USING_BOEHMGC_FALSE=
20540 if test "$GC" = no; then
20541 USING_NOGC_TRUE=
20542 USING_NOGC_FALSE='#'
20543 else
20544 USING_NOGC_TRUE='#'
20545 USING_NOGC_FALSE=
20550 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20551 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20552 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20553 echo "$as_me:$LINENO: result: $THREADS" >&5
20554 echo "${ECHO_T}$THREADS" >&6
20556 case "$THREADS" in
20557 no | none | single)
20558 THREADS=none
20560 posix | posix95 | pthreads)
20561 THREADS=posix
20562 case "$host" in
20563 *-*-linux*)
20565 cat >>confdefs.h <<\_ACEOF
20566 #define LINUX_THREADS 1
20567 _ACEOF
20570 esac
20572 win32)
20574 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20575 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20576 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20577 { (exit 1); exit 1; }; }
20580 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20581 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20582 { (exit 1); exit 1; }; }
20584 esac
20586 THREADCXXFLAGS=
20587 THREADLDFLAGS=
20588 THREADLIBS=
20589 THREADINCS=
20590 THREADDEPS=
20591 THREADH=
20592 THREADSPEC=
20593 THREADSTARTFILESPEC=
20594 case "$THREADS" in
20595 posix)
20596 case "$host" in
20597 *-*-cygwin*)
20598 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20600 *-*-freebsd[1234]*)
20601 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20602 # merely adds pthread_* functions) but it does have a -pthread switch
20603 # which is required at link-time to select -lc_r *instead* of -lc.
20604 THREADLDFLAGS=-pthread
20605 # Don't set THREADSPEC here as might be expected since -pthread is
20606 # not processed when found within a spec file, it must come from
20607 # the command line. For now, the user must provide the -pthread
20608 # switch to link code compiled with gcj. In future, consider adding
20609 # support for weak references to pthread_* functions ala gthr.h API.
20610 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20612 *-*-freebsd*)
20613 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20614 # systems which support threads and -lpthread.
20615 THREADLDFLAGS=-pthread
20616 THREADSPEC=-lpthread
20618 alpha*-dec-osf* | hppa*-hp-hpux*)
20619 THREADCXXFLAGS=-pthread
20620 # boehm-gc needs some functions from librt, so link that too.
20621 THREADLIBS='-lpthread -lrt'
20622 THREADSPEC='-lpthread -lrt'
20625 THREADLIBS=-lpthread
20626 THREADSPEC=-lpthread
20628 esac
20629 THREADH=posix-threads.h
20630 # MIT pthreads doesn't seem to have the mutexattr functions.
20631 # But for now we don't check for it. We just assume you aren't
20632 # using MIT pthreads.
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20636 _ACEOF
20639 # If we're using the Boehm GC, then we happen to know that it
20640 # defines _REENTRANT, so we don't bother. Eww.
20641 if test "$GC" != boehm; then
20643 cat >>confdefs.h <<\_ACEOF
20644 #define _REENTRANT 1
20645 _ACEOF
20649 cat >>confdefs.h <<\_ACEOF
20650 #define _POSIX_PTHREAD_SEMANTICS 1
20651 _ACEOF
20655 win32)
20656 THREADH=win32-threads.h
20657 THREADCXXFLAGS=-mthreads
20658 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20659 # But we do not want the executables created to be dependent on
20660 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20661 # exception handling contexts. The following kludge achieves this effect
20662 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20663 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20664 # A workaround is to explicitly use -mthreads while linking Java programs.
20665 # See PR libgcj/28263.
20667 # FIXME: In Java we are able to detect thread death at the end of
20668 # Thread.run() so we should be able to clean up the exception handling
20669 # contexts ourselves.
20670 THREADSTARTFILESPEC='crtmt%O%s'
20673 none)
20674 THREADH=no-threads.h
20676 esac
20677 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20688 if test "$THREADS" = posix; then
20689 USING_POSIX_THREADS_TRUE=
20690 USING_POSIX_THREADS_FALSE='#'
20691 else
20692 USING_POSIX_THREADS_TRUE='#'
20693 USING_POSIX_THREADS_FALSE=
20698 if test "$THREADS" = win32; then
20699 USING_WIN32_THREADS_TRUE=
20700 USING_WIN32_THREADS_FALSE='#'
20701 else
20702 USING_WIN32_THREADS_TRUE='#'
20703 USING_WIN32_THREADS_FALSE=
20708 if test "$THREADS" = none; then
20709 USING_NO_THREADS_TRUE=
20710 USING_NO_THREADS_FALSE='#'
20711 else
20712 USING_NO_THREADS_TRUE='#'
20713 USING_NO_THREADS_FALSE=
20718 if test "$use_libgcj_bc" = yes; then
20719 USE_LIBGCJ_BC_TRUE=
20720 USE_LIBGCJ_BC_FALSE='#'
20721 else
20722 USE_LIBGCJ_BC_TRUE='#'
20723 USE_LIBGCJ_BC_FALSE=
20727 if test -d sysdep; then true; else mkdir sysdep; fi
20728 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20730 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20732 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20735 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20736 if test "$use_libgcj_bc" = yes; then
20737 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20741 HASH_SYNC_SPEC=
20742 # Hash synchronization is only useful with posix threads right now.
20743 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20744 HASH_SYNC_SPEC=-fhash-synchronization
20746 cat >>confdefs.h <<\_ACEOF
20747 #define JV_HASH_SYNCHRONIZATION 1
20748 _ACEOF
20755 if test "$GCC" = yes; then
20756 USING_GCC_TRUE=
20757 USING_GCC_FALSE='#'
20758 else
20759 USING_GCC_TRUE='#'
20760 USING_GCC_FALSE=
20764 # We're in the tree with gcc, and need to include some of its headers.
20765 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20767 if test "x${with_newlib}" = "xyes"; then
20768 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20769 # may not work correctly, because the compiler may not be able to
20770 # link executables.
20772 # We assume newlib. This lets us hard-code the functions we know
20773 # we'll have.
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_MEMMOVE 1
20777 _ACEOF
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_MEMCPY 1
20782 _ACEOF
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_TIME 1
20787 _ACEOF
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_GMTIME_R 1
20792 _ACEOF
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_LOCALTIME_R 1
20797 _ACEOF
20800 cat >>confdefs.h <<\_ACEOF
20801 #define HAVE_USLEEP_DECL 1
20802 _ACEOF
20804 # This is only for POSIX threads.
20806 cat >>confdefs.h <<\_ACEOF
20807 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20808 _ACEOF
20811 # Assume we do not have getuid and friends.
20813 cat >>confdefs.h <<\_ACEOF
20814 #define NO_GETUID 1
20815 _ACEOF
20817 PLATFORMNET=NoNet
20818 else
20849 for ac_func in strerror_r select fstat open fsync sleep opendir \
20850 localtime_r getpwuid_r getcwd \
20851 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20852 nl_langinfo setlocale \
20853 inet_pton uname inet_ntoa \
20854 getrlimit sigaction ftruncate mmap \
20855 getifaddrs
20857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 echo "$as_me:$LINENO: checking for $ac_func" >&5
20859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20860 if eval "test \"\${$as_ac_var+set}\" = set"; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863 if test x$gcc_no_link = xyes; then
20864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20866 { (exit 1); exit 1; }; }
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h. */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20876 #define $ac_func innocuous_$ac_func
20878 /* System header to define __stub macros and hopefully few prototypes,
20879 which can conflict with char $ac_func (); below.
20880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20881 <limits.h> exists even on freestanding compilers. */
20883 #ifdef __STDC__
20884 # include <limits.h>
20885 #else
20886 # include <assert.h>
20887 #endif
20889 #undef $ac_func
20891 /* Override any gcc2 internal prototype to avoid an error. */
20892 #ifdef __cplusplus
20893 extern "C"
20895 #endif
20896 /* We use char because int might match the return type of a gcc2
20897 builtin and then its argument prototype would still apply. */
20898 char $ac_func ();
20899 /* The GNU C library defines this for functions which it implements
20900 to always fail with ENOSYS. Some functions are actually named
20901 something starting with __ and the normal name is an alias. */
20902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20903 choke me
20904 #else
20905 char (*f) () = $ac_func;
20906 #endif
20907 #ifdef __cplusplus
20909 #endif
20912 main ()
20914 return f != $ac_func;
20916 return 0;
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20921 (eval $ac_link) 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
20928 { ac_try='test -z "$ac_c_werror_flag"
20929 || test ! -s conftest.err'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; } &&
20935 { ac_try='test -s conftest$ac_exeext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 eval "$as_ac_var=yes"
20942 else
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 eval "$as_ac_var=no"
20948 rm -f conftest.err conftest.$ac_objext \
20949 conftest$ac_exeext conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20953 if test `eval echo '${'$as_ac_var'}'` = yes; then
20954 cat >>confdefs.h <<_ACEOF
20955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20956 _ACEOF
20959 done
20963 for ac_func in inet_aton inet_addr
20965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20966 echo "$as_me:$LINENO: checking for $ac_func" >&5
20967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20968 if eval "test \"\${$as_ac_var+set}\" = set"; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971 if test x$gcc_no_link = xyes; then
20972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20974 { (exit 1); exit 1; }; }
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20984 #define $ac_func innocuous_$ac_func
20986 /* System header to define __stub macros and hopefully few prototypes,
20987 which can conflict with char $ac_func (); below.
20988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20989 <limits.h> exists even on freestanding compilers. */
20991 #ifdef __STDC__
20992 # include <limits.h>
20993 #else
20994 # include <assert.h>
20995 #endif
20997 #undef $ac_func
20999 /* Override any gcc2 internal prototype to avoid an error. */
21000 #ifdef __cplusplus
21001 extern "C"
21003 #endif
21004 /* We use char because int might match the return type of a gcc2
21005 builtin and then its argument prototype would still apply. */
21006 char $ac_func ();
21007 /* The GNU C library defines this for functions which it implements
21008 to always fail with ENOSYS. Some functions are actually named
21009 something starting with __ and the normal name is an alias. */
21010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21011 choke me
21012 #else
21013 char (*f) () = $ac_func;
21014 #endif
21015 #ifdef __cplusplus
21017 #endif
21020 main ()
21022 return f != $ac_func;
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21029 (eval $ac_link) 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
21036 { ac_try='test -z "$ac_c_werror_flag"
21037 || test ! -s conftest.err'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest$ac_exeext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 eval "$as_ac_var=yes"
21050 else
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 eval "$as_ac_var=no"
21056 rm -f conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21061 if test `eval echo '${'$as_ac_var'}'` = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21064 _ACEOF
21065 break
21067 done
21072 for ac_header in unistd.h dlfcn.h sys/resource.h
21074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21076 echo "$as_me:$LINENO: checking for $ac_header" >&5
21077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21083 else
21084 # Is the header compilable?
21085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 $ac_includes_default
21094 #include <$ac_header>
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098 (eval $ac_compile) 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_c_werror_flag"
21106 || test ! -s conftest.err'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 ac_header_compiler=yes
21119 else
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_header_compiler=no
21125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21127 echo "${ECHO_T}$ac_header_compiler" >&6
21129 # Is the header present?
21130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h. */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 #include <$ac_header>
21139 _ACEOF
21140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } >/dev/null; then
21148 if test -s conftest.err; then
21149 ac_cpp_err=$ac_c_preproc_warn_flag
21150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21151 else
21152 ac_cpp_err=
21154 else
21155 ac_cpp_err=yes
21157 if test -z "$ac_cpp_err"; then
21158 ac_header_preproc=yes
21159 else
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ac_header_preproc=no
21165 rm -f conftest.err conftest.$ac_ext
21166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21167 echo "${ECHO_T}$ac_header_preproc" >&6
21169 # So? What about this header?
21170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21171 yes:no: )
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21176 ac_header_preproc=yes
21178 no:yes:* )
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21192 cat <<\_ASBOX
21193 ## ---------------------------------- ##
21194 ## Report this to the libjava lists. ##
21195 ## ---------------------------------- ##
21196 _ASBOX
21198 sed "s/^/$as_me: WARNING: /" >&2
21200 esac
21201 echo "$as_me:$LINENO: checking for $ac_header" >&5
21202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206 eval "$as_ac_Header=\$ac_header_preproc"
21208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21213 cat >>confdefs.h <<_ACEOF
21214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21215 _ACEOF
21219 done
21221 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21222 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21223 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21224 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227 ac_check_lib_save_LIBS=$LIBS
21228 LIBS="-ldl $LIBS"
21229 if test x$gcc_no_link = xyes; then
21230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21232 { (exit 1); exit 1; }; }
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21241 /* Override any gcc2 internal prototype to avoid an error. */
21242 #ifdef __cplusplus
21243 extern "C"
21244 #endif
21245 /* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21247 char dladdr ();
21249 main ()
21251 dladdr ();
21253 return 0;
21255 _ACEOF
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21258 (eval $ac_link) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
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); }; } &&
21272 { ac_try='test -s conftest$ac_exeext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_lib_dl_dladdr=yes
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_cv_lib_dl_dladdr=no
21285 rm -f conftest.err conftest.$ac_objext \
21286 conftest$ac_exeext conftest.$ac_ext
21287 LIBS=$ac_check_lib_save_LIBS
21289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21290 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21291 if test $ac_cv_lib_dl_dladdr = yes; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define HAVE_DLADDR 1
21296 _ACEOF
21298 else
21300 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21301 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21302 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 else
21305 ac_check_lib_save_LIBS=$LIBS
21306 LIBS="-ldld $LIBS"
21307 if test x$gcc_no_link = xyes; then
21308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21310 { (exit 1); exit 1; }; }
21312 cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h. */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21319 /* Override any gcc2 internal prototype to avoid an error. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 /* We use char because int might match the return type of a gcc2
21324 builtin and then its argument prototype would still apply. */
21325 char dladdr ();
21327 main ()
21329 dladdr ();
21331 return 0;
21333 _ACEOF
21334 rm -f conftest.$ac_objext conftest$ac_exeext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336 (eval $ac_link) 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -z "$ac_c_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_lib_dld_dladdr=yes
21357 else
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_lib_dld_dladdr=no
21363 rm -f conftest.err conftest.$ac_objext \
21364 conftest$ac_exeext conftest.$ac_ext
21365 LIBS=$ac_check_lib_save_LIBS
21367 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21368 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21369 if test $ac_cv_lib_dld_dladdr = yes; then
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_DLADDR 1
21374 _ACEOF
21381 if test x"$cross_compiling" = x"no"; then
21382 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21383 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21384 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387 test "$cross_compiling" = yes &&
21388 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21389 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21390 { (exit 1); exit 1; }; }
21391 if test -r "/proc/self/exe"; then
21392 ac_cv_file__proc_self_exe=yes
21393 else
21394 ac_cv_file__proc_self_exe=no
21397 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21398 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21399 if test $ac_cv_file__proc_self_exe = yes; then
21401 cat >>confdefs.h <<_ACEOF
21402 #define HAVE__PROC_SELF_EXE 1
21403 _ACEOF
21407 cat >>confdefs.h <<\_ACEOF
21408 #define HAVE_PROC_SELF_EXE 1
21409 _ACEOF
21413 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21414 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21415 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418 test "$cross_compiling" = yes &&
21419 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21420 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21421 { (exit 1); exit 1; }; }
21422 if test -r "/proc/self/maps"; then
21423 ac_cv_file__proc_self_maps=yes
21424 else
21425 ac_cv_file__proc_self_maps=no
21428 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21429 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21430 if test $ac_cv_file__proc_self_maps = yes; then
21432 cat >>confdefs.h <<_ACEOF
21433 #define HAVE__PROC_SELF_MAPS 1
21434 _ACEOF
21438 cat >>confdefs.h <<\_ACEOF
21439 #define HAVE_PROC_SELF_MAPS 1
21440 _ACEOF
21444 else
21445 case $host in
21446 *-linux*)
21448 cat >>confdefs.h <<\_ACEOF
21449 #define HAVE_PROC_SELF_EXE 1
21450 _ACEOF
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_PROC_SELF_MAPS 1
21455 _ACEOF
21458 esac
21462 if test "X$prefix" = "XNONE"; then
21463 acl_final_prefix="$ac_default_prefix"
21464 else
21465 acl_final_prefix="$prefix"
21467 if test "X$exec_prefix" = "XNONE"; then
21468 acl_final_exec_prefix='${prefix}'
21469 else
21470 acl_final_exec_prefix="$exec_prefix"
21472 acl_save_prefix="$prefix"
21473 prefix="$acl_final_prefix"
21474 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21475 prefix="$acl_save_prefix"
21478 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21479 if test "${with_gnu_ld+set}" = set; then
21480 withval="$with_gnu_ld"
21481 test "$withval" = no || with_gnu_ld=yes
21482 else
21483 with_gnu_ld=no
21485 # Prepare PATH_SEPARATOR.
21486 # The user is always right.
21487 if test "${PATH_SEPARATOR+set}" != set; then
21488 echo "#! /bin/sh" >conf$$.sh
21489 echo "exit 0" >>conf$$.sh
21490 chmod +x conf$$.sh
21491 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21492 PATH_SEPARATOR=';'
21493 else
21494 PATH_SEPARATOR=:
21496 rm -f conf$$.sh
21498 ac_prog=ld
21499 if test "$GCC" = yes; then
21500 # Check if gcc -print-prog-name=ld gives a path.
21501 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21502 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21503 case $host in
21504 *-*-mingw*)
21505 # gcc leaves a trailing carriage return which upsets mingw
21506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21509 esac
21510 case $ac_prog in
21511 # Accept absolute paths.
21512 [\\/]* | [A-Za-z]:[\\/]*)
21513 re_direlt='/[^/][^/]*/\.\./'
21514 # Canonicalize the path of ld
21515 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21516 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21517 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21518 done
21519 test -z "$LD" && LD="$ac_prog"
21522 # If it fails, then pretend we aren't using GCC.
21523 ac_prog=ld
21526 # If it is relative, then search for the first ld in PATH.
21527 with_gnu_ld=unknown
21529 esac
21530 elif test "$with_gnu_ld" = yes; then
21531 echo "$as_me:$LINENO: checking for GNU ld" >&5
21532 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21533 else
21534 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21535 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21537 if test "${acl_cv_path_LD+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540 if test -z "$LD"; then
21541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21542 for ac_dir in $PATH; do
21543 test -z "$ac_dir" && ac_dir=.
21544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21545 acl_cv_path_LD="$ac_dir/$ac_prog"
21546 # Check to see if the program is GNU ld. I'd rather use --version,
21547 # but apparently some GNU ld's only accept -v.
21548 # Break only if it was the GNU/non-GNU ld that we prefer.
21549 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21550 test "$with_gnu_ld" != no && break
21551 else
21552 test "$with_gnu_ld" != yes && break
21555 done
21556 IFS="$ac_save_ifs"
21557 else
21558 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21562 LD="$acl_cv_path_LD"
21563 if test -n "$LD"; then
21564 echo "$as_me:$LINENO: result: $LD" >&5
21565 echo "${ECHO_T}$LD" >&6
21566 else
21567 echo "$as_me:$LINENO: result: no" >&5
21568 echo "${ECHO_T}no" >&6
21570 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21571 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21572 { (exit 1); exit 1; }; }
21573 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21574 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21575 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21579 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21580 acl_cv_prog_gnu_ld=yes
21581 else
21582 acl_cv_prog_gnu_ld=no
21585 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21586 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21587 with_gnu_ld=$acl_cv_prog_gnu_ld
21591 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21592 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21593 if test "${acl_cv_rpath+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21597 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21598 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21599 . ./conftest.sh
21600 rm -f ./conftest.sh
21601 acl_cv_rpath=done
21604 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21605 echo "${ECHO_T}$acl_cv_rpath" >&6
21606 wl="$acl_cv_wl"
21607 libext="$acl_cv_libext"
21608 shlibext="$acl_cv_shlibext"
21609 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21610 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21611 hardcode_direct="$acl_cv_hardcode_direct"
21612 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21613 # Check whether --enable-rpath or --disable-rpath was given.
21614 if test "${enable_rpath+set}" = set; then
21615 enableval="$enable_rpath"
21617 else
21618 enable_rpath=yes
21627 use_additional=yes
21629 acl_save_prefix="$prefix"
21630 prefix="$acl_final_prefix"
21631 acl_save_exec_prefix="$exec_prefix"
21632 exec_prefix="$acl_final_exec_prefix"
21634 eval additional_includedir=\"$includedir\"
21635 eval additional_libdir=\"$libdir\"
21637 exec_prefix="$acl_save_exec_prefix"
21638 prefix="$acl_save_prefix"
21641 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21642 if test "${with_libiconv_prefix+set}" = set; then
21643 withval="$with_libiconv_prefix"
21645 if test "X$withval" = "Xno"; then
21646 use_additional=no
21647 else
21648 if test "X$withval" = "X"; then
21650 acl_save_prefix="$prefix"
21651 prefix="$acl_final_prefix"
21652 acl_save_exec_prefix="$exec_prefix"
21653 exec_prefix="$acl_final_exec_prefix"
21655 eval additional_includedir=\"$includedir\"
21656 eval additional_libdir=\"$libdir\"
21658 exec_prefix="$acl_save_exec_prefix"
21659 prefix="$acl_save_prefix"
21661 else
21662 additional_includedir="$withval/include"
21663 additional_libdir="$withval/lib"
21668 LIBICONV=
21669 LTLIBICONV=
21670 INCICONV=
21671 rpathdirs=
21672 ltrpathdirs=
21673 names_already_handled=
21674 names_next_round='iconv '
21675 while test -n "$names_next_round"; do
21676 names_this_round="$names_next_round"
21677 names_next_round=
21678 for name in $names_this_round; do
21679 already_handled=
21680 for n in $names_already_handled; do
21681 if test "$n" = "$name"; then
21682 already_handled=yes
21683 break
21685 done
21686 if test -z "$already_handled"; then
21687 names_already_handled="$names_already_handled $name"
21688 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21689 eval value=\"\$HAVE_LIB$uppername\"
21690 if test -n "$value"; then
21691 if test "$value" = yes; then
21692 eval value=\"\$LIB$uppername\"
21693 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21694 eval value=\"\$LTLIB$uppername\"
21695 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21696 else
21699 else
21700 found_dir=
21701 found_la=
21702 found_so=
21703 found_a=
21704 if test $use_additional = yes; then
21705 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21706 found_dir="$additional_libdir"
21707 found_so="$additional_libdir/lib$name.$shlibext"
21708 if test -f "$additional_libdir/lib$name.la"; then
21709 found_la="$additional_libdir/lib$name.la"
21711 else
21712 if test -f "$additional_libdir/lib$name.$libext"; then
21713 found_dir="$additional_libdir"
21714 found_a="$additional_libdir/lib$name.$libext"
21715 if test -f "$additional_libdir/lib$name.la"; then
21716 found_la="$additional_libdir/lib$name.la"
21721 if test "X$found_dir" = "X"; then
21722 for x in $LDFLAGS $LTLIBICONV; do
21724 acl_save_prefix="$prefix"
21725 prefix="$acl_final_prefix"
21726 acl_save_exec_prefix="$exec_prefix"
21727 exec_prefix="$acl_final_exec_prefix"
21728 eval x=\"$x\"
21729 exec_prefix="$acl_save_exec_prefix"
21730 prefix="$acl_save_prefix"
21732 case "$x" in
21733 -L*)
21734 dir=`echo "X$x" | sed -e 's/^X-L//'`
21735 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21736 found_dir="$dir"
21737 found_so="$dir/lib$name.$shlibext"
21738 if test -f "$dir/lib$name.la"; then
21739 found_la="$dir/lib$name.la"
21741 else
21742 if test -f "$dir/lib$name.$libext"; then
21743 found_dir="$dir"
21744 found_a="$dir/lib$name.$libext"
21745 if test -f "$dir/lib$name.la"; then
21746 found_la="$dir/lib$name.la"
21751 esac
21752 if test "X$found_dir" != "X"; then
21753 break
21755 done
21757 if test "X$found_dir" != "X"; then
21758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21759 if test "X$found_so" != "X"; then
21760 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21762 else
21763 haveit=
21764 for x in $ltrpathdirs; do
21765 if test "X$x" = "X$found_dir"; then
21766 haveit=yes
21767 break
21769 done
21770 if test -z "$haveit"; then
21771 ltrpathdirs="$ltrpathdirs $found_dir"
21773 if test "$hardcode_direct" = yes; then
21774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21775 else
21776 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21777 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21778 haveit=
21779 for x in $rpathdirs; do
21780 if test "X$x" = "X$found_dir"; then
21781 haveit=yes
21782 break
21784 done
21785 if test -z "$haveit"; then
21786 rpathdirs="$rpathdirs $found_dir"
21788 else
21789 haveit=
21790 for x in $LDFLAGS $LIBICONV; do
21792 acl_save_prefix="$prefix"
21793 prefix="$acl_final_prefix"
21794 acl_save_exec_prefix="$exec_prefix"
21795 exec_prefix="$acl_final_exec_prefix"
21796 eval x=\"$x\"
21797 exec_prefix="$acl_save_exec_prefix"
21798 prefix="$acl_save_prefix"
21800 if test "X$x" = "X-L$found_dir"; then
21801 haveit=yes
21802 break
21804 done
21805 if test -z "$haveit"; then
21806 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21808 if test "$hardcode_minus_L" != no; then
21809 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21810 else
21811 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21816 else
21817 if test "X$found_a" != "X"; then
21818 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21819 else
21820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21823 additional_includedir=
21824 case "$found_dir" in
21825 */lib | */lib/)
21826 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21827 additional_includedir="$basedir/include"
21829 esac
21830 if test "X$additional_includedir" != "X"; then
21831 if test "X$additional_includedir" != "X/usr/include"; then
21832 haveit=
21833 if test "X$additional_includedir" = "X/usr/local/include"; then
21834 if test -n "$GCC"; then
21835 case $host_os in
21836 linux*) haveit=yes;;
21837 esac
21840 if test -z "$haveit"; then
21841 for x in $CPPFLAGS $INCICONV; do
21843 acl_save_prefix="$prefix"
21844 prefix="$acl_final_prefix"
21845 acl_save_exec_prefix="$exec_prefix"
21846 exec_prefix="$acl_final_exec_prefix"
21847 eval x=\"$x\"
21848 exec_prefix="$acl_save_exec_prefix"
21849 prefix="$acl_save_prefix"
21851 if test "X$x" = "X-I$additional_includedir"; then
21852 haveit=yes
21853 break
21855 done
21856 if test -z "$haveit"; then
21857 if test -d "$additional_includedir"; then
21858 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21864 if test -n "$found_la"; then
21865 save_libdir="$libdir"
21866 case "$found_la" in
21867 */* | *\\*) . "$found_la" ;;
21868 *) . "./$found_la" ;;
21869 esac
21870 libdir="$save_libdir"
21871 for dep in $dependency_libs; do
21872 case "$dep" in
21873 -L*)
21874 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21875 if test "X$additional_libdir" != "X/usr/lib"; then
21876 haveit=
21877 if test "X$additional_libdir" = "X/usr/local/lib"; then
21878 if test -n "$GCC"; then
21879 case $host_os in
21880 linux*) haveit=yes;;
21881 esac
21884 if test -z "$haveit"; then
21885 haveit=
21886 for x in $LDFLAGS $LIBICONV; do
21888 acl_save_prefix="$prefix"
21889 prefix="$acl_final_prefix"
21890 acl_save_exec_prefix="$exec_prefix"
21891 exec_prefix="$acl_final_exec_prefix"
21892 eval x=\"$x\"
21893 exec_prefix="$acl_save_exec_prefix"
21894 prefix="$acl_save_prefix"
21896 if test "X$x" = "X-L$additional_libdir"; then
21897 haveit=yes
21898 break
21900 done
21901 if test -z "$haveit"; then
21902 if test -d "$additional_libdir"; then
21903 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21906 haveit=
21907 for x in $LDFLAGS $LTLIBICONV; do
21909 acl_save_prefix="$prefix"
21910 prefix="$acl_final_prefix"
21911 acl_save_exec_prefix="$exec_prefix"
21912 exec_prefix="$acl_final_exec_prefix"
21913 eval x=\"$x\"
21914 exec_prefix="$acl_save_exec_prefix"
21915 prefix="$acl_save_prefix"
21917 if test "X$x" = "X-L$additional_libdir"; then
21918 haveit=yes
21919 break
21921 done
21922 if test -z "$haveit"; then
21923 if test -d "$additional_libdir"; then
21924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21930 -R*)
21931 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21932 if test "$enable_rpath" != no; then
21933 haveit=
21934 for x in $rpathdirs; do
21935 if test "X$x" = "X$dir"; then
21936 haveit=yes
21937 break
21939 done
21940 if test -z "$haveit"; then
21941 rpathdirs="$rpathdirs $dir"
21943 haveit=
21944 for x in $ltrpathdirs; do
21945 if test "X$x" = "X$dir"; then
21946 haveit=yes
21947 break
21949 done
21950 if test -z "$haveit"; then
21951 ltrpathdirs="$ltrpathdirs $dir"
21955 -l*)
21956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21958 *.la)
21959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21962 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21965 esac
21966 done
21968 else
21969 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21974 done
21975 done
21976 if test "X$rpathdirs" != "X"; then
21977 if test -n "$hardcode_libdir_separator"; then
21978 alldirs=
21979 for found_dir in $rpathdirs; do
21980 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21981 done
21982 acl_save_libdir="$libdir"
21983 libdir="$alldirs"
21984 eval flag=\"$hardcode_libdir_flag_spec\"
21985 libdir="$acl_save_libdir"
21986 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21987 else
21988 for found_dir in $rpathdirs; do
21989 acl_save_libdir="$libdir"
21990 libdir="$found_dir"
21991 eval flag=\"$hardcode_libdir_flag_spec\"
21992 libdir="$acl_save_libdir"
21993 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21994 done
21997 if test "X$ltrpathdirs" != "X"; then
21998 for found_dir in $ltrpathdirs; do
21999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22000 done
22009 am_save_CPPFLAGS="$CPPFLAGS"
22011 for element in $INCICONV; do
22012 haveit=
22013 for x in $CPPFLAGS; do
22015 acl_save_prefix="$prefix"
22016 prefix="$acl_final_prefix"
22017 acl_save_exec_prefix="$exec_prefix"
22018 exec_prefix="$acl_final_exec_prefix"
22019 eval x=\"$x\"
22020 exec_prefix="$acl_save_exec_prefix"
22021 prefix="$acl_save_prefix"
22023 if test "X$x" = "X$element"; then
22024 haveit=yes
22025 break
22027 done
22028 if test -z "$haveit"; then
22029 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22031 done
22034 echo "$as_me:$LINENO: checking for iconv" >&5
22035 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22036 if test "${am_cv_func_iconv+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22040 am_cv_func_iconv="no, consider installing GNU libiconv"
22041 am_cv_lib_iconv=no
22042 if test x$gcc_no_link = xyes; then
22043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22045 { (exit 1); exit 1; }; }
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h. */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 #include <stdlib.h>
22054 #include <iconv.h>
22056 main ()
22058 iconv_t cd = iconv_open("","");
22059 iconv(cd,NULL,NULL,NULL,NULL);
22060 iconv_close(cd);
22062 return 0;
22064 _ACEOF
22065 rm -f conftest.$ac_objext conftest$ac_exeext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22067 (eval $ac_link) 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
22074 { ac_try='test -z "$ac_c_werror_flag"
22075 || test ! -s conftest.err'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest$ac_exeext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 am_cv_func_iconv=yes
22088 else
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22093 rm -f conftest.err conftest.$ac_objext \
22094 conftest$ac_exeext conftest.$ac_ext
22095 if test "$am_cv_func_iconv" != yes; then
22096 am_save_LIBS="$LIBS"
22097 LIBS="$LIBS $LIBICONV"
22098 if test x$gcc_no_link = xyes; then
22099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22101 { (exit 1); exit 1; }; }
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <stdlib.h>
22110 #include <iconv.h>
22112 main ()
22114 iconv_t cd = iconv_open("","");
22115 iconv(cd,NULL,NULL,NULL,NULL);
22116 iconv_close(cd);
22118 return 0;
22120 _ACEOF
22121 rm -f conftest.$ac_objext conftest$ac_exeext
22122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22123 (eval $ac_link) 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } &&
22130 { ac_try='test -z "$ac_c_werror_flag"
22131 || test ! -s conftest.err'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; } &&
22137 { ac_try='test -s conftest$ac_exeext'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; }; then
22143 am_cv_lib_iconv=yes
22144 am_cv_func_iconv=yes
22145 else
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22150 rm -f conftest.err conftest.$ac_objext \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS="$am_save_LIBS"
22156 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22157 echo "${ECHO_T}$am_cv_func_iconv" >&6
22158 if test "$am_cv_func_iconv" = yes; then
22160 cat >>confdefs.h <<\_ACEOF
22161 #define HAVE_ICONV 1
22162 _ACEOF
22165 if test "$am_cv_lib_iconv" = yes; then
22166 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22167 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22168 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22169 echo "${ECHO_T}$LIBICONV" >&6
22170 else
22171 CPPFLAGS="$am_save_CPPFLAGS"
22172 LIBICONV=
22173 LTLIBICONV=
22178 if test "$am_cv_func_iconv" = yes; then
22179 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22180 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22181 if test "${am_cv_proto_iconv+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22192 #include <stdlib.h>
22193 #include <iconv.h>
22194 extern
22195 #ifdef __cplusplus
22197 #endif
22198 #if defined(__STDC__) || defined(__cplusplus)
22199 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22200 #else
22201 size_t iconv();
22202 #endif
22205 main ()
22209 return 0;
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214 (eval $ac_compile) 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try='test -z "$ac_c_werror_flag"
22222 || test ! -s conftest.err'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest.$ac_objext'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 am_cv_proto_iconv_arg1=""
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 am_cv_proto_iconv_arg1="const"
22241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242 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);"
22245 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22246 echo "$as_me:$LINENO: result: ${ac_t:-
22247 }$am_cv_proto_iconv" >&5
22248 echo "${ECHO_T}${ac_t:-
22249 }$am_cv_proto_iconv" >&6
22251 cat >>confdefs.h <<_ACEOF
22252 #define ICONV_CONST $am_cv_proto_iconv_arg1
22253 _ACEOF
22258 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22259 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22260 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 else
22263 if test x$gcc_no_link = xyes; then
22264 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22266 { (exit 1); exit 1; }; }
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 #include <locale.h>
22276 main ()
22278 return LC_MESSAGES
22280 return 0;
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22285 (eval $ac_link) 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } &&
22292 { ac_try='test -z "$ac_c_werror_flag"
22293 || test ! -s conftest.err'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; } &&
22299 { ac_try='test -s conftest$ac_exeext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 am_cv_val_LC_MESSAGES=yes
22306 else
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 am_cv_val_LC_MESSAGES=no
22312 rm -f conftest.err conftest.$ac_objext \
22313 conftest$ac_exeext conftest.$ac_ext
22315 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22316 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22317 if test $am_cv_val_LC_MESSAGES = yes; then
22319 cat >>confdefs.h <<\_ACEOF
22320 #define HAVE_LC_MESSAGES 1
22321 _ACEOF
22325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22327 if test "${ac_cv_struct_tm+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 #include <sys/types.h>
22337 #include <time.h>
22340 main ()
22342 struct tm *tp; tp->tm_sec;
22344 return 0;
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22349 (eval $ac_compile) 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } &&
22356 { ac_try='test -z "$ac_c_werror_flag"
22357 || test ! -s conftest.err'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; } &&
22363 { ac_try='test -s conftest.$ac_objext'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22369 ac_cv_struct_tm=time.h
22370 else
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_cv_struct_tm=sys/time.h
22376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22378 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22379 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22380 if test $ac_cv_struct_tm = sys/time.h; then
22382 cat >>confdefs.h <<\_ACEOF
22383 #define TM_IN_SYS_TIME 1
22384 _ACEOF
22388 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22389 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22390 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393 cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h. */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 #include <sys/types.h>
22400 #include <$ac_cv_struct_tm>
22404 main ()
22406 static struct tm ac_aggr;
22407 if (ac_aggr.tm_zone)
22408 return 0;
22410 return 0;
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22415 (eval $ac_compile) 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
22422 { ac_try='test -z "$ac_c_werror_flag"
22423 || test ! -s conftest.err'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest.$ac_objext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 ac_cv_member_struct_tm_tm_zone=yes
22436 else
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h. */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 #include <sys/types.h>
22447 #include <$ac_cv_struct_tm>
22451 main ()
22453 static struct tm ac_aggr;
22454 if (sizeof ac_aggr.tm_zone)
22455 return 0;
22457 return 0;
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag"
22470 || test ! -s conftest.err'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest.$ac_objext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_cv_member_struct_tm_tm_zone=yes
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_member_struct_tm_tm_zone=no
22489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22494 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22495 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_STRUCT_TM_TM_ZONE 1
22499 _ACEOF
22504 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22506 cat >>confdefs.h <<\_ACEOF
22507 #define HAVE_TM_ZONE 1
22508 _ACEOF
22510 else
22511 echo "$as_me:$LINENO: checking for tzname" >&5
22512 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22513 if test "${ac_cv_var_tzname+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516 if test x$gcc_no_link = xyes; then
22517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22519 { (exit 1); exit 1; }; }
22521 cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h. */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22527 #include <time.h>
22528 #ifndef tzname /* For SGI. */
22529 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22530 #endif
22533 main ()
22535 atoi(*tzname);
22537 return 0;
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542 (eval $ac_link) 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_c_werror_flag"
22550 || test ! -s conftest.err'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try='test -s conftest$ac_exeext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 ac_cv_var_tzname=yes
22563 else
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_cv_var_tzname=no
22569 rm -f conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22573 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22574 if test $ac_cv_var_tzname = yes; then
22576 cat >>confdefs.h <<\_ACEOF
22577 #define HAVE_TZNAME 1
22578 _ACEOF
22585 for ac_func in gethostbyname_r
22587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22588 echo "$as_me:$LINENO: checking for $ac_func" >&5
22589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22590 if eval "test \"\${$as_ac_var+set}\" = set"; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593 if test x$gcc_no_link = xyes; then
22594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22596 { (exit 1); exit 1; }; }
22598 cat >conftest.$ac_ext <<_ACEOF
22599 /* confdefs.h. */
22600 _ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22606 #define $ac_func innocuous_$ac_func
22608 /* System header to define __stub macros and hopefully few prototypes,
22609 which can conflict with char $ac_func (); below.
22610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22611 <limits.h> exists even on freestanding compilers. */
22613 #ifdef __STDC__
22614 # include <limits.h>
22615 #else
22616 # include <assert.h>
22617 #endif
22619 #undef $ac_func
22621 /* Override any gcc2 internal prototype to avoid an error. */
22622 #ifdef __cplusplus
22623 extern "C"
22625 #endif
22626 /* We use char because int might match the return type of a gcc2
22627 builtin and then its argument prototype would still apply. */
22628 char $ac_func ();
22629 /* The GNU C library defines this for functions which it implements
22630 to always fail with ENOSYS. Some functions are actually named
22631 something starting with __ and the normal name is an alias. */
22632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22633 choke me
22634 #else
22635 char (*f) () = $ac_func;
22636 #endif
22637 #ifdef __cplusplus
22639 #endif
22642 main ()
22644 return f != $ac_func;
22646 return 0;
22648 _ACEOF
22649 rm -f conftest.$ac_objext conftest$ac_exeext
22650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22651 (eval $ac_link) 2>conftest.er1
22652 ac_status=$?
22653 grep -v '^ *+' conftest.er1 >conftest.err
22654 rm -f conftest.er1
22655 cat conftest.err >&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } &&
22658 { ac_try='test -z "$ac_c_werror_flag"
22659 || test ! -s conftest.err'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22662 ac_status=$?
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; } &&
22665 { ac_try='test -s conftest$ac_exeext'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22668 ac_status=$?
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; }; then
22671 eval "$as_ac_var=yes"
22672 else
22673 echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22676 eval "$as_ac_var=no"
22678 rm -f conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22683 if test `eval echo '${'$as_ac_var'}'` = yes; then
22684 cat >>confdefs.h <<_ACEOF
22685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22686 _ACEOF
22689 cat >>confdefs.h <<\_ACEOF
22690 #define HAVE_GETHOSTBYNAME_R 1
22691 _ACEOF
22693 # There are two different kinds of gethostbyname_r.
22694 # We look for the one that returns `int'.
22695 # Hopefully this check is robust enough.
22696 cat >conftest.$ac_ext <<_ACEOF
22697 /* confdefs.h. */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h. */
22702 #include <netdb.h>
22704 _ACEOF
22705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22706 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22709 cat >>confdefs.h <<\_ACEOF
22710 #define GETHOSTBYNAME_R_RETURNS_INT 1
22711 _ACEOF
22714 rm -f conftest*
22717 case " $GCINCS " in
22718 *" -D_REENTRANT "*) ;;
22720 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22721 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22722 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725 ac_ext=cc
22726 ac_cpp='$CXXCPP $CPPFLAGS'
22727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22731 cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h. */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 #include <netdb.h>
22739 main ()
22741 gethostbyname_r("", 0, 0);
22743 return 0;
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22748 (eval $ac_compile) 2>conftest.er1
22749 ac_status=$?
22750 grep -v '^ *+' conftest.er1 >conftest.err
22751 rm -f conftest.er1
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } &&
22755 { ac_try='test -z "$ac_cxx_werror_flag"
22756 || test ! -s conftest.err'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; } &&
22762 { ac_try='test -s conftest.$ac_objext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 libjava_cv_gethostbyname_r_needs_reentrant=no
22769 else
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22773 CPPFLAGS_SAVE="$CPPFLAGS"
22774 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h. */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 #include <netdb.h>
22783 main ()
22785 gethostbyname_r("", 0, 0);
22787 return 0;
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22792 (eval $ac_compile) 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
22799 { ac_try='test -z "$ac_cxx_werror_flag"
22800 || test ! -s conftest.err'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } &&
22806 { ac_try='test -s conftest.$ac_objext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 libjava_cv_gethostbyname_r_needs_reentrant=yes
22813 else
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 libjava_cv_gethostbyname_r_needs_reentrant=fail
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22820 CPPFLAGS="$CPPFLAGS_SAVE"
22823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22824 ac_ext=c
22825 ac_cpp='$CPP $CPPFLAGS'
22826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22832 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22833 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22834 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22836 cat >>confdefs.h <<\_ACEOF
22837 #define _REENTRANT 1
22838 _ACEOF
22842 esac
22844 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22845 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22846 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22856 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22857 # define _REENTRANT 1
22858 #endif
22859 #include <netdb.h>
22861 main ()
22863 struct hostent_data data;
22865 return 0;
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22870 (eval $ac_compile) 2>conftest.er1
22871 ac_status=$?
22872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
22877 { ac_try='test -z "$ac_c_werror_flag"
22878 || test ! -s conftest.err'
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; } &&
22884 { ac_try='test -s conftest.$ac_objext'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 libjava_cv_struct_hostent_data=yes
22891 else
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 libjava_cv_struct_hostent_data=no
22897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22899 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22900 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22901 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22903 cat >>confdefs.h <<\_ACEOF
22904 #define HAVE_STRUCT_HOSTENT_DATA 1
22905 _ACEOF
22910 done
22913 # FIXME: libjava source code expects to find a prototype for
22914 # gethostbyaddr_r in netdb.h. The outer check ensures that
22915 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22916 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22917 # linkage check is enough, yet C++ code requires proper prototypes.)
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h. */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 #include <netdb.h>
22926 _ACEOF
22927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22928 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22931 for ac_func in gethostbyaddr_r
22933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22934 echo "$as_me:$LINENO: checking for $ac_func" >&5
22935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22936 if eval "test \"\${$as_ac_var+set}\" = set"; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939 if test x$gcc_no_link = xyes; then
22940 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22942 { (exit 1); exit 1; }; }
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22952 #define $ac_func innocuous_$ac_func
22954 /* System header to define __stub macros and hopefully few prototypes,
22955 which can conflict with char $ac_func (); below.
22956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22957 <limits.h> exists even on freestanding compilers. */
22959 #ifdef __STDC__
22960 # include <limits.h>
22961 #else
22962 # include <assert.h>
22963 #endif
22965 #undef $ac_func
22967 /* Override any gcc2 internal prototype to avoid an error. */
22968 #ifdef __cplusplus
22969 extern "C"
22971 #endif
22972 /* We use char because int might match the return type of a gcc2
22973 builtin and then its argument prototype would still apply. */
22974 char $ac_func ();
22975 /* The GNU C library defines this for functions which it implements
22976 to always fail with ENOSYS. Some functions are actually named
22977 something starting with __ and the normal name is an alias. */
22978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22979 choke me
22980 #else
22981 char (*f) () = $ac_func;
22982 #endif
22983 #ifdef __cplusplus
22985 #endif
22988 main ()
22990 return f != $ac_func;
22992 return 0;
22994 _ACEOF
22995 rm -f conftest.$ac_objext conftest$ac_exeext
22996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22997 (eval $ac_link) 2>conftest.er1
22998 ac_status=$?
22999 grep -v '^ *+' conftest.er1 >conftest.err
23000 rm -f conftest.er1
23001 cat conftest.err >&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } &&
23004 { ac_try='test -z "$ac_c_werror_flag"
23005 || test ! -s conftest.err'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } &&
23011 { ac_try='test -s conftest$ac_exeext'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23017 eval "$as_ac_var=yes"
23018 else
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 eval "$as_ac_var=no"
23024 rm -f conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
23027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23029 if test `eval echo '${'$as_ac_var'}'` = yes; then
23030 cat >>confdefs.h <<_ACEOF
23031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23032 _ACEOF
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_GETHOSTBYADDR_R 1
23037 _ACEOF
23039 # There are two different kinds of gethostbyaddr_r.
23040 # We look for the one that returns `int'.
23041 # Hopefully this check is robust enough.
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 #include <netdb.h>
23050 _ACEOF
23051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23052 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define GETHOSTBYADDR_R_RETURNS_INT 1
23057 _ACEOF
23060 rm -f conftest*
23063 done
23066 rm -f conftest*
23070 for ac_func in gethostname
23072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23073 echo "$as_me:$LINENO: checking for $ac_func" >&5
23074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23075 if eval "test \"\${$as_ac_var+set}\" = set"; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078 if test x$gcc_no_link = xyes; then
23079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23081 { (exit 1); exit 1; }; }
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23091 #define $ac_func innocuous_$ac_func
23093 /* System header to define __stub macros and hopefully few prototypes,
23094 which can conflict with char $ac_func (); below.
23095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23096 <limits.h> exists even on freestanding compilers. */
23098 #ifdef __STDC__
23099 # include <limits.h>
23100 #else
23101 # include <assert.h>
23102 #endif
23104 #undef $ac_func
23106 /* Override any gcc2 internal prototype to avoid an error. */
23107 #ifdef __cplusplus
23108 extern "C"
23110 #endif
23111 /* We use char because int might match the return type of a gcc2
23112 builtin and then its argument prototype would still apply. */
23113 char $ac_func ();
23114 /* The GNU C library defines this for functions which it implements
23115 to always fail with ENOSYS. Some functions are actually named
23116 something starting with __ and the normal name is an alias. */
23117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23118 choke me
23119 #else
23120 char (*f) () = $ac_func;
23121 #endif
23122 #ifdef __cplusplus
23124 #endif
23127 main ()
23129 return f != $ac_func;
23131 return 0;
23133 _ACEOF
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136 (eval $ac_link) 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } &&
23143 { ac_try='test -z "$ac_c_werror_flag"
23144 || test ! -s conftest.err'
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; } &&
23150 { ac_try='test -s conftest$ac_exeext'
23151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }; then
23156 eval "$as_ac_var=yes"
23157 else
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23161 eval "$as_ac_var=no"
23163 rm -f conftest.err conftest.$ac_objext \
23164 conftest$ac_exeext conftest.$ac_ext
23166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23168 if test `eval echo '${'$as_ac_var'}'` = yes; then
23169 cat >>confdefs.h <<_ACEOF
23170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23171 _ACEOF
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_GETHOSTNAME 1
23176 _ACEOF
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h. */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 #include <unistd.h>
23186 _ACEOF
23187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23188 $EGREP "gethostname" >/dev/null 2>&1; then
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_GETHOSTNAME_DECL 1
23193 _ACEOF
23196 rm -f conftest*
23199 done
23203 for ac_func in usleep
23205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23206 echo "$as_me:$LINENO: checking for $ac_func" >&5
23207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23208 if eval "test \"\${$as_ac_var+set}\" = set"; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211 if test x$gcc_no_link = xyes; then
23212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23214 { (exit 1); exit 1; }; }
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23224 #define $ac_func innocuous_$ac_func
23226 /* System header to define __stub macros and hopefully few prototypes,
23227 which can conflict with char $ac_func (); below.
23228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23229 <limits.h> exists even on freestanding compilers. */
23231 #ifdef __STDC__
23232 # include <limits.h>
23233 #else
23234 # include <assert.h>
23235 #endif
23237 #undef $ac_func
23239 /* Override any gcc2 internal prototype to avoid an error. */
23240 #ifdef __cplusplus
23241 extern "C"
23243 #endif
23244 /* We use char because int might match the return type of a gcc2
23245 builtin and then its argument prototype would still apply. */
23246 char $ac_func ();
23247 /* The GNU C library defines this for functions which it implements
23248 to always fail with ENOSYS. Some functions are actually named
23249 something starting with __ and the normal name is an alias. */
23250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23251 choke me
23252 #else
23253 char (*f) () = $ac_func;
23254 #endif
23255 #ifdef __cplusplus
23257 #endif
23260 main ()
23262 return f != $ac_func;
23264 return 0;
23266 _ACEOF
23267 rm -f conftest.$ac_objext conftest$ac_exeext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23269 (eval $ac_link) 2>conftest.er1
23270 ac_status=$?
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try='test -z "$ac_c_werror_flag"
23277 || test ! -s conftest.err'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try='test -s conftest$ac_exeext'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23289 eval "$as_ac_var=yes"
23290 else
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23294 eval "$as_ac_var=no"
23296 rm -f conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
23299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23301 if test `eval echo '${'$as_ac_var'}'` = yes; then
23302 cat >>confdefs.h <<_ACEOF
23303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23304 _ACEOF
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h. */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 #include <unistd.h>
23314 _ACEOF
23315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23316 $EGREP "usleep" >/dev/null 2>&1; then
23319 cat >>confdefs.h <<\_ACEOF
23320 #define HAVE_USLEEP_DECL 1
23321 _ACEOF
23324 rm -f conftest*
23327 done
23330 # Look for these functions in the thread library, but only bother
23331 # if using POSIX threads.
23332 if test "$THREADS" = posix; then
23333 save_LIBS="$LIBS"
23334 LIBS="$LIBS $THREADLIBS"
23336 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23337 # Solaris 7 the name librt is preferred.
23339 for ac_func in sched_yield
23341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23342 echo "$as_me:$LINENO: checking for $ac_func" >&5
23343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23344 if eval "test \"\${$as_ac_var+set}\" = set"; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347 if test x$gcc_no_link = xyes; then
23348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23350 { (exit 1); exit 1; }; }
23352 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h. */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23360 #define $ac_func innocuous_$ac_func
23362 /* System header to define __stub macros and hopefully few prototypes,
23363 which can conflict with char $ac_func (); below.
23364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23365 <limits.h> exists even on freestanding compilers. */
23367 #ifdef __STDC__
23368 # include <limits.h>
23369 #else
23370 # include <assert.h>
23371 #endif
23373 #undef $ac_func
23375 /* Override any gcc2 internal prototype to avoid an error. */
23376 #ifdef __cplusplus
23377 extern "C"
23379 #endif
23380 /* We use char because int might match the return type of a gcc2
23381 builtin and then its argument prototype would still apply. */
23382 char $ac_func ();
23383 /* The GNU C library defines this for functions which it implements
23384 to always fail with ENOSYS. Some functions are actually named
23385 something starting with __ and the normal name is an alias. */
23386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23387 choke me
23388 #else
23389 char (*f) () = $ac_func;
23390 #endif
23391 #ifdef __cplusplus
23393 #endif
23396 main ()
23398 return f != $ac_func;
23400 return 0;
23402 _ACEOF
23403 rm -f conftest.$ac_objext conftest$ac_exeext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23405 (eval $ac_link) 2>conftest.er1
23406 ac_status=$?
23407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try='test -z "$ac_c_werror_flag"
23413 || test ! -s conftest.err'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; } &&
23419 { ac_try='test -s conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 eval "$as_ac_var=yes"
23426 else
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 eval "$as_ac_var=no"
23432 rm -f conftest.err conftest.$ac_objext \
23433 conftest$ac_exeext conftest.$ac_ext
23435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23437 if test `eval echo '${'$as_ac_var'}'` = yes; then
23438 cat >>confdefs.h <<_ACEOF
23439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23440 _ACEOF
23442 else
23444 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23445 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23446 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449 ac_check_lib_save_LIBS=$LIBS
23450 LIBS="-lrt $LIBS"
23451 if test x$gcc_no_link = xyes; then
23452 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23453 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23454 { (exit 1); exit 1; }; }
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h. */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23463 /* Override any gcc2 internal prototype to avoid an error. */
23464 #ifdef __cplusplus
23465 extern "C"
23466 #endif
23467 /* We use char because int might match the return type of a gcc2
23468 builtin and then its argument prototype would still apply. */
23469 char sched_yield ();
23471 main ()
23473 sched_yield ();
23475 return 0;
23477 _ACEOF
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480 (eval $ac_link) 2>conftest.er1
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
23487 { ac_try='test -z "$ac_c_werror_flag"
23488 || test ! -s conftest.err'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest$ac_exeext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_lib_rt_sched_yield=yes
23501 else
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ac_cv_lib_rt_sched_yield=no
23507 rm -f conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23509 LIBS=$ac_check_lib_save_LIBS
23511 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23512 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23513 if test $ac_cv_lib_rt_sched_yield = yes; then
23515 cat >>confdefs.h <<\_ACEOF
23516 #define HAVE_SCHED_YIELD 1
23517 _ACEOF
23519 THREADLIBS="$THREADLIBS -lrt"
23520 THREADSPEC="$THREADSPEC -lrt"
23521 else
23523 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23524 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23525 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528 ac_check_lib_save_LIBS=$LIBS
23529 LIBS="-lposix4 $LIBS"
23530 if test x$gcc_no_link = xyes; then
23531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23533 { (exit 1); exit 1; }; }
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h. */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23542 /* Override any gcc2 internal prototype to avoid an error. */
23543 #ifdef __cplusplus
23544 extern "C"
23545 #endif
23546 /* We use char because int might match the return type of a gcc2
23547 builtin and then its argument prototype would still apply. */
23548 char sched_yield ();
23550 main ()
23552 sched_yield ();
23554 return 0;
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 ac_cv_lib_posix4_sched_yield=yes
23580 else
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ac_cv_lib_posix4_sched_yield=no
23586 rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
23588 LIBS=$ac_check_lib_save_LIBS
23590 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23591 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23592 if test $ac_cv_lib_posix4_sched_yield = yes; then
23594 cat >>confdefs.h <<\_ACEOF
23595 #define HAVE_SCHED_YIELD 1
23596 _ACEOF
23598 THREADLIBS="$THREADLIBS -lposix4"
23599 THREADSPEC="$THREADSPEC -lposix4"
23605 done
23608 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23609 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23610 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613 ac_check_lib_save_LIBS=$LIBS
23614 LIBS="-lrt $LIBS"
23615 if test x$gcc_no_link = xyes; then
23616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23618 { (exit 1); exit 1; }; }
23620 cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h. */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23627 /* Override any gcc2 internal prototype to avoid an error. */
23628 #ifdef __cplusplus
23629 extern "C"
23630 #endif
23631 /* We use char because int might match the return type of a gcc2
23632 builtin and then its argument prototype would still apply. */
23633 char clock_gettime ();
23635 main ()
23637 clock_gettime ();
23639 return 0;
23641 _ACEOF
23642 rm -f conftest.$ac_objext conftest$ac_exeext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>conftest.er1
23645 ac_status=$?
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest$ac_exeext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 ac_cv_lib_rt_clock_gettime=yes
23665 else
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 ac_cv_lib_rt_clock_gettime=no
23671 rm -f conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
23673 LIBS=$ac_check_lib_save_LIBS
23675 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23676 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23677 if test $ac_cv_lib_rt_clock_gettime = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_CLOCK_GETTIME 1
23682 _ACEOF
23684 case "$THREADSPEC" in
23685 *-lrt*) ;;
23687 THREADSPEC="$THREADSPEC -lrt"
23688 THREADLIBS="$THREADLIBS -lrt"
23690 esac
23694 LIBS="$save_LIBS"
23696 # We can save a little space at runtime if the mutex has m_count
23697 # or __m_count. This is a nice hack for Linux.
23698 cat >conftest.$ac_ext <<_ACEOF
23699 /* confdefs.h. */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 #include <pthread.h>
23706 main ()
23709 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23712 return 0;
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23717 (eval $ac_compile) 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -z "$ac_c_werror_flag"
23725 || test ! -s conftest.err'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; } &&
23731 { ac_try='test -s conftest.$ac_objext'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23738 cat >>confdefs.h <<\_ACEOF
23739 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23740 _ACEOF
23742 else
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23747 cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h. */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 #include <pthread.h>
23755 main ()
23758 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23761 return 0;
23763 _ACEOF
23764 rm -f conftest.$ac_objext
23765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23766 (eval $ac_compile) 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -z "$ac_c_werror_flag"
23774 || test ! -s conftest.err'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; } &&
23780 { ac_try='test -s conftest.$ac_objext'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; }; then
23787 cat >>confdefs.h <<\_ACEOF
23788 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23789 _ACEOF
23791 else
23792 echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23801 # We require a way to get the time.
23802 time_found=no
23806 for ac_func in gettimeofday time ftime
23808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23809 echo "$as_me:$LINENO: checking for $ac_func" >&5
23810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23811 if eval "test \"\${$as_ac_var+set}\" = set"; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 if test x$gcc_no_link = xyes; then
23815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23817 { (exit 1); exit 1; }; }
23819 cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h. */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23827 #define $ac_func innocuous_$ac_func
23829 /* System header to define __stub macros and hopefully few prototypes,
23830 which can conflict with char $ac_func (); below.
23831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23832 <limits.h> exists even on freestanding compilers. */
23834 #ifdef __STDC__
23835 # include <limits.h>
23836 #else
23837 # include <assert.h>
23838 #endif
23840 #undef $ac_func
23842 /* Override any gcc2 internal prototype to avoid an error. */
23843 #ifdef __cplusplus
23844 extern "C"
23846 #endif
23847 /* We use char because int might match the return type of a gcc2
23848 builtin and then its argument prototype would still apply. */
23849 char $ac_func ();
23850 /* The GNU C library defines this for functions which it implements
23851 to always fail with ENOSYS. Some functions are actually named
23852 something starting with __ and the normal name is an alias. */
23853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23854 choke me
23855 #else
23856 char (*f) () = $ac_func;
23857 #endif
23858 #ifdef __cplusplus
23860 #endif
23863 main ()
23865 return f != $ac_func;
23867 return 0;
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872 (eval $ac_link) 2>conftest.er1
23873 ac_status=$?
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
23879 { ac_try='test -z "$ac_c_werror_flag"
23880 || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest$ac_exeext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 eval "$as_ac_var=yes"
23893 else
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23897 eval "$as_ac_var=no"
23899 rm -f conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
23902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23904 if test `eval echo '${'$as_ac_var'}'` = yes; then
23905 cat >>confdefs.h <<_ACEOF
23906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23907 _ACEOF
23908 time_found=yes
23910 done
23912 if test "$time_found" = no; then
23913 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23914 echo "$as_me: error: no function found to get the time" >&2;}
23915 { (exit 1); exit 1; }; }
23919 for ac_func in memmove
23921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23922 echo "$as_me:$LINENO: checking for $ac_func" >&5
23923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23924 if eval "test \"\${$as_ac_var+set}\" = set"; then
23925 echo $ECHO_N "(cached) $ECHO_C" >&6
23926 else
23927 if test x$gcc_no_link = xyes; then
23928 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23929 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23930 { (exit 1); exit 1; }; }
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h. */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23940 #define $ac_func innocuous_$ac_func
23942 /* System header to define __stub macros and hopefully few prototypes,
23943 which can conflict with char $ac_func (); below.
23944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23945 <limits.h> exists even on freestanding compilers. */
23947 #ifdef __STDC__
23948 # include <limits.h>
23949 #else
23950 # include <assert.h>
23951 #endif
23953 #undef $ac_func
23955 /* Override any gcc2 internal prototype to avoid an error. */
23956 #ifdef __cplusplus
23957 extern "C"
23959 #endif
23960 /* We use char because int might match the return type of a gcc2
23961 builtin and then its argument prototype would still apply. */
23962 char $ac_func ();
23963 /* The GNU C library defines this for functions which it implements
23964 to always fail with ENOSYS. Some functions are actually named
23965 something starting with __ and the normal name is an alias. */
23966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23967 choke me
23968 #else
23969 char (*f) () = $ac_func;
23970 #endif
23971 #ifdef __cplusplus
23973 #endif
23976 main ()
23978 return f != $ac_func;
23980 return 0;
23982 _ACEOF
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23985 (eval $ac_link) 2>conftest.er1
23986 ac_status=$?
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
23992 { ac_try='test -z "$ac_c_werror_flag"
23993 || test ! -s conftest.err'
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; } &&
23999 { ac_try='test -s conftest$ac_exeext'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24002 ac_status=$?
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 eval "$as_ac_var=yes"
24006 else
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24010 eval "$as_ac_var=no"
24012 rm -f conftest.err conftest.$ac_objext \
24013 conftest$ac_exeext conftest.$ac_ext
24015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24017 if test `eval echo '${'$as_ac_var'}'` = yes; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24020 _ACEOF
24023 done
24026 # We require memcpy.
24027 memcpy_found=no
24029 for ac_func in memcpy
24031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24032 echo "$as_me:$LINENO: checking for $ac_func" >&5
24033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24034 if eval "test \"\${$as_ac_var+set}\" = set"; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037 if test x$gcc_no_link = xyes; then
24038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24040 { (exit 1); exit 1; }; }
24042 cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h. */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24050 #define $ac_func innocuous_$ac_func
24052 /* System header to define __stub macros and hopefully few prototypes,
24053 which can conflict with char $ac_func (); below.
24054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24055 <limits.h> exists even on freestanding compilers. */
24057 #ifdef __STDC__
24058 # include <limits.h>
24059 #else
24060 # include <assert.h>
24061 #endif
24063 #undef $ac_func
24065 /* Override any gcc2 internal prototype to avoid an error. */
24066 #ifdef __cplusplus
24067 extern "C"
24069 #endif
24070 /* We use char because int might match the return type of a gcc2
24071 builtin and then its argument prototype would still apply. */
24072 char $ac_func ();
24073 /* The GNU C library defines this for functions which it implements
24074 to always fail with ENOSYS. Some functions are actually named
24075 something starting with __ and the normal name is an alias. */
24076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24077 choke me
24078 #else
24079 char (*f) () = $ac_func;
24080 #endif
24081 #ifdef __cplusplus
24083 #endif
24086 main ()
24088 return f != $ac_func;
24090 return 0;
24092 _ACEOF
24093 rm -f conftest.$ac_objext conftest$ac_exeext
24094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24095 (eval $ac_link) 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
24102 { ac_try='test -z "$ac_c_werror_flag"
24103 || test ! -s conftest.err'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest$ac_exeext'
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 eval "$as_ac_var=yes"
24116 else
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 eval "$as_ac_var=no"
24122 rm -f conftest.err conftest.$ac_objext \
24123 conftest$ac_exeext conftest.$ac_ext
24125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24127 if test `eval echo '${'$as_ac_var'}'` = yes; then
24128 cat >>confdefs.h <<_ACEOF
24129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24130 _ACEOF
24131 memcpy_found=yes
24133 done
24135 if test "$memcpy_found" = no; then
24136 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24137 echo "$as_me: error: memcpy is required" >&2;}
24138 { (exit 1); exit 1; }; }
24140 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146 ac_check_lib_save_LIBS=$LIBS
24147 LIBS="-ldl $LIBS"
24148 if test x$gcc_no_link = xyes; then
24149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24151 { (exit 1); exit 1; }; }
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24160 /* Override any gcc2 internal prototype to avoid an error. */
24161 #ifdef __cplusplus
24162 extern "C"
24163 #endif
24164 /* We use char because int might match the return type of a gcc2
24165 builtin and then its argument prototype would still apply. */
24166 char dlopen ();
24168 main ()
24170 dlopen ();
24172 return 0;
24174 _ACEOF
24175 rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24177 (eval $ac_link) 2>conftest.er1
24178 ac_status=$?
24179 grep -v '^ *+' conftest.er1 >conftest.err
24180 rm -f conftest.er1
24181 cat conftest.err >&5
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } &&
24184 { ac_try='test -z "$ac_c_werror_flag"
24185 || test ! -s conftest.err'
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24188 ac_status=$?
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; } &&
24191 { ac_try='test -s conftest$ac_exeext'
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; }; then
24197 ac_cv_lib_dl_dlopen=yes
24198 else
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24202 ac_cv_lib_dl_dlopen=no
24204 rm -f conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24210 if test $ac_cv_lib_dl_dlopen = yes; then
24213 cat >>confdefs.h <<\_ACEOF
24214 #define HAVE_DLOPEN 1
24215 _ACEOF
24217 else
24219 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24220 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24221 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24222 echo $ECHO_N "(cached) $ECHO_C" >&6
24223 else
24224 ac_check_lib_save_LIBS=$LIBS
24225 LIBS="-ldld $LIBS"
24226 if test x$gcc_no_link = xyes; then
24227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24229 { (exit 1); exit 1; }; }
24231 cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h. */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24238 /* Override any gcc2 internal prototype to avoid an error. */
24239 #ifdef __cplusplus
24240 extern "C"
24241 #endif
24242 /* We use char because int might match the return type of a gcc2
24243 builtin and then its argument prototype would still apply. */
24244 char dlopen ();
24246 main ()
24248 dlopen ();
24250 return 0;
24252 _ACEOF
24253 rm -f conftest.$ac_objext conftest$ac_exeext
24254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24255 (eval $ac_link) 2>conftest.er1
24256 ac_status=$?
24257 grep -v '^ *+' conftest.er1 >conftest.err
24258 rm -f conftest.er1
24259 cat conftest.err >&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } &&
24262 { ac_try='test -z "$ac_c_werror_flag"
24263 || test ! -s conftest.err'
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); }; } &&
24269 { ac_try='test -s conftest$ac_exeext'
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; }; then
24275 ac_cv_lib_dld_dlopen=yes
24276 else
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24280 ac_cv_lib_dld_dlopen=no
24282 rm -f conftest.err conftest.$ac_objext \
24283 conftest$ac_exeext conftest.$ac_ext
24284 LIBS=$ac_check_lib_save_LIBS
24286 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24287 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24288 if test $ac_cv_lib_dld_dlopen = yes; then
24291 cat >>confdefs.h <<\_ACEOF
24292 #define HAVE_DLOPEN 1
24293 _ACEOF
24300 # Some library-finding code we stole from Tcl.
24301 #--------------------------------------------------------------------
24302 # Check for the existence of the -lsocket and -lnsl libraries.
24303 # The order here is important, so that they end up in the right
24304 # order in the command line generated by make. Here are some
24305 # special considerations:
24306 # 1. Use "connect" and "accept" to check for -lsocket, and
24307 # "gethostbyname" to check for -lnsl.
24308 # 2. Use each function name only once: can't redo a check because
24309 # autoconf caches the results of the last check and won't redo it.
24310 # 3. Use -lnsl and -lsocket only if they supply procedures that
24311 # aren't already present in the normal libraries. This is because
24312 # IRIX 5.2 has libraries, but they aren't needed and they're
24313 # bogus: they goof up name resolution if used.
24314 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24315 # To get around this problem, check for both libraries together
24316 # if -lsocket doesn't work by itself.
24317 #--------------------------------------------------------------------
24319 echo "$as_me:$LINENO: checking for socket libraries" >&5
24320 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24321 if test "${gcj_cv_lib_sockets+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324 gcj_cv_lib_sockets=
24325 gcj_checkBoth=0
24326 unset ac_cv_func_connect
24327 echo "$as_me:$LINENO: checking for connect" >&5
24328 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24329 if test "${ac_cv_func_connect+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 if test x$gcc_no_link = xyes; then
24333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24335 { (exit 1); exit 1; }; }
24337 cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h. */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24345 #define connect innocuous_connect
24347 /* System header to define __stub macros and hopefully few prototypes,
24348 which can conflict with char connect (); below.
24349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24350 <limits.h> exists even on freestanding compilers. */
24352 #ifdef __STDC__
24353 # include <limits.h>
24354 #else
24355 # include <assert.h>
24356 #endif
24358 #undef connect
24360 /* Override any gcc2 internal prototype to avoid an error. */
24361 #ifdef __cplusplus
24362 extern "C"
24364 #endif
24365 /* We use char because int might match the return type of a gcc2
24366 builtin and then its argument prototype would still apply. */
24367 char connect ();
24368 /* The GNU C library defines this for functions which it implements
24369 to always fail with ENOSYS. Some functions are actually named
24370 something starting with __ and the normal name is an alias. */
24371 #if defined (__stub_connect) || defined (__stub___connect)
24372 choke me
24373 #else
24374 char (*f) () = connect;
24375 #endif
24376 #ifdef __cplusplus
24378 #endif
24381 main ()
24383 return f != connect;
24385 return 0;
24387 _ACEOF
24388 rm -f conftest.$ac_objext conftest$ac_exeext
24389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24390 (eval $ac_link) 2>conftest.er1
24391 ac_status=$?
24392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
24397 { ac_try='test -z "$ac_c_werror_flag"
24398 || test ! -s conftest.err'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; } &&
24404 { ac_try='test -s conftest$ac_exeext'
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; }; then
24410 ac_cv_func_connect=yes
24411 else
24412 echo "$as_me: failed program was:" >&5
24413 sed 's/^/| /' conftest.$ac_ext >&5
24415 ac_cv_func_connect=no
24417 rm -f conftest.err conftest.$ac_objext \
24418 conftest$ac_exeext conftest.$ac_ext
24420 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24421 echo "${ECHO_T}$ac_cv_func_connect" >&6
24422 if test $ac_cv_func_connect = yes; then
24423 gcj_checkSocket=0
24424 else
24425 gcj_checkSocket=1
24428 if test "$gcj_checkSocket" = 1; then
24429 unset ac_cv_func_connect
24430 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24431 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24432 if test "${ac_cv_lib_socket_main+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 else
24435 ac_check_lib_save_LIBS=$LIBS
24436 LIBS="-lsocket $LIBS"
24437 if test x$gcc_no_link = xyes; then
24438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24440 { (exit 1); exit 1; }; }
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h. */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24451 main ()
24453 main ();
24455 return 0;
24457 _ACEOF
24458 rm -f conftest.$ac_objext conftest$ac_exeext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24460 (eval $ac_link) 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
24467 { ac_try='test -z "$ac_c_werror_flag"
24468 || test ! -s conftest.err'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest$ac_exeext'
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; }; then
24480 ac_cv_lib_socket_main=yes
24481 else
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ac_cv_lib_socket_main=no
24487 rm -f conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
24489 LIBS=$ac_check_lib_save_LIBS
24491 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24492 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24493 if test $ac_cv_lib_socket_main = yes; then
24494 gcj_cv_lib_sockets="-lsocket"
24495 else
24496 gcj_checkBoth=1
24500 if test "$gcj_checkBoth" = 1; then
24501 gcj_oldLibs=$LIBS
24502 LIBS="$LIBS -lsocket -lnsl"
24503 unset ac_cv_func_accept
24504 echo "$as_me:$LINENO: checking for accept" >&5
24505 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24506 if test "${ac_cv_func_accept+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 else
24509 if test x$gcc_no_link = xyes; then
24510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24512 { (exit 1); exit 1; }; }
24514 cat >conftest.$ac_ext <<_ACEOF
24515 /* confdefs.h. */
24516 _ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h. */
24520 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24522 #define accept innocuous_accept
24524 /* System header to define __stub macros and hopefully few prototypes,
24525 which can conflict with char accept (); below.
24526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24527 <limits.h> exists even on freestanding compilers. */
24529 #ifdef __STDC__
24530 # include <limits.h>
24531 #else
24532 # include <assert.h>
24533 #endif
24535 #undef accept
24537 /* Override any gcc2 internal prototype to avoid an error. */
24538 #ifdef __cplusplus
24539 extern "C"
24541 #endif
24542 /* We use char because int might match the return type of a gcc2
24543 builtin and then its argument prototype would still apply. */
24544 char accept ();
24545 /* The GNU C library defines this for functions which it implements
24546 to always fail with ENOSYS. Some functions are actually named
24547 something starting with __ and the normal name is an alias. */
24548 #if defined (__stub_accept) || defined (__stub___accept)
24549 choke me
24550 #else
24551 char (*f) () = accept;
24552 #endif
24553 #ifdef __cplusplus
24555 #endif
24558 main ()
24560 return f != accept;
24562 return 0;
24564 _ACEOF
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24567 (eval $ac_link) 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } &&
24574 { ac_try='test -z "$ac_c_werror_flag"
24575 || test ! -s conftest.err'
24576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577 (eval $ac_try) 2>&5
24578 ac_status=$?
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); }; } &&
24581 { ac_try='test -s conftest$ac_exeext'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24587 ac_cv_func_accept=yes
24588 else
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_cv_func_accept=no
24594 rm -f conftest.err conftest.$ac_objext \
24595 conftest$ac_exeext conftest.$ac_ext
24597 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24598 echo "${ECHO_T}$ac_cv_func_accept" >&6
24599 if test $ac_cv_func_accept = yes; then
24600 gcj_checkNsl=0
24601 gcj_cv_lib_sockets="-lsocket -lnsl"
24604 unset ac_cv_func_accept
24605 LIBS=$gcj_oldLibs
24607 unset ac_cv_func_gethostbyname
24608 gcj_oldLibs=$LIBS
24609 LIBS="$LIBS $gcj_cv_lib_sockets"
24610 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24611 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24612 if test "${ac_cv_func_gethostbyname+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615 if test x$gcc_no_link = xyes; then
24616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24618 { (exit 1); exit 1; }; }
24620 cat >conftest.$ac_ext <<_ACEOF
24621 /* confdefs.h. */
24622 _ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24626 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24628 #define gethostbyname innocuous_gethostbyname
24630 /* System header to define __stub macros and hopefully few prototypes,
24631 which can conflict with char gethostbyname (); below.
24632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24633 <limits.h> exists even on freestanding compilers. */
24635 #ifdef __STDC__
24636 # include <limits.h>
24637 #else
24638 # include <assert.h>
24639 #endif
24641 #undef gethostbyname
24643 /* Override any gcc2 internal prototype to avoid an error. */
24644 #ifdef __cplusplus
24645 extern "C"
24647 #endif
24648 /* We use char because int might match the return type of a gcc2
24649 builtin and then its argument prototype would still apply. */
24650 char gethostbyname ();
24651 /* The GNU C library defines this for functions which it implements
24652 to always fail with ENOSYS. Some functions are actually named
24653 something starting with __ and the normal name is an alias. */
24654 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24655 choke me
24656 #else
24657 char (*f) () = gethostbyname;
24658 #endif
24659 #ifdef __cplusplus
24661 #endif
24664 main ()
24666 return f != gethostbyname;
24668 return 0;
24670 _ACEOF
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24673 (eval $ac_link) 2>conftest.er1
24674 ac_status=$?
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } &&
24680 { ac_try='test -z "$ac_c_werror_flag"
24681 || test ! -s conftest.err'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24684 ac_status=$?
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; } &&
24687 { ac_try='test -s conftest$ac_exeext'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_func_gethostbyname=yes
24694 else
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24698 ac_cv_func_gethostbyname=no
24700 rm -f conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
24703 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24704 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24705 if test $ac_cv_func_gethostbyname = yes; then
24707 else
24708 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24709 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24710 if test "${ac_cv_lib_nsl_main+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712 else
24713 ac_check_lib_save_LIBS=$LIBS
24714 LIBS="-lnsl $LIBS"
24715 if test x$gcc_no_link = xyes; then
24716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24718 { (exit 1); exit 1; }; }
24720 cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h. */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24729 main ()
24731 main ();
24733 return 0;
24735 _ACEOF
24736 rm -f conftest.$ac_objext conftest$ac_exeext
24737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24738 (eval $ac_link) 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } &&
24745 { ac_try='test -z "$ac_c_werror_flag"
24746 || test ! -s conftest.err'
24747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; } &&
24752 { ac_try='test -s conftest$ac_exeext'
24753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24754 (eval $ac_try) 2>&5
24755 ac_status=$?
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); }; }; then
24758 ac_cv_lib_nsl_main=yes
24759 else
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24763 ac_cv_lib_nsl_main=no
24765 rm -f conftest.err conftest.$ac_objext \
24766 conftest$ac_exeext conftest.$ac_ext
24767 LIBS=$ac_check_lib_save_LIBS
24769 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24770 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24771 if test $ac_cv_lib_nsl_main = yes; then
24772 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24777 unset ac_cv_func_gethostbyname
24778 LIBS=$gcj_oldLIBS
24781 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24782 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24783 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24785 if test "$with_system_zlib" = yes; then
24786 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24787 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24788 if test "${ac_cv_lib_z_deflate+set}" = set; then
24789 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 else
24791 ac_check_lib_save_LIBS=$LIBS
24792 LIBS="-lz $LIBS"
24793 if test x$gcc_no_link = xyes; then
24794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24796 { (exit 1); exit 1; }; }
24798 cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h. */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24805 /* Override any gcc2 internal prototype to avoid an error. */
24806 #ifdef __cplusplus
24807 extern "C"
24808 #endif
24809 /* We use char because int might match the return type of a gcc2
24810 builtin and then its argument prototype would still apply. */
24811 char deflate ();
24813 main ()
24815 deflate ();
24817 return 0;
24819 _ACEOF
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24822 (eval $ac_link) 2>conftest.er1
24823 ac_status=$?
24824 grep -v '^ *+' conftest.er1 >conftest.err
24825 rm -f conftest.er1
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
24829 { ac_try='test -z "$ac_c_werror_flag"
24830 || test ! -s conftest.err'
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; } &&
24836 { ac_try='test -s conftest$ac_exeext'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 ac_cv_lib_z_deflate=yes
24843 else
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24847 ac_cv_lib_z_deflate=no
24849 rm -f conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
24851 LIBS=$ac_check_lib_save_LIBS
24853 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24854 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24855 if test $ac_cv_lib_z_deflate = yes; then
24856 ZLIBSPEC=-lz
24857 else
24858 ZLIBSPEC=
24863 # Test for Gtk stuff, if asked for.
24864 if test "$use_gtk_awt" = yes; then
24866 succeeded=no
24868 if test -z "$PKG_CONFIG"; then
24869 # Extract the first word of "pkg-config", so it can be a program name with args.
24870 set dummy pkg-config; ac_word=$2
24871 echo "$as_me:$LINENO: checking for $ac_word" >&5
24872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876 case $PKG_CONFIG in
24877 [\\/]* | ?:[\\/]*)
24878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24882 for as_dir in $PATH
24884 IFS=$as_save_IFS
24885 test -z "$as_dir" && as_dir=.
24886 for ac_exec_ext in '' $ac_executable_extensions; do
24887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24890 break 2
24892 done
24893 done
24895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24897 esac
24899 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24901 if test -n "$PKG_CONFIG"; then
24902 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24903 echo "${ECHO_T}$PKG_CONFIG" >&6
24904 else
24905 echo "$as_me:$LINENO: result: no" >&5
24906 echo "${ECHO_T}no" >&6
24911 if test "$PKG_CONFIG" = "no" ; then
24912 echo "*** The pkg-config script could not be found. Make sure it is"
24913 echo "*** in your path, or set the PKG_CONFIG environment variable"
24914 echo "*** to the full path to pkg-config."
24915 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24916 else
24917 PKG_CONFIG_MIN_VERSION=0.9.0
24918 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24919 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24920 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24922 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24923 echo "$as_me:$LINENO: result: yes" >&5
24924 echo "${ECHO_T}yes" >&6
24925 succeeded=yes
24927 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24928 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24929 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24930 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24931 echo "${ECHO_T}$GTK_CFLAGS" >&6
24933 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24934 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24935 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24936 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24937 echo "${ECHO_T}$GTK_LIBS" >&6
24938 else
24939 GTK_CFLAGS=""
24940 GTK_LIBS=""
24941 ## If we have a custom action on failure, don't print errors, but
24942 ## do set a variable so people can do so.
24943 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24944 echo $GTK_PKG_ERRORS
24949 else
24950 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24951 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24955 if test $succeeded = yes; then
24957 else
24958 { { 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
24959 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;}
24960 { (exit 1); exit 1; }; }
24967 succeeded=no
24969 if test -z "$PKG_CONFIG"; then
24970 # Extract the first word of "pkg-config", so it can be a program name with args.
24971 set dummy pkg-config; ac_word=$2
24972 echo "$as_me:$LINENO: checking for $ac_word" >&5
24973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24976 else
24977 case $PKG_CONFIG in
24978 [\\/]* | ?:[\\/]*)
24979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24985 IFS=$as_save_IFS
24986 test -z "$as_dir" && as_dir=.
24987 for ac_exec_ext in '' $ac_executable_extensions; do
24988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24991 break 2
24993 done
24994 done
24996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24998 esac
25000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25002 if test -n "$PKG_CONFIG"; then
25003 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25004 echo "${ECHO_T}$PKG_CONFIG" >&6
25005 else
25006 echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6
25012 if test "$PKG_CONFIG" = "no" ; then
25013 echo "*** The pkg-config script could not be found. Make sure it is"
25014 echo "*** in your path, or set the PKG_CONFIG environment variable"
25015 echo "*** to the full path to pkg-config."
25016 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25017 else
25018 PKG_CONFIG_MIN_VERSION=0.9.0
25019 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25020 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25021 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25023 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25024 echo "$as_me:$LINENO: result: yes" >&5
25025 echo "${ECHO_T}yes" >&6
25026 succeeded=yes
25028 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25029 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25030 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25031 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25032 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25034 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25035 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25036 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25037 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25038 echo "${ECHO_T}$GLIB_LIBS" >&6
25039 else
25040 GLIB_CFLAGS=""
25041 GLIB_LIBS=""
25042 ## If we have a custom action on failure, don't print errors, but
25043 ## do set a variable so people can do so.
25044 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25045 echo $GLIB_PKG_ERRORS
25050 else
25051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25056 if test $succeeded = yes; then
25058 else
25059 { { 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
25060 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;}
25061 { (exit 1); exit 1; }; }
25068 succeeded=no
25070 if test -z "$PKG_CONFIG"; then
25071 # Extract the first word of "pkg-config", so it can be a program name with args.
25072 set dummy pkg-config; ac_word=$2
25073 echo "$as_me:$LINENO: checking for $ac_word" >&5
25074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25075 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078 case $PKG_CONFIG in
25079 [\\/]* | ?:[\\/]*)
25080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25084 for as_dir in $PATH
25086 IFS=$as_save_IFS
25087 test -z "$as_dir" && as_dir=.
25088 for ac_exec_ext in '' $ac_executable_extensions; do
25089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25092 break 2
25094 done
25095 done
25097 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25099 esac
25101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25103 if test -n "$PKG_CONFIG"; then
25104 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25105 echo "${ECHO_T}$PKG_CONFIG" >&6
25106 else
25107 echo "$as_me:$LINENO: result: no" >&5
25108 echo "${ECHO_T}no" >&6
25113 if test "$PKG_CONFIG" = "no" ; then
25114 echo "*** The pkg-config script could not be found. Make sure it is"
25115 echo "*** in your path, or set the PKG_CONFIG environment variable"
25116 echo "*** to the full path to pkg-config."
25117 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25118 else
25119 PKG_CONFIG_MIN_VERSION=0.9.0
25120 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25121 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25122 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25124 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25125 echo "$as_me:$LINENO: result: yes" >&5
25126 echo "${ECHO_T}yes" >&6
25127 succeeded=yes
25129 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25130 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25131 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25132 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25133 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25135 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25136 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25137 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25138 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25139 echo "${ECHO_T}$LIBART_LIBS" >&6
25140 else
25141 LIBART_CFLAGS=""
25142 LIBART_LIBS=""
25143 ## If we have a custom action on failure, don't print errors, but
25144 ## do set a variable so people can do so.
25145 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25146 echo $LIBART_PKG_ERRORS
25151 else
25152 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25153 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25157 if test $succeeded = yes; then
25159 else
25160 { { 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
25161 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;}
25162 { (exit 1); exit 1; }; }
25168 # We require the XTest Extension to support java.awt.Robot.
25169 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25170 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25171 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 else
25174 ac_check_lib_save_LIBS=$LIBS
25175 LIBS="-lXtst ${X_LIBS} $LIBS"
25176 if test x$gcc_no_link = xyes; then
25177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25179 { (exit 1); exit 1; }; }
25181 cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h. */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25188 /* Override any gcc2 internal prototype to avoid an error. */
25189 #ifdef __cplusplus
25190 extern "C"
25191 #endif
25192 /* We use char because int might match the return type of a gcc2
25193 builtin and then its argument prototype would still apply. */
25194 char XTestQueryExtension ();
25196 main ()
25198 XTestQueryExtension ();
25200 return 0;
25202 _ACEOF
25203 rm -f conftest.$ac_objext conftest$ac_exeext
25204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25205 (eval $ac_link) 2>conftest.er1
25206 ac_status=$?
25207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } &&
25212 { ac_try='test -z "$ac_c_werror_flag"
25213 || test ! -s conftest.err'
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; } &&
25219 { ac_try='test -s conftest$ac_exeext'
25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; }; then
25225 ac_cv_lib_Xtst_XTestQueryExtension=yes
25226 else
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_cv_lib_Xtst_XTestQueryExtension=no
25232 rm -f conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
25234 LIBS=$ac_check_lib_save_LIBS
25236 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25237 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25238 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25239 true
25240 else
25241 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25242 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25243 { (exit 1); exit 1; }; }
25248 # On Solaris, and maybe other architectures, the Boehm collector
25249 # requires -ldl.
25250 if test "$GC" = boehm; then
25251 case "${host}" in
25252 mips-sgi-irix6*)
25253 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25254 # libgcj.spec is used, so override here
25255 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25258 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25259 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25260 if test "${ac_cv_lib_dl_main+set}" = set; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263 ac_check_lib_save_LIBS=$LIBS
25264 LIBS="-ldl $LIBS"
25265 if test x$gcc_no_link = xyes; then
25266 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25267 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25268 { (exit 1); exit 1; }; }
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25279 main ()
25281 main ();
25283 return 0;
25285 _ACEOF
25286 rm -f conftest.$ac_objext conftest$ac_exeext
25287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25288 (eval $ac_link) 2>conftest.er1
25289 ac_status=$?
25290 grep -v '^ *+' conftest.er1 >conftest.err
25291 rm -f conftest.er1
25292 cat conftest.err >&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } &&
25295 { ac_try='test -z "$ac_c_werror_flag"
25296 || test ! -s conftest.err'
25297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25299 ac_status=$?
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; } &&
25302 { ac_try='test -s conftest$ac_exeext'
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; }; then
25308 ac_cv_lib_dl_main=yes
25309 else
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25313 ac_cv_lib_dl_main=no
25315 rm -f conftest.err conftest.$ac_objext \
25316 conftest$ac_exeext conftest.$ac_ext
25317 LIBS=$ac_check_lib_save_LIBS
25319 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25320 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25321 if test $ac_cv_lib_dl_main = yes; then
25322 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25326 esac
25330 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25331 case $build in
25332 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25333 *) CLASSPATH_SEPARATOR=':' ;;
25334 esac
25337 # We must search the source tree for java.lang, since we still don't
25338 # have libgcj.jar nor java/lang/*.class
25339 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25340 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25342 # Since some classes depend on this one, we need its source available
25343 # before we can do any GCJ compilation test :-(
25344 if test ! -f gnu/classpath/Configuration.java; then
25345 test -d gnu || mkdir gnu
25346 test -d gnu/classpath || mkdir gnu/classpath
25347 # Note that it is not crucial that all the values here be correct.
25348 sed -e "s,@prefix@,$prefix," \
25349 -e "s,@VERSION@,$VERSION," \
25350 -e "s,@LIBDEBUG@,false," \
25351 -e "s,@INIT_LOAD_LIBRARY@,false," \
25352 -e "s,@@,$LIBGCJDEBUG," \
25353 -e "s,@default_toolkit@,$TOOLKIT," \
25354 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25355 -e "s,@GTK_CAIRO_ENABLED@,false," \
25356 -e "s,@ECJ_JAR@,," \
25357 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25358 > gnu/classpath/Configuration.java
25359 # We do not want to redirect the output of the grep below to /dev/null,
25360 # but we add /dev/null to the input list so that grep will print the
25361 # filename of Configuration.java in case it finds any matches.
25362 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25363 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25364 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25365 { (exit 1); exit 1; }; }
25370 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
25372 # Extract the first word of "$ac_prog", so it can be a program name with args.
25373 set dummy $ac_prog; ac_word=$2
25374 echo "$as_me:$LINENO: checking for $ac_word" >&5
25375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25376 if test "${ac_cv_prog_GCJ+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379 if test -n "$GCJ"; then
25380 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25381 else
25382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 for as_dir in $PATH
25385 IFS=$as_save_IFS
25386 test -z "$as_dir" && as_dir=.
25387 for ac_exec_ext in '' $ac_executable_extensions; do
25388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25389 ac_cv_prog_GCJ="$ac_prog"
25390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25391 break 2
25393 done
25394 done
25398 GCJ=$ac_cv_prog_GCJ
25399 if test -n "$GCJ"; then
25400 echo "$as_me:$LINENO: result: $GCJ" >&5
25401 echo "${ECHO_T}$GCJ" >&6
25402 else
25403 echo "$as_me:$LINENO: result: no" >&5
25404 echo "${ECHO_T}no" >&6
25407 test -n "$GCJ" && break
25408 done
25409 test -n "$GCJ" || GCJ="gcj"
25411 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25412 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25413 { (exit 1); exit 1; }; }
25414 if test "x${GCJFLAGS-unset}" = xunset; then
25415 GCJFLAGS="-g -O2"
25419 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25421 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25422 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25423 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 else
25426 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25427 # We make a subdir and do the tests there. Otherwise we can end up
25428 # making bogus files that we don't know about and never remove. For
25429 # instance it was reported that on HP-UX the gcc test will end up
25430 # making a dummy file named `D' -- because `-MD' means `put the output
25431 # in D'.
25432 mkdir conftest.dir
25433 # Copy depcomp to subdir because otherwise we won't find it if we're
25434 # using a relative directory.
25435 cp "$am_depcomp" conftest.dir
25436 cd conftest.dir
25437 # We will build objects and dependencies in a subdirectory because
25438 # it helps to detect inapplicable dependency modes. For instance
25439 # both Tru64's cc and ICC support -MD to output dependencies as a
25440 # side effect of compilation, but ICC will put the dependencies in
25441 # the current directory while Tru64 will put them in the object
25442 # directory.
25443 mkdir sub
25445 am_cv_GCJ_dependencies_compiler_type=none
25446 if test "$am_compiler_list" = ""; then
25447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25449 for depmode in $am_compiler_list; do
25450 # Setup a source with many dependencies, because some compilers
25451 # like to wrap large dependency lists on column 80 (with \), and
25452 # we should not choose a depcomp mode which is confused by this.
25454 # We need to recreate these files for each test, as the compiler may
25455 # overwrite some of them when testing with obscure command lines.
25456 # This happens at least with the AIX C compiler.
25457 : > sub/conftest.c
25458 for i in 1 2 3 4 5 6; do
25459 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25460 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25461 # Solaris 8's {/usr,}/bin/sh.
25462 touch sub/conftst$i.h
25463 done
25464 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25466 case $depmode in
25467 nosideeffect)
25468 # after this tag, mechanisms are not by side-effect, so they'll
25469 # only be used when explicitly requested
25470 if test "x$enable_dependency_tracking" = xyes; then
25471 continue
25472 else
25473 break
25476 none) break ;;
25477 esac
25478 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25479 # mode. It turns out that the SunPro C++ compiler does not properly
25480 # handle `-M -o', and we need to detect this.
25481 if depmode=$depmode \
25482 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25483 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25484 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25485 >/dev/null 2>conftest.err &&
25486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25487 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25489 # icc doesn't choke on unknown options, it will just issue warnings
25490 # or remarks (even with -Werror). So we grep stderr for any message
25491 # that says an option was ignored or not supported.
25492 # When given -MP, icc 7.0 and 7.1 complain thusly:
25493 # icc: Command line warning: ignoring option '-M'; no argument required
25494 # The diagnosis changed in icc 8.0:
25495 # icc: Command line remark: option '-MP' not supported
25496 if (grep 'ignoring option' conftest.err ||
25497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25498 am_cv_GCJ_dependencies_compiler_type=$depmode
25499 break
25502 done
25504 cd ..
25505 rm -rf conftest.dir
25506 else
25507 am_cv_GCJ_dependencies_compiler_type=none
25511 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25512 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25513 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25518 test "x$enable_dependency_tracking" != xno \
25519 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25520 am__fastdepGCJ_TRUE=
25521 am__fastdepGCJ_FALSE='#'
25522 else
25523 am__fastdepGCJ_TRUE='#'
25524 am__fastdepGCJ_FALSE=
25530 # Now remove it.
25531 rm -f gnu/classpath/Configuration.java
25533 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25535 echo "$as_me:$LINENO: checking for void *" >&5
25536 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25537 if test "${ac_cv_type_void_p+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540 cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h. */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 $ac_includes_default
25548 main ()
25550 if ((void * *) 0)
25551 return 0;
25552 if (sizeof (void *))
25553 return 0;
25555 return 0;
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25560 (eval $ac_compile) 2>conftest.er1
25561 ac_status=$?
25562 grep -v '^ *+' conftest.er1 >conftest.err
25563 rm -f conftest.er1
25564 cat conftest.err >&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } &&
25567 { ac_try='test -z "$ac_c_werror_flag"
25568 || test ! -s conftest.err'
25569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; } &&
25574 { ac_try='test -s conftest.$ac_objext'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_type_void_p=yes
25581 else
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ac_cv_type_void_p=no
25587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25589 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25590 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25592 echo "$as_me:$LINENO: checking size of void *" >&5
25593 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25594 if test "${ac_cv_sizeof_void_p+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 else
25597 if test "$ac_cv_type_void_p" = yes; then
25598 # The cast to unsigned long works around a bug in the HP C Compiler
25599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25601 # This bug is HP SR number 8606223364.
25602 if test "$cross_compiling" = yes; then
25603 # Depending upon the size, compute the lo and hi bounds.
25604 cat >conftest.$ac_ext <<_ACEOF
25605 /* confdefs.h. */
25606 _ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610 $ac_includes_default
25612 main ()
25614 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25615 test_array [0] = 0
25618 return 0;
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25623 (eval $ac_compile) 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } &&
25630 { ac_try='test -z "$ac_c_werror_flag"
25631 || test ! -s conftest.err'
25632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }; } &&
25637 { ac_try='test -s conftest.$ac_objext'
25638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); }; }; then
25643 ac_lo=0 ac_mid=0
25644 while :; do
25645 cat >conftest.$ac_ext <<_ACEOF
25646 /* confdefs.h. */
25647 _ACEOF
25648 cat confdefs.h >>conftest.$ac_ext
25649 cat >>conftest.$ac_ext <<_ACEOF
25650 /* end confdefs.h. */
25651 $ac_includes_default
25653 main ()
25655 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25656 test_array [0] = 0
25659 return 0;
25661 _ACEOF
25662 rm -f conftest.$ac_objext
25663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25664 (eval $ac_compile) 2>conftest.er1
25665 ac_status=$?
25666 grep -v '^ *+' conftest.er1 >conftest.err
25667 rm -f conftest.er1
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } &&
25671 { ac_try='test -z "$ac_c_werror_flag"
25672 || test ! -s conftest.err'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; } &&
25678 { ac_try='test -s conftest.$ac_objext'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; }; then
25684 ac_hi=$ac_mid; break
25685 else
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ac_lo=`expr $ac_mid + 1`
25690 if test $ac_lo -le $ac_mid; then
25691 ac_lo= ac_hi=
25692 break
25694 ac_mid=`expr 2 '*' $ac_mid + 1`
25696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25697 done
25698 else
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h. */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 $ac_includes_default
25710 main ()
25712 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25713 test_array [0] = 0
25716 return 0;
25718 _ACEOF
25719 rm -f conftest.$ac_objext
25720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25721 (eval $ac_compile) 2>conftest.er1
25722 ac_status=$?
25723 grep -v '^ *+' conftest.er1 >conftest.err
25724 rm -f conftest.er1
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } &&
25728 { ac_try='test -z "$ac_c_werror_flag"
25729 || test ! -s conftest.err'
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); }; } &&
25735 { ac_try='test -s conftest.$ac_objext'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 ac_hi=-1 ac_mid=-1
25742 while :; do
25743 cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h. */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25749 $ac_includes_default
25751 main ()
25753 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25754 test_array [0] = 0
25757 return 0;
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25763 ac_status=$?
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25782 ac_lo=$ac_mid; break
25783 else
25784 echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25787 ac_hi=`expr '(' $ac_mid ')' - 1`
25788 if test $ac_mid -le $ac_hi; then
25789 ac_lo= ac_hi=
25790 break
25792 ac_mid=`expr 2 '*' $ac_mid`
25794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25795 done
25796 else
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 ac_lo= ac_hi=
25802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25805 # Binary search between lo and hi bounds.
25806 while test "x$ac_lo" != "x$ac_hi"; do
25807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25808 cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h. */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25814 $ac_includes_default
25816 main ()
25818 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25819 test_array [0] = 0
25822 return 0;
25824 _ACEOF
25825 rm -f conftest.$ac_objext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25827 (eval $ac_compile) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest.$ac_objext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_hi=$ac_mid
25848 else
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25852 ac_lo=`expr '(' $ac_mid ')' + 1`
25854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25855 done
25856 case $ac_lo in
25857 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25858 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25859 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25861 See \`config.log' for more details." >&5
25862 echo "$as_me: error: cannot compute sizeof (void *), 77
25863 See \`config.log' for more details." >&2;}
25864 { (exit 1); exit 1; }; }; } ;;
25865 esac
25866 else
25867 if test "$cross_compiling" = yes; then
25868 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25869 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25870 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25871 See \`config.log' for more details." >&5
25872 echo "$as_me: error: cannot run test program while cross compiling
25873 See \`config.log' for more details." >&2;}
25874 { (exit 1); exit 1; }; }; }
25875 else
25876 cat >conftest.$ac_ext <<_ACEOF
25877 /* confdefs.h. */
25878 _ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h. */
25882 $ac_includes_default
25883 long longval () { return (long) (sizeof (void *)); }
25884 unsigned long ulongval () { return (long) (sizeof (void *)); }
25885 #include <stdio.h>
25886 #include <stdlib.h>
25888 main ()
25891 FILE *f = fopen ("conftest.val", "w");
25892 if (! f)
25893 exit (1);
25894 if (((long) (sizeof (void *))) < 0)
25896 long i = longval ();
25897 if (i != ((long) (sizeof (void *))))
25898 exit (1);
25899 fprintf (f, "%ld\n", i);
25901 else
25903 unsigned long i = ulongval ();
25904 if (i != ((long) (sizeof (void *))))
25905 exit (1);
25906 fprintf (f, "%lu\n", i);
25908 exit (ferror (f) || fclose (f) != 0);
25911 return 0;
25913 _ACEOF
25914 rm -f conftest$ac_exeext
25915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25916 (eval $ac_link) 2>&5
25917 ac_status=$?
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; }; then
25925 ac_cv_sizeof_void_p=`cat conftest.val`
25926 else
25927 echo "$as_me: program exited with status $ac_status" >&5
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 ( exit $ac_status )
25932 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25933 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25935 See \`config.log' for more details." >&5
25936 echo "$as_me: error: cannot compute sizeof (void *), 77
25937 See \`config.log' for more details." >&2;}
25938 { (exit 1); exit 1; }; }; }
25940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25943 rm -f conftest.val
25944 else
25945 ac_cv_sizeof_void_p=0
25948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25949 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25950 cat >>confdefs.h <<_ACEOF
25951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25952 _ACEOF
25956 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25957 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25958 if test "${ac_cv_c_bigendian+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 else
25961 # See if sys/param.h defines the BYTE_ORDER macro.
25962 cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h. */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 #include <sys/types.h>
25969 #include <sys/param.h>
25972 main ()
25974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25975 bogus endian macros
25976 #endif
25979 return 0;
25981 _ACEOF
25982 rm -f conftest.$ac_objext
25983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25984 (eval $ac_compile) 2>conftest.er1
25985 ac_status=$?
25986 grep -v '^ *+' conftest.er1 >conftest.err
25987 rm -f conftest.er1
25988 cat conftest.err >&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } &&
25991 { ac_try='test -z "$ac_c_werror_flag"
25992 || test ! -s conftest.err'
25993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); }; } &&
25998 { ac_try='test -s conftest.$ac_objext'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
26004 # It does; now see whether it defined to BIG_ENDIAN or not.
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h. */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 #include <sys/types.h>
26012 #include <sys/param.h>
26015 main ()
26017 #if BYTE_ORDER != BIG_ENDIAN
26018 not big endian
26019 #endif
26022 return 0;
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_c_bigendian=yes
26048 else
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_cv_c_bigendian=no
26054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26055 else
26056 echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 # It does not; compile a test program.
26060 if test "$cross_compiling" = yes; then
26061 # try to guess the endianness by grepping values into an object file
26062 ac_cv_c_bigendian=unknown
26063 cat >conftest.$ac_ext <<_ACEOF
26064 /* confdefs.h. */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26070 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26072 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26073 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26076 main ()
26078 _ascii (); _ebcdic ();
26080 return 0;
26082 _ACEOF
26083 rm -f conftest.$ac_objext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26085 (eval $ac_compile) 2>conftest.er1
26086 ac_status=$?
26087 grep -v '^ *+' conftest.er1 >conftest.err
26088 rm -f conftest.er1
26089 cat conftest.err >&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } &&
26092 { ac_try='test -z "$ac_c_werror_flag"
26093 || test ! -s conftest.err'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; } &&
26099 { ac_try='test -s conftest.$ac_objext'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26106 ac_cv_c_bigendian=yes
26108 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26109 if test "$ac_cv_c_bigendian" = unknown; then
26110 ac_cv_c_bigendian=no
26111 else
26112 # finding both strings is unlikely to happen, but who knows?
26113 ac_cv_c_bigendian=unknown
26116 else
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26122 else
26123 cat >conftest.$ac_ext <<_ACEOF
26124 /* confdefs.h. */
26125 _ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h. */
26130 main ()
26132 /* Are we little or big endian? From Harbison&Steele. */
26133 union
26135 long l;
26136 char c[sizeof (long)];
26137 } u;
26138 u.l = 1;
26139 exit (u.c[sizeof (long) - 1] == 1);
26141 _ACEOF
26142 rm -f conftest$ac_exeext
26143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26144 (eval $ac_link) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
26153 ac_cv_c_bigendian=no
26154 else
26155 echo "$as_me: program exited with status $ac_status" >&5
26156 echo "$as_me: failed program was:" >&5
26157 sed 's/^/| /' conftest.$ac_ext >&5
26159 ( exit $ac_status )
26160 ac_cv_c_bigendian=yes
26162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26167 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26168 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26169 case $ac_cv_c_bigendian in
26170 yes)
26172 cat >>confdefs.h <<\_ACEOF
26173 #define WORDS_BIGENDIAN 1
26174 _ACEOF
26179 { { echo "$as_me:$LINENO: error: unknown endianness
26180 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26181 echo "$as_me: error: unknown endianness
26182 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26183 { (exit 1); exit 1; }; } ;;
26184 esac
26187 ZLIBS=
26188 SYS_ZLIBS=
26189 ZINCS=
26191 if test -z "$ZLIBSPEC"; then
26192 # Use zlib from the GCC tree.
26193 ZINCS='-I$(top_srcdir)/../zlib'
26194 ZLIBS=../zlib/libzgcj_convenience.la
26195 else
26196 # System's zlib.
26197 SYS_ZLIBS="$ZLIBSPEC"
26210 if test "$NATIVE" = yes; then
26211 NATIVE_TRUE=
26212 NATIVE_FALSE='#'
26213 else
26214 NATIVE_TRUE='#'
26215 NATIVE_FALSE=
26220 if test "$enable_shared" = yes; then
26221 ENABLE_SHARED_TRUE=
26222 ENABLE_SHARED_FALSE='#'
26223 else
26224 ENABLE_SHARED_TRUE='#'
26225 ENABLE_SHARED_FALSE=
26230 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26231 NEEDS_DATA_START_TRUE=
26232 NEEDS_DATA_START_FALSE='#'
26233 else
26234 NEEDS_DATA_START_TRUE='#'
26235 NEEDS_DATA_START_FALSE=
26240 # Process the option "--enable-version-specific-runtime-libs"
26241 # Calculate toolexeclibdir
26242 case ${version_specific_libs} in
26243 yes)
26244 # Need the gcc compiler version to know where to install libraries
26245 # and header files if --enable-version-specific-runtime-libs option
26246 # is selected.
26247 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26248 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26249 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26250 toolexeclibdir=$toolexecmainlibdir
26253 if test -n "$with_cross_host" &&
26254 test x"$with_cross_host" != x"no"; then
26255 # Install a library built with a cross compiler in tooldir, not libdir.
26256 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26257 toolexecmainlibdir='$(toolexecdir)/lib'
26258 else
26259 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26260 toolexecmainlibdir='$(libdir)'
26262 multi_os_directory=`$CC -print-multi-os-directory`
26263 case $multi_os_directory in
26264 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26265 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26266 esac
26268 esac
26273 # Determine gcj and libgcj version number.
26274 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26275 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26276 GCJVERSION=$gcjversion
26279 cat >>confdefs.h <<_ACEOF
26280 #define GCJVERSION "$GCJVERSION"
26281 _ACEOF
26284 # Determine where the standard .db file and GNU Classpath JNI
26285 # libraries are found.
26286 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26287 multi_os_directory=`$CC -print-multi-os-directory`
26288 case $multi_os_directory in
26290 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26293 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26295 esac
26299 cat >>confdefs.h <<\_ACEOF
26300 #define JV_VERSION "1.5.0"
26301 _ACEOF
26304 cat >>confdefs.h <<\_ACEOF
26305 #define JV_API_VERSION "1.5"
26306 _ACEOF
26310 case "${with_gxx_include_dir}" in
26311 yes)
26312 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26313 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26314 { (exit 1); exit 1; }; }
26316 no | "")
26317 case "${enable_version_specific_runtime_libs}" in
26318 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26320 libstdcxx_incdir='c++/$(gcc_version)'
26321 gxx_include_dir='include/$(libstdcxx_incdir)'
26322 if test -n "$with_cross_host" &&
26323 test x"$with_cross_host" != x"no"; then
26324 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26325 else
26326 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26327 fi;;
26328 esac ;;
26329 *) gxx_include_dir=${with_gxx_include_dir} ;;
26330 esac
26335 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26336 # On that system, sys/ioctl.h will not include sys/filio.h unless
26337 # BSD_COMP is defined; just including sys/filio.h is simpler.
26338 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26339 # for now. If you change this, you also must update natFile.cc.
26363 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26364 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26365 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26366 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26367 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26371 echo "$as_me:$LINENO: checking for $ac_header" >&5
26372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26378 else
26379 # Is the header compilable?
26380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26382 cat >conftest.$ac_ext <<_ACEOF
26383 /* confdefs.h. */
26384 _ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h. */
26388 $ac_includes_default
26389 #include <$ac_header>
26390 _ACEOF
26391 rm -f conftest.$ac_objext
26392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393 (eval $ac_compile) 2>conftest.er1
26394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag"
26401 || test ! -s conftest.err'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; } &&
26407 { ac_try='test -s conftest.$ac_objext'
26408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409 (eval $ac_try) 2>&5
26410 ac_status=$?
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); }; }; then
26413 ac_header_compiler=yes
26414 else
26415 echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26418 ac_header_compiler=no
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26422 echo "${ECHO_T}$ac_header_compiler" >&6
26424 # Is the header present?
26425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26427 cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h. */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h. */
26433 #include <$ac_header>
26434 _ACEOF
26435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26437 ac_status=$?
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } >/dev/null; then
26443 if test -s conftest.err; then
26444 ac_cpp_err=$ac_c_preproc_warn_flag
26445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26446 else
26447 ac_cpp_err=
26449 else
26450 ac_cpp_err=yes
26452 if test -z "$ac_cpp_err"; then
26453 ac_header_preproc=yes
26454 else
26455 echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26458 ac_header_preproc=no
26460 rm -f conftest.err conftest.$ac_ext
26461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26462 echo "${ECHO_T}$ac_header_preproc" >&6
26464 # So? What about this header?
26465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26466 yes:no: )
26467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26471 ac_header_preproc=yes
26473 no:yes:* )
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26487 cat <<\_ASBOX
26488 ## ---------------------------------- ##
26489 ## Report this to the libjava lists. ##
26490 ## ---------------------------------- ##
26491 _ASBOX
26493 sed "s/^/$as_me: WARNING: /" >&2
26495 esac
26496 echo "$as_me:$LINENO: checking for $ac_header" >&5
26497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501 eval "$as_ac_Header=\$ac_header_preproc"
26503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26508 cat >>confdefs.h <<_ACEOF
26509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26510 _ACEOF
26514 done
26517 for ac_header in inttypes.h
26519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26521 echo "$as_me:$LINENO: checking for $ac_header" >&5
26522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26528 else
26529 # Is the header compilable?
26530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26532 cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h. */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26538 $ac_includes_default
26539 #include <$ac_header>
26540 _ACEOF
26541 rm -f conftest.$ac_objext
26542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26543 (eval $ac_compile) 2>conftest.er1
26544 ac_status=$?
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
26550 { ac_try='test -z "$ac_c_werror_flag"
26551 || test ! -s conftest.err'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest.$ac_objext'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 ac_header_compiler=yes
26564 else
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26568 ac_header_compiler=no
26570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26572 echo "${ECHO_T}$ac_header_compiler" >&6
26574 # Is the header present?
26575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h. */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 #include <$ac_header>
26584 _ACEOF
26585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } >/dev/null; then
26593 if test -s conftest.err; then
26594 ac_cpp_err=$ac_c_preproc_warn_flag
26595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26596 else
26597 ac_cpp_err=
26599 else
26600 ac_cpp_err=yes
26602 if test -z "$ac_cpp_err"; then
26603 ac_header_preproc=yes
26604 else
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 ac_header_preproc=no
26610 rm -f conftest.err conftest.$ac_ext
26611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26612 echo "${ECHO_T}$ac_header_preproc" >&6
26614 # So? What about this header?
26615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26616 yes:no: )
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26621 ac_header_preproc=yes
26623 no:yes:* )
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26637 cat <<\_ASBOX
26638 ## ---------------------------------- ##
26639 ## Report this to the libjava lists. ##
26640 ## ---------------------------------- ##
26641 _ASBOX
26643 sed "s/^/$as_me: WARNING: /" >&2
26645 esac
26646 echo "$as_me:$LINENO: checking for $ac_header" >&5
26647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651 eval "$as_ac_Header=\$ac_header_preproc"
26653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26658 cat >>confdefs.h <<_ACEOF
26659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26660 _ACEOF
26663 cat >>confdefs.h <<\_ACEOF
26664 #define HAVE_INTTYPES_H 1
26665 _ACEOF
26668 cat >>confdefs.h <<\_ACEOF
26669 #define JV_HAVE_INTTYPES_H 1
26670 _ACEOF
26675 done
26678 echo "$as_me:$LINENO: checking for ssize_t" >&5
26679 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26680 if test "${ac_cv_type_ssize_t+set}" = set; then
26681 echo $ECHO_N "(cached) $ECHO_C" >&6
26682 else
26683 cat >conftest.$ac_ext <<_ACEOF
26684 /* confdefs.h. */
26685 _ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h. */
26689 $ac_includes_default
26691 main ()
26693 if ((ssize_t *) 0)
26694 return 0;
26695 if (sizeof (ssize_t))
26696 return 0;
26698 return 0;
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26703 (eval $ac_compile) 2>conftest.er1
26704 ac_status=$?
26705 grep -v '^ *+' conftest.er1 >conftest.err
26706 rm -f conftest.er1
26707 cat conftest.err >&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
26710 { ac_try='test -z "$ac_c_werror_flag"
26711 || test ! -s conftest.err'
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26723 ac_cv_type_ssize_t=yes
26724 else
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26728 ac_cv_type_ssize_t=no
26730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26732 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26733 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26734 if test $ac_cv_type_ssize_t = yes; then
26736 else
26738 cat >>confdefs.h <<_ACEOF
26739 #define ssize_t int
26740 _ACEOF
26744 echo "$as_me:$LINENO: checking for magic_t" >&5
26745 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26746 if test "${ac_cv_type_magic_t+set}" = set; then
26747 echo $ECHO_N "(cached) $ECHO_C" >&6
26748 else
26749 cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h. */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26756 #ifdef HAVE_MAGIC_H
26757 #include <magic.h>
26758 #endif
26761 main ()
26763 if ((magic_t *) 0)
26764 return 0;
26765 if (sizeof (magic_t))
26766 return 0;
26768 return 0;
26770 _ACEOF
26771 rm -f conftest.$ac_objext
26772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26773 (eval $ac_compile) 2>conftest.er1
26774 ac_status=$?
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } &&
26780 { ac_try='test -z "$ac_c_werror_flag"
26781 || test ! -s conftest.err'
26782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; } &&
26787 { ac_try='test -s conftest.$ac_objext'
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; }; then
26793 ac_cv_type_magic_t=yes
26794 else
26795 echo "$as_me: failed program was:" >&5
26796 sed 's/^/| /' conftest.$ac_ext >&5
26798 ac_cv_type_magic_t=no
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26803 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26804 if test $ac_cv_type_magic_t = yes; then
26807 cat >>confdefs.h <<\_ACEOF
26808 #define HAVE_MAGIC_T 1
26809 _ACEOF
26814 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26815 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h. */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26822 #include <sys/types.h>
26823 #if STDC_HEADERS
26824 #include <stdlib.h>
26825 #include <stddef.h>
26826 #endif
26827 #if HAVE_NETINET_IN_H
26828 #include <netinet/in.h>
26829 #endif
26831 main ()
26833 in_addr_t foo;
26835 return 0;
26837 _ACEOF
26838 rm -f conftest.$ac_objext
26839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26840 (eval $ac_compile) 2>conftest.er1
26841 ac_status=$?
26842 grep -v '^ *+' conftest.er1 >conftest.err
26843 rm -f conftest.er1
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } &&
26847 { ac_try='test -z "$ac_c_werror_flag"
26848 || test ! -s conftest.err'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; } &&
26854 { ac_try='test -s conftest.$ac_objext'
26855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); }; }; then
26861 cat >>confdefs.h <<\_ACEOF
26862 #define HAVE_IN_ADDR_T 1
26863 _ACEOF
26865 echo "$as_me:$LINENO: result: yes" >&5
26866 echo "${ECHO_T}yes" >&6
26867 else
26868 echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 echo "$as_me:$LINENO: result: no" >&5
26872 echo "${ECHO_T}no" >&6
26874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26876 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26877 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26878 cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h. */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 #include <netinet/in.h>
26886 main ()
26888 struct ip_mreq mreq;
26890 return 0;
26892 _ACEOF
26893 rm -f conftest.$ac_objext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26895 (eval $ac_compile) 2>conftest.er1
26896 ac_status=$?
26897 grep -v '^ *+' conftest.er1 >conftest.err
26898 rm -f conftest.er1
26899 cat conftest.err >&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); } &&
26902 { ac_try='test -z "$ac_c_werror_flag"
26903 || test ! -s conftest.err'
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26906 ac_status=$?
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; } &&
26909 { ac_try='test -s conftest.$ac_objext'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26916 cat >>confdefs.h <<\_ACEOF
26917 #define HAVE_STRUCT_IP_MREQ 1
26918 _ACEOF
26920 echo "$as_me:$LINENO: result: yes" >&5
26921 echo "${ECHO_T}yes" >&6
26922 else
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26926 echo "$as_me:$LINENO: result: no" >&5
26927 echo "${ECHO_T}no" >&6
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26931 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26932 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26933 cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h. */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <netinet/in.h>
26941 main ()
26943 struct ipv6_mreq mreq6;
26945 return 0;
26947 _ACEOF
26948 rm -f conftest.$ac_objext
26949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26950 (eval $ac_compile) 2>conftest.er1
26951 ac_status=$?
26952 grep -v '^ *+' conftest.er1 >conftest.err
26953 rm -f conftest.er1
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -z "$ac_c_werror_flag"
26958 || test ! -s conftest.err'
26959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960 (eval $ac_try) 2>&5
26961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; } &&
26964 { ac_try='test -s conftest.$ac_objext'
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; }; then
26971 cat >>confdefs.h <<\_ACEOF
26972 #define HAVE_STRUCT_IPV6_MREQ 1
26973 _ACEOF
26975 echo "$as_me:$LINENO: result: yes" >&5
26976 echo "${ECHO_T}yes" >&6
26977 else
26978 echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26981 echo "$as_me:$LINENO: result: no" >&5
26982 echo "${ECHO_T}no" >&6
26984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26986 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26987 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h. */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 #include <netinet/in.h>
26996 main ()
26998 struct sockaddr_in6 addr6;
27000 return 0;
27002 _ACEOF
27003 rm -f conftest.$ac_objext
27004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27005 (eval $ac_compile) 2>conftest.er1
27006 ac_status=$?
27007 grep -v '^ *+' conftest.er1 >conftest.err
27008 rm -f conftest.er1
27009 cat conftest.err >&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } &&
27012 { ac_try='test -z "$ac_c_werror_flag"
27013 || test ! -s conftest.err'
27014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27016 ac_status=$?
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; } &&
27019 { ac_try='test -s conftest.$ac_objext'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27026 cat >>confdefs.h <<\_ACEOF
27027 #define HAVE_INET6 1
27028 _ACEOF
27030 echo "$as_me:$LINENO: result: yes" >&5
27031 echo "${ECHO_T}yes" >&6
27032 else
27033 echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27036 echo "$as_me:$LINENO: result: no" >&5
27037 echo "${ECHO_T}no" >&6
27039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27042 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27043 cat >conftest.$ac_ext <<_ACEOF
27044 /* confdefs.h. */
27045 _ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h. */
27049 #define _POSIX_PII_SOCKET
27050 #include <sys/types.h>
27051 #include <sys/socket.h>
27053 main ()
27055 socklen_t x = 5;
27057 return 0;
27059 _ACEOF
27060 rm -f conftest.$ac_objext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27062 (eval $ac_compile) 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag"
27070 || test ! -s conftest.err'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest.$ac_objext'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; }; then
27083 cat >>confdefs.h <<\_ACEOF
27084 #define HAVE_SOCKLEN_T 1
27085 _ACEOF
27087 echo "$as_me:$LINENO: result: yes" >&5
27088 echo "${ECHO_T}yes" >&6
27089 else
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 echo "$as_me:$LINENO: result: no" >&5
27094 echo "${ECHO_T}no" >&6
27096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27098 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27099 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27100 cat >conftest.$ac_ext <<_ACEOF
27101 /* confdefs.h. */
27102 _ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27106 #include <time.h>
27108 main ()
27110 struct tm tim; tim.tm_gmtoff = 0;
27112 return 0;
27114 _ACEOF
27115 rm -f conftest.$ac_objext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27117 (eval $ac_compile) 2>conftest.er1
27118 ac_status=$?
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest.$ac_objext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27138 cat >>confdefs.h <<\_ACEOF
27139 #define STRUCT_TM_HAS_GMTOFF 1
27140 _ACEOF
27142 echo "$as_me:$LINENO: result: yes" >&5
27143 echo "${ECHO_T}yes" >&6
27144 else
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27148 echo "$as_me:$LINENO: result: no" >&5
27149 echo "${ECHO_T}no" >&6
27150 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27151 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27152 cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h. */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27158 #include <time.h>
27160 main ()
27162 void i(){long z2 = 2*timezone;}
27164 return 0;
27166 _ACEOF
27167 rm -f conftest.$ac_objext
27168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27169 (eval $ac_compile) 2>conftest.er1
27170 ac_status=$?
27171 grep -v '^ *+' conftest.er1 >conftest.err
27172 rm -f conftest.er1
27173 cat conftest.err >&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } &&
27176 { ac_try='test -z "$ac_c_werror_flag"
27177 || test ! -s conftest.err'
27178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179 (eval $ac_try) 2>&5
27180 ac_status=$?
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; } &&
27183 { ac_try='test -s conftest.$ac_objext'
27184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185 (eval $ac_try) 2>&5
27186 ac_status=$?
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; }; then
27190 cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_TIMEZONE 1
27192 _ACEOF
27194 echo "$as_me:$LINENO: result: yes" >&5
27195 echo "${ECHO_T}yes" >&6
27196 else
27197 echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27200 echo "$as_me:$LINENO: result: no" >&5
27201 echo "${ECHO_T}no" >&6
27202 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27203 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27204 cat >conftest.$ac_ext <<_ACEOF
27205 /* confdefs.h. */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 #include <time.h>
27212 main ()
27214 long z2 = _timezone;
27216 return 0;
27218 _ACEOF
27219 rm -f conftest.$ac_objext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27221 (eval $ac_compile) 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag"
27229 || test ! -s conftest.err'
27230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231 (eval $ac_try) 2>&5
27232 ac_status=$?
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest.$ac_objext'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; }; then
27242 cat >>confdefs.h <<\_ACEOF
27243 #define HAVE_UNDERSCORE_TIMEZONE 1
27244 _ACEOF
27246 echo "$as_me:$LINENO: result: yes" >&5
27247 echo "${ECHO_T}yes" >&6
27248 else
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 echo "$as_me:$LINENO: result: no" >&5
27253 echo "${ECHO_T}no" >&6
27255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27261 for ac_prog in perl
27263 # Extract the first word of "$ac_prog", so it can be a program name with args.
27264 set dummy $ac_prog; ac_word=$2
27265 echo "$as_me:$LINENO: checking for $ac_word" >&5
27266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27267 if test "${ac_cv_prog_PERL+set}" = set; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27269 else
27270 if test -n "$PERL"; then
27271 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27272 else
27273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27274 for as_dir in $PATH
27276 IFS=$as_save_IFS
27277 test -z "$as_dir" && as_dir=.
27278 for ac_exec_ext in '' $ac_executable_extensions; do
27279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27280 ac_cv_prog_PERL="$ac_prog"
27281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27282 break 2
27284 done
27285 done
27289 PERL=$ac_cv_prog_PERL
27290 if test -n "$PERL"; then
27291 echo "$as_me:$LINENO: result: $PERL" >&5
27292 echo "${ECHO_T}$PERL" >&6
27293 else
27294 echo "$as_me:$LINENO: result: no" >&5
27295 echo "${ECHO_T}no" >&6
27298 test -n "$PERL" && break
27299 done
27300 test -n "$PERL" || PERL="false"
27303 SYSDEP_SOURCES=
27304 SIGNAL_HANDLER_AUX=
27306 case "${host}" in
27307 i?86-*-linux*)
27308 SIGNAL_HANDLER=include/i386-signal.h
27310 sparc*-sun-solaris*)
27311 SIGNAL_HANDLER=include/sparc-signal.h
27313 # ia64-*)
27314 # SYSDEP_SOURCES=sysdep/ia64.c
27315 # test -d sysdep || mkdir sysdep
27316 # ;;
27317 hppa*-*-linux*)
27318 SIGNAL_HANDLER=include/pa-signal.h
27320 hppa*-hp-hpux*)
27321 SIGNAL_HANDLER=include/hppa-signal.h
27323 ia64-*-linux*)
27324 SIGNAL_HANDLER=include/dwarf2-signal.h
27326 powerpc*-*-linux*)
27327 SIGNAL_HANDLER=include/powerpc-signal.h
27329 alpha*-*-linux*)
27330 SIGNAL_HANDLER=include/dwarf2-signal.h
27332 s390*-*-linux*)
27333 SIGNAL_HANDLER=include/s390-signal.h
27335 x86_64*-*-linux*)
27336 SIGNAL_HANDLER=include/x86_64-signal.h
27337 SIGNAL_HANDLER_AUX=include/i386-signal.h
27339 sparc*-*-linux*)
27340 SIGNAL_HANDLER=include/dwarf2-signal.h
27342 sh*-*-linux*)
27343 SIGNAL_HANDLER=include/sh-signal.h
27345 *mingw*)
27346 SIGNAL_HANDLER=include/win32-signal.h
27348 mips*-*-linux*)
27349 SIGNAL_HANDLER=include/mips-signal.h
27351 m68*-*-linux*)
27352 SIGNAL_HANDLER=include/dwarf2-signal.h
27354 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27355 SIGNAL_HANDLER=include/darwin-signal.h
27358 SIGNAL_HANDLER=include/default-signal.h
27360 esac
27362 # If we're using sjlj exceptions, forget what we just learned.
27363 if test "$enable_sjlj_exceptions" = yes; then
27364 SIGNAL_HANDLER=include/default-signal.h
27365 SIGNAL_HANDLER_AUX=
27370 if test -z "$SIGNAL_HANDLER_AUX"; then
27371 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27374 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27377 if test "${multilib}" = "yes"; then
27378 multilib_arg="--enable-multilib"
27379 else
27380 multilib_arg=
27383 # See if we support thread-local storage.
27385 # Check whether --enable-tls or --disable-tls was given.
27386 if test "${enable_tls+set}" = set; then
27387 enableval="$enable_tls"
27389 case "$enableval" in
27390 yes|no) ;;
27391 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27392 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27393 { (exit 1); exit 1; }; } ;;
27394 esac
27396 else
27397 enable_tls=yes
27400 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27401 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27402 if test "${gcc_cv_have_tls+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 else
27406 if test "$cross_compiling" = yes; then
27407 if test x$gcc_no_link = xyes; then
27408 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27409 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27410 { (exit 1); exit 1; }; }
27412 cat >conftest.$ac_ext <<_ACEOF
27413 __thread int a; int b; int main() { return a = b; }
27414 _ACEOF
27415 rm -f conftest.$ac_objext conftest$ac_exeext
27416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27417 (eval $ac_link) 2>conftest.er1
27418 ac_status=$?
27419 grep -v '^ *+' conftest.er1 >conftest.err
27420 rm -f conftest.er1
27421 cat conftest.err >&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } &&
27424 { ac_try='test -z "$ac_c_werror_flag"
27425 || test ! -s conftest.err'
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest$ac_exeext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 gcc_cv_have_tls=yes
27438 else
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 gcc_cv_have_tls=no
27444 rm -f conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
27448 else
27449 cat >conftest.$ac_ext <<_ACEOF
27450 __thread int a; int b; int main() { return a = b; }
27451 _ACEOF
27452 rm -f conftest$ac_exeext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27454 (eval $ac_link) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; }; then
27463 chktls_save_LDFLAGS="$LDFLAGS"
27464 LDFLAGS="-static $LDFLAGS"
27465 if test x$gcc_no_link = xyes; then
27466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27468 { (exit 1); exit 1; }; }
27470 cat >conftest.$ac_ext <<_ACEOF
27471 int main() { return 0; }
27472 _ACEOF
27473 rm -f conftest.$ac_objext conftest$ac_exeext
27474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27475 (eval $ac_link) 2>conftest.er1
27476 ac_status=$?
27477 grep -v '^ *+' conftest.er1 >conftest.err
27478 rm -f conftest.er1
27479 cat conftest.err >&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
27482 { ac_try='test -z "$ac_c_werror_flag"
27483 || test ! -s conftest.err'
27484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485 (eval $ac_try) 2>&5
27486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest$ac_exeext'
27490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 if test "$cross_compiling" = yes; then
27496 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27497 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27499 See \`config.log' for more details." >&5
27500 echo "$as_me: error: cannot run test program while cross compiling
27501 See \`config.log' for more details." >&2;}
27502 { (exit 1); exit 1; }; }; }
27503 else
27504 cat >conftest.$ac_ext <<_ACEOF
27505 __thread int a; int b; int main() { return a = b; }
27506 _ACEOF
27507 rm -f conftest$ac_exeext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27509 (eval $ac_link) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; }; then
27518 gcc_cv_have_tls=yes
27519 else
27520 echo "$as_me: program exited with status $ac_status" >&5
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ( exit $ac_status )
27525 gcc_cv_have_tls=no
27527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27529 else
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 gcc_cv_have_tls=yes
27535 rm -f conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext conftest.$ac_ext
27537 LDFLAGS="$chktls_save_LDFLAGS"
27538 if test $gcc_cv_have_tls = yes; then
27539 chktls_save_CFLAGS="$CFLAGS"
27540 thread_CFLAGS=failed
27541 for flag in '' '-pthread' '-lpthread'; do
27542 CFLAGS="$flag $chktls_save_CFLAGS"
27543 if test x$gcc_no_link = xyes; then
27544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27546 { (exit 1); exit 1; }; }
27548 cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h. */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <pthread.h>
27555 void *g(void *d) { return NULL; }
27557 main ()
27559 pthread_t t; pthread_create(&t,NULL,g,NULL);
27561 return 0;
27563 _ACEOF
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>conftest.er1
27567 ac_status=$?
27568 grep -v '^ *+' conftest.er1 >conftest.err
27569 rm -f conftest.er1
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 thread_CFLAGS="$flag"
27587 else
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27592 rm -f conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext conftest.$ac_ext
27594 if test "X$thread_CFLAGS" != Xfailed; then
27595 break
27597 done
27598 CFLAGS="$chktls_save_CFLAGS"
27599 if test "X$thread_CFLAGS" != Xfailed; then
27600 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27601 if test "$cross_compiling" = yes; then
27602 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27603 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27605 See \`config.log' for more details." >&5
27606 echo "$as_me: error: cannot run test program while cross compiling
27607 See \`config.log' for more details." >&2;}
27608 { (exit 1); exit 1; }; }; }
27609 else
27610 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h. */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27616 #include <pthread.h>
27617 __thread int a;
27618 static int *a_in_other_thread;
27619 static void *
27620 thread_func (void *arg)
27622 a_in_other_thread = &a;
27623 return (void *)0;
27626 main ()
27628 pthread_t thread;
27629 void *thread_retval;
27630 int *a_in_main_thread;
27631 if (pthread_create (&thread, (pthread_attr_t *)0,
27632 thread_func, (void *)0))
27633 return 0;
27634 a_in_main_thread = &a;
27635 if (pthread_join (thread, &thread_retval))
27636 return 0;
27637 return (a_in_other_thread == a_in_main_thread);
27639 return 0;
27641 _ACEOF
27642 rm -f conftest$ac_exeext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27644 (eval $ac_link) 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); }; }; then
27653 gcc_cv_have_tls=yes
27654 else
27655 echo "$as_me: program exited with status $ac_status" >&5
27656 echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27659 ( exit $ac_status )
27660 gcc_cv_have_tls=no
27662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27664 CFLAGS="$chktls_save_CFLAGS"
27667 else
27668 echo "$as_me: program exited with status $ac_status" >&5
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ( exit $ac_status )
27673 gcc_cv_have_tls=no
27675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27678 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27679 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27680 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27682 cat >>confdefs.h <<\_ACEOF
27683 #define HAVE_TLS 1
27684 _ACEOF
27688 # For _Unwind_GetIPInfo.
27692 ac_ext=cc
27693 ac_cpp='$CXXCPP $CPPFLAGS'
27694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27698 ac_save_CXXFLAGS="$CXXFLAGS"
27699 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27700 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27701 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27702 if test "${gcc_cv_getipinfo+set}" = set; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27706 if test x$gcc_no_link = xyes; then
27707 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27709 { (exit 1); exit 1; }; }
27711 cat >conftest.$ac_ext <<_ACEOF
27712 /* confdefs.h. */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h. */
27717 extern "C" { extern void _Unwind_GetIPInfo(); }
27719 main ()
27721 _Unwind_GetIPInfo();
27723 return 0;
27725 _ACEOF
27726 rm -f conftest.$ac_objext conftest$ac_exeext
27727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27728 (eval $ac_link) 2>conftest.er1
27729 ac_status=$?
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } &&
27735 { ac_try='test -z "$ac_cxx_werror_flag"
27736 || test ! -s conftest.err'
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748 gcc_cv_getipinfo=yes
27749 else
27750 echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.$ac_ext >&5
27753 gcc_cv_getipinfo=no
27755 rm -f conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
27760 if test $gcc_cv_getipinfo = yes; then
27762 cat >>confdefs.h <<\_ACEOF
27763 #define HAVE_GETIPINFO 1
27764 _ACEOF
27767 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27768 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27769 CXXFLAGS="$ac_save_CXXFLAGS"
27770 ac_ext=c
27771 ac_cpp='$CPP $CPPFLAGS'
27772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27778 # See if linker supports anonymous version scripts.
27779 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27780 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27781 if test "${libjava_cv_anon_version_script+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27785 libjava_cv_anon_version_script=no
27786 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27787 echo '{ global: globalsymb*; local: *; };' > conftest.map
27788 if test x$gcc_no_link = xyes; then
27789 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27790 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27791 { (exit 1); exit 1; }; }
27793 cat >conftest.$ac_ext <<_ACEOF
27794 /* confdefs.h. */
27795 _ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27799 void globalsymbol (void) {} void localsymbol (void) {}
27801 main ()
27805 return 0;
27807 _ACEOF
27808 rm -f conftest.$ac_objext conftest$ac_exeext
27809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27810 (eval $ac_link) 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } &&
27817 { ac_try='test -z "$ac_c_werror_flag"
27818 || test ! -s conftest.err'
27819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820 (eval $ac_try) 2>&5
27821 ac_status=$?
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); }; } &&
27824 { ac_try='test -s conftest$ac_exeext'
27825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27826 (eval $ac_try) 2>&5
27827 ac_status=$?
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); }; }; then
27830 libjava_cv_anon_version_script=yes
27831 else
27832 echo "$as_me: failed program was:" >&5
27833 sed 's/^/| /' conftest.$ac_ext >&5
27836 rm -f conftest.err conftest.$ac_objext \
27837 conftest$ac_exeext conftest.$ac_ext
27838 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27841 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27842 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27845 if test "$libjava_cv_anon_version_script" = yes; then
27846 ANONVERSCRIPT_TRUE=
27847 ANONVERSCRIPT_FALSE='#'
27848 else
27849 ANONVERSCRIPT_TRUE='#'
27850 ANONVERSCRIPT_FALSE=
27854 # Check if linker supports static linking on a per library basis
27855 LD_START_STATIC_SPEC=
27856 LD_FINISH_STATIC_SPEC=
27857 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27858 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27859 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27860 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27866 here=`${PWDCMD-pwd}`
27869 # We get this from the environment.
27872 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27875 if test ${multilib} = yes; then
27876 multilib_arg="--enable-multilib"
27877 else
27878 multilib_arg=
27881 ac_config_files="$ac_config_files scripts/jar"
27883 cat >confcache <<\_ACEOF
27884 # This file is a shell script that caches the results of configure
27885 # tests run on this system so they can be shared between configure
27886 # scripts and configure runs, see configure's option --config-cache.
27887 # It is not useful on other systems. If it contains results you don't
27888 # want to keep, you may remove or edit it.
27890 # config.status only pays attention to the cache file if you give it
27891 # the --recheck option to rerun configure.
27893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27895 # following values.
27897 _ACEOF
27899 # The following way of writing the cache mishandles newlines in values,
27900 # but we know of no workaround that is simple, portable, and efficient.
27901 # So, don't put newlines in cache variables' values.
27902 # Ultrix sh set writes to stderr and can't be redirected directly,
27903 # and sets the high bit in the cache file unless we assign to the vars.
27905 (set) 2>&1 |
27906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27907 *ac_space=\ *)
27908 # `set' does not quote correctly, so add quotes (double-quote
27909 # substitution turns \\\\ into \\, and sed turns \\ into \).
27910 sed -n \
27911 "s/'/'\\\\''/g;
27912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27915 # `set' quotes correctly as required by POSIX, so do not add quotes.
27916 sed -n \
27917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27919 esac;
27921 sed '
27922 t clear
27923 : clear
27924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27925 t end
27926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27927 : end' >>confcache
27928 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27929 if test -w $cache_file; then
27930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27931 cat confcache >$cache_file
27932 else
27933 echo "not updating unwritable cache $cache_file"
27936 rm -f confcache
27938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27939 # Let make expand exec_prefix.
27940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27944 # trailing colons and then remove the whole line if VPATH becomes empty
27945 # (actually we leave an empty line to preserve line numbers).
27946 if test "x$srcdir" = x.; then
27947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27948 s/:*\$(srcdir):*/:/;
27949 s/:*\${srcdir}:*/:/;
27950 s/:*@srcdir@:*/:/;
27951 s/^\([^=]*=[ ]*\):*/\1/;
27952 s/:*$//;
27953 s/^[^=]*=[ ]*$//;
27957 DEFS=-DHAVE_CONFIG_H
27959 ac_libobjs=
27960 ac_ltlibobjs=
27961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27962 # 1. Remove the extension, and $U if already installed.
27963 ac_i=`echo "$ac_i" |
27964 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27965 # 2. Add them.
27966 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27967 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27968 done
27969 LIBOBJS=$ac_libobjs
27971 LTLIBOBJS=$ac_ltlibobjs
27974 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27975 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27976 Usually this means the macro was only invoked conditionally." >&5
27977 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27978 Usually this means the macro was only invoked conditionally." >&2;}
27979 { (exit 1); exit 1; }; }
27981 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27982 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27983 Usually this means the macro was only invoked conditionally." >&5
27984 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27985 Usually this means the macro was only invoked conditionally." >&2;}
27986 { (exit 1); exit 1; }; }
27988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27989 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27990 Usually this means the macro was only invoked conditionally." >&5
27991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27992 Usually this means the macro was only invoked conditionally." >&2;}
27993 { (exit 1); exit 1; }; }
27995 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27996 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27997 Usually this means the macro was only invoked conditionally." >&5
27998 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27999 Usually this means the macro was only invoked conditionally." >&2;}
28000 { (exit 1); exit 1; }; }
28002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28003 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28004 Usually this means the macro was only invoked conditionally." >&5
28005 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28006 Usually this means the macro was only invoked conditionally." >&2;}
28007 { (exit 1); exit 1; }; }
28009 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28010 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28011 Usually this means the macro was only invoked conditionally." >&5
28012 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28013 Usually this means the macro was only invoked conditionally." >&2;}
28014 { (exit 1); exit 1; }; }
28016 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28017 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28018 Usually this means the macro was only invoked conditionally." >&5
28019 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28020 Usually this means the macro was only invoked conditionally." >&2;}
28021 { (exit 1); exit 1; }; }
28023 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28024 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28025 Usually this means the macro was only invoked conditionally." >&5
28026 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28027 Usually this means the macro was only invoked conditionally." >&2;}
28028 { (exit 1); exit 1; }; }
28030 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28031 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28032 Usually this means the macro was only invoked conditionally." >&5
28033 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28034 Usually this means the macro was only invoked conditionally." >&2;}
28035 { (exit 1); exit 1; }; }
28037 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28038 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28039 Usually this means the macro was only invoked conditionally." >&5
28040 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28041 Usually this means the macro was only invoked conditionally." >&2;}
28042 { (exit 1); exit 1; }; }
28044 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28045 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28046 Usually this means the macro was only invoked conditionally." >&5
28047 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28048 Usually this means the macro was only invoked conditionally." >&2;}
28049 { (exit 1); exit 1; }; }
28051 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28052 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28053 Usually this means the macro was only invoked conditionally." >&5
28054 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28055 Usually this means the macro was only invoked conditionally." >&2;}
28056 { (exit 1); exit 1; }; }
28058 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28059 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28060 Usually this means the macro was only invoked conditionally." >&5
28061 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28062 Usually this means the macro was only invoked conditionally." >&2;}
28063 { (exit 1); exit 1; }; }
28065 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28066 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28067 Usually this means the macro was only invoked conditionally." >&5
28068 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28069 Usually this means the macro was only invoked conditionally." >&2;}
28070 { (exit 1); exit 1; }; }
28072 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28073 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28074 Usually this means the macro was only invoked conditionally." >&5
28075 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28076 Usually this means the macro was only invoked conditionally." >&2;}
28077 { (exit 1); exit 1; }; }
28079 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28080 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28081 Usually this means the macro was only invoked conditionally." >&5
28082 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28083 Usually this means the macro was only invoked conditionally." >&2;}
28084 { (exit 1); exit 1; }; }
28086 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28087 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28088 Usually this means the macro was only invoked conditionally." >&5
28089 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28090 Usually this means the macro was only invoked conditionally." >&2;}
28091 { (exit 1); exit 1; }; }
28093 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28094 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28095 Usually this means the macro was only invoked conditionally." >&5
28096 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28097 Usually this means the macro was only invoked conditionally." >&2;}
28098 { (exit 1); exit 1; }; }
28100 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28101 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28102 Usually this means the macro was only invoked conditionally." >&5
28103 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28104 Usually this means the macro was only invoked conditionally." >&2;}
28105 { (exit 1); exit 1; }; }
28107 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28108 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28109 Usually this means the macro was only invoked conditionally." >&5
28110 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28111 Usually this means the macro was only invoked conditionally." >&2;}
28112 { (exit 1); exit 1; }; }
28114 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28115 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28116 Usually this means the macro was only invoked conditionally." >&5
28117 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28118 Usually this means the macro was only invoked conditionally." >&2;}
28119 { (exit 1); exit 1; }; }
28121 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28122 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28123 Usually this means the macro was only invoked conditionally." >&5
28124 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28125 Usually this means the macro was only invoked conditionally." >&2;}
28126 { (exit 1); exit 1; }; }
28128 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28129 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28130 Usually this means the macro was only invoked conditionally." >&5
28131 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28132 Usually this means the macro was only invoked conditionally." >&2;}
28133 { (exit 1); exit 1; }; }
28135 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28136 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28137 Usually this means the macro was only invoked conditionally." >&5
28138 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28139 Usually this means the macro was only invoked conditionally." >&2;}
28140 { (exit 1); exit 1; }; }
28142 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28143 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28144 Usually this means the macro was only invoked conditionally." >&5
28145 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28146 Usually this means the macro was only invoked conditionally." >&2;}
28147 { (exit 1); exit 1; }; }
28149 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28150 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28151 Usually this means the macro was only invoked conditionally." >&5
28152 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28153 Usually this means the macro was only invoked conditionally." >&2;}
28154 { (exit 1); exit 1; }; }
28156 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28157 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28158 Usually this means the macro was only invoked conditionally." >&5
28159 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28160 Usually this means the macro was only invoked conditionally." >&2;}
28161 { (exit 1); exit 1; }; }
28163 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28164 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28165 Usually this means the macro was only invoked conditionally." >&5
28166 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28167 Usually this means the macro was only invoked conditionally." >&2;}
28168 { (exit 1); exit 1; }; }
28170 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28171 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28172 Usually this means the macro was only invoked conditionally." >&5
28173 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28174 Usually this means the macro was only invoked conditionally." >&2;}
28175 { (exit 1); exit 1; }; }
28177 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28178 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28179 Usually this means the macro was only invoked conditionally." >&5
28180 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28181 Usually this means the macro was only invoked conditionally." >&2;}
28182 { (exit 1); exit 1; }; }
28185 : ${CONFIG_STATUS=./config.status}
28186 ac_clean_files_save=$ac_clean_files
28187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28188 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28189 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28190 cat >$CONFIG_STATUS <<_ACEOF
28191 #! $SHELL
28192 # Generated by $as_me.
28193 # Run this file to recreate the current configuration.
28194 # Compiler output produced by configure, useful for debugging
28195 # configure, is in config.log if it exists.
28197 debug=false
28198 ac_cs_recheck=false
28199 ac_cs_silent=false
28200 SHELL=\${CONFIG_SHELL-$SHELL}
28201 _ACEOF
28203 cat >>$CONFIG_STATUS <<\_ACEOF
28204 ## --------------------- ##
28205 ## M4sh Initialization. ##
28206 ## --------------------- ##
28208 # Be Bourne compatible
28209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28210 emulate sh
28211 NULLCMD=:
28212 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28213 # is contrary to our usage. Disable this feature.
28214 alias -g '${1+"$@"}'='"$@"'
28215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28216 set -o posix
28218 DUALCASE=1; export DUALCASE # for MKS sh
28220 # Support unset when possible.
28221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28222 as_unset=unset
28223 else
28224 as_unset=false
28228 # Work around bugs in pre-3.0 UWIN ksh.
28229 $as_unset ENV MAIL MAILPATH
28230 PS1='$ '
28231 PS2='> '
28232 PS4='+ '
28234 # NLS nuisances.
28235 for as_var in \
28236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28238 LC_TELEPHONE LC_TIME
28240 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28241 eval $as_var=C; export $as_var
28242 else
28243 $as_unset $as_var
28245 done
28247 # Required to use basename.
28248 if expr a : '\(a\)' >/dev/null 2>&1; then
28249 as_expr=expr
28250 else
28251 as_expr=false
28254 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28255 as_basename=basename
28256 else
28257 as_basename=false
28261 # Name of the executable.
28262 as_me=`$as_basename "$0" ||
28263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28264 X"$0" : 'X\(//\)$' \| \
28265 X"$0" : 'X\(/\)$' \| \
28266 . : '\(.\)' 2>/dev/null ||
28267 echo X/"$0" |
28268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28269 /^X\/\(\/\/\)$/{ s//\1/; q; }
28270 /^X\/\(\/\).*/{ s//\1/; q; }
28271 s/.*/./; q'`
28274 # PATH needs CR, and LINENO needs CR and PATH.
28275 # Avoid depending upon Character Ranges.
28276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28279 as_cr_digits='0123456789'
28280 as_cr_alnum=$as_cr_Letters$as_cr_digits
28282 # The user is always right.
28283 if test "${PATH_SEPARATOR+set}" != set; then
28284 echo "#! /bin/sh" >conf$$.sh
28285 echo "exit 0" >>conf$$.sh
28286 chmod +x conf$$.sh
28287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28288 PATH_SEPARATOR=';'
28289 else
28290 PATH_SEPARATOR=:
28292 rm -f conf$$.sh
28296 as_lineno_1=$LINENO
28297 as_lineno_2=$LINENO
28298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28299 test "x$as_lineno_1" != "x$as_lineno_2" &&
28300 test "x$as_lineno_3" = "x$as_lineno_2" || {
28301 # Find who we are. Look in the path if we contain no path at all
28302 # relative or not.
28303 case $0 in
28304 *[\\/]* ) as_myself=$0 ;;
28305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28306 for as_dir in $PATH
28308 IFS=$as_save_IFS
28309 test -z "$as_dir" && as_dir=.
28310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28311 done
28314 esac
28315 # We did not find ourselves, most probably we were run as `sh COMMAND'
28316 # in which case we are not to be found in the path.
28317 if test "x$as_myself" = x; then
28318 as_myself=$0
28320 if test ! -f "$as_myself"; then
28321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28323 { (exit 1); exit 1; }; }
28325 case $CONFIG_SHELL in
28327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28330 IFS=$as_save_IFS
28331 test -z "$as_dir" && as_dir=.
28332 for as_base in sh bash ksh sh5; do
28333 case $as_dir in
28335 if ("$as_dir/$as_base" -c '
28336 as_lineno_1=$LINENO
28337 as_lineno_2=$LINENO
28338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28339 test "x$as_lineno_1" != "x$as_lineno_2" &&
28340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28341 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28342 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28343 CONFIG_SHELL=$as_dir/$as_base
28344 export CONFIG_SHELL
28345 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28346 fi;;
28347 esac
28348 done
28349 done
28351 esac
28353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28354 # uniformly replaced by the line number. The first 'sed' inserts a
28355 # line-number line before each line; the second 'sed' does the real
28356 # work. The second script uses 'N' to pair each line-number line
28357 # with the numbered line, and appends trailing '-' during
28358 # substitution so that $LINENO is not a special case at line end.
28359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28360 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28361 sed '=' <$as_myself |
28362 sed '
28364 s,$,-,
28365 : loop
28366 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28367 t loop
28368 s,-$,,
28369 s,^['$as_cr_digits']*\n,,
28370 ' >$as_me.lineno &&
28371 chmod +x $as_me.lineno ||
28372 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28373 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28374 { (exit 1); exit 1; }; }
28376 # Don't try to exec as it changes $[0], causing all sort of problems
28377 # (the dirname of $[0] is not the place where we might find the
28378 # original and so on. Autoconf is especially sensible to this).
28379 . ./$as_me.lineno
28380 # Exit status is that of the last command.
28381 exit
28385 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28386 *c*,-n*) ECHO_N= ECHO_C='
28387 ' ECHO_T=' ' ;;
28388 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28389 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28390 esac
28392 if expr a : '\(a\)' >/dev/null 2>&1; then
28393 as_expr=expr
28394 else
28395 as_expr=false
28398 rm -f conf$$ conf$$.exe conf$$.file
28399 echo >conf$$.file
28400 if ln -s conf$$.file conf$$ 2>/dev/null; then
28401 # We could just check for DJGPP; but this test a) works b) is more generic
28402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28403 if test -f conf$$.exe; then
28404 # Don't use ln at all; we don't have any links
28405 as_ln_s='cp -p'
28406 else
28407 as_ln_s='ln -s'
28409 elif ln conf$$.file conf$$ 2>/dev/null; then
28410 as_ln_s=ln
28411 else
28412 as_ln_s='cp -p'
28414 rm -f conf$$ conf$$.exe conf$$.file
28416 if mkdir -p . 2>/dev/null; then
28417 as_mkdir_p=:
28418 else
28419 test -d ./-p && rmdir ./-p
28420 as_mkdir_p=false
28423 as_executable_p="test -f"
28425 # Sed expression to map a string onto a valid CPP name.
28426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28428 # Sed expression to map a string onto a valid variable name.
28429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28432 # IFS
28433 # We need space, tab and new line, in precisely that order.
28434 as_nl='
28436 IFS=" $as_nl"
28438 # CDPATH.
28439 $as_unset CDPATH
28441 exec 6>&1
28443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28444 # report actual input values of CONFIG_FILES etc. instead of their
28445 # values after options handling. Logging --version etc. is OK.
28446 exec 5>>config.log
28448 echo
28449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28450 ## Running $as_me. ##
28451 _ASBOX
28452 } >&5
28453 cat >&5 <<_CSEOF
28455 This file was extended by libjava $as_me version-unused, which was
28456 generated by GNU Autoconf 2.59. Invocation command line was
28458 CONFIG_FILES = $CONFIG_FILES
28459 CONFIG_HEADERS = $CONFIG_HEADERS
28460 CONFIG_LINKS = $CONFIG_LINKS
28461 CONFIG_COMMANDS = $CONFIG_COMMANDS
28462 $ $0 $@
28464 _CSEOF
28465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28466 echo >&5
28467 _ACEOF
28469 # Files that config.status was made for.
28470 if test -n "$ac_config_files"; then
28471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28474 if test -n "$ac_config_headers"; then
28475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28478 if test -n "$ac_config_links"; then
28479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28482 if test -n "$ac_config_commands"; then
28483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28486 cat >>$CONFIG_STATUS <<\_ACEOF
28488 ac_cs_usage="\
28489 \`$as_me' instantiates files from templates according to the
28490 current configuration.
28492 Usage: $0 [OPTIONS] [FILE]...
28494 -h, --help print this help, then exit
28495 -V, --version print version number, then exit
28496 -q, --quiet do not print progress messages
28497 -d, --debug don't remove temporary files
28498 --recheck update $as_me by reconfiguring in the same conditions
28499 --file=FILE[:TEMPLATE]
28500 instantiate the configuration file FILE
28501 --header=FILE[:TEMPLATE]
28502 instantiate the configuration header FILE
28504 Configuration files:
28505 $config_files
28507 Configuration headers:
28508 $config_headers
28510 Configuration links:
28511 $config_links
28513 Configuration commands:
28514 $config_commands
28516 Report bugs to <bug-autoconf@gnu.org>."
28517 _ACEOF
28519 cat >>$CONFIG_STATUS <<_ACEOF
28520 ac_cs_version="\\
28521 libjava config.status version-unused
28522 configured by $0, generated by GNU Autoconf 2.59,
28523 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28525 Copyright (C) 2003 Free Software Foundation, Inc.
28526 This config.status script is free software; the Free Software Foundation
28527 gives unlimited permission to copy, distribute and modify it."
28528 srcdir=$srcdir
28529 INSTALL="$INSTALL"
28530 _ACEOF
28532 cat >>$CONFIG_STATUS <<\_ACEOF
28533 # If no file are specified by the user, then we need to provide default
28534 # value. By we need to know if files were specified by the user.
28535 ac_need_defaults=:
28536 while test $# != 0
28538 case $1 in
28539 --*=*)
28540 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28541 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28542 ac_shift=:
28545 ac_option=$1
28546 ac_optarg=$2
28547 ac_shift=shift
28549 *) # This is not an option, so the user has probably given explicit
28550 # arguments.
28551 ac_option=$1
28552 ac_need_defaults=false;;
28553 esac
28555 case $ac_option in
28556 # Handling of the options.
28557 _ACEOF
28558 cat >>$CONFIG_STATUS <<\_ACEOF
28559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28560 ac_cs_recheck=: ;;
28561 --version | --vers* | -V )
28562 echo "$ac_cs_version"; exit 0 ;;
28563 --he | --h)
28564 # Conflict between --help and --header
28565 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28566 Try \`$0 --help' for more information." >&5
28567 echo "$as_me: error: ambiguous option: $1
28568 Try \`$0 --help' for more information." >&2;}
28569 { (exit 1); exit 1; }; };;
28570 --help | --hel | -h )
28571 echo "$ac_cs_usage"; exit 0 ;;
28572 --debug | --d* | -d )
28573 debug=: ;;
28574 --file | --fil | --fi | --f )
28575 $ac_shift
28576 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28577 ac_need_defaults=false;;
28578 --header | --heade | --head | --hea )
28579 $ac_shift
28580 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28581 ac_need_defaults=false;;
28582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28584 ac_cs_silent=: ;;
28586 # This is an error.
28587 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28588 Try \`$0 --help' for more information." >&5
28589 echo "$as_me: error: unrecognized option: $1
28590 Try \`$0 --help' for more information." >&2;}
28591 { (exit 1); exit 1; }; } ;;
28593 *) ac_config_targets="$ac_config_targets $1" ;;
28595 esac
28596 shift
28597 done
28599 ac_configure_extra_args=
28601 if $ac_cs_silent; then
28602 exec 6>/dev/null
28603 ac_configure_extra_args="$ac_configure_extra_args --silent"
28606 _ACEOF
28607 cat >>$CONFIG_STATUS <<_ACEOF
28608 if \$ac_cs_recheck; then
28609 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28610 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28613 _ACEOF
28615 cat >>$CONFIG_STATUS <<_ACEOF
28617 # INIT-COMMANDS section.
28621 srcdir="$srcdir"
28622 host="$host"
28623 target="$target"
28624 with_multisubdir="$with_multisubdir"
28625 with_multisrctop="$with_multisrctop"
28626 with_target_subdir="$with_target_subdir"
28627 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28628 multi_basedir="$multi_basedir"
28629 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28630 CC="$CC"
28631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28634 # The HP-UX ksh and POSIX shell print the target directory to stdout
28635 # if CDPATH is set.
28636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28638 sed_quote_subst='$sed_quote_subst'
28639 double_quote_subst='$double_quote_subst'
28640 delay_variable_subst='$delay_variable_subst'
28641 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28642 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28643 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28644 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28645 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28646 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28647 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28648 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28649 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28650 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28651 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28652 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28653 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28654 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28655 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28656 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28657 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28658 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28659 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28660 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28661 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28662 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28663 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28664 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28665 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28666 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28667 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28668 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28669 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28670 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28671 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28672 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28673 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28674 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28675 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28676 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28677 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28678 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28679 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28680 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28681 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28682 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28684 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"`'
28685 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28686 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28687 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28688 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28689 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28690 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28691 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28692 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28693 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28694 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28695 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28696 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28697 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28698 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28699 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28700 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28701 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28702 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28703 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28704 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28705 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28706 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28707 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28708 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28709 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28710 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28711 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28712 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28713 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28714 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28715 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28716 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28717 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28718 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28719 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28720 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28721 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28722 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28723 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28724 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28725 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28726 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28727 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28728 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28729 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28730 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28731 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28732 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28733 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28734 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28735 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28736 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28737 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28738 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28739 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28740 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28741 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28742 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28743 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28744 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28745 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28746 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28747 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28748 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28749 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28750 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28751 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28752 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28753 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28754 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28755 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28756 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28757 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28758 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28759 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28760 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28761 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28762 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28763 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28764 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28765 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28766 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28767 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28768 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28769 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28770 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28771 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28772 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28773 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28774 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28775 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28776 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28777 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28778 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28779 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28780 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28781 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28782 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28783 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28784 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28785 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28786 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28787 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28788 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28789 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28790 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28791 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28792 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28793 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28794 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28795 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28796 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28797 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28798 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28799 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28800 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28801 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28802 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28803 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28804 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28805 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28806 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28807 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28808 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28809 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28810 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28811 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28812 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28813 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28814 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28815 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28816 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28817 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28818 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28819 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28820 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28821 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28822 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28823 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28824 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28825 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28826 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28827 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28828 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28829 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28830 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28831 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28832 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28833 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28834 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28835 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28836 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28837 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28838 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28839 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28840 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28841 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28842 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28843 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28844 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28845 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28846 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28847 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28848 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28850 LTCC='$LTCC'
28851 LTCFLAGS='$LTCFLAGS'
28852 compiler='$compiler_DEFAULT'
28854 # Quote evaled strings.
28855 for var in SED \
28856 GREP \
28857 EGREP \
28858 FGREP \
28859 LD \
28860 NM \
28861 LN_S \
28862 lt_SP2NL \
28863 lt_NL2SP \
28864 reload_flag \
28865 deplibs_check_method \
28866 file_magic_cmd \
28867 AR \
28868 AR_FLAGS \
28869 STRIP \
28870 RANLIB \
28871 CC \
28872 CFLAGS \
28873 compiler \
28874 lt_cv_sys_global_symbol_pipe \
28875 lt_cv_sys_global_symbol_to_cdecl \
28876 lt_cv_sys_global_symbol_to_c_name_address \
28877 SHELL \
28878 ECHO \
28879 lt_prog_compiler_no_builtin_flag \
28880 lt_prog_compiler_wl \
28881 lt_prog_compiler_pic \
28882 lt_prog_compiler_static \
28883 lt_cv_prog_compiler_c_o \
28884 need_locks \
28885 shrext_cmds \
28886 export_dynamic_flag_spec \
28887 whole_archive_flag_spec \
28888 compiler_needs_object \
28889 with_gnu_ld \
28890 allow_undefined_flag \
28891 no_undefined_flag \
28892 hardcode_libdir_flag_spec \
28893 hardcode_libdir_flag_spec_ld \
28894 hardcode_libdir_separator \
28895 fix_srcfile_path \
28896 exclude_expsyms \
28897 include_expsyms \
28898 file_list_spec \
28899 variables_saved_for_relink \
28900 libname_spec \
28901 library_names_spec \
28902 soname_spec \
28903 finish_eval \
28904 old_striplib \
28905 striplib \
28906 predep_objects \
28907 postdep_objects \
28908 predeps \
28909 postdeps \
28910 compiler_lib_search_path \
28911 LD_CXX \
28912 LD_GCJ \
28913 compiler_CXX \
28914 compiler_GCJ \
28915 lt_prog_compiler_no_builtin_flag_CXX \
28916 lt_prog_compiler_no_builtin_flag_GCJ \
28917 lt_prog_compiler_wl_CXX \
28918 lt_prog_compiler_wl_GCJ \
28919 lt_prog_compiler_pic_CXX \
28920 lt_prog_compiler_pic_GCJ \
28921 lt_prog_compiler_static_CXX \
28922 lt_prog_compiler_static_GCJ \
28923 lt_cv_prog_compiler_c_o_CXX \
28924 lt_cv_prog_compiler_c_o_GCJ \
28925 export_dynamic_flag_spec_CXX \
28926 export_dynamic_flag_spec_GCJ \
28927 whole_archive_flag_spec_CXX \
28928 whole_archive_flag_spec_GCJ \
28929 compiler_needs_object_CXX \
28930 compiler_needs_object_GCJ \
28931 with_gnu_ld_CXX \
28932 with_gnu_ld_GCJ \
28933 allow_undefined_flag_CXX \
28934 allow_undefined_flag_GCJ \
28935 no_undefined_flag_CXX \
28936 no_undefined_flag_GCJ \
28937 hardcode_libdir_flag_spec_CXX \
28938 hardcode_libdir_flag_spec_GCJ \
28939 hardcode_libdir_flag_spec_ld_CXX \
28940 hardcode_libdir_flag_spec_ld_GCJ \
28941 hardcode_libdir_separator_CXX \
28942 hardcode_libdir_separator_GCJ \
28943 fix_srcfile_path_CXX \
28944 fix_srcfile_path_GCJ \
28945 exclude_expsyms_CXX \
28946 exclude_expsyms_GCJ \
28947 include_expsyms_CXX \
28948 include_expsyms_GCJ \
28949 file_list_spec_CXX \
28950 file_list_spec_GCJ \
28951 predep_objects_CXX \
28952 predep_objects_GCJ \
28953 postdep_objects_CXX \
28954 postdep_objects_GCJ \
28955 predeps_CXX \
28956 predeps_GCJ \
28957 postdeps_CXX \
28958 postdeps_GCJ \
28959 compiler_lib_search_path_CXX \
28960 compiler_lib_search_path_GCJ; do
28961 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28962 *[\\\\\\\`\\"\\\$]*)
28963 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28966 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28968 esac
28969 done
28971 # Double-quote double-evaled strings.
28972 for var in reload_cmds \
28973 old_postinstall_cmds \
28974 old_postuninstall_cmds \
28975 old_archive_cmds \
28976 extract_expsyms_cmds \
28977 old_archive_from_new_cmds \
28978 old_archive_from_expsyms_cmds \
28979 archive_cmds \
28980 archive_expsym_cmds \
28981 module_cmds \
28982 module_expsym_cmds \
28983 export_symbols_cmds \
28984 prelink_cmds \
28985 postinstall_cmds \
28986 postuninstall_cmds \
28987 finish_cmds \
28988 sys_lib_search_path_spec \
28989 sys_lib_dlsearch_path_spec \
28990 old_archive_cmds_CXX \
28991 old_archive_cmds_GCJ \
28992 old_archive_from_new_cmds_CXX \
28993 old_archive_from_new_cmds_GCJ \
28994 old_archive_from_expsyms_cmds_CXX \
28995 old_archive_from_expsyms_cmds_GCJ \
28996 archive_cmds_CXX \
28997 archive_cmds_GCJ \
28998 archive_expsym_cmds_CXX \
28999 archive_expsym_cmds_GCJ \
29000 module_cmds_CXX \
29001 module_cmds_GCJ \
29002 module_expsym_cmds_CXX \
29003 module_expsym_cmds_GCJ \
29004 export_symbols_cmds_CXX \
29005 export_symbols_cmds_GCJ \
29006 prelink_cmds_CXX \
29007 prelink_cmds_GCJ; do
29008 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29009 *[\\\\\\\`\\"\\\$]*)
29010 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29013 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29015 esac
29016 done
29018 # Fix-up fallback echo if it was mangled by the above quoting rules.
29019 case \$lt_ECHO in
29020 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29022 esac
29024 ac_aux_dir='$ac_aux_dir'
29025 xsi_shell='$xsi_shell'
29026 lt_shell_append='$lt_shell_append'
29028 # See if we are running on zsh, and set the options which allow our
29029 # commands through without removal of \ escapes INIT.
29030 if test -n "\${ZSH_VERSION+set}" ; then
29031 setopt NO_GLOB_SUBST
29035 PACKAGE='$PACKAGE'
29036 VERSION='$VERSION'
29037 TIMESTAMP='$TIMESTAMP'
29038 RM='$RM'
29039 ofile='$ofile'
29048 _ACEOF
29052 cat >>$CONFIG_STATUS <<\_ACEOF
29053 for ac_config_target in $ac_config_targets
29055 case "$ac_config_target" in
29056 # Handling of arguments.
29057 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29058 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29059 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29060 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29061 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29062 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29063 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29064 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29065 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29066 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29067 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29068 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29069 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29070 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29071 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29072 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29073 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29074 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29075 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29076 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29077 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29078 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29079 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29080 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29081 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29082 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29083 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29084 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29085 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29086 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29089 { (exit 1); exit 1; }; };;
29090 esac
29091 done
29093 # If the user did not use the arguments to specify the items to instantiate,
29094 # then the envvar interface is used. Set only those that are not.
29095 # We use the long form for the default assignment because of an extremely
29096 # bizarre bug on SunOS 4.1.3.
29097 if $ac_need_defaults; then
29098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29100 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29104 # Have a temporary directory for convenience. Make it in the build tree
29105 # simply because there is no reason to put it here, and in addition,
29106 # creating and moving files from /tmp can sometimes cause problems.
29107 # Create a temporary directory, and hook for its removal unless debugging.
29108 $debug ||
29110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29111 trap '{ (exit 1); exit 1; }' 1 2 13 15
29114 # Create a (secure) tmp directory for tmp files.
29117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29118 test -n "$tmp" && test -d "$tmp"
29119 } ||
29121 tmp=./confstat$$-$RANDOM
29122 (umask 077 && mkdir $tmp)
29123 } ||
29125 echo "$me: cannot create a temporary directory in ." >&2
29126 { (exit 1); exit 1; }
29129 _ACEOF
29131 cat >>$CONFIG_STATUS <<_ACEOF
29134 # CONFIG_FILES section.
29137 # No need to generate the scripts if there are no CONFIG_FILES.
29138 # This happens for instance when ./config.status config.h
29139 if test -n "\$CONFIG_FILES"; then
29140 # Protect against being on the right side of a sed subst in config.status.
29141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29143 s,@SHELL@,$SHELL,;t t
29144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29150 s,@exec_prefix@,$exec_prefix,;t t
29151 s,@prefix@,$prefix,;t t
29152 s,@program_transform_name@,$program_transform_name,;t t
29153 s,@bindir@,$bindir,;t t
29154 s,@sbindir@,$sbindir,;t t
29155 s,@libexecdir@,$libexecdir,;t t
29156 s,@datadir@,$datadir,;t t
29157 s,@sysconfdir@,$sysconfdir,;t t
29158 s,@sharedstatedir@,$sharedstatedir,;t t
29159 s,@localstatedir@,$localstatedir,;t t
29160 s,@libdir@,$libdir,;t t
29161 s,@includedir@,$includedir,;t t
29162 s,@oldincludedir@,$oldincludedir,;t t
29163 s,@infodir@,$infodir,;t t
29164 s,@mandir@,$mandir,;t t
29165 s,@build_alias@,$build_alias,;t t
29166 s,@host_alias@,$host_alias,;t t
29167 s,@target_alias@,$target_alias,;t t
29168 s,@DEFS@,$DEFS,;t t
29169 s,@ECHO_C@,$ECHO_C,;t t
29170 s,@ECHO_N@,$ECHO_N,;t t
29171 s,@ECHO_T@,$ECHO_T,;t t
29172 s,@LIBS@,$LIBS,;t t
29173 s,@build@,$build,;t t
29174 s,@build_cpu@,$build_cpu,;t t
29175 s,@build_vendor@,$build_vendor,;t t
29176 s,@build_os@,$build_os,;t t
29177 s,@build_libsubdir@,$build_libsubdir,;t t
29178 s,@build_subdir@,$build_subdir,;t t
29179 s,@host_subdir@,$host_subdir,;t t
29180 s,@target_subdir@,$target_subdir,;t t
29181 s,@multi_basedir@,$multi_basedir,;t t
29182 s,@host@,$host,;t t
29183 s,@host_cpu@,$host_cpu,;t t
29184 s,@host_vendor@,$host_vendor,;t t
29185 s,@host_os@,$host_os,;t t
29186 s,@target@,$target,;t t
29187 s,@target_cpu@,$target_cpu,;t t
29188 s,@target_vendor@,$target_vendor,;t t
29189 s,@target_os@,$target_os,;t t
29190 s,@target_noncanonical@,$target_noncanonical,;t t
29191 s,@LN_S@,$LN_S,;t t
29192 s,@mkinstalldirs@,$mkinstalldirs,;t t
29193 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29194 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29195 s,@CC@,$CC,;t t
29196 s,@ac_ct_CC@,$ac_ct_CC,;t t
29197 s,@EXEEXT@,$EXEEXT,;t t
29198 s,@OBJEXT@,$OBJEXT,;t t
29199 s,@CXX@,$CXX,;t t
29200 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29201 s,@CFLAGS@,$CFLAGS,;t t
29202 s,@CXXFLAGS@,$CXXFLAGS,;t t
29203 s,@LDFLAGS@,$LDFLAGS,;t t
29204 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29205 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29206 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29207 s,@CYGPATH_W@,$CYGPATH_W,;t t
29208 s,@PACKAGE@,$PACKAGE,;t t
29209 s,@VERSION@,$VERSION,;t t
29210 s,@ACLOCAL@,$ACLOCAL,;t t
29211 s,@AUTOCONF@,$AUTOCONF,;t t
29212 s,@AUTOMAKE@,$AUTOMAKE,;t t
29213 s,@AUTOHEADER@,$AUTOHEADER,;t t
29214 s,@MAKEINFO@,$MAKEINFO,;t t
29215 s,@install_sh@,$install_sh,;t t
29216 s,@STRIP@,$STRIP,;t t
29217 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29218 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29219 s,@mkdir_p@,$mkdir_p,;t t
29220 s,@AWK@,$AWK,;t t
29221 s,@SET_MAKE@,$SET_MAKE,;t t
29222 s,@am__leading_dot@,$am__leading_dot,;t t
29223 s,@AMTAR@,$AMTAR,;t t
29224 s,@am__tar@,$am__tar,;t t
29225 s,@am__untar@,$am__untar,;t t
29226 s,@DEPDIR@,$DEPDIR,;t t
29227 s,@am__include@,$am__include,;t t
29228 s,@am__quote@,$am__quote,;t t
29229 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29230 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29231 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29232 s,@CCDEPMODE@,$CCDEPMODE,;t t
29233 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29234 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29235 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29236 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29237 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29238 s,@AS@,$AS,;t t
29239 s,@ac_ct_AS@,$ac_ct_AS,;t t
29240 s,@LD@,$LD,;t t
29241 s,@ac_ct_LD@,$ac_ct_LD,;t t
29242 s,@AR@,$AR,;t t
29243 s,@ac_ct_AR@,$ac_ct_AR,;t t
29244 s,@RANLIB@,$RANLIB,;t t
29245 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29246 s,@JAR@,$JAR,;t t
29247 s,@ZIP@,$ZIP,;t t
29248 s,@UNZIP@,$UNZIP,;t t
29249 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29250 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29251 s,@MAINT@,$MAINT,;t t
29252 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29253 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29254 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29255 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29256 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29257 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29258 s,@TOOLKIT@,$TOOLKIT,;t t
29259 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29260 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29261 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29262 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29263 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29264 s,@GCJH@,$GCJH,;t t
29265 s,@host_exeext@,$host_exeext,;t t
29266 s,@INCLTDL@,$INCLTDL,;t t
29267 s,@LIBLTDL@,$LIBLTDL,;t t
29268 s,@DIRLTDL@,$DIRLTDL,;t t
29269 s,@LIBTOOL@,$LIBTOOL,;t t
29270 s,@SED@,$SED,;t t
29271 s,@EGREP@,$EGREP,;t t
29272 s,@FGREP@,$FGREP,;t t
29273 s,@GREP@,$GREP,;t t
29274 s,@DUMPBIN@,$DUMPBIN,;t t
29275 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29276 s,@NM@,$NM,;t t
29277 s,@lt_ECHO@,$lt_ECHO,;t t
29278 s,@CPP@,$CPP,;t t
29279 s,@CPPFLAGS@,$CPPFLAGS,;t t
29280 s,@CXXCPP@,$CXXCPP,;t t
29281 s,@GCJ@,$GCJ,;t t
29282 s,@GCJFLAGS@,$GCJFLAGS,;t t
29283 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29284 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29285 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29286 s,@subdirs@,$subdirs,;t t
29287 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29288 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29289 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29290 s,@ECJ_JAR@,$ECJ_JAR,;t t
29291 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29292 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29293 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29294 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29295 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29296 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29297 s,@JAVA_HOME@,$JAVA_HOME,;t t
29298 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29299 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29300 s,@INTERPRETER@,$INTERPRETER,;t t
29301 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29302 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29303 s,@LIBFFI@,$LIBFFI,;t t
29304 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29305 s,@PLATFORM@,$PLATFORM,;t t
29306 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29307 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29308 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29309 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29310 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29311 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29312 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29313 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29314 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29315 s,@X_CFLAGS@,$X_CFLAGS,;t t
29316 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29317 s,@X_LIBS@,$X_LIBS,;t t
29318 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29319 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29320 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29321 s,@extra_ldflags@,$extra_ldflags,;t t
29322 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29323 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29324 s,@GCLIBS@,$GCLIBS,;t t
29325 s,@GCINCS@,$GCINCS,;t t
29326 s,@GCDEPS@,$GCDEPS,;t t
29327 s,@GCSPEC@,$GCSPEC,;t t
29328 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29329 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29330 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29331 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29332 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29333 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29334 s,@THREADLIBS@,$THREADLIBS,;t t
29335 s,@THREADINCS@,$THREADINCS,;t t
29336 s,@THREADDEPS@,$THREADDEPS,;t t
29337 s,@THREADSPEC@,$THREADSPEC,;t t
29338 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29339 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29340 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29341 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29342 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29343 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29344 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29345 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29346 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29347 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29348 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29349 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29350 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29351 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29352 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29353 s,@LIBICONV@,$LIBICONV,;t t
29354 s,@LTLIBICONV@,$LTLIBICONV,;t t
29355 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29356 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29357 s,@GTK_LIBS@,$GTK_LIBS,;t t
29358 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29359 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29360 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29361 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29362 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29363 s,@ZLIBS@,$ZLIBS,;t t
29364 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29365 s,@ZINCS@,$ZINCS,;t t
29366 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29367 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29368 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29369 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29370 s,@IEEESPEC@,$IEEESPEC,;t t
29371 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29372 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29373 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29374 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29375 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29376 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29377 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29378 s,@toolexecdir@,$toolexecdir,;t t
29379 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29380 s,@toolexeclibdir@,$toolexeclibdir,;t t
29381 s,@GCJVERSION@,$GCJVERSION,;t t
29382 s,@dbexecdir@,$dbexecdir,;t t
29383 s,@gxx_include_dir@,$gxx_include_dir,;t t
29384 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29385 s,@PERL@,$PERL,;t t
29386 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29387 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29388 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29389 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29390 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29391 s,@here@,$here,;t t
29392 s,@LIBOBJS@,$LIBOBJS,;t t
29393 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29394 CEOF
29396 _ACEOF
29398 cat >>$CONFIG_STATUS <<\_ACEOF
29399 # Split the substitutions into bite-sized pieces for seds with
29400 # small command number limits, like on Digital OSF/1 and HP-UX.
29401 ac_max_sed_lines=48
29402 ac_sed_frag=1 # Number of current file.
29403 ac_beg=1 # First line for current file.
29404 ac_end=$ac_max_sed_lines # Line after last line for current file.
29405 ac_more_lines=:
29406 ac_sed_cmds=
29407 while $ac_more_lines; do
29408 if test $ac_beg -gt 1; then
29409 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29410 else
29411 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29413 if test ! -s $tmp/subs.frag; then
29414 ac_more_lines=false
29415 else
29416 # The purpose of the label and of the branching condition is to
29417 # speed up the sed processing (if there are no `@' at all, there
29418 # is no need to browse any of the substitutions).
29419 # These are the two extra sed commands mentioned above.
29420 (echo ':t
29421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29422 if test -z "$ac_sed_cmds"; then
29423 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29424 else
29425 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29427 ac_sed_frag=`expr $ac_sed_frag + 1`
29428 ac_beg=$ac_end
29429 ac_end=`expr $ac_end + $ac_max_sed_lines`
29431 done
29432 if test -z "$ac_sed_cmds"; then
29433 ac_sed_cmds=cat
29435 fi # test -n "$CONFIG_FILES"
29437 _ACEOF
29438 cat >>$CONFIG_STATUS <<\_ACEOF
29439 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29441 case $ac_file in
29442 - | *:- | *:-:* ) # input from stdin
29443 cat >$tmp/stdin
29444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29448 * ) ac_file_in=$ac_file.in ;;
29449 esac
29451 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29454 X"$ac_file" : 'X\(//\)[^/]' \| \
29455 X"$ac_file" : 'X\(//\)$' \| \
29456 X"$ac_file" : 'X\(/\)' \| \
29457 . : '\(.\)' 2>/dev/null ||
29458 echo X"$ac_file" |
29459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29461 /^X\(\/\/\)$/{ s//\1/; q; }
29462 /^X\(\/\).*/{ s//\1/; q; }
29463 s/.*/./; q'`
29464 { if $as_mkdir_p; then
29465 mkdir -p "$ac_dir"
29466 else
29467 as_dir="$ac_dir"
29468 as_dirs=
29469 while test ! -d "$as_dir"; do
29470 as_dirs="$as_dir $as_dirs"
29471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29473 X"$as_dir" : 'X\(//\)[^/]' \| \
29474 X"$as_dir" : 'X\(//\)$' \| \
29475 X"$as_dir" : 'X\(/\)' \| \
29476 . : '\(.\)' 2>/dev/null ||
29477 echo X"$as_dir" |
29478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29480 /^X\(\/\/\)$/{ s//\1/; q; }
29481 /^X\(\/\).*/{ s//\1/; q; }
29482 s/.*/./; q'`
29483 done
29484 test ! -n "$as_dirs" || mkdir $as_dirs
29485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29487 { (exit 1); exit 1; }; }; }
29489 ac_builddir=.
29491 if test "$ac_dir" != .; then
29492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29493 # A "../" for each directory in $ac_dir_suffix.
29494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29495 else
29496 ac_dir_suffix= ac_top_builddir=
29499 case $srcdir in
29500 .) # No --srcdir option. We are building in place.
29501 ac_srcdir=.
29502 if test -z "$ac_top_builddir"; then
29503 ac_top_srcdir=.
29504 else
29505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29506 fi ;;
29507 [\\/]* | ?:[\\/]* ) # Absolute path.
29508 ac_srcdir=$srcdir$ac_dir_suffix;
29509 ac_top_srcdir=$srcdir ;;
29510 *) # Relative path.
29511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29512 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29513 esac
29515 # Do not use `cd foo && pwd` to compute absolute paths, because
29516 # the directories may not exist.
29517 case `pwd` in
29518 .) ac_abs_builddir="$ac_dir";;
29520 case "$ac_dir" in
29521 .) ac_abs_builddir=`pwd`;;
29522 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29523 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29524 esac;;
29525 esac
29526 case $ac_abs_builddir in
29527 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29529 case ${ac_top_builddir}. in
29530 .) ac_abs_top_builddir=$ac_abs_builddir;;
29531 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29532 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29533 esac;;
29534 esac
29535 case $ac_abs_builddir in
29536 .) ac_abs_srcdir=$ac_srcdir;;
29538 case $ac_srcdir in
29539 .) ac_abs_srcdir=$ac_abs_builddir;;
29540 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29541 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29542 esac;;
29543 esac
29544 case $ac_abs_builddir in
29545 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29547 case $ac_top_srcdir in
29548 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29549 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29550 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29551 esac;;
29552 esac
29555 case $INSTALL in
29556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29557 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29558 esac
29560 if test x"$ac_file" != x-; then
29561 { echo "$as_me:$LINENO: creating $ac_file" >&5
29562 echo "$as_me: creating $ac_file" >&6;}
29563 rm -f "$ac_file"
29565 # Let's still pretend it is `configure' which instantiates (i.e., don't
29566 # use $as_me), people would be surprised to read:
29567 # /* config.h. Generated by config.status. */
29568 if test x"$ac_file" = x-; then
29569 configure_input=
29570 else
29571 configure_input="$ac_file. "
29573 configure_input=$configure_input"Generated from `echo $ac_file_in |
29574 sed 's,.*/,,'` by configure."
29576 # First look for the input files in the build tree, otherwise in the
29577 # src tree.
29578 ac_file_inputs=`IFS=:
29579 for f in $ac_file_in; do
29580 case $f in
29581 -) echo $tmp/stdin ;;
29582 [\\/$]*)
29583 # Absolute (can't be DOS-style, as IFS=:)
29584 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29585 echo "$as_me: error: cannot find input file: $f" >&2;}
29586 { (exit 1); exit 1; }; }
29587 echo "$f";;
29588 *) # Relative
29589 if test -f "$f"; then
29590 # Build tree
29591 echo "$f"
29592 elif test -f "$srcdir/$f"; then
29593 # Source tree
29594 echo "$srcdir/$f"
29595 else
29596 # /dev/null tree
29597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29598 echo "$as_me: error: cannot find input file: $f" >&2;}
29599 { (exit 1); exit 1; }; }
29600 fi;;
29601 esac
29602 done` || { (exit 1); exit 1; }
29603 _ACEOF
29604 cat >>$CONFIG_STATUS <<_ACEOF
29605 sed "$ac_vpsub
29606 $extrasub
29607 _ACEOF
29608 cat >>$CONFIG_STATUS <<\_ACEOF
29610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29611 s,@configure_input@,$configure_input,;t t
29612 s,@srcdir@,$ac_srcdir,;t t
29613 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29614 s,@top_srcdir@,$ac_top_srcdir,;t t
29615 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29616 s,@builddir@,$ac_builddir,;t t
29617 s,@abs_builddir@,$ac_abs_builddir,;t t
29618 s,@top_builddir@,$ac_top_builddir,;t t
29619 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29620 s,@INSTALL@,$ac_INSTALL,;t t
29621 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29622 rm -f $tmp/stdin
29623 if test x"$ac_file" != x-; then
29624 mv $tmp/out $ac_file
29625 else
29626 cat $tmp/out
29627 rm -f $tmp/out
29630 # Run the commands associated with the file.
29631 case $ac_file in
29632 scripts/jar ) chmod +x scripts/jar ;;
29633 esac
29634 done
29635 _ACEOF
29636 cat >>$CONFIG_STATUS <<\_ACEOF
29639 # CONFIG_HEADER section.
29642 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29643 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29645 # ac_d sets the value in "#define NAME VALUE" lines.
29646 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29647 ac_dB='[ ].*$,\1#\2'
29648 ac_dC=' '
29649 ac_dD=',;t'
29650 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29651 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29652 ac_uB='$,\1#\2define\3'
29653 ac_uC=' '
29654 ac_uD=',;t'
29656 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29658 case $ac_file in
29659 - | *:- | *:-:* ) # input from stdin
29660 cat >$tmp/stdin
29661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29665 * ) ac_file_in=$ac_file.in ;;
29666 esac
29668 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29669 echo "$as_me: creating $ac_file" >&6;}
29671 # First look for the input files in the build tree, otherwise in the
29672 # src tree.
29673 ac_file_inputs=`IFS=:
29674 for f in $ac_file_in; do
29675 case $f in
29676 -) echo $tmp/stdin ;;
29677 [\\/$]*)
29678 # Absolute (can't be DOS-style, as IFS=:)
29679 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29680 echo "$as_me: error: cannot find input file: $f" >&2;}
29681 { (exit 1); exit 1; }; }
29682 # Do quote $f, to prevent DOS paths from being IFS'd.
29683 echo "$f";;
29684 *) # Relative
29685 if test -f "$f"; then
29686 # Build tree
29687 echo "$f"
29688 elif test -f "$srcdir/$f"; then
29689 # Source tree
29690 echo "$srcdir/$f"
29691 else
29692 # /dev/null tree
29693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29694 echo "$as_me: error: cannot find input file: $f" >&2;}
29695 { (exit 1); exit 1; }; }
29696 fi;;
29697 esac
29698 done` || { (exit 1); exit 1; }
29699 # Remove the trailing spaces.
29700 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29702 _ACEOF
29704 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29705 # `conftest.undefs', that substitutes the proper values into
29706 # config.h.in to produce config.h. The first handles `#define'
29707 # templates, and the second `#undef' templates.
29708 # And first: Protect against being on the right side of a sed subst in
29709 # config.status. Protect against being in an unquoted here document
29710 # in config.status.
29711 rm -f conftest.defines conftest.undefs
29712 # Using a here document instead of a string reduces the quoting nightmare.
29713 # Putting comments in sed scripts is not portable.
29715 # `end' is used to avoid that the second main sed command (meant for
29716 # 0-ary CPP macros) applies to n-ary macro definitions.
29717 # See the Autoconf documentation for `clear'.
29718 cat >confdef2sed.sed <<\_ACEOF
29719 s/[\\&,]/\\&/g
29720 s,[\\$`],\\&,g
29721 t clear
29722 : clear
29723 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29724 t end
29725 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29726 : end
29727 _ACEOF
29728 # If some macros were called several times there might be several times
29729 # the same #defines, which is useless. Nevertheless, we may not want to
29730 # sort them, since we want the *last* AC-DEFINE to be honored.
29731 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29732 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29733 rm -f confdef2sed.sed
29735 # This sed command replaces #undef with comments. This is necessary, for
29736 # example, in the case of _POSIX_SOURCE, which is predefined and required
29737 # on some systems where configure will not decide to define it.
29738 cat >>conftest.undefs <<\_ACEOF
29739 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29740 _ACEOF
29742 # Break up conftest.defines because some shells have a limit on the size
29743 # of here documents, and old seds have small limits too (100 cmds).
29744 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29745 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29746 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29747 echo ' :' >>$CONFIG_STATUS
29748 rm -f conftest.tail
29749 while grep . conftest.defines >/dev/null
29751 # Write a limited-size here document to $tmp/defines.sed.
29752 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29753 # Speed up: don't consider the non `#define' lines.
29754 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29755 # Work around the forget-to-reset-the-flag bug.
29756 echo 't clr' >>$CONFIG_STATUS
29757 echo ': clr' >>$CONFIG_STATUS
29758 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29759 echo 'CEOF
29760 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29761 rm -f $tmp/in
29762 mv $tmp/out $tmp/in
29763 ' >>$CONFIG_STATUS
29764 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29765 rm -f conftest.defines
29766 mv conftest.tail conftest.defines
29767 done
29768 rm -f conftest.defines
29769 echo ' fi # grep' >>$CONFIG_STATUS
29770 echo >>$CONFIG_STATUS
29772 # Break up conftest.undefs because some shells have a limit on the size
29773 # of here documents, and old seds have small limits too (100 cmds).
29774 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29775 rm -f conftest.tail
29776 while grep . conftest.undefs >/dev/null
29778 # Write a limited-size here document to $tmp/undefs.sed.
29779 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29780 # Speed up: don't consider the non `#undef'
29781 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29782 # Work around the forget-to-reset-the-flag bug.
29783 echo 't clr' >>$CONFIG_STATUS
29784 echo ': clr' >>$CONFIG_STATUS
29785 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29786 echo 'CEOF
29787 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29788 rm -f $tmp/in
29789 mv $tmp/out $tmp/in
29790 ' >>$CONFIG_STATUS
29791 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29792 rm -f conftest.undefs
29793 mv conftest.tail conftest.undefs
29794 done
29795 rm -f conftest.undefs
29797 cat >>$CONFIG_STATUS <<\_ACEOF
29798 # Let's still pretend it is `configure' which instantiates (i.e., don't
29799 # use $as_me), people would be surprised to read:
29800 # /* config.h. Generated by config.status. */
29801 if test x"$ac_file" = x-; then
29802 echo "/* Generated by configure. */" >$tmp/config.h
29803 else
29804 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29806 cat $tmp/in >>$tmp/config.h
29807 rm -f $tmp/in
29808 if test x"$ac_file" != x-; then
29809 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29811 echo "$as_me: $ac_file is unchanged" >&6;}
29812 else
29813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29815 X"$ac_file" : 'X\(//\)[^/]' \| \
29816 X"$ac_file" : 'X\(//\)$' \| \
29817 X"$ac_file" : 'X\(/\)' \| \
29818 . : '\(.\)' 2>/dev/null ||
29819 echo X"$ac_file" |
29820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29822 /^X\(\/\/\)$/{ s//\1/; q; }
29823 /^X\(\/\).*/{ s//\1/; q; }
29824 s/.*/./; q'`
29825 { if $as_mkdir_p; then
29826 mkdir -p "$ac_dir"
29827 else
29828 as_dir="$ac_dir"
29829 as_dirs=
29830 while test ! -d "$as_dir"; do
29831 as_dirs="$as_dir $as_dirs"
29832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29834 X"$as_dir" : 'X\(//\)[^/]' \| \
29835 X"$as_dir" : 'X\(//\)$' \| \
29836 X"$as_dir" : 'X\(/\)' \| \
29837 . : '\(.\)' 2>/dev/null ||
29838 echo X"$as_dir" |
29839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29841 /^X\(\/\/\)$/{ s//\1/; q; }
29842 /^X\(\/\).*/{ s//\1/; q; }
29843 s/.*/./; q'`
29844 done
29845 test ! -n "$as_dirs" || mkdir $as_dirs
29846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29848 { (exit 1); exit 1; }; }; }
29850 rm -f $ac_file
29851 mv $tmp/config.h $ac_file
29853 else
29854 cat $tmp/config.h
29855 rm -f $tmp/config.h
29857 # Compute $ac_file's index in $config_headers.
29858 _am_stamp_count=1
29859 for _am_header in $config_headers :; do
29860 case $_am_header in
29861 $ac_file | $ac_file:* )
29862 break ;;
29864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29865 esac
29866 done
29867 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29868 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29869 X$ac_file : 'X\(//\)[^/]' \| \
29870 X$ac_file : 'X\(//\)$' \| \
29871 X$ac_file : 'X\(/\)' \| \
29872 . : '\(.\)' 2>/dev/null ||
29873 echo X$ac_file |
29874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29876 /^X\(\/\/\)$/{ s//\1/; q; }
29877 /^X\(\/\).*/{ s//\1/; q; }
29878 s/.*/./; q'`/stamp-h$_am_stamp_count
29879 done
29880 _ACEOF
29881 cat >>$CONFIG_STATUS <<\_ACEOF
29884 # CONFIG_LINKS section.
29887 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29888 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29889 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29891 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29892 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29894 if test ! -r $srcdir/$ac_source; then
29895 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29896 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29897 { (exit 1); exit 1; }; }
29899 rm -f $ac_dest
29901 # Make relative symlinks.
29902 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29903 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29904 X"$ac_dest" : 'X\(//\)[^/]' \| \
29905 X"$ac_dest" : 'X\(//\)$' \| \
29906 X"$ac_dest" : 'X\(/\)' \| \
29907 . : '\(.\)' 2>/dev/null ||
29908 echo X"$ac_dest" |
29909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29911 /^X\(\/\/\)$/{ s//\1/; q; }
29912 /^X\(\/\).*/{ s//\1/; q; }
29913 s/.*/./; q'`
29914 { if $as_mkdir_p; then
29915 mkdir -p "$ac_dest_dir"
29916 else
29917 as_dir="$ac_dest_dir"
29918 as_dirs=
29919 while test ! -d "$as_dir"; do
29920 as_dirs="$as_dir $as_dirs"
29921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29923 X"$as_dir" : 'X\(//\)[^/]' \| \
29924 X"$as_dir" : 'X\(//\)$' \| \
29925 X"$as_dir" : 'X\(/\)' \| \
29926 . : '\(.\)' 2>/dev/null ||
29927 echo X"$as_dir" |
29928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29930 /^X\(\/\/\)$/{ s//\1/; q; }
29931 /^X\(\/\).*/{ s//\1/; q; }
29932 s/.*/./; q'`
29933 done
29934 test ! -n "$as_dirs" || mkdir $as_dirs
29935 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29936 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29937 { (exit 1); exit 1; }; }; }
29939 ac_builddir=.
29941 if test "$ac_dest_dir" != .; then
29942 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29943 # A "../" for each directory in $ac_dir_suffix.
29944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29945 else
29946 ac_dir_suffix= ac_top_builddir=
29949 case $srcdir in
29950 .) # No --srcdir option. We are building in place.
29951 ac_srcdir=.
29952 if test -z "$ac_top_builddir"; then
29953 ac_top_srcdir=.
29954 else
29955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29956 fi ;;
29957 [\\/]* | ?:[\\/]* ) # Absolute path.
29958 ac_srcdir=$srcdir$ac_dir_suffix;
29959 ac_top_srcdir=$srcdir ;;
29960 *) # Relative path.
29961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29963 esac
29965 # Do not use `cd foo && pwd` to compute absolute paths, because
29966 # the directories may not exist.
29967 case `pwd` in
29968 .) ac_abs_builddir="$ac_dest_dir";;
29970 case "$ac_dest_dir" in
29971 .) ac_abs_builddir=`pwd`;;
29972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29973 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29974 esac;;
29975 esac
29976 case $ac_abs_builddir in
29977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29979 case ${ac_top_builddir}. in
29980 .) ac_abs_top_builddir=$ac_abs_builddir;;
29981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29983 esac;;
29984 esac
29985 case $ac_abs_builddir in
29986 .) ac_abs_srcdir=$ac_srcdir;;
29988 case $ac_srcdir in
29989 .) ac_abs_srcdir=$ac_abs_builddir;;
29990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29992 esac;;
29993 esac
29994 case $ac_abs_builddir in
29995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29997 case $ac_top_srcdir in
29998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30001 esac;;
30002 esac
30005 case $srcdir in
30006 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30007 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30008 esac
30010 # Try a symlink, then a hard link, then a copy.
30011 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30012 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30013 cp -p $srcdir/$ac_source $ac_dest ||
30014 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30015 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30016 { (exit 1); exit 1; }; }
30017 done
30018 _ACEOF
30019 cat >>$CONFIG_STATUS <<\_ACEOF
30022 # CONFIG_COMMANDS section.
30024 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30025 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30026 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30027 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30028 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30029 X"$ac_dest" : 'X\(//\)[^/]' \| \
30030 X"$ac_dest" : 'X\(//\)$' \| \
30031 X"$ac_dest" : 'X\(/\)' \| \
30032 . : '\(.\)' 2>/dev/null ||
30033 echo X"$ac_dest" |
30034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30036 /^X\(\/\/\)$/{ s//\1/; q; }
30037 /^X\(\/\).*/{ s//\1/; q; }
30038 s/.*/./; q'`
30039 { if $as_mkdir_p; then
30040 mkdir -p "$ac_dir"
30041 else
30042 as_dir="$ac_dir"
30043 as_dirs=
30044 while test ! -d "$as_dir"; do
30045 as_dirs="$as_dir $as_dirs"
30046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30048 X"$as_dir" : 'X\(//\)[^/]' \| \
30049 X"$as_dir" : 'X\(//\)$' \| \
30050 X"$as_dir" : 'X\(/\)' \| \
30051 . : '\(.\)' 2>/dev/null ||
30052 echo X"$as_dir" |
30053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30055 /^X\(\/\/\)$/{ s//\1/; q; }
30056 /^X\(\/\).*/{ s//\1/; q; }
30057 s/.*/./; q'`
30058 done
30059 test ! -n "$as_dirs" || mkdir $as_dirs
30060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30062 { (exit 1); exit 1; }; }; }
30064 ac_builddir=.
30066 if test "$ac_dir" != .; then
30067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30068 # A "../" for each directory in $ac_dir_suffix.
30069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30070 else
30071 ac_dir_suffix= ac_top_builddir=
30074 case $srcdir in
30075 .) # No --srcdir option. We are building in place.
30076 ac_srcdir=.
30077 if test -z "$ac_top_builddir"; then
30078 ac_top_srcdir=.
30079 else
30080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30081 fi ;;
30082 [\\/]* | ?:[\\/]* ) # Absolute path.
30083 ac_srcdir=$srcdir$ac_dir_suffix;
30084 ac_top_srcdir=$srcdir ;;
30085 *) # Relative path.
30086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30088 esac
30090 # Do not use `cd foo && pwd` to compute absolute paths, because
30091 # the directories may not exist.
30092 case `pwd` in
30093 .) ac_abs_builddir="$ac_dir";;
30095 case "$ac_dir" in
30096 .) ac_abs_builddir=`pwd`;;
30097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30099 esac;;
30100 esac
30101 case $ac_abs_builddir in
30102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30104 case ${ac_top_builddir}. in
30105 .) ac_abs_top_builddir=$ac_abs_builddir;;
30106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30108 esac;;
30109 esac
30110 case $ac_abs_builddir in
30111 .) ac_abs_srcdir=$ac_srcdir;;
30113 case $ac_srcdir in
30114 .) ac_abs_srcdir=$ac_abs_builddir;;
30115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30117 esac;;
30118 esac
30119 case $ac_abs_builddir in
30120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30122 case $ac_top_srcdir in
30123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30126 esac;;
30127 esac
30130 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30131 echo "$as_me: executing $ac_dest commands" >&6;}
30132 case $ac_dest in
30133 default-1 )
30134 # Only add multilib support code if we just rebuilt the top-level
30135 # Makefile.
30136 case " $CONFIG_FILES " in
30137 *" Makefile "*)
30138 ac_file=Makefile . ${multi_basedir}/config-ml.in
30140 esac ;;
30141 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30142 # Strip MF so we end up with the name of the file.
30143 mf=`echo "$mf" | sed -e 's/:.*$//'`
30144 # Check whether this is an Automake generated Makefile or not.
30145 # We used to match only the files named `Makefile.in', but
30146 # some people rename them; so instead we look at the file content.
30147 # Grep'ing the first line is not enough: some people post-process
30148 # each Makefile.in and add a new line on top of each file to say so.
30149 # So let's grep whole file.
30150 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30151 dirpart=`(dirname "$mf") 2>/dev/null ||
30152 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30153 X"$mf" : 'X\(//\)[^/]' \| \
30154 X"$mf" : 'X\(//\)$' \| \
30155 X"$mf" : 'X\(/\)' \| \
30156 . : '\(.\)' 2>/dev/null ||
30157 echo X"$mf" |
30158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30160 /^X\(\/\/\)$/{ s//\1/; q; }
30161 /^X\(\/\).*/{ s//\1/; q; }
30162 s/.*/./; q'`
30163 else
30164 continue
30166 # Extract the definition of DEPDIR, am__include, and am__quote
30167 # from the Makefile without running `make'.
30168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30169 test -z "$DEPDIR" && continue
30170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30171 test -z "am__include" && continue
30172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30173 # When using ansi2knr, U may be empty or an underscore; expand it
30174 U=`sed -n 's/^U = //p' < "$mf"`
30175 # Find all dependency output files, they are included files with
30176 # $(DEPDIR) in their names. We invoke sed twice because it is the
30177 # simplest approach to changing $(DEPDIR) to its actual value in the
30178 # expansion.
30179 for file in `sed -n "
30180 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30181 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30182 # Make sure the directory exists.
30183 test -f "$dirpart/$file" && continue
30184 fdir=`(dirname "$file") 2>/dev/null ||
30185 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30186 X"$file" : 'X\(//\)[^/]' \| \
30187 X"$file" : 'X\(//\)$' \| \
30188 X"$file" : 'X\(/\)' \| \
30189 . : '\(.\)' 2>/dev/null ||
30190 echo X"$file" |
30191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30193 /^X\(\/\/\)$/{ s//\1/; q; }
30194 /^X\(\/\).*/{ s//\1/; q; }
30195 s/.*/./; q'`
30196 { if $as_mkdir_p; then
30197 mkdir -p $dirpart/$fdir
30198 else
30199 as_dir=$dirpart/$fdir
30200 as_dirs=
30201 while test ! -d "$as_dir"; do
30202 as_dirs="$as_dir $as_dirs"
30203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30205 X"$as_dir" : 'X\(//\)[^/]' \| \
30206 X"$as_dir" : 'X\(//\)$' \| \
30207 X"$as_dir" : 'X\(/\)' \| \
30208 . : '\(.\)' 2>/dev/null ||
30209 echo X"$as_dir" |
30210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30212 /^X\(\/\/\)$/{ s//\1/; q; }
30213 /^X\(\/\).*/{ s//\1/; q; }
30214 s/.*/./; q'`
30215 done
30216 test ! -n "$as_dirs" || mkdir $as_dirs
30217 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30218 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30219 { (exit 1); exit 1; }; }; }
30221 # echo "creating $dirpart/$file"
30222 echo '# dummy' > "$dirpart/$file"
30223 done
30224 done
30226 libtool )
30228 # See if we are running on zsh, and set the options which allow our
30229 # commands through without removal of \ escapes.
30230 if test -n "${ZSH_VERSION+set}" ; then
30231 setopt NO_GLOB_SUBST
30234 cfgfile="${ofile}T"
30235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30236 $RM "$cfgfile"
30238 cat <<_LT_EOF >> "$cfgfile"
30239 #! $SHELL
30241 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30242 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30244 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30246 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30247 # 2006, 2007 Free Software Foundation, Inc.
30249 # This file is part of GNU Libtool:
30250 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30252 # This program is free software; you can redistribute it and/or modify
30253 # it under the terms of the GNU General Public License as published by
30254 # the Free Software Foundation; either version 2 of the License, or
30255 # (at your option) any later version.
30257 # This program is distributed in the hope that it will be useful, but
30258 # WITHOUT ANY WARRANTY; without even the implied warranty of
30259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30260 # General Public License for more details.
30262 # You should have received a copy of the GNU General Public License
30263 # along with this program; if not, a copy can be downloaded from
30264 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30265 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30266 # MA 02110-1301, USA.
30268 # As a special exception to the GNU General Public License, if you
30269 # distribute this file as part of a program that contains a
30270 # configuration script generated by Autoconf, you may include it under
30271 # the same distribution terms that you use for the rest of that program.
30274 # The names of the tagged configurations supported by this script.
30275 available_tags="CXX GCJ "
30277 # ### BEGIN LIBTOOL CONFIG
30279 # Which release of libtool.m4 was used?
30280 macro_version=$macro_version
30281 macro_revision=$macro_revision
30283 # Whether or not to build shared libraries.
30284 build_libtool_libs=$enable_shared
30286 # Whether or not to build static libraries.
30287 build_old_libs=$enable_static
30289 # What type of objects to build.
30290 pic_mode=$pic_mode
30292 # Whether or not to optimize for fast installation.
30293 fast_install=$enable_fast_install
30295 # The host system.
30296 host_alias=$host_alias
30297 host=$host
30298 host_os=$host_os
30300 # The build system.
30301 build_alias=$build_alias
30302 build=$build
30303 build_os=$build_os
30305 # A sed program that does not truncate output.
30306 SED=$lt_SED
30308 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30309 Xsed="\$SED -e 1s/^X//"
30311 # A grep program that handles long lines.
30312 GREP=$lt_GREP
30314 # An ERE matcher.
30315 EGREP=$lt_EGREP
30317 # A literal string matcher.
30318 FGREP=$lt_FGREP
30320 # A BSD- or MS-compatible name lister.
30321 NM=$lt_NM
30323 # Whether we need soft or hard links.
30324 LN_S=$lt_LN_S
30326 # What is the maximum length of a command?
30327 max_cmd_len=$max_cmd_len
30329 # Object file suffix (normally "o").
30330 objext=$ac_objext
30332 # Executable file suffix (normally "").
30333 exeext=$exeext
30335 # whether the shell understands "unset".
30336 lt_unset=$lt_unset
30338 # turn spaces into newlines.
30339 SP2NL=$lt_lt_SP2NL
30341 # turn newlines into spaces.
30342 NL2SP=$lt_lt_NL2SP
30344 # How to create reloadable object files.
30345 reload_flag=$lt_reload_flag
30346 reload_cmds=$lt_reload_cmds
30348 # Method to check whether dependent libraries are shared objects.
30349 deplibs_check_method=$lt_deplibs_check_method
30351 # Command to use when deplibs_check_method == "file_magic".
30352 file_magic_cmd=$lt_file_magic_cmd
30354 # The archiver.
30355 AR=$lt_AR
30356 AR_FLAGS=$lt_AR_FLAGS
30358 # A symbol stripping program.
30359 STRIP=$lt_STRIP
30361 # Commands used to install an old-style archive.
30362 RANLIB=$lt_RANLIB
30363 old_postinstall_cmds=$lt_old_postinstall_cmds
30364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30366 # A C compiler.
30367 LTCC=$lt_CC
30369 # LTCC compiler flags.
30370 LTCFLAGS=$lt_CFLAGS
30372 # Take the output of nm and produce a listing of raw symbols and C names.
30373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30375 # Transform the output of nm in a proper C declaration.
30376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30378 # Transform the output of nm in a C name address pair.
30379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30381 # The name of the directory that contains temporary libtool files.
30382 objdir=$objdir
30384 # Shell to use when invoking shell scripts.
30385 SHELL=$lt_SHELL
30387 # An echo program that does not interpret backslashes.
30388 ECHO=$lt_ECHO
30390 # Used to examine libraries when file_magic_cmd begins with "file".
30391 MAGIC_CMD=$MAGIC_CMD
30393 # Must we lock files when doing compilation?
30394 need_locks=$lt_need_locks
30396 # Old archive suffix (normally "a").
30397 libext=$libext
30399 # Shared library suffix (normally ".so").
30400 shrext_cmds=$lt_shrext_cmds
30402 # The commands to extract the exported symbol list from a shared archive.
30403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30405 # Variables whose values should be saved in libtool wrapper scripts and
30406 # restored at link time.
30407 variables_saved_for_relink=$lt_variables_saved_for_relink
30409 # Do we need the "lib" prefix for modules?
30410 need_lib_prefix=$need_lib_prefix
30412 # Do we need a version for libraries?
30413 need_version=$need_version
30415 # Library versioning type.
30416 version_type=$version_type
30418 # Shared library runtime path variable.
30419 runpath_var=$runpath_var
30421 # Shared library path variable.
30422 shlibpath_var=$shlibpath_var
30424 # Is shlibpath searched before the hard-coded library search path?
30425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30427 # Format of library name prefix.
30428 libname_spec=$lt_libname_spec
30430 # List of archive names. First name is the real one, the rest are links.
30431 # The last name is the one that the linker finds with -lNAME
30432 library_names_spec=$lt_library_names_spec
30434 # The coded name of the library, if different from the real name.
30435 soname_spec=$lt_soname_spec
30437 # Command to use after installation of a shared archive.
30438 postinstall_cmds=$lt_postinstall_cmds
30440 # Command to use after uninstallation of a shared archive.
30441 postuninstall_cmds=$lt_postuninstall_cmds
30443 # Commands used to finish a libtool library installation in a directory.
30444 finish_cmds=$lt_finish_cmds
30446 # As "finish_cmds", except a single script fragment to be evaled but
30447 # not shown.
30448 finish_eval=$lt_finish_eval
30450 # Whether we should hardcode library paths into libraries.
30451 hardcode_into_libs=$hardcode_into_libs
30453 # Compile-time system search path for libraries.
30454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30456 # Run-time system search path for libraries.
30457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30459 # Whether dlopen is supported.
30460 dlopen_support=$enable_dlopen
30462 # Whether dlopen of programs is supported.
30463 dlopen_self=$enable_dlopen_self
30465 # Whether dlopen of statically linked programs is supported.
30466 dlopen_self_static=$enable_dlopen_self_static
30468 # Commands to strip libraries.
30469 old_striplib=$lt_old_striplib
30470 striplib=$lt_striplib
30473 # The linker used to build libraries.
30474 LD=$lt_LD
30476 # Commands used to build an old-style archive.
30477 old_archive_cmds=$lt_old_archive_cmds
30479 # A language specific compiler.
30480 CC=$lt_compiler
30482 # Is the compiler the GNU compiler?
30483 with_gcc=$GCC
30485 # Compiler flag to turn off builtin functions.
30486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30488 # How to pass a linker flag through the compiler.
30489 wl=$lt_lt_prog_compiler_wl
30491 # Additional compiler flags for building library objects.
30492 pic_flag=$lt_lt_prog_compiler_pic
30494 # Compiler flag to prevent dynamic linking.
30495 link_static_flag=$lt_lt_prog_compiler_static
30497 # Does compiler simultaneously support -c and -o options?
30498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30500 # Whether or not to add -lc for building shared libraries.
30501 build_libtool_need_lc=$archive_cmds_need_lc
30503 # Whether or not to disallow shared libs when runtime libs are static.
30504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30506 # Compiler flag to allow reflexive dlopens.
30507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30509 # Compiler flag to generate shared objects directly from archives.
30510 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30512 # Whether the compiler copes with passing no objects directly.
30513 compiler_needs_object=$lt_compiler_needs_object
30515 # Create an old-style archive from a shared archive.
30516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30518 # Create a temporary old-style archive to link instead of a shared archive.
30519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30521 # Commands used to build a shared archive.
30522 archive_cmds=$lt_archive_cmds
30523 archive_expsym_cmds=$lt_archive_expsym_cmds
30525 # Commands used to build a loadable module if different from building
30526 # a shared archive.
30527 module_cmds=$lt_module_cmds
30528 module_expsym_cmds=$lt_module_expsym_cmds
30530 # Whether we are building with GNU ld or not.
30531 with_gnu_ld=$lt_with_gnu_ld
30533 # Flag that allows shared libraries with undefined symbols to be built.
30534 allow_undefined_flag=$lt_allow_undefined_flag
30536 # Flag that enforces no undefined symbols.
30537 no_undefined_flag=$lt_no_undefined_flag
30539 # Flag to hardcode \$libdir into a binary during linking.
30540 # This must work even if \$libdir does not exist
30541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30543 # If ld is used when linking, flag to hardcode \$libdir into a binary
30544 # during linking. This must work even if \$libdir does not exist.
30545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30547 # Whether we need a single "-rpath" flag with a separated argument.
30548 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30551 # DIR into the resulting binary.
30552 hardcode_direct=$hardcode_direct
30554 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30555 # DIR into the resulting binary and the resulting library dependency is
30556 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30557 # library is relocated.
30558 hardcode_direct_absolute=$hardcode_direct_absolute
30560 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30561 # into the resulting binary.
30562 hardcode_minus_L=$hardcode_minus_L
30564 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30565 # into the resulting binary.
30566 hardcode_shlibpath_var=$hardcode_shlibpath_var
30568 # Set to "yes" if building a shared library automatically hardcodes DIR
30569 # into the library and all subsequent libraries and executables linked
30570 # against it.
30571 hardcode_automatic=$hardcode_automatic
30573 # Set to yes if linker adds runtime paths of dependent libraries
30574 # to runtime path list.
30575 inherit_rpath=$inherit_rpath
30577 # Whether libtool must link a program against all its dependency libraries.
30578 link_all_deplibs=$link_all_deplibs
30580 # Fix the shell variable \$srcfile for the compiler.
30581 fix_srcfile_path=$lt_fix_srcfile_path
30583 # Set to "yes" if exported symbols are required.
30584 always_export_symbols=$always_export_symbols
30586 # The commands to list exported symbols.
30587 export_symbols_cmds=$lt_export_symbols_cmds
30589 # Symbols that should not be listed in the preloaded symbols.
30590 exclude_expsyms=$lt_exclude_expsyms
30592 # Symbols that must always be exported.
30593 include_expsyms=$lt_include_expsyms
30595 # Commands necessary for linking programs (against libraries) with templates.
30596 prelink_cmds=$lt_prelink_cmds
30598 # Specify filename containing input files.
30599 file_list_spec=$lt_file_list_spec
30601 # How to hardcode a shared library path into an executable.
30602 hardcode_action=$hardcode_action
30604 # Dependencies to place before and after the objects being linked to
30605 # create a shared library.
30606 predep_objects=$lt_predep_objects
30607 postdep_objects=$lt_postdep_objects
30608 predeps=$lt_predeps
30609 postdeps=$lt_postdeps
30611 # The library search path used internally by the compiler when linking
30612 # a shared library.
30613 compiler_lib_search_path=$lt_compiler_lib_search_path
30615 # ### END LIBTOOL CONFIG
30617 _LT_EOF
30619 case $host_os in
30620 aix3*)
30621 cat <<\_LT_EOF >> "$cfgfile"
30622 # AIX sometimes has problems with the GCC collect2 program. For some
30623 # reason, if we set the COLLECT_NAMES environment variable, the problems
30624 # vanish in a puff of smoke.
30625 if test "X${COLLECT_NAMES+set}" != Xset; then
30626 COLLECT_NAMES=
30627 export COLLECT_NAMES
30629 _LT_EOF
30631 esac
30634 ltmain="$ac_aux_dir/ltmain.sh"
30637 # We use sed instead of cat because bash on DJGPP gets confused if
30638 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30639 # text mode, it properly converts lines to CR/LF. This bash problem
30640 # is reportedly fixed, but why not run on old versions too?
30641 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30642 || (rm -f "$cfgfile"; exit 1)
30644 case $xsi_shell in
30645 yes)
30646 cat << \_LT_EOF >> "$cfgfile"
30647 # func_dirname file append nondir_replacement
30648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30649 # otherwise set result to NONDIR_REPLACEMENT.
30650 func_dirname ()
30652 case ${1} in
30653 */*) func_dirname_result="${1%/*}${2}" ;;
30654 * ) func_dirname_result="${3}" ;;
30655 esac
30658 # func_basename file
30659 func_basename ()
30661 func_basename_result="${1##*/}"
30664 # func_stripname prefix suffix name
30665 # strip PREFIX and SUFFIX off of NAME.
30666 # PREFIX and SUFFIX must not contain globbing or regex special
30667 # characters, hashes, percent signs, but SUFFIX may contain a leading
30668 # dot (in which case that matches only a dot).
30669 func_stripname ()
30671 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30672 # positional parameters, so assign one to ordinary parameter first.
30673 func_stripname_result=${3}
30674 func_stripname_result=${func_stripname_result#"${1}"}
30675 func_stripname_result=${func_stripname_result%"${2}"}
30678 # func_opt_split
30679 func_opt_split ()
30681 func_opt_split_opt=${1%%=*}
30682 func_opt_split_arg=${1#*=}
30685 # func_lo2o object
30686 func_lo2o ()
30688 case ${1} in
30689 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30690 *) func_lo2o_result=${1} ;;
30691 esac
30693 _LT_EOF
30695 *) # Bourne compatible functions.
30696 cat << \_LT_EOF >> "$cfgfile"
30697 # func_dirname file append nondir_replacement
30698 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30699 # otherwise set result to NONDIR_REPLACEMENT.
30700 func_dirname ()
30702 # Extract subdirectory from the argument.
30703 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30704 if test "X$func_dirname_result" = "X${1}"; then
30705 func_dirname_result="${3}"
30706 else
30707 func_dirname_result="$func_dirname_result${2}"
30711 # func_basename file
30712 func_basename ()
30714 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30717 # func_stripname prefix suffix name
30718 # strip PREFIX and SUFFIX off of NAME.
30719 # PREFIX and SUFFIX must not contain globbing or regex special
30720 # characters, hashes, percent signs, but SUFFIX may contain a leading
30721 # dot (in which case that matches only a dot).
30722 # func_strip_suffix prefix name
30723 func_stripname ()
30725 case ${2} in
30726 .*) func_stripname_result=`$ECHO "X${3}" \
30727 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30728 *) func_stripname_result=`$ECHO "X${3}" \
30729 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30730 esac
30733 # sed scripts:
30734 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30735 my_sed_long_arg='1s/^-[^=]*=//'
30737 # func_opt_split
30738 func_opt_split ()
30740 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30741 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30744 # func_lo2o object
30745 func_lo2o ()
30747 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30749 _LT_EOF
30750 esac
30752 case $lt_shell_append in
30753 yes)
30754 cat << \_LT_EOF >> "$cfgfile"
30756 # func_append var value
30757 # Append VALUE to the end of shell variable VAR.
30758 func_append ()
30760 eval "$1+=\$2"
30762 _LT_EOF
30765 cat << \_LT_EOF >> "$cfgfile"
30767 # func_append var value
30768 # Append VALUE to the end of shell variable VAR.
30769 func_append ()
30771 eval "$1=\$$1\$2"
30773 _LT_EOF
30775 esac
30778 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30779 || (rm -f "$cfgfile"; exit 1)
30781 mv -f "$cfgfile" "$ofile" ||
30782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30783 chmod +x "$ofile"
30786 cat <<_LT_EOF >> "$ofile"
30788 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30790 # The linker used to build libraries.
30791 LD=$lt_LD_CXX
30793 # Commands used to build an old-style archive.
30794 old_archive_cmds=$lt_old_archive_cmds_CXX
30796 # A language specific compiler.
30797 CC=$lt_compiler_CXX
30799 # Is the compiler the GNU compiler?
30800 with_gcc=$GCC_CXX
30802 # Compiler flag to turn off builtin functions.
30803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30805 # How to pass a linker flag through the compiler.
30806 wl=$lt_lt_prog_compiler_wl_CXX
30808 # Additional compiler flags for building library objects.
30809 pic_flag=$lt_lt_prog_compiler_pic_CXX
30811 # Compiler flag to prevent dynamic linking.
30812 link_static_flag=$lt_lt_prog_compiler_static_CXX
30814 # Does compiler simultaneously support -c and -o options?
30815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30817 # Whether or not to add -lc for building shared libraries.
30818 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30820 # Whether or not to disallow shared libs when runtime libs are static.
30821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30823 # Compiler flag to allow reflexive dlopens.
30824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30826 # Compiler flag to generate shared objects directly from archives.
30827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30829 # Whether the compiler copes with passing no objects directly.
30830 compiler_needs_object=$lt_compiler_needs_object_CXX
30832 # Create an old-style archive from a shared archive.
30833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30835 # Create a temporary old-style archive to link instead of a shared archive.
30836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30838 # Commands used to build a shared archive.
30839 archive_cmds=$lt_archive_cmds_CXX
30840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30842 # Commands used to build a loadable module if different from building
30843 # a shared archive.
30844 module_cmds=$lt_module_cmds_CXX
30845 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30847 # Whether we are building with GNU ld or not.
30848 with_gnu_ld=$lt_with_gnu_ld_CXX
30850 # Flag that allows shared libraries with undefined symbols to be built.
30851 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30853 # Flag that enforces no undefined symbols.
30854 no_undefined_flag=$lt_no_undefined_flag_CXX
30856 # Flag to hardcode \$libdir into a binary during linking.
30857 # This must work even if \$libdir does not exist
30858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30860 # If ld is used when linking, flag to hardcode \$libdir into a binary
30861 # during linking. This must work even if \$libdir does not exist.
30862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30864 # Whether we need a single "-rpath" flag with a separated argument.
30865 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30868 # DIR into the resulting binary.
30869 hardcode_direct=$hardcode_direct_CXX
30871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30872 # DIR into the resulting binary and the resulting library dependency is
30873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30874 # library is relocated.
30875 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30878 # into the resulting binary.
30879 hardcode_minus_L=$hardcode_minus_L_CXX
30881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30882 # into the resulting binary.
30883 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30885 # Set to "yes" if building a shared library automatically hardcodes DIR
30886 # into the library and all subsequent libraries and executables linked
30887 # against it.
30888 hardcode_automatic=$hardcode_automatic_CXX
30890 # Set to yes if linker adds runtime paths of dependent libraries
30891 # to runtime path list.
30892 inherit_rpath=$inherit_rpath_CXX
30894 # Whether libtool must link a program against all its dependency libraries.
30895 link_all_deplibs=$link_all_deplibs_CXX
30897 # Fix the shell variable \$srcfile for the compiler.
30898 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30900 # Set to "yes" if exported symbols are required.
30901 always_export_symbols=$always_export_symbols_CXX
30903 # The commands to list exported symbols.
30904 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30906 # Symbols that should not be listed in the preloaded symbols.
30907 exclude_expsyms=$lt_exclude_expsyms_CXX
30909 # Symbols that must always be exported.
30910 include_expsyms=$lt_include_expsyms_CXX
30912 # Commands necessary for linking programs (against libraries) with templates.
30913 prelink_cmds=$lt_prelink_cmds_CXX
30915 # Specify filename containing input files.
30916 file_list_spec=$lt_file_list_spec_CXX
30918 # How to hardcode a shared library path into an executable.
30919 hardcode_action=$hardcode_action_CXX
30921 # Dependencies to place before and after the objects being linked to
30922 # create a shared library.
30923 predep_objects=$lt_predep_objects_CXX
30924 postdep_objects=$lt_postdep_objects_CXX
30925 predeps=$lt_predeps_CXX
30926 postdeps=$lt_postdeps_CXX
30928 # The library search path used internally by the compiler when linking
30929 # a shared library.
30930 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30932 # ### END LIBTOOL TAG CONFIG: CXX
30933 _LT_EOF
30936 cat <<_LT_EOF >> "$ofile"
30938 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30940 # The linker used to build libraries.
30941 LD=$lt_LD_GCJ
30943 # Commands used to build an old-style archive.
30944 old_archive_cmds=$lt_old_archive_cmds_GCJ
30946 # A language specific compiler.
30947 CC=$lt_compiler_GCJ
30949 # Is the compiler the GNU compiler?
30950 with_gcc=$GCC_GCJ
30952 # Compiler flag to turn off builtin functions.
30953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30955 # How to pass a linker flag through the compiler.
30956 wl=$lt_lt_prog_compiler_wl_GCJ
30958 # Additional compiler flags for building library objects.
30959 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30961 # Compiler flag to prevent dynamic linking.
30962 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30964 # Does compiler simultaneously support -c and -o options?
30965 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30967 # Whether or not to add -lc for building shared libraries.
30968 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30970 # Whether or not to disallow shared libs when runtime libs are static.
30971 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30973 # Compiler flag to allow reflexive dlopens.
30974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30976 # Compiler flag to generate shared objects directly from archives.
30977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30979 # Whether the compiler copes with passing no objects directly.
30980 compiler_needs_object=$lt_compiler_needs_object_GCJ
30982 # Create an old-style archive from a shared archive.
30983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30985 # Create a temporary old-style archive to link instead of a shared archive.
30986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30988 # Commands used to build a shared archive.
30989 archive_cmds=$lt_archive_cmds_GCJ
30990 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30992 # Commands used to build a loadable module if different from building
30993 # a shared archive.
30994 module_cmds=$lt_module_cmds_GCJ
30995 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30997 # Whether we are building with GNU ld or not.
30998 with_gnu_ld=$lt_with_gnu_ld_GCJ
31000 # Flag that allows shared libraries with undefined symbols to be built.
31001 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31003 # Flag that enforces no undefined symbols.
31004 no_undefined_flag=$lt_no_undefined_flag_GCJ
31006 # Flag to hardcode \$libdir into a binary during linking.
31007 # This must work even if \$libdir does not exist
31008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31010 # If ld is used when linking, flag to hardcode \$libdir into a binary
31011 # during linking. This must work even if \$libdir does not exist.
31012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31014 # Whether we need a single "-rpath" flag with a separated argument.
31015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31017 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31018 # DIR into the resulting binary.
31019 hardcode_direct=$hardcode_direct_GCJ
31021 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31022 # DIR into the resulting binary and the resulting library dependency is
31023 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31024 # library is relocated.
31025 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31027 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31028 # into the resulting binary.
31029 hardcode_minus_L=$hardcode_minus_L_GCJ
31031 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31032 # into the resulting binary.
31033 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31035 # Set to "yes" if building a shared library automatically hardcodes DIR
31036 # into the library and all subsequent libraries and executables linked
31037 # against it.
31038 hardcode_automatic=$hardcode_automatic_GCJ
31040 # Set to yes if linker adds runtime paths of dependent libraries
31041 # to runtime path list.
31042 inherit_rpath=$inherit_rpath_GCJ
31044 # Whether libtool must link a program against all its dependency libraries.
31045 link_all_deplibs=$link_all_deplibs_GCJ
31047 # Fix the shell variable \$srcfile for the compiler.
31048 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31050 # Set to "yes" if exported symbols are required.
31051 always_export_symbols=$always_export_symbols_GCJ
31053 # The commands to list exported symbols.
31054 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31056 # Symbols that should not be listed in the preloaded symbols.
31057 exclude_expsyms=$lt_exclude_expsyms_GCJ
31059 # Symbols that must always be exported.
31060 include_expsyms=$lt_include_expsyms_GCJ
31062 # Commands necessary for linking programs (against libraries) with templates.
31063 prelink_cmds=$lt_prelink_cmds_GCJ
31065 # Specify filename containing input files.
31066 file_list_spec=$lt_file_list_spec_GCJ
31068 # How to hardcode a shared library path into an executable.
31069 hardcode_action=$hardcode_action_GCJ
31071 # Dependencies to place before and after the objects being linked to
31072 # create a shared library.
31073 predep_objects=$lt_predep_objects_GCJ
31074 postdep_objects=$lt_postdep_objects_GCJ
31075 predeps=$lt_predeps_GCJ
31076 postdeps=$lt_postdeps_GCJ
31078 # The library search path used internally by the compiler when linking
31079 # a shared library.
31080 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31082 # ### END LIBTOOL TAG CONFIG: GCJ
31083 _LT_EOF
31086 esac
31087 done
31088 _ACEOF
31090 cat >>$CONFIG_STATUS <<\_ACEOF
31092 { (exit 0); exit 0; }
31093 _ACEOF
31094 chmod +x $CONFIG_STATUS
31095 ac_clean_files=$ac_clean_files_save
31098 # configure is writing to config.log, and then calls config.status.
31099 # config.status does its own redirection, appending to config.log.
31100 # Unfortunately, on DOS this fails, as config.log is still kept open
31101 # by configure, so config.status won't be able to write to it; its
31102 # output is simply discarded. So we exec the FD to /dev/null,
31103 # effectively closing config.log, so it can be properly (re)opened and
31104 # appended to by config.status. When coming back to configure, we
31105 # need to make the FD available again.
31106 if test "$no_create" != yes; then
31107 ac_cs_success=:
31108 ac_config_status_args=
31109 test "$silent" = yes &&
31110 ac_config_status_args="$ac_config_status_args --quiet"
31111 exec 5>/dev/null
31112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31113 exec 5>>config.log
31114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31115 # would make configure fail if this is the last instruction.
31116 $ac_cs_success || { (exit 1); exit 1; }
31120 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31122 if test "$no_recursion" != yes; then
31124 # Remove --cache-file and --srcdir arguments so they do not pile up.
31125 ac_sub_configure_args=
31126 ac_prev=
31127 eval "set x $ac_configure_args"
31128 shift
31129 for ac_arg
31131 if test -n "$ac_prev"; then
31132 ac_prev=
31133 continue
31135 case $ac_arg in
31136 -cache-file | --cache-file | --cache-fil | --cache-fi \
31137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31138 ac_prev=cache_file ;;
31139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31141 | --c=*)
31143 --config-cache | -C)
31145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31146 ac_prev=srcdir ;;
31147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31150 ac_prev=prefix ;;
31151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31154 case $ac_arg in
31155 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31156 esac
31157 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31158 esac
31159 done
31161 # Always prepend --prefix to ensure using the same prefix
31162 # in subdir configurations.
31163 ac_arg="--prefix=$prefix"
31164 case $ac_arg in
31165 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31166 esac
31167 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31169 ac_popdir=`pwd`
31170 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31172 # Do not complain, so a configure script can configure whichever
31173 # parts of a large source tree are present.
31174 test -d "$srcdir/$ac_dir" || continue
31176 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31177 echo "$as_me: configuring in $ac_dir" >&6;}
31178 { if $as_mkdir_p; then
31179 mkdir -p "$ac_dir"
31180 else
31181 as_dir="$ac_dir"
31182 as_dirs=
31183 while test ! -d "$as_dir"; do
31184 as_dirs="$as_dir $as_dirs"
31185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31187 X"$as_dir" : 'X\(//\)[^/]' \| \
31188 X"$as_dir" : 'X\(//\)$' \| \
31189 X"$as_dir" : 'X\(/\)' \| \
31190 . : '\(.\)' 2>/dev/null ||
31191 echo X"$as_dir" |
31192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31194 /^X\(\/\/\)$/{ s//\1/; q; }
31195 /^X\(\/\).*/{ s//\1/; q; }
31196 s/.*/./; q'`
31197 done
31198 test ! -n "$as_dirs" || mkdir $as_dirs
31199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31201 { (exit 1); exit 1; }; }; }
31203 ac_builddir=.
31205 if test "$ac_dir" != .; then
31206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31207 # A "../" for each directory in $ac_dir_suffix.
31208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31209 else
31210 ac_dir_suffix= ac_top_builddir=
31213 case $srcdir in
31214 .) # No --srcdir option. We are building in place.
31215 ac_srcdir=.
31216 if test -z "$ac_top_builddir"; then
31217 ac_top_srcdir=.
31218 else
31219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31220 fi ;;
31221 [\\/]* | ?:[\\/]* ) # Absolute path.
31222 ac_srcdir=$srcdir$ac_dir_suffix;
31223 ac_top_srcdir=$srcdir ;;
31224 *) # Relative path.
31225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31227 esac
31229 # Do not use `cd foo && pwd` to compute absolute paths, because
31230 # the directories may not exist.
31231 case `pwd` in
31232 .) ac_abs_builddir="$ac_dir";;
31234 case "$ac_dir" in
31235 .) ac_abs_builddir=`pwd`;;
31236 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31237 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31238 esac;;
31239 esac
31240 case $ac_abs_builddir in
31241 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31243 case ${ac_top_builddir}. in
31244 .) ac_abs_top_builddir=$ac_abs_builddir;;
31245 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31246 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31247 esac;;
31248 esac
31249 case $ac_abs_builddir in
31250 .) ac_abs_srcdir=$ac_srcdir;;
31252 case $ac_srcdir in
31253 .) ac_abs_srcdir=$ac_abs_builddir;;
31254 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31255 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31256 esac;;
31257 esac
31258 case $ac_abs_builddir in
31259 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31261 case $ac_top_srcdir in
31262 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31263 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31264 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31265 esac;;
31266 esac
31269 cd "$ac_dir"
31271 # Check for guested configure; otherwise get Cygnus style configure.
31272 if test -f "$ac_srcdir/configure.gnu"; then
31273 ac_sub_configure=$ac_srcdir/configure.gnu
31274 elif test -f "$ac_srcdir/configure"; then
31275 ac_sub_configure=$ac_srcdir/configure
31276 elif test -f "$ac_srcdir/configure.in"; then
31277 # This should be Cygnus configure.
31278 ac_sub_configure=$ac_aux_dir/configure
31279 else
31280 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31281 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31282 ac_sub_configure=
31285 # The recursion is here.
31286 if test -n "$ac_sub_configure"; then
31287 # Make the cache file name correct relative to the subdirectory.
31288 case $cache_file in
31289 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31290 *) # Relative path.
31291 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31292 esac
31294 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31295 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31296 # The eval makes quoting arguments work.
31297 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31298 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31299 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31300 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31301 { (exit 1); exit 1; }; }
31304 cd "$ac_popdir"
31305 done