Check in tree-dce enh to trunk
[official-gcc.git] / libjava / configure
blob93cb4dd26079370d96a9490f2536525aca8826e1
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=''
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
929 # Report the --help message.
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
935 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937 Usage: $0 [OPTION]... [VAR=VALUE]...
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
942 Defaults for the options are specified in brackets.
944 Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955 _ACEOF
957 cat <<_ACEOF
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
960 [$ac_default_prefix]
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
962 [PREFIX]
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
969 For better control, use the options below.
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
984 _ACEOF
986 cat <<\_ACEOF
988 Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 X features:
994 --x-includes=DIR X include files are in DIR
995 --x-libraries=DIR X library files are in DIR
997 System types:
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1001 _ACEOF
1004 if test -n "$ac_init_help"; then
1005 case $ac_init_help in
1006 short | recursive ) echo "Configuration of libjava version-unused:";;
1007 esac
1008 cat <<\_ACEOF
1010 Optional Features:
1011 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1012 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1013 --enable-multilib build many library versions (default)
1014 --enable-version-specific-runtime-libs
1015 specify that runtime libraries should be installed
1016 in a compiler-specific directory
1017 --enable-plugin build gcjwebplugin web browser plugin
1018 --enable-gconf-peer compile GConf native peers for util.preferences
1019 --enable-java-maintainer-mode
1020 allow rebuilding of .class and .h files
1021 --disable-dependency-tracking speeds up one-time build
1022 --enable-dependency-tracking do not reject slow dependency extractors
1023 --enable-maintainer-mode enable make rules and dependencies not useful
1024 (and sometimes confusing) to the casual installer
1025 --enable-libgcj-debug enable runtime debugging code
1026 --enable-java-awt list of AWT peer implementations to be built
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --disable-getenv-properties
1035 don't set system properties from GCJ_PROPERTIES
1036 --enable-hash-synchronization
1037 use global hash table for monitor locks
1038 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1039 libgcj
1040 --enable-gc-debug include full support for pointer backtracing etc.
1041 --enable-interpreter enable interpreter
1042 --enable-sjlj-exceptions
1043 force use of builtin_setjmp for exceptions
1044 --disable-java-net disable java.net
1045 --disable-jvmpi disable JVMPI support
1046 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1047 --disable-rpath do not hardcode runtime library paths
1048 --enable-tls Use thread-local storage [default=yes]
1050 Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-build-libsubdir=DIR Directory where to find libraries for build system
1054 --with-target-subdir=SUBDIR
1055 configure in a subdirectory
1056 --with-cross-host=HOST configure with a cross compiler from HOST
1057 --with-newlib configure with newlib
1058 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1059 --with-pic try to use only PIC/non-PIC objects [default=use
1060 both]
1061 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1062 --with-ecj-jar=FILE use preinstalled ecj jar
1063 --with-java-home=DIRECTORY
1064 value of java.home system property
1065 --with-win32-nlsapi=ansi or unicows or unicode
1066 native MinGW libgcj Win32 OS API (default is ansi)
1067 --without-libffi don't use libffi
1068 --with-ecos enable runtime eCos target support
1069 --with-system-zlib use installed libz
1070 --with-x use the X Window System
1071 --with-gnu-ld assume the C compiler uses GNU ld default=no
1072 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1073 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1075 Some influential environment variables:
1076 CC C compiler command
1077 CFLAGS C compiler flags
1078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1079 nonstandard directory <lib dir>
1080 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1081 headers in a nonstandard directory <include dir>
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CPP C preprocessor
1085 CXXCPP C++ preprocessor
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1090 _ACEOF
1093 if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1100 if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105 ac_dir_suffix= ac_top_builddir=
1108 case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1129 case "$ac_dir" in
1130 .) ac_abs_builddir=`pwd`;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 case ${ac_top_builddir}. in
1139 .) ac_abs_top_builddir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142 esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1147 case $ac_srcdir in
1148 .) ac_abs_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151 esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 case $ac_top_srcdir in
1157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 esac;;
1161 esac
1163 cd $ac_dir
1164 # Check for guested configure; otherwise get Cygnus style configure.
1165 if test -f $ac_srcdir/configure.gnu; then
1166 echo
1167 $SHELL $ac_srcdir/configure.gnu --help=recursive
1168 elif test -f $ac_srcdir/configure; then
1169 echo
1170 $SHELL $ac_srcdir/configure --help=recursive
1171 elif test -f $ac_srcdir/configure.ac ||
1172 test -f $ac_srcdir/configure.in; then
1173 echo
1174 $ac_configure --help
1175 else
1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 cd $ac_popdir
1179 done
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184 cat <<\_ACEOF
1185 libjava configure version-unused
1186 generated by GNU Autoconf 2.59
1188 Copyright (C) 2003 Free Software Foundation, Inc.
1189 This configure script is free software; the Free Software Foundation
1190 gives unlimited permission to copy, distribute and modify it.
1191 _ACEOF
1192 exit 0
1194 exec 5>config.log
1195 cat >&5 <<_ACEOF
1196 This file contains any messages produced by compilers while
1197 running configure, to aid debugging if configure makes a mistake.
1199 It was created by libjava $as_me version-unused, which was
1200 generated by GNU Autoconf 2.59. Invocation command line was
1202 $ $0 $@
1204 _ACEOF
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 _ASUNAME
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1233 IFS=$as_save_IFS
1234 test -z "$as_dir" && as_dir=.
1235 echo "PATH: $as_dir"
1236 done
1238 } >&5
1240 cat >&5 <<_ACEOF
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1247 _ACEOF
1250 # Keep a trace of the command line.
1251 # Strip out --no-create and --no-recursion so they do not pile up.
1252 # Strip out --silent because we don't want to record it for future runs.
1253 # Also quote any args containing shell meta-characters.
1254 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_configure_args=
1256 ac_configure_args0=
1257 ac_configure_args1=
1258 ac_sep=
1259 ac_must_keep_next=false
1260 for ac_pass in 1 2
1262 for ac_arg
1264 case $ac_arg in
1265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 continue ;;
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 esac
1272 case $ac_pass in
1273 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276 if test $ac_must_keep_next = true; then
1277 ac_must_keep_next=false # Got value, back to normal.
1278 else
1279 case $ac_arg in
1280 *=* | --config-cache | -C | -disable-* | --disable-* \
1281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283 | -with-* | --with-* | -without-* | --without-* | --x)
1284 case "$ac_configure_args0 " in
1285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 esac
1288 -* ) ac_must_keep_next=true ;;
1289 esac
1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292 # Get rid of the leading space.
1293 ac_sep=" "
1295 esac
1296 done
1297 done
1298 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301 # When interrupted or exit'd, cleanup temporary files, and complete
1302 # config.log. We remove comments because anyway the quotes in there
1303 # would cause problems or look ugly.
1304 # WARNING: Be sure not to use single quotes in there, as some shells,
1305 # such as our DU 5.0 friend, will then `close' the trap.
1306 trap 'exit_status=$?
1307 # Save into config.log some information that might help in debugging.
1309 echo
1311 cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316 echo
1317 # The following way of writing the cache mishandles newlines in values,
1319 (set) 2>&1 |
1320 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 *ac_space=\ *)
1322 sed -n \
1323 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327 sed -n \
1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 esac;
1332 echo
1334 cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339 echo
1340 for ac_var in $ac_subst_vars
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1347 if test -n "$ac_subst_files"; then
1348 cat <<\_ASBOX
1349 ## ------------- ##
1350 ## Output files. ##
1351 ## ------------- ##
1352 _ASBOX
1353 echo
1354 for ac_var in $ac_subst_files
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1362 if test -s confdefs.h; then
1363 cat <<\_ASBOX
1364 ## ----------- ##
1365 ## confdefs.h. ##
1366 ## ----------- ##
1367 _ASBOX
1368 echo
1369 sed "/^$/d" confdefs.h | sort
1370 echo
1372 test "$ac_signal" != 0 &&
1373 echo "$as_me: caught signal $ac_signal"
1374 echo "$as_me: exit $exit_status"
1375 } >&5
1376 rm -f core *.core &&
1377 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 exit $exit_status
1380 for ac_signal in 1 2 13 15; do
1381 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 done
1383 ac_signal=0
1385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1386 rm -rf conftest* confdefs.h
1387 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 echo >confdefs.h
1390 # Predefined preprocessor variables.
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1417 # Let the site file select an alternate cache file if it wants to.
1418 # Prefer explicitly selected file to automatically selected ones.
1419 if test -z "$CONFIG_SITE"; then
1420 if test "x$prefix" != xNONE; then
1421 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422 else
1423 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 for ac_site_file in $CONFIG_SITE; do
1427 if test -r "$ac_site_file"; then
1428 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429 echo "$as_me: loading site script $ac_site_file" >&6;}
1430 sed 's/^/| /' "$ac_site_file" >&5
1431 . "$ac_site_file"
1433 done
1435 if test -r "$cache_file"; then
1436 # Some versions of bash will fail to source /dev/null (special
1437 # files actually), so we avoid doing that.
1438 if test -f "$cache_file"; then
1439 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440 echo "$as_me: loading cache $cache_file" >&6;}
1441 case $cache_file in
1442 [\\/]* | ?:[\\/]* ) . $cache_file;;
1443 *) . ./$cache_file;;
1444 esac
1446 else
1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449 >$cache_file
1452 # Check that the precious variables saved in the cache have kept the same
1453 # value.
1454 ac_cache_corrupted=false
1455 for ac_var in `(set) 2>&1 |
1456 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458 eval ac_new_set=\$ac_env_${ac_var}_set
1459 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460 eval ac_new_val="\$ac_env_${ac_var}_value"
1461 case $ac_old_set,$ac_new_set in
1462 set,)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,set)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,);;
1472 if test "x$ac_old_val" != "x$ac_new_val"; then
1473 # differences in whitespace do not lead to failure.
1474 ac_old_val_w=`echo x $ac_old_val`
1475 ac_new_val_w=`echo x $ac_new_val`
1476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479 ac_cache_corrupted=:
1480 else
1481 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1482 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1483 eval $ac_var=\$ac_old_val
1485 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1486 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1487 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1488 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1489 fi;;
1490 esac
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1493 case $ac_new_val in
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1497 esac
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 esac
1503 done
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547 ac_aux_dir=
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1562 done
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1598 build=$ac_cv_build
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 case ${build_alias} in
1605 "") build_noncanonical=${build} ;;
1606 *) build_noncanonical=${build_alias} ;;
1607 esac
1609 case ${host_alias} in
1610 "") host_noncanonical=${build_noncanonical} ;;
1611 *) host_noncanonical=${host_alias} ;;
1612 esac
1614 case ${target_alias} in
1615 "") target_noncanonical=${host_noncanonical} ;;
1616 *) target_noncanonical=${target_alias} ;;
1617 esac
1620 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1621 # have matching libraries, they should use host libraries: Makefile.tpl
1622 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1623 # However, they still use the build modules, because the corresponding
1624 # host modules (e.g. bison) are only built for the host when bootstrap
1625 # finishes. So:
1626 # - build_subdir is where we find build modules, and never changes.
1627 # - build_libsubdir is where we find build libraries, and can be overridden.
1629 # Prefix 'build-' so this never conflicts with target_subdir.
1630 build_subdir="build-${build_noncanonical}"
1632 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1633 if test "${with_build_libsubdir+set}" = set; then
1634 withval="$with_build_libsubdir"
1635 build_libsubdir="$withval"
1636 else
1637 build_libsubdir="$build_subdir"
1639 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1640 if ( test $srcdir = . && test -d gcc ) \
1641 || test -d $srcdir/../host-${host_noncanonical}; then
1642 host_subdir="host-${host_noncanonical}"
1643 else
1644 host_subdir=.
1646 # No prefix.
1647 target_subdir=${target_noncanonical}
1650 # We use these options to decide which functions to include.
1652 # Check whether --with-target-subdir or --without-target-subdir was given.
1653 if test "${with_target_subdir+set}" = set; then
1654 withval="$with_target_subdir"
1658 # We may get other options which we don't document:
1659 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1661 # Find the rest of the source tree framework.
1662 # Default to --enable-multilib
1663 # Check whether --enable-multilib or --disable-multilib was given.
1664 if test "${enable_multilib+set}" = set; then
1665 enableval="$enable_multilib"
1666 case "$enableval" in
1667 yes) multilib=yes ;;
1668 no) multilib=no ;;
1669 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1670 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1671 { (exit 1); exit 1; }; } ;;
1672 esac
1673 else
1674 multilib=yes
1677 # We may get other options which we leave undocumented:
1678 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1679 # See config-ml.in if you want the gory details.
1681 if test "$srcdir" = "."; then
1682 if test "$with_target_subdir" != "."; then
1683 multi_basedir="$srcdir/$with_multisrctop../.."
1684 else
1685 multi_basedir="$srcdir/$with_multisrctop.."
1687 else
1688 multi_basedir="$srcdir/.."
1692 # Even if the default multilib is not a cross compilation,
1693 # it may be that some of the other multilibs are.
1694 if test $cross_compiling = no && test $multilib = yes \
1695 && test "x${with_multisubdir}" != x ; then
1696 cross_compiling=maybe
1699 ac_config_commands="$ac_config_commands default-1"
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1718 host=$ac_cv_host
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1724 echo "$as_me:$LINENO: checking target system type" >&5
1725 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1726 if test "${ac_cv_target+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 ac_cv_target_alias=$target_alias
1730 test "x$ac_cv_target_alias" = "x" &&
1731 ac_cv_target_alias=$ac_cv_host_alias
1732 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1739 echo "${ECHO_T}$ac_cv_target" >&6
1740 target=$ac_cv_target
1741 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 # The aliases save the names the user supplied, while $host etc.
1747 # will get canonicalized.
1748 test -n "$target_alias" &&
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1750 NONENONEs,x,x, &&
1751 program_prefix=${target_alias}-
1752 case ${build_alias} in
1753 "") build_noncanonical=${build} ;;
1754 *) build_noncanonical=${build_alias} ;;
1755 esac
1757 case ${target_alias} in
1758 "") target_noncanonical=${host_noncanonical} ;;
1759 *) target_noncanonical=${target_alias} ;;
1760 esac
1765 # This works around the fact that libtool configuration may change LD
1766 # for this particular configuration, but some shells, instead of
1767 # keeping the changes in LD private, export them just because LD is
1768 # exported.
1769 ORIGINAL_LD_FOR_MULTILIBS=$LD
1771 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1772 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1773 LN_S=$as_ln_s
1774 if test "$LN_S" = "ln -s"; then
1775 echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1779 echo "${ECHO_T}no, using $LN_S" >&6
1783 # This works around an automake problem.
1784 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1788 # Check whether --with-cross-host or --without-cross-host was given.
1789 if test "${with_cross_host+set}" = set; then
1790 withval="$with_cross_host"
1795 # Check whether --with-newlib or --without-newlib was given.
1796 if test "${with_newlib+set}" = set; then
1797 withval="$with_newlib"
1801 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1802 if test "${enable_version_specific_runtime_libs+set}" = set; then
1803 enableval="$enable_version_specific_runtime_libs"
1804 case "$enableval" in
1805 yes) version_specific_libs=yes ;;
1806 no) version_specific_libs=no ;;
1807 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1808 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1809 { (exit 1); exit 1; }; };;
1810 esac
1811 else
1812 version_specific_libs=no
1816 # Check whether --enable-plugin or --disable-plugin was given.
1817 if test "${enable_plugin+set}" = set; then
1818 enableval="$enable_plugin"
1819 case "$enableval" in
1820 yes) plugin_enabled=yes ;;
1821 no) plugin_enabled=no ;;
1822 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1823 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1824 { (exit 1); exit 1; }; };;
1825 esac
1826 else
1827 plugin_enabled=no
1831 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1832 if test "${enable_gconf_peer+set}" = set; then
1833 enableval="$enable_gconf_peer"
1834 case "$enableval" in
1835 yes) gconf_enabled=yes ;;
1836 no) gconf_enabled=no ;;
1837 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1838 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1839 { (exit 1); exit 1; }; };;
1840 esac
1841 else
1842 gconf_enabled=no
1846 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1847 if test "${enable_java_maintainer_mode+set}" = set; then
1848 enableval="$enable_java_maintainer_mode"
1853 if test "$enable_java_maintainer_mode" = yes; then
1854 JAVA_MAINTAINER_MODE_TRUE=
1855 JAVA_MAINTAINER_MODE_FALSE='#'
1856 else
1857 JAVA_MAINTAINER_MODE_TRUE='#'
1858 JAVA_MAINTAINER_MODE_FALSE=
1862 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1865 # (1) We use an abnormal CXX (without library references), so we
1866 # must cache it under a different name.
1867 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1868 # the non-multilib-adjusted value will be used in multilibs.
1869 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1870 # (4) As another side effect, automake doesn't automatically include them
1871 # in Makefile.in.
1872 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1873 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1874 # used in later tests. This may not be necessary in libjava; I don't know.
1877 save_CXXFLAGS="$CXXFLAGS"
1878 CXXFLAGS="$CXXFLAGS -fno-builtin"
1879 ac_ext=c
1880 ac_cpp='$CPP $CPPFLAGS'
1881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 if test -n "$ac_tool_prefix"; then
1885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1906 done
1907 done
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1921 if test -z "$ac_cv_prog_CC"; then
1922 ac_ct_CC=$CC
1923 # Extract the first word of "gcc", so it can be a program name with args.
1924 set dummy gcc; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 if test -n "$ac_ct_CC"; then
1931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_ac_ct_CC="gcc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1944 done
1945 done
1949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950 if test -n "$ac_ct_CC"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952 echo "${ECHO_T}$ac_ct_CC" >&6
1953 else
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1958 CC=$ac_ct_CC
1959 else
1960 CC="$ac_cv_prog_CC"
1963 if test -z "$CC"; then
1964 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}cc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="${ac_tool_prefix}cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$ac_cv_prog_CC"; then
2002 ac_ct_CC=$CC
2003 # Extract the first word of "cc", so it can be a program name with args.
2004 set dummy cc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_ac_ct_CC="cc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2024 done
2025 done
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2033 else
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2038 CC=$ac_ct_CC
2039 else
2040 CC="$ac_cv_prog_CC"
2044 if test -z "$CC"; then
2045 # Extract the first word of "cc", so it can be a program name with args.
2046 set dummy cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 ac_prog_rejected=no
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2064 ac_prog_rejected=yes
2065 continue
2067 ac_cv_prog_CC="cc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2071 done
2072 done
2074 if test $ac_prog_rejected = yes; then
2075 # We found a bogon in the path, so make sure we never use it.
2076 set dummy $ac_cv_prog_CC
2077 shift
2078 if test $# != 0; then
2079 # We chose a different compiler from the bogus one.
2080 # However, it has the same basename, so the bogon will be chosen
2081 # first if we set CC to just the basename; use the full file name.
2082 shift
2083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2088 CC=$ac_cv_prog_CC
2089 if test -n "$CC"; then
2090 echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2098 if test -z "$CC"; then
2099 if test -n "$ac_tool_prefix"; then
2100 for ac_prog in cl
2102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 break 2
2123 done
2124 done
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130 echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2132 else
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2137 test -n "$CC" && break
2138 done
2140 if test -z "$CC"; then
2141 ac_ct_CC=$CC
2142 for ac_prog in cl
2144 # Extract the first word of "$ac_prog", so it can be a program name with args.
2145 set dummy $ac_prog; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="$ac_prog"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 test -n "$ac_ct_CC" && break
2180 done
2182 CC=$ac_ct_CC
2188 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: no acceptable C compiler found in \$PATH
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2194 # Provide some information about the compiler.
2195 echo "$as_me:$LINENO:" \
2196 "checking for C compiler version" >&5
2197 ac_compiler=`set X $ac_compile; echo $2`
2198 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2199 (eval $ac_compiler --version </dev/null >&5) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }
2203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2204 (eval $ac_compiler -v </dev/null >&5) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2209 (eval $ac_compiler -V </dev/null >&5) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h. */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 main ()
2226 return 0;
2228 _ACEOF
2229 # FIXME: Cleanup?
2230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2231 (eval $ac_link) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; then
2235 gcc_no_link=no
2236 else
2237 gcc_no_link=yes
2240 if test x$gcc_no_link = xyes; then
2241 # Setting cross_compile will disable run tests; it will
2242 # also disable AC_CHECK_FILE but that's generally
2243 # correct if we can't link.
2244 cross_compiling=yes
2245 EXEEXT=
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2255 main ()
2259 return 0;
2261 _ACEOF
2262 ac_clean_files_save=$ac_clean_files
2263 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2264 # Try to create an executable without -o first, disregard a.out.
2265 # It will help us diagnose broken compilers, and finding out an intuition
2266 # of exeext.
2267 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2268 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2269 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2270 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2271 (eval $ac_link_default) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # Find the output, starting from the most likely. This scheme is
2276 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2277 # resort.
2279 # Be careful to initialize this variable, since it used to be cached.
2280 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2281 ac_cv_exeext=
2282 # b.out is created by i960 compilers.
2283 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2285 test -f "$ac_file" || continue
2286 case $ac_file in
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2289 conftest.$ac_ext )
2290 # This is the source file.
2292 [ab].out )
2293 # We found the default executable, but exeext='' is most
2294 # certainly right.
2295 break;;
2296 *.* )
2297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298 # FIXME: I believe we export ac_cv_exeext for Libtool,
2299 # but it would be cool to find out if it's true. Does anybody
2300 # maintain Libtool? --akim.
2301 export ac_cv_exeext
2302 break;;
2304 break;;
2305 esac
2306 done
2307 else
2308 echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2311 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: C compiler cannot create executables
2314 See \`config.log' for more details." >&2;}
2315 { (exit 77); exit 77; }; }
2318 ac_exeext=$ac_cv_exeext
2319 echo "$as_me:$LINENO: result: $ac_file" >&5
2320 echo "${ECHO_T}$ac_file" >&6
2322 # Check the compiler produces executables we can run. If not, either
2323 # the compiler is broken, or we cross compile.
2324 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2325 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2326 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2327 # If not cross compiling, check that we can run a simple program.
2328 if test "$cross_compiling" != yes; then
2329 if { ac_try='./$ac_file'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 cross_compiling=no
2336 else
2337 if test "$cross_compiling" = maybe; then
2338 cross_compiling=yes
2339 else
2340 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2341 If you meant to cross compile, use \`--host'.
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot run C compiled programs.
2344 If you meant to cross compile, use \`--host'.
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2350 echo "$as_me:$LINENO: result: yes" >&5
2351 echo "${ECHO_T}yes" >&6
2353 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2354 ac_clean_files=$ac_clean_files_save
2355 # Check the compiler produces executables we can run. If not, either
2356 # the compiler is broken, or we cross compile.
2357 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2358 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2359 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2360 echo "${ECHO_T}$cross_compiling" >&6
2362 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2363 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2365 (eval $ac_link) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2370 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2371 # work properly (i.e., refer to `conftest.exe'), while it won't with
2372 # `rm'.
2373 for ac_file in conftest.exe conftest conftest.*; do
2374 test -f "$ac_file" || continue
2375 case $ac_file in
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 export ac_cv_exeext
2379 break;;
2380 * ) break;;
2381 esac
2382 done
2383 else
2384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2397 ac_exeext=$EXEEXT
2399 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2401 if test "${ac_cv_objext+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 rm -f conftest.o conftest.obj
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2426 case $ac_file in
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2429 break;;
2430 esac
2431 done
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2439 See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }
2443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2446 echo "${ECHO_T}$ac_cv_objext" >&6
2447 OBJEXT=$ac_cv_objext
2448 ac_objext=$OBJEXT
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2451 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2462 main ()
2464 #ifndef __GNUC__
2465 choke me
2466 #endif
2469 return 0;
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_c_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 ac_compiler_gnu=yes
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 ac_compiler_gnu=no
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2505 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2506 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2507 GCC=`test $ac_compiler_gnu = yes && echo yes`
2508 ac_test_CFLAGS=${CFLAGS+set}
2509 ac_save_CFLAGS=$CFLAGS
2510 CFLAGS="-g"
2511 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2524 main ()
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_c_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_cv_prog_cc_g=yes
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_cv_prog_cc_g=no
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2564 if test "$ac_test_CFLAGS" = set; then
2565 CFLAGS=$ac_save_CFLAGS
2566 elif test $ac_cv_prog_cc_g = yes; then
2567 if test "$GCC" = yes; then
2568 CFLAGS="-g -O2"
2569 else
2570 CFLAGS="-g"
2572 else
2573 if test "$GCC" = yes; then
2574 CFLAGS="-O2"
2575 else
2576 CFLAGS=
2579 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2580 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2581 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 ac_cv_prog_cc_stdc=no
2585 ac_save_CC=$CC
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 #include <stdarg.h>
2593 #include <stdio.h>
2594 #include <sys/types.h>
2595 #include <sys/stat.h>
2596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2597 struct buf { int x; };
2598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2599 static char *e (p, i)
2600 char **p;
2601 int i;
2603 return p[i];
2605 static char *f (char * (*g) (char **, int), char **p, ...)
2607 char *s;
2608 va_list v;
2609 va_start (v,p);
2610 s = g (p, va_arg (v,int));
2611 va_end (v);
2612 return s;
2615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2616 function prototypes and stuff, but not '\xHH' hex character constants.
2617 These don't provoke an error unfortunately, instead are silently treated
2618 as 'x'. The following induces an error, until -std1 is added to get
2619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2620 array size at least. It's necessary to write '\x00'==0 to get something
2621 that's true only with -std1. */
2622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2624 int test (int i, double x);
2625 struct s1 {int (*f) (int a);};
2626 struct s2 {int (*f) (double a);};
2627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2628 int argc;
2629 char **argv;
2631 main ()
2633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2635 return 0;
2637 _ACEOF
2638 # Don't try gcc -ansi; that turns off useful extensions and
2639 # breaks some systems' header files.
2640 # AIX -qlanglvl=ansi
2641 # Ultrix and OSF/1 -std1
2642 # HP-UX 10.20 and later -Ae
2643 # HP-UX older versions -Aa -D_HPUX_SOURCE
2644 # SVR4 -Xc -D__EXTENSIONS__
2645 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647 CC="$ac_save_CC $ac_arg"
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2651 ac_status=$?
2652 grep -v '^ *+' conftest.er1 >conftest.err
2653 rm -f conftest.er1
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cc_stdc=$ac_arg
2671 break
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext
2678 done
2679 rm -f conftest.$ac_ext conftest.$ac_objext
2680 CC=$ac_save_CC
2684 case "x$ac_cv_prog_cc_stdc" in
2685 x|xno)
2686 echo "$as_me:$LINENO: result: none needed" >&5
2687 echo "${ECHO_T}none needed" >&6 ;;
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2691 CC="$CC $ac_cv_prog_cc_stdc" ;;
2692 esac
2694 # Some people use a C++ compiler to compile C. Since we use `exit',
2695 # in C++ we need to declare it. In case someone uses the same compiler
2696 # for both compiling C and C++ we need to have the C++ compiler decide
2697 # the declaration of exit, since it's the most demanding environment.
2698 cat >conftest.$ac_ext <<_ACEOF
2699 #ifndef __cplusplus
2700 choke me
2701 #endif
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 for ac_declaration in \
2726 '' \
2727 'extern "C" void std::exit (int) throw (); using std::exit;' \
2728 'extern "C" void std::exit (int); using std::exit;' \
2729 'extern "C" void exit (int) throw ();' \
2730 'extern "C" void exit (int);' \
2731 'void exit (int);'
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 $ac_declaration
2740 #include <stdlib.h>
2742 main ()
2744 exit (42);
2746 return 0;
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 continue
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 $ac_declaration
2787 main ()
2789 exit (42);
2791 return 0;
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag"
2804 || test ! -s conftest.err'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 break
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 done
2824 rm -f conftest*
2825 if test -n "$ac_declaration"; then
2826 echo '#ifdef __cplusplus' >>confdefs.h
2827 echo $ac_declaration >>confdefs.h
2828 echo '#endif' >>confdefs.h
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_ext=c
2838 ac_cpp='$CPP $CPPFLAGS'
2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 ac_ext=cc
2844 ac_cpp='$CXXCPP $CPPFLAGS'
2845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CXX+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CXX"; then
2859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2877 CXX=$ac_cv_prog_CXX
2878 if test -n "$CXX"; then
2879 echo "$as_me:$LINENO: result: $CXX" >&5
2880 echo "${ECHO_T}$CXX" >&6
2881 else
2882 echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2886 test -n "$CXX" && break
2887 done
2889 if test -z "$CXX"; then
2890 ac_ct_CXX=$CXX
2891 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 if test -n "$ac_ct_CXX"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_CXX="$ac_prog"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2920 if test -n "$ac_ct_CXX"; then
2921 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2922 echo "${ECHO_T}$ac_ct_CXX" >&6
2923 else
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2928 test -n "$ac_ct_CXX" && break
2929 done
2930 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2932 CXX=$ac_ct_CXX
2936 # Provide some information about the compiler.
2937 echo "$as_me:$LINENO:" \
2938 "checking for C++ compiler version" >&5
2939 ac_compiler=`set X $ac_compile; echo $2`
2940 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2941 (eval $ac_compiler --version </dev/null >&5) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2946 (eval $ac_compiler -v </dev/null >&5) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2950 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2951 (eval $ac_compiler -V </dev/null >&5) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2969 main ()
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_cxx_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_compiler_gnu=yes
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 ac_compiler_gnu=no
3008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3012 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3014 GXX=`test $ac_compiler_gnu = yes && echo yes`
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 CXXFLAGS="-g"
3018 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3031 main ()
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_cxx_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_prog_cxx_g=yes
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_cv_prog_cxx_g=no
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3070 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3071 if test "$ac_test_CXXFLAGS" = set; then
3072 CXXFLAGS=$ac_save_CXXFLAGS
3073 elif test $ac_cv_prog_cxx_g = yes; then
3074 if test "$GXX" = yes; then
3075 CXXFLAGS="-g -O2"
3076 else
3077 CXXFLAGS="-g"
3079 else
3080 if test "$GXX" = yes; then
3081 CXXFLAGS="-O2"
3082 else
3083 CXXFLAGS=
3086 for ac_declaration in \
3087 '' \
3088 'extern "C" void std::exit (int) throw (); using std::exit;' \
3089 'extern "C" void std::exit (int); using std::exit;' \
3090 'extern "C" void exit (int) throw ();' \
3091 'extern "C" void exit (int);' \
3092 'void exit (int);'
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 $ac_declaration
3101 #include <stdlib.h>
3103 main ()
3105 exit (42);
3107 return 0;
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>conftest.er1
3113 ac_status=$?
3114 grep -v '^ *+' conftest.er1 >conftest.err
3115 rm -f conftest.er1
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_cxx_werror_flag"
3120 || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 (eval $ac_try) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 (eval $ac_try) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3133 else
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 continue
3139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146 $ac_declaration
3148 main ()
3150 exit (42);
3152 return 0;
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_cxx_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 break
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 done
3185 rm -f conftest*
3186 if test -n "$ac_declaration"; then
3187 echo '#ifdef __cplusplus' >>confdefs.h
3188 echo $ac_declaration >>confdefs.h
3189 echo '#endif' >>confdefs.h
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 CXXFLAGS="$save_CXXFLAGS"
3204 am__api_version="1.9"
3205 # Find a good install program. We prefer a C program (faster),
3206 # so one script is as good as another. But avoid the broken or
3207 # incompatible versions:
3208 # SysV /etc/install, /usr/sbin/install
3209 # SunOS /usr/etc/install
3210 # IRIX /sbin/install
3211 # AIX /bin/install
3212 # AmigaOS /C/install, which installs bootblocks on floppy discs
3213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3216 # OS/2's system install, which has a completely different semantic
3217 # ./install, which can be erroneously created by make from ./install.sh.
3218 # Reject install programs that cannot install multiple files.
3219 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3221 if test -z "$INSTALL"; then
3222 if test "${ac_cv_path_install+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 # Account for people who put trailing slashes in PATH elements.
3231 case $as_dir/ in
3232 ./ | .// | /cC/* | \
3233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3235 /usr/ucb/* ) ;;
3237 # OSF1 and SCO ODT 3.0 have their own names for install.
3238 # Don't use installbsd from OSF since it installs stuff as root
3239 # by default.
3240 for ac_prog in ginstall scoinst install; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3243 if test $ac_prog = install &&
3244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245 # AIX install. It has an incompatible calling convention.
3247 elif test $ac_prog = install &&
3248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3249 # program-specific install script used by HP pwplus--don't use.
3251 else
3252 rm -rf conftest.one conftest.two conftest.dir
3253 echo one > conftest.one
3254 echo two > conftest.two
3255 mkdir conftest.dir
3256 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3257 test -s conftest.one && test -s conftest.two &&
3258 test -s conftest.dir/conftest.one &&
3259 test -s conftest.dir/conftest.two
3260 then
3261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3262 break 3
3266 done
3267 done
3269 esac
3270 done
3272 rm -rf conftest.one conftest.two conftest.dir
3275 if test "${ac_cv_path_install+set}" = set; then
3276 INSTALL=$ac_cv_path_install
3277 else
3278 # As a last resort, use the slow shell script. Don't cache a
3279 # value for INSTALL within a source directory, because that will
3280 # break other packages using the cache if that directory is
3281 # removed, or if the value is a relative name.
3282 INSTALL=$ac_install_sh
3285 echo "$as_me:$LINENO: result: $INSTALL" >&5
3286 echo "${ECHO_T}$INSTALL" >&6
3288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3289 # It thinks the first close brace ends the variable substitution.
3290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3296 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3297 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3298 # Just in case
3299 sleep 1
3300 echo timestamp > conftest.file
3301 # Do `set' in a subshell so we don't clobber the current shell's
3302 # arguments. Must try -L first in case configure is actually a
3303 # symlink; some systems play weird games with the mod time of symlinks
3304 # (eg FreeBSD returns the mod time of the symlink's containing
3305 # directory).
3306 if (
3307 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3308 if test "$*" = "X"; then
3309 # -L didn't work.
3310 set X `ls -t $srcdir/configure conftest.file`
3312 rm -f conftest.file
3313 if test "$*" != "X $srcdir/configure conftest.file" \
3314 && test "$*" != "X conftest.file $srcdir/configure"; then
3316 # If neither matched, then we have a broken ls. This can happen
3317 # if, for instance, CONFIG_SHELL is bash and it inherits a
3318 # broken ls alias from the environment. This has actually
3319 # happened. Such a system could not be considered "sane".
3320 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3321 alias in your environment" >&5
3322 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3323 alias in your environment" >&2;}
3324 { (exit 1); exit 1; }; }
3327 test "$2" = conftest.file
3329 then
3330 # Ok.
3332 else
3333 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3334 Check your system clock" >&5
3335 echo "$as_me: error: newly created file is older than distributed files!
3336 Check your system clock" >&2;}
3337 { (exit 1); exit 1; }; }
3339 echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3341 test "$program_prefix" != NONE &&
3342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3343 # Use a double $ so make ignores it.
3344 test "$program_suffix" != NONE &&
3345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3346 # Double any \ or $. echo might interpret backslashes.
3347 # By default was `s,x,x', remove it if useless.
3348 cat <<\_ACEOF >conftest.sed
3349 s/[\\$]/&&/g;s/;s,x,x,$//
3350 _ACEOF
3351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3352 rm conftest.sed
3354 # expand $ac_aux_dir to an absolute path
3355 am_aux_dir=`cd $ac_aux_dir && pwd`
3357 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3358 # Use eval to expand $SHELL
3359 if eval "$MISSING --run true"; then
3360 am_missing_run="$MISSING --run "
3361 else
3362 am_missing_run=
3363 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3364 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3367 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3368 # We used to keeping the `.' as first argument, in order to
3369 # allow $(mkdir_p) to be used without argument. As in
3370 # $(mkdir_p) $(somedir)
3371 # where $(somedir) is conditionally defined. However this is wrong
3372 # for two reasons:
3373 # 1. if the package is installed by a user who cannot write `.'
3374 # make install will fail,
3375 # 2. the above comment should most certainly read
3376 # $(mkdir_p) $(DESTDIR)$(somedir)
3377 # so it does not work when $(somedir) is undefined and
3378 # $(DESTDIR) is not.
3379 # To support the latter case, we have to write
3380 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3381 # so the `.' trick is pointless.
3382 mkdir_p='mkdir -p --'
3383 else
3384 # On NextStep and OpenStep, the `mkdir' command does not
3385 # recognize any option. It will interpret all options as
3386 # directories to create, and then abort because `.' already
3387 # exists.
3388 for d in ./-p ./--version;
3390 test -d $d && rmdir $d
3391 done
3392 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3393 if test -f "$ac_aux_dir/mkinstalldirs"; then
3394 mkdir_p='$(mkinstalldirs)'
3395 else
3396 mkdir_p='$(install_sh) -d'
3400 for ac_prog in gawk mawk nawk awk
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 echo "$as_me:$LINENO: checking for $ac_word" >&5
3405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406 if test "${ac_cv_prog_AWK+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if test -n "$AWK"; then
3410 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_AWK="$ac_prog"
3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3423 done
3424 done
3428 AWK=$ac_cv_prog_AWK
3429 if test -n "$AWK"; then
3430 echo "$as_me:$LINENO: result: $AWK" >&5
3431 echo "${ECHO_T}$AWK" >&6
3432 else
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3437 test -n "$AWK" && break
3438 done
3440 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3441 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3442 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3443 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 cat >conftest.make <<\_ACEOF
3447 all:
3448 @echo 'ac_maketemp="$(MAKE)"'
3449 _ACEOF
3450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3451 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3452 if test -n "$ac_maketemp"; then
3453 eval ac_cv_prog_make_${ac_make}_set=yes
3454 else
3455 eval ac_cv_prog_make_${ac_make}_set=no
3457 rm -f conftest.make
3459 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 SET_MAKE=
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 SET_MAKE="MAKE=${MAKE-make}"
3469 rm -rf .tst 2>/dev/null
3470 mkdir .tst 2>/dev/null
3471 if test -d .tst; then
3472 am__leading_dot=.
3473 else
3474 am__leading_dot=_
3476 rmdir .tst 2>/dev/null
3478 DEPDIR="${am__leading_dot}deps"
3480 ac_config_commands="$ac_config_commands depfiles"
3483 am_make=${MAKE-make}
3484 cat > confinc << 'END'
3485 am__doit:
3486 @echo done
3487 .PHONY: am__doit
3489 # If we don't find an include directive, just comment out the code.
3490 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3491 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3492 am__include="#"
3493 am__quote=
3494 _am_result=none
3495 # First try GNU make style include.
3496 echo "include confinc" > confmf
3497 # We grep out `Entering directory' and `Leaving directory'
3498 # messages which can occur if `w' ends up in MAKEFLAGS.
3499 # In particular we don't look at `^make:' because GNU make might
3500 # be invoked under some other name (usually "gmake"), in which
3501 # case it prints its new name instead of `make'.
3502 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3503 am__include=include
3504 am__quote=
3505 _am_result=GNU
3507 # Now try BSD make style include.
3508 if test "$am__include" = "#"; then
3509 echo '.include "confinc"' > confmf
3510 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3511 am__include=.include
3512 am__quote="\""
3513 _am_result=BSD
3518 echo "$as_me:$LINENO: result: $_am_result" >&5
3519 echo "${ECHO_T}$_am_result" >&6
3520 rm -f confinc confmf
3522 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3523 if test "${enable_dependency_tracking+set}" = set; then
3524 enableval="$enable_dependency_tracking"
3527 if test "x$enable_dependency_tracking" != xno; then
3528 am_depcomp="$ac_aux_dir/depcomp"
3529 AMDEPBACKSLASH='\'
3533 if test "x$enable_dependency_tracking" != xno; then
3534 AMDEP_TRUE=
3535 AMDEP_FALSE='#'
3536 else
3537 AMDEP_TRUE='#'
3538 AMDEP_FALSE=
3543 # test to see if srcdir already configured
3544 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3545 test -f $srcdir/config.status; then
3546 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3547 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3548 { (exit 1); exit 1; }; }
3551 # test whether we have cygpath
3552 if test -z "$CYGPATH_W"; then
3553 if (cygpath --version) >/dev/null 2>/dev/null; then
3554 CYGPATH_W='cygpath -w'
3555 else
3556 CYGPATH_W=echo
3561 # Define the identity of the package.
3562 PACKAGE='libjava'
3563 VERSION='version-unused'
3566 cat >>confdefs.h <<_ACEOF
3567 #define PACKAGE "$PACKAGE"
3568 _ACEOF
3571 cat >>confdefs.h <<_ACEOF
3572 #define VERSION "$VERSION"
3573 _ACEOF
3575 # Some tools Automake needs.
3577 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3580 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3583 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3586 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3589 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3591 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3593 # Installed binaries are usually stripped using `strip' when the user
3594 # run `make install-strip'. However `strip' might not be the right
3595 # tool to use in cross-compilation environments, therefore Automake
3596 # will honor the `STRIP' environment variable to overrule this program.
3597 if test "$cross_compiling" != no; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3600 set dummy ${ac_tool_prefix}strip; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_prog_STRIP+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$STRIP"; then
3607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3625 STRIP=$ac_cv_prog_STRIP
3626 if test -n "$STRIP"; then
3627 echo "$as_me:$LINENO: result: $STRIP" >&5
3628 echo "${ECHO_T}$STRIP" >&6
3629 else
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3635 if test -z "$ac_cv_prog_STRIP"; then
3636 ac_ct_STRIP=$STRIP
3637 # Extract the first word of "strip", so it can be a program name with args.
3638 set dummy strip; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 if test -n "$ac_ct_STRIP"; then
3645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_STRIP="strip"
3655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3661 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3664 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3665 if test -n "$ac_ct_STRIP"; then
3666 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3667 echo "${ECHO_T}$ac_ct_STRIP" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3673 STRIP=$ac_ct_STRIP
3674 else
3675 STRIP="$ac_cv_prog_STRIP"
3679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3681 # We need awk for the "check" target. The system "awk" is bad on
3682 # some platforms.
3683 # Always define AMTAR for backward compatibility.
3685 AMTAR=${AMTAR-"${am_missing_run}tar"}
3687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3692 depcc="$CC" am_compiler_list=
3694 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3695 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3696 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700 # We make a subdir and do the tests there. Otherwise we can end up
3701 # making bogus files that we don't know about and never remove. For
3702 # instance it was reported that on HP-UX the gcc test will end up
3703 # making a dummy file named `D' -- because `-MD' means `put the output
3704 # in D'.
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3718 am_cv_CC_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3722 for depmode in $am_compiler_list; do
3723 # Setup a source with many dependencies, because some compilers
3724 # like to wrap large dependency lists on column 80 (with \), and
3725 # we should not choose a depcomp mode which is confused by this.
3727 # We need to recreate these files for each test, as the compiler may
3728 # overwrite some of them when testing with obscure command lines.
3729 # This happens at least with the AIX C compiler.
3730 : > sub/conftest.c
3731 for i in 1 2 3 4 5 6; do
3732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3734 # Solaris 8's {/usr,}/bin/sh.
3735 touch sub/conftst$i.h
3736 done
3737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3739 case $depmode in
3740 nosideeffect)
3741 # after this tag, mechanisms are not by side-effect, so they'll
3742 # only be used when explicitly requested
3743 if test "x$enable_dependency_tracking" = xyes; then
3744 continue
3745 else
3746 break
3749 none) break ;;
3750 esac
3751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle `-M -o', and we need to detect this.
3754 if depmode=$depmode \
3755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3758 >/dev/null 2>conftest.err &&
3759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3760 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3762 # icc doesn't choke on unknown options, it will just issue warnings
3763 # or remarks (even with -Werror). So we grep stderr for any message
3764 # that says an option was ignored or not supported.
3765 # When given -MP, icc 7.0 and 7.1 complain thusly:
3766 # icc: Command line warning: ignoring option '-M'; no argument required
3767 # The diagnosis changed in icc 8.0:
3768 # icc: Command line remark: option '-MP' not supported
3769 if (grep 'ignoring option' conftest.err ||
3770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3771 am_cv_CC_dependencies_compiler_type=$depmode
3772 break
3775 done
3777 cd ..
3778 rm -rf conftest.dir
3779 else
3780 am_cv_CC_dependencies_compiler_type=none
3784 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3785 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3791 test "x$enable_dependency_tracking" != xno \
3792 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3793 am__fastdepCC_TRUE=
3794 am__fastdepCC_FALSE='#'
3795 else
3796 am__fastdepCC_TRUE='#'
3797 am__fastdepCC_FALSE=
3801 depcc="$CXX" am_compiler_list=
3803 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3805 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3809 # We make a subdir and do the tests there. Otherwise we can end up
3810 # making bogus files that we don't know about and never remove. For
3811 # instance it was reported that on HP-UX the gcc test will end up
3812 # making a dummy file named `D' -- because `-MD' means `put the output
3813 # in D'.
3814 mkdir conftest.dir
3815 # Copy depcomp to subdir because otherwise we won't find it if we're
3816 # using a relative directory.
3817 cp "$am_depcomp" conftest.dir
3818 cd conftest.dir
3819 # We will build objects and dependencies in a subdirectory because
3820 # it helps to detect inapplicable dependency modes. For instance
3821 # both Tru64's cc and ICC support -MD to output dependencies as a
3822 # side effect of compilation, but ICC will put the dependencies in
3823 # the current directory while Tru64 will put them in the object
3824 # directory.
3825 mkdir sub
3827 am_cv_CXX_dependencies_compiler_type=none
3828 if test "$am_compiler_list" = ""; then
3829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3831 for depmode in $am_compiler_list; do
3832 # Setup a source with many dependencies, because some compilers
3833 # like to wrap large dependency lists on column 80 (with \), and
3834 # we should not choose a depcomp mode which is confused by this.
3836 # We need to recreate these files for each test, as the compiler may
3837 # overwrite some of them when testing with obscure command lines.
3838 # This happens at least with the AIX C compiler.
3839 : > sub/conftest.c
3840 for i in 1 2 3 4 5 6; do
3841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3843 # Solaris 8's {/usr,}/bin/sh.
3844 touch sub/conftst$i.h
3845 done
3846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848 case $depmode in
3849 nosideeffect)
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3858 none) break ;;
3859 esac
3860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3861 # mode. It turns out that the SunPro C++ compiler does not properly
3862 # handle `-M -o', and we need to detect this.
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3871 # icc doesn't choke on unknown options, it will just issue warnings
3872 # or remarks (even with -Werror). So we grep stderr for any message
3873 # that says an option was ignored or not supported.
3874 # When given -MP, icc 7.0 and 7.1 complain thusly:
3875 # icc: Command line warning: ignoring option '-M'; no argument required
3876 # The diagnosis changed in icc 8.0:
3877 # icc: Command line remark: option '-MP' not supported
3878 if (grep 'ignoring option' conftest.err ||
3879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3880 am_cv_CXX_dependencies_compiler_type=$depmode
3881 break
3884 done
3886 cd ..
3887 rm -rf conftest.dir
3888 else
3889 am_cv_CXX_dependencies_compiler_type=none
3893 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3894 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3895 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3900 test "x$enable_dependency_tracking" != xno \
3901 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3902 am__fastdepCXX_TRUE=
3903 am__fastdepCXX_FALSE='#'
3904 else
3905 am__fastdepCXX_TRUE='#'
3906 am__fastdepCXX_FALSE=
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}as; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_AS+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920 if test -n "$AS"; then
3921 ac_cv_prog_AS="$AS" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_AS="${ac_tool_prefix}as"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3934 done
3935 done
3939 AS=$ac_cv_prog_AS
3940 if test -n "$AS"; then
3941 echo "$as_me:$LINENO: result: $AS" >&5
3942 echo "${ECHO_T}$AS" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3949 if test -z "$ac_cv_prog_AS"; then
3950 ac_ct_AS=$AS
3951 # Extract the first word of "as", so it can be a program name with args.
3952 set dummy as; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 if test -n "$ac_ct_AS"; then
3959 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_AS="as"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3972 done
3973 done
3977 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3978 if test -n "$ac_ct_AS"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3980 echo "${ECHO_T}$ac_ct_AS" >&6
3981 else
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 AS=$ac_ct_AS
3987 else
3988 AS="$ac_cv_prog_AS"
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}ld; ac_word=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_LD+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 if test -n "$LD"; then
4000 ac_cv_prog_LD="$LD" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_LD="${ac_tool_prefix}ld"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4018 LD=$ac_cv_prog_LD
4019 if test -n "$LD"; then
4020 echo "$as_me:$LINENO: result: $LD" >&5
4021 echo "${ECHO_T}$LD" >&6
4022 else
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4028 if test -z "$ac_cv_prog_LD"; then
4029 ac_ct_LD=$LD
4030 # Extract the first word of "ld", so it can be a program name with args.
4031 set dummy ld; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test -n "$ac_ct_LD"; then
4038 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_LD="ld"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4056 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4057 if test -n "$ac_ct_LD"; then
4058 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4059 echo "${ECHO_T}$ac_ct_LD" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 LD=$ac_ct_LD
4066 else
4067 LD="$ac_cv_prog_LD"
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}ar; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_AR+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 if test -n "$AR"; then
4079 ac_cv_prog_AR="$AR" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_AR="${ac_tool_prefix}ar"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4097 AR=$ac_cv_prog_AR
4098 if test -n "$AR"; then
4099 echo "$as_me:$LINENO: result: $AR" >&5
4100 echo "${ECHO_T}$AR" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4107 if test -z "$ac_cv_prog_AR"; then
4108 ac_ct_AR=$AR
4109 # Extract the first word of "ar", so it can be a program name with args.
4110 set dummy ar; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -n "$ac_ct_AR"; then
4117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_AR="ar"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4136 if test -n "$ac_ct_AR"; then
4137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4138 echo "${ECHO_T}$ac_ct_AR" >&6
4139 else
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4144 AR=$ac_ct_AR
4145 else
4146 AR="$ac_cv_prog_AR"
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_RANLIB+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test -n "$RANLIB"; then
4158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4176 RANLIB=$ac_cv_prog_RANLIB
4177 if test -n "$RANLIB"; then
4178 echo "$as_me:$LINENO: result: $RANLIB" >&5
4179 echo "${ECHO_T}$RANLIB" >&6
4180 else
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4186 if test -z "$ac_cv_prog_RANLIB"; then
4187 ac_ct_RANLIB=$RANLIB
4188 # Extract the first word of "ranlib", so it can be a program name with args.
4189 set dummy ranlib; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if test -n "$ac_ct_RANLIB"; then
4196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_ac_ct_RANLIB="ranlib"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4216 if test -n "$ac_ct_RANLIB"; then
4217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4218 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4219 else
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4224 RANLIB=$ac_ct_RANLIB
4225 else
4226 RANLIB="$ac_cv_prog_RANLIB"
4229 for ac_prog in gawk mawk nawk awk
4231 # Extract the first word of "$ac_prog", so it can be a program name with args.
4232 set dummy $ac_prog; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_AWK+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$AWK"; then
4239 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_AWK="$ac_prog"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4257 AWK=$ac_cv_prog_AWK
4258 if test -n "$AWK"; then
4259 echo "$as_me:$LINENO: result: $AWK" >&5
4260 echo "${ECHO_T}$AWK" >&6
4261 else
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4266 test -n "$AWK" && break
4267 done
4269 for ac_prog in jar fastjar gjar
4271 # Extract the first word of "$ac_prog", so it can be a program name with args.
4272 set dummy $ac_prog; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_JAR+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 if test -n "$JAR"; then
4279 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_JAR="$ac_prog"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4297 JAR=$ac_cv_prog_JAR
4298 if test -n "$JAR"; then
4299 echo "$as_me:$LINENO: result: $JAR" >&5
4300 echo "${ECHO_T}$JAR" >&6
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$JAR" && break
4307 done
4308 test -n "$JAR" || JAR="no"
4310 # Extract the first word of "zip", so it can be a program name with args.
4311 set dummy zip; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_path_ZIP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 case $ZIP in
4318 [\\/]* | ?:[\\/]*)
4319 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4336 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4338 esac
4340 ZIP=$ac_cv_path_ZIP
4342 if test -n "$ZIP"; then
4343 echo "$as_me:$LINENO: result: $ZIP" >&5
4344 echo "${ECHO_T}$ZIP" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4350 # Extract the first word of "unzip", so it can be a program name with args.
4351 set dummy unzip; ac_word=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_path_UNZIP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 case $UNZIP in
4358 [\\/]* | ?:[\\/]*)
4359 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4376 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4378 esac
4380 UNZIP=$ac_cv_path_UNZIP
4382 if test -n "$UNZIP"; then
4383 echo "$as_me:$LINENO: result: $UNZIP" >&5
4384 echo "${ECHO_T}$UNZIP" >&6
4385 else
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 # We need a jar that supports -@. This is a GNU extension.
4392 if test "$JAR" != no; then
4393 rm -f config-test.jar
4394 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4395 if test -f config-test.jar; then
4396 rm -f config-test.jar
4397 else
4398 JAR=no
4402 # Prefer the jar we found, but fall back to our jar script.
4403 if test "$JAR" = no; then
4404 if test "$ZIP" = no; then
4405 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4406 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4407 { (exit 1); exit 1; }; }
4408 else
4409 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4410 JAR=`pwd`/scripts/jar
4414 # Find a good install program. We prefer a C program (faster),
4415 # so one script is as good as another. But avoid the broken or
4416 # incompatible versions:
4417 # SysV /etc/install, /usr/sbin/install
4418 # SunOS /usr/etc/install
4419 # IRIX /sbin/install
4420 # AIX /bin/install
4421 # AmigaOS /C/install, which installs bootblocks on floppy discs
4422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4425 # OS/2's system install, which has a completely different semantic
4426 # ./install, which can be erroneously created by make from ./install.sh.
4427 # Reject install programs that cannot install multiple files.
4428 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4429 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4430 if test -z "$INSTALL"; then
4431 if test "${ac_cv_path_install+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 # Account for people who put trailing slashes in PATH elements.
4440 case $as_dir/ in
4441 ./ | .// | /cC/* | \
4442 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4443 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4444 /usr/ucb/* ) ;;
4446 # OSF1 and SCO ODT 3.0 have their own names for install.
4447 # Don't use installbsd from OSF since it installs stuff as root
4448 # by default.
4449 for ac_prog in ginstall scoinst install; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4452 if test $ac_prog = install &&
4453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4454 # AIX install. It has an incompatible calling convention.
4456 elif test $ac_prog = install &&
4457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4458 # program-specific install script used by HP pwplus--don't use.
4460 else
4461 rm -rf conftest.one conftest.two conftest.dir
4462 echo one > conftest.one
4463 echo two > conftest.two
4464 mkdir conftest.dir
4465 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4466 test -s conftest.one && test -s conftest.two &&
4467 test -s conftest.dir/conftest.one &&
4468 test -s conftest.dir/conftest.two
4469 then
4470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4471 break 3
4475 done
4476 done
4478 esac
4479 done
4481 rm -rf conftest.one conftest.two conftest.dir
4484 if test "${ac_cv_path_install+set}" = set; then
4485 INSTALL=$ac_cv_path_install
4486 else
4487 # As a last resort, use the slow shell script. Don't cache a
4488 # value for INSTALL within a source directory, because that will
4489 # break other packages using the cache if that directory is
4490 # removed, or if the value is a relative name.
4491 INSTALL=$ac_install_sh
4494 echo "$as_me:$LINENO: result: $INSTALL" >&5
4495 echo "${ECHO_T}$INSTALL" >&6
4497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4498 # It thinks the first close brace ends the variable substitution.
4499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4506 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4507 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4508 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4509 if test "${enable_maintainer_mode+set}" = set; then
4510 enableval="$enable_maintainer_mode"
4511 USE_MAINTAINER_MODE=$enableval
4512 else
4513 USE_MAINTAINER_MODE=no
4515 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4516 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4519 if test $USE_MAINTAINER_MODE = yes; then
4520 MAINTAINER_MODE_TRUE=
4521 MAINTAINER_MODE_FALSE='#'
4522 else
4523 MAINTAINER_MODE_TRUE='#'
4524 MAINTAINER_MODE_FALSE=
4527 MAINT=$MAINTAINER_MODE_TRUE
4533 # configure.host sets the following important variables
4534 # libgcj_cflags - host specific C compiler flags
4535 # libgcj_cxxflags - host specific C++ compiler flags
4536 # libgcj_javaflags - host specific Java compiler flags
4538 libgcj_cflags=
4539 libgcj_cxxflags=
4540 libgcj_javaflags=
4542 . ${srcdir}/configure.host
4544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4546 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4550 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4551 acl_cv_prog_gnu_ld=yes
4552 else
4553 acl_cv_prog_gnu_ld=no
4556 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4557 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4558 with_gnu_ld=$acl_cv_prog_gnu_ld
4560 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4561 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4562 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4566 acl_cv_prog_gnu_ld_symbolic=no
4568 if test x"$with_gnu_ld" = x"yes"; then
4569 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4570 acl_cv_prog_gnu_ld_symbolic=yes
4574 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4575 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4576 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4577 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4578 else
4579 SYMBOLIC_LDFLAGS=''
4582 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4583 if test -z "$libgcj_ld_symbolic"; then
4584 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4587 LIBGCJ_CFLAGS="${libgcj_cflags}"
4588 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4589 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4590 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4591 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4598 # Only use libltdl for non-newlib builds.
4599 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4600 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4602 library_names_spec=
4603 libname_spec='lib$name'
4604 soname_spec=
4605 shrext=".so"
4606 postinstall_cmds=
4607 postuninstall_cmds=
4608 finish_cmds=
4609 finish_eval=
4610 shlibpath_var=
4611 shlibpath_overrides_runpath=unknown
4612 version_type=none
4613 dynamic_linker="$host_os ld.so"
4614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4615 if test "$GCC" = yes; then
4616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4618 # if the path contains ";" then we assume it to be the separator
4619 # otherwise default to the standard path separator (i.e. ":") - it is
4620 # assumed that no part of a normal pathname contains ";" but that should
4621 # okay in the real world where ";" in dirpaths is itself problematic.
4622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4623 else
4624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4626 else
4627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4629 need_lib_prefix=unknown
4630 hardcode_into_libs=no
4632 # when you set need_version to no, make sure it does not cause -set_version
4633 # flags to be left without arguments
4634 need_version=unknown
4636 case $host_os in
4637 aix3*)
4638 version_type=linux
4639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4640 shlibpath_var=LIBPATH
4642 # AIX 3 has no versioning support, so we append a major version to the name.
4643 soname_spec='${libname}${release}${shared_ext}$major'
4646 aix[4-9]*)
4647 version_type=linux
4648 need_lib_prefix=no
4649 need_version=no
4650 hardcode_into_libs=yes
4651 if test "$host_cpu" = ia64; then
4652 # AIX 5 supports IA64
4653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4654 shlibpath_var=LD_LIBRARY_PATH
4655 else
4656 # With GCC up to 2.95.x, collect2 would create an import file
4657 # for dependence libraries. The import file would start with
4658 # the line `#! .'. This would cause the generated library to
4659 # depend on `.', always an invalid library. This was fixed in
4660 # development snapshots of GCC prior to 3.0.
4661 case $host_os in
4662 aix4 | aix4.[01] | aix4.[01].*)
4663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4664 echo ' yes '
4665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4667 else
4668 can_build_shared=no
4671 esac
4672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4673 # soname into executable. Probably we can add versioning support to
4674 # collect2, so additional links can be useful in future.
4675 if test "$aix_use_runtimelinking" = yes; then
4676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4677 # instead of lib<name>.a to let people know that these are not
4678 # typical AIX shared libraries.
4679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4680 else
4681 # We preserve .a as extension for shared libraries through AIX4.2
4682 # and later when we are not doing run time linking.
4683 library_names_spec='${libname}${release}.a $libname.a'
4684 soname_spec='${libname}${release}${shared_ext}$major'
4686 shlibpath_var=LIBPATH
4690 amigaos*)
4691 library_names_spec='$libname.ixlibrary $libname.a'
4692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4693 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'
4696 beos*)
4697 library_names_spec='${libname}${shared_ext}'
4698 dynamic_linker="$host_os ld.so"
4699 shlibpath_var=LIBRARY_PATH
4702 bsdi4*)
4703 version_type=linux
4704 need_version=no
4705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4706 soname_spec='${libname}${release}${shared_ext}$major'
4707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4708 shlibpath_var=LD_LIBRARY_PATH
4709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4711 # the default ld.so.conf also contains /usr/contrib/lib and
4712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4713 # libtool to hard-code these into programs
4716 cygwin* | mingw* | pw32*)
4717 version_type=windows
4718 shrext=".dll"
4719 need_version=no
4720 need_lib_prefix=no
4722 case $GCC,$host_os in
4723 yes,cygwin* | yes,mingw* | yes,pw32*)
4724 library_names_spec='$libname.dll.a'
4725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4726 postinstall_cmds='base_file=`basename \${file}`~
4727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4728 dldir=$destdir/`dirname \$dlpath`~
4729 test -d \$dldir || mkdir -p \$dldir~
4730 $install_prog $dir/$dlname \$dldir/$dlname'
4731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4732 dlpath=$dir/\$dldll~
4733 $rm \$dlpath'
4734 shlibpath_overrides_runpath=yes
4736 case $host_os in
4737 cygwin*)
4738 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4739 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4740 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4742 mingw*)
4743 # MinGW DLLs use traditional 'lib' prefix
4744 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4745 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4746 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4747 # It is most probably a Windows format PATH printed by
4748 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4749 # path with ; separators, and with drive letters. We can handle the
4750 # drive letters (cygwin fileutils understands them), so leave them,
4751 # especially as we might pass files found there to a mingw objdump,
4752 # which wouldn't understand a cygwinified path. Ahh.
4753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4754 else
4755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4758 pw32*)
4759 # pw32 DLLs use 'pw' prefix rather than 'lib'
4760 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4762 esac
4766 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4768 esac
4769 dynamic_linker='Win32 ld.exe'
4770 # FIXME: first we should search . and the directory the executable is in
4771 shlibpath_var=PATH
4774 darwin* | rhapsody*)
4775 dynamic_linker="$host_os dyld"
4776 version_type=darwin
4777 need_lib_prefix=no
4778 need_version=no
4779 # FIXME: Relying on posixy $() will cause problems for
4780 # cross-compilation, but unfortunately the echo tests do not
4781 # yet detect zsh echo's removal of \ escapes.
4782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4783 soname_spec='${libname}${release}${major}$shared_ext'
4784 shlibpath_overrides_runpath=yes
4785 shlibpath_var=DYLD_LIBRARY_PATH
4786 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4788 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4789 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"`
4791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4794 dgux*)
4795 version_type=linux
4796 need_lib_prefix=no
4797 need_version=no
4798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4799 soname_spec='${libname}${release}${shared_ext}$major'
4800 shlibpath_var=LD_LIBRARY_PATH
4803 freebsd1*)
4804 dynamic_linker=no
4807 freebsd*)
4808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4809 version_type=freebsd-$objformat
4810 case $version_type in
4811 freebsd-elf*)
4812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4813 need_version=no
4814 need_lib_prefix=no
4816 freebsd-*)
4817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4818 need_version=yes
4820 esac
4821 shlibpath_var=LD_LIBRARY_PATH
4822 case $host_os in
4823 freebsd2*)
4824 shlibpath_overrides_runpath=yes
4826 freebsd3.01* | freebsdelf3.01*)
4827 shlibpath_overrides_runpath=yes
4828 hardcode_into_libs=yes
4830 *) # from 3.2 on
4831 shlibpath_overrides_runpath=no
4832 hardcode_into_libs=yes
4834 esac
4837 gnu*)
4838 version_type=linux
4839 need_lib_prefix=no
4840 need_version=no
4841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4842 soname_spec='${libname}${release}${shared_ext}$major'
4843 shlibpath_var=LD_LIBRARY_PATH
4844 hardcode_into_libs=yes
4847 hpux9* | hpux10* | hpux11*)
4848 # Give a soname corresponding to the major version so that dld.sl refuses to
4849 # link against other versions.
4850 version_type=sunos
4851 need_lib_prefix=no
4852 need_version=no
4853 case "$host_cpu" in
4854 ia64*)
4855 shrext='.so'
4856 hardcode_into_libs=yes
4857 dynamic_linker="$host_os dld.so"
4858 shlibpath_var=LD_LIBRARY_PATH
4859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4861 soname_spec='${libname}${release}${shared_ext}$major'
4862 if test "X$HPUX_IA64_MODE" = X32; then
4863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4864 else
4865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4869 hppa*64*)
4870 shrext='.sl'
4871 hardcode_into_libs=yes
4872 dynamic_linker="$host_os dld.sl"
4873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4876 soname_spec='${libname}${release}${shared_ext}$major'
4877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4881 shrext='.sl'
4882 dynamic_linker="$host_os dld.sl"
4883 shlibpath_var=SHLIB_PATH
4884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4886 soname_spec='${libname}${release}${shared_ext}$major'
4888 esac
4889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4890 postinstall_cmds='chmod 555 $lib'
4893 irix5* | irix6* | nonstopux*)
4894 case $host_os in
4895 nonstopux*) version_type=nonstopux ;;
4897 if test "$lt_cv_prog_gnu_ld" = yes; then
4898 version_type=linux
4899 else
4900 version_type=irix
4901 fi ;;
4902 esac
4903 need_lib_prefix=no
4904 need_version=no
4905 soname_spec='${libname}${release}${shared_ext}$major'
4906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4907 case $host_os in
4908 irix5* | nonstopux*)
4909 libsuff= shlibsuff=
4912 case $LD in # libtool.m4 will add one of these switches to LD
4913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4914 libsuff= shlibsuff= libmagic=32-bit;;
4915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4916 libsuff=32 shlibsuff=N32 libmagic=N32;;
4917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4919 *) libsuff= shlibsuff= libmagic=never-match;;
4920 esac
4922 esac
4923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4924 shlibpath_overrides_runpath=no
4925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4927 hardcode_into_libs=yes
4930 # No shared lib support for Linux oldld, aout, or coff.
4931 linux*oldld* | linux*aout* | linux*coff*)
4932 dynamic_linker=no
4935 # This must be Linux ELF.
4936 linux*|k*bsd*-gnu)
4937 version_type=linux
4938 need_lib_prefix=no
4939 need_version=no
4940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4941 soname_spec='${libname}${release}${shared_ext}$major'
4942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4943 shlibpath_var=LD_LIBRARY_PATH
4944 shlibpath_overrides_runpath=no
4945 # This implies no fast_install, which is unacceptable.
4946 # Some rework will be needed to allow for fast_install
4947 # before this can be enabled.
4948 hardcode_into_libs=yes
4950 # We used to test for /lib/ld.so.1 and disable shared libraries on
4951 # powerpc, because MkLinux only supported shared libraries with the
4952 # GNU dynamic linker. Since this was broken with cross compilers,
4953 # most powerpc-linux boxes support dynamic linking these days and
4954 # people can always --disable-shared, the test was removed, and we
4955 # assume the GNU/Linux dynamic linker is in use.
4956 dynamic_linker='GNU/Linux ld.so'
4959 netbsd*)
4960 version_type=sunos
4961 need_lib_prefix=no
4962 need_version=no
4963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4966 dynamic_linker='NetBSD (a.out) ld.so'
4967 else
4968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4969 soname_spec='${libname}${release}${shared_ext}$major'
4970 dynamic_linker='NetBSD ld.elf_so'
4972 shlibpath_var=LD_LIBRARY_PATH
4973 shlibpath_overrides_runpath=yes
4974 hardcode_into_libs=yes
4977 newsos6)
4978 version_type=linux
4979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4980 shlibpath_var=LD_LIBRARY_PATH
4981 shlibpath_overrides_runpath=yes
4984 nto-qnx)
4985 version_type=linux
4986 need_lib_prefix=no
4987 need_version=no
4988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4989 soname_spec='${libname}${release}${shared_ext}$major'
4990 shlibpath_var=LD_LIBRARY_PATH
4991 shlibpath_overrides_runpath=yes
4994 openbsd*)
4995 version_type=sunos
4996 need_lib_prefix=no
4997 need_version=no
4998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5000 shlibpath_var=LD_LIBRARY_PATH
5001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5002 case $host_os in
5003 openbsd2.[89] | openbsd2.[89].*)
5004 shlibpath_overrides_runpath=no
5007 shlibpath_overrides_runpath=yes
5009 esac
5010 else
5011 shlibpath_overrides_runpath=yes
5015 os2*)
5016 libname_spec='$name'
5017 shrext=".dll"
5018 need_lib_prefix=no
5019 library_names_spec='$libname${shared_ext} $libname.a'
5020 dynamic_linker='OS/2 ld.exe'
5021 shlibpath_var=LIBPATH
5024 osf3* | osf4* | osf5*)
5025 version_type=osf
5026 need_lib_prefix=no
5027 need_version=no
5028 soname_spec='${libname}${release}${shared_ext}$major'
5029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5030 shlibpath_var=LD_LIBRARY_PATH
5031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5035 sco3.2v5*)
5036 version_type=osf
5037 soname_spec='${libname}${release}${shared_ext}$major'
5038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5039 shlibpath_var=LD_LIBRARY_PATH
5042 solaris*)
5043 version_type=linux
5044 need_lib_prefix=no
5045 need_version=no
5046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5047 soname_spec='${libname}${release}${shared_ext}$major'
5048 shlibpath_var=LD_LIBRARY_PATH
5049 shlibpath_overrides_runpath=yes
5050 hardcode_into_libs=yes
5051 # ldd complains unless libraries are executable
5052 postinstall_cmds='chmod +x $lib'
5055 sunos4*)
5056 version_type=sunos
5057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5059 shlibpath_var=LD_LIBRARY_PATH
5060 shlibpath_overrides_runpath=yes
5061 if test "$with_gnu_ld" = yes; then
5062 need_lib_prefix=no
5064 need_version=yes
5067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5068 version_type=linux
5069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5070 soname_spec='${libname}${release}${shared_ext}$major'
5071 shlibpath_var=LD_LIBRARY_PATH
5072 case $host_vendor in
5073 sni)
5074 shlibpath_overrides_runpath=no
5075 need_lib_prefix=no
5076 export_dynamic_flag_spec='${wl}-Blargedynsym'
5077 runpath_var=LD_RUN_PATH
5079 siemens)
5080 need_lib_prefix=no
5082 motorola)
5083 need_lib_prefix=no
5084 need_version=no
5085 shlibpath_overrides_runpath=no
5086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5088 esac
5091 sysv4*MP*)
5092 if test -d /usr/nec ;then
5093 version_type=linux
5094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5095 soname_spec='$libname${shared_ext}.$major'
5096 shlibpath_var=LD_LIBRARY_PATH
5100 uts4*)
5101 version_type=linux
5102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5103 soname_spec='${libname}${release}${shared_ext}$major'
5104 shlibpath_var=LD_LIBRARY_PATH
5108 dynamic_linker=no
5110 esac
5111 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5112 echo "${ECHO_T}$dynamic_linker" >&6
5113 test "$dynamic_linker" = no && can_build_shared=no
5116 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5117 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5118 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 libltdl_cv_shlibpath_var="$shlibpath_var"
5123 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5124 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5125 if test -n "$libltdl_cv_shlibpath_var"; then
5127 cat >>confdefs.h <<_ACEOF
5128 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5129 _ACEOF
5135 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5138 # See if the user has requested runtime debugging.
5139 LIBGCJDEBUG="disable"
5141 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5142 if test "${enable_libgcj_debug+set}" = set; then
5143 enableval="$enable_libgcj_debug"
5144 if test "$enable_libgcj_debug" = yes; then
5146 cat >>confdefs.h <<\_ACEOF
5147 #define DEBUG 1
5148 _ACEOF
5150 LIBGCJDEBUG="enable"
5155 # Check whether --with-escher or --without-escher was given.
5156 if test "${with_escher+set}" = set; then
5157 withval="$with_escher"
5160 case "$with_escher" in
5162 use_escher=false
5164 "no")
5165 use_escher=false
5167 "yes")
5168 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5169 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5170 { (exit 1); exit 1; }; }
5173 use_escher=true
5175 esac
5177 # Determine which AWT peer libraries to build
5178 # Check whether --enable-java-awt or --disable-java-awt was given.
5179 if test "${enable_java_awt+set}" = set; then
5180 enableval="$enable_java_awt"
5184 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5185 use_xlib_awt=""
5186 use_gtk_awt=""
5187 use_qt_awt=""
5188 use_x_awt=""
5189 # The default toolkit to use is the first one specified.
5190 TOOLKIT=
5193 for peer in $peerlibs ; do
5194 case $peer in
5195 xlib)
5196 if test "$no_x" = yes; then
5197 echo "*** xlib peers requested but no X library available" 1>&2
5198 exit 1
5199 else
5200 use_xlib_awt="yes"
5201 if test -z "$TOOLKIT"; then
5202 TOOLKIT=gnu.awt.xlib.XToolkit
5206 gtk)
5207 if test "$no_x" = yes; then
5208 echo "*** gtk peers requested but no X library available" 1>&2
5209 exit 1
5210 else
5211 use_gtk_awt=yes
5212 if test -z "$TOOLKIT"; then
5213 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5218 if test "$no_x" = yes; then
5219 # Perhaps we should admit the possibility of embedded Qt.
5220 echo "*** Qt peers requested but no X library available" 1>&2
5221 exit 1
5222 else
5223 use_qt_awt=yes
5224 if test -z "$TOOLKIT"; then
5225 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5230 use_x_awt=yes
5231 if test -z "$TOOLKIT"; then
5232 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5236 use_xlib_awt=
5237 use_gtk_awt=
5238 use_qt_awt=
5239 use_x_awt=
5240 break
5243 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5244 exit 1
5245 esac
5246 done
5250 if test "$use_xlib_awt" = yes; then
5251 XLIB_AWT_TRUE=
5252 XLIB_AWT_FALSE='#'
5253 else
5254 XLIB_AWT_TRUE='#'
5255 XLIB_AWT_FALSE=
5260 if test "$use_x_awt" = yes; then
5261 X_AWT_TRUE=
5262 X_AWT_FALSE='#'
5263 else
5264 X_AWT_TRUE='#'
5265 X_AWT_FALSE=
5270 cat >>confdefs.h <<_ACEOF
5271 #define AWT_TOOLKIT "$TOOLKIT"
5272 _ACEOF
5276 cat >>confdefs.h <<_ACEOF
5277 #define LIBGCJ_PREFIX "$prefix"
5278 _ACEOF
5281 # Create standard.omit based on decisions we just made.
5282 cp $srcdir/standard.omit.in standard.omit
5283 if test "$use_xlib_awt" != yes; then
5284 echo gnu/awt/xlib >> standard.omit
5285 echo gnu/gcj/xlib >> standard.omit
5287 if test "$use_x_awt" != yes; then
5288 echo gnu/java/awt/peer/x >> standard.omit
5291 # Tools that need to be compiled against classpath's tools classes
5292 : > vm-tools-packages
5293 for package in gnu/gcj/tools/gc_analyze ; do
5294 echo $package >> standard.omit
5295 echo $package >> vm-tools-packages
5296 done
5298 if test -z "${with_multisubdir}"; then
5299 builddotdot=.
5300 else
5301 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5304 NATIVE=yes
5306 # Which gcj and host gcj (for ecjx) do we use?
5307 which_gcj=default
5308 host_exeext=${ac_exeext}
5309 GCJ_FOR_ECJX=
5310 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5311 if test -n "${with_cross_host}"; then
5312 # We are being configured with a cross compiler. We can't
5313 # use ac_exeext, because that is for the target platform.
5314 NATIVE=no
5315 cross_host_exeext=
5316 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5317 case "${with_cross_host}" in
5318 *mingw* | *cygwin*)
5319 cross_host_exeext=.exe
5321 esac
5322 host_exeext=${cross_host_exeext}
5323 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5324 if test x"$build_noncanonical" = x"$with_cross_host"; then
5325 # Ordinary cross (host!=target and host=build)
5326 which_gcj=built
5327 else
5328 # Canadian cross (host!=target and host!=build)
5329 which_gcj=cross
5331 else
5332 which_gcj=cross
5334 else
5335 # We are being configured with a native or crossed-native compiler
5336 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5337 if test x"$build" = x"$host"; then
5338 # True native build (host=target and host=build)
5339 which_gcj=built
5340 else
5341 # Crossed-native build (host=target and host!=build)
5342 which_gcj=cross
5344 else
5345 which_gcj=path
5348 case "${which_gcj}" in
5349 built)
5350 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5351 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5353 cross)
5354 if test "x${with_newlib}" = "xyes"; then
5355 # FIXME (comment): Why is this needed?
5356 GCC_UNWIND_INCLUDE=
5357 GCJ="${target_noncanonical}-gcj"
5358 else
5359 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5361 GCJH='$(target_noncanonical)-gcjh'
5363 path)
5364 GCJ="gcj -B`${PWDCMD-pwd}`/"
5365 GCJH=gcjh
5367 esac
5373 # Create it, so that compile/link tests don't fail
5374 test -f libgcj.spec || touch libgcj.spec
5378 # Set up to configure Classpath.
5379 # FIXME: no supported way to pass args in autoconf.
5380 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5381 # Disable tool wrappers to avoid ltdl.h configure check.
5382 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5383 ac_configure_args="$ac_configure_args --disable-load-library"
5384 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5385 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5386 dir1=`cd $srcdir && pwd`
5387 dir2=`pwd`
5388 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5389 ac_configure_args="$ac_configure_args --disable-core-jni"
5390 ac_configure_args="$ac_configure_args --disable-examples"
5391 ac_configure_args="$ac_configure_args --with-glibj=build"
5392 if test "$plugin_enabled" != yes; then
5393 ac_configure_args="$ac_configure_args --disable-plugin"
5395 if test "$gconf_enabled" != yes; then
5396 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5397 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5399 if test "$use_gtk_awt" != yes; then
5400 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5402 if test "$use_qt_awt" != yes; then
5403 ac_configure_args="$ac_configure_args --disable-qt-peer"
5404 else
5405 # We need this as qt is disabled by default in classpath.
5406 ac_configure_args="$ac_configure_args --enable-qt-peer"
5408 if test "$use_x_awt" != yes; then
5409 ac_configure_args="$ac_configure_args --without-escher"
5410 else
5411 # We need this as escher is disabled by default in classpath.
5412 if test "$use_escher" != true; then
5413 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5414 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5415 { (exit 1); exit 1; }; }
5416 else
5417 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5420 # -Werror causes unavoidable problems in code using alsa.
5421 ac_configure_args="$ac_configure_args --disable-Werror"
5423 # Only use libltdl for non-newlib builds.
5424 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5425 case $enable_ltdl_convenience in
5426 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5427 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5429 "") enable_ltdl_convenience=yes
5430 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5431 esac
5432 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5433 LTDLINCL='-I${top_srcdir}/''libltdl'
5434 # For backwards non-gettext consistent compatibility...
5435 INCLTDL="$LTDLINCL"
5437 enable_dlopen=yes
5441 DIRLTDL=libltdl
5443 cat >>confdefs.h <<\_ACEOF
5444 #define USE_LTDL 1
5445 _ACEOF
5447 # Sigh. Libtool's macro doesn't do the right thing.
5448 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5449 # FIXME: this is a hack.
5450 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5451 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5458 macro_version='2.1a'
5459 macro_revision='1.2435'
5472 ltmain="$ac_aux_dir/ltmain.sh"
5474 # Set options
5477 enable_win32_dll=no
5480 # Check whether --enable-shared or --disable-shared was given.
5481 if test "${enable_shared+set}" = set; then
5482 enableval="$enable_shared"
5483 p=${PACKAGE-default}
5484 case $enableval in
5485 yes) enable_shared=yes ;;
5486 no) enable_shared=no ;;
5488 enable_shared=no
5489 # Look at the argument we got. We use all the common list separators.
5490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5491 for pkg in $enableval; do
5492 IFS="$lt_save_ifs"
5493 if test "X$pkg" = "X$p"; then
5494 enable_shared=yes
5496 done
5497 IFS="$lt_save_ifs"
5499 esac
5500 else
5501 enable_shared=yes
5511 # Check whether --enable-static or --disable-static was given.
5512 if test "${enable_static+set}" = set; then
5513 enableval="$enable_static"
5514 p=${PACKAGE-default}
5515 case $enableval in
5516 yes) enable_static=yes ;;
5517 no) enable_static=no ;;
5519 enable_static=no
5520 # Look at the argument we got. We use all the common list separators.
5521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5522 for pkg in $enableval; do
5523 IFS="$lt_save_ifs"
5524 if test "X$pkg" = "X$p"; then
5525 enable_static=yes
5527 done
5528 IFS="$lt_save_ifs"
5530 esac
5531 else
5532 enable_static=yes
5543 # Check whether --with-pic or --without-pic was given.
5544 if test "${with_pic+set}" = set; then
5545 withval="$with_pic"
5546 pic_mode="$withval"
5547 else
5548 pic_mode=default
5551 test -z "$pic_mode" && pic_mode=default
5559 # Check whether --enable-fast-install or --disable-fast-install was given.
5560 if test "${enable_fast_install+set}" = set; then
5561 enableval="$enable_fast_install"
5562 p=${PACKAGE-default}
5563 case $enableval in
5564 yes) enable_fast_install=yes ;;
5565 no) enable_fast_install=no ;;
5567 enable_fast_install=no
5568 # Look at the argument we got. We use all the common list separators.
5569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5570 for pkg in $enableval; do
5571 IFS="$lt_save_ifs"
5572 if test "X$pkg" = "X$p"; then
5573 enable_fast_install=yes
5575 done
5576 IFS="$lt_save_ifs"
5578 esac
5579 else
5580 enable_fast_install=yes
5590 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5591 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5592 if test "${lt_cv_path_SED+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 # Loop through the user's path and test for sed and gsed.
5596 # Then use that list of sed's as ones to test for truncation.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for lt_ac_prog in sed gsed; do
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5605 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5607 done
5608 done
5609 done
5610 IFS=$as_save_IFS
5611 lt_ac_max=0
5612 lt_ac_count=0
5613 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5614 # along with /bin/sed that truncates output.
5615 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5616 test ! -f $lt_ac_sed && continue
5617 cat /dev/null > conftest.in
5618 lt_ac_count=0
5619 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5620 # Check for GNU sed and select it if it is found.
5621 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5622 lt_cv_path_SED=$lt_ac_sed
5623 break
5625 while true; do
5626 cat conftest.in conftest.in >conftest.tmp
5627 mv conftest.tmp conftest.in
5628 cp conftest.in conftest.nl
5629 echo >>conftest.nl
5630 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5631 cmp -s conftest.out conftest.nl || break
5632 # 10000 chars as input seems more than enough
5633 test $lt_ac_count -gt 10 && break
5634 lt_ac_count=`expr $lt_ac_count + 1`
5635 if test $lt_ac_count -gt $lt_ac_max; then
5636 lt_ac_max=$lt_ac_count
5637 lt_cv_path_SED=$lt_ac_sed
5639 done
5640 done
5644 SED=$lt_cv_path_SED
5646 echo "$as_me:$LINENO: result: $SED" >&5
5647 echo "${ECHO_T}$SED" >&6
5649 test -z "$SED" && SED=sed
5650 Xsed="$SED -e 1s/^X//"
5662 echo "$as_me:$LINENO: checking for egrep" >&5
5663 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5664 if test "${ac_cv_prog_egrep+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5668 then ac_cv_prog_egrep='grep -E'
5669 else ac_cv_prog_egrep='egrep'
5672 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5673 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5674 EGREP=$ac_cv_prog_egrep
5677 echo "$as_me:$LINENO: checking for fgrep" >&5
5678 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5679 if test "${ac_cv_prog_fgrep+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5683 then ac_cv_prog_fgrep='grep -F'
5684 else ac_cv_prog_fgrep='fgrep'
5687 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5688 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5689 FGREP=$ac_cv_prog_fgrep
5692 test -z "$GREP" && GREP=grep
5712 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5713 if test "${with_gnu_ld+set}" = set; then
5714 withval="$with_gnu_ld"
5715 test "$withval" = no || with_gnu_ld=yes
5716 else
5717 with_gnu_ld=no
5719 ac_prog=ld
5720 if test "$GCC" = yes; then
5721 # Check if gcc -print-prog-name=ld gives a path.
5722 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5723 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5724 case $host in
5725 *-*-mingw*)
5726 # gcc leaves a trailing carriage return which upsets mingw
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730 esac
5731 case $ac_prog in
5732 # Accept absolute paths.
5733 [\\/]* | ?:[\\/]*)
5734 re_direlt='/[^/][^/]*/\.\./'
5735 # Canonicalize the pathname of ld
5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5739 done
5740 test -z "$LD" && LD="$ac_prog"
5743 # If it fails, then pretend we aren't using GCC.
5744 ac_prog=ld
5747 # If it is relative, then search for the first ld in PATH.
5748 with_gnu_ld=unknown
5750 esac
5751 elif test "$with_gnu_ld" = yes; then
5752 echo "$as_me:$LINENO: checking for GNU ld" >&5
5753 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5754 else
5755 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5756 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5758 if test "${lt_cv_path_LD+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 if test -z "$LD"; then
5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763 for ac_dir in $PATH; do
5764 IFS="$lt_save_ifs"
5765 test -z "$ac_dir" && ac_dir=.
5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5767 lt_cv_path_LD="$ac_dir/$ac_prog"
5768 # Check to see if the program is GNU ld. I'd rather use --version,
5769 # but apparently some variants of GNU ld only accept -v.
5770 # Break only if it was the GNU/non-GNU ld that we prefer.
5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 test "$with_gnu_ld" != no && break
5776 test "$with_gnu_ld" != yes && break
5778 esac
5780 done
5781 IFS="$lt_save_ifs"
5782 else
5783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5787 LD="$lt_cv_path_LD"
5788 if test -n "$LD"; then
5789 echo "$as_me:$LINENO: result: $LD" >&5
5790 echo "${ECHO_T}$LD" >&6
5791 else
5792 echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6
5795 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5796 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5797 { (exit 1); exit 1; }; }
5798 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5799 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5800 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5804 case `$LD -v 2>&1 </dev/null` in
5805 *GNU* | *'with BFD'*)
5806 lt_cv_prog_gnu_ld=yes
5809 lt_cv_prog_gnu_ld=no
5811 esac
5813 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5814 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5815 with_gnu_ld=$lt_cv_prog_gnu_ld
5826 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5827 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5828 if test "${lt_cv_path_NM+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 if test -n "$NM"; then
5832 # Let the user override the test.
5833 lt_cv_path_NM="$NM"
5834 else
5835 lt_nm_to_check="${ac_tool_prefix}nm"
5836 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5837 lt_nm_to_check="$lt_nm_to_check nm"
5839 for lt_tmp_nm in $lt_nm_to_check; do
5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5841 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5842 IFS="$lt_save_ifs"
5843 test -z "$ac_dir" && ac_dir=.
5844 tmp_nm="$ac_dir/$lt_tmp_nm"
5845 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5846 # Check to see if the nm accepts a BSD-compat flag.
5847 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5848 # nm: unknown option "B" ignored
5849 # Tru64's nm complains that /dev/null is an invalid object file
5850 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5851 */dev/null* | *'Invalid file or object type'*)
5852 lt_cv_path_NM="$tmp_nm -B"
5853 break
5856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5857 */dev/null*)
5858 lt_cv_path_NM="$tmp_nm -p"
5859 break
5862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5863 continue # so that we can try to find one that supports BSD flags
5865 esac
5867 esac
5869 done
5870 IFS="$lt_save_ifs"
5871 done
5872 : ${lt_cv_path_NM=no}
5875 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5876 echo "${ECHO_T}$lt_cv_path_NM" >&6
5877 if test "$lt_cv_path_NM" != "no"; then
5878 NM="$lt_cv_path_NM"
5879 else
5880 # Didn't find any BSD compatible name lister, look for dumpbin.
5881 if test -n "$ac_tool_prefix"; then
5882 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 if test -n "$DUMPBIN"; then
5892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5910 DUMPBIN=$ac_cv_prog_DUMPBIN
5911 if test -n "$DUMPBIN"; then
5912 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5913 echo "${ECHO_T}$DUMPBIN" >&6
5914 else
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5919 test -n "$DUMPBIN" && break
5920 done
5922 if test -z "$DUMPBIN"; then
5923 ac_ct_DUMPBIN=$DUMPBIN
5924 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5926 # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 if test -n "$ac_ct_DUMPBIN"; then
5934 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5953 if test -n "$ac_ct_DUMPBIN"; then
5954 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5955 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5961 test -n "$ac_ct_DUMPBIN" && break
5962 done
5963 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5965 DUMPBIN=$ac_ct_DUMPBIN
5969 if test "$DUMPBIN" != ":"; then
5970 NM="$DUMPBIN"
5973 test -z "$NM" && NM=nm
5980 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5981 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5982 if test "${lt_cv_nm_interface+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 lt_cv_nm_interface="BSD nm"
5986 echo "int some_variable = 0;" > conftest.$ac_ext
5987 (eval echo "\"\$as_me:5987: $ac_compile\"" >&5)
5988 (eval "$ac_compile" 2>conftest.err)
5989 cat conftest.err >&5
5990 (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5992 cat conftest.err >&5
5993 (eval echo "\"\$as_me:5993: output\"" >&5)
5994 cat conftest.out >&5
5995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5996 lt_cv_nm_interface="MS dumpbin"
5998 rm -f conftest*
6000 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6001 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6003 # find the maximum length of command line arguments
6004 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6005 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6006 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6010 teststring="ABCD"
6012 case $build_os in
6013 msdosdjgpp*)
6014 # On DJGPP, this test can blow up pretty badly due to problems in libc
6015 # (any single argument exceeding 2000 bytes causes a buffer overrun
6016 # during glob expansion). Even if it were fixed, the result of this
6017 # check would be larger than it should be.
6018 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6021 gnu*)
6022 # Under GNU Hurd, this test is not required because there is
6023 # no limit to the length of command line arguments.
6024 # Libtool will interpret -1 as no limit whatsoever
6025 lt_cv_sys_max_cmd_len=-1;
6028 cygwin* | mingw*)
6029 # On Win9x/ME, this test blows up -- it succeeds, but takes
6030 # about 5 minutes as the teststring grows exponentially.
6031 # Worse, since 9x/ME are not pre-emptively multitasking,
6032 # you end up with a "frozen" computer, even though with patience
6033 # the test eventually succeeds (with a max line length of 256k).
6034 # Instead, let's just punt: use the minimum linelength reported by
6035 # all of the supported platforms: 8192 (on NT/2K/XP).
6036 lt_cv_sys_max_cmd_len=8192;
6039 amigaos*)
6040 # On AmigaOS with pdksh, this test takes hours, literally.
6041 # So we just punt and use a minimum line length of 8192.
6042 lt_cv_sys_max_cmd_len=8192;
6045 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6046 # This has been around since 386BSD, at least. Likely further.
6047 if test -x /sbin/sysctl; then
6048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6049 elif test -x /usr/sbin/sysctl; then
6050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6051 else
6052 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6054 # And add a safety zone
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6059 interix*)
6060 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6061 lt_cv_sys_max_cmd_len=196608
6064 osf*)
6065 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6066 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6067 # nice to cause kernel panics so lets avoid the loop below.
6068 # First set a reasonable default.
6069 lt_cv_sys_max_cmd_len=16384
6071 if test -x /sbin/sysconfig; then
6072 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6073 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6074 esac
6077 sco3.2v5*)
6078 lt_cv_sys_max_cmd_len=102400
6080 sysv5* | sco5v6* | sysv4.2uw2*)
6081 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6082 if test -n "$kargmax"; then
6083 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6084 else
6085 lt_cv_sys_max_cmd_len=32768
6089 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6090 if test -n $lt_cv_sys_max_cmd_len; then
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6093 else
6094 # Make teststring a little bigger before we do anything with it.
6095 # a 1K string should be a reasonable start.
6096 for i in 1 2 3 4 5 6 7 8 ; do
6097 teststring=$teststring$teststring
6098 done
6099 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6100 # If test is not a shell built-in, we'll probably end up computing a
6101 # maximum length that is only half of the actual maximum length, but
6102 # we can't tell.
6103 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6104 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6105 test $i != 17 # 1/2 MB should be enough
6107 i=`expr $i + 1`
6108 teststring=$teststring$teststring
6109 done
6110 # Only check the string length outside the loop.
6111 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6112 teststring=
6113 # Add a significant safety factor because C++ compilers can tack on
6114 # massive amounts of additional arguments before passing them to the
6115 # linker. It appears as though 1/2 is a usable value.
6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6119 esac
6123 if test -n $lt_cv_sys_max_cmd_len ; then
6124 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6125 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6126 else
6127 echo "$as_me:$LINENO: result: none" >&5
6128 echo "${ECHO_T}none" >&6
6130 max_cmd_len=$lt_cv_sys_max_cmd_len
6137 : ${CP="cp -f"}
6138 : ${MV="mv -f"}
6139 : ${RM="rm -f"}
6141 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6142 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6143 # Try some XSI features
6144 xsi_shell=no
6145 ( _lt_dummy="a/b/c"
6146 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6147 = c,a/b,, ) >/dev/null 2>&1 \
6148 && xsi_shell=yes
6149 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6150 echo "${ECHO_T}$xsi_shell" >&6
6153 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6154 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6155 lt_shell_append=no
6156 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6157 >/dev/null 2>&1 \
6158 && lt_shell_append=yes
6159 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6160 echo "${ECHO_T}$lt_shell_append" >&6
6163 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6164 lt_unset=unset
6165 else
6166 lt_unset=false
6173 # test EBCDIC or ASCII
6174 case `echo X|tr X '\101'` in
6175 A) # ASCII based system
6176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6177 lt_SP2NL='tr \040 \012'
6178 lt_NL2SP='tr \015\012 \040\040'
6180 *) # EBCDIC based system
6181 lt_SP2NL='tr \100 \n'
6182 lt_NL2SP='tr \r\n \100\100'
6184 esac
6194 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6195 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6196 if test "${lt_cv_ld_reload_flag+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 lt_cv_ld_reload_flag='-r'
6201 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6202 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6203 reload_flag=$lt_cv_ld_reload_flag
6204 case $reload_flag in
6205 "" | " "*) ;;
6206 *) reload_flag=" $reload_flag" ;;
6207 esac
6208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6209 case $host_os in
6210 darwin*)
6211 if test "$GCC" = yes; then
6212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6213 else
6214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6217 esac
6228 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6229 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6230 if test "${lt_cv_deplibs_check_method+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 lt_cv_file_magic_cmd='$MAGIC_CMD'
6234 lt_cv_file_magic_test_file=
6235 lt_cv_deplibs_check_method='unknown'
6236 # Need to set the preceding variable on all platforms that support
6237 # interlibrary dependencies.
6238 # 'none' -- dependencies not supported.
6239 # `unknown' -- same as none, but documents that we really don't know.
6240 # 'pass_all' -- all dependencies passed with no checks.
6241 # 'test_compile' -- check by making test program.
6242 # 'file_magic [[regex]]' -- check by looking for files in library path
6243 # which responds to the $file_magic_cmd with a given extended regex.
6244 # If you have `file' or equivalent on your system and you're not sure
6245 # whether `pass_all' will *always* work, you probably want this one.
6247 case $host_os in
6248 aix[4-9]*)
6249 lt_cv_deplibs_check_method=pass_all
6252 beos*)
6253 lt_cv_deplibs_check_method=pass_all
6256 bsdi[45]*)
6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6258 lt_cv_file_magic_cmd='/usr/bin/file -L'
6259 lt_cv_file_magic_test_file=/shlib/libc.so
6262 cygwin*)
6263 # func_win32_libid is a shell function defined in ltmain.sh
6264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6265 lt_cv_file_magic_cmd='func_win32_libid'
6268 mingw* | pw32*)
6269 # Base MSYS/MinGW do not provide the 'file' command needed by
6270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6271 # unless we find 'file', for example because we are cross-compiling.
6272 if ( file / ) >/dev/null 2>&1; then
6273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274 lt_cv_file_magic_cmd='func_win32_libid'
6275 else
6276 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6277 lt_cv_file_magic_cmd='$OBJDUMP -f'
6281 darwin* | rhapsody*)
6282 lt_cv_deplibs_check_method=pass_all
6285 freebsd* | dragonfly*)
6286 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6287 case $host_cpu in
6288 i*86 )
6289 # Not sure whether the presence of OpenBSD here was a mistake.
6290 # Let's accept both of them until this is cleared up.
6291 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6292 lt_cv_file_magic_cmd=/usr/bin/file
6293 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6295 esac
6296 else
6297 lt_cv_deplibs_check_method=pass_all
6301 gnu*)
6302 lt_cv_deplibs_check_method=pass_all
6305 hpux10.20* | hpux11*)
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 case $host_cpu in
6308 ia64*)
6309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6312 hppa*64*)
6313 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]'
6314 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6318 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6320 esac
6323 interix[3-9]*)
6324 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6328 irix5* | irix6* | nonstopux*)
6329 case $LD in
6330 *-32|*"-32 ") libmagic=32-bit;;
6331 *-n32|*"-n32 ") libmagic=N32;;
6332 *-64|*"-64 ") libmagic=64-bit;;
6333 *) libmagic=never-match;;
6334 esac
6335 lt_cv_deplibs_check_method=pass_all
6338 # This must be Linux ELF.
6339 linux* | k*bsd*-gnu)
6340 lt_cv_deplibs_check_method=pass_all
6343 netbsd*)
6344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6346 else
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6351 newos6*)
6352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6353 lt_cv_file_magic_cmd=/usr/bin/file
6354 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6357 *nto* | *qnx*)
6358 lt_cv_deplibs_check_method=pass_all
6361 openbsd*)
6362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6364 else
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6369 osf3* | osf4* | osf5*)
6370 lt_cv_deplibs_check_method=pass_all
6373 rdos*)
6374 lt_cv_deplibs_check_method=pass_all
6377 solaris*)
6378 lt_cv_deplibs_check_method=pass_all
6381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6382 lt_cv_deplibs_check_method=pass_all
6385 sysv4 | sysv4.3*)
6386 case $host_vendor in
6387 motorola)
6388 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]'
6389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6391 ncr)
6392 lt_cv_deplibs_check_method=pass_all
6394 sequent)
6395 lt_cv_file_magic_cmd='/bin/file'
6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6398 sni)
6399 lt_cv_file_magic_cmd='/bin/file'
6400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6401 lt_cv_file_magic_test_file=/lib/libc.so
6403 siemens)
6404 lt_cv_deplibs_check_method=pass_all
6407 lt_cv_deplibs_check_method=pass_all
6409 esac
6412 tpf*)
6413 lt_cv_deplibs_check_method=pass_all
6415 esac
6418 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ar; ac_word=$2
6438 echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6440 if test "${ac_cv_prog_AR+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 if test -n "$AR"; then
6444 ac_cv_prog_AR="$AR" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_AR="${ac_tool_prefix}ar"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6457 done
6458 done
6462 AR=$ac_cv_prog_AR
6463 if test -n "$AR"; then
6464 echo "$as_me:$LINENO: result: $AR" >&5
6465 echo "${ECHO_T}$AR" >&6
6466 else
6467 echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6
6472 if test -z "$ac_cv_prog_AR"; then
6473 ac_ct_AR=$AR
6474 # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy ar; ac_word=$2
6476 echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -n "$ac_ct_AR"; then
6482 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_ac_ct_AR="ar"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6495 done
6496 done
6498 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6502 if test -n "$ac_ct_AR"; then
6503 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6504 echo "${ECHO_T}$ac_ct_AR" >&6
6505 else
6506 echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6510 AR=$ac_ct_AR
6511 else
6512 AR="$ac_cv_prog_AR"
6515 test -z "$AR" && AR=ar
6516 test -z "$AR_FLAGS" && AR_FLAGS=cru
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}strip; ac_word=$2
6531 echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533 if test "${ac_cv_prog_STRIP+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 if test -n "$STRIP"; then
6537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6555 STRIP=$ac_cv_prog_STRIP
6556 if test -n "$STRIP"; then
6557 echo "$as_me:$LINENO: result: $STRIP" >&5
6558 echo "${ECHO_T}$STRIP" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6
6565 if test -z "$ac_cv_prog_STRIP"; then
6566 ac_ct_STRIP=$STRIP
6567 # Extract the first word of "strip", so it can be a program name with args.
6568 set dummy strip; ac_word=$2
6569 echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 if test -n "$ac_ct_STRIP"; then
6575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_ac_ct_STRIP="strip"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6588 done
6589 done
6591 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6595 if test -n "$ac_ct_STRIP"; then
6596 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6597 echo "${ECHO_T}$ac_ct_STRIP" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6
6603 STRIP=$ac_ct_STRIP
6604 else
6605 STRIP="$ac_cv_prog_STRIP"
6608 test -z "$STRIP" && STRIP=:
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618 echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6620 if test "${ac_cv_prog_RANLIB+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 if test -n "$RANLIB"; then
6624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6637 done
6638 done
6642 RANLIB=$ac_cv_prog_RANLIB
6643 if test -n "$RANLIB"; then
6644 echo "$as_me:$LINENO: result: $RANLIB" >&5
6645 echo "${ECHO_T}$RANLIB" >&6
6646 else
6647 echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6
6652 if test -z "$ac_cv_prog_RANLIB"; then
6653 ac_ct_RANLIB=$RANLIB
6654 # Extract the first word of "ranlib", so it can be a program name with args.
6655 set dummy ranlib; ac_word=$2
6656 echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 if test -n "$ac_ct_RANLIB"; then
6662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_ac_ct_RANLIB="ranlib"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6675 done
6676 done
6678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6682 if test -n "$ac_ct_RANLIB"; then
6683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6685 else
6686 echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6
6690 RANLIB=$ac_ct_RANLIB
6691 else
6692 RANLIB="$ac_cv_prog_RANLIB"
6695 test -z "$RANLIB" && RANLIB=:
6702 # Determine commands to create old-style static archives.
6703 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6704 old_postinstall_cmds='chmod 644 $oldlib'
6705 old_postuninstall_cmds=
6707 if test -n "$RANLIB"; then
6708 case $host_os in
6709 openbsd*)
6710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6715 esac
6716 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6752 # If no C compiler was specified, use CC.
6753 LTCC=${LTCC-"$CC"}
6755 # If no C compiler flags were specified, use CFLAGS.
6756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758 # Allow CC to be a program name with arguments.
6759 compiler=$CC
6762 # Check for command to grab the raw symbol name followed by C symbol from nm.
6763 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6764 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6765 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6769 # These are sane defaults that work on at least a few old systems.
6770 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6772 # Character class describing NM global symbol codes.
6773 symcode='[BCDEGRST]'
6775 # Regexp to match symbols that can be accessed directly from C.
6776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6778 # Define system-specific variables.
6779 case $host_os in
6780 aix*)
6781 symcode='[BCDT]'
6783 cygwin* | mingw* | pw32*)
6784 symcode='[ABCDGISTW]'
6786 hpux*)
6787 if test "$host_cpu" = ia64; then
6788 symcode='[ABCDEGRST]'
6791 irix* | nonstopux*)
6792 symcode='[BCDEGRST]'
6794 osf*)
6795 symcode='[BCDEGQRST]'
6797 solaris*)
6798 symcode='[BDRT]'
6800 sco3.2v5*)
6801 symcode='[DT]'
6803 sysv4.2uw2*)
6804 symcode='[DT]'
6806 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6807 symcode='[ABDT]'
6809 sysv4)
6810 symcode='[DFNSTU]'
6812 esac
6814 # If we're using GNU nm, then use its standard symbol codes.
6815 case `$NM -V 2>&1` in
6816 *GNU* | *'with BFD'*)
6817 symcode='[ABCDGIRSTW]' ;;
6818 esac
6820 # Transform an extracted symbol line into a proper C declaration.
6821 # Some systems (esp. on ia64) link data and code symbols differently,
6822 # so use this general approach.
6823 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6825 # Transform an extracted symbol line into symbol name and symbol address
6826 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6828 # Handle CRLF in mingw tool chain
6829 opt_cr=
6830 case $build_os in
6831 mingw*)
6832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6834 esac
6836 # Try without a prefix underscore, then with it.
6837 for ac_symprfx in "" "_"; do
6839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6840 symxfrm="\\1 $ac_symprfx\\2 \\2"
6842 # Write the raw and C identifiers.
6843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6844 # Fake it for dumpbin and say T for any non-static function
6845 # and D for any global variable.
6846 # Also find C++ and __fastcall symbols from MSVC++,
6847 # which start with @ or ?.
6848 lt_cv_sys_global_symbol_pipe="$AWK '"\
6849 " {last_section=section; section=\$ 3};"\
6850 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6851 " \$ 0!~/External *\|/{next};"\
6852 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6853 " {if(hide[section]) next};"\
6854 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6855 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6856 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6857 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6858 " ' prfx=^$ac_symprfx"
6859 else
6860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6863 # Check to see that the pipe works correctly.
6864 pipe_works=no
6866 rm -f conftest*
6867 cat > conftest.$ac_ext <<_LT_EOF
6868 #ifdef __cplusplus
6869 extern "C" {
6870 #endif
6871 char nm_test_var;
6872 void nm_test_func(void);
6873 void nm_test_func(void){}
6874 #ifdef __cplusplus
6876 #endif
6877 int main(){nm_test_var='a';nm_test_func();return(0);}
6878 _LT_EOF
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; then
6885 # Now try to grab the symbols.
6886 nlist=conftest.nm
6887 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6888 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && test -s "$nlist"; then
6892 # Try sorting and uniquifying the output.
6893 if sort "$nlist" | uniq > "$nlist"T; then
6894 mv -f "$nlist"T "$nlist"
6895 else
6896 rm -f "$nlist"T
6899 # Make sure that we snagged all the symbols we need.
6900 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6901 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6902 cat <<_LT_EOF > conftest.$ac_ext
6903 #ifdef __cplusplus
6904 extern "C" {
6905 #endif
6907 _LT_EOF
6908 # Now generate the symbol file.
6909 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6911 cat <<_LT_EOF >> conftest.$ac_ext
6913 /* The mapping between symbol names and symbols. */
6914 const struct {
6915 const char *name;
6916 void *address;
6918 lt__PROGRAM__LTX_preloaded_symbols[] =
6920 { "@PROGRAM@", (void *) 0 },
6921 _LT_EOF
6922 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6923 cat <<\_LT_EOF >> conftest.$ac_ext
6924 {0, (void *) 0}
6927 /* This works around a problem in FreeBSD linker */
6928 #ifdef FREEBSD_WORKAROUND
6929 static const void *lt_preloaded_setup() {
6930 return lt__PROGRAM__LTX_preloaded_symbols;
6932 #endif
6934 #ifdef __cplusplus
6936 #endif
6937 _LT_EOF
6938 # Now try linking the two files.
6939 mv conftest.$ac_objext conftstm.$ac_objext
6940 lt_save_LIBS="$LIBS"
6941 lt_save_CFLAGS="$CFLAGS"
6942 LIBS="conftstm.$ac_objext"
6943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6949 pipe_works=yes
6951 LIBS="$lt_save_LIBS"
6952 CFLAGS="$lt_save_CFLAGS"
6953 else
6954 echo "cannot find nm_test_func in $nlist" >&5
6956 else
6957 echo "cannot find nm_test_var in $nlist" >&5
6959 else
6960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6962 else
6963 echo "$progname: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 rm -f conftest* conftst*
6968 # Do not use the global_symbol_pipe unless it works.
6969 if test "$pipe_works" = yes; then
6970 break
6971 else
6972 lt_cv_sys_global_symbol_pipe=
6974 done
6978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6979 lt_cv_sys_global_symbol_to_cdecl=
6981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6982 echo "$as_me:$LINENO: result: failed" >&5
6983 echo "${ECHO_T}failed" >&6
6984 else
6985 echo "$as_me:$LINENO: result: ok" >&5
6986 echo "${ECHO_T}ok" >&6
7006 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7007 if test "${enable_libtool_lock+set}" = set; then
7008 enableval="$enable_libtool_lock"
7011 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7013 # Some flags need to be propagated to the compiler or linker for good
7014 # libtool support.
7015 case $host in
7016 ia64-*-hpux*)
7017 # Find out which ABI we are using.
7018 echo 'int i;' > conftest.$ac_ext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; then
7024 case `/usr/bin/file conftest.$ac_objext` in
7025 *ELF-32*)
7026 HPUX_IA64_MODE="32"
7028 *ELF-64*)
7029 HPUX_IA64_MODE="64"
7031 esac
7033 rm -rf conftest*
7035 *-*-irix6*)
7036 # Find out which ABI we are using.
7037 echo '#line 7037 "configure"' > conftest.$ac_ext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; then
7043 if test "$lt_cv_prog_gnu_ld" = yes; then
7044 case `/usr/bin/file conftest.$ac_objext` in
7045 *32-bit*)
7046 LD="${LD-ld} -melf32bsmip"
7048 *N32*)
7049 LD="${LD-ld} -melf32bmipn32"
7051 *64-bit*)
7052 LD="${LD-ld} -melf64bmip"
7054 esac
7055 else
7056 case `/usr/bin/file conftest.$ac_objext` in
7057 *32-bit*)
7058 LD="${LD-ld} -32"
7060 *N32*)
7061 LD="${LD-ld} -n32"
7063 *64-bit*)
7064 LD="${LD-ld} -64"
7066 esac
7069 rm -rf conftest*
7072 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7073 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7074 # Find out which ABI we are using.
7075 echo 'int i;' > conftest.$ac_ext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; then
7081 case `/usr/bin/file conftest.o` in
7082 *32-bit*)
7083 case $host in
7084 x86_64-*kfreebsd*-gnu)
7085 LD="${LD-ld} -m elf_i386_fbsd"
7087 x86_64-*linux*)
7088 LD="${LD-ld} -m elf_i386"
7090 ppc64-*linux*|powerpc64-*linux*)
7091 LD="${LD-ld} -m elf32ppclinux"
7093 s390x-*linux*)
7094 LD="${LD-ld} -m elf_s390"
7096 sparc64-*linux*)
7097 LD="${LD-ld} -m elf32_sparc"
7099 esac
7101 *64-bit*)
7102 case $host in
7103 x86_64-*kfreebsd*-gnu)
7104 LD="${LD-ld} -m elf_x86_64_fbsd"
7106 x86_64-*linux*)
7107 LD="${LD-ld} -m elf_x86_64"
7109 ppc*-*linux*|powerpc*-*linux*)
7110 LD="${LD-ld} -m elf64ppc"
7112 s390*-*linux*|s390*-*tpf*)
7113 LD="${LD-ld} -m elf64_s390"
7115 sparc*-*linux*)
7116 LD="${LD-ld} -m elf64_sparc"
7118 esac
7120 esac
7122 rm -rf conftest*
7125 *-*-sco3.2v5*)
7126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7127 SAVE_CFLAGS="$CFLAGS"
7128 CFLAGS="$CFLAGS -belf"
7129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7131 if test "${lt_cv_cc_needs_belf+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 ac_ext=c
7135 ac_cpp='$CPP $CPPFLAGS'
7136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140 if test x$gcc_no_link = xyes; then
7141 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7143 { (exit 1); exit 1; }; }
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7153 main ()
7157 return 0;
7159 _ACEOF
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162 (eval $ac_link) 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_c_werror_flag"
7170 || test ! -s conftest.err'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try='test -s conftest$ac_exeext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 lt_cv_cc_needs_belf=yes
7183 else
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 lt_cv_cc_needs_belf=no
7189 rm -f conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 ac_ext=c
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7199 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7202 CFLAGS="$SAVE_CFLAGS"
7205 sparc*-*solaris*)
7206 # Find out which ABI we are using.
7207 echo 'int i;' > conftest.$ac_ext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; then
7213 case `/usr/bin/file conftest.o` in
7214 *64-bit*)
7215 case $lt_cv_prog_gnu_ld in
7216 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7217 *) LD="${LD-ld} -64" ;;
7218 esac
7220 esac
7222 rm -rf conftest*
7224 esac
7226 need_locks="$enable_libtool_lock"
7228 ac_ext=c
7229 ac_cpp='$CPP $CPPFLAGS'
7230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7235 # On Suns, sometimes $CPP names a directory.
7236 if test -n "$CPP" && test -d "$CPP"; then
7237 CPP=
7239 if test -z "$CPP"; then
7240 if test "${ac_cv_prog_CPP+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 # Double quotes because CPP needs to be expanded
7244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7246 ac_preproc_ok=false
7247 for ac_c_preproc_warn_flag in '' yes
7249 # Use a header file that comes with gcc, so configuring glibc
7250 # with a fresh cross-compiler works.
7251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7252 # <limits.h> exists even on freestanding compilers.
7253 # On the NeXT, cc -E runs the code through the compiler's parser,
7254 # not just through cpp. "Syntax error" is here to catch this case.
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #ifdef __STDC__
7262 # include <limits.h>
7263 #else
7264 # include <assert.h>
7265 #endif
7266 Syntax error
7267 _ACEOF
7268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } >/dev/null; then
7276 if test -s conftest.err; then
7277 ac_cpp_err=$ac_c_preproc_warn_flag
7278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7279 else
7280 ac_cpp_err=
7282 else
7283 ac_cpp_err=yes
7285 if test -z "$ac_cpp_err"; then
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 # Broken: fails on valid input.
7292 continue
7294 rm -f conftest.err conftest.$ac_ext
7296 # OK, works on sane cases. Now check whether non-existent headers
7297 # can be detected and how.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <ac_nonexistent.h>
7305 _ACEOF
7306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } >/dev/null; then
7314 if test -s conftest.err; then
7315 ac_cpp_err=$ac_c_preproc_warn_flag
7316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7317 else
7318 ac_cpp_err=
7320 else
7321 ac_cpp_err=yes
7323 if test -z "$ac_cpp_err"; then
7324 # Broken: success on invalid input.
7325 continue
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 # Passes both tests.
7331 ac_preproc_ok=:
7332 break
7334 rm -f conftest.err conftest.$ac_ext
7336 done
7337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7338 rm -f conftest.err conftest.$ac_ext
7339 if $ac_preproc_ok; then
7340 break
7343 done
7344 ac_cv_prog_CPP=$CPP
7347 CPP=$ac_cv_prog_CPP
7348 else
7349 ac_cv_prog_CPP=$CPP
7351 echo "$as_me:$LINENO: result: $CPP" >&5
7352 echo "${ECHO_T}$CPP" >&6
7353 ac_preproc_ok=false
7354 for ac_c_preproc_warn_flag in '' yes
7356 # Use a header file that comes with gcc, so configuring glibc
7357 # with a fresh cross-compiler works.
7358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359 # <limits.h> exists even on freestanding compilers.
7360 # On the NeXT, cc -E runs the code through the compiler's parser,
7361 # not just through cpp. "Syntax error" is here to catch this case.
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 #ifdef __STDC__
7369 # include <limits.h>
7370 #else
7371 # include <assert.h>
7372 #endif
7373 Syntax error
7374 _ACEOF
7375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } >/dev/null; then
7383 if test -s conftest.err; then
7384 ac_cpp_err=$ac_c_preproc_warn_flag
7385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7386 else
7387 ac_cpp_err=
7389 else
7390 ac_cpp_err=yes
7392 if test -z "$ac_cpp_err"; then
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 # Broken: fails on valid input.
7399 continue
7401 rm -f conftest.err conftest.$ac_ext
7403 # OK, works on sane cases. Now check whether non-existent headers
7404 # can be detected and how.
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <ac_nonexistent.h>
7412 _ACEOF
7413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } >/dev/null; then
7421 if test -s conftest.err; then
7422 ac_cpp_err=$ac_c_preproc_warn_flag
7423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7424 else
7425 ac_cpp_err=
7427 else
7428 ac_cpp_err=yes
7430 if test -z "$ac_cpp_err"; then
7431 # Broken: success on invalid input.
7432 continue
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 # Passes both tests.
7438 ac_preproc_ok=:
7439 break
7441 rm -f conftest.err conftest.$ac_ext
7443 done
7444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445 rm -f conftest.err conftest.$ac_ext
7446 if $ac_preproc_ok; then
7448 else
7449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7450 See \`config.log' for more details." >&5
7451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7452 See \`config.log' for more details." >&2;}
7453 { (exit 1); exit 1; }; }
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7465 if test "${ac_cv_header_stdc+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 #include <stdlib.h>
7475 #include <stdarg.h>
7476 #include <string.h>
7477 #include <float.h>
7480 main ()
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_c_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 ac_cv_header_stdc=yes
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 ac_cv_header_stdc=no
7516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7518 if test $ac_cv_header_stdc = yes; then
7519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 #include <string.h>
7528 _ACEOF
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530 $EGREP "memchr" >/dev/null 2>&1; then
7532 else
7533 ac_cv_header_stdc=no
7535 rm -f conftest*
7539 if test $ac_cv_header_stdc = yes; then
7540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <stdlib.h>
7549 _ACEOF
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551 $EGREP "free" >/dev/null 2>&1; then
7553 else
7554 ac_cv_header_stdc=no
7556 rm -f conftest*
7560 if test $ac_cv_header_stdc = yes; then
7561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7562 if test "$cross_compiling" = yes; then
7564 else
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 #include <ctype.h>
7572 #if ((' ' & 0x0FF) == 0x020)
7573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7575 #else
7576 # define ISLOWER(c) \
7577 (('a' <= (c) && (c) <= 'i') \
7578 || ('j' <= (c) && (c) <= 'r') \
7579 || ('s' <= (c) && (c) <= 'z'))
7580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7581 #endif
7583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7585 main ()
7587 int i;
7588 for (i = 0; i < 256; i++)
7589 if (XOR (islower (i), ISLOWER (i))
7590 || toupper (i) != TOUPPER (i))
7591 exit(2);
7592 exit (0);
7594 _ACEOF
7595 rm -f conftest$ac_exeext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7597 (eval $ac_link) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7607 else
7608 echo "$as_me: program exited with status $ac_status" >&5
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 ( exit $ac_status )
7613 ac_cv_header_stdc=no
7615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7621 if test $ac_cv_header_stdc = yes; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define STDC_HEADERS 1
7625 _ACEOF
7629 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7640 inttypes.h stdint.h unistd.h
7642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7643 echo "$as_me:$LINENO: checking for $ac_header" >&5
7644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7656 #include <$ac_header>
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag"
7668 || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 eval "$as_ac_Header=yes"
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 eval "$as_ac_Header=no"
7687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 _ACEOF
7698 done
7702 for ac_header in dlfcn.h
7704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 $ac_includes_default
7718 #include <$ac_header>
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 eval "$as_ac_Header=yes"
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 eval "$as_ac_Header=no"
7749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7754 cat >>confdefs.h <<_ACEOF
7755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7756 _ACEOF
7760 done
7764 ac_ext=cc
7765 ac_cpp='$CXXCPP $CPPFLAGS'
7766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7769 if test -n "$ac_tool_prefix"; then
7770 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7774 echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7776 if test "${ac_cv_prog_CXX+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 if test -n "$CXX"; then
7780 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7798 CXX=$ac_cv_prog_CXX
7799 if test -n "$CXX"; then
7800 echo "$as_me:$LINENO: result: $CXX" >&5
7801 echo "${ECHO_T}$CXX" >&6
7802 else
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7807 test -n "$CXX" && break
7808 done
7810 if test -z "$CXX"; then
7811 ac_ct_CXX=$CXX
7812 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 echo "$as_me:$LINENO: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 if test -n "$ac_ct_CXX"; then
7822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_CXX="$ac_prog"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7840 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7841 if test -n "$ac_ct_CXX"; then
7842 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7843 echo "${ECHO_T}$ac_ct_CXX" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7849 test -n "$ac_ct_CXX" && break
7850 done
7851 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7853 CXX=$ac_ct_CXX
7857 # Provide some information about the compiler.
7858 echo "$as_me:$LINENO:" \
7859 "checking for C++ compiler version" >&5
7860 ac_compiler=`set X $ac_compile; echo $2`
7861 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7862 (eval $ac_compiler --version </dev/null >&5) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }
7866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7867 (eval $ac_compiler -v </dev/null >&5) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }
7871 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7872 (eval $ac_compiler -V </dev/null >&5) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }
7877 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7878 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7879 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7890 main ()
7892 #ifndef __GNUC__
7893 choke me
7894 #endif
7897 return 0;
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_cxx_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_compiler_gnu=yes
7923 else
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_compiler_gnu=no
7929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7933 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7934 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7935 GXX=`test $ac_compiler_gnu = yes && echo yes`
7936 ac_test_CXXFLAGS=${CXXFLAGS+set}
7937 ac_save_CXXFLAGS=$CXXFLAGS
7938 CXXFLAGS="-g"
7939 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7940 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7941 if test "${ac_cv_prog_cxx_g+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h. */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7952 main ()
7956 return 0;
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_cxx_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_prog_cxx_g=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_cv_prog_cxx_g=no
7988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7991 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7992 if test "$ac_test_CXXFLAGS" = set; then
7993 CXXFLAGS=$ac_save_CXXFLAGS
7994 elif test $ac_cv_prog_cxx_g = yes; then
7995 if test "$GXX" = yes; then
7996 CXXFLAGS="-g -O2"
7997 else
7998 CXXFLAGS="-g"
8000 else
8001 if test "$GXX" = yes; then
8002 CXXFLAGS="-O2"
8003 else
8004 CXXFLAGS=
8007 for ac_declaration in \
8008 '' \
8009 'extern "C" void std::exit (int) throw (); using std::exit;' \
8010 'extern "C" void std::exit (int); using std::exit;' \
8011 'extern "C" void exit (int) throw ();' \
8012 'extern "C" void exit (int);' \
8013 'void exit (int);'
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_declaration
8022 #include <stdlib.h>
8024 main ()
8026 exit (42);
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_cxx_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 continue
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 $ac_declaration
8069 main ()
8071 exit (42);
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_cxx_werror_flag"
8086 || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 break
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8105 done
8106 rm -f conftest*
8107 if test -n "$ac_declaration"; then
8108 echo '#ifdef __cplusplus' >>confdefs.h
8109 echo $ac_declaration >>confdefs.h
8110 echo '#endif' >>confdefs.h
8113 ac_ext=c
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8120 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8121 (test "X$CXX" != "Xg++"))) ; then
8122 ac_ext=cc
8123 ac_cpp='$CXXCPP $CPPFLAGS'
8124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8127 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8128 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8129 if test -z "$CXXCPP"; then
8130 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 # Double quotes because CXXCPP needs to be expanded
8134 for CXXCPP in "$CXX -E" "/lib/cpp"
8136 ac_preproc_ok=false
8137 for ac_cxx_preproc_warn_flag in '' yes
8139 # Use a header file that comes with gcc, so configuring glibc
8140 # with a fresh cross-compiler works.
8141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8142 # <limits.h> exists even on freestanding compilers.
8143 # On the NeXT, cc -E runs the code through the compiler's parser,
8144 # not just through cpp. "Syntax error" is here to catch this case.
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #ifdef __STDC__
8152 # include <limits.h>
8153 #else
8154 # include <assert.h>
8155 #endif
8156 Syntax error
8157 _ACEOF
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_cxx_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8169 else
8170 ac_cpp_err=
8172 else
8173 ac_cpp_err=yes
8175 if test -z "$ac_cpp_err"; then
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 # Broken: fails on valid input.
8182 continue
8184 rm -f conftest.err conftest.$ac_ext
8186 # OK, works on sane cases. Now check whether non-existent headers
8187 # can be detected and how.
8188 cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h. */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 #include <ac_nonexistent.h>
8195 _ACEOF
8196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } >/dev/null; then
8204 if test -s conftest.err; then
8205 ac_cpp_err=$ac_cxx_preproc_warn_flag
8206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8207 else
8208 ac_cpp_err=
8210 else
8211 ac_cpp_err=yes
8213 if test -z "$ac_cpp_err"; then
8214 # Broken: success on invalid input.
8215 continue
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 # Passes both tests.
8221 ac_preproc_ok=:
8222 break
8224 rm -f conftest.err conftest.$ac_ext
8226 done
8227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8228 rm -f conftest.err conftest.$ac_ext
8229 if $ac_preproc_ok; then
8230 break
8233 done
8234 ac_cv_prog_CXXCPP=$CXXCPP
8237 CXXCPP=$ac_cv_prog_CXXCPP
8238 else
8239 ac_cv_prog_CXXCPP=$CXXCPP
8241 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8242 echo "${ECHO_T}$CXXCPP" >&6
8243 ac_preproc_ok=false
8244 for ac_cxx_preproc_warn_flag in '' yes
8246 # Use a header file that comes with gcc, so configuring glibc
8247 # with a fresh cross-compiler works.
8248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 # <limits.h> exists even on freestanding compilers.
8250 # On the NeXT, cc -E runs the code through the compiler's parser,
8251 # not just through cpp. "Syntax error" is here to catch this case.
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 #ifdef __STDC__
8259 # include <limits.h>
8260 #else
8261 # include <assert.h>
8262 #endif
8263 Syntax error
8264 _ACEOF
8265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } >/dev/null; then
8273 if test -s conftest.err; then
8274 ac_cpp_err=$ac_cxx_preproc_warn_flag
8275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8276 else
8277 ac_cpp_err=
8279 else
8280 ac_cpp_err=yes
8282 if test -z "$ac_cpp_err"; then
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 # Broken: fails on valid input.
8289 continue
8291 rm -f conftest.err conftest.$ac_ext
8293 # OK, works on sane cases. Now check whether non-existent headers
8294 # can be detected and how.
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 #include <ac_nonexistent.h>
8302 _ACEOF
8303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } >/dev/null; then
8311 if test -s conftest.err; then
8312 ac_cpp_err=$ac_cxx_preproc_warn_flag
8313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8314 else
8315 ac_cpp_err=
8317 else
8318 ac_cpp_err=yes
8320 if test -z "$ac_cpp_err"; then
8321 # Broken: success on invalid input.
8322 continue
8323 else
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 # Passes both tests.
8328 ac_preproc_ok=:
8329 break
8331 rm -f conftest.err conftest.$ac_ext
8333 done
8334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8335 rm -f conftest.err conftest.$ac_ext
8336 if $ac_preproc_ok; then
8338 else
8339 _lt_caught_CXX_error=yes
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348 else
8349 _lt_caught_CXX_error=yes
8356 # This can be used to rebuild libtool when needed
8357 LIBTOOL_DEPS="$ltmain"
8359 # Always use our own libtool.
8360 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8386 test -z "$LN_S" && LN_S="ln -s"
8401 if test -n "${ZSH_VERSION+set}" ; then
8402 setopt NO_GLOB_SUBST
8405 echo "$as_me:$LINENO: checking for objdir" >&5
8406 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8407 if test "${lt_cv_objdir+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 rm -f .libs 2>/dev/null
8411 mkdir .libs 2>/dev/null
8412 if test -d .libs; then
8413 lt_cv_objdir=.libs
8414 else
8415 # MS-DOS does not allow filenames that begin with a dot.
8416 lt_cv_objdir=_libs
8418 rmdir .libs 2>/dev/null
8420 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8421 echo "${ECHO_T}$lt_cv_objdir" >&6
8422 objdir=$lt_cv_objdir
8428 cat >>confdefs.h <<_ACEOF
8429 #define LT_OBJDIR "$lt_cv_objdir/"
8430 _ACEOF
8448 case $host_os in
8449 aix3*)
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8454 COLLECT_NAMES=
8455 export COLLECT_NAMES
8458 esac
8460 # Sed substitution that helps us do robust quoting. It backslashifies
8461 # metacharacters that are still active within double-quoted strings.
8462 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8464 # Same as above, but do not quote variable references.
8465 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8467 # Sed substitution to delay expansion of an escaped shell variable in a
8468 # double_quote_subst'ed string.
8469 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8471 # Sed substitution to delay expansion of an escaped single quote.
8472 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8474 # Sed substitution to avoid accidental globbing in evaled expressions
8475 no_glob_subst='s/\*/\\\*/g'
8477 # Global variables:
8478 ofile=libtool
8479 can_build_shared=yes
8481 # All known linkers require a `.a' archive for static linking (except MSVC,
8482 # which needs '.lib').
8483 libext=a
8485 with_gnu_ld="$lt_cv_prog_gnu_ld"
8487 old_CC="$CC"
8488 old_CFLAGS="$CFLAGS"
8490 # Set sane defaults for various variables
8491 test -z "$CC" && CC=cc
8492 test -z "$LTCC" && LTCC=$CC
8493 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8494 test -z "$LD" && LD=ld
8495 test -z "$ac_objext" && ac_objext=o
8497 for cc_temp in $compiler""; do
8498 case $cc_temp in
8499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8501 \-*) ;;
8502 *) break;;
8503 esac
8504 done
8505 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8508 # Only perform the check for file, if the check method requires it
8509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8510 case $deplibs_check_method in
8511 file_magic*)
8512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8513 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8514 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 case $MAGIC_CMD in
8519 [\\/*] | ?:[\\/]*)
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8523 lt_save_MAGIC_CMD="$MAGIC_CMD"
8524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526 for ac_dir in $ac_dummy; do
8527 IFS="$lt_save_ifs"
8528 test -z "$ac_dir" && ac_dir=.
8529 if test -f $ac_dir/${ac_tool_prefix}file; then
8530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8531 if test -n "$file_magic_test_file"; then
8532 case $deplibs_check_method in
8533 "file_magic "*)
8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537 $EGREP "$file_magic_regex" > /dev/null; then
8539 else
8540 cat <<_LT_EOF 1>&2
8542 *** Warning: the command libtool uses to detect shared libraries,
8543 *** $file_magic_cmd, produces output that libtool cannot recognize.
8544 *** The result is that libtool may fail to recognize shared libraries
8545 *** as such. This will affect the creation of libtool libraries that
8546 *** depend on shared libraries, but programs linked with such libtool
8547 *** libraries will work regardless of this problem. Nevertheless, you
8548 *** may want to report the problem to your system manager and/or to
8549 *** bug-libtool@gnu.org
8551 _LT_EOF
8552 fi ;;
8553 esac
8555 break
8557 done
8558 IFS="$lt_save_ifs"
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8561 esac
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8567 echo "${ECHO_T}$MAGIC_CMD" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8577 if test -z "$lt_cv_path_MAGIC_CMD"; then
8578 if test -n "$ac_tool_prefix"; then
8579 echo "$as_me:$LINENO: checking for file" >&5
8580 echo $ECHO_N "checking for file... $ECHO_C" >&6
8581 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 case $MAGIC_CMD in
8585 [\\/*] | ?:[\\/]*)
8586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8589 lt_save_MAGIC_CMD="$MAGIC_CMD"
8590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8592 for ac_dir in $ac_dummy; do
8593 IFS="$lt_save_ifs"
8594 test -z "$ac_dir" && ac_dir=.
8595 if test -f $ac_dir/file; then
8596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8597 if test -n "$file_magic_test_file"; then
8598 case $deplibs_check_method in
8599 "file_magic "*)
8600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8603 $EGREP "$file_magic_regex" > /dev/null; then
8605 else
8606 cat <<_LT_EOF 1>&2
8608 *** Warning: the command libtool uses to detect shared libraries,
8609 *** $file_magic_cmd, produces output that libtool cannot recognize.
8610 *** The result is that libtool may fail to recognize shared libraries
8611 *** as such. This will affect the creation of libtool libraries that
8612 *** depend on shared libraries, but programs linked with such libtool
8613 *** libraries will work regardless of this problem. Nevertheless, you
8614 *** may want to report the problem to your system manager and/or to
8615 *** bug-libtool@gnu.org
8617 _LT_EOF
8618 fi ;;
8619 esac
8621 break
8623 done
8624 IFS="$lt_save_ifs"
8625 MAGIC_CMD="$lt_save_MAGIC_CMD"
8627 esac
8630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631 if test -n "$MAGIC_CMD"; then
8632 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8633 echo "${ECHO_T}$MAGIC_CMD" >&6
8634 else
8635 echo "$as_me:$LINENO: result: no" >&5
8636 echo "${ECHO_T}no" >&6
8640 else
8641 MAGIC_CMD=:
8647 esac
8649 # Use C for the default configuration in the libtool script
8651 lt_save_CC="$CC"
8652 ac_ext=c
8653 ac_cpp='$CPP $CPPFLAGS'
8654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659 # Source file extension for C test sources.
8660 ac_ext=c
8662 # Object file extension for compiled C test sources.
8663 objext=o
8664 objext=$objext
8666 # Code to be used in simple compile tests
8667 lt_simple_compile_test_code="int some_variable = 0;"
8669 # Code to be used in simple link tests
8670 lt_simple_link_test_code='int main(){return(0);}'
8678 # If no C compiler was specified, use CC.
8679 LTCC=${LTCC-"$CC"}
8681 # If no C compiler flags were specified, use CFLAGS.
8682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8684 # Allow CC to be a program name with arguments.
8685 compiler=$CC
8687 # Save the default compiler, since it gets overwritten when the other
8688 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8689 compiler_DEFAULT=$CC
8691 # save warnings/boilerplate of simple test code
8692 ac_outfile=conftest.$ac_objext
8693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8695 _lt_compiler_boilerplate=`cat conftest.err`
8696 $RM conftest*
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_linker_boilerplate=`cat conftest.err`
8702 $RM conftest*
8705 ## CAVEAT EMPTOR:
8706 ## There is no encapsulation within the following macros, do not change
8707 ## the running order or otherwise move them around unless you know exactly
8708 ## what you are doing...
8709 if test -n "$compiler"; then
8711 lt_prog_compiler_no_builtin_flag=
8713 if test "$GCC" = yes; then
8714 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8716 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8717 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8718 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 lt_cv_prog_compiler_rtti_exceptions=no
8722 ac_outfile=conftest.$ac_objext
8723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8724 lt_compiler_flag="-fno-rtti -fno-exceptions"
8725 # Insert the option either (1) after the last *FLAGS variable, or
8726 # (2) before a word containing "conftest.", or (3) at the end.
8727 # Note that $ac_compile itself does not contain backslashes and begins
8728 # with a dollar sign (not a hyphen), so the echo should work correctly.
8729 # The option is referenced via a variable to avoid confusing sed.
8730 lt_compile=`echo "$ac_compile" | $SED \
8731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8733 -e 's:$: $lt_compiler_flag:'`
8734 (eval echo "\"\$as_me:8734: $lt_compile\"" >&5)
8735 (eval "$lt_compile" 2>conftest.err)
8736 ac_status=$?
8737 cat conftest.err >&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 if (exit $ac_status) && test -s "$ac_outfile"; then
8740 # The compiler can only warn and ignore the option if not recognized
8741 # So say no if there are warnings other than the usual output.
8742 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8745 lt_cv_prog_compiler_rtti_exceptions=yes
8748 $RM conftest*
8751 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8752 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8755 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8756 else
8767 lt_prog_compiler_wl=
8768 lt_prog_compiler_pic=
8769 lt_prog_compiler_static=
8771 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8772 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8774 if test "$GCC" = yes; then
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_static='-static'
8778 case $host_os in
8779 aix*)
8780 # All AIX code is PIC.
8781 if test "$host_cpu" = ia64; then
8782 # AIX 5 now supports IA64 processor
8783 lt_prog_compiler_static='-Bstatic'
8787 amigaos*)
8788 if test "$host_cpu" = m68k; then
8789 # FIXME: we need at least 68020 code to build shared libraries, but
8790 # adding the `-m68020' flag to GCC prevents building anything better,
8791 # like `-m68040'.
8792 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8797 # PIC is the default for these OSes.
8800 mingw* | cygwin* | pw32* | os2*)
8801 # This hack is so that the source file can tell whether it is being
8802 # built for inclusion in a dll (and should export symbols for example).
8803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8804 # (--disable-auto-import) libraries
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8808 darwin* | rhapsody*)
8809 # PIC is the default on this platform
8810 # Common symbols not allowed in MH_DYLIB files
8811 lt_prog_compiler_pic='-fno-common'
8814 hpux*)
8815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8816 # not for PA HP-UX.
8817 case $host_cpu in
8818 hppa*64*|ia64*)
8819 # +Z the default
8822 lt_prog_compiler_pic='-fPIC'
8824 esac
8827 interix[3-9]*)
8828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8829 # Instead, we relocate shared libraries at runtime.
8832 msdosdjgpp*)
8833 # Just because we use GCC doesn't mean we suddenly get shared libraries
8834 # on systems that don't support them.
8835 lt_prog_compiler_can_build_shared=no
8836 enable_shared=no
8839 *nto* | *qnx*)
8840 # QNX uses GNU C++, but need to define -shared option too, otherwise
8841 # it will coredump.
8842 lt_prog_compiler_pic='-fPIC -shared'
8845 sysv4*MP*)
8846 if test -d /usr/nec; then
8847 lt_prog_compiler_pic=-Kconform_pic
8852 lt_prog_compiler_pic='-fPIC'
8854 esac
8855 else
8856 # PORTME Check for flag to pass linker flags through the system compiler.
8857 case $host_os in
8858 aix*)
8859 lt_prog_compiler_wl='-Wl,'
8860 if test "$host_cpu" = ia64; then
8861 # AIX 5 now supports IA64 processor
8862 lt_prog_compiler_static='-Bstatic'
8863 else
8864 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8867 darwin*)
8868 # PIC is the default on this platform
8869 # Common symbols not allowed in MH_DYLIB files
8870 case $cc_basename in
8871 xlc*)
8872 lt_prog_compiler_pic='-qnocommon'
8873 lt_prog_compiler_wl='-Wl,'
8875 esac
8878 mingw* | cygwin* | pw32* | os2*)
8879 # This hack is so that the source file can tell whether it is being
8880 # built for inclusion in a dll (and should export symbols for example).
8881 lt_prog_compiler_pic='-DDLL_EXPORT'
8884 hpux9* | hpux10* | hpux11*)
8885 lt_prog_compiler_wl='-Wl,'
8886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8887 # not for PA HP-UX.
8888 case $host_cpu in
8889 hppa*64*|ia64*)
8890 # +Z the default
8893 lt_prog_compiler_pic='+Z'
8895 esac
8896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8897 lt_prog_compiler_static='${wl}-a ${wl}archive'
8900 irix5* | irix6* | nonstopux*)
8901 lt_prog_compiler_wl='-Wl,'
8902 # PIC (with -KPIC) is the default.
8903 lt_prog_compiler_static='-non_shared'
8906 linux* | k*bsd*-gnu)
8907 case $cc_basename in
8908 icc* | ecc*)
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-static'
8913 pgcc* | pgf77* | pgf90* | pgf95*)
8914 # Portland Group compilers (*not* the Pentium gcc compiler,
8915 # which looks to be a dead project)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-fpic'
8918 lt_prog_compiler_static='-Bstatic'
8920 ccc*)
8921 lt_prog_compiler_wl='-Wl,'
8922 # All Alpha code is PIC.
8923 lt_prog_compiler_static='-non_shared'
8926 case `$CC -V 2>&1 | sed 5q` in
8927 *Sun\ C*)
8928 # Sun C 5.9
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 lt_prog_compiler_wl='-Wl,'
8933 *Sun\ F*)
8934 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl=''
8939 esac
8941 esac
8944 newsos6)
8945 lt_prog_compiler_pic='-KPIC'
8946 lt_prog_compiler_static='-Bstatic'
8949 *nto* | *qnx*)
8950 # QNX uses GNU C++, but need to define -shared option too, otherwise
8951 # it will coredump.
8952 lt_prog_compiler_pic='-fPIC -shared'
8955 osf3* | osf4* | osf5*)
8956 lt_prog_compiler_wl='-Wl,'
8957 # All OSF/1 code is PIC.
8958 lt_prog_compiler_static='-non_shared'
8961 rdos*)
8962 lt_prog_compiler_static='-non_shared'
8965 solaris*)
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 case $cc_basename in
8969 f77* | f90* | f95*)
8970 lt_prog_compiler_wl='-Qoption ld ';;
8972 lt_prog_compiler_wl='-Wl,';;
8973 esac
8976 sunos4*)
8977 lt_prog_compiler_wl='-Qoption ld '
8978 lt_prog_compiler_pic='-PIC'
8979 lt_prog_compiler_static='-Bstatic'
8982 sysv4 | sysv4.2uw2* | sysv4.3*)
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-Bstatic'
8988 sysv4*MP*)
8989 if test -d /usr/nec ;then
8990 lt_prog_compiler_pic='-Kconform_pic'
8991 lt_prog_compiler_static='-Bstatic'
8995 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
9001 unicos*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_can_build_shared=no
9006 uts4*)
9007 lt_prog_compiler_pic='-pic'
9008 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_can_build_shared=no
9014 esac
9017 case $host_os in
9018 # For platforms which do not support PIC, -DPIC is meaningless:
9019 *djgpp*)
9020 lt_prog_compiler_pic=
9023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9025 esac
9026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9027 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9035 # Check to make sure the PIC flag actually works.
9037 if test -n "$lt_prog_compiler_pic"; then
9038 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9040 if test "${lt_prog_compiler_pic_works+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 lt_prog_compiler_pic_works=no
9044 ac_outfile=conftest.$ac_objext
9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9047 # Insert the option either (1) after the last *FLAGS variable, or
9048 # (2) before a word containing "conftest.", or (3) at the end.
9049 # Note that $ac_compile itself does not contain backslashes and begins
9050 # with a dollar sign (not a hyphen), so the echo should work correctly.
9051 # The option is referenced via a variable to avoid confusing sed.
9052 lt_compile=`echo "$ac_compile" | $SED \
9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055 -e 's:$: $lt_compiler_flag:'`
9056 (eval echo "\"\$as_me:9056: $lt_compile\"" >&5)
9057 (eval "$lt_compile" 2>conftest.err)
9058 ac_status=$?
9059 cat conftest.err >&5
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 if (exit $ac_status) && test -s "$ac_outfile"; then
9062 # The compiler can only warn and ignore the option if not recognized
9063 # So say no if there are warnings other than the usual output.
9064 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_prog_compiler_pic_works=yes
9070 $RM conftest*
9073 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9074 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9076 if test x"$lt_prog_compiler_pic_works" = xyes; then
9077 case $lt_prog_compiler_pic in
9078 "" | " "*) ;;
9079 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9080 esac
9081 else
9082 lt_prog_compiler_pic=
9083 lt_prog_compiler_can_build_shared=no
9094 # Check to make sure the static flag actually works.
9096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9097 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9098 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9099 if test "${lt_prog_compiler_static_works+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 lt_prog_compiler_static_works=no
9103 save_LDFLAGS="$LDFLAGS"
9104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9107 # The linker can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 if test -s conftest.err; then
9110 # Append any errors to the config.log.
9111 cat conftest.err 1>&5
9112 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114 if diff conftest.exp conftest.er2 >/dev/null; then
9115 lt_prog_compiler_static_works=yes
9117 else
9118 lt_prog_compiler_static_works=yes
9121 $RM conftest*
9122 LDFLAGS="$save_LDFLAGS"
9125 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9126 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9128 if test x"$lt_prog_compiler_static_works" = xyes; then
9130 else
9131 lt_prog_compiler_static=
9140 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9141 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9142 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145 lt_cv_prog_compiler_c_o=no
9146 $RM -r conftest 2>/dev/null
9147 mkdir conftest
9148 cd conftest
9149 mkdir out
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152 lt_compiler_flag="-o out/conftest2.$ac_objext"
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:9161: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>out/conftest.err)
9163 ac_status=$?
9164 cat out/conftest.err >&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167 then
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings
9170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_c_o=yes
9176 chmod u+w . 2>&5
9177 $RM conftest*
9178 # SGI C++ compiler will create directory out/ii_files/ for
9179 # template instantiation
9180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181 $RM out/* && rmdir out
9182 cd ..
9183 $RM -r conftest
9184 $RM conftest*
9187 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9188 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9197 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 lt_cv_prog_compiler_c_o=no
9201 $RM -r conftest 2>/dev/null
9202 mkdir conftest
9203 cd conftest
9204 mkdir out
9205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207 lt_compiler_flag="-o out/conftest2.$ac_objext"
9208 # Insert the option either (1) after the last *FLAGS variable, or
9209 # (2) before a word containing "conftest.", or (3) at the end.
9210 # Note that $ac_compile itself does not contain backslashes and begins
9211 # with a dollar sign (not a hyphen), so the echo should work correctly.
9212 lt_compile=`echo "$ac_compile" | $SED \
9213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9215 -e 's:$: $lt_compiler_flag:'`
9216 (eval echo "\"\$as_me:9216: $lt_compile\"" >&5)
9217 (eval "$lt_compile" 2>out/conftest.err)
9218 ac_status=$?
9219 cat out/conftest.err >&5
9220 echo "$as_me:9220: \$? = $ac_status" >&5
9221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9222 then
9223 # The compiler can only warn and ignore the option if not recognized
9224 # So say no if there are warnings
9225 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler_c_o=yes
9231 chmod u+w . 2>&5
9232 $RM conftest*
9233 # SGI C++ compiler will create directory out/ii_files/ for
9234 # template instantiation
9235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9236 $RM out/* && rmdir out
9237 cd ..
9238 $RM -r conftest
9239 $RM conftest*
9242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9248 hard_links="nottested"
9249 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9250 # do not overwrite the value of need_locks provided by the user
9251 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9252 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9253 hard_links=yes
9254 $RM conftest*
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256 touch conftest.a
9257 ln conftest.a conftest.b 2>&5 || hard_links=no
9258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9259 echo "$as_me:$LINENO: result: $hard_links" >&5
9260 echo "${ECHO_T}$hard_links" >&6
9261 if test "$hard_links" = no; then
9262 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9263 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9264 need_locks=warn
9266 else
9267 need_locks=no
9275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9278 runpath_var=
9279 allow_undefined_flag=
9280 always_export_symbols=no
9281 archive_cmds=
9282 archive_expsym_cmds=
9283 compiler_needs_object=no
9284 enable_shared_with_static_runtimes=no
9285 export_dynamic_flag_spec=
9286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9287 hardcode_automatic=no
9288 hardcode_direct=no
9289 hardcode_direct_absolute=no
9290 hardcode_libdir_flag_spec=
9291 hardcode_libdir_flag_spec_ld=
9292 hardcode_libdir_separator=
9293 hardcode_minus_L=no
9294 hardcode_shlibpath_var=unsupported
9295 inherit_rpath=no
9296 link_all_deplibs=unknown
9297 module_cmds=
9298 module_expsym_cmds=
9299 old_archive_from_new_cmds=
9300 old_archive_from_expsyms_cmds=
9301 thread_safe_flag_spec=
9302 whole_archive_flag_spec=
9303 # include_expsyms should be a list of space-separated symbols to be *always*
9304 # included in the symbol list
9305 include_expsyms=
9306 # exclude_expsyms can be an extended regexp of symbols to exclude
9307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9309 # as well as any symbol that contains `d'.
9310 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9312 # platforms (ab)use it in PIC code, but their linkers get confused if
9313 # the symbol is explicitly referenced. Since portable code cannot
9314 # rely on this symbol name, it's probably fine to never include it in
9315 # preloaded symbol tables.
9316 extract_expsyms_cmds=
9318 case $host_os in
9319 cygwin* | mingw* | pw32*)
9320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9321 # When not using gcc, we currently assume that we are using
9322 # Microsoft Visual C++.
9323 if test "$GCC" != yes; then
9324 with_gnu_ld=no
9327 interix*)
9328 # we just hope/assume this is gcc and not c89 (= MSVC++)
9329 with_gnu_ld=yes
9331 openbsd*)
9332 with_gnu_ld=no
9334 esac
9336 ld_shlibs=yes
9337 if test "$with_gnu_ld" = yes; then
9338 # If archive_cmds runs LD, not CC, wlarc should be empty
9339 wlarc='${wl}'
9341 # Set some defaults for GNU ld with shared library support. These
9342 # are reset later if shared libraries are not supported. Putting them
9343 # here allows them to be overridden if necessary.
9344 runpath_var=LD_RUN_PATH
9345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346 export_dynamic_flag_spec='${wl}--export-dynamic'
9347 # ancient GNU ld didn't support --whole-archive et. al.
9348 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9349 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9350 else
9351 whole_archive_flag_spec=
9353 supports_anon_versioning=no
9354 case `$LD -v 2>&1` in
9355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9358 *\ 2.11.*) ;; # other 2.11 versions
9359 *) supports_anon_versioning=yes ;;
9360 esac
9362 # See if GNU ld supports shared libraries.
9363 case $host_os in
9364 aix[3-9]*)
9365 # On AIX/PPC, the GNU linker is very broken
9366 if test "$host_cpu" != ia64; then
9367 ld_shlibs=no
9368 cat <<_LT_EOF 1>&2
9370 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9371 *** to be unable to reliably create shared libraries on AIX.
9372 *** Therefore, libtool is disabling shared libraries support. If you
9373 *** really care for shared libraries, you may want to modify your PATH
9374 *** so that a non-GNU linker is found, and then restart.
9376 _LT_EOF
9380 amigaos*)
9381 if test "$host_cpu" = m68k; then
9382 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)'
9383 hardcode_libdir_flag_spec='-L$libdir'
9384 hardcode_minus_L=yes
9387 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9388 # that the semantics of dynamic libraries on AmigaOS, at least up
9389 # to version 4, is to share data among multiple programs linked
9390 # with the same dynamic library. Since this doesn't match the
9391 # behavior of shared libraries on other platforms, we can't use
9392 # them.
9393 ld_shlibs=no
9396 beos*)
9397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398 allow_undefined_flag=unsupported
9399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9400 # support --undefined. This deserves some investigation. FIXME
9401 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 else
9403 ld_shlibs=no
9407 cygwin* | mingw* | pw32*)
9408 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9409 # as there is no search path for DLLs.
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 allow_undefined_flag=unsupported
9412 always_export_symbols=no
9413 enable_shared_with_static_runtimes=yes
9414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418 # If the export-symbols file already is a .def file (1st line
9419 # is EXPORTS), use it as is; otherwise, prepend...
9420 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9421 cp $export_symbols $output_objdir/$soname.def;
9422 else
9423 echo EXPORTS > $output_objdir/$soname.def;
9424 cat $export_symbols >> $output_objdir/$soname.def;
9426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427 else
9428 ld_shlibs=no
9432 interix[3-9]*)
9433 hardcode_direct=no
9434 hardcode_shlibpath_var=no
9435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9436 export_dynamic_flag_spec='${wl}-E'
9437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9438 # Instead, shared libraries are loaded at an image base (0x10000000 by
9439 # default) and relocated if they conflict, which is a slow very memory
9440 # consuming and fragmenting process. To avoid this, we pick a random,
9441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9444 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'
9447 gnu* | linux* | tpf* | k*bsd*-gnu)
9448 tmp_diet=no
9449 if test "$host_os" = linux-dietlibc; then
9450 case $cc_basename in
9451 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9452 esac
9454 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9455 && test "$tmp_diet" = no
9456 then
9457 tmp_addflag=
9458 case $cc_basename,$host_cpu in
9459 pgcc*) # Portland Group C compiler
9460 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'
9461 tmp_addflag=' $pic_flag'
9463 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9464 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'
9465 tmp_addflag=' $pic_flag -Mnomain' ;;
9466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9467 tmp_addflag=' -i_dynamic' ;;
9468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9469 tmp_addflag=' -i_dynamic -nofor_main' ;;
9470 ifc* | ifort*) # Intel Fortran compiler
9471 tmp_addflag=' -nofor_main' ;;
9472 esac
9473 case `$CC -V 2>&1 | sed 5q` in
9474 *Sun\ C*) # Sun C 5.9
9475 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'
9476 compiler_needs_object=yes
9477 tmp_sharedflag='-G' ;;
9478 *Sun\ F*) # Sun Fortran 8.3
9479 tmp_sharedflag='-G' ;;
9481 tmp_sharedflag='-shared' ;;
9482 esac
9483 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 if test "x$supports_anon_versioning" = xyes; then
9486 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9488 echo "local: *; };" >> $output_objdir/$libname.ver~
9489 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9491 else
9492 ld_shlibs=no
9496 netbsd*)
9497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9498 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9499 wlarc=
9500 else
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 solaris*)
9507 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9508 ld_shlibs=no
9509 cat <<_LT_EOF 1>&2
9511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9512 *** create shared libraries on Solaris systems. Therefore, libtool
9513 *** is disabling shared libraries support. We urge you to upgrade GNU
9514 *** binutils to release 2.9.1 or newer. Another option is to modify
9515 *** your PATH or compiler configuration so that the native linker is
9516 *** used, and then restart.
9518 _LT_EOF
9519 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9522 else
9523 ld_shlibs=no
9527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9528 case `$LD -v 2>&1` in
9529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9530 ld_shlibs=no
9531 cat <<_LT_EOF 1>&2
9533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9534 *** reliably create shared libraries on SCO systems. Therefore, libtool
9535 *** is disabling shared libraries support. We urge you to upgrade GNU
9536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9537 *** your PATH or compiler configuration so that the native linker is
9538 *** used, and then restart.
9540 _LT_EOF
9543 # For security reasons, it is highly recommended that you always
9544 # use absolute paths for naming shared libraries, and exclude the
9545 # DT_RUNPATH tag from executables and libraries. But doing so
9546 # requires that you compile everything twice, which is a pain.
9547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 else
9552 ld_shlibs=no
9555 esac
9558 sunos4*)
9559 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9560 wlarc=
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569 else
9570 ld_shlibs=no
9573 esac
9575 if test "$ld_shlibs" = no; then
9576 runpath_var=
9577 hardcode_libdir_flag_spec=
9578 export_dynamic_flag_spec=
9579 whole_archive_flag_spec=
9581 else
9582 # PORTME fill in a description of your system's linker (not GNU ld)
9583 case $host_os in
9584 aix3*)
9585 allow_undefined_flag=unsupported
9586 always_export_symbols=yes
9587 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'
9588 # Note: this linker hardcodes the directories in LIBPATH if there
9589 # are no directories specified by -L.
9590 hardcode_minus_L=yes
9591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9592 # Neither direct hardcoding nor static linking is supported with a
9593 # broken collect2.
9594 hardcode_direct=unsupported
9598 aix[4-9]*)
9599 if test "$host_cpu" = ia64; then
9600 # On IA64, the linker does run time linking by default, so we don't
9601 # have to do anything special.
9602 aix_use_runtimelinking=no
9603 exp_sym_flag='-Bexport'
9604 no_entry_flag=""
9605 else
9606 # If we're using GNU nm, then we don't want the "-C" option.
9607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9608 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9609 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'
9610 else
9611 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'
9613 aix_use_runtimelinking=no
9615 # Test if we are trying to use run time linking or normal
9616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9617 # need to do runtime linking.
9618 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9619 for ld_flag in $LDFLAGS; do
9620 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9621 aix_use_runtimelinking=yes
9622 break
9624 done
9626 esac
9628 exp_sym_flag='-bexport'
9629 no_entry_flag='-bnoentry'
9632 # When large executables or shared objects are built, AIX ld can
9633 # have problems creating the table of contents. If linking a library
9634 # or program results in "error TOC overflow" add -mminimal-toc to
9635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9638 archive_cmds=''
9639 hardcode_direct=yes
9640 hardcode_direct_absolute=yes
9641 hardcode_libdir_separator=':'
9642 link_all_deplibs=yes
9643 file_list_spec='${wl}-f,'
9645 if test "$GCC" = yes; then
9646 case $host_os in aix4.[012]|aix4.[012].*)
9647 # We only want to do this on AIX 4.2 and lower, the check
9648 # below for broken collect2 doesn't work under 4.3+
9649 collect2name=`${CC} -print-prog-name=collect2`
9650 if test -f "$collect2name" &&
9651 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9652 then
9653 # We have reworked collect2
9655 else
9656 # We have old collect2
9657 hardcode_direct=unsupported
9658 # It fails to find uninstalled libraries when the uninstalled
9659 # path is not listed in the libpath. Setting hardcode_minus_L
9660 # to unsupported forces relinking
9661 hardcode_minus_L=yes
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_libdir_separator=
9666 esac
9667 shared_flag='-shared'
9668 if test "$aix_use_runtimelinking" = yes; then
9669 shared_flag="$shared_flag "'${wl}-G'
9671 else
9672 # not using gcc
9673 if test "$host_cpu" = ia64; then
9674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9675 # chokes on -Wl,-G. The following line is correct:
9676 shared_flag='-G'
9677 else
9678 if test "$aix_use_runtimelinking" = yes; then
9679 shared_flag='${wl}-G'
9680 else
9681 shared_flag='${wl}-bM:SRE'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols=yes
9689 if test "$aix_use_runtimelinking" = yes; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag='-berok'
9693 # Determine the default libpath from the value encoded in an
9694 # empty executable.
9695 if test x$gcc_no_link = xyes; then
9696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9698 { (exit 1); exit 1; }; }
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9708 main ()
9712 return 0;
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9738 lt_aix_libpath_sed='
9739 /Import File Strings/,/^$/ {
9740 /^0/ {
9741 s/^0 *\(.*\)$/\1/
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 # Check for a 64-bit object if we didn't find anything.
9747 if test -z "$aix_libpath"; then
9748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9755 rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9759 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9760 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"
9761 else
9762 if test "$host_cpu" = ia64; then
9763 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9764 allow_undefined_flag="-z nodefs"
9765 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"
9766 else
9767 # Determine the default libpath from the value encoded in an
9768 # empty executable.
9769 if test x$gcc_no_link = xyes; then
9770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9772 { (exit 1); exit 1; }; }
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9782 main ()
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9812 lt_aix_libpath_sed='
9813 /Import File Strings/,/^$/ {
9814 /^0/ {
9815 s/^0 *\(.*\)$/\1/
9819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820 # Check for a 64-bit object if we didn't find anything.
9821 if test -z "$aix_libpath"; then
9822 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9834 # Warning - without using the other run time loading flags,
9835 # -berok will link without error, but may produce a broken library.
9836 no_undefined_flag=' ${wl}-bernotok'
9837 allow_undefined_flag=' ${wl}-berok'
9838 # Exported symbols can be pulled into shared objects from archives
9839 whole_archive_flag_spec='$convenience'
9840 archive_cmds_need_lc=yes
9841 # This is similar to how AIX traditionally builds its shared libraries.
9842 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'
9847 amigaos*)
9848 if test "$host_cpu" = m68k; then
9849 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)'
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_minus_L=yes
9853 # see comment about different semantics on the GNU ld section
9854 ld_shlibs=no
9857 bsdi[45]*)
9858 export_dynamic_flag_spec=-rdynamic
9861 cygwin* | mingw* | pw32*)
9862 # When not using gcc, we currently assume that we are using
9863 # Microsoft Visual C++.
9864 # hardcode_libdir_flag_spec is actually meaningless, as there is
9865 # no search path for DLLs.
9866 hardcode_libdir_flag_spec=' '
9867 allow_undefined_flag=unsupported
9868 # Tell ltmain to make .lib files, not .a files.
9869 libext=lib
9870 # Tell ltmain to make .dll files, not .so files.
9871 shrext_cmds=".dll"
9872 # FIXME: Setting linknames here is a bad hack.
9873 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9874 # The linker will automatically build a .lib file if we build a DLL.
9875 old_archive_from_new_cmds='true'
9876 # FIXME: Should let the user specify the lib program.
9877 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9878 fix_srcfile_path='`cygpath -w "$srcfile"`'
9879 enable_shared_with_static_runtimes=yes
9882 darwin* | rhapsody*)
9883 case $host_os in
9884 rhapsody* | darwin1.[012])
9885 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9887 *) # Darwin 1.3 on
9888 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9889 10.[012])
9890 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9892 10.*)
9893 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9895 esac
9897 esac
9898 archive_cmds_need_lc=no
9899 hardcode_direct=no
9900 hardcode_automatic=yes
9901 hardcode_shlibpath_var=unsupported
9902 whole_archive_flag_spec=''
9903 link_all_deplibs=yes
9904 if test "$GCC" = yes ; then
9905 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 lt_cv_apple_cc_single_mod=no
9909 if test -z "${LT_MULTI_MODULE}"; then
9910 # By default we will add the -single_module flag. You can override
9911 # by either setting the environment variable LT_MULTI_MODULE
9912 # non-empty at configure time, or by adding -multi-module to the
9913 # link flags.
9914 echo "int foo(void){return 1;}" > conftest.c
9915 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9916 -dynamiclib ${wl}-single_module conftest.c
9917 if test -f libconftest.dylib; then
9918 lt_cv_apple_cc_single_mod=yes
9919 rm libconftest.dylib
9921 rm conftest.$ac_ext
9925 output_verbose_link_cmd=echo
9926 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9927 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9928 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}'
9929 else
9930 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9931 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}'
9933 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9934 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}'
9935 else
9936 case $cc_basename in
9937 xlc*)
9938 output_verbose_link_cmd=echo
9939 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9940 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9942 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}'
9943 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}'
9946 ld_shlibs=no
9948 esac
9952 dgux*)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_shlibpath_var=no
9958 freebsd1*)
9959 ld_shlibs=no
9962 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9963 # support. Future versions do this automatically, but an explicit c++rt0.o
9964 # does not break anything, and helps significantly (at the cost of a little
9965 # extra space).
9966 freebsd2.2*)
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9973 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9974 freebsd2*)
9975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=yes
9977 hardcode_minus_L=yes
9978 hardcode_shlibpath_var=no
9981 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9982 freebsd* | dragonfly*)
9983 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9984 hardcode_libdir_flag_spec='-R$libdir'
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9989 hpux9*)
9990 if test "$GCC" = yes; then
9991 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'
9992 else
9993 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'
9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996 hardcode_libdir_separator=:
9997 hardcode_direct=yes
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10002 export_dynamic_flag_spec='${wl}-E'
10005 hpux10*)
10006 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008 else
10009 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011 if test "$with_gnu_ld" = no; then
10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_flag_spec_ld='+b $libdir'
10014 hardcode_libdir_separator=:
10015 hardcode_direct=yes
10016 hardcode_direct_absolute=yes
10017 export_dynamic_flag_spec='${wl}-E'
10018 # hardcode_minus_L: Not really in the search PATH,
10019 # but as the default location of the library.
10020 hardcode_minus_L=yes
10024 hpux11*)
10025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10026 case $host_cpu in
10027 hppa*64*)
10028 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 ia64*)
10031 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 esac
10037 else
10038 case $host_cpu in
10039 hppa*64*)
10040 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 ia64*)
10043 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048 esac
10050 if test "$with_gnu_ld" = no; then
10051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10052 hardcode_libdir_separator=:
10054 case $host_cpu in
10055 hppa*64*|ia64*)
10056 hardcode_direct=no
10057 hardcode_shlibpath_var=no
10060 hardcode_direct=yes
10061 hardcode_direct_absolute=yes
10062 export_dynamic_flag_spec='${wl}-E'
10064 # hardcode_minus_L: Not really in the search PATH,
10065 # but as the default location of the library.
10066 hardcode_minus_L=yes
10068 esac
10072 irix5* | irix6* | nonstopux*)
10073 if test "$GCC" = yes; then
10074 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'
10075 # Try to use the -exported_symbol ld option, if it does not
10076 # work, assume that -exports_file does not work either and
10077 # implicitly export all symbols.
10078 save_LDFLAGS="$LDFLAGS"
10079 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10080 if test x$gcc_no_link = xyes; then
10081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10083 { (exit 1); exit 1; }; }
10085 cat >conftest.$ac_ext <<_ACEOF
10086 int foo(void) {}
10087 _ACEOF
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090 (eval $ac_link) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 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'
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10117 rm -f conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LDFLAGS="$save_LDFLAGS"
10120 else
10121 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'
10122 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'
10124 archive_cmds_need_lc='no'
10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126 hardcode_libdir_separator=:
10127 inherit_rpath=yes
10128 link_all_deplibs=yes
10131 netbsd*)
10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10134 else
10135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10137 hardcode_libdir_flag_spec='-R$libdir'
10138 hardcode_direct=yes
10139 hardcode_shlibpath_var=no
10142 newsos6)
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_direct=yes
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10147 hardcode_shlibpath_var=no
10150 *nto* | *qnx*)
10153 openbsd*)
10154 hardcode_direct=yes
10155 hardcode_shlibpath_var=no
10156 hardcode_direct_absolute=yes
10157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10161 export_dynamic_flag_spec='${wl}-E'
10162 else
10163 case $host_os in
10164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_libdir_flag_spec='-R$libdir'
10169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10170 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172 esac
10176 os2*)
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 hardcode_minus_L=yes
10179 allow_undefined_flag=unsupported
10180 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'
10181 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10184 osf3*)
10185 if test "$GCC" = yes; then
10186 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10187 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'
10188 else
10189 allow_undefined_flag=' -expect_unresolved \*'
10190 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'
10192 archive_cmds_need_lc='no'
10193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10194 hardcode_libdir_separator=:
10197 osf4* | osf5*) # as osf3* with the addition of -msym flag
10198 if test "$GCC" = yes; then
10199 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10200 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'
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 else
10203 allow_undefined_flag=' -expect_unresolved \*'
10204 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'
10205 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~
10206 $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'
10208 # Both c and cxx compiler support -rpath directly
10209 hardcode_libdir_flag_spec='-rpath $libdir'
10211 archive_cmds_need_lc='no'
10212 hardcode_libdir_separator=:
10215 solaris*)
10216 no_undefined_flag=' -z defs'
10217 if test "$GCC" = yes; then
10218 wlarc='${wl}'
10219 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10221 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10222 else
10223 case `$CC -V 2>&1` in
10224 *"Compilers 5.0"*)
10225 wlarc=''
10226 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10231 wlarc='${wl}'
10232 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10234 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10236 esac
10238 hardcode_libdir_flag_spec='-R$libdir'
10239 hardcode_shlibpath_var=no
10240 case $host_os in
10241 solaris2.[0-5] | solaris2.[0-5].*) ;;
10243 # The compiler driver will combine and reorder linker options,
10244 # but understands `-z linker_flag'. GCC discards it without `$wl',
10245 # but is careful enough not to reorder.
10246 # Supported since Solaris 2.6 (maybe 2.5.1?)
10247 if test "$GCC" = yes; then
10248 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10249 else
10250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10253 esac
10254 link_all_deplibs=yes
10257 sunos4*)
10258 if test "x$host_vendor" = xsequent; then
10259 # Use $CC to link under sequent, because it throws in some extra .o
10260 # files that make .init and .fini sections work.
10261 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10262 else
10263 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 hardcode_direct=yes
10267 hardcode_minus_L=yes
10268 hardcode_shlibpath_var=no
10271 sysv4)
10272 case $host_vendor in
10273 sni)
10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_direct=yes # is this really true???
10277 siemens)
10278 ## LD is ld it makes a PLAMLIB
10279 ## CC just makes a GrossModule.
10280 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10281 reload_cmds='$CC -r -o $output$reload_objs'
10282 hardcode_direct=no
10284 motorola)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10288 esac
10289 runpath_var='LD_RUN_PATH'
10290 hardcode_shlibpath_var=no
10293 sysv4.3*)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_shlibpath_var=no
10296 export_dynamic_flag_spec='-Bexport'
10299 sysv4*MP*)
10300 if test -d /usr/nec; then
10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_shlibpath_var=no
10303 runpath_var=LD_RUN_PATH
10304 hardcode_runpath_var=yes
10305 ld_shlibs=yes
10309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10310 no_undefined_flag='${wl}-z,text'
10311 archive_cmds_need_lc=no
10312 hardcode_shlibpath_var=no
10313 runpath_var='LD_RUN_PATH'
10315 if test "$GCC" = yes; then
10316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 else
10319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 sysv5* | sco3.2v5* | sco5v6*)
10325 # Note: We can NOT use -z defs as we might desire, because we do not
10326 # link with -lc, and that would cause any symbols used from libc to
10327 # always be unresolved, which means just about no library would
10328 # ever link correctly. If we're not using GNU ld we use -z text
10329 # though, which does catch some bad symbols but isn't as heavy-handed
10330 # as -z defs.
10331 no_undefined_flag='${wl}-z,text'
10332 allow_undefined_flag='${wl}-z,nodefs'
10333 archive_cmds_need_lc=no
10334 hardcode_shlibpath_var=no
10335 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10336 hardcode_libdir_separator=':'
10337 link_all_deplibs=yes
10338 export_dynamic_flag_spec='${wl}-Bexport'
10339 runpath_var='LD_RUN_PATH'
10341 if test "$GCC" = yes; then
10342 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 else
10345 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 uts4*)
10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352 hardcode_libdir_flag_spec='-L$libdir'
10353 hardcode_shlibpath_var=no
10357 ld_shlibs=no
10359 esac
10361 if test x$host_vendor = xsni; then
10362 case $host in
10363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10364 export_dynamic_flag_spec='${wl}-Blargedynsym'
10366 esac
10370 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10371 echo "${ECHO_T}$ld_shlibs" >&6
10372 test "$ld_shlibs" = no && can_build_shared=no
10374 with_gnu_ld=$with_gnu_ld
10391 # Do we need to explicitly link libc?
10393 case "x$archive_cmds_need_lc" in
10394 x|xyes)
10395 # Assume -lc should be added
10396 archive_cmds_need_lc=yes
10398 if test "$enable_shared" = yes && test "$GCC" = yes; then
10399 case $archive_cmds in
10400 *'~'*)
10401 # FIXME: we may have to deal with multi-command sequences.
10403 '$CC '*)
10404 # Test whether the compiler implicitly links with -lc since on some
10405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10406 # to ld, don't add -lc before -lgcc.
10407 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10408 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10409 $RM conftest*
10410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } 2>conftest.err; then
10417 soname=conftest
10418 lib=conftest
10419 libobjs=conftest.$ac_objext
10420 deplibs=
10421 wl=$lt_prog_compiler_wl
10422 pic_flag=$lt_prog_compiler_pic
10423 compiler_flags=-v
10424 linker_flags=-v
10425 verstring=
10426 output_objdir=.
10427 libname=conftest
10428 lt_save_allow_undefined_flag=$allow_undefined_flag
10429 allow_undefined_flag=
10430 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10431 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }
10435 then
10436 archive_cmds_need_lc=no
10437 else
10438 archive_cmds_need_lc=yes
10440 allow_undefined_flag=$lt_save_allow_undefined_flag
10441 else
10442 cat conftest.err 1>&5
10444 $RM conftest*
10445 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10446 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10448 esac
10451 esac
10609 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10610 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10611 withGCC=$GCC
10612 if test "$withGCC" = yes; then
10613 case $host_os in
10614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10615 *) lt_awk_arg="/^libraries:/" ;;
10616 esac
10617 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10618 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10619 # if the path contains ";" then we assume it to be the separator
10620 # otherwise default to the standard path separator (i.e. ":") - it is
10621 # assumed that no part of a normal pathname contains ";" but that should
10622 # okay in the real world where ";" in dirpaths is itself problematic.
10623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10624 else
10625 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10627 # Ok, now we have the path, separated by spaces, we can step through it
10628 # and add multilib dir if necessary.
10629 lt_tmp_lt_search_path_spec=
10630 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10631 for lt_sys_path in $lt_search_path_spec; do
10632 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10634 else
10635 test -d "$lt_sys_path" && \
10636 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10638 done
10639 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10640 BEGIN {RS=" "; FS="/|\n";} {
10641 lt_foo="";
10642 lt_count=0;
10643 for (lt_i = NF; lt_i > 0; lt_i--) {
10644 if ($lt_i != "" && $lt_i != ".") {
10645 if ($lt_i == "..") {
10646 lt_count++;
10647 } else {
10648 if (lt_count == 0) {
10649 lt_foo="/" $lt_i lt_foo;
10650 } else {
10651 lt_count--;
10656 if (lt_foo != "") { lt_freq[lt_foo]++; }
10657 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10659 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10660 else
10661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10663 library_names_spec=
10664 libname_spec='lib$name'
10665 soname_spec=
10666 shrext_cmds=".so"
10667 postinstall_cmds=
10668 postuninstall_cmds=
10669 finish_cmds=
10670 finish_eval=
10671 shlibpath_var=
10672 shlibpath_overrides_runpath=unknown
10673 version_type=none
10674 dynamic_linker="$host_os ld.so"
10675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10676 need_lib_prefix=unknown
10677 hardcode_into_libs=no
10679 # when you set need_version to no, make sure it does not cause -set_version
10680 # flags to be left without arguments
10681 need_version=unknown
10683 case $host_os in
10684 aix3*)
10685 version_type=linux
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10687 shlibpath_var=LIBPATH
10689 # AIX 3 has no versioning support, so we append a major version to the name.
10690 soname_spec='${libname}${release}${shared_ext}$major'
10693 aix[4-9]*)
10694 version_type=linux
10695 need_lib_prefix=no
10696 need_version=no
10697 hardcode_into_libs=yes
10698 if test "$host_cpu" = ia64; then
10699 # AIX 5 supports IA64
10700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 else
10703 # With GCC up to 2.95.x, collect2 would create an import file
10704 # for dependence libraries. The import file would start with
10705 # the line `#! .'. This would cause the generated library to
10706 # depend on `.', always an invalid library. This was fixed in
10707 # development snapshots of GCC prior to 3.0.
10708 case $host_os in
10709 aix4 | aix4.[01] | aix4.[01].*)
10710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10711 echo ' yes '
10712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10714 else
10715 can_build_shared=no
10718 esac
10719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10720 # soname into executable. Probably we can add versioning support to
10721 # collect2, so additional links can be useful in future.
10722 if test "$aix_use_runtimelinking" = yes; then
10723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10724 # instead of lib<name>.a to let people know that these are not
10725 # typical AIX shared libraries.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 else
10728 # We preserve .a as extension for shared libraries through AIX4.2
10729 # and later when we are not doing run time linking.
10730 library_names_spec='${libname}${release}.a $libname.a'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LIBPATH
10737 amigaos*)
10738 if test "$host_cpu" = m68k; then
10739 library_names_spec='$libname.ixlibrary $libname.a'
10740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10741 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'
10742 else
10743 dynamic_linker=no
10747 beos*)
10748 library_names_spec='${libname}${shared_ext}'
10749 dynamic_linker="$host_os ld.so"
10750 shlibpath_var=LIBRARY_PATH
10753 bsdi[45]*)
10754 version_type=linux
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10762 # the default ld.so.conf also contains /usr/contrib/lib and
10763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10764 # libtool to hard-code these into programs
10767 cygwin* | mingw* | pw32*)
10768 version_type=windows
10769 shrext_cmds=".dll"
10770 need_version=no
10771 need_lib_prefix=no
10773 case $withGCC,$host_os in
10774 yes,cygwin* | yes,mingw* | yes,pw32*)
10775 library_names_spec='$libname.dll.a'
10776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10777 postinstall_cmds='base_file=`basename \${file}`~
10778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10779 dldir=$destdir/`dirname \$dlpath`~
10780 test -d \$dldir || mkdir -p \$dldir~
10781 $install_prog $dir/$dlname \$dldir/$dlname~
10782 chmod a+x \$dldir/$dlname~
10783 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10784 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10787 dlpath=$dir/\$dldll~
10788 $RM \$dlpath'
10789 shlibpath_overrides_runpath=yes
10791 case $host_os in
10792 cygwin*)
10793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10797 mingw*)
10798 # MinGW DLLs use traditional 'lib' prefix
10799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10800 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10801 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10802 # It is most probably a Windows format PATH printed by
10803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10804 # path with ; separators, and with drive letters. We can handle the
10805 # drive letters (cygwin fileutils understands them), so leave them,
10806 # especially as we might pass files found there to a mingw objdump,
10807 # which wouldn't understand a cygwinified path. Ahh.
10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10809 else
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813 pw32*)
10814 # pw32 DLLs use 'pw' prefix rather than 'lib'
10815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817 esac
10821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10823 esac
10824 dynamic_linker='Win32 ld.exe'
10825 # FIXME: first we should search . and the directory the executable is in
10826 shlibpath_var=PATH
10829 darwin* | rhapsody*)
10830 dynamic_linker="$host_os dyld"
10831 version_type=darwin
10832 need_lib_prefix=no
10833 need_version=no
10834 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10835 soname_spec='${libname}${release}${major}$shared_ext'
10836 shlibpath_overrides_runpath=yes
10837 shlibpath_var=DYLD_LIBRARY_PATH
10838 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10840 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10844 dgux*)
10845 version_type=linux
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LD_LIBRARY_PATH
10853 freebsd1*)
10854 dynamic_linker=no
10857 freebsd* | dragonfly*)
10858 # DragonFly does not have aout. When/if they implement a new
10859 # versioning mechanism, adjust this.
10860 if test -x /usr/bin/objformat; then
10861 objformat=`/usr/bin/objformat`
10862 else
10863 case $host_os in
10864 freebsd[123]*) objformat=aout ;;
10865 *) objformat=elf ;;
10866 esac
10868 version_type=freebsd-$objformat
10869 case $version_type in
10870 freebsd-elf*)
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10872 need_version=no
10873 need_lib_prefix=no
10875 freebsd-*)
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10877 need_version=yes
10879 esac
10880 shlibpath_var=LD_LIBRARY_PATH
10881 case $host_os in
10882 freebsd2*)
10883 shlibpath_overrides_runpath=yes
10885 freebsd3.[01]* | freebsdelf3.[01]*)
10886 shlibpath_overrides_runpath=yes
10887 hardcode_into_libs=yes
10889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10894 *) # from 4.6 on, and DragonFly
10895 shlibpath_overrides_runpath=yes
10896 hardcode_into_libs=yes
10898 esac
10901 gnu*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 hardcode_into_libs=yes
10911 hpux9* | hpux10* | hpux11*)
10912 # Give a soname corresponding to the major version so that dld.sl refuses to
10913 # link against other versions.
10914 version_type=sunos
10915 need_lib_prefix=no
10916 need_version=no
10917 case $host_cpu in
10918 ia64*)
10919 shrext_cmds='.so'
10920 hardcode_into_libs=yes
10921 dynamic_linker="$host_os dld.so"
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 if test "X$HPUX_IA64_MODE" = X32; then
10927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10928 else
10929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10933 hppa*64*)
10934 shrext_cmds='.sl'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.sl"
10937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945 shrext_cmds='.sl'
10946 dynamic_linker="$host_os dld.sl"
10947 shlibpath_var=SHLIB_PATH
10948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10952 esac
10953 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10954 postinstall_cmds='chmod 555 $lib'
10957 interix[3-9]*)
10958 version_type=linux
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=no
10966 hardcode_into_libs=yes
10969 irix5* | irix6* | nonstopux*)
10970 case $host_os in
10971 nonstopux*) version_type=nonstopux ;;
10973 if test "$lt_cv_prog_gnu_ld" = yes; then
10974 version_type=linux
10975 else
10976 version_type=irix
10977 fi ;;
10978 esac
10979 need_lib_prefix=no
10980 need_version=no
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10983 case $host_os in
10984 irix5* | nonstopux*)
10985 libsuff= shlibsuff=
10988 case $LD in # libtool.m4 will add one of these switches to LD
10989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10990 libsuff= shlibsuff= libmagic=32-bit;;
10991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10992 libsuff=32 shlibsuff=N32 libmagic=N32;;
10993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10995 *) libsuff= shlibsuff= libmagic=never-match;;
10996 esac
10998 esac
10999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11000 shlibpath_overrides_runpath=no
11001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11003 hardcode_into_libs=yes
11006 # No shared lib support for Linux oldld, aout, or coff.
11007 linux*oldld* | linux*aout* | linux*coff*)
11008 dynamic_linker=no
11011 # This must be Linux ELF.
11012 linux* | k*bsd*-gnu)
11013 version_type=linux
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=no
11021 # Some binutils ld are patched to set DT_RUNPATH
11022 save_LDFLAGS=$LDFLAGS
11023 save_libdir=$libdir
11024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11026 if test x$gcc_no_link = xyes; then
11027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11029 { (exit 1); exit 1; }; }
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11039 main ()
11043 return 0;
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -z "$ac_c_werror_flag"
11056 || test ! -s conftest.err'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11069 shlibpath_overrides_runpath=yes
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LDFLAGS=$save_LDFLAGS
11080 libdir=$save_libdir
11082 # This implies no fast_install, which is unacceptable.
11083 # Some rework will be needed to allow for fast_install
11084 # before this can be enabled.
11085 hardcode_into_libs=yes
11087 # Append ld.so.conf contents to the search path
11088 if test -f /etc/ld.so.conf; then
11089 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' ' '`
11090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11093 # We used to test for /lib/ld.so.1 and disable shared libraries on
11094 # powerpc, because MkLinux only supported shared libraries with the
11095 # GNU dynamic linker. Since this was broken with cross compilers,
11096 # most powerpc-linux boxes support dynamic linking these days and
11097 # people can always --disable-shared, the test was removed, and we
11098 # assume the GNU/Linux dynamic linker is in use.
11099 dynamic_linker='GNU/Linux ld.so'
11102 netbsd*)
11103 version_type=sunos
11104 need_lib_prefix=no
11105 need_version=no
11106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109 dynamic_linker='NetBSD (a.out) ld.so'
11110 else
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 dynamic_linker='NetBSD ld.elf_so'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11120 newsos6)
11121 version_type=linux
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11127 *nto* | *qnx*)
11128 version_type=qnx
11129 need_lib_prefix=no
11130 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='ldqnx.so'
11139 openbsd*)
11140 version_type=sunos
11141 sys_lib_dlsearch_path_spec="/usr/lib"
11142 need_lib_prefix=no
11143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11144 case $host_os in
11145 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11146 *) need_version=no ;;
11147 esac
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11152 case $host_os in
11153 openbsd2.[89] | openbsd2.[89].*)
11154 shlibpath_overrides_runpath=no
11157 shlibpath_overrides_runpath=yes
11159 esac
11160 else
11161 shlibpath_overrides_runpath=yes
11165 os2*)
11166 libname_spec='$name'
11167 shrext_cmds=".dll"
11168 need_lib_prefix=no
11169 library_names_spec='$libname${shared_ext} $libname.a'
11170 dynamic_linker='OS/2 ld.exe'
11171 shlibpath_var=LIBPATH
11174 osf3* | osf4* | osf5*)
11175 version_type=osf
11176 need_lib_prefix=no
11177 need_version=no
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11185 rdos*)
11186 dynamic_linker=no
11189 solaris*)
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 # ldd complains unless libraries are executable
11199 postinstall_cmds='chmod +x $lib'
11202 sunos4*)
11203 version_type=sunos
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=yes
11208 if test "$with_gnu_ld" = yes; then
11209 need_lib_prefix=no
11211 need_version=yes
11214 sysv4 | sysv4.3*)
11215 version_type=linux
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 case $host_vendor in
11220 sni)
11221 shlibpath_overrides_runpath=no
11222 need_lib_prefix=no
11223 runpath_var=LD_RUN_PATH
11225 siemens)
11226 need_lib_prefix=no
11228 motorola)
11229 need_lib_prefix=no
11230 need_version=no
11231 shlibpath_overrides_runpath=no
11232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11234 esac
11237 sysv4*MP*)
11238 if test -d /usr/nec ;then
11239 version_type=linux
11240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11241 soname_spec='$libname${shared_ext}.$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11247 version_type=freebsd-elf
11248 need_lib_prefix=no
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11254 hardcode_into_libs=yes
11255 if test "$with_gnu_ld" = yes; then
11256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11257 else
11258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11259 case $host_os in
11260 sco3.2v5*)
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11263 esac
11265 sys_lib_dlsearch_path_spec='/usr/lib'
11268 tpf*)
11269 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11270 version_type=linux
11271 need_lib_prefix=no
11272 need_version=no
11273 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11276 hardcode_into_libs=yes
11279 uts4*)
11280 version_type=linux
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11287 dynamic_linker=no
11289 esac
11290 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11291 echo "${ECHO_T}$dynamic_linker" >&6
11292 test "$dynamic_linker" = no && can_build_shared=no
11294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11295 if test "$GCC" = yes; then
11296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11385 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11387 hardcode_action=
11388 if test -n "$hardcode_libdir_flag_spec" ||
11389 test -n "$runpath_var" ||
11390 test "X$hardcode_automatic" = "Xyes" ; then
11392 # We can hardcode non-existent directories.
11393 if test "$hardcode_direct" != no &&
11394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395 # have to relink, otherwise we might link with an installed library
11396 # when we should be linking with a yet-to-be-installed one
11397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11398 test "$hardcode_minus_L" != no; then
11399 # Linking always hardcodes the temporary library directory.
11400 hardcode_action=relink
11401 else
11402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403 hardcode_action=immediate
11405 else
11406 # We cannot hardcode anything, or else we can only hardcode existing
11407 # directories.
11408 hardcode_action=unsupported
11410 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11411 echo "${ECHO_T}$hardcode_action" >&6
11413 if test "$hardcode_action" = relink ||
11414 test "$inherit_rpath" = yes; then
11415 # Fast installation is not supported
11416 enable_fast_install=no
11417 elif test "$shlibpath_overrides_runpath" = yes ||
11418 test "$enable_shared" = no; then
11419 # Fast installation is not necessary
11420 enable_fast_install=needless
11428 if test "x$enable_dlopen" != xyes; then
11429 enable_dlopen=unknown
11430 enable_dlopen_self=unknown
11431 enable_dlopen_self_static=unknown
11432 else
11433 lt_cv_dlopen=no
11434 lt_cv_dlopen_libs=
11436 case $host_os in
11437 beos*)
11438 lt_cv_dlopen="load_add_on"
11439 lt_cv_dlopen_libs=
11440 lt_cv_dlopen_self=yes
11443 mingw* | pw32*)
11444 lt_cv_dlopen="LoadLibrary"
11445 lt_cv_dlopen_libs=
11448 cygwin*)
11449 lt_cv_dlopen="dlopen"
11450 lt_cv_dlopen_libs=
11453 darwin*)
11454 # if libdl is installed we need to link against it
11455 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldl $LIBS"
11462 if test x$gcc_no_link = xyes; then
11463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11465 { (exit 1); exit 1; }; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 /* Override any gcc2 internal prototype to avoid an error. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480 char dlopen ();
11482 main ()
11484 dlopen ();
11486 return 0;
11488 _ACEOF
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_lib_dl_dlopen=yes
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_cv_lib_dl_dlopen=no
11518 rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11524 if test $ac_cv_lib_dl_dlopen = yes; then
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 else
11528 lt_cv_dlopen="dyld"
11529 lt_cv_dlopen_libs=
11530 lt_cv_dlopen_self=yes
11537 echo "$as_me:$LINENO: checking for shl_load" >&5
11538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11539 if test "${ac_cv_func_shl_load+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 if test x$gcc_no_link = xyes; then
11543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11545 { (exit 1); exit 1; }; }
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h. */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define shl_load innocuous_shl_load
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char shl_load (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11568 #undef shl_load
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 #ifdef __cplusplus
11572 extern "C"
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char shl_load ();
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11582 choke me
11583 #else
11584 char (*f) () = shl_load;
11585 #endif
11586 #ifdef __cplusplus
11588 #endif
11591 main ()
11593 return f != shl_load;
11595 return 0;
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_func_shl_load=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_cv_func_shl_load=no
11627 rm -f conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11632 if test $ac_cv_func_shl_load = yes; then
11633 lt_cv_dlopen="shl_load"
11634 else
11635 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-ldld $LIBS"
11642 if test x$gcc_no_link = xyes; then
11643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11645 { (exit 1); exit 1; }; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11654 /* Override any gcc2 internal prototype to avoid an error. */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660 char shl_load ();
11662 main ()
11664 shl_load ();
11666 return 0;
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag"
11679 || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_cv_lib_dld_shl_load=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_lib_dld_shl_load=no
11698 rm -f conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11703 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11704 if test $ac_cv_lib_dld_shl_load = yes; then
11705 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11706 else
11707 echo "$as_me:$LINENO: checking for dlopen" >&5
11708 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11709 if test "${ac_cv_func_dlopen+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 if test x$gcc_no_link = xyes; then
11713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11715 { (exit 1); exit 1; }; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define dlopen innocuous_dlopen
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char dlopen (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11738 #undef dlopen
11740 /* Override any gcc2 internal prototype to avoid an error. */
11741 #ifdef __cplusplus
11742 extern "C"
11744 #endif
11745 /* We use char because int might match the return type of a gcc2
11746 builtin and then its argument prototype would still apply. */
11747 char dlopen ();
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11752 choke me
11753 #else
11754 char (*f) () = dlopen;
11755 #endif
11756 #ifdef __cplusplus
11758 #endif
11761 main ()
11763 return f != dlopen;
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_func_dlopen=yes
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_func_dlopen=no
11797 rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11800 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11801 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11802 if test $ac_cv_func_dlopen = yes; then
11803 lt_cv_dlopen="dlopen"
11804 else
11805 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11806 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-ldl $LIBS"
11812 if test x$gcc_no_link = xyes; then
11813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11815 { (exit 1); exit 1; }; }
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 /* Override any gcc2 internal prototype to avoid an error. */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830 char dlopen ();
11832 main ()
11834 dlopen ();
11836 return 0;
11838 _ACEOF
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 ac_cv_lib_dl_dlopen=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_lib_dl_dlopen=no
11868 rm -f conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11874 if test $ac_cv_lib_dl_dlopen = yes; then
11875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11876 else
11877 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11878 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11879 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lsvld $LIBS"
11884 if test x$gcc_no_link = xyes; then
11885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11887 { (exit 1); exit 1; }; }
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char dlopen ();
11904 main ()
11906 dlopen ();
11908 return 0;
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_c_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_svld_dlopen=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_cv_lib_svld_dlopen=no
11940 rm -f conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11945 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11946 if test $ac_cv_lib_svld_dlopen = yes; then
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948 else
11949 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11950 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldld $LIBS"
11956 if test x$gcc_no_link = xyes; then
11957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11959 { (exit 1); exit 1; }; }
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11968 /* Override any gcc2 internal prototype to avoid an error. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char dld_link ();
11976 main ()
11978 dld_link ();
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_lib_dld_dld_link=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_lib_dld_dld_link=no
12012 rm -f conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12018 if test $ac_cv_lib_dld_dld_link = yes; then
12019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12038 esac
12040 if test "x$lt_cv_dlopen" != xno; then
12041 enable_dlopen=yes
12042 else
12043 enable_dlopen=no
12046 case $lt_cv_dlopen in
12047 dlopen)
12048 save_CPPFLAGS="$CPPFLAGS"
12049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12051 save_LDFLAGS="$LDFLAGS"
12052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12054 save_LIBS="$LIBS"
12055 LIBS="$lt_cv_dlopen_libs $LIBS"
12057 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12059 if test "${lt_cv_dlopen_self+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 if test "$cross_compiling" = yes; then :
12063 lt_cv_dlopen_self=cross
12064 else
12065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066 lt_status=$lt_dlunknown
12067 cat > conftest.$ac_ext <<_LT_EOF
12068 #line 12068 "configure"
12069 #include "confdefs.h"
12071 #if HAVE_DLFCN_H
12072 #include <dlfcn.h>
12073 #endif
12075 #include <stdio.h>
12077 #ifdef RTLD_GLOBAL
12078 # define LT_DLGLOBAL RTLD_GLOBAL
12079 #else
12080 # ifdef DL_GLOBAL
12081 # define LT_DLGLOBAL DL_GLOBAL
12082 # else
12083 # define LT_DLGLOBAL 0
12084 # endif
12085 #endif
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088 find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12090 # ifdef RTLD_LAZY
12091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12092 # else
12093 # ifdef DL_LAZY
12094 # define LT_DLLAZY_OR_NOW DL_LAZY
12095 # else
12096 # ifdef RTLD_NOW
12097 # define LT_DLLAZY_OR_NOW RTLD_NOW
12098 # else
12099 # ifdef DL_NOW
12100 # define LT_DLLAZY_OR_NOW DL_NOW
12101 # else
12102 # define LT_DLLAZY_OR_NOW 0
12103 # endif
12104 # endif
12105 # endif
12106 # endif
12107 #endif
12109 #ifdef __cplusplus
12110 extern "C" void exit (int);
12111 #endif
12113 void fnord() { int i=42;}
12114 int main ()
12116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12117 int status = $lt_dlunknown;
12119 if (self)
12121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12123 /* dlclose (self); */
12125 else
12126 puts (dlerror ());
12128 exit (status);
12130 _LT_EOF
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132 (eval $ac_link) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12136 (./conftest; exit; ) >&5 2>/dev/null
12137 lt_status=$?
12138 case x$lt_status in
12139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12142 esac
12143 else :
12144 # compilation failed
12145 lt_cv_dlopen_self=no
12148 rm -fr conftest*
12152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12155 if test "x$lt_cv_dlopen_self" = xyes; then
12156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12157 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12159 if test "${lt_cv_dlopen_self_static+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162 if test "$cross_compiling" = yes; then :
12163 lt_cv_dlopen_self_static=cross
12164 else
12165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12166 lt_status=$lt_dlunknown
12167 cat > conftest.$ac_ext <<_LT_EOF
12168 #line 12168 "configure"
12169 #include "confdefs.h"
12171 #if HAVE_DLFCN_H
12172 #include <dlfcn.h>
12173 #endif
12175 #include <stdio.h>
12177 #ifdef RTLD_GLOBAL
12178 # define LT_DLGLOBAL RTLD_GLOBAL
12179 #else
12180 # ifdef DL_GLOBAL
12181 # define LT_DLGLOBAL DL_GLOBAL
12182 # else
12183 # define LT_DLGLOBAL 0
12184 # endif
12185 #endif
12187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12188 find out it does not work in some platform. */
12189 #ifndef LT_DLLAZY_OR_NOW
12190 # ifdef RTLD_LAZY
12191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12192 # else
12193 # ifdef DL_LAZY
12194 # define LT_DLLAZY_OR_NOW DL_LAZY
12195 # else
12196 # ifdef RTLD_NOW
12197 # define LT_DLLAZY_OR_NOW RTLD_NOW
12198 # else
12199 # ifdef DL_NOW
12200 # define LT_DLLAZY_OR_NOW DL_NOW
12201 # else
12202 # define LT_DLLAZY_OR_NOW 0
12203 # endif
12204 # endif
12205 # endif
12206 # endif
12207 #endif
12209 #ifdef __cplusplus
12210 extern "C" void exit (int);
12211 #endif
12213 void fnord() { int i=42;}
12214 int main ()
12216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12217 int status = $lt_dlunknown;
12219 if (self)
12221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12223 /* dlclose (self); */
12225 else
12226 puts (dlerror ());
12228 exit (status);
12230 _LT_EOF
12231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12232 (eval $ac_link) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12236 (./conftest; exit; ) >&5 2>/dev/null
12237 lt_status=$?
12238 case x$lt_status in
12239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12242 esac
12243 else :
12244 # compilation failed
12245 lt_cv_dlopen_self_static=no
12248 rm -fr conftest*
12252 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12256 CPPFLAGS="$save_CPPFLAGS"
12257 LDFLAGS="$save_LDFLAGS"
12258 LIBS="$save_LIBS"
12260 esac
12262 case $lt_cv_dlopen_self in
12263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12264 *) enable_dlopen_self=unknown ;;
12265 esac
12267 case $lt_cv_dlopen_self_static in
12268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12269 *) enable_dlopen_self_static=unknown ;;
12270 esac
12289 striplib=
12290 old_striplib=
12291 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12292 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12293 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12296 echo "$as_me:$LINENO: result: yes" >&5
12297 echo "${ECHO_T}yes" >&6
12298 else
12299 # FIXME - insert some real tests, host_os isn't really good enough
12300 case $host_os in
12301 darwin*)
12302 if test -n "$STRIP" ; then
12303 striplib="$STRIP -x"
12304 old_striplib="$STRIP -S"
12305 echo "$as_me:$LINENO: result: yes" >&5
12306 echo "${ECHO_T}yes" >&6
12307 else
12308 echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6
12313 echo "$as_me:$LINENO: result: no" >&5
12314 echo "${ECHO_T}no" >&6
12316 esac
12330 # Report which library types will actually be built
12331 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12332 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12333 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12334 echo "${ECHO_T}$can_build_shared" >&6
12336 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12337 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12338 test "$can_build_shared" = "no" && enable_shared=no
12340 # On AIX, shared libraries and static libraries use the same namespace, and
12341 # are all built from PIC.
12342 case $host_os in
12343 aix3*)
12344 test "$enable_shared" = yes && enable_static=no
12345 if test -n "$RANLIB"; then
12346 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12347 postinstall_cmds='$RANLIB $lib'
12351 aix[4-9]*)
12352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12353 test "$enable_shared" = yes && enable_static=no
12356 esac
12357 echo "$as_me:$LINENO: result: $enable_shared" >&5
12358 echo "${ECHO_T}$enable_shared" >&6
12360 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12361 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12362 # Make sure either enable_shared or enable_static is yes.
12363 test "$enable_shared" = yes || enable_static=yes
12364 echo "$as_me:$LINENO: result: $enable_static" >&5
12365 echo "${ECHO_T}$enable_static" >&6
12371 ac_ext=c
12372 ac_cpp='$CPP $CPPFLAGS'
12373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377 CC="$lt_save_CC"
12380 ac_ext=cc
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12386 archive_cmds_need_lc_CXX=no
12387 allow_undefined_flag_CXX=
12388 always_export_symbols_CXX=no
12389 archive_expsym_cmds_CXX=
12390 compiler_needs_object_CXX=no
12391 export_dynamic_flag_spec_CXX=
12392 hardcode_direct_CXX=no
12393 hardcode_direct_absolute_CXX=no
12394 hardcode_libdir_flag_spec_CXX=
12395 hardcode_libdir_flag_spec_ld_CXX=
12396 hardcode_libdir_separator_CXX=
12397 hardcode_minus_L_CXX=no
12398 hardcode_shlibpath_var_CXX=unsupported
12399 hardcode_automatic_CXX=no
12400 inherit_rpath_CXX=no
12401 module_cmds_CXX=
12402 module_expsym_cmds_CXX=
12403 link_all_deplibs_CXX=unknown
12404 old_archive_cmds_CXX=$old_archive_cmds
12405 no_undefined_flag_CXX=
12406 whole_archive_flag_spec_CXX=
12407 enable_shared_with_static_runtimes_CXX=no
12409 # Source file extension for C++ test sources.
12410 ac_ext=cpp
12412 # Object file extension for compiled C++ test sources.
12413 objext=o
12414 objext_CXX=$objext
12416 # No sense in running all these tests if we already determined that
12417 # the CXX compiler isn't working. Some variables (like enable_shared)
12418 # are currently assumed to apply to all compilers on this platform,
12419 # and will be corrupted by setting them based on a non-working compiler.
12420 if test "$_lt_caught_CXX_error" != yes; then
12421 # Code to be used in simple compile tests
12422 lt_simple_compile_test_code="int some_variable = 0;"
12424 # Code to be used in simple link tests
12425 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12427 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12434 # If no C compiler was specified, use CC.
12435 LTCC=${LTCC-"$CC"}
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12440 # Allow CC to be a program name with arguments.
12441 compiler=$CC
12444 # save warnings/boilerplate of simple test code
12445 ac_outfile=conftest.$ac_objext
12446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12448 _lt_compiler_boilerplate=`cat conftest.err`
12449 $RM conftest*
12451 ac_outfile=conftest.$ac_objext
12452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12454 _lt_linker_boilerplate=`cat conftest.err`
12455 $RM conftest*
12458 # Allow CC to be a program name with arguments.
12459 lt_save_CC=$CC
12460 lt_save_LD=$LD
12461 lt_save_GCC=$GCC
12462 GCC=$GXX
12463 lt_save_with_gnu_ld=$with_gnu_ld
12464 lt_save_path_LD=$lt_cv_path_LD
12465 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12466 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12467 else
12468 $as_unset lt_cv_prog_gnu_ld
12470 if test -n "${lt_cv_path_LDCXX+set}"; then
12471 lt_cv_path_LD=$lt_cv_path_LDCXX
12472 else
12473 $as_unset lt_cv_path_LD
12475 test -z "${LDCXX+set}" || LD=$LDCXX
12476 CC=${CXX-"c++"}
12477 compiler=$CC
12478 compiler_CXX=$CC
12479 for cc_temp in $compiler""; do
12480 case $cc_temp in
12481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12483 \-*) ;;
12484 *) break;;
12485 esac
12486 done
12487 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12490 if test -n "$compiler"; then
12491 # We don't want -fno-exception when compiling C++ code, so set the
12492 # no_builtin_flag separately
12493 if test "$GXX" = yes; then
12494 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12495 else
12496 lt_prog_compiler_no_builtin_flag_CXX=
12499 if test "$GXX" = yes; then
12500 # Set up default GNU C++ configuration
12504 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12505 if test "${with_gnu_ld+set}" = set; then
12506 withval="$with_gnu_ld"
12507 test "$withval" = no || with_gnu_ld=yes
12508 else
12509 with_gnu_ld=no
12511 ac_prog=ld
12512 if test "$GCC" = yes; then
12513 # Check if gcc -print-prog-name=ld gives a path.
12514 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12515 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12516 case $host in
12517 *-*-mingw*)
12518 # gcc leaves a trailing carriage return which upsets mingw
12519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12522 esac
12523 case $ac_prog in
12524 # Accept absolute paths.
12525 [\\/]* | ?:[\\/]*)
12526 re_direlt='/[^/][^/]*/\.\./'
12527 # Canonicalize the pathname of ld
12528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12531 done
12532 test -z "$LD" && LD="$ac_prog"
12535 # If it fails, then pretend we aren't using GCC.
12536 ac_prog=ld
12539 # If it is relative, then search for the first ld in PATH.
12540 with_gnu_ld=unknown
12542 esac
12543 elif test "$with_gnu_ld" = yes; then
12544 echo "$as_me:$LINENO: checking for GNU ld" >&5
12545 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12546 else
12547 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12548 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12550 if test "${lt_cv_path_LD+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553 if test -z "$LD"; then
12554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12555 for ac_dir in $PATH; do
12556 IFS="$lt_save_ifs"
12557 test -z "$ac_dir" && ac_dir=.
12558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12559 lt_cv_path_LD="$ac_dir/$ac_prog"
12560 # Check to see if the program is GNU ld. I'd rather use --version,
12561 # but apparently some variants of GNU ld only accept -v.
12562 # Break only if it was the GNU/non-GNU ld that we prefer.
12563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12564 *GNU* | *'with BFD'*)
12565 test "$with_gnu_ld" != no && break
12568 test "$with_gnu_ld" != yes && break
12570 esac
12572 done
12573 IFS="$lt_save_ifs"
12574 else
12575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12579 LD="$lt_cv_path_LD"
12580 if test -n "$LD"; then
12581 echo "$as_me:$LINENO: result: $LD" >&5
12582 echo "${ECHO_T}$LD" >&6
12583 else
12584 echo "$as_me:$LINENO: result: no" >&5
12585 echo "${ECHO_T}no" >&6
12587 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12588 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12589 { (exit 1); exit 1; }; }
12590 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12591 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12592 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12596 case `$LD -v 2>&1 </dev/null` in
12597 *GNU* | *'with BFD'*)
12598 lt_cv_prog_gnu_ld=yes
12601 lt_cv_prog_gnu_ld=no
12603 esac
12605 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12606 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12607 with_gnu_ld=$lt_cv_prog_gnu_ld
12615 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12616 # archiving commands below assume that GNU ld is being used.
12617 if test "$with_gnu_ld" = yes; then
12618 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 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'
12621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12624 # If archive_cmds runs LD, not CC, wlarc should be empty
12625 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12626 # investigate it a little bit more. (MM)
12627 wlarc='${wl}'
12629 # ancient GNU ld didn't support --whole-archive et. al.
12630 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12631 $GREP 'no-whole-archive' > /dev/null; then
12632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12633 else
12634 whole_archive_flag_spec_CXX=
12636 else
12637 with_gnu_ld=no
12638 wlarc=
12640 # A generic and very simple default shared library creation
12641 # command for GNU C++ for the case where it uses the native
12642 # linker, instead of GNU ld. If possible, this setting should
12643 # overridden to take advantage of the native linker features on
12644 # the platform it is being used on.
12645 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12648 # Commands to make compiler produce verbose output that lists
12649 # what "hidden" libraries, object files and flags are used when
12650 # linking a shared library.
12651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12653 else
12654 GXX=no
12655 with_gnu_ld=no
12656 wlarc=
12659 # PORTME: fill in a description of your system's C++ link characteristics
12660 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12662 ld_shlibs_CXX=yes
12663 case $host_os in
12664 aix3*)
12665 # FIXME: insert proper C++ library support
12666 ld_shlibs_CXX=no
12668 aix[4-9]*)
12669 if test "$host_cpu" = ia64; then
12670 # On IA64, the linker does run time linking by default, so we don't
12671 # have to do anything special.
12672 aix_use_runtimelinking=no
12673 exp_sym_flag='-Bexport'
12674 no_entry_flag=""
12675 else
12676 aix_use_runtimelinking=no
12678 # Test if we are trying to use run time linking or normal
12679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680 # need to do runtime linking.
12681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12682 for ld_flag in $LDFLAGS; do
12683 case $ld_flag in
12684 *-brtl*)
12685 aix_use_runtimelinking=yes
12686 break
12688 esac
12689 done
12691 esac
12693 exp_sym_flag='-bexport'
12694 no_entry_flag='-bnoentry'
12697 # When large executables or shared objects are built, AIX ld can
12698 # have problems creating the table of contents. If linking a library
12699 # or program results in "error TOC overflow" add -mminimal-toc to
12700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12703 archive_cmds_CXX=''
12704 hardcode_direct_CXX=yes
12705 hardcode_direct_absolute_CXX=yes
12706 hardcode_libdir_separator_CXX=':'
12707 link_all_deplibs_CXX=yes
12708 file_list_spec_CXX='${wl}-f,'
12710 if test "$GXX" = yes; then
12711 case $host_os in aix4.[012]|aix4.[012].*)
12712 # We only want to do this on AIX 4.2 and lower, the check
12713 # below for broken collect2 doesn't work under 4.3+
12714 collect2name=`${CC} -print-prog-name=collect2`
12715 if test -f "$collect2name" &&
12716 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12717 then
12718 # We have reworked collect2
12720 else
12721 # We have old collect2
12722 hardcode_direct_CXX=unsupported
12723 # It fails to find uninstalled libraries when the uninstalled
12724 # path is not listed in the libpath. Setting hardcode_minus_L
12725 # to unsupported forces relinking
12726 hardcode_minus_L_CXX=yes
12727 hardcode_libdir_flag_spec_CXX='-L$libdir'
12728 hardcode_libdir_separator_CXX=
12730 esac
12731 shared_flag='-shared'
12732 if test "$aix_use_runtimelinking" = yes; then
12733 shared_flag="$shared_flag "'${wl}-G'
12735 else
12736 # not using gcc
12737 if test "$host_cpu" = ia64; then
12738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12739 # chokes on -Wl,-G. The following line is correct:
12740 shared_flag='-G'
12741 else
12742 if test "$aix_use_runtimelinking" = yes; then
12743 shared_flag='${wl}-G'
12744 else
12745 shared_flag='${wl}-bM:SRE'
12750 # It seems that -bexpall does not export symbols beginning with
12751 # underscore (_), so it is better to generate a list of symbols to
12752 # export.
12753 always_export_symbols_CXX=yes
12754 if test "$aix_use_runtimelinking" = yes; then
12755 # Warning - without using the other runtime loading flags (-brtl),
12756 # -berok will link without error, but may produce a broken library.
12757 allow_undefined_flag_CXX='-berok'
12758 # Determine the default libpath from the value encoded in an empty
12759 # executable.
12760 if test x$gcc_no_link = xyes; then
12761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12763 { (exit 1); exit 1; }; }
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12773 main ()
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_cxx_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12803 lt_aix_libpath_sed='
12804 /Import File Strings/,/^$/ {
12805 /^0/ {
12806 s/^0 *\(.*\)$/\1/
12810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12811 # Check for a 64-bit object if we didn't find anything.
12812 if test -z "$aix_libpath"; then
12813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12815 else
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12824 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12826 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"
12827 else
12828 if test "$host_cpu" = ia64; then
12829 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12830 allow_undefined_flag_CXX="-z nodefs"
12831 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"
12832 else
12833 # Determine the default libpath from the value encoded in an
12834 # empty executable.
12835 if test x$gcc_no_link = xyes; then
12836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12838 { (exit 1); exit 1; }; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h. */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12848 main ()
12852 return 0;
12854 _ACEOF
12855 rm -f conftest.$ac_objext conftest$ac_exeext
12856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12857 (eval $ac_link) 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_cxx_werror_flag"
12865 || test ! -s conftest.err'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; } &&
12871 { ac_try='test -s conftest$ac_exeext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12878 lt_aix_libpath_sed='
12879 /Import File Strings/,/^$/ {
12880 /^0/ {
12881 s/^0 *\(.*\)$/\1/
12885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12886 # Check for a 64-bit object if we didn't find anything.
12887 if test -z "$aix_libpath"; then
12888 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12890 else
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12895 rm -f conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12899 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12900 # Warning - without using the other run time loading flags,
12901 # -berok will link without error, but may produce a broken library.
12902 no_undefined_flag_CXX=' ${wl}-bernotok'
12903 allow_undefined_flag_CXX=' ${wl}-berok'
12904 # Exported symbols can be pulled into shared objects from archives
12905 whole_archive_flag_spec_CXX='$convenience'
12906 archive_cmds_need_lc_CXX=yes
12907 # This is similar to how AIX traditionally builds its shared
12908 # libraries.
12909 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'
12914 beos*)
12915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12916 allow_undefined_flag_CXX=unsupported
12917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12918 # support --undefined. This deserves some investigation. FIXME
12919 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 else
12921 ld_shlibs_CXX=no
12925 chorus*)
12926 case $cc_basename in
12928 # FIXME: insert proper C++ library support
12929 ld_shlibs_CXX=no
12931 esac
12934 cygwin* | mingw* | pw32*)
12935 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12936 # as there is no search path for DLLs.
12937 hardcode_libdir_flag_spec_CXX='-L$libdir'
12938 allow_undefined_flag_CXX=unsupported
12939 always_export_symbols_CXX=no
12940 enable_shared_with_static_runtimes_CXX=yes
12942 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12943 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'
12944 # If the export-symbols file already is a .def file (1st line
12945 # is EXPORTS), use it as is; otherwise, prepend...
12946 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12947 cp $export_symbols $output_objdir/$soname.def;
12948 else
12949 echo EXPORTS > $output_objdir/$soname.def;
12950 cat $export_symbols >> $output_objdir/$soname.def;
12952 $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'
12953 else
12954 ld_shlibs_CXX=no
12957 darwin* | rhapsody*)
12958 case $host_os in
12959 rhapsody* | darwin1.[012])
12960 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12962 *) # Darwin 1.3 on
12963 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12964 10.[012])
12965 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12967 10.*)
12968 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12970 esac
12972 esac
12973 archive_cmds_need_lc_CXX=no
12974 hardcode_direct_CXX=no
12975 hardcode_automatic_CXX=yes
12976 hardcode_shlibpath_var_CXX=unsupported
12977 whole_archive_flag_spec_CXX=''
12978 link_all_deplibs_CXX=yes
12980 if test "$GXX" = yes ; then
12981 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 lt_cv_apple_cc_single_mod=no
12985 if test -z "${LT_MULTI_MODULE}"; then
12986 # By default we will add the -single_module flag. You can override
12987 # by either setting the environment variable LT_MULTI_MODULE
12988 # non-empty at configure time, or by adding -multi-module to the
12989 # link flags.
12990 echo "int foo(void){return 1;}" > conftest.c
12991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12992 -dynamiclib ${wl}-single_module conftest.c
12993 if test -f libconftest.dylib; then
12994 lt_cv_apple_cc_single_mod=yes
12995 rm libconftest.dylib
12997 rm conftest.$ac_ext
13001 output_verbose_link_cmd=echo
13002 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13003 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13004 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}'
13005 else
13006 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'
13007 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}'
13009 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13010 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}'
13011 else
13012 case $cc_basename in
13013 xlc*)
13014 output_verbose_link_cmd=echo
13015 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'
13016 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13017 # Don't fix this by using the ld -exported_symbols_list flag,
13018 # it doesn't exist in older darwin lds
13019 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}'
13020 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}'
13023 ld_shlibs_CXX=no
13025 esac
13029 dgux*)
13030 case $cc_basename in
13031 ec++*)
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13035 ghcx*)
13036 # Green Hills C++ Compiler
13037 # FIXME: insert proper C++ library support
13038 ld_shlibs_CXX=no
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13044 esac
13047 freebsd[12]*)
13048 # C++ shared libraries reported to be fairly broken before
13049 # switch to ELF
13050 ld_shlibs_CXX=no
13053 freebsd-elf*)
13054 archive_cmds_need_lc_CXX=no
13057 freebsd* | dragonfly*)
13058 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13059 # conventions
13060 ld_shlibs_CXX=yes
13063 gnu*)
13066 hpux9*)
13067 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13068 hardcode_libdir_separator_CXX=:
13069 export_dynamic_flag_spec_CXX='${wl}-E'
13070 hardcode_direct_CXX=yes
13071 hardcode_minus_L_CXX=yes # Not in the search PATH,
13072 # but as the default
13073 # location of the library.
13075 case $cc_basename in
13076 CC*)
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13080 aCC*)
13081 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'
13082 # Commands to make compiler produce verbose output that lists
13083 # what "hidden" libraries, object files and flags are used when
13084 # linking a shared library.
13086 # There doesn't appear to be a way to prevent this compiler from
13087 # explicitly linking system object files so we need to strip them
13088 # from the output so that they don't get included in the library
13089 # dependencies.
13090 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'
13093 if test "$GXX" = yes; then
13094 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'
13095 else
13096 # FIXME: insert proper C++ library support
13097 ld_shlibs_CXX=no
13100 esac
13103 hpux10*|hpux11*)
13104 if test $with_gnu_ld = no; then
13105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13106 hardcode_libdir_separator_CXX=:
13108 case $host_cpu in
13109 hppa*64*|ia64*)
13112 export_dynamic_flag_spec_CXX='${wl}-E'
13114 esac
13116 case $host_cpu in
13117 hppa*64*|ia64*)
13118 hardcode_direct_CXX=no
13119 hardcode_shlibpath_var_CXX=no
13122 hardcode_direct_CXX=yes
13123 hardcode_direct_absolute_CXX=yes
13124 hardcode_minus_L_CXX=yes # Not in the search PATH,
13125 # but as the default
13126 # location of the library.
13128 esac
13130 case $cc_basename in
13131 CC*)
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13135 aCC*)
13136 case $host_cpu in
13137 hppa*64*)
13138 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13140 ia64*)
13141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13144 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13146 esac
13147 # Commands to make compiler produce verbose output that lists
13148 # what "hidden" libraries, object files and flags are used when
13149 # linking a shared library.
13151 # There doesn't appear to be a way to prevent this compiler from
13152 # explicitly linking system object files so we need to strip them
13153 # from the output so that they don't get included in the library
13154 # dependencies.
13155 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'
13158 if test "$GXX" = yes; then
13159 if test $with_gnu_ld = no; then
13160 case $host_cpu in
13161 hppa*64*)
13162 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 ia64*)
13165 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13168 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'
13170 esac
13172 else
13173 # FIXME: insert proper C++ library support
13174 ld_shlibs_CXX=no
13177 esac
13180 interix[3-9]*)
13181 hardcode_direct_CXX=no
13182 hardcode_shlibpath_var_CXX=no
13183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13184 export_dynamic_flag_spec_CXX='${wl}-E'
13185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13186 # Instead, shared libraries are loaded at an image base (0x10000000 by
13187 # default) and relocated if they conflict, which is a slow very memory
13188 # consuming and fragmenting process. To avoid this, we pick a random,
13189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13191 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'
13192 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'
13194 irix5* | irix6*)
13195 case $cc_basename in
13196 CC*)
13197 # SGI C++
13198 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'
13200 # Archives containing C++ object files must be created using
13201 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13202 # necessary to make sure instantiated templates are included
13203 # in the archive.
13204 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13207 if test "$GXX" = yes; then
13208 if test "$with_gnu_ld" = no; then
13209 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'
13210 else
13211 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'
13214 link_all_deplibs_CXX=yes
13216 esac
13217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13218 hardcode_libdir_separator_CXX=:
13219 inherit_rpath_CXX=yes
13222 linux* | k*bsd*-gnu)
13223 case $cc_basename in
13224 KCC*)
13225 # Kuck and Associates, Inc. (KAI) C++ Compiler
13227 # KCC will only create a shared library if the output file
13228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229 # to its proper name (with version) after linking.
13230 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'
13231 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'
13232 # Commands to make compiler produce verbose output that lists
13233 # what "hidden" libraries, object files and flags are used when
13234 # linking a shared library.
13236 # There doesn't appear to be a way to prevent this compiler from
13237 # explicitly linking system object files so we need to strip them
13238 # from the output so that they don't get included in the library
13239 # dependencies.
13240 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'
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13245 # Archives containing C++ object files must be created using
13246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13247 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13249 icpc* | ecpc* )
13250 # Intel C++
13251 with_gnu_ld=yes
13252 # version 8.0 and above of icpc choke on multiply defined symbols
13253 # if we add $predep_objects and $postdep_objects, however 7.1 and
13254 # earlier do not add the objects themselves.
13255 case `$CC -V 2>&1` in
13256 *"Version 7."*)
13257 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13258 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'
13260 *) # Version 8.0 or newer
13261 tmp_idyn=
13262 case $host_cpu in
13263 ia64*) tmp_idyn=' -i_dynamic';;
13264 esac
13265 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266 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'
13268 esac
13269 archive_cmds_need_lc_CXX=no
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13272 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13274 pgCC*)
13275 # Portland Group C++ compiler
13276 case `$CC -V` in
13277 *pgCC\ [1-5]*)
13278 prelink_cmds_CXX='tpldir=Template.dir~
13279 rm -rf $tpldir~
13280 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13281 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13282 old_archive_cmds_CXX='tpldir=Template.dir~
13283 rm -rf $tpldir~
13284 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13285 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13286 $RANLIB $oldlib'
13287 archive_cmds_CXX='tpldir=Template.dir~
13288 rm -rf $tpldir~
13289 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13290 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13291 archive_expsym_cmds_CXX='tpldir=Template.dir~
13292 rm -rf $tpldir~
13293 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13294 $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'
13296 *) # Version 6 will use weak symbols
13297 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13298 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'
13300 esac
13302 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13304 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'
13306 cxx*)
13307 # Compaq C++
13308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13309 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'
13311 runpath_var=LD_RUN_PATH
13312 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13313 hardcode_libdir_separator_CXX=:
13315 # Commands to make compiler produce verbose output that lists
13316 # what "hidden" libraries, object files and flags are used when
13317 # linking a shared library.
13319 # There doesn't appear to be a way to prevent this compiler from
13320 # explicitly linking system object files so we need to strip them
13321 # from the output so that they don't get included in the library
13322 # dependencies.
13323 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'
13326 case `$CC -V 2>&1 | sed 5q` in
13327 *Sun\ C*)
13328 # Sun C++ 5.9
13329 no_undefined_flag_CXX=' -zdefs'
13330 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13331 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'
13332 hardcode_libdir_flag_spec_CXX='-R$libdir'
13333 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'
13334 compiler_needs_object_CXX=yes
13336 # Not sure whether something based on
13337 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13338 # would be better.
13339 output_verbose_link_cmd='echo'
13341 # Archives containing C++ object files must be created using
13342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13343 # necessary to make sure instantiated templates are included
13344 # in the archive.
13345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13347 esac
13349 esac
13352 lynxos*)
13353 # FIXME: insert proper C++ library support
13354 ld_shlibs_CXX=no
13357 m88k*)
13358 # FIXME: insert proper C++ library support
13359 ld_shlibs_CXX=no
13362 mvs*)
13363 case $cc_basename in
13364 cxx*)
13365 # FIXME: insert proper C++ library support
13366 ld_shlibs_CXX=no
13369 # FIXME: insert proper C++ library support
13370 ld_shlibs_CXX=no
13372 esac
13375 netbsd*)
13376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13377 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13378 wlarc=
13379 hardcode_libdir_flag_spec_CXX='-R$libdir'
13380 hardcode_direct_CXX=yes
13381 hardcode_shlibpath_var_CXX=no
13383 # Workaround some broken pre-1.5 toolchains
13384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13387 *nto* | *qnx*)
13388 ld_shlibs_CXX=yes
13391 openbsd2*)
13392 # C++ shared libraries are fairly broken
13393 ld_shlibs_CXX=no
13396 openbsd*)
13397 hardcode_direct_CXX=yes
13398 hardcode_shlibpath_var_CXX=no
13399 hardcode_direct_absolute_CXX=yes
13400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13403 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13404 export_dynamic_flag_spec_CXX='${wl}-E'
13405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13407 output_verbose_link_cmd=echo
13410 osf3* | osf4* | osf5*)
13411 case $cc_basename in
13412 KCC*)
13413 # Kuck and Associates, Inc. (KAI) C++ Compiler
13415 # KCC will only create a shared library if the output file
13416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13417 # to its proper name (with version) after linking.
13418 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'
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 hardcode_libdir_separator_CXX=:
13423 # Archives containing C++ object files must be created using
13424 # the KAI C++ compiler.
13425 case $host in
13426 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13427 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13428 esac
13430 RCC*)
13431 # Rational C++ 2.4.1
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13435 cxx*)
13436 case $host in
13437 osf3*)
13438 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13439 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'
13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13443 allow_undefined_flag_CXX=' -expect_unresolved \*'
13444 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'
13445 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13446 echo "-hidden">> $lib.exp~
13447 $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~
13448 $RM $lib.exp'
13449 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13451 esac
13453 hardcode_libdir_separator_CXX=:
13455 # Commands to make compiler produce verbose output that lists
13456 # what "hidden" libraries, object files and flags are used when
13457 # linking a shared library.
13459 # There doesn't appear to be a way to prevent this compiler from
13460 # explicitly linking system object files so we need to strip them
13461 # from the output so that they don't get included in the library
13462 # dependencies.
13463 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'
13466 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13467 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13468 case $host in
13469 osf3*)
13470 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'
13473 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'
13475 esac
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13478 hardcode_libdir_separator_CXX=:
13480 # Commands to make compiler produce verbose output that lists
13481 # what "hidden" libraries, object files and flags are used when
13482 # linking a shared library.
13483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13485 else
13486 # FIXME: insert proper C++ library support
13487 ld_shlibs_CXX=no
13490 esac
13493 psos*)
13494 # FIXME: insert proper C++ library support
13495 ld_shlibs_CXX=no
13498 sunos4*)
13499 case $cc_basename in
13500 CC*)
13501 # Sun C++ 4.x
13502 # FIXME: insert proper C++ library support
13503 ld_shlibs_CXX=no
13505 lcc*)
13506 # Lucid
13507 # FIXME: insert proper C++ library support
13508 ld_shlibs_CXX=no
13511 # FIXME: insert proper C++ library support
13512 ld_shlibs_CXX=no
13514 esac
13517 solaris*)
13518 case $cc_basename in
13519 CC*)
13520 # Sun C++ 4.2, 5.x and Centerline C++
13521 archive_cmds_need_lc_CXX=yes
13522 no_undefined_flag_CXX=' -zdefs'
13523 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13524 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525 $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'
13527 hardcode_libdir_flag_spec_CXX='-R$libdir'
13528 hardcode_shlibpath_var_CXX=no
13529 case $host_os in
13530 solaris2.[0-5] | solaris2.[0-5].*) ;;
13532 # The compiler driver will combine and reorder linker options,
13533 # but understands `-z linker_flag'.
13534 # Supported since Solaris 2.6 (maybe 2.5.1?)
13535 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13537 esac
13538 link_all_deplibs_CXX=yes
13540 output_verbose_link_cmd='echo'
13542 # Archives containing C++ object files must be created using
13543 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13544 # necessary to make sure instantiated templates are included
13545 # in the archive.
13546 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13548 gcx*)
13549 # Green Hills C++ Compiler
13550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13552 # The C++ compiler must be used to create the archive.
13553 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13556 # GNU C++ compiler with Solaris linker
13557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13558 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13559 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13560 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13561 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13562 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13564 # Commands to make compiler produce verbose output that lists
13565 # what "hidden" libraries, object files and flags are used when
13566 # linking a shared library.
13567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13568 else
13569 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13570 # platform.
13571 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13572 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13575 # Commands to make compiler produce verbose output that lists
13576 # what "hidden" libraries, object files and flags are used when
13577 # linking a shared library.
13578 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13581 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13582 case $host_os in
13583 solaris2.[0-5] | solaris2.[0-5].*) ;;
13585 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13587 esac
13590 esac
13593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13594 no_undefined_flag_CXX='${wl}-z,text'
13595 archive_cmds_need_lc_CXX=no
13596 hardcode_shlibpath_var_CXX=no
13597 runpath_var='LD_RUN_PATH'
13599 case $cc_basename in
13600 CC*)
13601 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13605 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13606 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13608 esac
13611 sysv5* | sco3.2v5* | sco5v6*)
13612 # Note: We can NOT use -z defs as we might desire, because we do not
13613 # link with -lc, and that would cause any symbols used from libc to
13614 # always be unresolved, which means just about no library would
13615 # ever link correctly. If we're not using GNU ld we use -z text
13616 # though, which does catch some bad symbols but isn't as heavy-handed
13617 # as -z defs.
13618 no_undefined_flag_CXX='${wl}-z,text'
13619 allow_undefined_flag_CXX='${wl}-z,nodefs'
13620 archive_cmds_need_lc_CXX=no
13621 hardcode_shlibpath_var_CXX=no
13622 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13623 hardcode_libdir_separator_CXX=':'
13624 link_all_deplibs_CXX=yes
13625 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13626 runpath_var='LD_RUN_PATH'
13628 case $cc_basename in
13629 CC*)
13630 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 esac
13640 tandem*)
13641 case $cc_basename in
13642 NCC*)
13643 # NonStop-UX NCC 3.20
13644 # FIXME: insert proper C++ library support
13645 ld_shlibs_CXX=no
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13651 esac
13654 vxworks*)
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13660 # FIXME: insert proper C++ library support
13661 ld_shlibs_CXX=no
13663 esac
13665 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13666 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13667 test "$ld_shlibs_CXX" = no && can_build_shared=no
13669 GCC_CXX="$GXX"
13670 LD_CXX="$LD"
13672 ## CAVEAT EMPTOR:
13673 ## There is no encapsulation within the following macros, do not change
13674 ## the running order or otherwise move them around unless you know exactly
13675 ## what you are doing...
13676 # Dependencies to place before and after the object being linked:
13677 predep_objects_CXX=
13678 postdep_objects_CXX=
13679 predeps_CXX=
13680 postdeps_CXX=
13681 compiler_lib_search_path_CXX=
13683 cat > conftest.$ac_ext <<_LT_EOF
13684 class Foo
13686 public:
13687 Foo (void) { a = 0; }
13688 private:
13689 int a;
13691 _LT_EOF
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; then
13698 # Parse the compiler output and extract the necessary
13699 # objects, libraries and library flags.
13701 # Sentinel used to keep track of whether or not we are before
13702 # the conftest object file.
13703 pre_test_object_deps_done=no
13705 # The `*' in the case matches for architectures that use `case' in
13706 # $output_verbose_cmd can trigger glob expansion during the loop
13707 # eval without this substitution.
13708 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13710 for p in `eval $output_verbose_link_cmd`; do
13711 case $p in
13713 -L* | -R* | -l*)
13714 # Some compilers place space between "-{L,R}" and the path.
13715 # Remove the space.
13716 if test $p = "-L" ||
13717 test $p = "-R"; then
13718 prev=$p
13719 continue
13720 else
13721 prev=
13724 if test "$pre_test_object_deps_done" = no; then
13725 case $p in
13726 -L* | -R*)
13727 # Internal compiler library paths should come after those
13728 # provided the user. The postdeps already come after the
13729 # user supplied libs so there is no need to process them.
13730 if test -z "$compiler_lib_search_path_CXX"; then
13731 compiler_lib_search_path_CXX="${prev}${p}"
13732 else
13733 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13736 # The "-l" case would never come before the object being
13737 # linked, so don't bother handling this case.
13738 esac
13739 else
13740 if test -z "$postdeps_CXX"; then
13741 postdeps_CXX="${prev}${p}"
13742 else
13743 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13748 *.$objext)
13749 # This assumes that the test object file only shows up
13750 # once in the compiler output.
13751 if test "$p" = "conftest.$objext"; then
13752 pre_test_object_deps_done=yes
13753 continue
13756 if test "$pre_test_object_deps_done" = no; then
13757 if test -z "$predep_objects_CXX"; then
13758 predep_objects_CXX="$p"
13759 else
13760 predep_objects_CXX="$predep_objects_CXX $p"
13762 else
13763 if test -z "$postdep_objects_CXX"; then
13764 postdep_objects_CXX="$p"
13765 else
13766 postdep_objects_CXX="$postdep_objects_CXX $p"
13771 *) ;; # Ignore the rest.
13773 esac
13774 done
13776 # Clean up.
13777 rm -f a.out a.exe
13778 else
13779 echo "libtool.m4: error: problem compiling CXX test program"
13782 $RM -f confest.$objext
13784 # PORTME: override above test on systems where it is broken
13785 case $host_os in
13786 interix[3-9]*)
13787 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13788 # hack all around it, let's just trust "g++" to DTRT.
13789 predep_objects_CXX=
13790 postdep_objects_CXX=
13791 postdeps_CXX=
13794 linux*)
13795 case `$CC -V 2>&1 | sed 5q` in
13796 *Sun\ C*)
13797 # Sun C++ 5.9
13799 # The more standards-conforming stlport4 library is
13800 # incompatible with the Cstd library. Avoid specifying
13801 # it if it's in CXXFLAGS. Ignore libCrun as
13802 # -library=stlport4 depends on it.
13803 case " $CXX $CXXFLAGS " in
13804 *" -library=stlport4 "*)
13805 solaris_use_stlport4=yes
13807 esac
13809 if test "$solaris_use_stlport4" != yes; then
13810 postdeps_CXX='-library=Cstd -library=Crun'
13813 esac
13816 solaris*)
13817 case $cc_basename in
13818 CC*)
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 # Adding this requires a known-good setup of shared libraries for
13830 # Sun compiler versions before 5.6, else PIC objects from an old
13831 # archive will be linked into the output, leading to subtle bugs.
13832 if test "$solaris_use_stlport4" != yes; then
13833 postdeps_CXX='-library=Cstd -library=Crun'
13836 esac
13838 esac
13841 case " $postdeps_CXX " in
13842 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13843 esac
13870 lt_prog_compiler_wl_CXX=
13871 lt_prog_compiler_pic_CXX=
13872 lt_prog_compiler_static_CXX=
13874 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13875 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13877 # C++ specific cases for pic, static, wl, etc.
13878 if test "$GXX" = yes; then
13879 lt_prog_compiler_wl_CXX='-Wl,'
13880 lt_prog_compiler_static_CXX='-static'
13882 case $host_os in
13883 aix*)
13884 # All AIX code is PIC.
13885 if test "$host_cpu" = ia64; then
13886 # AIX 5 now supports IA64 processor
13887 lt_prog_compiler_static_CXX='-Bstatic'
13890 amigaos*)
13891 if test "$host_cpu" = m68k; then
13892 # FIXME: we need at least 68020 code to build shared libraries, but
13893 # adding the `-m68020' flag to GCC prevents building anything better,
13894 # like `-m68040'.
13895 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13899 # PIC is the default for these OSes.
13901 mingw* | cygwin* | os2* | pw32*)
13902 # This hack is so that the source file can tell whether it is being
13903 # built for inclusion in a dll (and should export symbols for example).
13904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13905 # (--disable-auto-import) libraries
13906 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13908 darwin* | rhapsody*)
13909 # PIC is the default on this platform
13910 # Common symbols not allowed in MH_DYLIB files
13911 lt_prog_compiler_pic_CXX='-fno-common'
13913 *djgpp*)
13914 # DJGPP does not support shared libraries at all
13915 lt_prog_compiler_pic_CXX=
13917 interix[3-9]*)
13918 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13919 # Instead, we relocate shared libraries at runtime.
13921 sysv4*MP*)
13922 if test -d /usr/nec; then
13923 lt_prog_compiler_pic_CXX=-Kconform_pic
13926 hpux*)
13927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13928 # not for PA HP-UX.
13929 case $host_cpu in
13930 hppa*64*|ia64*)
13933 lt_prog_compiler_pic_CXX='-fPIC'
13935 esac
13937 *qnx* | *nto*)
13938 # QNX uses GNU C++, but need to define -shared option too, otherwise
13939 # it will coredump.
13940 lt_prog_compiler_pic_CXX='-fPIC -shared'
13943 lt_prog_compiler_pic_CXX='-fPIC'
13945 esac
13946 else
13947 case $host_os in
13948 aix[4-9]*)
13949 # All AIX code is PIC.
13950 if test "$host_cpu" = ia64; then
13951 # AIX 5 now supports IA64 processor
13952 lt_prog_compiler_static_CXX='-Bstatic'
13953 else
13954 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13957 chorus*)
13958 case $cc_basename in
13959 cxch68*)
13960 # Green Hills C++ Compiler
13961 # _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"
13963 esac
13965 darwin*)
13966 # PIC is the default on this platform
13967 # Common symbols not allowed in MH_DYLIB files
13968 case $cc_basename in
13969 xlc*)
13970 lt_prog_compiler_pic_CXX='-qnocommon'
13971 lt_prog_compiler_wl_CXX='-Wl,'
13973 esac
13975 dgux*)
13976 case $cc_basename in
13977 ec++*)
13978 lt_prog_compiler_pic_CXX='-KPIC'
13980 ghcx*)
13981 # Green Hills C++ Compiler
13982 lt_prog_compiler_pic_CXX='-pic'
13986 esac
13988 freebsd* | dragonfly*)
13989 # FreeBSD uses GNU C++
13991 hpux9* | hpux10* | hpux11*)
13992 case $cc_basename in
13993 CC*)
13994 lt_prog_compiler_wl_CXX='-Wl,'
13995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13996 if test "$host_cpu" != ia64; then
13997 lt_prog_compiler_pic_CXX='+Z'
14000 aCC*)
14001 lt_prog_compiler_wl_CXX='-Wl,'
14002 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14003 case $host_cpu in
14004 hppa*64*|ia64*)
14005 # +Z the default
14008 lt_prog_compiler_pic_CXX='+Z'
14010 esac
14014 esac
14016 interix*)
14017 # This is c89, which is MS Visual C++ (no shared libs)
14018 # Anyone wants to do a port?
14020 irix5* | irix6* | nonstopux*)
14021 case $cc_basename in
14022 CC*)
14023 lt_prog_compiler_wl_CXX='-Wl,'
14024 lt_prog_compiler_static_CXX='-non_shared'
14025 # CC pic flag -KPIC is the default.
14029 esac
14031 linux* | k*bsd*-gnu)
14032 case $cc_basename in
14033 KCC*)
14034 # KAI C++ Compiler
14035 lt_prog_compiler_wl_CXX='--backend -Wl,'
14036 lt_prog_compiler_pic_CXX='-fPIC'
14038 icpc* | ecpc* )
14039 # Intel C++
14040 lt_prog_compiler_wl_CXX='-Wl,'
14041 lt_prog_compiler_pic_CXX='-KPIC'
14042 lt_prog_compiler_static_CXX='-static'
14044 pgCC*)
14045 # Portland Group C++ compiler
14046 lt_prog_compiler_wl_CXX='-Wl,'
14047 lt_prog_compiler_pic_CXX='-fpic'
14048 lt_prog_compiler_static_CXX='-Bstatic'
14050 cxx*)
14051 # Compaq C++
14052 # Make sure the PIC flag is empty. It appears that all Alpha
14053 # Linux and Compaq Tru64 Unix objects are PIC.
14054 lt_prog_compiler_pic_CXX=
14055 lt_prog_compiler_static_CXX='-non_shared'
14058 case `$CC -V 2>&1 | sed 5q` in
14059 *Sun\ C*)
14060 # Sun C++ 5.9
14061 lt_prog_compiler_pic_CXX='-KPIC'
14062 lt_prog_compiler_static_CXX='-Bstatic'
14063 lt_prog_compiler_wl_CXX='-Qoption ld '
14065 esac
14067 esac
14069 lynxos*)
14071 m88k*)
14073 mvs*)
14074 case $cc_basename in
14075 cxx*)
14076 lt_prog_compiler_pic_CXX='-W c,exportall'
14080 esac
14082 netbsd*)
14084 *qnx* | *nto*)
14085 # QNX uses GNU C++, but need to define -shared option too, otherwise
14086 # it will coredump.
14087 lt_prog_compiler_pic_CXX='-fPIC -shared'
14089 osf3* | osf4* | osf5*)
14090 case $cc_basename in
14091 KCC*)
14092 lt_prog_compiler_wl_CXX='--backend -Wl,'
14094 RCC*)
14095 # Rational C++ 2.4.1
14096 lt_prog_compiler_pic_CXX='-pic'
14098 cxx*)
14099 # Digital/Compaq C++
14100 lt_prog_compiler_wl_CXX='-Wl,'
14101 # Make sure the PIC flag is empty. It appears that all Alpha
14102 # Linux and Compaq Tru64 Unix objects are PIC.
14103 lt_prog_compiler_pic_CXX=
14104 lt_prog_compiler_static_CXX='-non_shared'
14108 esac
14110 psos*)
14112 solaris*)
14113 case $cc_basename in
14114 CC*)
14115 # Sun C++ 4.2, 5.x and Centerline C++
14116 lt_prog_compiler_pic_CXX='-KPIC'
14117 lt_prog_compiler_static_CXX='-Bstatic'
14118 lt_prog_compiler_wl_CXX='-Qoption ld '
14120 gcx*)
14121 # Green Hills C++ Compiler
14122 lt_prog_compiler_pic_CXX='-PIC'
14126 esac
14128 sunos4*)
14129 case $cc_basename in
14130 CC*)
14131 # Sun C++ 4.x
14132 lt_prog_compiler_pic_CXX='-pic'
14133 lt_prog_compiler_static_CXX='-Bstatic'
14135 lcc*)
14136 # Lucid
14137 lt_prog_compiler_pic_CXX='-pic'
14141 esac
14143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14144 case $cc_basename in
14145 CC*)
14146 lt_prog_compiler_wl_CXX='-Wl,'
14147 lt_prog_compiler_pic_CXX='-KPIC'
14148 lt_prog_compiler_static_CXX='-Bstatic'
14150 esac
14152 tandem*)
14153 case $cc_basename in
14154 NCC*)
14155 # NonStop-UX NCC 3.20
14156 lt_prog_compiler_pic_CXX='-KPIC'
14160 esac
14162 vxworks*)
14165 lt_prog_compiler_can_build_shared_CXX=no
14167 esac
14170 case $host_os in
14171 # For platforms which do not support PIC, -DPIC is meaningless:
14172 *djgpp*)
14173 lt_prog_compiler_pic_CXX=
14176 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14178 esac
14179 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14180 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14185 # Check to make sure the PIC flag actually works.
14187 if test -n "$lt_prog_compiler_pic_CXX"; then
14188 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14189 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14190 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193 lt_prog_compiler_pic_works_CXX=no
14194 ac_outfile=conftest.$ac_objext
14195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14196 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14197 # Insert the option either (1) after the last *FLAGS variable, or
14198 # (2) before a word containing "conftest.", or (3) at the end.
14199 # Note that $ac_compile itself does not contain backslashes and begins
14200 # with a dollar sign (not a hyphen), so the echo should work correctly.
14201 # The option is referenced via a variable to avoid confusing sed.
14202 lt_compile=`echo "$ac_compile" | $SED \
14203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14205 -e 's:$: $lt_compiler_flag:'`
14206 (eval echo "\"\$as_me:14206: $lt_compile\"" >&5)
14207 (eval "$lt_compile" 2>conftest.err)
14208 ac_status=$?
14209 cat conftest.err >&5
14210 echo "$as_me:14210: \$? = $ac_status" >&5
14211 if (exit $ac_status) && test -s "$ac_outfile"; then
14212 # The compiler can only warn and ignore the option if not recognized
14213 # So say no if there are warnings other than the usual output.
14214 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14217 lt_prog_compiler_pic_works_CXX=yes
14220 $RM conftest*
14223 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14224 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14226 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14227 case $lt_prog_compiler_pic_CXX in
14228 "" | " "*) ;;
14229 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14230 esac
14231 else
14232 lt_prog_compiler_pic_CXX=
14233 lt_prog_compiler_can_build_shared_CXX=no
14241 # Check to make sure the static flag actually works.
14243 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14244 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14245 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14246 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249 lt_prog_compiler_static_works_CXX=no
14250 save_LDFLAGS="$LDFLAGS"
14251 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14252 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14254 # The linker can only warn and ignore the option if not recognized
14255 # So say no if there are warnings
14256 if test -s conftest.err; then
14257 # Append any errors to the config.log.
14258 cat conftest.err 1>&5
14259 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14261 if diff conftest.exp conftest.er2 >/dev/null; then
14262 lt_prog_compiler_static_works_CXX=yes
14264 else
14265 lt_prog_compiler_static_works_CXX=yes
14268 $RM conftest*
14269 LDFLAGS="$save_LDFLAGS"
14272 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14273 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14275 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14277 else
14278 lt_prog_compiler_static_CXX=
14284 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14285 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14286 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 lt_cv_prog_compiler_c_o_CXX=no
14290 $RM -r conftest 2>/dev/null
14291 mkdir conftest
14292 cd conftest
14293 mkdir out
14294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14296 lt_compiler_flag="-o out/conftest2.$ac_objext"
14297 # Insert the option either (1) after the last *FLAGS variable, or
14298 # (2) before a word containing "conftest.", or (3) at the end.
14299 # Note that $ac_compile itself does not contain backslashes and begins
14300 # with a dollar sign (not a hyphen), so the echo should work correctly.
14301 lt_compile=`echo "$ac_compile" | $SED \
14302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14304 -e 's:$: $lt_compiler_flag:'`
14305 (eval echo "\"\$as_me:14305: $lt_compile\"" >&5)
14306 (eval "$lt_compile" 2>out/conftest.err)
14307 ac_status=$?
14308 cat out/conftest.err >&5
14309 echo "$as_me:14309: \$? = $ac_status" >&5
14310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14311 then
14312 # The compiler can only warn and ignore the option if not recognized
14313 # So say no if there are warnings
14314 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14317 lt_cv_prog_compiler_c_o_CXX=yes
14320 chmod u+w . 2>&5
14321 $RM conftest*
14322 # SGI C++ compiler will create directory out/ii_files/ for
14323 # template instantiation
14324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14325 $RM out/* && rmdir out
14326 cd ..
14327 $RM -r conftest
14328 $RM conftest*
14331 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14332 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14336 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14338 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 lt_cv_prog_compiler_c_o_CXX=no
14342 $RM -r conftest 2>/dev/null
14343 mkdir conftest
14344 cd conftest
14345 mkdir out
14346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14348 lt_compiler_flag="-o out/conftest2.$ac_objext"
14349 # Insert the option either (1) after the last *FLAGS variable, or
14350 # (2) before a word containing "conftest.", or (3) at the end.
14351 # Note that $ac_compile itself does not contain backslashes and begins
14352 # with a dollar sign (not a hyphen), so the echo should work correctly.
14353 lt_compile=`echo "$ac_compile" | $SED \
14354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14356 -e 's:$: $lt_compiler_flag:'`
14357 (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
14358 (eval "$lt_compile" 2>out/conftest.err)
14359 ac_status=$?
14360 cat out/conftest.err >&5
14361 echo "$as_me:14361: \$? = $ac_status" >&5
14362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14363 then
14364 # The compiler can only warn and ignore the option if not recognized
14365 # So say no if there are warnings
14366 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14369 lt_cv_prog_compiler_c_o_CXX=yes
14372 chmod u+w . 2>&5
14373 $RM conftest*
14374 # SGI C++ compiler will create directory out/ii_files/ for
14375 # template instantiation
14376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14377 $RM out/* && rmdir out
14378 cd ..
14379 $RM -r conftest
14380 $RM conftest*
14383 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14389 hard_links="nottested"
14390 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14391 # do not overwrite the value of need_locks provided by the user
14392 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14394 hard_links=yes
14395 $RM conftest*
14396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14397 touch conftest.a
14398 ln conftest.a conftest.b 2>&5 || hard_links=no
14399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14400 echo "$as_me:$LINENO: result: $hard_links" >&5
14401 echo "${ECHO_T}$hard_links" >&6
14402 if test "$hard_links" = no; then
14403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14405 need_locks=warn
14407 else
14408 need_locks=no
14413 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14414 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14417 case $host_os in
14418 aix[4-9]*)
14419 # If we're using GNU nm, then we don't want the "-C" option.
14420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14422 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'
14423 else
14424 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'
14427 pw32*)
14428 export_symbols_cmds_CXX="$ltdll_cmds"
14430 cygwin* | mingw*)
14431 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'
14434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14436 esac
14438 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14439 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14440 test "$ld_shlibs_CXX" = no && can_build_shared=no
14442 with_gnu_ld_CXX=$with_gnu_ld
14450 # Do we need to explicitly link libc?
14452 case "x$archive_cmds_need_lc_CXX" in
14453 x|xyes)
14454 # Assume -lc should be added
14455 archive_cmds_need_lc_CXX=yes
14457 if test "$enable_shared" = yes && test "$GCC" = yes; then
14458 case $archive_cmds_CXX in
14459 *'~'*)
14460 # FIXME: we may have to deal with multi-command sequences.
14462 '$CC '*)
14463 # Test whether the compiler implicitly links with -lc since on some
14464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14465 # to ld, don't add -lc before -lgcc.
14466 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14468 $RM conftest*
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } 2>conftest.err; then
14476 soname=conftest
14477 lib=conftest
14478 libobjs=conftest.$ac_objext
14479 deplibs=
14480 wl=$lt_prog_compiler_wl_CXX
14481 pic_flag=$lt_prog_compiler_pic_CXX
14482 compiler_flags=-v
14483 linker_flags=-v
14484 verstring=
14485 output_objdir=.
14486 libname=conftest
14487 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14488 allow_undefined_flag_CXX=
14489 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14490 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }
14494 then
14495 archive_cmds_need_lc_CXX=no
14496 else
14497 archive_cmds_need_lc_CXX=yes
14499 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14500 else
14501 cat conftest.err 1>&5
14503 $RM conftest*
14504 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14505 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14507 esac
14510 esac
14575 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14577 withGCC=$GXX
14578 library_names_spec=
14579 libname_spec='lib$name'
14580 soname_spec=
14581 shrext_cmds=".so"
14582 postinstall_cmds=
14583 postuninstall_cmds=
14584 finish_cmds=
14585 finish_eval=
14586 shlibpath_var=
14587 shlibpath_overrides_runpath=unknown
14588 version_type=none
14589 dynamic_linker="$host_os ld.so"
14590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14591 need_lib_prefix=unknown
14592 hardcode_into_libs=no
14594 # when you set need_version to no, make sure it does not cause -set_version
14595 # flags to be left without arguments
14596 need_version=unknown
14598 case $host_os in
14599 aix3*)
14600 version_type=linux
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14602 shlibpath_var=LIBPATH
14604 # AIX 3 has no versioning support, so we append a major version to the name.
14605 soname_spec='${libname}${release}${shared_ext}$major'
14608 aix[4-9]*)
14609 version_type=linux
14610 need_lib_prefix=no
14611 need_version=no
14612 hardcode_into_libs=yes
14613 if test "$host_cpu" = ia64; then
14614 # AIX 5 supports IA64
14615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 else
14618 # With GCC up to 2.95.x, collect2 would create an import file
14619 # for dependence libraries. The import file would start with
14620 # the line `#! .'. This would cause the generated library to
14621 # depend on `.', always an invalid library. This was fixed in
14622 # development snapshots of GCC prior to 3.0.
14623 case $host_os in
14624 aix4 | aix4.[01] | aix4.[01].*)
14625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14626 echo ' yes '
14627 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14629 else
14630 can_build_shared=no
14633 esac
14634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14635 # soname into executable. Probably we can add versioning support to
14636 # collect2, so additional links can be useful in future.
14637 if test "$aix_use_runtimelinking" = yes; then
14638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14639 # instead of lib<name>.a to let people know that these are not
14640 # typical AIX shared libraries.
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 else
14643 # We preserve .a as extension for shared libraries through AIX4.2
14644 # and later when we are not doing run time linking.
14645 library_names_spec='${libname}${release}.a $libname.a'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LIBPATH
14652 amigaos*)
14653 if test "$host_cpu" = m68k; then
14654 library_names_spec='$libname.ixlibrary $libname.a'
14655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14656 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'
14657 else
14658 dynamic_linker=no
14662 beos*)
14663 library_names_spec='${libname}${shared_ext}'
14664 dynamic_linker="$host_os ld.so"
14665 shlibpath_var=LIBRARY_PATH
14668 bsdi[45]*)
14669 version_type=linux
14670 need_version=no
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14677 # the default ld.so.conf also contains /usr/contrib/lib and
14678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14679 # libtool to hard-code these into programs
14682 cygwin* | mingw* | pw32*)
14683 version_type=windows
14684 shrext_cmds=".dll"
14685 need_version=no
14686 need_lib_prefix=no
14688 case $withGCC,$host_os in
14689 yes,cygwin* | yes,mingw* | yes,pw32*)
14690 library_names_spec='$libname.dll.a'
14691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14692 postinstall_cmds='base_file=`basename \${file}`~
14693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14694 dldir=$destdir/`dirname \$dlpath`~
14695 test -d \$dldir || mkdir -p \$dldir~
14696 $install_prog $dir/$dlname \$dldir/$dlname~
14697 chmod a+x \$dldir/$dlname~
14698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14702 dlpath=$dir/\$dldll~
14703 $RM \$dlpath'
14704 shlibpath_overrides_runpath=yes
14706 case $host_os in
14707 cygwin*)
14708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14710 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14712 mingw*)
14713 # MinGW DLLs use traditional 'lib' prefix
14714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14715 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14716 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14717 # It is most probably a Windows format PATH printed by
14718 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14719 # path with ; separators, and with drive letters. We can handle the
14720 # drive letters (cygwin fileutils understands them), so leave them,
14721 # especially as we might pass files found there to a mingw objdump,
14722 # which wouldn't understand a cygwinified path. Ahh.
14723 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14724 else
14725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14728 pw32*)
14729 # pw32 DLLs use 'pw' prefix rather than 'lib'
14730 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14732 esac
14736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14738 esac
14739 dynamic_linker='Win32 ld.exe'
14740 # FIXME: first we should search . and the directory the executable is in
14741 shlibpath_var=PATH
14744 darwin* | rhapsody*)
14745 dynamic_linker="$host_os dyld"
14746 version_type=darwin
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14750 soname_spec='${libname}${release}${major}$shared_ext'
14751 shlibpath_overrides_runpath=yes
14752 shlibpath_var=DYLD_LIBRARY_PATH
14753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14758 dgux*)
14759 version_type=linux
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14767 freebsd1*)
14768 dynamic_linker=no
14771 freebsd* | dragonfly*)
14772 # DragonFly does not have aout. When/if they implement a new
14773 # versioning mechanism, adjust this.
14774 if test -x /usr/bin/objformat; then
14775 objformat=`/usr/bin/objformat`
14776 else
14777 case $host_os in
14778 freebsd[123]*) objformat=aout ;;
14779 *) objformat=elf ;;
14780 esac
14782 version_type=freebsd-$objformat
14783 case $version_type in
14784 freebsd-elf*)
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14786 need_version=no
14787 need_lib_prefix=no
14789 freebsd-*)
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14791 need_version=yes
14793 esac
14794 shlibpath_var=LD_LIBRARY_PATH
14795 case $host_os in
14796 freebsd2*)
14797 shlibpath_overrides_runpath=yes
14799 freebsd3.[01]* | freebsdelf3.[01]*)
14800 shlibpath_overrides_runpath=yes
14801 hardcode_into_libs=yes
14803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14805 shlibpath_overrides_runpath=no
14806 hardcode_into_libs=yes
14808 *) # from 4.6 on, and DragonFly
14809 shlibpath_overrides_runpath=yes
14810 hardcode_into_libs=yes
14812 esac
14815 gnu*)
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 hardcode_into_libs=yes
14825 hpux9* | hpux10* | hpux11*)
14826 # Give a soname corresponding to the major version so that dld.sl refuses to
14827 # link against other versions.
14828 version_type=sunos
14829 need_lib_prefix=no
14830 need_version=no
14831 case $host_cpu in
14832 ia64*)
14833 shrext_cmds='.so'
14834 hardcode_into_libs=yes
14835 dynamic_linker="$host_os dld.so"
14836 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 if test "X$HPUX_IA64_MODE" = X32; then
14841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14842 else
14843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14847 hppa*64*)
14848 shrext_cmds='.sl'
14849 hardcode_into_libs=yes
14850 dynamic_linker="$host_os dld.sl"
14851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14859 shrext_cmds='.sl'
14860 dynamic_linker="$host_os dld.sl"
14861 shlibpath_var=SHLIB_PATH
14862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14866 esac
14867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14868 postinstall_cmds='chmod 555 $lib'
14871 interix[3-9]*)
14872 version_type=linux
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=no
14880 hardcode_into_libs=yes
14883 irix5* | irix6* | nonstopux*)
14884 case $host_os in
14885 nonstopux*) version_type=nonstopux ;;
14887 if test "$lt_cv_prog_gnu_ld" = yes; then
14888 version_type=linux
14889 else
14890 version_type=irix
14891 fi ;;
14892 esac
14893 need_lib_prefix=no
14894 need_version=no
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14897 case $host_os in
14898 irix5* | nonstopux*)
14899 libsuff= shlibsuff=
14902 case $LD in # libtool.m4 will add one of these switches to LD
14903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14904 libsuff= shlibsuff= libmagic=32-bit;;
14905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14906 libsuff=32 shlibsuff=N32 libmagic=N32;;
14907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14909 *) libsuff= shlibsuff= libmagic=never-match;;
14910 esac
14912 esac
14913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14914 shlibpath_overrides_runpath=no
14915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14917 hardcode_into_libs=yes
14920 # No shared lib support for Linux oldld, aout, or coff.
14921 linux*oldld* | linux*aout* | linux*coff*)
14922 dynamic_linker=no
14925 # This must be Linux ELF.
14926 linux* | k*bsd*-gnu)
14927 version_type=linux
14928 need_lib_prefix=no
14929 need_version=no
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=no
14935 # Some binutils ld are patched to set DT_RUNPATH
14936 save_LDFLAGS=$LDFLAGS
14937 save_libdir=$libdir
14938 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14939 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14940 if test x$gcc_no_link = xyes; then
14941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14943 { (exit 1); exit 1; }; }
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14953 main ()
14957 return 0;
14959 _ACEOF
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_cxx_werror_flag"
14970 || test ! -s conftest.err'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
14983 shlibpath_overrides_runpath=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14991 rm -f conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14993 LDFLAGS=$save_LDFLAGS
14994 libdir=$save_libdir
14996 # This implies no fast_install, which is unacceptable.
14997 # Some rework will be needed to allow for fast_install
14998 # before this can be enabled.
14999 hardcode_into_libs=yes
15001 # Append ld.so.conf contents to the search path
15002 if test -f /etc/ld.so.conf; then
15003 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' ' '`
15004 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15007 # We used to test for /lib/ld.so.1 and disable shared libraries on
15008 # powerpc, because MkLinux only supported shared libraries with the
15009 # GNU dynamic linker. Since this was broken with cross compilers,
15010 # most powerpc-linux boxes support dynamic linking these days and
15011 # people can always --disable-shared, the test was removed, and we
15012 # assume the GNU/Linux dynamic linker is in use.
15013 dynamic_linker='GNU/Linux ld.so'
15016 netbsd*)
15017 version_type=sunos
15018 need_lib_prefix=no
15019 need_version=no
15020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15023 dynamic_linker='NetBSD (a.out) ld.so'
15024 else
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 dynamic_linker='NetBSD ld.elf_so'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 shlibpath_overrides_runpath=yes
15031 hardcode_into_libs=yes
15034 newsos6)
15035 version_type=linux
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 shlibpath_overrides_runpath=yes
15041 *nto* | *qnx*)
15042 version_type=qnx
15043 need_lib_prefix=no
15044 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15049 hardcode_into_libs=yes
15050 dynamic_linker='ldqnx.so'
15053 openbsd*)
15054 version_type=sunos
15055 sys_lib_dlsearch_path_spec="/usr/lib"
15056 need_lib_prefix=no
15057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15058 case $host_os in
15059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15060 *) need_version=no ;;
15061 esac
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15064 shlibpath_var=LD_LIBRARY_PATH
15065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15066 case $host_os in
15067 openbsd2.[89] | openbsd2.[89].*)
15068 shlibpath_overrides_runpath=no
15071 shlibpath_overrides_runpath=yes
15073 esac
15074 else
15075 shlibpath_overrides_runpath=yes
15079 os2*)
15080 libname_spec='$name'
15081 shrext_cmds=".dll"
15082 need_lib_prefix=no
15083 library_names_spec='$libname${shared_ext} $libname.a'
15084 dynamic_linker='OS/2 ld.exe'
15085 shlibpath_var=LIBPATH
15088 osf3* | osf4* | osf5*)
15089 version_type=osf
15090 need_lib_prefix=no
15091 need_version=no
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 shlibpath_var=LD_LIBRARY_PATH
15095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15099 rdos*)
15100 dynamic_linker=no
15103 solaris*)
15104 version_type=linux
15105 need_lib_prefix=no
15106 need_version=no
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 shlibpath_var=LD_LIBRARY_PATH
15110 shlibpath_overrides_runpath=yes
15111 hardcode_into_libs=yes
15112 # ldd complains unless libraries are executable
15113 postinstall_cmds='chmod +x $lib'
15116 sunos4*)
15117 version_type=sunos
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 if test "$with_gnu_ld" = yes; then
15123 need_lib_prefix=no
15125 need_version=yes
15128 sysv4 | sysv4.3*)
15129 version_type=linux
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 case $host_vendor in
15134 sni)
15135 shlibpath_overrides_runpath=no
15136 need_lib_prefix=no
15137 runpath_var=LD_RUN_PATH
15139 siemens)
15140 need_lib_prefix=no
15142 motorola)
15143 need_lib_prefix=no
15144 need_version=no
15145 shlibpath_overrides_runpath=no
15146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15148 esac
15151 sysv4*MP*)
15152 if test -d /usr/nec ;then
15153 version_type=linux
15154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15155 soname_spec='$libname${shared_ext}.$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15161 version_type=freebsd-elf
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 hardcode_into_libs=yes
15169 if test "$with_gnu_ld" = yes; then
15170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15171 else
15172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15173 case $host_os in
15174 sco3.2v5*)
15175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15177 esac
15179 sys_lib_dlsearch_path_spec='/usr/lib'
15182 tpf*)
15183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15184 version_type=linux
15185 need_lib_prefix=no
15186 need_version=no
15187 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=no
15190 hardcode_into_libs=yes
15193 uts4*)
15194 version_type=linux
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LD_LIBRARY_PATH
15201 dynamic_linker=no
15203 esac
15204 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15205 echo "${ECHO_T}$dynamic_linker" >&6
15206 test "$dynamic_linker" = no && can_build_shared=no
15208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15209 if test "$GCC" = yes; then
15210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15250 hardcode_action_CXX=
15251 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15252 test -n "$runpath_var_CXX" ||
15253 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15255 # We can hardcode non-existent directories.
15256 if test "$hardcode_direct_CXX" != no &&
15257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15258 # have to relink, otherwise we might link with an installed library
15259 # when we should be linking with a yet-to-be-installed one
15260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15261 test "$hardcode_minus_L_CXX" != no; then
15262 # Linking always hardcodes the temporary library directory.
15263 hardcode_action_CXX=relink
15264 else
15265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15266 hardcode_action_CXX=immediate
15268 else
15269 # We cannot hardcode anything, or else we can only hardcode existing
15270 # directories.
15271 hardcode_action_CXX=unsupported
15273 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15274 echo "${ECHO_T}$hardcode_action_CXX" >&6
15276 if test "$hardcode_action_CXX" = relink ||
15277 test "$inherit_rpath_CXX" = yes; then
15278 # Fast installation is not supported
15279 enable_fast_install=no
15280 elif test "$shlibpath_overrides_runpath" = yes ||
15281 test "$enable_shared" = no; then
15282 # Fast installation is not necessary
15283 enable_fast_install=needless
15292 fi # test -n "$compiler"
15294 CC=$lt_save_CC
15295 LDCXX=$LD
15296 LD=$lt_save_LD
15297 GCC=$lt_save_GCC
15298 with_gnu_ld=$lt_save_with_gnu_ld
15299 lt_cv_path_LDCXX=$lt_cv_path_LD
15300 lt_cv_path_LD=$lt_save_path_LD
15301 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15302 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15303 fi # test "$_lt_caught_CXX_error" != yes
15305 ac_ext=c
15306 ac_cpp='$CPP $CPPFLAGS'
15307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15323 ac_config_commands="$ac_config_commands libtool"
15328 # Only expand once:
15332 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
15334 # Extract the first word of "$ac_prog", so it can be a program name with args.
15335 set dummy $ac_prog; ac_word=$2
15336 echo "$as_me:$LINENO: checking for $ac_word" >&5
15337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15338 if test "${ac_cv_prog_GCJ+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 if test -n "$GCJ"; then
15342 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15343 else
15344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $PATH
15347 IFS=$as_save_IFS
15348 test -z "$as_dir" && as_dir=.
15349 for ac_exec_ext in '' $ac_executable_extensions; do
15350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15351 ac_cv_prog_GCJ="$ac_prog"
15352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15353 break 2
15355 done
15356 done
15360 GCJ=$ac_cv_prog_GCJ
15361 if test -n "$GCJ"; then
15362 echo "$as_me:$LINENO: result: $GCJ" >&5
15363 echo "${ECHO_T}$GCJ" >&6
15364 else
15365 echo "$as_me:$LINENO: result: no" >&5
15366 echo "${ECHO_T}no" >&6
15369 test -n "$GCJ" && break
15370 done
15371 test -n "$GCJ" || GCJ="gcj"
15373 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15374 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15375 { (exit 1); exit 1; }; }
15376 if test "x${GCJFLAGS-unset}" = xunset; then
15377 GCJFLAGS="-g -O2"
15381 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15383 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15384 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15385 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15389 # We make a subdir and do the tests there. Otherwise we can end up
15390 # making bogus files that we don't know about and never remove. For
15391 # instance it was reported that on HP-UX the gcc test will end up
15392 # making a dummy file named `D' -- because `-MD' means `put the output
15393 # in D'.
15394 mkdir conftest.dir
15395 # Copy depcomp to subdir because otherwise we won't find it if we're
15396 # using a relative directory.
15397 cp "$am_depcomp" conftest.dir
15398 cd conftest.dir
15399 # We will build objects and dependencies in a subdirectory because
15400 # it helps to detect inapplicable dependency modes. For instance
15401 # both Tru64's cc and ICC support -MD to output dependencies as a
15402 # side effect of compilation, but ICC will put the dependencies in
15403 # the current directory while Tru64 will put them in the object
15404 # directory.
15405 mkdir sub
15407 am_cv_GCJ_dependencies_compiler_type=none
15408 if test "$am_compiler_list" = ""; then
15409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15411 for depmode in $am_compiler_list; do
15412 # Setup a source with many dependencies, because some compilers
15413 # like to wrap large dependency lists on column 80 (with \), and
15414 # we should not choose a depcomp mode which is confused by this.
15416 # We need to recreate these files for each test, as the compiler may
15417 # overwrite some of them when testing with obscure command lines.
15418 # This happens at least with the AIX C compiler.
15419 : > sub/conftest.c
15420 for i in 1 2 3 4 5 6; do
15421 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15422 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15423 # Solaris 8's {/usr,}/bin/sh.
15424 touch sub/conftst$i.h
15425 done
15426 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15428 case $depmode in
15429 nosideeffect)
15430 # after this tag, mechanisms are not by side-effect, so they'll
15431 # only be used when explicitly requested
15432 if test "x$enable_dependency_tracking" = xyes; then
15433 continue
15434 else
15435 break
15438 none) break ;;
15439 esac
15440 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15441 # mode. It turns out that the SunPro C++ compiler does not properly
15442 # handle `-M -o', and we need to detect this.
15443 if depmode=$depmode \
15444 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15446 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15447 >/dev/null 2>conftest.err &&
15448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15449 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15451 # icc doesn't choke on unknown options, it will just issue warnings
15452 # or remarks (even with -Werror). So we grep stderr for any message
15453 # that says an option was ignored or not supported.
15454 # When given -MP, icc 7.0 and 7.1 complain thusly:
15455 # icc: Command line warning: ignoring option '-M'; no argument required
15456 # The diagnosis changed in icc 8.0:
15457 # icc: Command line remark: option '-MP' not supported
15458 if (grep 'ignoring option' conftest.err ||
15459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15460 am_cv_GCJ_dependencies_compiler_type=$depmode
15461 break
15464 done
15466 cd ..
15467 rm -rf conftest.dir
15468 else
15469 am_cv_GCJ_dependencies_compiler_type=none
15473 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15474 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15475 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15480 test "x$enable_dependency_tracking" != xno \
15481 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15482 am__fastdepGCJ_TRUE=
15483 am__fastdepGCJ_FALSE='#'
15484 else
15485 am__fastdepGCJ_TRUE='#'
15486 am__fastdepGCJ_FALSE=
15491 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
15493 # Extract the first word of "$ac_prog", so it can be a program name with args.
15494 set dummy $ac_prog; ac_word=$2
15495 echo "$as_me:$LINENO: checking for $ac_word" >&5
15496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15497 if test "${ac_cv_prog_GCJ+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500 if test -n "$GCJ"; then
15501 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15502 else
15503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504 for as_dir in $PATH
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for ac_exec_ext in '' $ac_executable_extensions; do
15509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15510 ac_cv_prog_GCJ="$ac_prog"
15511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15512 break 2
15514 done
15515 done
15519 GCJ=$ac_cv_prog_GCJ
15520 if test -n "$GCJ"; then
15521 echo "$as_me:$LINENO: result: $GCJ" >&5
15522 echo "${ECHO_T}$GCJ" >&6
15523 else
15524 echo "$as_me:$LINENO: result: no" >&5
15525 echo "${ECHO_T}no" >&6
15528 test -n "$GCJ" && break
15529 done
15530 test -n "$GCJ" || GCJ="gcj"
15532 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15533 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15534 { (exit 1); exit 1; }; }
15535 if test "x${GCJFLAGS-unset}" = xunset; then
15536 GCJFLAGS="-g -O2"
15540 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15544 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15548 # We make a subdir and do the tests there. Otherwise we can end up
15549 # making bogus files that we don't know about and never remove. For
15550 # instance it was reported that on HP-UX the gcc test will end up
15551 # making a dummy file named `D' -- because `-MD' means `put the output
15552 # in D'.
15553 mkdir conftest.dir
15554 # Copy depcomp to subdir because otherwise we won't find it if we're
15555 # using a relative directory.
15556 cp "$am_depcomp" conftest.dir
15557 cd conftest.dir
15558 # We will build objects and dependencies in a subdirectory because
15559 # it helps to detect inapplicable dependency modes. For instance
15560 # both Tru64's cc and ICC support -MD to output dependencies as a
15561 # side effect of compilation, but ICC will put the dependencies in
15562 # the current directory while Tru64 will put them in the object
15563 # directory.
15564 mkdir sub
15566 am_cv_GCJ_dependencies_compiler_type=none
15567 if test "$am_compiler_list" = ""; then
15568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15570 for depmode in $am_compiler_list; do
15571 # Setup a source with many dependencies, because some compilers
15572 # like to wrap large dependency lists on column 80 (with \), and
15573 # we should not choose a depcomp mode which is confused by this.
15575 # We need to recreate these files for each test, as the compiler may
15576 # overwrite some of them when testing with obscure command lines.
15577 # This happens at least with the AIX C compiler.
15578 : > sub/conftest.c
15579 for i in 1 2 3 4 5 6; do
15580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15582 # Solaris 8's {/usr,}/bin/sh.
15583 touch sub/conftst$i.h
15584 done
15585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15587 case $depmode in
15588 nosideeffect)
15589 # after this tag, mechanisms are not by side-effect, so they'll
15590 # only be used when explicitly requested
15591 if test "x$enable_dependency_tracking" = xyes; then
15592 continue
15593 else
15594 break
15597 none) break ;;
15598 esac
15599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15600 # mode. It turns out that the SunPro C++ compiler does not properly
15601 # handle `-M -o', and we need to detect this.
15602 if depmode=$depmode \
15603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15606 >/dev/null 2>conftest.err &&
15607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15608 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15610 # icc doesn't choke on unknown options, it will just issue warnings
15611 # or remarks (even with -Werror). So we grep stderr for any message
15612 # that says an option was ignored or not supported.
15613 # When given -MP, icc 7.0 and 7.1 complain thusly:
15614 # icc: Command line warning: ignoring option '-M'; no argument required
15615 # The diagnosis changed in icc 8.0:
15616 # icc: Command line remark: option '-MP' not supported
15617 if (grep 'ignoring option' conftest.err ||
15618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15619 am_cv_GCJ_dependencies_compiler_type=$depmode
15620 break
15623 done
15625 cd ..
15626 rm -rf conftest.dir
15627 else
15628 am_cv_GCJ_dependencies_compiler_type=none
15632 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15633 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15634 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15639 test "x$enable_dependency_tracking" != xno \
15640 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15641 am__fastdepGCJ_TRUE=
15642 am__fastdepGCJ_FALSE='#'
15643 else
15644 am__fastdepGCJ_TRUE='#'
15645 am__fastdepGCJ_FALSE=
15653 # Source file extension for Java test sources.
15654 ac_ext=c
15656 # Object file extension for compiled Java test sources.
15657 objext=o
15658 objext_GCJ=$objext
15660 # Code to be used in simple compile tests
15661 lt_simple_compile_test_code="int some_variable = 0;"
15663 # Code to be used in simple link tests
15664 lt_simple_link_test_code='int main(){return(0);}'
15666 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15673 # If no C compiler was specified, use CC.
15674 LTCC=${LTCC-"$CC"}
15676 # If no C compiler flags were specified, use CFLAGS.
15677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15679 # Allow CC to be a program name with arguments.
15680 compiler=$CC
15683 # save warnings/boilerplate of simple test code
15684 ac_outfile=conftest.$ac_objext
15685 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15687 _lt_compiler_boilerplate=`cat conftest.err`
15688 $RM conftest*
15690 ac_outfile=conftest.$ac_objext
15691 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15693 _lt_linker_boilerplate=`cat conftest.err`
15694 $RM conftest*
15697 # Allow CC to be a program name with arguments.
15698 compiler=$CC
15699 compiler_GCJ=$CC
15700 for cc_temp in $compiler""; do
15701 case $cc_temp in
15702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15704 \-*) ;;
15705 *) break;;
15706 esac
15707 done
15708 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15711 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15712 archive_cmds_need_lc_GCJ=no
15714 old_archive_cmds_GCJ=$old_archive_cmds
15716 ## CAVEAT EMPTOR:
15717 ## There is no encapsulation within the following macros, do not change
15718 ## the running order or otherwise move them around unless you know exactly
15719 ## what you are doing...
15720 if test -n "$compiler"; then
15722 lt_prog_compiler_no_builtin_flag_GCJ=
15724 if test "$GCC" = yes; then
15725 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15727 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15728 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15729 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 lt_cv_prog_compiler_rtti_exceptions=no
15733 ac_outfile=conftest.$ac_objext
15734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15735 lt_compiler_flag="-fno-rtti -fno-exceptions"
15736 # Insert the option either (1) after the last *FLAGS variable, or
15737 # (2) before a word containing "conftest.", or (3) at the end.
15738 # Note that $ac_compile itself does not contain backslashes and begins
15739 # with a dollar sign (not a hyphen), so the echo should work correctly.
15740 # The option is referenced via a variable to avoid confusing sed.
15741 lt_compile=`echo "$ac_compile" | $SED \
15742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15744 -e 's:$: $lt_compiler_flag:'`
15745 (eval echo "\"\$as_me:15745: $lt_compile\"" >&5)
15746 (eval "$lt_compile" 2>conftest.err)
15747 ac_status=$?
15748 cat conftest.err >&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 if (exit $ac_status) && test -s "$ac_outfile"; then
15751 # The compiler can only warn and ignore the option if not recognized
15752 # So say no if there are warnings other than the usual output.
15753 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15756 lt_cv_prog_compiler_rtti_exceptions=yes
15759 $RM conftest*
15762 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15763 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15765 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15766 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15767 else
15775 lt_prog_compiler_wl_GCJ=
15776 lt_prog_compiler_pic_GCJ=
15777 lt_prog_compiler_static_GCJ=
15779 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15782 if test "$GCC" = yes; then
15783 lt_prog_compiler_wl_GCJ='-Wl,'
15784 lt_prog_compiler_static_GCJ='-static'
15786 case $host_os in
15787 aix*)
15788 # All AIX code is PIC.
15789 if test "$host_cpu" = ia64; then
15790 # AIX 5 now supports IA64 processor
15791 lt_prog_compiler_static_GCJ='-Bstatic'
15795 amigaos*)
15796 if test "$host_cpu" = m68k; then
15797 # FIXME: we need at least 68020 code to build shared libraries, but
15798 # adding the `-m68020' flag to GCC prevents building anything better,
15799 # like `-m68040'.
15800 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15804 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15805 # PIC is the default for these OSes.
15808 mingw* | cygwin* | pw32* | os2*)
15809 # This hack is so that the source file can tell whether it is being
15810 # built for inclusion in a dll (and should export symbols for example).
15811 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15812 # (--disable-auto-import) libraries
15816 darwin* | rhapsody*)
15817 # PIC is the default on this platform
15818 # Common symbols not allowed in MH_DYLIB files
15819 lt_prog_compiler_pic_GCJ='-fno-common'
15822 hpux*)
15823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15824 # not for PA HP-UX.
15825 case $host_cpu in
15826 hppa*64*|ia64*)
15827 # +Z the default
15830 lt_prog_compiler_pic_GCJ='-fPIC'
15832 esac
15835 interix[3-9]*)
15836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15837 # Instead, we relocate shared libraries at runtime.
15840 msdosdjgpp*)
15841 # Just because we use GCC doesn't mean we suddenly get shared libraries
15842 # on systems that don't support them.
15843 lt_prog_compiler_can_build_shared_GCJ=no
15844 enable_shared=no
15847 *nto* | *qnx*)
15848 # QNX uses GNU C++, but need to define -shared option too, otherwise
15849 # it will coredump.
15850 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15853 sysv4*MP*)
15854 if test -d /usr/nec; then
15855 lt_prog_compiler_pic_GCJ=-Kconform_pic
15860 lt_prog_compiler_pic_GCJ='-fPIC'
15862 esac
15863 else
15864 # PORTME Check for flag to pass linker flags through the system compiler.
15865 case $host_os in
15866 aix*)
15867 lt_prog_compiler_wl_GCJ='-Wl,'
15868 if test "$host_cpu" = ia64; then
15869 # AIX 5 now supports IA64 processor
15870 lt_prog_compiler_static_GCJ='-Bstatic'
15871 else
15872 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15875 darwin*)
15876 # PIC is the default on this platform
15877 # Common symbols not allowed in MH_DYLIB files
15878 case $cc_basename in
15879 xlc*)
15880 lt_prog_compiler_pic_GCJ='-qnocommon'
15881 lt_prog_compiler_wl_GCJ='-Wl,'
15883 esac
15886 mingw* | cygwin* | pw32* | os2*)
15887 # This hack is so that the source file can tell whether it is being
15888 # built for inclusion in a dll (and should export symbols for example).
15892 hpux9* | hpux10* | hpux11*)
15893 lt_prog_compiler_wl_GCJ='-Wl,'
15894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15895 # not for PA HP-UX.
15896 case $host_cpu in
15897 hppa*64*|ia64*)
15898 # +Z the default
15901 lt_prog_compiler_pic_GCJ='+Z'
15903 esac
15904 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15905 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15908 irix5* | irix6* | nonstopux*)
15909 lt_prog_compiler_wl_GCJ='-Wl,'
15910 # PIC (with -KPIC) is the default.
15911 lt_prog_compiler_static_GCJ='-non_shared'
15914 linux* | k*bsd*-gnu)
15915 case $cc_basename in
15916 icc* | ecc*)
15917 lt_prog_compiler_wl_GCJ='-Wl,'
15918 lt_prog_compiler_pic_GCJ='-KPIC'
15919 lt_prog_compiler_static_GCJ='-static'
15921 pgcc* | pgf77* | pgf90* | pgf95*)
15922 # Portland Group compilers (*not* the Pentium gcc compiler,
15923 # which looks to be a dead project)
15924 lt_prog_compiler_wl_GCJ='-Wl,'
15925 lt_prog_compiler_pic_GCJ='-fpic'
15926 lt_prog_compiler_static_GCJ='-Bstatic'
15928 ccc*)
15929 lt_prog_compiler_wl_GCJ='-Wl,'
15930 # All Alpha code is PIC.
15931 lt_prog_compiler_static_GCJ='-non_shared'
15934 case `$CC -V 2>&1 | sed 5q` in
15935 *Sun\ C*)
15936 # Sun C 5.9
15937 lt_prog_compiler_pic_GCJ='-KPIC'
15938 lt_prog_compiler_static_GCJ='-Bstatic'
15939 lt_prog_compiler_wl_GCJ='-Wl,'
15941 *Sun\ F*)
15942 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15943 lt_prog_compiler_pic_GCJ='-KPIC'
15944 lt_prog_compiler_static_GCJ='-Bstatic'
15945 lt_prog_compiler_wl_GCJ=''
15947 esac
15949 esac
15952 newsos6)
15953 lt_prog_compiler_pic_GCJ='-KPIC'
15954 lt_prog_compiler_static_GCJ='-Bstatic'
15957 *nto* | *qnx*)
15958 # QNX uses GNU C++, but need to define -shared option too, otherwise
15959 # it will coredump.
15960 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15963 osf3* | osf4* | osf5*)
15964 lt_prog_compiler_wl_GCJ='-Wl,'
15965 # All OSF/1 code is PIC.
15966 lt_prog_compiler_static_GCJ='-non_shared'
15969 rdos*)
15970 lt_prog_compiler_static_GCJ='-non_shared'
15973 solaris*)
15974 lt_prog_compiler_pic_GCJ='-KPIC'
15975 lt_prog_compiler_static_GCJ='-Bstatic'
15976 case $cc_basename in
15977 f77* | f90* | f95*)
15978 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15980 lt_prog_compiler_wl_GCJ='-Wl,';;
15981 esac
15984 sunos4*)
15985 lt_prog_compiler_wl_GCJ='-Qoption ld '
15986 lt_prog_compiler_pic_GCJ='-PIC'
15987 lt_prog_compiler_static_GCJ='-Bstatic'
15990 sysv4 | sysv4.2uw2* | sysv4.3*)
15991 lt_prog_compiler_wl_GCJ='-Wl,'
15992 lt_prog_compiler_pic_GCJ='-KPIC'
15993 lt_prog_compiler_static_GCJ='-Bstatic'
15996 sysv4*MP*)
15997 if test -d /usr/nec ;then
15998 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15999 lt_prog_compiler_static_GCJ='-Bstatic'
16003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16004 lt_prog_compiler_wl_GCJ='-Wl,'
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16009 unicos*)
16010 lt_prog_compiler_wl_GCJ='-Wl,'
16011 lt_prog_compiler_can_build_shared_GCJ=no
16014 uts4*)
16015 lt_prog_compiler_pic_GCJ='-pic'
16016 lt_prog_compiler_static_GCJ='-Bstatic'
16020 lt_prog_compiler_can_build_shared_GCJ=no
16022 esac
16025 case $host_os in
16026 # For platforms which do not support PIC, -DPIC is meaningless:
16027 *djgpp*)
16028 lt_prog_compiler_pic_GCJ=
16031 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16033 esac
16034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16035 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16040 # Check to make sure the PIC flag actually works.
16042 if test -n "$lt_prog_compiler_pic_GCJ"; then
16043 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16044 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16045 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048 lt_prog_compiler_pic_works_GCJ=no
16049 ac_outfile=conftest.$ac_objext
16050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16051 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16052 # Insert the option either (1) after the last *FLAGS variable, or
16053 # (2) before a word containing "conftest.", or (3) at the end.
16054 # Note that $ac_compile itself does not contain backslashes and begins
16055 # with a dollar sign (not a hyphen), so the echo should work correctly.
16056 # The option is referenced via a variable to avoid confusing sed.
16057 lt_compile=`echo "$ac_compile" | $SED \
16058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16060 -e 's:$: $lt_compiler_flag:'`
16061 (eval echo "\"\$as_me:16061: $lt_compile\"" >&5)
16062 (eval "$lt_compile" 2>conftest.err)
16063 ac_status=$?
16064 cat conftest.err >&5
16065 echo "$as_me:16065: \$? = $ac_status" >&5
16066 if (exit $ac_status) && test -s "$ac_outfile"; then
16067 # The compiler can only warn and ignore the option if not recognized
16068 # So say no if there are warnings other than the usual output.
16069 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16072 lt_prog_compiler_pic_works_GCJ=yes
16075 $RM conftest*
16078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16079 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16081 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16082 case $lt_prog_compiler_pic_GCJ in
16083 "" | " "*) ;;
16084 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16085 esac
16086 else
16087 lt_prog_compiler_pic_GCJ=
16088 lt_prog_compiler_can_build_shared_GCJ=no
16096 # Check to make sure the static flag actually works.
16098 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16099 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16100 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16101 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104 lt_prog_compiler_static_works_GCJ=no
16105 save_LDFLAGS="$LDFLAGS"
16106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16109 # The linker can only warn and ignore the option if not recognized
16110 # So say no if there are warnings
16111 if test -s conftest.err; then
16112 # Append any errors to the config.log.
16113 cat conftest.err 1>&5
16114 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16116 if diff conftest.exp conftest.er2 >/dev/null; then
16117 lt_prog_compiler_static_works_GCJ=yes
16119 else
16120 lt_prog_compiler_static_works_GCJ=yes
16123 $RM conftest*
16124 LDFLAGS="$save_LDFLAGS"
16127 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16128 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16130 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16132 else
16133 lt_prog_compiler_static_GCJ=
16139 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16141 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144 lt_cv_prog_compiler_c_o_GCJ=no
16145 $RM -r conftest 2>/dev/null
16146 mkdir conftest
16147 cd conftest
16148 mkdir out
16149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16151 lt_compiler_flag="-o out/conftest2.$ac_objext"
16152 # Insert the option either (1) after the last *FLAGS variable, or
16153 # (2) before a word containing "conftest.", or (3) at the end.
16154 # Note that $ac_compile itself does not contain backslashes and begins
16155 # with a dollar sign (not a hyphen), so the echo should work correctly.
16156 lt_compile=`echo "$ac_compile" | $SED \
16157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16159 -e 's:$: $lt_compiler_flag:'`
16160 (eval echo "\"\$as_me:16160: $lt_compile\"" >&5)
16161 (eval "$lt_compile" 2>out/conftest.err)
16162 ac_status=$?
16163 cat out/conftest.err >&5
16164 echo "$as_me:16164: \$? = $ac_status" >&5
16165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16166 then
16167 # The compiler can only warn and ignore the option if not recognized
16168 # So say no if there are warnings
16169 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16172 lt_cv_prog_compiler_c_o_GCJ=yes
16175 chmod u+w . 2>&5
16176 $RM conftest*
16177 # SGI C++ compiler will create directory out/ii_files/ for
16178 # template instantiation
16179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16180 $RM out/* && rmdir out
16181 cd ..
16182 $RM -r conftest
16183 $RM conftest*
16186 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16187 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16191 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16192 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16193 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196 lt_cv_prog_compiler_c_o_GCJ=no
16197 $RM -r conftest 2>/dev/null
16198 mkdir conftest
16199 cd conftest
16200 mkdir out
16201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16203 lt_compiler_flag="-o out/conftest2.$ac_objext"
16204 # Insert the option either (1) after the last *FLAGS variable, or
16205 # (2) before a word containing "conftest.", or (3) at the end.
16206 # Note that $ac_compile itself does not contain backslashes and begins
16207 # with a dollar sign (not a hyphen), so the echo should work correctly.
16208 lt_compile=`echo "$ac_compile" | $SED \
16209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16211 -e 's:$: $lt_compiler_flag:'`
16212 (eval echo "\"\$as_me:16212: $lt_compile\"" >&5)
16213 (eval "$lt_compile" 2>out/conftest.err)
16214 ac_status=$?
16215 cat out/conftest.err >&5
16216 echo "$as_me:16216: \$? = $ac_status" >&5
16217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16218 then
16219 # The compiler can only warn and ignore the option if not recognized
16220 # So say no if there are warnings
16221 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16224 lt_cv_prog_compiler_c_o_GCJ=yes
16227 chmod u+w . 2>&5
16228 $RM conftest*
16229 # SGI C++ compiler will create directory out/ii_files/ for
16230 # template instantiation
16231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16232 $RM out/* && rmdir out
16233 cd ..
16234 $RM -r conftest
16235 $RM conftest*
16238 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16239 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16244 hard_links="nottested"
16245 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16246 # do not overwrite the value of need_locks provided by the user
16247 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16249 hard_links=yes
16250 $RM conftest*
16251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16252 touch conftest.a
16253 ln conftest.a conftest.b 2>&5 || hard_links=no
16254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16255 echo "$as_me:$LINENO: result: $hard_links" >&5
16256 echo "${ECHO_T}$hard_links" >&6
16257 if test "$hard_links" = no; then
16258 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16260 need_locks=warn
16262 else
16263 need_locks=no
16268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16271 runpath_var=
16272 allow_undefined_flag_GCJ=
16273 always_export_symbols_GCJ=no
16274 archive_cmds_GCJ=
16275 archive_expsym_cmds_GCJ=
16276 compiler_needs_object_GCJ=no
16277 enable_shared_with_static_runtimes_GCJ=no
16278 export_dynamic_flag_spec_GCJ=
16279 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16280 hardcode_automatic_GCJ=no
16281 hardcode_direct_GCJ=no
16282 hardcode_direct_absolute_GCJ=no
16283 hardcode_libdir_flag_spec_GCJ=
16284 hardcode_libdir_flag_spec_ld_GCJ=
16285 hardcode_libdir_separator_GCJ=
16286 hardcode_minus_L_GCJ=no
16287 hardcode_shlibpath_var_GCJ=unsupported
16288 inherit_rpath_GCJ=no
16289 link_all_deplibs_GCJ=unknown
16290 module_cmds_GCJ=
16291 module_expsym_cmds_GCJ=
16292 old_archive_from_new_cmds_GCJ=
16293 old_archive_from_expsyms_cmds_GCJ=
16294 thread_safe_flag_spec_GCJ=
16295 whole_archive_flag_spec_GCJ=
16296 # include_expsyms should be a list of space-separated symbols to be *always*
16297 # included in the symbol list
16298 include_expsyms_GCJ=
16299 # exclude_expsyms can be an extended regexp of symbols to exclude
16300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302 # as well as any symbol that contains `d'.
16303 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305 # platforms (ab)use it in PIC code, but their linkers get confused if
16306 # the symbol is explicitly referenced. Since portable code cannot
16307 # rely on this symbol name, it's probably fine to never include it in
16308 # preloaded symbol tables.
16309 extract_expsyms_cmds=
16311 case $host_os in
16312 cygwin* | mingw* | pw32*)
16313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16314 # When not using gcc, we currently assume that we are using
16315 # Microsoft Visual C++.
16316 if test "$GCC" != yes; then
16317 with_gnu_ld=no
16320 interix*)
16321 # we just hope/assume this is gcc and not c89 (= MSVC++)
16322 with_gnu_ld=yes
16324 openbsd*)
16325 with_gnu_ld=no
16327 esac
16329 ld_shlibs_GCJ=yes
16330 if test "$with_gnu_ld" = yes; then
16331 # If archive_cmds runs LD, not CC, wlarc should be empty
16332 wlarc='${wl}'
16334 # Set some defaults for GNU ld with shared library support. These
16335 # are reset later if shared libraries are not supported. Putting them
16336 # here allows them to be overridden if necessary.
16337 runpath_var=LD_RUN_PATH
16338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16340 # ancient GNU ld didn't support --whole-archive et. al.
16341 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16342 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16343 else
16344 whole_archive_flag_spec_GCJ=
16346 supports_anon_versioning=no
16347 case `$LD -v 2>&1` in
16348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16351 *\ 2.11.*) ;; # other 2.11 versions
16352 *) supports_anon_versioning=yes ;;
16353 esac
16355 # See if GNU ld supports shared libraries.
16356 case $host_os in
16357 aix[3-9]*)
16358 # On AIX/PPC, the GNU linker is very broken
16359 if test "$host_cpu" != ia64; then
16360 ld_shlibs_GCJ=no
16361 cat <<_LT_EOF 1>&2
16363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16364 *** to be unable to reliably create shared libraries on AIX.
16365 *** Therefore, libtool is disabling shared libraries support. If you
16366 *** really care for shared libraries, you may want to modify your PATH
16367 *** so that a non-GNU linker is found, and then restart.
16369 _LT_EOF
16373 amigaos*)
16374 if test "$host_cpu" = m68k; then
16375 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)'
16376 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16377 hardcode_minus_L_GCJ=yes
16380 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16381 # that the semantics of dynamic libraries on AmigaOS, at least up
16382 # to version 4, is to share data among multiple programs linked
16383 # with the same dynamic library. Since this doesn't match the
16384 # behavior of shared libraries on other platforms, we can't use
16385 # them.
16386 ld_shlibs_GCJ=no
16389 beos*)
16390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16391 allow_undefined_flag_GCJ=unsupported
16392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16393 # support --undefined. This deserves some investigation. FIXME
16394 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16395 else
16396 ld_shlibs_GCJ=no
16400 cygwin* | mingw* | pw32*)
16401 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16402 # as there is no search path for DLLs.
16403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16404 allow_undefined_flag_GCJ=unsupported
16405 always_export_symbols_GCJ=no
16406 enable_shared_with_static_runtimes_GCJ=yes
16407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16411 # If the export-symbols file already is a .def file (1st line
16412 # is EXPORTS), use it as is; otherwise, prepend...
16413 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16414 cp $export_symbols $output_objdir/$soname.def;
16415 else
16416 echo EXPORTS > $output_objdir/$soname.def;
16417 cat $export_symbols >> $output_objdir/$soname.def;
16419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16420 else
16421 ld_shlibs_GCJ=no
16425 interix[3-9]*)
16426 hardcode_direct_GCJ=no
16427 hardcode_shlibpath_var_GCJ=no
16428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16429 export_dynamic_flag_spec_GCJ='${wl}-E'
16430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16431 # Instead, shared libraries are loaded at an image base (0x10000000 by
16432 # default) and relocated if they conflict, which is a slow very memory
16433 # consuming and fragmenting process. To avoid this, we pick a random,
16434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16436 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'
16437 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'
16440 gnu* | linux* | tpf* | k*bsd*-gnu)
16441 tmp_diet=no
16442 if test "$host_os" = linux-dietlibc; then
16443 case $cc_basename in
16444 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16445 esac
16447 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16448 && test "$tmp_diet" = no
16449 then
16450 tmp_addflag=
16451 case $cc_basename,$host_cpu in
16452 pgcc*) # Portland Group C compiler
16453 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'
16454 tmp_addflag=' $pic_flag'
16456 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16457 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'
16458 tmp_addflag=' $pic_flag -Mnomain' ;;
16459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16460 tmp_addflag=' -i_dynamic' ;;
16461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16462 tmp_addflag=' -i_dynamic -nofor_main' ;;
16463 ifc* | ifort*) # Intel Fortran compiler
16464 tmp_addflag=' -nofor_main' ;;
16465 esac
16466 case `$CC -V 2>&1 | sed 5q` in
16467 *Sun\ C*) # Sun C 5.9
16468 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'
16469 compiler_needs_object_GCJ=yes
16470 tmp_sharedflag='-G' ;;
16471 *Sun\ F*) # Sun Fortran 8.3
16472 tmp_sharedflag='-G' ;;
16474 tmp_sharedflag='-shared' ;;
16475 esac
16476 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16478 if test "x$supports_anon_versioning" = xyes; then
16479 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16480 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16481 echo "local: *; };" >> $output_objdir/$libname.ver~
16482 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16484 else
16485 ld_shlibs_GCJ=no
16489 netbsd*)
16490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16491 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16492 wlarc=
16493 else
16494 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16495 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16499 solaris*)
16500 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16501 ld_shlibs_GCJ=no
16502 cat <<_LT_EOF 1>&2
16504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16505 *** create shared libraries on Solaris systems. Therefore, libtool
16506 *** is disabling shared libraries support. We urge you to upgrade GNU
16507 *** binutils to release 2.9.1 or newer. Another option is to modify
16508 *** your PATH or compiler configuration so that the native linker is
16509 *** used, and then restart.
16511 _LT_EOF
16512 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16515 else
16516 ld_shlibs_GCJ=no
16520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16521 case `$LD -v 2>&1` in
16522 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16523 ld_shlibs_GCJ=no
16524 cat <<_LT_EOF 1>&2
16526 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16527 *** reliably create shared libraries on SCO systems. Therefore, libtool
16528 *** is disabling shared libraries support. We urge you to upgrade GNU
16529 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16530 *** your PATH or compiler configuration so that the native linker is
16531 *** used, and then restart.
16533 _LT_EOF
16536 # For security reasons, it is highly recommended that you always
16537 # use absolute paths for naming shared libraries, and exclude the
16538 # DT_RUNPATH tag from executables and libraries. But doing so
16539 # requires that you compile everything twice, which is a pain.
16540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16544 else
16545 ld_shlibs_GCJ=no
16548 esac
16551 sunos4*)
16552 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16553 wlarc=
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16562 else
16563 ld_shlibs_GCJ=no
16566 esac
16568 if test "$ld_shlibs_GCJ" = no; then
16569 runpath_var=
16570 hardcode_libdir_flag_spec_GCJ=
16571 export_dynamic_flag_spec_GCJ=
16572 whole_archive_flag_spec_GCJ=
16574 else
16575 # PORTME fill in a description of your system's linker (not GNU ld)
16576 case $host_os in
16577 aix3*)
16578 allow_undefined_flag_GCJ=unsupported
16579 always_export_symbols_GCJ=yes
16580 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'
16581 # Note: this linker hardcodes the directories in LIBPATH if there
16582 # are no directories specified by -L.
16583 hardcode_minus_L_GCJ=yes
16584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16585 # Neither direct hardcoding nor static linking is supported with a
16586 # broken collect2.
16587 hardcode_direct_GCJ=unsupported
16591 aix[4-9]*)
16592 if test "$host_cpu" = ia64; then
16593 # On IA64, the linker does run time linking by default, so we don't
16594 # have to do anything special.
16595 aix_use_runtimelinking=no
16596 exp_sym_flag='-Bexport'
16597 no_entry_flag=""
16598 else
16599 # If we're using GNU nm, then we don't want the "-C" option.
16600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16602 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'
16603 else
16604 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'
16606 aix_use_runtimelinking=no
16608 # Test if we are trying to use run time linking or normal
16609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610 # need to do runtime linking.
16611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16612 for ld_flag in $LDFLAGS; do
16613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16614 aix_use_runtimelinking=yes
16615 break
16617 done
16619 esac
16621 exp_sym_flag='-bexport'
16622 no_entry_flag='-bnoentry'
16625 # When large executables or shared objects are built, AIX ld can
16626 # have problems creating the table of contents. If linking a library
16627 # or program results in "error TOC overflow" add -mminimal-toc to
16628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16631 archive_cmds_GCJ=''
16632 hardcode_direct_GCJ=yes
16633 hardcode_direct_absolute_GCJ=yes
16634 hardcode_libdir_separator_GCJ=':'
16635 link_all_deplibs_GCJ=yes
16636 file_list_spec_GCJ='${wl}-f,'
16638 if test "$GCC" = yes; then
16639 case $host_os in aix4.[012]|aix4.[012].*)
16640 # We only want to do this on AIX 4.2 and lower, the check
16641 # below for broken collect2 doesn't work under 4.3+
16642 collect2name=`${CC} -print-prog-name=collect2`
16643 if test -f "$collect2name" &&
16644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16645 then
16646 # We have reworked collect2
16648 else
16649 # We have old collect2
16650 hardcode_direct_GCJ=unsupported
16651 # It fails to find uninstalled libraries when the uninstalled
16652 # path is not listed in the libpath. Setting hardcode_minus_L
16653 # to unsupported forces relinking
16654 hardcode_minus_L_GCJ=yes
16655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656 hardcode_libdir_separator_GCJ=
16659 esac
16660 shared_flag='-shared'
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag="$shared_flag "'${wl}-G'
16664 else
16665 # not using gcc
16666 if test "$host_cpu" = ia64; then
16667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16668 # chokes on -Wl,-G. The following line is correct:
16669 shared_flag='-G'
16670 else
16671 if test "$aix_use_runtimelinking" = yes; then
16672 shared_flag='${wl}-G'
16673 else
16674 shared_flag='${wl}-bM:SRE'
16679 # It seems that -bexpall does not export symbols beginning with
16680 # underscore (_), so it is better to generate a list of symbols to export.
16681 always_export_symbols_GCJ=yes
16682 if test "$aix_use_runtimelinking" = yes; then
16683 # Warning - without using the other runtime loading flags (-brtl),
16684 # -berok will link without error, but may produce a broken library.
16685 allow_undefined_flag_GCJ='-berok'
16686 # Determine the default libpath from the value encoded in an
16687 # empty executable.
16688 if test x$gcc_no_link = xyes; then
16689 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16691 { (exit 1); exit 1; }; }
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16701 main ()
16705 return 0;
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16731 lt_aix_libpath_sed='
16732 /Import File Strings/,/^$/ {
16733 /^0/ {
16734 s/^0 *\(.*\)$/\1/
16738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16739 # Check for a 64-bit object if we didn't find anything.
16740 if test -z "$aix_libpath"; then
16741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16748 rm -f conftest.err conftest.$ac_objext \
16749 conftest$ac_exeext conftest.$ac_ext
16750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16752 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16753 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"
16754 else
16755 if test "$host_cpu" = ia64; then
16756 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16757 allow_undefined_flag_GCJ="-z nodefs"
16758 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"
16759 else
16760 # Determine the default libpath from the value encoded in an
16761 # empty executable.
16762 if test x$gcc_no_link = xyes; then
16763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16765 { (exit 1); exit 1; }; }
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16775 main ()
16779 return 0;
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16805 lt_aix_libpath_sed='
16806 /Import File Strings/,/^$/ {
16807 /^0/ {
16808 s/^0 *\(.*\)$/\1/
16812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16813 # Check for a 64-bit object if we didn't find anything.
16814 if test -z "$aix_libpath"; then
16815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16817 else
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16822 rm -f conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16826 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16827 # Warning - without using the other run time loading flags,
16828 # -berok will link without error, but may produce a broken library.
16829 no_undefined_flag_GCJ=' ${wl}-bernotok'
16830 allow_undefined_flag_GCJ=' ${wl}-berok'
16831 # Exported symbols can be pulled into shared objects from archives
16832 whole_archive_flag_spec_GCJ='$convenience'
16833 archive_cmds_need_lc_GCJ=yes
16834 # This is similar to how AIX traditionally builds its shared libraries.
16835 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'
16840 amigaos*)
16841 if test "$host_cpu" = m68k; then
16842 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)'
16843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16844 hardcode_minus_L_GCJ=yes
16846 # see comment about different semantics on the GNU ld section
16847 ld_shlibs_GCJ=no
16850 bsdi[45]*)
16851 export_dynamic_flag_spec_GCJ=-rdynamic
16854 cygwin* | mingw* | pw32*)
16855 # When not using gcc, we currently assume that we are using
16856 # Microsoft Visual C++.
16857 # hardcode_libdir_flag_spec is actually meaningless, as there is
16858 # no search path for DLLs.
16859 hardcode_libdir_flag_spec_GCJ=' '
16860 allow_undefined_flag_GCJ=unsupported
16861 # Tell ltmain to make .lib files, not .a files.
16862 libext=lib
16863 # Tell ltmain to make .dll files, not .so files.
16864 shrext_cmds=".dll"
16865 # FIXME: Setting linknames here is a bad hack.
16866 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16867 # The linker will automatically build a .lib file if we build a DLL.
16868 old_archive_from_new_cmds_GCJ='true'
16869 # FIXME: Should let the user specify the lib program.
16870 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16871 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16872 enable_shared_with_static_runtimes_GCJ=yes
16875 darwin* | rhapsody*)
16876 case $host_os in
16877 rhapsody* | darwin1.[012])
16878 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16880 *) # Darwin 1.3 on
16881 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16882 10.[012])
16883 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16885 10.*)
16886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16888 esac
16890 esac
16891 archive_cmds_need_lc_GCJ=no
16892 hardcode_direct_GCJ=no
16893 hardcode_automatic_GCJ=yes
16894 hardcode_shlibpath_var_GCJ=unsupported
16895 whole_archive_flag_spec_GCJ=''
16896 link_all_deplibs_GCJ=yes
16897 if test "$GCC" = yes ; then
16898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901 lt_cv_apple_cc_single_mod=no
16902 if test -z "${LT_MULTI_MODULE}"; then
16903 # By default we will add the -single_module flag. You can override
16904 # by either setting the environment variable LT_MULTI_MODULE
16905 # non-empty at configure time, or by adding -multi-module to the
16906 # link flags.
16907 echo "int foo(void){return 1;}" > conftest.c
16908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16909 -dynamiclib ${wl}-single_module conftest.c
16910 if test -f libconftest.dylib; then
16911 lt_cv_apple_cc_single_mod=yes
16912 rm libconftest.dylib
16914 rm conftest.$ac_ext
16918 output_verbose_link_cmd=echo
16919 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16920 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16921 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}'
16922 else
16923 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16924 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}'
16926 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16927 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}'
16928 else
16929 case $cc_basename in
16930 xlc*)
16931 output_verbose_link_cmd=echo
16932 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16933 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16934 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16935 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}'
16936 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}'
16939 ld_shlibs_GCJ=no
16941 esac
16945 dgux*)
16946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16948 hardcode_shlibpath_var_GCJ=no
16951 freebsd1*)
16952 ld_shlibs_GCJ=no
16955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16956 # support. Future versions do this automatically, but an explicit c++rt0.o
16957 # does not break anything, and helps significantly (at the cost of a little
16958 # extra space).
16959 freebsd2.2*)
16960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16962 hardcode_direct_GCJ=yes
16963 hardcode_shlibpath_var_GCJ=no
16966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16967 freebsd2*)
16968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_direct_GCJ=yes
16970 hardcode_minus_L_GCJ=yes
16971 hardcode_shlibpath_var_GCJ=no
16974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16975 freebsd* | dragonfly*)
16976 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16978 hardcode_direct_GCJ=yes
16979 hardcode_shlibpath_var_GCJ=no
16982 hpux9*)
16983 if test "$GCC" = yes; then
16984 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'
16985 else
16986 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'
16988 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16989 hardcode_libdir_separator_GCJ=:
16990 hardcode_direct_GCJ=yes
16992 # hardcode_minus_L: Not really in the search PATH,
16993 # but as the default location of the library.
16994 hardcode_minus_L_GCJ=yes
16995 export_dynamic_flag_spec_GCJ='${wl}-E'
16998 hpux10*)
16999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17000 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17001 else
17002 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17004 if test "$with_gnu_ld" = no; then
17005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17007 hardcode_libdir_separator_GCJ=:
17008 hardcode_direct_GCJ=yes
17009 hardcode_direct_absolute_GCJ=yes
17010 export_dynamic_flag_spec_GCJ='${wl}-E'
17011 # hardcode_minus_L: Not really in the search PATH,
17012 # but as the default location of the library.
17013 hardcode_minus_L_GCJ=yes
17017 hpux11*)
17018 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17019 case $host_cpu in
17020 hppa*64*)
17021 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17023 ia64*)
17024 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17029 esac
17030 else
17031 case $host_cpu in
17032 hppa*64*)
17033 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 ia64*)
17036 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17039 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17041 esac
17043 if test "$with_gnu_ld" = no; then
17044 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17045 hardcode_libdir_separator_GCJ=:
17047 case $host_cpu in
17048 hppa*64*|ia64*)
17049 hardcode_direct_GCJ=no
17050 hardcode_shlibpath_var_GCJ=no
17053 hardcode_direct_GCJ=yes
17054 hardcode_direct_absolute_GCJ=yes
17055 export_dynamic_flag_spec_GCJ='${wl}-E'
17057 # hardcode_minus_L: Not really in the search PATH,
17058 # but as the default location of the library.
17059 hardcode_minus_L_GCJ=yes
17061 esac
17065 irix5* | irix6* | nonstopux*)
17066 if test "$GCC" = yes; then
17067 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'
17068 # Try to use the -exported_symbol ld option, if it does not
17069 # work, assume that -exports_file does not work either and
17070 # implicitly export all symbols.
17071 save_LDFLAGS="$LDFLAGS"
17072 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17073 if test x$gcc_no_link = xyes; then
17074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17076 { (exit 1); exit 1; }; }
17078 cat >conftest.$ac_ext <<_ACEOF
17079 int foo(void) {}
17080 _ACEOF
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17083 (eval $ac_link) 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag"
17091 || test ! -s conftest.err'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest$ac_exeext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 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'
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17110 rm -f conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext conftest.$ac_ext
17112 LDFLAGS="$save_LDFLAGS"
17113 else
17114 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'
17115 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'
17117 archive_cmds_need_lc_GCJ='no'
17118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17119 hardcode_libdir_separator_GCJ=:
17120 inherit_rpath_GCJ=yes
17121 link_all_deplibs_GCJ=yes
17124 netbsd*)
17125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17126 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17127 else
17128 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17130 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17131 hardcode_direct_GCJ=yes
17132 hardcode_shlibpath_var_GCJ=no
17135 newsos6)
17136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17137 hardcode_direct_GCJ=yes
17138 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17139 hardcode_libdir_separator_GCJ=:
17140 hardcode_shlibpath_var_GCJ=no
17143 *nto* | *qnx*)
17146 openbsd*)
17147 hardcode_direct_GCJ=yes
17148 hardcode_shlibpath_var_GCJ=no
17149 hardcode_direct_absolute_GCJ=yes
17150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17151 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17152 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17154 export_dynamic_flag_spec_GCJ='${wl}-E'
17155 else
17156 case $host_os in
17157 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17162 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17165 esac
17169 os2*)
17170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17171 hardcode_minus_L_GCJ=yes
17172 allow_undefined_flag_GCJ=unsupported
17173 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'
17174 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17177 osf3*)
17178 if test "$GCC" = yes; then
17179 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17180 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'
17181 else
17182 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17183 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'
17185 archive_cmds_need_lc_GCJ='no'
17186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17187 hardcode_libdir_separator_GCJ=:
17190 osf4* | osf5*) # as osf3* with the addition of -msym flag
17191 if test "$GCC" = yes; then
17192 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17193 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'
17194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17195 else
17196 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17197 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'
17198 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~
17199 $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'
17201 # Both c and cxx compiler support -rpath directly
17202 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17204 archive_cmds_need_lc_GCJ='no'
17205 hardcode_libdir_separator_GCJ=:
17208 solaris*)
17209 no_undefined_flag_GCJ=' -z defs'
17210 if test "$GCC" = yes; then
17211 wlarc='${wl}'
17212 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17215 else
17216 case `$CC -V 2>&1` in
17217 *"Compilers 5.0"*)
17218 wlarc=''
17219 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17220 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17224 wlarc='${wl}'
17225 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17226 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17229 esac
17231 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17232 hardcode_shlibpath_var_GCJ=no
17233 case $host_os in
17234 solaris2.[0-5] | solaris2.[0-5].*) ;;
17236 # The compiler driver will combine and reorder linker options,
17237 # but understands `-z linker_flag'. GCC discards it without `$wl',
17238 # but is careful enough not to reorder.
17239 # Supported since Solaris 2.6 (maybe 2.5.1?)
17240 if test "$GCC" = yes; then
17241 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17242 else
17243 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17246 esac
17247 link_all_deplibs_GCJ=yes
17250 sunos4*)
17251 if test "x$host_vendor" = xsequent; then
17252 # Use $CC to link under sequent, because it throws in some extra .o
17253 # files that make .init and .fini sections work.
17254 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17255 else
17256 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17258 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17259 hardcode_direct_GCJ=yes
17260 hardcode_minus_L_GCJ=yes
17261 hardcode_shlibpath_var_GCJ=no
17264 sysv4)
17265 case $host_vendor in
17266 sni)
17267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17268 hardcode_direct_GCJ=yes # is this really true???
17270 siemens)
17271 ## LD is ld it makes a PLAMLIB
17272 ## CC just makes a GrossModule.
17273 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17274 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17275 hardcode_direct_GCJ=no
17277 motorola)
17278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17281 esac
17282 runpath_var='LD_RUN_PATH'
17283 hardcode_shlibpath_var_GCJ=no
17286 sysv4.3*)
17287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288 hardcode_shlibpath_var_GCJ=no
17289 export_dynamic_flag_spec_GCJ='-Bexport'
17292 sysv4*MP*)
17293 if test -d /usr/nec; then
17294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17295 hardcode_shlibpath_var_GCJ=no
17296 runpath_var=LD_RUN_PATH
17297 hardcode_runpath_var=yes
17298 ld_shlibs_GCJ=yes
17302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17303 no_undefined_flag_GCJ='${wl}-z,text'
17304 archive_cmds_need_lc_GCJ=no
17305 hardcode_shlibpath_var_GCJ=no
17306 runpath_var='LD_RUN_PATH'
17308 if test "$GCC" = yes; then
17309 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17310 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17311 else
17312 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17313 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 sysv5* | sco3.2v5* | sco5v6*)
17318 # Note: We can NOT use -z defs as we might desire, because we do not
17319 # link with -lc, and that would cause any symbols used from libc to
17320 # always be unresolved, which means just about no library would
17321 # ever link correctly. If we're not using GNU ld we use -z text
17322 # though, which does catch some bad symbols but isn't as heavy-handed
17323 # as -z defs.
17324 no_undefined_flag_GCJ='${wl}-z,text'
17325 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17326 archive_cmds_need_lc_GCJ=no
17327 hardcode_shlibpath_var_GCJ=no
17328 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17329 hardcode_libdir_separator_GCJ=':'
17330 link_all_deplibs_GCJ=yes
17331 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17332 runpath_var='LD_RUN_PATH'
17334 if test "$GCC" = yes; then
17335 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17336 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17337 else
17338 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 uts4*)
17344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17346 hardcode_shlibpath_var_GCJ=no
17350 ld_shlibs_GCJ=no
17352 esac
17354 if test x$host_vendor = xsni; then
17355 case $host in
17356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17357 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17359 esac
17363 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17364 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17365 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17367 with_gnu_ld_GCJ=$with_gnu_ld
17375 # Do we need to explicitly link libc?
17377 case "x$archive_cmds_need_lc_GCJ" in
17378 x|xyes)
17379 # Assume -lc should be added
17380 archive_cmds_need_lc_GCJ=yes
17382 if test "$enable_shared" = yes && test "$GCC" = yes; then
17383 case $archive_cmds_GCJ in
17384 *'~'*)
17385 # FIXME: we may have to deal with multi-command sequences.
17387 '$CC '*)
17388 # Test whether the compiler implicitly links with -lc since on some
17389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17390 # to ld, don't add -lc before -lgcc.
17391 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17392 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17393 $RM conftest*
17394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17397 (eval $ac_compile) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } 2>conftest.err; then
17401 soname=conftest
17402 lib=conftest
17403 libobjs=conftest.$ac_objext
17404 deplibs=
17405 wl=$lt_prog_compiler_wl_GCJ
17406 pic_flag=$lt_prog_compiler_pic_GCJ
17407 compiler_flags=-v
17408 linker_flags=-v
17409 verstring=
17410 output_objdir=.
17411 libname=conftest
17412 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17413 allow_undefined_flag_GCJ=
17414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17415 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }
17419 then
17420 archive_cmds_need_lc_GCJ=no
17421 else
17422 archive_cmds_need_lc_GCJ=yes
17424 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17425 else
17426 cat conftest.err 1>&5
17428 $RM conftest*
17429 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17430 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17432 esac
17435 esac
17500 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17502 withGCC=$GCC
17503 library_names_spec=
17504 libname_spec='lib$name'
17505 soname_spec=
17506 shrext_cmds=".so"
17507 postinstall_cmds=
17508 postuninstall_cmds=
17509 finish_cmds=
17510 finish_eval=
17511 shlibpath_var=
17512 shlibpath_overrides_runpath=unknown
17513 version_type=none
17514 dynamic_linker="$host_os ld.so"
17515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17516 need_lib_prefix=unknown
17517 hardcode_into_libs=no
17519 # when you set need_version to no, make sure it does not cause -set_version
17520 # flags to be left without arguments
17521 need_version=unknown
17523 case $host_os in
17524 aix3*)
17525 version_type=linux
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17527 shlibpath_var=LIBPATH
17529 # AIX 3 has no versioning support, so we append a major version to the name.
17530 soname_spec='${libname}${release}${shared_ext}$major'
17533 aix[4-9]*)
17534 version_type=linux
17535 need_lib_prefix=no
17536 need_version=no
17537 hardcode_into_libs=yes
17538 if test "$host_cpu" = ia64; then
17539 # AIX 5 supports IA64
17540 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 else
17543 # With GCC up to 2.95.x, collect2 would create an import file
17544 # for dependence libraries. The import file would start with
17545 # the line `#! .'. This would cause the generated library to
17546 # depend on `.', always an invalid library. This was fixed in
17547 # development snapshots of GCC prior to 3.0.
17548 case $host_os in
17549 aix4 | aix4.[01] | aix4.[01].*)
17550 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17551 echo ' yes '
17552 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17554 else
17555 can_build_shared=no
17558 esac
17559 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17560 # soname into executable. Probably we can add versioning support to
17561 # collect2, so additional links can be useful in future.
17562 if test "$aix_use_runtimelinking" = yes; then
17563 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17564 # instead of lib<name>.a to let people know that these are not
17565 # typical AIX shared libraries.
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 else
17568 # We preserve .a as extension for shared libraries through AIX4.2
17569 # and later when we are not doing run time linking.
17570 library_names_spec='${libname}${release}.a $libname.a'
17571 soname_spec='${libname}${release}${shared_ext}$major'
17573 shlibpath_var=LIBPATH
17577 amigaos*)
17578 if test "$host_cpu" = m68k; then
17579 library_names_spec='$libname.ixlibrary $libname.a'
17580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17581 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'
17582 else
17583 dynamic_linker=no
17587 beos*)
17588 library_names_spec='${libname}${shared_ext}'
17589 dynamic_linker="$host_os ld.so"
17590 shlibpath_var=LIBRARY_PATH
17593 bsdi[45]*)
17594 version_type=linux
17595 need_version=no
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17602 # the default ld.so.conf also contains /usr/contrib/lib and
17603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17604 # libtool to hard-code these into programs
17607 cygwin* | mingw* | pw32*)
17608 version_type=windows
17609 shrext_cmds=".dll"
17610 need_version=no
17611 need_lib_prefix=no
17613 case $withGCC,$host_os in
17614 yes,cygwin* | yes,mingw* | yes,pw32*)
17615 library_names_spec='$libname.dll.a'
17616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17617 postinstall_cmds='base_file=`basename \${file}`~
17618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17619 dldir=$destdir/`dirname \$dlpath`~
17620 test -d \$dldir || mkdir -p \$dldir~
17621 $install_prog $dir/$dlname \$dldir/$dlname~
17622 chmod a+x \$dldir/$dlname~
17623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17627 dlpath=$dir/\$dldll~
17628 $RM \$dlpath'
17629 shlibpath_overrides_runpath=yes
17631 case $host_os in
17632 cygwin*)
17633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17637 mingw*)
17638 # MinGW DLLs use traditional 'lib' prefix
17639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17640 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17642 # It is most probably a Windows format PATH printed by
17643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17644 # path with ; separators, and with drive letters. We can handle the
17645 # drive letters (cygwin fileutils understands them), so leave them,
17646 # especially as we might pass files found there to a mingw objdump,
17647 # which wouldn't understand a cygwinified path. Ahh.
17648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17649 else
17650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17653 pw32*)
17654 # pw32 DLLs use 'pw' prefix rather than 'lib'
17655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17657 esac
17661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17663 esac
17664 dynamic_linker='Win32 ld.exe'
17665 # FIXME: first we should search . and the directory the executable is in
17666 shlibpath_var=PATH
17669 darwin* | rhapsody*)
17670 dynamic_linker="$host_os dyld"
17671 version_type=darwin
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17675 soname_spec='${libname}${release}${major}$shared_ext'
17676 shlibpath_overrides_runpath=yes
17677 shlibpath_var=DYLD_LIBRARY_PATH
17678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17683 dgux*)
17684 version_type=linux
17685 need_lib_prefix=no
17686 need_version=no
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17692 freebsd1*)
17693 dynamic_linker=no
17696 freebsd* | dragonfly*)
17697 # DragonFly does not have aout. When/if they implement a new
17698 # versioning mechanism, adjust this.
17699 if test -x /usr/bin/objformat; then
17700 objformat=`/usr/bin/objformat`
17701 else
17702 case $host_os in
17703 freebsd[123]*) objformat=aout ;;
17704 *) objformat=elf ;;
17705 esac
17707 version_type=freebsd-$objformat
17708 case $version_type in
17709 freebsd-elf*)
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17711 need_version=no
17712 need_lib_prefix=no
17714 freebsd-*)
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17716 need_version=yes
17718 esac
17719 shlibpath_var=LD_LIBRARY_PATH
17720 case $host_os in
17721 freebsd2*)
17722 shlibpath_overrides_runpath=yes
17724 freebsd3.[01]* | freebsdelf3.[01]*)
17725 shlibpath_overrides_runpath=yes
17726 hardcode_into_libs=yes
17728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17730 shlibpath_overrides_runpath=no
17731 hardcode_into_libs=yes
17733 *) # from 4.6 on, and DragonFly
17734 shlibpath_overrides_runpath=yes
17735 hardcode_into_libs=yes
17737 esac
17740 gnu*)
17741 version_type=linux
17742 need_lib_prefix=no
17743 need_version=no
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17746 shlibpath_var=LD_LIBRARY_PATH
17747 hardcode_into_libs=yes
17750 hpux9* | hpux10* | hpux11*)
17751 # Give a soname corresponding to the major version so that dld.sl refuses to
17752 # link against other versions.
17753 version_type=sunos
17754 need_lib_prefix=no
17755 need_version=no
17756 case $host_cpu in
17757 ia64*)
17758 shrext_cmds='.so'
17759 hardcode_into_libs=yes
17760 dynamic_linker="$host_os dld.so"
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 if test "X$HPUX_IA64_MODE" = X32; then
17766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17767 else
17768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17772 hppa*64*)
17773 shrext_cmds='.sl'
17774 hardcode_into_libs=yes
17775 dynamic_linker="$host_os dld.sl"
17776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17784 shrext_cmds='.sl'
17785 dynamic_linker="$host_os dld.sl"
17786 shlibpath_var=SHLIB_PATH
17787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17791 esac
17792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17793 postinstall_cmds='chmod 555 $lib'
17796 interix[3-9]*)
17797 version_type=linux
17798 need_lib_prefix=no
17799 need_version=no
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17803 shlibpath_var=LD_LIBRARY_PATH
17804 shlibpath_overrides_runpath=no
17805 hardcode_into_libs=yes
17808 irix5* | irix6* | nonstopux*)
17809 case $host_os in
17810 nonstopux*) version_type=nonstopux ;;
17812 if test "$lt_cv_prog_gnu_ld" = yes; then
17813 version_type=linux
17814 else
17815 version_type=irix
17816 fi ;;
17817 esac
17818 need_lib_prefix=no
17819 need_version=no
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17822 case $host_os in
17823 irix5* | nonstopux*)
17824 libsuff= shlibsuff=
17827 case $LD in # libtool.m4 will add one of these switches to LD
17828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17829 libsuff= shlibsuff= libmagic=32-bit;;
17830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17831 libsuff=32 shlibsuff=N32 libmagic=N32;;
17832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17834 *) libsuff= shlibsuff= libmagic=never-match;;
17835 esac
17837 esac
17838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17839 shlibpath_overrides_runpath=no
17840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17842 hardcode_into_libs=yes
17845 # No shared lib support for Linux oldld, aout, or coff.
17846 linux*oldld* | linux*aout* | linux*coff*)
17847 dynamic_linker=no
17850 # This must be Linux ELF.
17851 linux* | k*bsd*-gnu)
17852 version_type=linux
17853 need_lib_prefix=no
17854 need_version=no
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=no
17860 # Some binutils ld are patched to set DT_RUNPATH
17861 save_LDFLAGS=$LDFLAGS
17862 save_libdir=$libdir
17863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17865 if test x$gcc_no_link = xyes; then
17866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17868 { (exit 1); exit 1; }; }
17870 cat >conftest.$ac_ext <<_ACEOF
17871 /* confdefs.h. */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17878 main ()
17882 return 0;
17884 _ACEOF
17885 rm -f conftest.$ac_objext conftest$ac_exeext
17886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887 (eval $ac_link) 2>conftest.er1
17888 ac_status=$?
17889 grep -v '^ *+' conftest.er1 >conftest.err
17890 rm -f conftest.er1
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } &&
17894 { ac_try='test -z "$ac_c_werror_flag"
17895 || test ! -s conftest.err'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; } &&
17901 { ac_try='test -s conftest$ac_exeext'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17908 shlibpath_overrides_runpath=yes
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17916 rm -f conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LDFLAGS=$save_LDFLAGS
17919 libdir=$save_libdir
17921 # This implies no fast_install, which is unacceptable.
17922 # Some rework will be needed to allow for fast_install
17923 # before this can be enabled.
17924 hardcode_into_libs=yes
17926 # Append ld.so.conf contents to the search path
17927 if test -f /etc/ld.so.conf; then
17928 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' ' '`
17929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17932 # We used to test for /lib/ld.so.1 and disable shared libraries on
17933 # powerpc, because MkLinux only supported shared libraries with the
17934 # GNU dynamic linker. Since this was broken with cross compilers,
17935 # most powerpc-linux boxes support dynamic linking these days and
17936 # people can always --disable-shared, the test was removed, and we
17937 # assume the GNU/Linux dynamic linker is in use.
17938 dynamic_linker='GNU/Linux ld.so'
17941 netbsd*)
17942 version_type=sunos
17943 need_lib_prefix=no
17944 need_version=no
17945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17948 dynamic_linker='NetBSD (a.out) ld.so'
17949 else
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 dynamic_linker='NetBSD ld.elf_so'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 shlibpath_overrides_runpath=yes
17956 hardcode_into_libs=yes
17959 newsos6)
17960 version_type=linux
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 shlibpath_overrides_runpath=yes
17966 *nto* | *qnx*)
17967 version_type=qnx
17968 need_lib_prefix=no
17969 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath=no
17974 hardcode_into_libs=yes
17975 dynamic_linker='ldqnx.so'
17978 openbsd*)
17979 version_type=sunos
17980 sys_lib_dlsearch_path_spec="/usr/lib"
17981 need_lib_prefix=no
17982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17983 case $host_os in
17984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17985 *) need_version=no ;;
17986 esac
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17989 shlibpath_var=LD_LIBRARY_PATH
17990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17991 case $host_os in
17992 openbsd2.[89] | openbsd2.[89].*)
17993 shlibpath_overrides_runpath=no
17996 shlibpath_overrides_runpath=yes
17998 esac
17999 else
18000 shlibpath_overrides_runpath=yes
18004 os2*)
18005 libname_spec='$name'
18006 shrext_cmds=".dll"
18007 need_lib_prefix=no
18008 library_names_spec='$libname${shared_ext} $libname.a'
18009 dynamic_linker='OS/2 ld.exe'
18010 shlibpath_var=LIBPATH
18013 osf3* | osf4* | osf5*)
18014 version_type=osf
18015 need_lib_prefix=no
18016 need_version=no
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18024 rdos*)
18025 dynamic_linker=no
18028 solaris*)
18029 version_type=linux
18030 need_lib_prefix=no
18031 need_version=no
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18033 soname_spec='${libname}${release}${shared_ext}$major'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=yes
18036 hardcode_into_libs=yes
18037 # ldd complains unless libraries are executable
18038 postinstall_cmds='chmod +x $lib'
18041 sunos4*)
18042 version_type=sunos
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=yes
18047 if test "$with_gnu_ld" = yes; then
18048 need_lib_prefix=no
18050 need_version=yes
18053 sysv4 | sysv4.3*)
18054 version_type=linux
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 case $host_vendor in
18059 sni)
18060 shlibpath_overrides_runpath=no
18061 need_lib_prefix=no
18062 runpath_var=LD_RUN_PATH
18064 siemens)
18065 need_lib_prefix=no
18067 motorola)
18068 need_lib_prefix=no
18069 need_version=no
18070 shlibpath_overrides_runpath=no
18071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18073 esac
18076 sysv4*MP*)
18077 if test -d /usr/nec ;then
18078 version_type=linux
18079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18080 soname_spec='$libname${shared_ext}.$major'
18081 shlibpath_var=LD_LIBRARY_PATH
18085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18086 version_type=freebsd-elf
18087 need_lib_prefix=no
18088 need_version=no
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18093 hardcode_into_libs=yes
18094 if test "$with_gnu_ld" = yes; then
18095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18096 else
18097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18098 case $host_os in
18099 sco3.2v5*)
18100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18102 esac
18104 sys_lib_dlsearch_path_spec='/usr/lib'
18107 tpf*)
18108 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18109 version_type=linux
18110 need_lib_prefix=no
18111 need_version=no
18112 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18113 shlibpath_var=LD_LIBRARY_PATH
18114 shlibpath_overrides_runpath=no
18115 hardcode_into_libs=yes
18118 uts4*)
18119 version_type=linux
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 shlibpath_var=LD_LIBRARY_PATH
18126 dynamic_linker=no
18128 esac
18129 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18130 echo "${ECHO_T}$dynamic_linker" >&6
18131 test "$dynamic_linker" = no && can_build_shared=no
18133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18134 if test "$GCC" = yes; then
18135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18173 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18175 hardcode_action_GCJ=
18176 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18177 test -n "$runpath_var_GCJ" ||
18178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18180 # We can hardcode non-existent directories.
18181 if test "$hardcode_direct_GCJ" != no &&
18182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183 # have to relink, otherwise we might link with an installed library
18184 # when we should be linking with a yet-to-be-installed one
18185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18186 test "$hardcode_minus_L_GCJ" != no; then
18187 # Linking always hardcodes the temporary library directory.
18188 hardcode_action_GCJ=relink
18189 else
18190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191 hardcode_action_GCJ=immediate
18193 else
18194 # We cannot hardcode anything, or else we can only hardcode existing
18195 # directories.
18196 hardcode_action_GCJ=unsupported
18198 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18199 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18201 if test "$hardcode_action_GCJ" = relink ||
18202 test "$inherit_rpath_GCJ" = yes; then
18203 # Fast installation is not supported
18204 enable_fast_install=no
18205 elif test "$shlibpath_overrides_runpath" = yes ||
18206 test "$enable_shared" = no; then
18207 # Fast installation is not necessary
18208 enable_fast_install=needless
18219 compiler_GCJ=${GCJ-gcj}
18220 ac_ext=c
18221 ac_cpp='$CPP $CPPFLAGS'
18222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18227 if test "x$CC" != xcc; then
18228 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18229 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18230 else
18231 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18232 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18234 set dummy $CC; ac_cc=`echo $2 |
18235 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18236 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h. */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18247 main ()
18251 return 0;
18253 _ACEOF
18254 # Make sure it works both with $CC and with simple cc.
18255 # We do the test twice because some compilers refuse to overwrite an
18256 # existing .o file with -o, though they will create one.
18257 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18258 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); };
18268 then
18269 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18270 if test "x$CC" != xcc; then
18271 # Test first that cc exists at all.
18272 if { ac_try='cc -c conftest.$ac_ext >&5'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18279 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); };
18289 then
18290 # cc works too.
18292 else
18293 # cc exists but doesn't like -o.
18294 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18298 else
18299 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18301 rm -f conftest*
18304 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18305 echo "$as_me:$LINENO: result: yes" >&5
18306 echo "${ECHO_T}yes" >&6
18307 else
18308 echo "$as_me:$LINENO: result: no" >&5
18309 echo "${ECHO_T}no" >&6
18311 cat >>confdefs.h <<\_ACEOF
18312 #define NO_MINUS_C_MINUS_O 1
18313 _ACEOF
18317 # FIXME: we rely on the cache variable name because
18318 # there is no other way.
18319 set dummy $CC
18320 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18321 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18322 # Losing compiler, so override with the script.
18323 # FIXME: It is wrong to rewrite CC.
18324 # But if we don't then we get into trouble of one sort or another.
18325 # A longer-term fix would be to have automake use am__CC in this case,
18326 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18327 CC="$am_aux_dir/compile $CC"
18333 subdirs="$subdirs classpath libltdl"
18336 # The -no-testsuite modules omit the test subdir.
18339 if test -d $srcdir/testsuite; then
18340 TESTSUBDIR_TRUE=
18341 TESTSUBDIR_FALSE='#'
18342 else
18343 TESTSUBDIR_TRUE='#'
18344 TESTSUBDIR_FALSE=
18348 # Should the runtime set system properties by examining the
18349 # environment variable GCJ_PROPERTIES?
18350 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18351 if test "${enable_getenv_properties+set}" = set; then
18352 enableval="$enable_getenv_properties"
18356 # Whether GCJ_PROPERTIES is used depends on the target.
18357 if test -z "$enable_getenv_properties"; then
18358 enable_getenv_properties=${enable_getenv_properties_default-yes}
18360 if test "$enable_getenv_properties" = no; then
18362 cat >>confdefs.h <<\_ACEOF
18363 #define DISABLE_GETENV_PROPERTIES 1
18364 _ACEOF
18368 # Whether we should use arguments to main()
18369 if test -z "$enable_main_args"; then
18370 enable_main_args=${enable_main_args_default-yes}
18372 if test "$enable_main_args" = no; then
18374 cat >>confdefs.h <<\_ACEOF
18375 #define DISABLE_MAIN_ARGS 1
18376 _ACEOF
18381 # Should we use hashtable-based synchronization?
18382 # Currently works only for Linux X86/ia64
18383 # Typically faster and more space-efficient
18384 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18385 if test "${enable_hash_synchronization+set}" = set; then
18386 enableval="$enable_hash_synchronization"
18390 if test -z "$enable_hash_synchronization"; then
18391 enable_hash_synchronization=$enable_hash_synchronization_default
18395 install_ecj_jar=no
18396 ECJ_BUILD_JAR=
18397 ECJ_JAR=
18399 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18400 if test "${with_ecj_jar+set}" = set; then
18401 withval="$with_ecj_jar"
18402 ECJ_JAR=$withval
18403 else
18404 if test -f $multi_basedir/ecj.jar; then
18405 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18406 ECJ_JAR='$(jardir)/ecj.jar'
18407 install_ecj_jar=yes
18414 if test "$ECJ_JAR" != ""; then
18415 BUILD_ECJ1_TRUE=
18416 BUILD_ECJ1_FALSE='#'
18417 else
18418 BUILD_ECJ1_TRUE='#'
18419 BUILD_ECJ1_FALSE=
18424 if test $install_ecj_jar = yes; then
18425 INSTALL_ECJ_JAR_TRUE=
18426 INSTALL_ECJ_JAR_FALSE='#'
18427 else
18428 INSTALL_ECJ_JAR_TRUE='#'
18429 INSTALL_ECJ_JAR_FALSE=
18434 # Check whether --with-java-home or --without-java-home was given.
18435 if test "${with_java_home+set}" = set; then
18436 withval="$with_java_home"
18437 JAVA_HOME="${withval}"
18438 else
18439 JAVA_HOME=""
18443 if test ! -z "$JAVA_HOME"; then
18444 JAVA_HOME_SET_TRUE=
18445 JAVA_HOME_SET_FALSE='#'
18446 else
18447 JAVA_HOME_SET_TRUE='#'
18448 JAVA_HOME_SET_FALSE=
18453 suppress_libgcj_bc=no
18454 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18455 if test "${enable_libgcj_bc+set}" = set; then
18456 enableval="$enable_libgcj_bc"
18457 if test "$enable_libgcj_bc" = "no"; then
18458 suppress_libgcj_bc=yes
18463 if test "$suppress_libgcj_bc" = "yes"; then
18464 SUPPRESS_LIBGCJ_BC_TRUE=
18465 SUPPRESS_LIBGCJ_BC_FALSE='#'
18466 else
18467 SUPPRESS_LIBGCJ_BC_TRUE='#'
18468 SUPPRESS_LIBGCJ_BC_FALSE=
18472 # What is the native OS API for MinGW?
18474 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18475 if test "${with_win32_nlsapi+set}" = set; then
18476 withval="$with_win32_nlsapi"
18477 case "${withval}" in
18478 ansi) with_win32_nlsapi=ansi ;;
18479 unicows) with_win32_nlsapi=unicows ;;
18480 unicode) with_win32_nlsapi=unicode ;;
18481 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18482 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18483 { (exit 1); exit 1; }; } ;;
18484 esac
18485 else
18486 with_win32_nlsapi=ansi
18489 case "${with_win32_nlsapi}" in
18490 unicows | unicode)
18492 cat >>confdefs.h <<\_ACEOF
18493 #define MINGW_LIBGCJ_UNICODE 1
18494 _ACEOF
18497 esac
18499 # configure.host sets slow_pthread_self if the synchronization code should
18500 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18501 if test "${slow_pthread_self}" = "yes"; then
18503 cat >>confdefs.h <<\_ACEOF
18504 #define SLOW_PTHREAD_SELF 1
18505 _ACEOF
18509 # Check for gc debugging. This option is handled both here and in the GC.
18510 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18511 if test "${enable_gc_debug+set}" = set; then
18512 enableval="$enable_gc_debug"
18513 if test "$enable_gc_debug" = "yes"; then
18515 cat >>confdefs.h <<\_ACEOF
18516 #define LIBGCJ_GC_DEBUG 1
18517 _ACEOF
18522 # See if the user has the interpreter included.
18523 # Check whether --enable-interpreter or --disable-interpreter was given.
18524 if test "${enable_interpreter+set}" = set; then
18525 enableval="$enable_interpreter"
18526 if test "$enable_interpreter" = yes; then
18527 # This can also be set in configure.host.
18528 libgcj_interpreter=yes
18529 elif test "$enable_interpreter" = no; then
18530 libgcj_interpreter=no
18534 if test "$libgcj_interpreter" = yes; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define INTERPRETER 1
18538 _ACEOF
18541 INTERPRETER="$libgcj_interpreter"
18545 if test "$libgcj_interpreter" = yes; then
18546 INTERPRETER_TRUE=
18547 INTERPRETER_FALSE='#'
18548 else
18549 INTERPRETER_TRUE='#'
18550 INTERPRETER_FALSE=
18554 echo "$as_me:$LINENO: checking for exception model to use" >&5
18555 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18556 ac_ext=cc
18557 ac_cpp='$CXXCPP $CPPFLAGS'
18558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18562 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18563 if test "${enable_sjlj_exceptions+set}" = set; then
18564 enableval="$enable_sjlj_exceptions"
18566 else
18567 cat > conftest.$ac_ext << EOF
18568 #line 18568 "configure"
18569 struct S { ~S(); };
18570 void bar();
18571 void foo()
18573 S s;
18574 bar();
18577 old_CXXFLAGS="$CXXFLAGS"
18578 CXXFLAGS=-S
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; then
18584 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18585 enable_sjlj_exceptions=yes
18586 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18587 enable_sjlj_exceptions=no
18590 CXXFLAGS="$old_CXXFLAGS"
18591 rm -f conftest*
18593 if test x$enable_sjlj_exceptions = xyes; then
18595 cat >>confdefs.h <<\_ACEOF
18596 #define SJLJ_EXCEPTIONS 1
18597 _ACEOF
18599 ac_exception_model_name=sjlj
18600 elif test x$enable_sjlj_exceptions = xno; then
18601 ac_exception_model_name="call frame"
18602 else
18603 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18604 echo "$as_me: error: unable to detect exception model" >&2;}
18605 { (exit 1); exit 1; }; }
18607 ac_ext=c
18608 ac_cpp='$CPP $CPPFLAGS'
18609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18614 echo "${ECHO_T}$ac_exception_model_name" >&6
18616 # If we are non using SJLJ exceptions, and this host does not have support
18617 # for unwinding from a signal handler, enable checked dereferences and divides.
18618 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18619 CHECKREFSPEC=-fcheck-references
18620 DIVIDESPEC=-fuse-divide-subroutine
18621 EXCEPTIONSPEC=
18624 # See if the user wants to disable java.net. This is the mildly
18625 # ugly way that we admit that target-side configuration sucks.
18626 # Check whether --enable-java-net or --disable-java-net was given.
18627 if test "${enable_java_net+set}" = set; then
18628 enableval="$enable_java_net"
18632 # Whether java.net is built by default can depend on the target.
18633 if test -z "$enable_java_net"; then
18634 enable_java_net=${enable_java_net_default-yes}
18636 if test "$enable_java_net" = no; then
18638 cat >>confdefs.h <<\_ACEOF
18639 #define DISABLE_JAVA_NET 1
18640 _ACEOF
18644 # See if the user wants to configure without libffi. Some
18645 # architectures don't support it, and default values are set in
18646 # configure.host.
18648 # Check whether --with-libffi or --without-libffi was given.
18649 if test "${with_libffi+set}" = set; then
18650 withval="$with_libffi"
18652 else
18653 with_libffi=${with_libffi_default-yes}
18656 LIBFFI=
18657 LIBFFIINCS=
18658 if test "$with_libffi" != no; then
18660 cat >>confdefs.h <<\_ACEOF
18661 #define USE_LIBFFI 1
18662 _ACEOF
18664 LIBFFI=../libffi/libffi_convenience.la
18665 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18670 # See if the user wants to disable JVMPI support.
18671 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18672 if test "${enable_jvmpi+set}" = set; then
18673 enableval="$enable_jvmpi"
18677 if test "$enable_jvmpi" != no; then
18679 cat >>confdefs.h <<\_ACEOF
18680 #define ENABLE_JVMPI 1
18681 _ACEOF
18685 # If the target is an eCos system, use the appropriate eCos
18686 # I/O routines.
18687 # FIXME: this should not be a local option but a global target
18688 # system; at present there is no eCos target.
18689 TARGET_ECOS=${PROCESS-"no"}
18691 # Check whether --with-ecos or --without-ecos was given.
18692 if test "${with_ecos+set}" = set; then
18693 withval="$with_ecos"
18694 TARGET_ECOS="$with_ecos"
18698 case "$TARGET_ECOS" in
18699 no) case "$host" in
18700 *mingw*)
18701 PLATFORM=Win32
18702 PLATFORMNET=Win32
18703 PLATFORMH=win32.h
18705 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18706 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18707 LD_PROG=`$CC --print-prog-name=ld`
18708 LD_VERSION=`$LD_PROG --version`
18709 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18710 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18711 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18712 LD_OK="ok"
18713 else
18714 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18715 LD_OK="ok"
18718 if test "x$LD_OK" != x; then
18719 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18720 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18721 else
18722 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18723 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18724 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18725 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18727 cat >>confdefs.h <<\_ACEOF
18728 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18729 _ACEOF
18734 PLATFORM=Posix
18735 PLATFORMNET=Posix
18736 PLATFORMH=posix.h
18738 esac
18741 PLATFORM=Ecos
18742 PLATFORMNET=NoNet
18744 cat >>confdefs.h <<\_ACEOF
18745 #define ECOS 1
18746 _ACEOF
18748 PLATFORMH=posix.h
18750 esac
18752 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 #include <stdint.h>
18763 _ACEOF
18764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18765 $EGREP "uint32_t" >/dev/null 2>&1; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_INT32_DEFINED 1
18769 _ACEOF
18772 rm -f conftest*
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <inttypes.h>
18782 _ACEOF
18783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18784 $EGREP "uint32_t" >/dev/null 2>&1; then
18786 cat >>confdefs.h <<\_ACEOF
18787 #define HAVE_INT32_DEFINED 1
18788 _ACEOF
18791 rm -f conftest*
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #include <sys/types.h>
18801 _ACEOF
18802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18803 $EGREP "u_int32_t" >/dev/null 2>&1; then
18805 cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_BSD_INT32_DEFINED 1
18807 _ACEOF
18810 rm -f conftest*
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818 #include <sys/config.h>
18820 _ACEOF
18821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18822 $EGREP "u_int32_t" >/dev/null 2>&1; then
18824 cat >>confdefs.h <<\_ACEOF
18825 #define HAVE_BSD_INT32_DEFINED 1
18826 _ACEOF
18829 rm -f conftest*
18834 if test "$PLATFORM" = Win32; then
18835 USING_WIN32_PLATFORM_TRUE=
18836 USING_WIN32_PLATFORM_FALSE='#'
18837 else
18838 USING_WIN32_PLATFORM_TRUE='#'
18839 USING_WIN32_PLATFORM_FALSE=
18844 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18845 USING_POSIX_PLATFORM_TRUE=
18846 USING_POSIX_PLATFORM_FALSE='#'
18847 else
18848 USING_POSIX_PLATFORM_TRUE='#'
18849 USING_POSIX_PLATFORM_FALSE=
18853 case "$host" in
18854 *-darwin*) DARWIN_CRT=true ;;
18855 *) DARWIN_CRT=false ;;
18856 esac
18859 if $DARWIN_CRT; then
18860 USING_DARWIN_CRT_TRUE=
18861 USING_DARWIN_CRT_FALSE='#'
18862 else
18863 USING_DARWIN_CRT_TRUE='#'
18864 USING_DARWIN_CRT_FALSE=
18868 # This may not be defined in a non-ANS conformant embedded system.
18869 # FIXME: Should these case a runtime exception in that case?
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 #include <time.h>
18878 _ACEOF
18879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18880 $EGREP "localtime" >/dev/null 2>&1; then
18882 cat >>confdefs.h <<\_ACEOF
18883 #define HAVE_LOCALTIME 1
18884 _ACEOF
18887 rm -f conftest*
18890 # Create the subdirectory for natFile.cc, or the attempt
18891 # to create the link will fail.
18892 test -d java || mkdir java
18893 test -d java/io || mkdir java/io
18894 test -d gnu || mkdir gnu
18895 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18898 # Likewise for natConcreteProcess.cc.
18899 test -d java/lang || mkdir java/lang
18900 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18903 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18904 test -d java/net || mkdir java/net
18905 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18907 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18910 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18911 test -d gnu/java || mkdir gnu/java
18912 test -d gnu/java/net || mkdir gnu/java/net
18913 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18915 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18918 # Likewise for natVMPipe.cc and natVMSelector.cc.
18919 test -d gnu/java/nio || mkdir gnu/java/nio
18920 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18922 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18925 # Likewise for natFileChannelImpl.cc
18926 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18927 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18930 case "${host}" in
18931 *mingw*)
18932 SYSTEMSPEC="-lgdi32 -lws2_32"
18933 if test "${with_win32_nlsapi}" = "unicows"; then
18934 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18938 SYSTEMSPEC=
18940 esac
18944 # Check whether --with-system-zlib or --without-system-zlib was given.
18945 if test "${with_system_zlib+set}" = set; then
18946 withval="$with_system_zlib"
18949 ZLIBSPEC=
18951 ZLIBTESTSPEC=
18954 echo "$as_me:$LINENO: checking for X" >&5
18955 echo $ECHO_N "checking for X... $ECHO_C" >&6
18958 # Check whether --with-x or --without-x was given.
18959 if test "${with_x+set}" = set; then
18960 withval="$with_x"
18963 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18964 if test "x$with_x" = xno; then
18965 # The user explicitly disabled X.
18966 have_x=disabled
18967 else
18968 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18969 # Both variables are already set.
18970 have_x=yes
18971 else
18972 if test "${ac_cv_have_x+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 # One or both of the vars are not set, and there is no cached value.
18976 ac_x_includes=no ac_x_libraries=no
18977 rm -fr conftest.dir
18978 if mkdir conftest.dir; then
18979 cd conftest.dir
18980 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18981 cat >Imakefile <<'_ACEOF'
18982 acfindx:
18983 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18984 _ACEOF
18985 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18987 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18988 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18989 for ac_extension in a so sl; do
18990 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18991 test -f $ac_im_libdir/libX11.$ac_extension; then
18992 ac_im_usrlibdir=$ac_im_libdir; break
18994 done
18995 # Screen out bogus values from the imake configuration. They are
18996 # bogus both because they are the default anyway, and because
18997 # using them would break gcc on systems where it needs fixed includes.
18998 case $ac_im_incroot in
18999 /usr/include) ;;
19000 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19001 esac
19002 case $ac_im_usrlibdir in
19003 /usr/lib | /lib) ;;
19004 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19005 esac
19007 cd ..
19008 rm -fr conftest.dir
19011 # Standard set of common directories for X headers.
19012 # Check X11 before X11Rn because it is often a symlink to the current release.
19013 ac_x_header_dirs='
19014 /usr/X11/include
19015 /usr/X11R6/include
19016 /usr/X11R5/include
19017 /usr/X11R4/include
19019 /usr/include/X11
19020 /usr/include/X11R6
19021 /usr/include/X11R5
19022 /usr/include/X11R4
19024 /usr/local/X11/include
19025 /usr/local/X11R6/include
19026 /usr/local/X11R5/include
19027 /usr/local/X11R4/include
19029 /usr/local/include/X11
19030 /usr/local/include/X11R6
19031 /usr/local/include/X11R5
19032 /usr/local/include/X11R4
19034 /usr/X386/include
19035 /usr/x386/include
19036 /usr/XFree86/include/X11
19038 /usr/include
19039 /usr/local/include
19040 /usr/unsupported/include
19041 /usr/athena/include
19042 /usr/local/x11r5/include
19043 /usr/lpp/Xamples/include
19045 /usr/openwin/include
19046 /usr/openwin/share/include'
19048 if test "$ac_x_includes" = no; then
19049 # Guess where to find include files, by looking for Intrinsic.h.
19050 # First, try using that file with no special directory specified.
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <X11/Intrinsic.h>
19058 _ACEOF
19059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } >/dev/null; then
19067 if test -s conftest.err; then
19068 ac_cpp_err=$ac_c_preproc_warn_flag
19069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19070 else
19071 ac_cpp_err=
19073 else
19074 ac_cpp_err=yes
19076 if test -z "$ac_cpp_err"; then
19077 # We can compile using X headers with no special include directory.
19078 ac_x_includes=
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 for ac_dir in $ac_x_header_dirs; do
19084 if test -r "$ac_dir/X11/Intrinsic.h"; then
19085 ac_x_includes=$ac_dir
19086 break
19088 done
19090 rm -f conftest.err conftest.$ac_ext
19091 fi # $ac_x_includes = no
19093 if test "$ac_x_libraries" = no; then
19094 # Check for the libraries.
19095 # See if we find them without any special options.
19096 # Don't add to $LIBS permanently.
19097 ac_save_LIBS=$LIBS
19098 LIBS="-lXt $LIBS"
19099 if test x$gcc_no_link = xyes; then
19100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19102 { (exit 1); exit 1; }; }
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110 #include <X11/Intrinsic.h>
19112 main ()
19114 XtMalloc (0)
19116 return 0;
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19121 (eval $ac_link) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 LIBS=$ac_save_LIBS
19142 # We can link X programs with no special library path.
19143 ac_x_libraries=
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 LIBS=$ac_save_LIBS
19149 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19151 # Don't even attempt the hair of trying to link an X program!
19152 for ac_extension in a so sl; do
19153 if test -r $ac_dir/libXt.$ac_extension; then
19154 ac_x_libraries=$ac_dir
19155 break 2
19157 done
19158 done
19160 rm -f conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 fi # $ac_x_libraries = no
19164 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19165 # Didn't find X anywhere. Cache the known absence of X.
19166 ac_cv_have_x="have_x=no"
19167 else
19168 # Record where we found X for the cache.
19169 ac_cv_have_x="have_x=yes \
19170 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19175 eval "$ac_cv_have_x"
19176 fi # $with_x != no
19178 if test "$have_x" != yes; then
19179 echo "$as_me:$LINENO: result: $have_x" >&5
19180 echo "${ECHO_T}$have_x" >&6
19181 no_x=yes
19182 else
19183 # If each of the values was on the command line, it overrides each guess.
19184 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19185 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19186 # Update the cache value to reflect the command line values.
19187 ac_cv_have_x="have_x=yes \
19188 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19189 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19190 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19193 if test "$no_x" = yes; then
19194 # Not all programs may use this symbol, but it does not hurt to define it.
19196 cat >>confdefs.h <<\_ACEOF
19197 #define X_DISPLAY_MISSING 1
19198 _ACEOF
19200 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19201 else
19202 if test -n "$x_includes"; then
19203 X_CFLAGS="$X_CFLAGS -I$x_includes"
19206 # It would also be nice to do this for all -L options, not just this one.
19207 if test -n "$x_libraries"; then
19208 X_LIBS="$X_LIBS -L$x_libraries"
19209 # For Solaris; some versions of Sun CC require a space after -R and
19210 # others require no space. Words are not sufficient . . . .
19211 case `(uname -sr) 2>/dev/null` in
19212 "SunOS 5"*)
19213 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19214 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19215 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19216 if test x$gcc_no_link = xyes; then
19217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19219 { (exit 1); exit 1; }; }
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19229 main ()
19233 return 0;
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag"
19246 || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest$ac_exeext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_R_nospace=yes
19259 else
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_R_nospace=no
19265 rm -f conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19267 if test $ac_R_nospace = yes; then
19268 echo "$as_me:$LINENO: result: no" >&5
19269 echo "${ECHO_T}no" >&6
19270 X_LIBS="$X_LIBS -R$x_libraries"
19271 else
19272 LIBS="$ac_xsave_LIBS -R $x_libraries"
19273 if test x$gcc_no_link = xyes; then
19274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19276 { (exit 1); exit 1; }; }
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h. */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19286 main ()
19290 return 0;
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag"
19303 || test ! -s conftest.err'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 ac_R_space=yes
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_R_space=no
19322 rm -f conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
19324 if test $ac_R_space = yes; then
19325 echo "$as_me:$LINENO: result: yes" >&5
19326 echo "${ECHO_T}yes" >&6
19327 X_LIBS="$X_LIBS -R $x_libraries"
19328 else
19329 echo "$as_me:$LINENO: result: neither works" >&5
19330 echo "${ECHO_T}neither works" >&6
19333 LIBS=$ac_xsave_LIBS
19334 esac
19337 # Check for system-dependent libraries X programs must link with.
19338 # Do this before checking for the system-independent R6 libraries
19339 # (-lICE), since we may need -lsocket or whatever for X linking.
19341 if test "$ISC" = yes; then
19342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19343 else
19344 # Martyn Johnson says this is needed for Ultrix, if the X
19345 # libraries were built with DECnet support. And Karl Berry says
19346 # the Alpha needs dnet_stub (dnet does not exist).
19347 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19348 if test x$gcc_no_link = xyes; then
19349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19351 { (exit 1); exit 1; }; }
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any gcc2 internal prototype to avoid an error. */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 /* We use char because int might match the return type of a gcc2
19365 builtin and then its argument prototype would still apply. */
19366 char XOpenDisplay ();
19368 main ()
19370 XOpenDisplay ();
19372 return 0;
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377 (eval $ac_link) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag"
19385 || test ! -s conftest.err'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest$ac_exeext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19398 else
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19403 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19404 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-ldnet $LIBS"
19409 if test x$gcc_no_link = xyes; then
19410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19412 { (exit 1); exit 1; }; }
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 /* Override any gcc2 internal prototype to avoid an error. */
19422 #ifdef __cplusplus
19423 extern "C"
19424 #endif
19425 /* We use char because int might match the return type of a gcc2
19426 builtin and then its argument prototype would still apply. */
19427 char dnet_ntoa ();
19429 main ()
19431 dnet_ntoa ();
19433 return 0;
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -z "$ac_c_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_cv_lib_dnet_dnet_ntoa=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_lib_dnet_dnet_ntoa=no
19465 rm -f conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19469 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19470 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19471 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19472 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19475 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19476 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19477 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19478 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 ac_check_lib_save_LIBS=$LIBS
19482 LIBS="-ldnet_stub $LIBS"
19483 if test x$gcc_no_link = xyes; then
19484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19486 { (exit 1); exit 1; }; }
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19495 /* Override any gcc2 internal prototype to avoid an error. */
19496 #ifdef __cplusplus
19497 extern "C"
19498 #endif
19499 /* We use char because int might match the return type of a gcc2
19500 builtin and then its argument prototype would still apply. */
19501 char dnet_ntoa ();
19503 main ()
19505 dnet_ntoa ();
19507 return 0;
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512 (eval $ac_link) 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest$ac_exeext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_lib_dnet_stub_dnet_ntoa=no
19539 rm -f conftest.err conftest.$ac_objext \
19540 conftest$ac_exeext conftest.$ac_ext
19541 LIBS=$ac_check_lib_save_LIBS
19543 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19544 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19545 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19546 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19551 rm -f conftest.err conftest.$ac_objext \
19552 conftest$ac_exeext conftest.$ac_ext
19553 LIBS="$ac_xsave_LIBS"
19555 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19556 # to get the SysV transport functions.
19557 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19558 # needs -lnsl.
19559 # The nsl library prevents programs from opening the X display
19560 # on Irix 5.2, according to T.E. Dickey.
19561 # The functions gethostbyname, getservbyname, and inet_addr are
19562 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19563 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19564 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19565 if test "${ac_cv_func_gethostbyname+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 if test x$gcc_no_link = xyes; then
19569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19571 { (exit 1); exit 1; }; }
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19581 #define gethostbyname innocuous_gethostbyname
19583 /* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char gethostbyname (); below.
19585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19586 <limits.h> exists even on freestanding compilers. */
19588 #ifdef __STDC__
19589 # include <limits.h>
19590 #else
19591 # include <assert.h>
19592 #endif
19594 #undef gethostbyname
19596 /* Override any gcc2 internal prototype to avoid an error. */
19597 #ifdef __cplusplus
19598 extern "C"
19600 #endif
19601 /* We use char because int might match the return type of a gcc2
19602 builtin and then its argument prototype would still apply. */
19603 char gethostbyname ();
19604 /* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19608 choke me
19609 #else
19610 char (*f) () = gethostbyname;
19611 #endif
19612 #ifdef __cplusplus
19614 #endif
19617 main ()
19619 return f != gethostbyname;
19621 return 0;
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19626 (eval $ac_link) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_cv_func_gethostbyname=yes
19647 else
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_cv_func_gethostbyname=no
19653 rm -f conftest.err conftest.$ac_objext \
19654 conftest$ac_exeext conftest.$ac_ext
19656 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19657 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19659 if test $ac_cv_func_gethostbyname = no; then
19660 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19661 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19662 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 ac_check_lib_save_LIBS=$LIBS
19666 LIBS="-lnsl $LIBS"
19667 if test x$gcc_no_link = xyes; then
19668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19670 { (exit 1); exit 1; }; }
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h. */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19679 /* Override any gcc2 internal prototype to avoid an error. */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 /* We use char because int might match the return type of a gcc2
19684 builtin and then its argument prototype would still apply. */
19685 char gethostbyname ();
19687 main ()
19689 gethostbyname ();
19691 return 0;
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19696 (eval $ac_link) 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_lib_nsl_gethostbyname=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_nsl_gethostbyname=no
19723 rm -f conftest.err conftest.$ac_objext \
19724 conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19728 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19729 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19733 if test $ac_cv_lib_nsl_gethostbyname = no; then
19734 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19735 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19736 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739 ac_check_lib_save_LIBS=$LIBS
19740 LIBS="-lbsd $LIBS"
19741 if test x$gcc_no_link = xyes; then
19742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19744 { (exit 1); exit 1; }; }
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19753 /* Override any gcc2 internal prototype to avoid an error. */
19754 #ifdef __cplusplus
19755 extern "C"
19756 #endif
19757 /* We use char because int might match the return type of a gcc2
19758 builtin and then its argument prototype would still apply. */
19759 char gethostbyname ();
19761 main ()
19763 gethostbyname ();
19765 return 0;
19767 _ACEOF
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest$ac_exeext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_lib_bsd_gethostbyname=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_lib_bsd_gethostbyname=no
19797 rm -f conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19802 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19803 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19810 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19811 # socket/setsockopt and other routines are undefined under SCO ODT
19812 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19813 # on later versions), says Simon Leinen: it contains gethostby*
19814 # variants that don't use the name server (or something). -lsocket
19815 # must be given before -lnsl if both are needed. We assume that
19816 # if connect needs -lnsl, so does gethostbyname.
19817 echo "$as_me:$LINENO: checking for connect" >&5
19818 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19819 if test "${ac_cv_func_connect+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822 if test x$gcc_no_link = xyes; then
19823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19825 { (exit 1); exit 1; }; }
19827 cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h. */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19835 #define connect innocuous_connect
19837 /* System header to define __stub macros and hopefully few prototypes,
19838 which can conflict with char connect (); below.
19839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19840 <limits.h> exists even on freestanding compilers. */
19842 #ifdef __STDC__
19843 # include <limits.h>
19844 #else
19845 # include <assert.h>
19846 #endif
19848 #undef connect
19850 /* Override any gcc2 internal prototype to avoid an error. */
19851 #ifdef __cplusplus
19852 extern "C"
19854 #endif
19855 /* We use char because int might match the return type of a gcc2
19856 builtin and then its argument prototype would still apply. */
19857 char connect ();
19858 /* The GNU C library defines this for functions which it implements
19859 to always fail with ENOSYS. Some functions are actually named
19860 something starting with __ and the normal name is an alias. */
19861 #if defined (__stub_connect) || defined (__stub___connect)
19862 choke me
19863 #else
19864 char (*f) () = connect;
19865 #endif
19866 #ifdef __cplusplus
19868 #endif
19871 main ()
19873 return f != connect;
19875 return 0;
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19880 (eval $ac_link) 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_func_connect=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_cv_func_connect=no
19907 rm -f conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19910 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19911 echo "${ECHO_T}$ac_cv_func_connect" >&6
19913 if test $ac_cv_func_connect = no; then
19914 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19915 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19916 if test "${ac_cv_lib_socket_connect+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19921 if test x$gcc_no_link = xyes; then
19922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19924 { (exit 1); exit 1; }; }
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h. */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19933 /* Override any gcc2 internal prototype to avoid an error. */
19934 #ifdef __cplusplus
19935 extern "C"
19936 #endif
19937 /* We use char because int might match the return type of a gcc2
19938 builtin and then its argument prototype would still apply. */
19939 char connect ();
19941 main ()
19943 connect ();
19945 return 0;
19947 _ACEOF
19948 rm -f conftest.$ac_objext conftest$ac_exeext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19950 (eval $ac_link) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_c_werror_flag"
19958 || test ! -s conftest.err'
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; } &&
19964 { ac_try='test -s conftest$ac_exeext'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_cv_lib_socket_connect=yes
19971 else
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_lib_socket_connect=no
19977 rm -f conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
19979 LIBS=$ac_check_lib_save_LIBS
19981 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19982 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19983 if test $ac_cv_lib_socket_connect = yes; then
19984 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19989 # Guillermo Gomez says -lposix is necessary on A/UX.
19990 echo "$as_me:$LINENO: checking for remove" >&5
19991 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19992 if test "${ac_cv_func_remove+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 if test x$gcc_no_link = xyes; then
19996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19998 { (exit 1); exit 1; }; }
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20008 #define remove innocuous_remove
20010 /* System header to define __stub macros and hopefully few prototypes,
20011 which can conflict with char remove (); below.
20012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20013 <limits.h> exists even on freestanding compilers. */
20015 #ifdef __STDC__
20016 # include <limits.h>
20017 #else
20018 # include <assert.h>
20019 #endif
20021 #undef remove
20023 /* Override any gcc2 internal prototype to avoid an error. */
20024 #ifdef __cplusplus
20025 extern "C"
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20030 char remove ();
20031 /* The GNU C library defines this for functions which it implements
20032 to always fail with ENOSYS. Some functions are actually named
20033 something starting with __ and the normal name is an alias. */
20034 #if defined (__stub_remove) || defined (__stub___remove)
20035 choke me
20036 #else
20037 char (*f) () = remove;
20038 #endif
20039 #ifdef __cplusplus
20041 #endif
20044 main ()
20046 return f != remove;
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20053 (eval $ac_link) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest$ac_exeext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_func_remove=yes
20074 else
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_func_remove=no
20080 rm -f conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20083 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20084 echo "${ECHO_T}$ac_cv_func_remove" >&6
20086 if test $ac_cv_func_remove = no; then
20087 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20088 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20089 if test "${ac_cv_lib_posix_remove+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lposix $LIBS"
20094 if test x$gcc_no_link = xyes; then
20095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20097 { (exit 1); exit 1; }; }
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 /* Override any gcc2 internal prototype to avoid an error. */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 /* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20112 char remove ();
20114 main ()
20116 remove ();
20118 return 0;
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_lib_posix_remove=yes
20144 else
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_lib_posix_remove=no
20150 rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20155 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20156 if test $ac_cv_lib_posix_remove = yes; then
20157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20162 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20163 echo "$as_me:$LINENO: checking for shmat" >&5
20164 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20165 if test "${ac_cv_func_shmat+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168 if test x$gcc_no_link = xyes; then
20169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20171 { (exit 1); exit 1; }; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20181 #define shmat innocuous_shmat
20183 /* System header to define __stub macros and hopefully few prototypes,
20184 which can conflict with char shmat (); below.
20185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20186 <limits.h> exists even on freestanding compilers. */
20188 #ifdef __STDC__
20189 # include <limits.h>
20190 #else
20191 # include <assert.h>
20192 #endif
20194 #undef shmat
20196 /* Override any gcc2 internal prototype to avoid an error. */
20197 #ifdef __cplusplus
20198 extern "C"
20200 #endif
20201 /* We use char because int might match the return type of a gcc2
20202 builtin and then its argument prototype would still apply. */
20203 char shmat ();
20204 /* The GNU C library defines this for functions which it implements
20205 to always fail with ENOSYS. Some functions are actually named
20206 something starting with __ and the normal name is an alias. */
20207 #if defined (__stub_shmat) || defined (__stub___shmat)
20208 choke me
20209 #else
20210 char (*f) () = shmat;
20211 #endif
20212 #ifdef __cplusplus
20214 #endif
20217 main ()
20219 return f != shmat;
20221 return 0;
20223 _ACEOF
20224 rm -f conftest.$ac_objext conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226 (eval $ac_link) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_func_shmat=yes
20247 else
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_func_shmat=no
20253 rm -f conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20257 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20259 if test $ac_cv_func_shmat = no; then
20260 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20261 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20262 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265 ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lipc $LIBS"
20267 if test x$gcc_no_link = xyes; then
20268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20270 { (exit 1); exit 1; }; }
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any gcc2 internal prototype to avoid an error. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 /* We use char because int might match the return type of a gcc2
20284 builtin and then its argument prototype would still apply. */
20285 char shmat ();
20287 main ()
20289 shmat ();
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest$ac_exeext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 ac_cv_lib_ipc_shmat=yes
20317 else
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ac_cv_lib_ipc_shmat=no
20323 rm -f conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20328 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20329 if test $ac_cv_lib_ipc_shmat = yes; then
20330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20336 # Check for libraries that X11R6 Xt/Xaw programs need.
20337 ac_save_LDFLAGS=$LDFLAGS
20338 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20339 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20340 # check for ICE first), but we must link in the order -lSM -lICE or
20341 # we get undefined symbols. So assume we have SM if we have ICE.
20342 # These have to be linked with before -lX11, unlike the other
20343 # libraries we check for below, so use a different variable.
20344 # John Interrante, Karl Berry
20345 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20346 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20347 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350 ac_check_lib_save_LIBS=$LIBS
20351 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20352 if test x$gcc_no_link = xyes; then
20353 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20354 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20355 { (exit 1); exit 1; }; }
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h. */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* Override any gcc2 internal prototype to avoid an error. */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20370 char IceConnectionNumber ();
20372 main ()
20374 IceConnectionNumber ();
20376 return 0;
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag"
20389 || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_lib_ICE_IceConnectionNumber=yes
20402 else
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20406 ac_cv_lib_ICE_IceConnectionNumber=no
20408 rm -f conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410 LIBS=$ac_check_lib_save_LIBS
20412 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20413 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20414 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20415 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20418 LDFLAGS=$ac_save_LDFLAGS
20423 # FIXME: this should be _libs on some hosts.
20424 libsubdir=.libs
20426 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20428 LIBSTDCXXSPEC=
20429 # extra LD Flags which are required for targets
20430 case "${host}" in
20431 *-*-darwin[0-7].*)
20432 # For now we have to disable it on darwin[8-9] because it slows down
20433 # the linking phase. A possible bug in ld?
20434 # on Darwin -single_module speeds up loading of the dynamic libraries.
20435 extra_ldflags_libjava=-Wl,-single_module
20437 *-*-darwin[9]*)
20438 extra_gij_ldflags=-Wl,-allow_stack_execute
20440 arm*linux*eabi)
20441 # Some of the ARM unwinder code is actually in libstdc++. We
20442 # could in principle replicate it in libgcj, but it's better to
20443 # have a dependency on libstdc++.
20444 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20445 LIBSTDCXXSPEC=-lstdc++
20446 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20448 esac
20456 # Allow the GC to be disabled. Can be useful when debugging.
20457 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20458 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20459 # Check whether --enable-java-gc or --disable-java-gc was given.
20460 if test "${enable_java_gc+set}" = set; then
20461 enableval="$enable_java_gc"
20462 GC=$enableval
20463 else
20464 GC=boehm
20466 GCLIBS=
20467 GCINCS=
20468 GCDEPS=
20469 GCSPEC=
20470 JC1GCSPEC=
20471 GCTESTSPEC=
20472 case "$GC" in
20473 boehm)
20474 echo "$as_me:$LINENO: result: boehm" >&5
20475 echo "${ECHO_T}boehm" >&6
20476 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20477 JC1GCSPEC='-fuse-boehm-gc'
20478 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20479 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20480 GCOBJS=boehm.lo
20481 GCHDR=boehm-gc.h
20482 # The POSIX thread support needs to know this.
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE_BOEHM_GC 1
20486 _ACEOF
20490 echo "$as_me:$LINENO: result: none" >&5
20491 echo "${ECHO_T}none" >&6
20492 GCHDR=no-gc.h
20495 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20496 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20497 { (exit 1); exit 1; }; }
20499 esac
20506 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20510 if test "$GC" = boehm; then
20511 USING_BOEHMGC_TRUE=
20512 USING_BOEHMGC_FALSE='#'
20513 else
20514 USING_BOEHMGC_TRUE='#'
20515 USING_BOEHMGC_FALSE=
20520 if test "$GC" = no; then
20521 USING_NOGC_TRUE=
20522 USING_NOGC_FALSE='#'
20523 else
20524 USING_NOGC_TRUE='#'
20525 USING_NOGC_FALSE=
20530 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20531 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20532 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20533 echo "$as_me:$LINENO: result: $THREADS" >&5
20534 echo "${ECHO_T}$THREADS" >&6
20536 case "$THREADS" in
20537 no | none | single)
20538 THREADS=none
20540 posix | posix95 | pthreads)
20541 THREADS=posix
20542 case "$host" in
20543 *-*-linux*)
20545 cat >>confdefs.h <<\_ACEOF
20546 #define LINUX_THREADS 1
20547 _ACEOF
20550 esac
20552 win32)
20554 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20555 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20556 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20557 { (exit 1); exit 1; }; }
20560 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20561 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20562 { (exit 1); exit 1; }; }
20564 esac
20566 THREADCXXFLAGS=
20567 THREADLDFLAGS=
20568 THREADLIBS=
20569 THREADINCS=
20570 THREADDEPS=
20571 THREADH=
20572 THREADSPEC=
20573 THREADSTARTFILESPEC=
20574 case "$THREADS" in
20575 posix)
20576 case "$host" in
20577 *-*-cygwin*)
20578 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20580 *-*-freebsd[1234]*)
20581 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20582 # merely adds pthread_* functions) but it does have a -pthread switch
20583 # which is required at link-time to select -lc_r *instead* of -lc.
20584 THREADLDFLAGS=-pthread
20585 # Don't set THREADSPEC here as might be expected since -pthread is
20586 # not processed when found within a spec file, it must come from
20587 # the command line. For now, the user must provide the -pthread
20588 # switch to link code compiled with gcj. In future, consider adding
20589 # support for weak references to pthread_* functions ala gthr.h API.
20590 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20592 *-*-freebsd*)
20593 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20594 # systems which support threads and -lpthread.
20595 THREADLDFLAGS=-pthread
20596 THREADSPEC=-lpthread
20598 alpha*-dec-osf* | hppa*-hp-hpux*)
20599 THREADCXXFLAGS=-pthread
20600 # boehm-gc needs some functions from librt, so link that too.
20601 THREADLIBS='-lpthread -lrt'
20602 THREADSPEC='-lpthread -lrt'
20605 THREADLIBS=-lpthread
20606 THREADSPEC=-lpthread
20608 esac
20609 THREADH=posix-threads.h
20610 # MIT pthreads doesn't seem to have the mutexattr functions.
20611 # But for now we don't check for it. We just assume you aren't
20612 # using MIT pthreads.
20614 cat >>confdefs.h <<\_ACEOF
20615 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20616 _ACEOF
20619 # If we're using the Boehm GC, then we happen to know that it
20620 # defines _REENTRANT, so we don't bother. Eww.
20621 if test "$GC" != boehm; then
20623 cat >>confdefs.h <<\_ACEOF
20624 #define _REENTRANT 1
20625 _ACEOF
20629 cat >>confdefs.h <<\_ACEOF
20630 #define _POSIX_PTHREAD_SEMANTICS 1
20631 _ACEOF
20635 win32)
20636 THREADH=win32-threads.h
20637 THREADCXXFLAGS=-mthreads
20638 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20639 # But we do not want the executables created to be dependent on
20640 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20641 # exception handling contexts. The following kludge achieves this effect
20642 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20643 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20644 # A workaround is to explicitly use -mthreads while linking Java programs.
20645 # See PR libgcj/28263.
20647 # FIXME: In Java we are able to detect thread death at the end of
20648 # Thread.run() so we should be able to clean up the exception handling
20649 # contexts ourselves.
20650 THREADSTARTFILESPEC='crtmt%O%s'
20653 none)
20654 THREADH=no-threads.h
20656 esac
20657 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20668 if test "$THREADS" = posix; then
20669 USING_POSIX_THREADS_TRUE=
20670 USING_POSIX_THREADS_FALSE='#'
20671 else
20672 USING_POSIX_THREADS_TRUE='#'
20673 USING_POSIX_THREADS_FALSE=
20678 if test "$THREADS" = win32; then
20679 USING_WIN32_THREADS_TRUE=
20680 USING_WIN32_THREADS_FALSE='#'
20681 else
20682 USING_WIN32_THREADS_TRUE='#'
20683 USING_WIN32_THREADS_FALSE=
20688 if test "$THREADS" = none; then
20689 USING_NO_THREADS_TRUE=
20690 USING_NO_THREADS_FALSE='#'
20691 else
20692 USING_NO_THREADS_TRUE='#'
20693 USING_NO_THREADS_FALSE=
20698 if test "$use_libgcj_bc" = yes; then
20699 USE_LIBGCJ_BC_TRUE=
20700 USE_LIBGCJ_BC_FALSE='#'
20701 else
20702 USE_LIBGCJ_BC_TRUE='#'
20703 USE_LIBGCJ_BC_FALSE=
20707 if test -d sysdep; then true; else mkdir sysdep; fi
20708 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20710 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20712 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20715 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20716 if test "$use_libgcj_bc" = yes; then
20717 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20721 HASH_SYNC_SPEC=
20722 # Hash synchronization is only useful with posix threads right now.
20723 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20724 HASH_SYNC_SPEC=-fhash-synchronization
20726 cat >>confdefs.h <<\_ACEOF
20727 #define JV_HASH_SYNCHRONIZATION 1
20728 _ACEOF
20735 if test "$GCC" = yes; then
20736 USING_GCC_TRUE=
20737 USING_GCC_FALSE='#'
20738 else
20739 USING_GCC_TRUE='#'
20740 USING_GCC_FALSE=
20744 # We're in the tree with gcc, and need to include some of its headers.
20745 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20747 if test "x${with_newlib}" = "xyes"; then
20748 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20749 # may not work correctly, because the compiler may not be able to
20750 # link executables.
20752 # We assume newlib. This lets us hard-code the functions we know
20753 # we'll have.
20755 cat >>confdefs.h <<\_ACEOF
20756 #define HAVE_MEMMOVE 1
20757 _ACEOF
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_MEMCPY 1
20762 _ACEOF
20765 cat >>confdefs.h <<\_ACEOF
20766 #define HAVE_TIME 1
20767 _ACEOF
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_GMTIME_R 1
20772 _ACEOF
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_LOCALTIME_R 1
20777 _ACEOF
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_USLEEP_DECL 1
20782 _ACEOF
20784 # This is only for POSIX threads.
20786 cat >>confdefs.h <<\_ACEOF
20787 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20788 _ACEOF
20791 # Assume we do not have getuid and friends.
20793 cat >>confdefs.h <<\_ACEOF
20794 #define NO_GETUID 1
20795 _ACEOF
20797 PLATFORMNET=NoNet
20798 else
20829 for ac_func in strerror_r select fstat open fsync sleep opendir \
20830 localtime_r getpwuid_r getcwd \
20831 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20832 nl_langinfo setlocale \
20833 inet_pton uname inet_ntoa \
20834 getrlimit sigaction ftruncate mmap \
20835 getifaddrs
20837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20838 echo "$as_me:$LINENO: checking for $ac_func" >&5
20839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20840 if eval "test \"\${$as_ac_var+set}\" = set"; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843 if test x$gcc_no_link = xyes; then
20844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20846 { (exit 1); exit 1; }; }
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20856 #define $ac_func innocuous_$ac_func
20858 /* System header to define __stub macros and hopefully few prototypes,
20859 which can conflict with char $ac_func (); below.
20860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861 <limits.h> exists even on freestanding compilers. */
20863 #ifdef __STDC__
20864 # include <limits.h>
20865 #else
20866 # include <assert.h>
20867 #endif
20869 #undef $ac_func
20871 /* Override any gcc2 internal prototype to avoid an error. */
20872 #ifdef __cplusplus
20873 extern "C"
20875 #endif
20876 /* We use char because int might match the return type of a gcc2
20877 builtin and then its argument prototype would still apply. */
20878 char $ac_func ();
20879 /* The GNU C library defines this for functions which it implements
20880 to always fail with ENOSYS. Some functions are actually named
20881 something starting with __ and the normal name is an alias. */
20882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20883 choke me
20884 #else
20885 char (*f) () = $ac_func;
20886 #endif
20887 #ifdef __cplusplus
20889 #endif
20892 main ()
20894 return f != $ac_func;
20896 return 0;
20898 _ACEOF
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901 (eval $ac_link) 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -z "$ac_c_werror_flag"
20909 || test ! -s conftest.err'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; } &&
20915 { ac_try='test -s conftest$ac_exeext'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 eval "$as_ac_var=yes"
20922 else
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 eval "$as_ac_var=no"
20928 rm -f conftest.err conftest.$ac_objext \
20929 conftest$ac_exeext conftest.$ac_ext
20931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20933 if test `eval echo '${'$as_ac_var'}'` = yes; then
20934 cat >>confdefs.h <<_ACEOF
20935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20936 _ACEOF
20939 done
20943 for ac_func in inet_aton inet_addr
20945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20948 if eval "test \"\${$as_ac_var+set}\" = set"; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951 if test x$gcc_no_link = xyes; then
20952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20954 { (exit 1); exit 1; }; }
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h. */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20964 #define $ac_func innocuous_$ac_func
20966 /* System header to define __stub macros and hopefully few prototypes,
20967 which can conflict with char $ac_func (); below.
20968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20969 <limits.h> exists even on freestanding compilers. */
20971 #ifdef __STDC__
20972 # include <limits.h>
20973 #else
20974 # include <assert.h>
20975 #endif
20977 #undef $ac_func
20979 /* Override any gcc2 internal prototype to avoid an error. */
20980 #ifdef __cplusplus
20981 extern "C"
20983 #endif
20984 /* We use char because int might match the return type of a gcc2
20985 builtin and then its argument prototype would still apply. */
20986 char $ac_func ();
20987 /* The GNU C library defines this for functions which it implements
20988 to always fail with ENOSYS. Some functions are actually named
20989 something starting with __ and the normal name is an alias. */
20990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20991 choke me
20992 #else
20993 char (*f) () = $ac_func;
20994 #endif
20995 #ifdef __cplusplus
20997 #endif
21000 main ()
21002 return f != $ac_func;
21004 return 0;
21006 _ACEOF
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009 (eval $ac_link) 2>conftest.er1
21010 ac_status=$?
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -z "$ac_c_werror_flag"
21017 || test ! -s conftest.err'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 eval "$as_ac_var=yes"
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 eval "$as_ac_var=no"
21036 rm -f conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21041 if test `eval echo '${'$as_ac_var'}'` = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21044 _ACEOF
21045 break
21047 done
21052 for ac_header in unistd.h dlfcn.h sys/resource.h
21054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21056 echo "$as_me:$LINENO: checking for $ac_header" >&5
21057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21063 else
21064 # Is the header compilable?
21065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <$ac_header>
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_header_compiler=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_header_compiler=no
21105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21107 echo "${ECHO_T}$ac_header_compiler" >&6
21109 # Is the header present?
21110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 #include <$ac_header>
21119 _ACEOF
21120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev/null; then
21128 if test -s conftest.err; then
21129 ac_cpp_err=$ac_c_preproc_warn_flag
21130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21131 else
21132 ac_cpp_err=
21134 else
21135 ac_cpp_err=yes
21137 if test -z "$ac_cpp_err"; then
21138 ac_header_preproc=yes
21139 else
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_preproc=no
21145 rm -f conftest.err conftest.$ac_ext
21146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21147 echo "${ECHO_T}$ac_header_preproc" >&6
21149 # So? What about this header?
21150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21151 yes:no: )
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21156 ac_header_preproc=yes
21158 no:yes:* )
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21172 cat <<\_ASBOX
21173 ## ---------------------------------- ##
21174 ## Report this to the libjava lists. ##
21175 ## ---------------------------------- ##
21176 _ASBOX
21178 sed "s/^/$as_me: WARNING: /" >&2
21180 esac
21181 echo "$as_me:$LINENO: checking for $ac_header" >&5
21182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186 eval "$as_ac_Header=\$ac_header_preproc"
21188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 _ACEOF
21199 done
21201 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21202 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21203 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21204 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207 ac_check_lib_save_LIBS=$LIBS
21208 LIBS="-ldl $LIBS"
21209 if test x$gcc_no_link = xyes; then
21210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21212 { (exit 1); exit 1; }; }
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21221 /* Override any gcc2 internal prototype to avoid an error. */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 /* We use char because int might match the return type of a gcc2
21226 builtin and then its argument prototype would still apply. */
21227 char dladdr ();
21229 main ()
21231 dladdr ();
21233 return 0;
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238 (eval $ac_link) 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_c_werror_flag"
21246 || test ! -s conftest.err'
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; } &&
21252 { ac_try='test -s conftest$ac_exeext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_cv_lib_dl_dladdr=yes
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_cv_lib_dl_dladdr=no
21265 rm -f conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21267 LIBS=$ac_check_lib_save_LIBS
21269 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21270 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21271 if test $ac_cv_lib_dl_dladdr = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_DLADDR 1
21276 _ACEOF
21278 else
21280 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21281 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21282 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285 ac_check_lib_save_LIBS=$LIBS
21286 LIBS="-ldld $LIBS"
21287 if test x$gcc_no_link = xyes; then
21288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21290 { (exit 1); exit 1; }; }
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h. */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21299 /* Override any gcc2 internal prototype to avoid an error. */
21300 #ifdef __cplusplus
21301 extern "C"
21302 #endif
21303 /* We use char because int might match the return type of a gcc2
21304 builtin and then its argument prototype would still apply. */
21305 char dladdr ();
21307 main ()
21309 dladdr ();
21311 return 0;
21313 _ACEOF
21314 rm -f conftest.$ac_objext conftest$ac_exeext
21315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21316 (eval $ac_link) 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
21323 { ac_try='test -z "$ac_c_werror_flag"
21324 || test ! -s conftest.err'
21325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326 (eval $ac_try) 2>&5
21327 ac_status=$?
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest$ac_exeext'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_lib_dld_dladdr=yes
21337 else
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 ac_cv_lib_dld_dladdr=no
21343 rm -f conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext conftest.$ac_ext
21345 LIBS=$ac_check_lib_save_LIBS
21347 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21348 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21349 if test $ac_cv_lib_dld_dladdr = yes; then
21352 cat >>confdefs.h <<\_ACEOF
21353 #define HAVE_DLADDR 1
21354 _ACEOF
21361 if test x"$cross_compiling" = x"no"; then
21362 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21363 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21364 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 test "$cross_compiling" = yes &&
21368 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21369 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21370 { (exit 1); exit 1; }; }
21371 if test -r "/proc/self/exe"; then
21372 ac_cv_file__proc_self_exe=yes
21373 else
21374 ac_cv_file__proc_self_exe=no
21377 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21378 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21379 if test $ac_cv_file__proc_self_exe = yes; then
21381 cat >>confdefs.h <<_ACEOF
21382 #define HAVE__PROC_SELF_EXE 1
21383 _ACEOF
21387 cat >>confdefs.h <<\_ACEOF
21388 #define HAVE_PROC_SELF_EXE 1
21389 _ACEOF
21393 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21394 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21395 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 else
21398 test "$cross_compiling" = yes &&
21399 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21400 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21401 { (exit 1); exit 1; }; }
21402 if test -r "/proc/self/maps"; then
21403 ac_cv_file__proc_self_maps=yes
21404 else
21405 ac_cv_file__proc_self_maps=no
21408 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21409 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21410 if test $ac_cv_file__proc_self_maps = yes; then
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE__PROC_SELF_MAPS 1
21414 _ACEOF
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_PROC_SELF_MAPS 1
21420 _ACEOF
21424 else
21425 case $host in
21426 *-linux*)
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_PROC_SELF_EXE 1
21430 _ACEOF
21433 cat >>confdefs.h <<\_ACEOF
21434 #define HAVE_PROC_SELF_MAPS 1
21435 _ACEOF
21438 esac
21442 if test "X$prefix" = "XNONE"; then
21443 acl_final_prefix="$ac_default_prefix"
21444 else
21445 acl_final_prefix="$prefix"
21447 if test "X$exec_prefix" = "XNONE"; then
21448 acl_final_exec_prefix='${prefix}'
21449 else
21450 acl_final_exec_prefix="$exec_prefix"
21452 acl_save_prefix="$prefix"
21453 prefix="$acl_final_prefix"
21454 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21455 prefix="$acl_save_prefix"
21458 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21459 if test "${with_gnu_ld+set}" = set; then
21460 withval="$with_gnu_ld"
21461 test "$withval" = no || with_gnu_ld=yes
21462 else
21463 with_gnu_ld=no
21465 # Prepare PATH_SEPARATOR.
21466 # The user is always right.
21467 if test "${PATH_SEPARATOR+set}" != set; then
21468 echo "#! /bin/sh" >conf$$.sh
21469 echo "exit 0" >>conf$$.sh
21470 chmod +x conf$$.sh
21471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21472 PATH_SEPARATOR=';'
21473 else
21474 PATH_SEPARATOR=:
21476 rm -f conf$$.sh
21478 ac_prog=ld
21479 if test "$GCC" = yes; then
21480 # Check if gcc -print-prog-name=ld gives a path.
21481 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21482 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21483 case $host in
21484 *-*-mingw*)
21485 # gcc leaves a trailing carriage return which upsets mingw
21486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21489 esac
21490 case $ac_prog in
21491 # Accept absolute paths.
21492 [\\/]* | [A-Za-z]:[\\/]*)
21493 re_direlt='/[^/][^/]*/\.\./'
21494 # Canonicalize the path of ld
21495 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21497 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21498 done
21499 test -z "$LD" && LD="$ac_prog"
21502 # If it fails, then pretend we aren't using GCC.
21503 ac_prog=ld
21506 # If it is relative, then search for the first ld in PATH.
21507 with_gnu_ld=unknown
21509 esac
21510 elif test "$with_gnu_ld" = yes; then
21511 echo "$as_me:$LINENO: checking for GNU ld" >&5
21512 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21513 else
21514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21515 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21517 if test "${acl_cv_path_LD+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520 if test -z "$LD"; then
21521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21522 for ac_dir in $PATH; do
21523 test -z "$ac_dir" && ac_dir=.
21524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21525 acl_cv_path_LD="$ac_dir/$ac_prog"
21526 # Check to see if the program is GNU ld. I'd rather use --version,
21527 # but apparently some GNU ld's only accept -v.
21528 # Break only if it was the GNU/non-GNU ld that we prefer.
21529 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21530 test "$with_gnu_ld" != no && break
21531 else
21532 test "$with_gnu_ld" != yes && break
21535 done
21536 IFS="$ac_save_ifs"
21537 else
21538 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21542 LD="$acl_cv_path_LD"
21543 if test -n "$LD"; then
21544 echo "$as_me:$LINENO: result: $LD" >&5
21545 echo "${ECHO_T}$LD" >&6
21546 else
21547 echo "$as_me:$LINENO: result: no" >&5
21548 echo "${ECHO_T}no" >&6
21550 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21551 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21552 { (exit 1); exit 1; }; }
21553 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21554 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21555 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21559 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21560 acl_cv_prog_gnu_ld=yes
21561 else
21562 acl_cv_prog_gnu_ld=no
21565 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21566 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21567 with_gnu_ld=$acl_cv_prog_gnu_ld
21571 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21572 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21573 if test "${acl_cv_rpath+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21577 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21578 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21579 . ./conftest.sh
21580 rm -f ./conftest.sh
21581 acl_cv_rpath=done
21584 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21585 echo "${ECHO_T}$acl_cv_rpath" >&6
21586 wl="$acl_cv_wl"
21587 libext="$acl_cv_libext"
21588 shlibext="$acl_cv_shlibext"
21589 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21590 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21591 hardcode_direct="$acl_cv_hardcode_direct"
21592 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21593 # Check whether --enable-rpath or --disable-rpath was given.
21594 if test "${enable_rpath+set}" = set; then
21595 enableval="$enable_rpath"
21597 else
21598 enable_rpath=yes
21607 use_additional=yes
21609 acl_save_prefix="$prefix"
21610 prefix="$acl_final_prefix"
21611 acl_save_exec_prefix="$exec_prefix"
21612 exec_prefix="$acl_final_exec_prefix"
21614 eval additional_includedir=\"$includedir\"
21615 eval additional_libdir=\"$libdir\"
21617 exec_prefix="$acl_save_exec_prefix"
21618 prefix="$acl_save_prefix"
21621 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21622 if test "${with_libiconv_prefix+set}" = set; then
21623 withval="$with_libiconv_prefix"
21625 if test "X$withval" = "Xno"; then
21626 use_additional=no
21627 else
21628 if test "X$withval" = "X"; then
21630 acl_save_prefix="$prefix"
21631 prefix="$acl_final_prefix"
21632 acl_save_exec_prefix="$exec_prefix"
21633 exec_prefix="$acl_final_exec_prefix"
21635 eval additional_includedir=\"$includedir\"
21636 eval additional_libdir=\"$libdir\"
21638 exec_prefix="$acl_save_exec_prefix"
21639 prefix="$acl_save_prefix"
21641 else
21642 additional_includedir="$withval/include"
21643 additional_libdir="$withval/lib"
21648 LIBICONV=
21649 LTLIBICONV=
21650 INCICONV=
21651 rpathdirs=
21652 ltrpathdirs=
21653 names_already_handled=
21654 names_next_round='iconv '
21655 while test -n "$names_next_round"; do
21656 names_this_round="$names_next_round"
21657 names_next_round=
21658 for name in $names_this_round; do
21659 already_handled=
21660 for n in $names_already_handled; do
21661 if test "$n" = "$name"; then
21662 already_handled=yes
21663 break
21665 done
21666 if test -z "$already_handled"; then
21667 names_already_handled="$names_already_handled $name"
21668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21669 eval value=\"\$HAVE_LIB$uppername\"
21670 if test -n "$value"; then
21671 if test "$value" = yes; then
21672 eval value=\"\$LIB$uppername\"
21673 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21674 eval value=\"\$LTLIB$uppername\"
21675 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21676 else
21679 else
21680 found_dir=
21681 found_la=
21682 found_so=
21683 found_a=
21684 if test $use_additional = yes; then
21685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21686 found_dir="$additional_libdir"
21687 found_so="$additional_libdir/lib$name.$shlibext"
21688 if test -f "$additional_libdir/lib$name.la"; then
21689 found_la="$additional_libdir/lib$name.la"
21691 else
21692 if test -f "$additional_libdir/lib$name.$libext"; then
21693 found_dir="$additional_libdir"
21694 found_a="$additional_libdir/lib$name.$libext"
21695 if test -f "$additional_libdir/lib$name.la"; then
21696 found_la="$additional_libdir/lib$name.la"
21701 if test "X$found_dir" = "X"; then
21702 for x in $LDFLAGS $LTLIBICONV; do
21704 acl_save_prefix="$prefix"
21705 prefix="$acl_final_prefix"
21706 acl_save_exec_prefix="$exec_prefix"
21707 exec_prefix="$acl_final_exec_prefix"
21708 eval x=\"$x\"
21709 exec_prefix="$acl_save_exec_prefix"
21710 prefix="$acl_save_prefix"
21712 case "$x" in
21713 -L*)
21714 dir=`echo "X$x" | sed -e 's/^X-L//'`
21715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21716 found_dir="$dir"
21717 found_so="$dir/lib$name.$shlibext"
21718 if test -f "$dir/lib$name.la"; then
21719 found_la="$dir/lib$name.la"
21721 else
21722 if test -f "$dir/lib$name.$libext"; then
21723 found_dir="$dir"
21724 found_a="$dir/lib$name.$libext"
21725 if test -f "$dir/lib$name.la"; then
21726 found_la="$dir/lib$name.la"
21731 esac
21732 if test "X$found_dir" != "X"; then
21733 break
21735 done
21737 if test "X$found_dir" != "X"; then
21738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21739 if test "X$found_so" != "X"; then
21740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21742 else
21743 haveit=
21744 for x in $ltrpathdirs; do
21745 if test "X$x" = "X$found_dir"; then
21746 haveit=yes
21747 break
21749 done
21750 if test -z "$haveit"; then
21751 ltrpathdirs="$ltrpathdirs $found_dir"
21753 if test "$hardcode_direct" = yes; then
21754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21755 else
21756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21758 haveit=
21759 for x in $rpathdirs; do
21760 if test "X$x" = "X$found_dir"; then
21761 haveit=yes
21762 break
21764 done
21765 if test -z "$haveit"; then
21766 rpathdirs="$rpathdirs $found_dir"
21768 else
21769 haveit=
21770 for x in $LDFLAGS $LIBICONV; do
21772 acl_save_prefix="$prefix"
21773 prefix="$acl_final_prefix"
21774 acl_save_exec_prefix="$exec_prefix"
21775 exec_prefix="$acl_final_exec_prefix"
21776 eval x=\"$x\"
21777 exec_prefix="$acl_save_exec_prefix"
21778 prefix="$acl_save_prefix"
21780 if test "X$x" = "X-L$found_dir"; then
21781 haveit=yes
21782 break
21784 done
21785 if test -z "$haveit"; then
21786 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21788 if test "$hardcode_minus_L" != no; then
21789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21790 else
21791 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21796 else
21797 if test "X$found_a" != "X"; then
21798 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21799 else
21800 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21803 additional_includedir=
21804 case "$found_dir" in
21805 */lib | */lib/)
21806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21807 additional_includedir="$basedir/include"
21809 esac
21810 if test "X$additional_includedir" != "X"; then
21811 if test "X$additional_includedir" != "X/usr/include"; then
21812 haveit=
21813 if test "X$additional_includedir" = "X/usr/local/include"; then
21814 if test -n "$GCC"; then
21815 case $host_os in
21816 linux*) haveit=yes;;
21817 esac
21820 if test -z "$haveit"; then
21821 for x in $CPPFLAGS $INCICONV; do
21823 acl_save_prefix="$prefix"
21824 prefix="$acl_final_prefix"
21825 acl_save_exec_prefix="$exec_prefix"
21826 exec_prefix="$acl_final_exec_prefix"
21827 eval x=\"$x\"
21828 exec_prefix="$acl_save_exec_prefix"
21829 prefix="$acl_save_prefix"
21831 if test "X$x" = "X-I$additional_includedir"; then
21832 haveit=yes
21833 break
21835 done
21836 if test -z "$haveit"; then
21837 if test -d "$additional_includedir"; then
21838 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21844 if test -n "$found_la"; then
21845 save_libdir="$libdir"
21846 case "$found_la" in
21847 */* | *\\*) . "$found_la" ;;
21848 *) . "./$found_la" ;;
21849 esac
21850 libdir="$save_libdir"
21851 for dep in $dependency_libs; do
21852 case "$dep" in
21853 -L*)
21854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21855 if test "X$additional_libdir" != "X/usr/lib"; then
21856 haveit=
21857 if test "X$additional_libdir" = "X/usr/local/lib"; then
21858 if test -n "$GCC"; then
21859 case $host_os in
21860 linux*) haveit=yes;;
21861 esac
21864 if test -z "$haveit"; then
21865 haveit=
21866 for x in $LDFLAGS $LIBICONV; do
21868 acl_save_prefix="$prefix"
21869 prefix="$acl_final_prefix"
21870 acl_save_exec_prefix="$exec_prefix"
21871 exec_prefix="$acl_final_exec_prefix"
21872 eval x=\"$x\"
21873 exec_prefix="$acl_save_exec_prefix"
21874 prefix="$acl_save_prefix"
21876 if test "X$x" = "X-L$additional_libdir"; then
21877 haveit=yes
21878 break
21880 done
21881 if test -z "$haveit"; then
21882 if test -d "$additional_libdir"; then
21883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21886 haveit=
21887 for x in $LDFLAGS $LTLIBICONV; do
21889 acl_save_prefix="$prefix"
21890 prefix="$acl_final_prefix"
21891 acl_save_exec_prefix="$exec_prefix"
21892 exec_prefix="$acl_final_exec_prefix"
21893 eval x=\"$x\"
21894 exec_prefix="$acl_save_exec_prefix"
21895 prefix="$acl_save_prefix"
21897 if test "X$x" = "X-L$additional_libdir"; then
21898 haveit=yes
21899 break
21901 done
21902 if test -z "$haveit"; then
21903 if test -d "$additional_libdir"; then
21904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21910 -R*)
21911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21912 if test "$enable_rpath" != no; then
21913 haveit=
21914 for x in $rpathdirs; do
21915 if test "X$x" = "X$dir"; then
21916 haveit=yes
21917 break
21919 done
21920 if test -z "$haveit"; then
21921 rpathdirs="$rpathdirs $dir"
21923 haveit=
21924 for x in $ltrpathdirs; do
21925 if test "X$x" = "X$dir"; then
21926 haveit=yes
21927 break
21929 done
21930 if test -z "$haveit"; then
21931 ltrpathdirs="$ltrpathdirs $dir"
21935 -l*)
21936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21938 *.la)
21939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21942 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21945 esac
21946 done
21948 else
21949 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21954 done
21955 done
21956 if test "X$rpathdirs" != "X"; then
21957 if test -n "$hardcode_libdir_separator"; then
21958 alldirs=
21959 for found_dir in $rpathdirs; do
21960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21961 done
21962 acl_save_libdir="$libdir"
21963 libdir="$alldirs"
21964 eval flag=\"$hardcode_libdir_flag_spec\"
21965 libdir="$acl_save_libdir"
21966 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21967 else
21968 for found_dir in $rpathdirs; do
21969 acl_save_libdir="$libdir"
21970 libdir="$found_dir"
21971 eval flag=\"$hardcode_libdir_flag_spec\"
21972 libdir="$acl_save_libdir"
21973 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21974 done
21977 if test "X$ltrpathdirs" != "X"; then
21978 for found_dir in $ltrpathdirs; do
21979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21980 done
21989 am_save_CPPFLAGS="$CPPFLAGS"
21991 for element in $INCICONV; do
21992 haveit=
21993 for x in $CPPFLAGS; do
21995 acl_save_prefix="$prefix"
21996 prefix="$acl_final_prefix"
21997 acl_save_exec_prefix="$exec_prefix"
21998 exec_prefix="$acl_final_exec_prefix"
21999 eval x=\"$x\"
22000 exec_prefix="$acl_save_exec_prefix"
22001 prefix="$acl_save_prefix"
22003 if test "X$x" = "X$element"; then
22004 haveit=yes
22005 break
22007 done
22008 if test -z "$haveit"; then
22009 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22011 done
22014 echo "$as_me:$LINENO: checking for iconv" >&5
22015 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22016 if test "${am_cv_func_iconv+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22020 am_cv_func_iconv="no, consider installing GNU libiconv"
22021 am_cv_lib_iconv=no
22022 if test x$gcc_no_link = xyes; then
22023 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22024 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22025 { (exit 1); exit 1; }; }
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 #include <stdlib.h>
22034 #include <iconv.h>
22036 main ()
22038 iconv_t cd = iconv_open("","");
22039 iconv(cd,NULL,NULL,NULL,NULL);
22040 iconv_close(cd);
22042 return 0;
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047 (eval $ac_link) 2>conftest.er1
22048 ac_status=$?
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -z "$ac_c_werror_flag"
22055 || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest$ac_exeext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 am_cv_func_iconv=yes
22068 else
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22073 rm -f conftest.err conftest.$ac_objext \
22074 conftest$ac_exeext conftest.$ac_ext
22075 if test "$am_cv_func_iconv" != yes; then
22076 am_save_LIBS="$LIBS"
22077 LIBS="$LIBS $LIBICONV"
22078 if test x$gcc_no_link = xyes; then
22079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22081 { (exit 1); exit 1; }; }
22083 cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h. */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 #include <stdlib.h>
22090 #include <iconv.h>
22092 main ()
22094 iconv_t cd = iconv_open("","");
22095 iconv(cd,NULL,NULL,NULL,NULL);
22096 iconv_close(cd);
22098 return 0;
22100 _ACEOF
22101 rm -f conftest.$ac_objext conftest$ac_exeext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103 (eval $ac_link) 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_c_werror_flag"
22111 || test ! -s conftest.err'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest$ac_exeext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 am_cv_lib_iconv=yes
22124 am_cv_func_iconv=yes
22125 else
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22130 rm -f conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
22132 LIBS="$am_save_LIBS"
22136 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22137 echo "${ECHO_T}$am_cv_func_iconv" >&6
22138 if test "$am_cv_func_iconv" = yes; then
22140 cat >>confdefs.h <<\_ACEOF
22141 #define HAVE_ICONV 1
22142 _ACEOF
22145 if test "$am_cv_lib_iconv" = yes; then
22146 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22147 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22148 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22149 echo "${ECHO_T}$LIBICONV" >&6
22150 else
22151 CPPFLAGS="$am_save_CPPFLAGS"
22152 LIBICONV=
22153 LTLIBICONV=
22158 if test "$am_cv_func_iconv" = yes; then
22159 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22160 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22161 if test "${am_cv_proto_iconv+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 #include <stdlib.h>
22173 #include <iconv.h>
22174 extern
22175 #ifdef __cplusplus
22177 #endif
22178 #if defined(__STDC__) || defined(__cplusplus)
22179 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22180 #else
22181 size_t iconv();
22182 #endif
22185 main ()
22189 return 0;
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194 (eval $ac_compile) 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
22201 { ac_try='test -z "$ac_c_werror_flag"
22202 || test ! -s conftest.err'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest.$ac_objext'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 am_cv_proto_iconv_arg1=""
22215 else
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 am_cv_proto_iconv_arg1="const"
22221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22222 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);"
22225 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22226 echo "$as_me:$LINENO: result: ${ac_t:-
22227 }$am_cv_proto_iconv" >&5
22228 echo "${ECHO_T}${ac_t:-
22229 }$am_cv_proto_iconv" >&6
22231 cat >>confdefs.h <<_ACEOF
22232 #define ICONV_CONST $am_cv_proto_iconv_arg1
22233 _ACEOF
22238 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22239 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22240 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 if test x$gcc_no_link = xyes; then
22244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22246 { (exit 1); exit 1; }; }
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 #include <locale.h>
22256 main ()
22258 return LC_MESSAGES
22260 return 0;
22262 _ACEOF
22263 rm -f conftest.$ac_objext conftest$ac_exeext
22264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22265 (eval $ac_link) 2>conftest.er1
22266 ac_status=$?
22267 grep -v '^ *+' conftest.er1 >conftest.err
22268 rm -f conftest.er1
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try='test -z "$ac_c_werror_flag"
22273 || test ! -s conftest.err'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; } &&
22279 { ac_try='test -s conftest$ac_exeext'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 am_cv_val_LC_MESSAGES=yes
22286 else
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 am_cv_val_LC_MESSAGES=no
22292 rm -f conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext conftest.$ac_ext
22295 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22296 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22297 if test $am_cv_val_LC_MESSAGES = yes; then
22299 cat >>confdefs.h <<\_ACEOF
22300 #define HAVE_LC_MESSAGES 1
22301 _ACEOF
22305 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22306 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22307 if test "${ac_cv_struct_tm+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h. */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 #include <sys/types.h>
22317 #include <time.h>
22320 main ()
22322 struct tm *tp; tp->tm_sec;
22324 return 0;
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>conftest.er1
22330 ac_status=$?
22331 grep -v '^ *+' conftest.er1 >conftest.err
22332 rm -f conftest.er1
22333 cat conftest.err >&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try='test -z "$ac_c_werror_flag"
22337 || test ! -s conftest.err'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest.$ac_objext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_struct_tm=time.h
22350 else
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ac_cv_struct_tm=sys/time.h
22356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22358 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22359 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22360 if test $ac_cv_struct_tm = sys/time.h; then
22362 cat >>confdefs.h <<\_ACEOF
22363 #define TM_IN_SYS_TIME 1
22364 _ACEOF
22368 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22369 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22370 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h. */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 #include <sys/types.h>
22380 #include <$ac_cv_struct_tm>
22384 main ()
22386 static struct tm ac_aggr;
22387 if (ac_aggr.tm_zone)
22388 return 0;
22390 return 0;
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22395 (eval $ac_compile) 2>conftest.er1
22396 ac_status=$?
22397 grep -v '^ *+' conftest.er1 >conftest.err
22398 rm -f conftest.er1
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } &&
22402 { ac_try='test -z "$ac_c_werror_flag"
22403 || test ! -s conftest.err'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; } &&
22409 { ac_try='test -s conftest.$ac_objext'
22410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411 (eval $ac_try) 2>&5
22412 ac_status=$?
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; }; then
22415 ac_cv_member_struct_tm_tm_zone=yes
22416 else
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <sys/types.h>
22427 #include <$ac_cv_struct_tm>
22431 main ()
22433 static struct tm ac_aggr;
22434 if (sizeof ac_aggr.tm_zone)
22435 return 0;
22437 return 0;
22439 _ACEOF
22440 rm -f conftest.$ac_objext
22441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22442 (eval $ac_compile) 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } &&
22449 { ac_try='test -z "$ac_c_werror_flag"
22450 || test ! -s conftest.err'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try='test -s conftest.$ac_objext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_member_struct_tm_tm_zone=yes
22463 else
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ac_cv_member_struct_tm_tm_zone=no
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22474 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22475 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_STRUCT_TM_TM_ZONE 1
22479 _ACEOF
22484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22486 cat >>confdefs.h <<\_ACEOF
22487 #define HAVE_TM_ZONE 1
22488 _ACEOF
22490 else
22491 echo "$as_me:$LINENO: checking for tzname" >&5
22492 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22493 if test "${ac_cv_var_tzname+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496 if test x$gcc_no_link = xyes; then
22497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22499 { (exit 1); exit 1; }; }
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 #include <time.h>
22508 #ifndef tzname /* For SGI. */
22509 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22510 #endif
22513 main ()
22515 atoi(*tzname);
22517 return 0;
22519 _ACEOF
22520 rm -f conftest.$ac_objext conftest$ac_exeext
22521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>conftest.er1
22523 ac_status=$?
22524 grep -v '^ *+' conftest.er1 >conftest.err
22525 rm -f conftest.er1
22526 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } &&
22529 { ac_try='test -z "$ac_c_werror_flag"
22530 || test ! -s conftest.err'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest$ac_exeext'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542 ac_cv_var_tzname=yes
22543 else
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_cv_var_tzname=no
22549 rm -f conftest.err conftest.$ac_objext \
22550 conftest$ac_exeext conftest.$ac_ext
22552 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22553 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22554 if test $ac_cv_var_tzname = yes; then
22556 cat >>confdefs.h <<\_ACEOF
22557 #define HAVE_TZNAME 1
22558 _ACEOF
22565 for ac_func in gethostbyname_r
22567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22568 echo "$as_me:$LINENO: checking for $ac_func" >&5
22569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22570 if eval "test \"\${$as_ac_var+set}\" = set"; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573 if test x$gcc_no_link = xyes; then
22574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22576 { (exit 1); exit 1; }; }
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22586 #define $ac_func innocuous_$ac_func
22588 /* System header to define __stub macros and hopefully few prototypes,
22589 which can conflict with char $ac_func (); below.
22590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22591 <limits.h> exists even on freestanding compilers. */
22593 #ifdef __STDC__
22594 # include <limits.h>
22595 #else
22596 # include <assert.h>
22597 #endif
22599 #undef $ac_func
22601 /* Override any gcc2 internal prototype to avoid an error. */
22602 #ifdef __cplusplus
22603 extern "C"
22605 #endif
22606 /* We use char because int might match the return type of a gcc2
22607 builtin and then its argument prototype would still apply. */
22608 char $ac_func ();
22609 /* The GNU C library defines this for functions which it implements
22610 to always fail with ENOSYS. Some functions are actually named
22611 something starting with __ and the normal name is an alias. */
22612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22613 choke me
22614 #else
22615 char (*f) () = $ac_func;
22616 #endif
22617 #ifdef __cplusplus
22619 #endif
22622 main ()
22624 return f != $ac_func;
22626 return 0;
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631 (eval $ac_link) 2>conftest.er1
22632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try='test -z "$ac_c_werror_flag"
22639 || test ! -s conftest.err'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; } &&
22645 { ac_try='test -s conftest$ac_exeext'
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 eval "$as_ac_var=yes"
22652 else
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 eval "$as_ac_var=no"
22658 rm -f conftest.err conftest.$ac_objext \
22659 conftest$ac_exeext conftest.$ac_ext
22661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22663 if test `eval echo '${'$as_ac_var'}'` = yes; then
22664 cat >>confdefs.h <<_ACEOF
22665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22666 _ACEOF
22669 cat >>confdefs.h <<\_ACEOF
22670 #define HAVE_GETHOSTBYNAME_R 1
22671 _ACEOF
22673 # There are two different kinds of gethostbyname_r.
22674 # We look for the one that returns `int'.
22675 # Hopefully this check is robust enough.
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 #include <netdb.h>
22684 _ACEOF
22685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22686 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22689 cat >>confdefs.h <<\_ACEOF
22690 #define GETHOSTBYNAME_R_RETURNS_INT 1
22691 _ACEOF
22694 rm -f conftest*
22697 case " $GCINCS " in
22698 *" -D_REENTRANT "*) ;;
22700 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22701 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22702 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705 ac_ext=cc
22706 ac_cpp='$CXXCPP $CPPFLAGS'
22707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #include <netdb.h>
22719 main ()
22721 gethostbyname_r("", 0, 0);
22723 return 0;
22725 _ACEOF
22726 rm -f conftest.$ac_objext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728 (eval $ac_compile) 2>conftest.er1
22729 ac_status=$?
22730 grep -v '^ *+' conftest.er1 >conftest.err
22731 rm -f conftest.er1
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } &&
22735 { ac_try='test -z "$ac_cxx_werror_flag"
22736 || test ! -s conftest.err'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; } &&
22742 { ac_try='test -s conftest.$ac_objext'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; }; then
22748 libjava_cv_gethostbyname_r_needs_reentrant=no
22749 else
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 CPPFLAGS_SAVE="$CPPFLAGS"
22754 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22755 cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h. */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 #include <netdb.h>
22763 main ()
22765 gethostbyname_r("", 0, 0);
22767 return 0;
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22772 (eval $ac_compile) 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } &&
22779 { ac_try='test -z "$ac_cxx_werror_flag"
22780 || test ! -s conftest.err'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest.$ac_objext'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 libjava_cv_gethostbyname_r_needs_reentrant=yes
22793 else
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 libjava_cv_gethostbyname_r_needs_reentrant=fail
22799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22800 CPPFLAGS="$CPPFLAGS_SAVE"
22803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22804 ac_ext=c
22805 ac_cpp='$CPP $CPPFLAGS'
22806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22812 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22813 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22814 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22816 cat >>confdefs.h <<\_ACEOF
22817 #define _REENTRANT 1
22818 _ACEOF
22822 esac
22824 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22825 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22826 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829 cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h. */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22836 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22837 # define _REENTRANT 1
22838 #endif
22839 #include <netdb.h>
22841 main ()
22843 struct hostent_data data;
22845 return 0;
22847 _ACEOF
22848 rm -f conftest.$ac_objext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22850 (eval $ac_compile) 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } &&
22857 { ac_try='test -z "$ac_c_werror_flag"
22858 || test ! -s conftest.err'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; } &&
22864 { ac_try='test -s conftest.$ac_objext'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; }; then
22870 libjava_cv_struct_hostent_data=yes
22871 else
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 libjava_cv_struct_hostent_data=no
22877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22879 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22880 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22881 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_STRUCT_HOSTENT_DATA 1
22885 _ACEOF
22890 done
22893 # FIXME: libjava source code expects to find a prototype for
22894 # gethostbyaddr_r in netdb.h. The outer check ensures that
22895 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22896 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22897 # linkage check is enough, yet C++ code requires proper prototypes.)
22898 cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h. */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 #include <netdb.h>
22906 _ACEOF
22907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22908 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22911 for ac_func in gethostbyaddr_r
22913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22914 echo "$as_me:$LINENO: checking for $ac_func" >&5
22915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22916 if eval "test \"\${$as_ac_var+set}\" = set"; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919 if test x$gcc_no_link = xyes; then
22920 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22922 { (exit 1); exit 1; }; }
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22932 #define $ac_func innocuous_$ac_func
22934 /* System header to define __stub macros and hopefully few prototypes,
22935 which can conflict with char $ac_func (); below.
22936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22937 <limits.h> exists even on freestanding compilers. */
22939 #ifdef __STDC__
22940 # include <limits.h>
22941 #else
22942 # include <assert.h>
22943 #endif
22945 #undef $ac_func
22947 /* Override any gcc2 internal prototype to avoid an error. */
22948 #ifdef __cplusplus
22949 extern "C"
22951 #endif
22952 /* We use char because int might match the return type of a gcc2
22953 builtin and then its argument prototype would still apply. */
22954 char $ac_func ();
22955 /* The GNU C library defines this for functions which it implements
22956 to always fail with ENOSYS. Some functions are actually named
22957 something starting with __ and the normal name is an alias. */
22958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22959 choke me
22960 #else
22961 char (*f) () = $ac_func;
22962 #endif
22963 #ifdef __cplusplus
22965 #endif
22968 main ()
22970 return f != $ac_func;
22972 return 0;
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977 (eval $ac_link) 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -z "$ac_c_werror_flag"
22985 || test ! -s conftest.err'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest$ac_exeext'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; }; then
22997 eval "$as_ac_var=yes"
22998 else
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 eval "$as_ac_var=no"
23004 rm -f conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23009 if test `eval echo '${'$as_ac_var'}'` = yes; then
23010 cat >>confdefs.h <<_ACEOF
23011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23012 _ACEOF
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_GETHOSTBYADDR_R 1
23017 _ACEOF
23019 # There are two different kinds of gethostbyaddr_r.
23020 # We look for the one that returns `int'.
23021 # Hopefully this check is robust enough.
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 #include <netdb.h>
23030 _ACEOF
23031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23032 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define GETHOSTBYADDR_R_RETURNS_INT 1
23037 _ACEOF
23040 rm -f conftest*
23043 done
23046 rm -f conftest*
23050 for ac_func in gethostname
23052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23053 echo "$as_me:$LINENO: checking for $ac_func" >&5
23054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23055 if eval "test \"\${$as_ac_var+set}\" = set"; then
23056 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 else
23058 if test x$gcc_no_link = xyes; then
23059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23061 { (exit 1); exit 1; }; }
23063 cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h. */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23071 #define $ac_func innocuous_$ac_func
23073 /* System header to define __stub macros and hopefully few prototypes,
23074 which can conflict with char $ac_func (); below.
23075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23076 <limits.h> exists even on freestanding compilers. */
23078 #ifdef __STDC__
23079 # include <limits.h>
23080 #else
23081 # include <assert.h>
23082 #endif
23084 #undef $ac_func
23086 /* Override any gcc2 internal prototype to avoid an error. */
23087 #ifdef __cplusplus
23088 extern "C"
23090 #endif
23091 /* We use char because int might match the return type of a gcc2
23092 builtin and then its argument prototype would still apply. */
23093 char $ac_func ();
23094 /* The GNU C library defines this for functions which it implements
23095 to always fail with ENOSYS. Some functions are actually named
23096 something starting with __ and the normal name is an alias. */
23097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23098 choke me
23099 #else
23100 char (*f) () = $ac_func;
23101 #endif
23102 #ifdef __cplusplus
23104 #endif
23107 main ()
23109 return f != $ac_func;
23111 return 0;
23113 _ACEOF
23114 rm -f conftest.$ac_objext conftest$ac_exeext
23115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23116 (eval $ac_link) 2>conftest.er1
23117 ac_status=$?
23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
23123 { ac_try='test -z "$ac_c_werror_flag"
23124 || test ! -s conftest.err'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; } &&
23130 { ac_try='test -s conftest$ac_exeext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 eval "$as_ac_var=yes"
23137 else
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 eval "$as_ac_var=no"
23143 rm -f conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
23146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23148 if test `eval echo '${'$as_ac_var'}'` = yes; then
23149 cat >>confdefs.h <<_ACEOF
23150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23151 _ACEOF
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_GETHOSTNAME 1
23156 _ACEOF
23158 cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h. */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 #include <unistd.h>
23166 _ACEOF
23167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23168 $EGREP "gethostname" >/dev/null 2>&1; then
23171 cat >>confdefs.h <<\_ACEOF
23172 #define HAVE_GETHOSTNAME_DECL 1
23173 _ACEOF
23176 rm -f conftest*
23179 done
23183 for ac_func in usleep
23185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23186 echo "$as_me:$LINENO: checking for $ac_func" >&5
23187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23188 if eval "test \"\${$as_ac_var+set}\" = set"; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191 if test x$gcc_no_link = xyes; then
23192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23194 { (exit 1); exit 1; }; }
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h. */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23204 #define $ac_func innocuous_$ac_func
23206 /* System header to define __stub macros and hopefully few prototypes,
23207 which can conflict with char $ac_func (); below.
23208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209 <limits.h> exists even on freestanding compilers. */
23211 #ifdef __STDC__
23212 # include <limits.h>
23213 #else
23214 # include <assert.h>
23215 #endif
23217 #undef $ac_func
23219 /* Override any gcc2 internal prototype to avoid an error. */
23220 #ifdef __cplusplus
23221 extern "C"
23223 #endif
23224 /* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23226 char $ac_func ();
23227 /* The GNU C library defines this for functions which it implements
23228 to always fail with ENOSYS. Some functions are actually named
23229 something starting with __ and the normal name is an alias. */
23230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23231 choke me
23232 #else
23233 char (*f) () = $ac_func;
23234 #endif
23235 #ifdef __cplusplus
23237 #endif
23240 main ()
23242 return f != $ac_func;
23244 return 0;
23246 _ACEOF
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>conftest.er1
23250 ac_status=$?
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
23256 { ac_try='test -z "$ac_c_werror_flag"
23257 || test ! -s conftest.err'
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest$ac_exeext'
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 eval "$as_ac_var=yes"
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 eval "$as_ac_var=no"
23276 rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23281 if test `eval echo '${'$as_ac_var'}'` = yes; then
23282 cat >>confdefs.h <<_ACEOF
23283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23284 _ACEOF
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h. */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 #include <unistd.h>
23294 _ACEOF
23295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23296 $EGREP "usleep" >/dev/null 2>&1; then
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_USLEEP_DECL 1
23301 _ACEOF
23304 rm -f conftest*
23307 done
23310 # Look for these functions in the thread library, but only bother
23311 # if using POSIX threads.
23312 if test "$THREADS" = posix; then
23313 save_LIBS="$LIBS"
23314 LIBS="$LIBS $THREADLIBS"
23316 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23317 # Solaris 7 the name librt is preferred.
23319 for ac_func in sched_yield
23321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23322 echo "$as_me:$LINENO: checking for $ac_func" >&5
23323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23324 if eval "test \"\${$as_ac_var+set}\" = set"; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327 if test x$gcc_no_link = xyes; then
23328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23330 { (exit 1); exit 1; }; }
23332 cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h. */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h. */
23338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23340 #define $ac_func innocuous_$ac_func
23342 /* System header to define __stub macros and hopefully few prototypes,
23343 which can conflict with char $ac_func (); below.
23344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23345 <limits.h> exists even on freestanding compilers. */
23347 #ifdef __STDC__
23348 # include <limits.h>
23349 #else
23350 # include <assert.h>
23351 #endif
23353 #undef $ac_func
23355 /* Override any gcc2 internal prototype to avoid an error. */
23356 #ifdef __cplusplus
23357 extern "C"
23359 #endif
23360 /* We use char because int might match the return type of a gcc2
23361 builtin and then its argument prototype would still apply. */
23362 char $ac_func ();
23363 /* The GNU C library defines this for functions which it implements
23364 to always fail with ENOSYS. Some functions are actually named
23365 something starting with __ and the normal name is an alias. */
23366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23367 choke me
23368 #else
23369 char (*f) () = $ac_func;
23370 #endif
23371 #ifdef __cplusplus
23373 #endif
23376 main ()
23378 return f != $ac_func;
23380 return 0;
23382 _ACEOF
23383 rm -f conftest.$ac_objext conftest$ac_exeext
23384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23385 (eval $ac_link) 2>conftest.er1
23386 ac_status=$?
23387 grep -v '^ *+' conftest.er1 >conftest.err
23388 rm -f conftest.er1
23389 cat conftest.err >&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } &&
23392 { ac_try='test -z "$ac_c_werror_flag"
23393 || test ! -s conftest.err'
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest$ac_exeext'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 eval "$as_ac_var=yes"
23406 else
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 eval "$as_ac_var=no"
23412 rm -f conftest.err conftest.$ac_objext \
23413 conftest$ac_exeext conftest.$ac_ext
23415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23417 if test `eval echo '${'$as_ac_var'}'` = yes; then
23418 cat >>confdefs.h <<_ACEOF
23419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23420 _ACEOF
23422 else
23424 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23425 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23426 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23427 echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429 ac_check_lib_save_LIBS=$LIBS
23430 LIBS="-lrt $LIBS"
23431 if test x$gcc_no_link = xyes; then
23432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23434 { (exit 1); exit 1; }; }
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23443 /* Override any gcc2 internal prototype to avoid an error. */
23444 #ifdef __cplusplus
23445 extern "C"
23446 #endif
23447 /* We use char because int might match the return type of a gcc2
23448 builtin and then its argument prototype would still apply. */
23449 char sched_yield ();
23451 main ()
23453 sched_yield ();
23455 return 0;
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>conftest.er1
23461 ac_status=$?
23462 grep -v '^ *+' conftest.er1 >conftest.err
23463 rm -f conftest.er1
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -z "$ac_c_werror_flag"
23468 || test ! -s conftest.err'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; } &&
23474 { ac_try='test -s conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 ac_cv_lib_rt_sched_yield=yes
23481 else
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_cv_lib_rt_sched_yield=no
23487 rm -f conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
23489 LIBS=$ac_check_lib_save_LIBS
23491 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23492 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23493 if test $ac_cv_lib_rt_sched_yield = yes; then
23495 cat >>confdefs.h <<\_ACEOF
23496 #define HAVE_SCHED_YIELD 1
23497 _ACEOF
23499 THREADLIBS="$THREADLIBS -lrt"
23500 THREADSPEC="$THREADSPEC -lrt"
23501 else
23503 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23504 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23505 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508 ac_check_lib_save_LIBS=$LIBS
23509 LIBS="-lposix4 $LIBS"
23510 if test x$gcc_no_link = xyes; then
23511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23513 { (exit 1); exit 1; }; }
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23522 /* Override any gcc2 internal prototype to avoid an error. */
23523 #ifdef __cplusplus
23524 extern "C"
23525 #endif
23526 /* We use char because int might match the return type of a gcc2
23527 builtin and then its argument prototype would still apply. */
23528 char sched_yield ();
23530 main ()
23532 sched_yield ();
23534 return 0;
23536 _ACEOF
23537 rm -f conftest.$ac_objext conftest$ac_exeext
23538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23539 (eval $ac_link) 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } &&
23546 { ac_try='test -z "$ac_c_werror_flag"
23547 || test ! -s conftest.err'
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; } &&
23553 { ac_try='test -s conftest$ac_exeext'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; }; then
23559 ac_cv_lib_posix4_sched_yield=yes
23560 else
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_cv_lib_posix4_sched_yield=no
23566 rm -f conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext conftest.$ac_ext
23568 LIBS=$ac_check_lib_save_LIBS
23570 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23571 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23572 if test $ac_cv_lib_posix4_sched_yield = yes; then
23574 cat >>confdefs.h <<\_ACEOF
23575 #define HAVE_SCHED_YIELD 1
23576 _ACEOF
23578 THREADLIBS="$THREADLIBS -lposix4"
23579 THREADSPEC="$THREADSPEC -lposix4"
23585 done
23588 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23589 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23590 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23591 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 else
23593 ac_check_lib_save_LIBS=$LIBS
23594 LIBS="-lrt $LIBS"
23595 if test x$gcc_no_link = xyes; then
23596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23598 { (exit 1); exit 1; }; }
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h. */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23607 /* Override any gcc2 internal prototype to avoid an error. */
23608 #ifdef __cplusplus
23609 extern "C"
23610 #endif
23611 /* We use char because int might match the return type of a gcc2
23612 builtin and then its argument prototype would still apply. */
23613 char clock_gettime ();
23615 main ()
23617 clock_gettime ();
23619 return 0;
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624 (eval $ac_link) 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } &&
23631 { ac_try='test -z "$ac_c_werror_flag"
23632 || test ! -s conftest.err'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; } &&
23638 { ac_try='test -s conftest$ac_exeext'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 ac_cv_lib_rt_clock_gettime=yes
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 ac_cv_lib_rt_clock_gettime=no
23651 rm -f conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23653 LIBS=$ac_check_lib_save_LIBS
23655 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23656 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23657 if test $ac_cv_lib_rt_clock_gettime = yes; then
23660 cat >>confdefs.h <<\_ACEOF
23661 #define HAVE_CLOCK_GETTIME 1
23662 _ACEOF
23664 case "$THREADSPEC" in
23665 *-lrt*) ;;
23667 THREADSPEC="$THREADSPEC -lrt"
23668 THREADLIBS="$THREADLIBS -lrt"
23670 esac
23674 LIBS="$save_LIBS"
23676 # We can save a little space at runtime if the mutex has m_count
23677 # or __m_count. This is a nice hack for Linux.
23678 cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h. */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 #include <pthread.h>
23686 main ()
23689 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23692 return 0;
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23697 (eval $ac_compile) 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } &&
23704 { ac_try='test -z "$ac_c_werror_flag"
23705 || test ! -s conftest.err'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; } &&
23711 { ac_try='test -s conftest.$ac_objext'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; }; then
23718 cat >>confdefs.h <<\_ACEOF
23719 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23720 _ACEOF
23722 else
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23727 cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h. */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <pthread.h>
23735 main ()
23738 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23741 return 0;
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23746 (eval $ac_compile) 2>conftest.er1
23747 ac_status=$?
23748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
23753 { ac_try='test -z "$ac_c_werror_flag"
23754 || test ! -s conftest.err'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23769 _ACEOF
23771 else
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23781 # We require a way to get the time.
23782 time_found=no
23786 for ac_func in gettimeofday time ftime
23788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23789 echo "$as_me:$LINENO: checking for $ac_func" >&5
23790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23791 if eval "test \"\${$as_ac_var+set}\" = set"; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794 if test x$gcc_no_link = xyes; then
23795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23797 { (exit 1); exit 1; }; }
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23807 #define $ac_func innocuous_$ac_func
23809 /* System header to define __stub macros and hopefully few prototypes,
23810 which can conflict with char $ac_func (); below.
23811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23812 <limits.h> exists even on freestanding compilers. */
23814 #ifdef __STDC__
23815 # include <limits.h>
23816 #else
23817 # include <assert.h>
23818 #endif
23820 #undef $ac_func
23822 /* Override any gcc2 internal prototype to avoid an error. */
23823 #ifdef __cplusplus
23824 extern "C"
23826 #endif
23827 /* We use char because int might match the return type of a gcc2
23828 builtin and then its argument prototype would still apply. */
23829 char $ac_func ();
23830 /* The GNU C library defines this for functions which it implements
23831 to always fail with ENOSYS. Some functions are actually named
23832 something starting with __ and the normal name is an alias. */
23833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23834 choke me
23835 #else
23836 char (*f) () = $ac_func;
23837 #endif
23838 #ifdef __cplusplus
23840 #endif
23843 main ()
23845 return f != $ac_func;
23847 return 0;
23849 _ACEOF
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852 (eval $ac_link) 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag"
23860 || test ! -s conftest.err'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest$ac_exeext'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 eval "$as_ac_var=yes"
23873 else
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 eval "$as_ac_var=no"
23879 rm -f conftest.err conftest.$ac_objext \
23880 conftest$ac_exeext conftest.$ac_ext
23882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23884 if test `eval echo '${'$as_ac_var'}'` = yes; then
23885 cat >>confdefs.h <<_ACEOF
23886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23887 _ACEOF
23888 time_found=yes
23890 done
23892 if test "$time_found" = no; then
23893 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23894 echo "$as_me: error: no function found to get the time" >&2;}
23895 { (exit 1); exit 1; }; }
23899 for ac_func in memmove
23901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23902 echo "$as_me:$LINENO: checking for $ac_func" >&5
23903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23904 if eval "test \"\${$as_ac_var+set}\" = set"; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 else
23907 if test x$gcc_no_link = xyes; then
23908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23910 { (exit 1); exit 1; }; }
23912 cat >conftest.$ac_ext <<_ACEOF
23913 /* confdefs.h. */
23914 _ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23920 #define $ac_func innocuous_$ac_func
23922 /* System header to define __stub macros and hopefully few prototypes,
23923 which can conflict with char $ac_func (); below.
23924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23925 <limits.h> exists even on freestanding compilers. */
23927 #ifdef __STDC__
23928 # include <limits.h>
23929 #else
23930 # include <assert.h>
23931 #endif
23933 #undef $ac_func
23935 /* Override any gcc2 internal prototype to avoid an error. */
23936 #ifdef __cplusplus
23937 extern "C"
23939 #endif
23940 /* We use char because int might match the return type of a gcc2
23941 builtin and then its argument prototype would still apply. */
23942 char $ac_func ();
23943 /* The GNU C library defines this for functions which it implements
23944 to always fail with ENOSYS. Some functions are actually named
23945 something starting with __ and the normal name is an alias. */
23946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23947 choke me
23948 #else
23949 char (*f) () = $ac_func;
23950 #endif
23951 #ifdef __cplusplus
23953 #endif
23956 main ()
23958 return f != $ac_func;
23960 return 0;
23962 _ACEOF
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23965 (eval $ac_link) 2>conftest.er1
23966 ac_status=$?
23967 grep -v '^ *+' conftest.er1 >conftest.err
23968 rm -f conftest.er1
23969 cat conftest.err >&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } &&
23972 { ac_try='test -z "$ac_c_werror_flag"
23973 || test ! -s conftest.err'
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; } &&
23979 { ac_try='test -s conftest$ac_exeext'
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 eval "$as_ac_var=yes"
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 eval "$as_ac_var=no"
23992 rm -f conftest.err conftest.$ac_objext \
23993 conftest$ac_exeext conftest.$ac_ext
23995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23997 if test `eval echo '${'$as_ac_var'}'` = yes; then
23998 cat >>confdefs.h <<_ACEOF
23999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24000 _ACEOF
24003 done
24006 # We require memcpy.
24007 memcpy_found=no
24009 for ac_func in memcpy
24011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24012 echo "$as_me:$LINENO: checking for $ac_func" >&5
24013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24014 if eval "test \"\${$as_ac_var+set}\" = set"; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017 if test x$gcc_no_link = xyes; then
24018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24020 { (exit 1); exit 1; }; }
24022 cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h. */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h. */
24028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24030 #define $ac_func innocuous_$ac_func
24032 /* System header to define __stub macros and hopefully few prototypes,
24033 which can conflict with char $ac_func (); below.
24034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24035 <limits.h> exists even on freestanding compilers. */
24037 #ifdef __STDC__
24038 # include <limits.h>
24039 #else
24040 # include <assert.h>
24041 #endif
24043 #undef $ac_func
24045 /* Override any gcc2 internal prototype to avoid an error. */
24046 #ifdef __cplusplus
24047 extern "C"
24049 #endif
24050 /* We use char because int might match the return type of a gcc2
24051 builtin and then its argument prototype would still apply. */
24052 char $ac_func ();
24053 /* The GNU C library defines this for functions which it implements
24054 to always fail with ENOSYS. Some functions are actually named
24055 something starting with __ and the normal name is an alias. */
24056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24057 choke me
24058 #else
24059 char (*f) () = $ac_func;
24060 #endif
24061 #ifdef __cplusplus
24063 #endif
24066 main ()
24068 return f != $ac_func;
24070 return 0;
24072 _ACEOF
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075 (eval $ac_link) 2>conftest.er1
24076 ac_status=$?
24077 grep -v '^ *+' conftest.er1 >conftest.err
24078 rm -f conftest.er1
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
24082 { ac_try='test -z "$ac_c_werror_flag"
24083 || test ! -s conftest.err'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; } &&
24089 { ac_try='test -s conftest$ac_exeext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24092 ac_status=$?
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 eval "$as_ac_var=yes"
24096 else
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 eval "$as_ac_var=no"
24102 rm -f conftest.err conftest.$ac_objext \
24103 conftest$ac_exeext conftest.$ac_ext
24105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24107 if test `eval echo '${'$as_ac_var'}'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110 _ACEOF
24111 memcpy_found=yes
24113 done
24115 if test "$memcpy_found" = no; then
24116 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24117 echo "$as_me: error: memcpy is required" >&2;}
24118 { (exit 1); exit 1; }; }
24120 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24121 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24122 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24123 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126 ac_check_lib_save_LIBS=$LIBS
24127 LIBS="-ldl $LIBS"
24128 if test x$gcc_no_link = xyes; then
24129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24131 { (exit 1); exit 1; }; }
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h. */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24140 /* Override any gcc2 internal prototype to avoid an error. */
24141 #ifdef __cplusplus
24142 extern "C"
24143 #endif
24144 /* We use char because int might match the return type of a gcc2
24145 builtin and then its argument prototype would still apply. */
24146 char dlopen ();
24148 main ()
24150 dlopen ();
24152 return 0;
24154 _ACEOF
24155 rm -f conftest.$ac_objext conftest$ac_exeext
24156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24157 (eval $ac_link) 2>conftest.er1
24158 ac_status=$?
24159 grep -v '^ *+' conftest.er1 >conftest.err
24160 rm -f conftest.er1
24161 cat conftest.err >&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } &&
24164 { ac_try='test -z "$ac_c_werror_flag"
24165 || test ! -s conftest.err'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; } &&
24171 { ac_try='test -s conftest$ac_exeext'
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; }; then
24177 ac_cv_lib_dl_dlopen=yes
24178 else
24179 echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24182 ac_cv_lib_dl_dlopen=no
24184 rm -f conftest.err conftest.$ac_objext \
24185 conftest$ac_exeext conftest.$ac_ext
24186 LIBS=$ac_check_lib_save_LIBS
24188 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24189 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24190 if test $ac_cv_lib_dl_dlopen = yes; then
24193 cat >>confdefs.h <<\_ACEOF
24194 #define HAVE_DLOPEN 1
24195 _ACEOF
24197 else
24199 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24200 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24201 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24203 else
24204 ac_check_lib_save_LIBS=$LIBS
24205 LIBS="-ldld $LIBS"
24206 if test x$gcc_no_link = xyes; then
24207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24209 { (exit 1); exit 1; }; }
24211 cat >conftest.$ac_ext <<_ACEOF
24212 /* confdefs.h. */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24218 /* Override any gcc2 internal prototype to avoid an error. */
24219 #ifdef __cplusplus
24220 extern "C"
24221 #endif
24222 /* We use char because int might match the return type of a gcc2
24223 builtin and then its argument prototype would still apply. */
24224 char dlopen ();
24226 main ()
24228 dlopen ();
24230 return 0;
24232 _ACEOF
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24235 (eval $ac_link) 2>conftest.er1
24236 ac_status=$?
24237 grep -v '^ *+' conftest.er1 >conftest.err
24238 rm -f conftest.er1
24239 cat conftest.err >&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } &&
24242 { ac_try='test -z "$ac_c_werror_flag"
24243 || test ! -s conftest.err'
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; } &&
24249 { ac_try='test -s conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 ac_cv_lib_dld_dlopen=yes
24256 else
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24260 ac_cv_lib_dld_dlopen=no
24262 rm -f conftest.err conftest.$ac_objext \
24263 conftest$ac_exeext conftest.$ac_ext
24264 LIBS=$ac_check_lib_save_LIBS
24266 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24267 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24268 if test $ac_cv_lib_dld_dlopen = yes; then
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_DLOPEN 1
24273 _ACEOF
24280 # Some library-finding code we stole from Tcl.
24281 #--------------------------------------------------------------------
24282 # Check for the existence of the -lsocket and -lnsl libraries.
24283 # The order here is important, so that they end up in the right
24284 # order in the command line generated by make. Here are some
24285 # special considerations:
24286 # 1. Use "connect" and "accept" to check for -lsocket, and
24287 # "gethostbyname" to check for -lnsl.
24288 # 2. Use each function name only once: can't redo a check because
24289 # autoconf caches the results of the last check and won't redo it.
24290 # 3. Use -lnsl and -lsocket only if they supply procedures that
24291 # aren't already present in the normal libraries. This is because
24292 # IRIX 5.2 has libraries, but they aren't needed and they're
24293 # bogus: they goof up name resolution if used.
24294 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24295 # To get around this problem, check for both libraries together
24296 # if -lsocket doesn't work by itself.
24297 #--------------------------------------------------------------------
24299 echo "$as_me:$LINENO: checking for socket libraries" >&5
24300 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24301 if test "${gcj_cv_lib_sockets+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304 gcj_cv_lib_sockets=
24305 gcj_checkBoth=0
24306 unset ac_cv_func_connect
24307 echo "$as_me:$LINENO: checking for connect" >&5
24308 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24309 if test "${ac_cv_func_connect+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 else
24312 if test x$gcc_no_link = xyes; then
24313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24315 { (exit 1); exit 1; }; }
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h. */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24323 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24325 #define connect innocuous_connect
24327 /* System header to define __stub macros and hopefully few prototypes,
24328 which can conflict with char connect (); below.
24329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24330 <limits.h> exists even on freestanding compilers. */
24332 #ifdef __STDC__
24333 # include <limits.h>
24334 #else
24335 # include <assert.h>
24336 #endif
24338 #undef connect
24340 /* Override any gcc2 internal prototype to avoid an error. */
24341 #ifdef __cplusplus
24342 extern "C"
24344 #endif
24345 /* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347 char connect ();
24348 /* The GNU C library defines this for functions which it implements
24349 to always fail with ENOSYS. Some functions are actually named
24350 something starting with __ and the normal name is an alias. */
24351 #if defined (__stub_connect) || defined (__stub___connect)
24352 choke me
24353 #else
24354 char (*f) () = connect;
24355 #endif
24356 #ifdef __cplusplus
24358 #endif
24361 main ()
24363 return f != connect;
24365 return 0;
24367 _ACEOF
24368 rm -f conftest.$ac_objext conftest$ac_exeext
24369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24370 (eval $ac_link) 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
24377 { ac_try='test -z "$ac_c_werror_flag"
24378 || test ! -s conftest.err'
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; } &&
24384 { ac_try='test -s conftest$ac_exeext'
24385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; }; then
24390 ac_cv_func_connect=yes
24391 else
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 ac_cv_func_connect=no
24397 rm -f conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
24400 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24401 echo "${ECHO_T}$ac_cv_func_connect" >&6
24402 if test $ac_cv_func_connect = yes; then
24403 gcj_checkSocket=0
24404 else
24405 gcj_checkSocket=1
24408 if test "$gcj_checkSocket" = 1; then
24409 unset ac_cv_func_connect
24410 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24411 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24412 if test "${ac_cv_lib_socket_main+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415 ac_check_lib_save_LIBS=$LIBS
24416 LIBS="-lsocket $LIBS"
24417 if test x$gcc_no_link = xyes; then
24418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24420 { (exit 1); exit 1; }; }
24422 cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h. */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24431 main ()
24433 main ();
24435 return 0;
24437 _ACEOF
24438 rm -f conftest.$ac_objext conftest$ac_exeext
24439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24440 (eval $ac_link) 2>conftest.er1
24441 ac_status=$?
24442 grep -v '^ *+' conftest.er1 >conftest.err
24443 rm -f conftest.er1
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } &&
24447 { ac_try='test -z "$ac_c_werror_flag"
24448 || test ! -s conftest.err'
24449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; } &&
24454 { ac_try='test -s conftest$ac_exeext'
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; }; then
24460 ac_cv_lib_socket_main=yes
24461 else
24462 echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24465 ac_cv_lib_socket_main=no
24467 rm -f conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
24469 LIBS=$ac_check_lib_save_LIBS
24471 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24472 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24473 if test $ac_cv_lib_socket_main = yes; then
24474 gcj_cv_lib_sockets="-lsocket"
24475 else
24476 gcj_checkBoth=1
24480 if test "$gcj_checkBoth" = 1; then
24481 gcj_oldLibs=$LIBS
24482 LIBS="$LIBS -lsocket -lnsl"
24483 unset ac_cv_func_accept
24484 echo "$as_me:$LINENO: checking for accept" >&5
24485 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24486 if test "${ac_cv_func_accept+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489 if test x$gcc_no_link = xyes; then
24490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24492 { (exit 1); exit 1; }; }
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24502 #define accept innocuous_accept
24504 /* System header to define __stub macros and hopefully few prototypes,
24505 which can conflict with char accept (); below.
24506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507 <limits.h> exists even on freestanding compilers. */
24509 #ifdef __STDC__
24510 # include <limits.h>
24511 #else
24512 # include <assert.h>
24513 #endif
24515 #undef accept
24517 /* Override any gcc2 internal prototype to avoid an error. */
24518 #ifdef __cplusplus
24519 extern "C"
24521 #endif
24522 /* We use char because int might match the return type of a gcc2
24523 builtin and then its argument prototype would still apply. */
24524 char accept ();
24525 /* The GNU C library defines this for functions which it implements
24526 to always fail with ENOSYS. Some functions are actually named
24527 something starting with __ and the normal name is an alias. */
24528 #if defined (__stub_accept) || defined (__stub___accept)
24529 choke me
24530 #else
24531 char (*f) () = accept;
24532 #endif
24533 #ifdef __cplusplus
24535 #endif
24538 main ()
24540 return f != accept;
24542 return 0;
24544 _ACEOF
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24547 (eval $ac_link) 2>conftest.er1
24548 ac_status=$?
24549 grep -v '^ *+' conftest.er1 >conftest.err
24550 rm -f conftest.er1
24551 cat conftest.err >&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } &&
24554 { ac_try='test -z "$ac_c_werror_flag"
24555 || test ! -s conftest.err'
24556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try='test -s conftest$ac_exeext'
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; }; then
24567 ac_cv_func_accept=yes
24568 else
24569 echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 ac_cv_func_accept=no
24574 rm -f conftest.err conftest.$ac_objext \
24575 conftest$ac_exeext conftest.$ac_ext
24577 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24578 echo "${ECHO_T}$ac_cv_func_accept" >&6
24579 if test $ac_cv_func_accept = yes; then
24580 gcj_checkNsl=0
24581 gcj_cv_lib_sockets="-lsocket -lnsl"
24584 unset ac_cv_func_accept
24585 LIBS=$gcj_oldLibs
24587 unset ac_cv_func_gethostbyname
24588 gcj_oldLibs=$LIBS
24589 LIBS="$LIBS $gcj_cv_lib_sockets"
24590 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24591 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24592 if test "${ac_cv_func_gethostbyname+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595 if test x$gcc_no_link = xyes; then
24596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24598 { (exit 1); exit 1; }; }
24600 cat >conftest.$ac_ext <<_ACEOF
24601 /* confdefs.h. */
24602 _ACEOF
24603 cat confdefs.h >>conftest.$ac_ext
24604 cat >>conftest.$ac_ext <<_ACEOF
24605 /* end confdefs.h. */
24606 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24608 #define gethostbyname innocuous_gethostbyname
24610 /* System header to define __stub macros and hopefully few prototypes,
24611 which can conflict with char gethostbyname (); below.
24612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24613 <limits.h> exists even on freestanding compilers. */
24615 #ifdef __STDC__
24616 # include <limits.h>
24617 #else
24618 # include <assert.h>
24619 #endif
24621 #undef gethostbyname
24623 /* Override any gcc2 internal prototype to avoid an error. */
24624 #ifdef __cplusplus
24625 extern "C"
24627 #endif
24628 /* We use char because int might match the return type of a gcc2
24629 builtin and then its argument prototype would still apply. */
24630 char gethostbyname ();
24631 /* The GNU C library defines this for functions which it implements
24632 to always fail with ENOSYS. Some functions are actually named
24633 something starting with __ and the normal name is an alias. */
24634 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24635 choke me
24636 #else
24637 char (*f) () = gethostbyname;
24638 #endif
24639 #ifdef __cplusplus
24641 #endif
24644 main ()
24646 return f != gethostbyname;
24648 return 0;
24650 _ACEOF
24651 rm -f conftest.$ac_objext conftest$ac_exeext
24652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24653 (eval $ac_link) 2>conftest.er1
24654 ac_status=$?
24655 grep -v '^ *+' conftest.er1 >conftest.err
24656 rm -f conftest.er1
24657 cat conftest.err >&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } &&
24660 { ac_try='test -z "$ac_c_werror_flag"
24661 || test ! -s conftest.err'
24662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); }; } &&
24667 { ac_try='test -s conftest$ac_exeext'
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; }; then
24673 ac_cv_func_gethostbyname=yes
24674 else
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_cv_func_gethostbyname=no
24680 rm -f conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
24683 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24684 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24685 if test $ac_cv_func_gethostbyname = yes; then
24687 else
24688 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24689 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24690 if test "${ac_cv_lib_nsl_main+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693 ac_check_lib_save_LIBS=$LIBS
24694 LIBS="-lnsl $LIBS"
24695 if test x$gcc_no_link = xyes; then
24696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24698 { (exit 1); exit 1; }; }
24700 cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h. */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24709 main ()
24711 main ();
24713 return 0;
24715 _ACEOF
24716 rm -f conftest.$ac_objext conftest$ac_exeext
24717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24718 (eval $ac_link) 2>conftest.er1
24719 ac_status=$?
24720 grep -v '^ *+' conftest.er1 >conftest.err
24721 rm -f conftest.er1
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try='test -z "$ac_c_werror_flag"
24726 || test ! -s conftest.err'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; } &&
24732 { ac_try='test -s conftest$ac_exeext'
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; }; then
24738 ac_cv_lib_nsl_main=yes
24739 else
24740 echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24743 ac_cv_lib_nsl_main=no
24745 rm -f conftest.err conftest.$ac_objext \
24746 conftest$ac_exeext conftest.$ac_ext
24747 LIBS=$ac_check_lib_save_LIBS
24749 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24750 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24751 if test $ac_cv_lib_nsl_main = yes; then
24752 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24757 unset ac_cv_func_gethostbyname
24758 LIBS=$gcj_oldLIBS
24761 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24762 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24763 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24765 if test "$with_system_zlib" = yes; then
24766 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24767 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24768 if test "${ac_cv_lib_z_deflate+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24770 else
24771 ac_check_lib_save_LIBS=$LIBS
24772 LIBS="-lz $LIBS"
24773 if test x$gcc_no_link = xyes; then
24774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24776 { (exit 1); exit 1; }; }
24778 cat >conftest.$ac_ext <<_ACEOF
24779 /* confdefs.h. */
24780 _ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24785 /* Override any gcc2 internal prototype to avoid an error. */
24786 #ifdef __cplusplus
24787 extern "C"
24788 #endif
24789 /* We use char because int might match the return type of a gcc2
24790 builtin and then its argument prototype would still apply. */
24791 char deflate ();
24793 main ()
24795 deflate ();
24797 return 0;
24799 _ACEOF
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802 (eval $ac_link) 2>conftest.er1
24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest$ac_exeext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_lib_z_deflate=yes
24823 else
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_cv_lib_z_deflate=no
24829 rm -f conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24833 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24834 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24835 if test $ac_cv_lib_z_deflate = yes; then
24836 ZLIBSPEC=-lz
24837 else
24838 ZLIBSPEC=
24843 # Test for Gtk stuff, if asked for.
24844 if test "$use_gtk_awt" = yes; then
24846 succeeded=no
24848 if test -z "$PKG_CONFIG"; then
24849 # Extract the first word of "pkg-config", so it can be a program name with args.
24850 set dummy pkg-config; ac_word=$2
24851 echo "$as_me:$LINENO: checking for $ac_word" >&5
24852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856 case $PKG_CONFIG in
24857 [\\/]* | ?:[\\/]*)
24858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24862 for as_dir in $PATH
24864 IFS=$as_save_IFS
24865 test -z "$as_dir" && as_dir=.
24866 for ac_exec_ext in '' $ac_executable_extensions; do
24867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24870 break 2
24872 done
24873 done
24875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24877 esac
24879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24881 if test -n "$PKG_CONFIG"; then
24882 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24883 echo "${ECHO_T}$PKG_CONFIG" >&6
24884 else
24885 echo "$as_me:$LINENO: result: no" >&5
24886 echo "${ECHO_T}no" >&6
24891 if test "$PKG_CONFIG" = "no" ; then
24892 echo "*** The pkg-config script could not be found. Make sure it is"
24893 echo "*** in your path, or set the PKG_CONFIG environment variable"
24894 echo "*** to the full path to pkg-config."
24895 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24896 else
24897 PKG_CONFIG_MIN_VERSION=0.9.0
24898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24899 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24900 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24902 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24903 echo "$as_me:$LINENO: result: yes" >&5
24904 echo "${ECHO_T}yes" >&6
24905 succeeded=yes
24907 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24908 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24909 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24910 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24911 echo "${ECHO_T}$GTK_CFLAGS" >&6
24913 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24914 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24915 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24916 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24917 echo "${ECHO_T}$GTK_LIBS" >&6
24918 else
24919 GTK_CFLAGS=""
24920 GTK_LIBS=""
24921 ## If we have a custom action on failure, don't print errors, but
24922 ## do set a variable so people can do so.
24923 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24924 echo $GTK_PKG_ERRORS
24929 else
24930 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24931 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24935 if test $succeeded = yes; then
24937 else
24938 { { 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
24939 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;}
24940 { (exit 1); exit 1; }; }
24947 succeeded=no
24949 if test -z "$PKG_CONFIG"; then
24950 # Extract the first word of "pkg-config", so it can be a program name with args.
24951 set dummy pkg-config; ac_word=$2
24952 echo "$as_me:$LINENO: checking for $ac_word" >&5
24953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957 case $PKG_CONFIG in
24958 [\\/]* | ?:[\\/]*)
24959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963 for as_dir in $PATH
24965 IFS=$as_save_IFS
24966 test -z "$as_dir" && as_dir=.
24967 for ac_exec_ext in '' $ac_executable_extensions; do
24968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24971 break 2
24973 done
24974 done
24976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24978 esac
24980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24982 if test -n "$PKG_CONFIG"; then
24983 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24984 echo "${ECHO_T}$PKG_CONFIG" >&6
24985 else
24986 echo "$as_me:$LINENO: result: no" >&5
24987 echo "${ECHO_T}no" >&6
24992 if test "$PKG_CONFIG" = "no" ; then
24993 echo "*** The pkg-config script could not be found. Make sure it is"
24994 echo "*** in your path, or set the PKG_CONFIG environment variable"
24995 echo "*** to the full path to pkg-config."
24996 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24997 else
24998 PKG_CONFIG_MIN_VERSION=0.9.0
24999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25000 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25001 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25003 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25004 echo "$as_me:$LINENO: result: yes" >&5
25005 echo "${ECHO_T}yes" >&6
25006 succeeded=yes
25008 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25009 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25010 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25011 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25012 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25014 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25015 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25016 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25017 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25018 echo "${ECHO_T}$GLIB_LIBS" >&6
25019 else
25020 GLIB_CFLAGS=""
25021 GLIB_LIBS=""
25022 ## If we have a custom action on failure, don't print errors, but
25023 ## do set a variable so people can do so.
25024 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25025 echo $GLIB_PKG_ERRORS
25030 else
25031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25036 if test $succeeded = yes; then
25038 else
25039 { { 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
25040 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;}
25041 { (exit 1); exit 1; }; }
25048 succeeded=no
25050 if test -z "$PKG_CONFIG"; then
25051 # Extract the first word of "pkg-config", so it can be a program name with args.
25052 set dummy pkg-config; ac_word=$2
25053 echo "$as_me:$LINENO: checking for $ac_word" >&5
25054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25056 echo $ECHO_N "(cached) $ECHO_C" >&6
25057 else
25058 case $PKG_CONFIG in
25059 [\\/]* | ?:[\\/]*)
25060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25064 for as_dir in $PATH
25066 IFS=$as_save_IFS
25067 test -z "$as_dir" && as_dir=.
25068 for ac_exec_ext in '' $ac_executable_extensions; do
25069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25072 break 2
25074 done
25075 done
25077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25079 esac
25081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25083 if test -n "$PKG_CONFIG"; then
25084 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25085 echo "${ECHO_T}$PKG_CONFIG" >&6
25086 else
25087 echo "$as_me:$LINENO: result: no" >&5
25088 echo "${ECHO_T}no" >&6
25093 if test "$PKG_CONFIG" = "no" ; then
25094 echo "*** The pkg-config script could not be found. Make sure it is"
25095 echo "*** in your path, or set the PKG_CONFIG environment variable"
25096 echo "*** to the full path to pkg-config."
25097 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25098 else
25099 PKG_CONFIG_MIN_VERSION=0.9.0
25100 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25101 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25102 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25104 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25105 echo "$as_me:$LINENO: result: yes" >&5
25106 echo "${ECHO_T}yes" >&6
25107 succeeded=yes
25109 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25110 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25111 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25112 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25113 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25115 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25116 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25117 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25118 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25119 echo "${ECHO_T}$LIBART_LIBS" >&6
25120 else
25121 LIBART_CFLAGS=""
25122 LIBART_LIBS=""
25123 ## If we have a custom action on failure, don't print errors, but
25124 ## do set a variable so people can do so.
25125 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25126 echo $LIBART_PKG_ERRORS
25131 else
25132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25137 if test $succeeded = yes; then
25139 else
25140 { { 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
25141 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;}
25142 { (exit 1); exit 1; }; }
25148 # We require the XTest Extension to support java.awt.Robot.
25149 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25150 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25151 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 else
25154 ac_check_lib_save_LIBS=$LIBS
25155 LIBS="-lXtst ${X_LIBS} $LIBS"
25156 if test x$gcc_no_link = xyes; then
25157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25159 { (exit 1); exit 1; }; }
25161 cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h. */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25168 /* Override any gcc2 internal prototype to avoid an error. */
25169 #ifdef __cplusplus
25170 extern "C"
25171 #endif
25172 /* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25174 char XTestQueryExtension ();
25176 main ()
25178 XTestQueryExtension ();
25180 return 0;
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25186 ac_status=$?
25187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_lib_Xtst_XTestQueryExtension=yes
25206 else
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 ac_cv_lib_Xtst_XTestQueryExtension=no
25212 rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
25214 LIBS=$ac_check_lib_save_LIBS
25216 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25217 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25218 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25219 true
25220 else
25221 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25222 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25223 { (exit 1); exit 1; }; }
25228 # On Solaris, and maybe other architectures, the Boehm collector
25229 # requires -ldl.
25230 if test "$GC" = boehm; then
25231 case "${host}" in
25232 mips-sgi-irix6*)
25233 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25234 # libgcj.spec is used, so override here
25235 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25238 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25239 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25240 if test "${ac_cv_lib_dl_main+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 else
25243 ac_check_lib_save_LIBS=$LIBS
25244 LIBS="-ldl $LIBS"
25245 if test x$gcc_no_link = xyes; then
25246 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25248 { (exit 1); exit 1; }; }
25250 cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h. */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25259 main ()
25261 main ();
25263 return 0;
25265 _ACEOF
25266 rm -f conftest.$ac_objext conftest$ac_exeext
25267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25268 (eval $ac_link) 2>conftest.er1
25269 ac_status=$?
25270 grep -v '^ *+' conftest.er1 >conftest.err
25271 rm -f conftest.er1
25272 cat conftest.err >&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); } &&
25275 { ac_try='test -z "$ac_c_werror_flag"
25276 || test ! -s conftest.err'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; } &&
25282 { ac_try='test -s conftest$ac_exeext'
25283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); }; }; then
25288 ac_cv_lib_dl_main=yes
25289 else
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_cv_lib_dl_main=no
25295 rm -f conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
25297 LIBS=$ac_check_lib_save_LIBS
25299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25300 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25301 if test $ac_cv_lib_dl_main = yes; then
25302 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25306 esac
25310 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25311 case $build in
25312 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25313 *) CLASSPATH_SEPARATOR=':' ;;
25314 esac
25317 # We must search the source tree for java.lang, since we still don't
25318 # have libgcj.jar nor java/lang/*.class
25319 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25320 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25322 # Since some classes depend on this one, we need its source available
25323 # before we can do any GCJ compilation test :-(
25324 if test ! -f gnu/classpath/Configuration.java; then
25325 test -d gnu || mkdir gnu
25326 test -d gnu/classpath || mkdir gnu/classpath
25327 # Note that it is not crucial that all the values here be correct.
25328 sed -e "s,@prefix@,$prefix," \
25329 -e "s,@VERSION@,$VERSION," \
25330 -e "s,@LIBDEBUG@,false," \
25331 -e "s,@INIT_LOAD_LIBRARY@,false," \
25332 -e "s,@@,$LIBGCJDEBUG," \
25333 -e "s,@default_toolkit@,$TOOLKIT," \
25334 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25335 -e "s,@GTK_CAIRO_ENABLED@,false," \
25336 -e "s,@ECJ_JAR@,," \
25337 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25338 > gnu/classpath/Configuration.java
25339 # We do not want to redirect the output of the grep below to /dev/null,
25340 # but we add /dev/null to the input list so that grep will print the
25341 # filename of Configuration.java in case it finds any matches.
25342 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25343 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25344 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25345 { (exit 1); exit 1; }; }
25350 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
25352 # Extract the first word of "$ac_prog", so it can be a program name with args.
25353 set dummy $ac_prog; ac_word=$2
25354 echo "$as_me:$LINENO: checking for $ac_word" >&5
25355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25356 if test "${ac_cv_prog_GCJ+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 if test -n "$GCJ"; then
25360 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25361 else
25362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363 for as_dir in $PATH
25365 IFS=$as_save_IFS
25366 test -z "$as_dir" && as_dir=.
25367 for ac_exec_ext in '' $ac_executable_extensions; do
25368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25369 ac_cv_prog_GCJ="$ac_prog"
25370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25371 break 2
25373 done
25374 done
25378 GCJ=$ac_cv_prog_GCJ
25379 if test -n "$GCJ"; then
25380 echo "$as_me:$LINENO: result: $GCJ" >&5
25381 echo "${ECHO_T}$GCJ" >&6
25382 else
25383 echo "$as_me:$LINENO: result: no" >&5
25384 echo "${ECHO_T}no" >&6
25387 test -n "$GCJ" && break
25388 done
25389 test -n "$GCJ" || GCJ="gcj"
25391 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25392 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25393 { (exit 1); exit 1; }; }
25394 if test "x${GCJFLAGS-unset}" = xunset; then
25395 GCJFLAGS="-g -O2"
25399 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25401 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25402 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25403 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 else
25406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25407 # We make a subdir and do the tests there. Otherwise we can end up
25408 # making bogus files that we don't know about and never remove. For
25409 # instance it was reported that on HP-UX the gcc test will end up
25410 # making a dummy file named `D' -- because `-MD' means `put the output
25411 # in D'.
25412 mkdir conftest.dir
25413 # Copy depcomp to subdir because otherwise we won't find it if we're
25414 # using a relative directory.
25415 cp "$am_depcomp" conftest.dir
25416 cd conftest.dir
25417 # We will build objects and dependencies in a subdirectory because
25418 # it helps to detect inapplicable dependency modes. For instance
25419 # both Tru64's cc and ICC support -MD to output dependencies as a
25420 # side effect of compilation, but ICC will put the dependencies in
25421 # the current directory while Tru64 will put them in the object
25422 # directory.
25423 mkdir sub
25425 am_cv_GCJ_dependencies_compiler_type=none
25426 if test "$am_compiler_list" = ""; then
25427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25429 for depmode in $am_compiler_list; do
25430 # Setup a source with many dependencies, because some compilers
25431 # like to wrap large dependency lists on column 80 (with \), and
25432 # we should not choose a depcomp mode which is confused by this.
25434 # We need to recreate these files for each test, as the compiler may
25435 # overwrite some of them when testing with obscure command lines.
25436 # This happens at least with the AIX C compiler.
25437 : > sub/conftest.c
25438 for i in 1 2 3 4 5 6; do
25439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25441 # Solaris 8's {/usr,}/bin/sh.
25442 touch sub/conftst$i.h
25443 done
25444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25446 case $depmode in
25447 nosideeffect)
25448 # after this tag, mechanisms are not by side-effect, so they'll
25449 # only be used when explicitly requested
25450 if test "x$enable_dependency_tracking" = xyes; then
25451 continue
25452 else
25453 break
25456 none) break ;;
25457 esac
25458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25459 # mode. It turns out that the SunPro C++ compiler does not properly
25460 # handle `-M -o', and we need to detect this.
25461 if depmode=$depmode \
25462 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25465 >/dev/null 2>conftest.err &&
25466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25469 # icc doesn't choke on unknown options, it will just issue warnings
25470 # or remarks (even with -Werror). So we grep stderr for any message
25471 # that says an option was ignored or not supported.
25472 # When given -MP, icc 7.0 and 7.1 complain thusly:
25473 # icc: Command line warning: ignoring option '-M'; no argument required
25474 # The diagnosis changed in icc 8.0:
25475 # icc: Command line remark: option '-MP' not supported
25476 if (grep 'ignoring option' conftest.err ||
25477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25478 am_cv_GCJ_dependencies_compiler_type=$depmode
25479 break
25482 done
25484 cd ..
25485 rm -rf conftest.dir
25486 else
25487 am_cv_GCJ_dependencies_compiler_type=none
25491 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25492 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25493 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25498 test "x$enable_dependency_tracking" != xno \
25499 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25500 am__fastdepGCJ_TRUE=
25501 am__fastdepGCJ_FALSE='#'
25502 else
25503 am__fastdepGCJ_TRUE='#'
25504 am__fastdepGCJ_FALSE=
25510 # Now remove it.
25511 rm -f gnu/classpath/Configuration.java
25513 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25515 echo "$as_me:$LINENO: checking for void *" >&5
25516 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25517 if test "${ac_cv_type_void_p+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520 cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h. */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 $ac_includes_default
25528 main ()
25530 if ((void * *) 0)
25531 return 0;
25532 if (sizeof (void *))
25533 return 0;
25535 return 0;
25537 _ACEOF
25538 rm -f conftest.$ac_objext
25539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25540 (eval $ac_compile) 2>conftest.er1
25541 ac_status=$?
25542 grep -v '^ *+' conftest.er1 >conftest.err
25543 rm -f conftest.er1
25544 cat conftest.err >&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } &&
25547 { ac_try='test -z "$ac_c_werror_flag"
25548 || test ! -s conftest.err'
25549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; } &&
25554 { ac_try='test -s conftest.$ac_objext'
25555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); }; }; then
25560 ac_cv_type_void_p=yes
25561 else
25562 echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25565 ac_cv_type_void_p=no
25567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25569 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25570 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25572 echo "$as_me:$LINENO: checking size of void *" >&5
25573 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25574 if test "${ac_cv_sizeof_void_p+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577 if test "$ac_cv_type_void_p" = yes; then
25578 # The cast to unsigned long works around a bug in the HP C Compiler
25579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25581 # This bug is HP SR number 8606223364.
25582 if test "$cross_compiling" = yes; then
25583 # Depending upon the size, compute the lo and hi bounds.
25584 cat >conftest.$ac_ext <<_ACEOF
25585 /* confdefs.h. */
25586 _ACEOF
25587 cat confdefs.h >>conftest.$ac_ext
25588 cat >>conftest.$ac_ext <<_ACEOF
25589 /* end confdefs.h. */
25590 $ac_includes_default
25592 main ()
25594 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25595 test_array [0] = 0
25598 return 0;
25600 _ACEOF
25601 rm -f conftest.$ac_objext
25602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25603 (eval $ac_compile) 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
25610 { ac_try='test -z "$ac_c_werror_flag"
25611 || test ! -s conftest.err'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; } &&
25617 { ac_try='test -s conftest.$ac_objext'
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_lo=0 ac_mid=0
25624 while :; do
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 $ac_includes_default
25633 main ()
25635 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25636 test_array [0] = 0
25639 return 0;
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25644 (eval $ac_compile) 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } &&
25651 { ac_try='test -z "$ac_c_werror_flag"
25652 || test ! -s conftest.err'
25653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 (eval $ac_try) 2>&5
25655 ac_status=$?
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); }; } &&
25658 { ac_try='test -s conftest.$ac_objext'
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; }; then
25664 ac_hi=$ac_mid; break
25665 else
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 ac_lo=`expr $ac_mid + 1`
25670 if test $ac_lo -le $ac_mid; then
25671 ac_lo= ac_hi=
25672 break
25674 ac_mid=`expr 2 '*' $ac_mid + 1`
25676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25677 done
25678 else
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25682 cat >conftest.$ac_ext <<_ACEOF
25683 /* confdefs.h. */
25684 _ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h. */
25688 $ac_includes_default
25690 main ()
25692 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25693 test_array [0] = 0
25696 return 0;
25698 _ACEOF
25699 rm -f conftest.$ac_objext
25700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25701 (eval $ac_compile) 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } &&
25708 { ac_try='test -z "$ac_c_werror_flag"
25709 || test ! -s conftest.err'
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; } &&
25715 { ac_try='test -s conftest.$ac_objext'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; }; then
25721 ac_hi=-1 ac_mid=-1
25722 while :; do
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h. */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 $ac_includes_default
25731 main ()
25733 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25734 test_array [0] = 0
25737 return 0;
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742 (eval $ac_compile) 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
25749 { ac_try='test -z "$ac_c_werror_flag"
25750 || test ! -s conftest.err'
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
25756 { ac_try='test -s conftest.$ac_objext'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
25762 ac_lo=$ac_mid; break
25763 else
25764 echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25767 ac_hi=`expr '(' $ac_mid ')' - 1`
25768 if test $ac_mid -le $ac_hi; then
25769 ac_lo= ac_hi=
25770 break
25772 ac_mid=`expr 2 '*' $ac_mid`
25774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25775 done
25776 else
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25780 ac_lo= ac_hi=
25782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25785 # Binary search between lo and hi bounds.
25786 while test "x$ac_lo" != "x$ac_hi"; do
25787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25788 cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h. */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 $ac_includes_default
25796 main ()
25798 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25799 test_array [0] = 0
25802 return 0;
25804 _ACEOF
25805 rm -f conftest.$ac_objext
25806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25807 (eval $ac_compile) 2>conftest.er1
25808 ac_status=$?
25809 grep -v '^ *+' conftest.er1 >conftest.err
25810 rm -f conftest.er1
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } &&
25814 { ac_try='test -z "$ac_c_werror_flag"
25815 || test ! -s conftest.err'
25816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25817 (eval $ac_try) 2>&5
25818 ac_status=$?
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); }; } &&
25821 { ac_try='test -s conftest.$ac_objext'
25822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; }; then
25827 ac_hi=$ac_mid
25828 else
25829 echo "$as_me: failed program was:" >&5
25830 sed 's/^/| /' conftest.$ac_ext >&5
25832 ac_lo=`expr '(' $ac_mid ')' + 1`
25834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25835 done
25836 case $ac_lo in
25837 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25838 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25839 See \`config.log' for more details." >&5
25840 echo "$as_me: error: cannot compute sizeof (void *), 77
25841 See \`config.log' for more details." >&2;}
25842 { (exit 1); exit 1; }; } ;;
25843 esac
25844 else
25845 if test "$cross_compiling" = yes; then
25846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25847 See \`config.log' for more details." >&5
25848 echo "$as_me: error: cannot run test program while cross compiling
25849 See \`config.log' for more details." >&2;}
25850 { (exit 1); exit 1; }; }
25851 else
25852 cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h. */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h. */
25858 $ac_includes_default
25859 long longval () { return (long) (sizeof (void *)); }
25860 unsigned long ulongval () { return (long) (sizeof (void *)); }
25861 #include <stdio.h>
25862 #include <stdlib.h>
25864 main ()
25867 FILE *f = fopen ("conftest.val", "w");
25868 if (! f)
25869 exit (1);
25870 if (((long) (sizeof (void *))) < 0)
25872 long i = longval ();
25873 if (i != ((long) (sizeof (void *))))
25874 exit (1);
25875 fprintf (f, "%ld\n", i);
25877 else
25879 unsigned long i = ulongval ();
25880 if (i != ((long) (sizeof (void *))))
25881 exit (1);
25882 fprintf (f, "%lu\n", i);
25884 exit (ferror (f) || fclose (f) != 0);
25887 return 0;
25889 _ACEOF
25890 rm -f conftest$ac_exeext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25892 (eval $ac_link) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_sizeof_void_p=`cat conftest.val`
25902 else
25903 echo "$as_me: program exited with status $ac_status" >&5
25904 echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907 ( exit $ac_status )
25908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25909 See \`config.log' for more details." >&5
25910 echo "$as_me: error: cannot compute sizeof (void *), 77
25911 See \`config.log' for more details." >&2;}
25912 { (exit 1); exit 1; }; }
25914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25917 rm -f conftest.val
25918 else
25919 ac_cv_sizeof_void_p=0
25922 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25923 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25924 cat >>confdefs.h <<_ACEOF
25925 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25926 _ACEOF
25930 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25931 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25932 if test "${ac_cv_c_bigendian+set}" = set; then
25933 echo $ECHO_N "(cached) $ECHO_C" >&6
25934 else
25935 # See if sys/param.h defines the BYTE_ORDER macro.
25936 cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h. */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h. */
25942 #include <sys/types.h>
25943 #include <sys/param.h>
25946 main ()
25948 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25949 bogus endian macros
25950 #endif
25953 return 0;
25955 _ACEOF
25956 rm -f conftest.$ac_objext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25958 (eval $ac_compile) 2>conftest.er1
25959 ac_status=$?
25960 grep -v '^ *+' conftest.er1 >conftest.err
25961 rm -f conftest.er1
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } &&
25965 { ac_try='test -z "$ac_c_werror_flag"
25966 || test ! -s conftest.err'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; } &&
25972 { ac_try='test -s conftest.$ac_objext'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 # It does; now see whether it defined to BIG_ENDIAN or not.
25979 cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h. */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h. */
25985 #include <sys/types.h>
25986 #include <sys/param.h>
25989 main ()
25991 #if BYTE_ORDER != BIG_ENDIAN
25992 not big endian
25993 #endif
25996 return 0;
25998 _ACEOF
25999 rm -f conftest.$ac_objext
26000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26001 (eval $ac_compile) 2>conftest.er1
26002 ac_status=$?
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest.$ac_objext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 ac_cv_c_bigendian=yes
26022 else
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_cv_c_bigendian=no
26028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26029 else
26030 echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26033 # It does not; compile a test program.
26034 if test "$cross_compiling" = yes; then
26035 # try to guess the endianness by grepping values into an object file
26036 ac_cv_c_bigendian=unknown
26037 cat >conftest.$ac_ext <<_ACEOF
26038 /* confdefs.h. */
26039 _ACEOF
26040 cat confdefs.h >>conftest.$ac_ext
26041 cat >>conftest.$ac_ext <<_ACEOF
26042 /* end confdefs.h. */
26043 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26044 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26045 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26046 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26047 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26048 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26050 main ()
26052 _ascii (); _ebcdic ();
26054 return 0;
26056 _ACEOF
26057 rm -f conftest.$ac_objext
26058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059 (eval $ac_compile) 2>conftest.er1
26060 ac_status=$?
26061 grep -v '^ *+' conftest.er1 >conftest.err
26062 rm -f conftest.er1
26063 cat conftest.err >&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
26066 { ac_try='test -z "$ac_c_werror_flag"
26067 || test ! -s conftest.err'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; } &&
26073 { ac_try='test -s conftest.$ac_objext'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26076 ac_status=$?
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; }; then
26079 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26080 ac_cv_c_bigendian=yes
26082 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26083 if test "$ac_cv_c_bigendian" = unknown; then
26084 ac_cv_c_bigendian=no
26085 else
26086 # finding both strings is unlikely to happen, but who knows?
26087 ac_cv_c_bigendian=unknown
26090 else
26091 echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26096 else
26097 cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h. */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26104 main ()
26106 /* Are we little or big endian? From Harbison&Steele. */
26107 union
26109 long l;
26110 char c[sizeof (long)];
26111 } u;
26112 u.l = 1;
26113 exit (u.c[sizeof (long) - 1] == 1);
26115 _ACEOF
26116 rm -f conftest$ac_exeext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26118 (eval $ac_link) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26127 ac_cv_c_bigendian=no
26128 else
26129 echo "$as_me: program exited with status $ac_status" >&5
26130 echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26133 ( exit $ac_status )
26134 ac_cv_c_bigendian=yes
26136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26141 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26142 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26143 case $ac_cv_c_bigendian in
26144 yes)
26146 cat >>confdefs.h <<\_ACEOF
26147 #define WORDS_BIGENDIAN 1
26148 _ACEOF
26153 { { echo "$as_me:$LINENO: error: unknown endianness
26154 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26155 echo "$as_me: error: unknown endianness
26156 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26157 { (exit 1); exit 1; }; } ;;
26158 esac
26161 ZLIBS=
26162 SYS_ZLIBS=
26163 ZINCS=
26165 if test -z "$ZLIBSPEC"; then
26166 # Use zlib from the GCC tree.
26167 ZINCS='-I$(top_srcdir)/../zlib'
26168 ZLIBS=../zlib/libzgcj_convenience.la
26169 else
26170 # System's zlib.
26171 SYS_ZLIBS="$ZLIBSPEC"
26184 if test "$NATIVE" = yes; then
26185 NATIVE_TRUE=
26186 NATIVE_FALSE='#'
26187 else
26188 NATIVE_TRUE='#'
26189 NATIVE_FALSE=
26194 if test "$enable_shared" = yes; then
26195 ENABLE_SHARED_TRUE=
26196 ENABLE_SHARED_FALSE='#'
26197 else
26198 ENABLE_SHARED_TRUE='#'
26199 ENABLE_SHARED_FALSE=
26204 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26205 NEEDS_DATA_START_TRUE=
26206 NEEDS_DATA_START_FALSE='#'
26207 else
26208 NEEDS_DATA_START_TRUE='#'
26209 NEEDS_DATA_START_FALSE=
26214 # Process the option "--enable-version-specific-runtime-libs"
26215 # Calculate toolexeclibdir
26216 case ${version_specific_libs} in
26217 yes)
26218 # Need the gcc compiler version to know where to install libraries
26219 # and header files if --enable-version-specific-runtime-libs option
26220 # is selected.
26221 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26222 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26223 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26224 toolexeclibdir=$toolexecmainlibdir
26227 if test -n "$with_cross_host" &&
26228 test x"$with_cross_host" != x"no"; then
26229 # Install a library built with a cross compiler in tooldir, not libdir.
26230 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26231 toolexecmainlibdir='$(toolexecdir)/lib'
26232 else
26233 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26234 toolexecmainlibdir='$(libdir)'
26236 multi_os_directory=`$CC -print-multi-os-directory`
26237 case $multi_os_directory in
26238 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26239 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26240 esac
26242 esac
26247 # Determine gcj and libgcj version number.
26248 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26249 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26250 GCJVERSION=$gcjversion
26253 cat >>confdefs.h <<_ACEOF
26254 #define GCJVERSION "$GCJVERSION"
26255 _ACEOF
26258 # Determine where the standard .db file and GNU Classpath JNI
26259 # libraries are found.
26260 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26261 multi_os_directory=`$CC -print-multi-os-directory`
26262 case $multi_os_directory in
26264 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26267 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26269 esac
26273 cat >>confdefs.h <<\_ACEOF
26274 #define JV_VERSION "1.5.0"
26275 _ACEOF
26278 cat >>confdefs.h <<\_ACEOF
26279 #define JV_API_VERSION "1.5"
26280 _ACEOF
26284 case "${with_gxx_include_dir}" in
26285 yes)
26286 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26287 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26288 { (exit 1); exit 1; }; }
26290 no | "")
26291 case "${enable_version_specific_runtime_libs}" in
26292 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26294 libstdcxx_incdir='c++/$(gcc_version)'
26295 gxx_include_dir='include/$(libstdcxx_incdir)'
26296 if test -n "$with_cross_host" &&
26297 test x"$with_cross_host" != x"no"; then
26298 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26299 else
26300 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26301 fi;;
26302 esac ;;
26303 *) gxx_include_dir=${with_gxx_include_dir} ;;
26304 esac
26309 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26310 # On that system, sys/ioctl.h will not include sys/filio.h unless
26311 # BSD_COMP is defined; just including sys/filio.h is simpler.
26312 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26313 # for now. If you change this, you also must update natFile.cc.
26337 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26338 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26339 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26340 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26341 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26345 echo "$as_me:$LINENO: checking for $ac_header" >&5
26346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26348 echo $ECHO_N "(cached) $ECHO_C" >&6
26350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26352 else
26353 # Is the header compilable?
26354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26356 cat >conftest.$ac_ext <<_ACEOF
26357 /* confdefs.h. */
26358 _ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h. */
26362 $ac_includes_default
26363 #include <$ac_header>
26364 _ACEOF
26365 rm -f conftest.$ac_objext
26366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26367 (eval $ac_compile) 2>conftest.er1
26368 ac_status=$?
26369 grep -v '^ *+' conftest.er1 >conftest.err
26370 rm -f conftest.er1
26371 cat conftest.err >&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } &&
26374 { ac_try='test -z "$ac_c_werror_flag"
26375 || test ! -s conftest.err'
26376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377 (eval $ac_try) 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); }; } &&
26381 { ac_try='test -s conftest.$ac_objext'
26382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); }; }; then
26387 ac_header_compiler=yes
26388 else
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 ac_header_compiler=no
26394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26396 echo "${ECHO_T}$ac_header_compiler" >&6
26398 # Is the header present?
26399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26401 cat >conftest.$ac_ext <<_ACEOF
26402 /* confdefs.h. */
26403 _ACEOF
26404 cat confdefs.h >>conftest.$ac_ext
26405 cat >>conftest.$ac_ext <<_ACEOF
26406 /* end confdefs.h. */
26407 #include <$ac_header>
26408 _ACEOF
26409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26411 ac_status=$?
26412 grep -v '^ *+' conftest.er1 >conftest.err
26413 rm -f conftest.er1
26414 cat conftest.err >&5
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } >/dev/null; then
26417 if test -s conftest.err; then
26418 ac_cpp_err=$ac_c_preproc_warn_flag
26419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26420 else
26421 ac_cpp_err=
26423 else
26424 ac_cpp_err=yes
26426 if test -z "$ac_cpp_err"; then
26427 ac_header_preproc=yes
26428 else
26429 echo "$as_me: failed program was:" >&5
26430 sed 's/^/| /' conftest.$ac_ext >&5
26432 ac_header_preproc=no
26434 rm -f conftest.err conftest.$ac_ext
26435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26436 echo "${ECHO_T}$ac_header_preproc" >&6
26438 # So? What about this header?
26439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26440 yes:no: )
26441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26445 ac_header_preproc=yes
26447 no:yes:* )
26448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26461 cat <<\_ASBOX
26462 ## ---------------------------------- ##
26463 ## Report this to the libjava lists. ##
26464 ## ---------------------------------- ##
26465 _ASBOX
26467 sed "s/^/$as_me: WARNING: /" >&2
26469 esac
26470 echo "$as_me:$LINENO: checking for $ac_header" >&5
26471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 else
26475 eval "$as_ac_Header=\$ac_header_preproc"
26477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26482 cat >>confdefs.h <<_ACEOF
26483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26484 _ACEOF
26488 done
26491 for ac_header in inttypes.h
26493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26495 echo "$as_me:$LINENO: checking for $ac_header" >&5
26496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26498 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26502 else
26503 # Is the header compilable?
26504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26506 cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h. */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26512 $ac_includes_default
26513 #include <$ac_header>
26514 _ACEOF
26515 rm -f conftest.$ac_objext
26516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517 (eval $ac_compile) 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } &&
26524 { ac_try='test -z "$ac_c_werror_flag"
26525 || test ! -s conftest.err'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; } &&
26531 { ac_try='test -s conftest.$ac_objext'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
26537 ac_header_compiler=yes
26538 else
26539 echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26542 ac_header_compiler=no
26544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26546 echo "${ECHO_T}$ac_header_compiler" >&6
26548 # Is the header present?
26549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26551 cat >conftest.$ac_ext <<_ACEOF
26552 /* confdefs.h. */
26553 _ACEOF
26554 cat confdefs.h >>conftest.$ac_ext
26555 cat >>conftest.$ac_ext <<_ACEOF
26556 /* end confdefs.h. */
26557 #include <$ac_header>
26558 _ACEOF
26559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26561 ac_status=$?
26562 grep -v '^ *+' conftest.er1 >conftest.err
26563 rm -f conftest.er1
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } >/dev/null; then
26567 if test -s conftest.err; then
26568 ac_cpp_err=$ac_c_preproc_warn_flag
26569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26570 else
26571 ac_cpp_err=
26573 else
26574 ac_cpp_err=yes
26576 if test -z "$ac_cpp_err"; then
26577 ac_header_preproc=yes
26578 else
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_header_preproc=no
26584 rm -f conftest.err conftest.$ac_ext
26585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26586 echo "${ECHO_T}$ac_header_preproc" >&6
26588 # So? What about this header?
26589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26590 yes:no: )
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26595 ac_header_preproc=yes
26597 no:yes:* )
26598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26611 cat <<\_ASBOX
26612 ## ---------------------------------- ##
26613 ## Report this to the libjava lists. ##
26614 ## ---------------------------------- ##
26615 _ASBOX
26617 sed "s/^/$as_me: WARNING: /" >&2
26619 esac
26620 echo "$as_me:$LINENO: checking for $ac_header" >&5
26621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625 eval "$as_ac_Header=\$ac_header_preproc"
26627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26632 cat >>confdefs.h <<_ACEOF
26633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26634 _ACEOF
26637 cat >>confdefs.h <<\_ACEOF
26638 #define HAVE_INTTYPES_H 1
26639 _ACEOF
26642 cat >>confdefs.h <<\_ACEOF
26643 #define JV_HAVE_INTTYPES_H 1
26644 _ACEOF
26649 done
26652 echo "$as_me:$LINENO: checking for ssize_t" >&5
26653 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26654 if test "${ac_cv_type_ssize_t+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657 cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h. */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h. */
26663 $ac_includes_default
26665 main ()
26667 if ((ssize_t *) 0)
26668 return 0;
26669 if (sizeof (ssize_t))
26670 return 0;
26672 return 0;
26674 _ACEOF
26675 rm -f conftest.$ac_objext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26677 (eval $ac_compile) 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
26684 { ac_try='test -z "$ac_c_werror_flag"
26685 || test ! -s conftest.err'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest.$ac_objext'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 ac_cv_type_ssize_t=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_cv_type_ssize_t=no
26704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26707 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26708 if test $ac_cv_type_ssize_t = yes; then
26710 else
26712 cat >>confdefs.h <<_ACEOF
26713 #define ssize_t int
26714 _ACEOF
26718 echo "$as_me:$LINENO: checking for magic_t" >&5
26719 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26720 if test "${ac_cv_type_magic_t+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 else
26723 cat >conftest.$ac_ext <<_ACEOF
26724 /* confdefs.h. */
26725 _ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h. */
26730 #ifdef HAVE_MAGIC_H
26731 #include <magic.h>
26732 #endif
26735 main ()
26737 if ((magic_t *) 0)
26738 return 0;
26739 if (sizeof (magic_t))
26740 return 0;
26742 return 0;
26744 _ACEOF
26745 rm -f conftest.$ac_objext
26746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26747 (eval $ac_compile) 2>conftest.er1
26748 ac_status=$?
26749 grep -v '^ *+' conftest.er1 >conftest.err
26750 rm -f conftest.er1
26751 cat conftest.err >&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } &&
26754 { ac_try='test -z "$ac_c_werror_flag"
26755 || test ! -s conftest.err'
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; } &&
26761 { ac_try='test -s conftest.$ac_objext'
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; }; then
26767 ac_cv_type_magic_t=yes
26768 else
26769 echo "$as_me: failed program was:" >&5
26770 sed 's/^/| /' conftest.$ac_ext >&5
26772 ac_cv_type_magic_t=no
26774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26776 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26777 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26778 if test $ac_cv_type_magic_t = yes; then
26781 cat >>confdefs.h <<\_ACEOF
26782 #define HAVE_MAGIC_T 1
26783 _ACEOF
26788 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26789 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26790 cat >conftest.$ac_ext <<_ACEOF
26791 /* confdefs.h. */
26792 _ACEOF
26793 cat confdefs.h >>conftest.$ac_ext
26794 cat >>conftest.$ac_ext <<_ACEOF
26795 /* end confdefs.h. */
26796 #include <sys/types.h>
26797 #if STDC_HEADERS
26798 #include <stdlib.h>
26799 #include <stddef.h>
26800 #endif
26801 #if HAVE_NETINET_IN_H
26802 #include <netinet/in.h>
26803 #endif
26805 main ()
26807 in_addr_t foo;
26809 return 0;
26811 _ACEOF
26812 rm -f conftest.$ac_objext
26813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26814 (eval $ac_compile) 2>conftest.er1
26815 ac_status=$?
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest.$ac_objext'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26835 cat >>confdefs.h <<\_ACEOF
26836 #define HAVE_IN_ADDR_T 1
26837 _ACEOF
26839 echo "$as_me:$LINENO: result: yes" >&5
26840 echo "${ECHO_T}yes" >&6
26841 else
26842 echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 echo "$as_me:$LINENO: result: no" >&5
26846 echo "${ECHO_T}no" >&6
26848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26850 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26851 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h. */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 #include <netinet/in.h>
26860 main ()
26862 struct ip_mreq mreq;
26864 return 0;
26866 _ACEOF
26867 rm -f conftest.$ac_objext
26868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26869 (eval $ac_compile) 2>conftest.er1
26870 ac_status=$?
26871 grep -v '^ *+' conftest.er1 >conftest.err
26872 rm -f conftest.er1
26873 cat conftest.err >&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
26876 { ac_try='test -z "$ac_c_werror_flag"
26877 || test ! -s conftest.err'
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; } &&
26883 { ac_try='test -s conftest.$ac_objext'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; }; then
26890 cat >>confdefs.h <<\_ACEOF
26891 #define HAVE_STRUCT_IP_MREQ 1
26892 _ACEOF
26894 echo "$as_me:$LINENO: result: yes" >&5
26895 echo "${ECHO_T}yes" >&6
26896 else
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 echo "$as_me:$LINENO: result: no" >&5
26901 echo "${ECHO_T}no" >&6
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26905 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26906 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26907 cat >conftest.$ac_ext <<_ACEOF
26908 /* confdefs.h. */
26909 _ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h. */
26913 #include <netinet/in.h>
26915 main ()
26917 struct ipv6_mreq mreq6;
26919 return 0;
26921 _ACEOF
26922 rm -f conftest.$ac_objext
26923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924 (eval $ac_compile) 2>conftest.er1
26925 ac_status=$?
26926 grep -v '^ *+' conftest.er1 >conftest.err
26927 rm -f conftest.er1
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } &&
26931 { ac_try='test -z "$ac_c_werror_flag"
26932 || test ! -s conftest.err'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26945 cat >>confdefs.h <<\_ACEOF
26946 #define HAVE_STRUCT_IPV6_MREQ 1
26947 _ACEOF
26949 echo "$as_me:$LINENO: result: yes" >&5
26950 echo "${ECHO_T}yes" >&6
26951 else
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 echo "$as_me:$LINENO: result: no" >&5
26956 echo "${ECHO_T}no" >&6
26958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26960 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26961 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26962 cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h. */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 #include <netinet/in.h>
26970 main ()
26972 struct sockaddr_in6 addr6;
26974 return 0;
26976 _ACEOF
26977 rm -f conftest.$ac_objext
26978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979 (eval $ac_compile) 2>conftest.er1
26980 ac_status=$?
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest.$ac_objext'
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
27000 cat >>confdefs.h <<\_ACEOF
27001 #define HAVE_INET6 1
27002 _ACEOF
27004 echo "$as_me:$LINENO: result: yes" >&5
27005 echo "${ECHO_T}yes" >&6
27006 else
27007 echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27010 echo "$as_me:$LINENO: result: no" >&5
27011 echo "${ECHO_T}no" >&6
27013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27016 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h. */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 #define _POSIX_PII_SOCKET
27024 #include <sys/types.h>
27025 #include <sys/socket.h>
27027 main ()
27029 socklen_t x = 5;
27031 return 0;
27033 _ACEOF
27034 rm -f conftest.$ac_objext
27035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27036 (eval $ac_compile) 2>conftest.er1
27037 ac_status=$?
27038 grep -v '^ *+' conftest.er1 >conftest.err
27039 rm -f conftest.er1
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -z "$ac_c_werror_flag"
27044 || test ! -s conftest.err'
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest.$ac_objext'
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; }; then
27057 cat >>confdefs.h <<\_ACEOF
27058 #define HAVE_SOCKLEN_T 1
27059 _ACEOF
27061 echo "$as_me:$LINENO: result: yes" >&5
27062 echo "${ECHO_T}yes" >&6
27063 else
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 echo "$as_me:$LINENO: result: no" >&5
27068 echo "${ECHO_T}no" >&6
27070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27072 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27073 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27074 cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h. */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27080 #include <time.h>
27082 main ()
27084 struct tm tim; tim.tm_gmtoff = 0;
27086 return 0;
27088 _ACEOF
27089 rm -f conftest.$ac_objext
27090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27091 (eval $ac_compile) 2>conftest.er1
27092 ac_status=$?
27093 grep -v '^ *+' conftest.er1 >conftest.err
27094 rm -f conftest.er1
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } &&
27098 { ac_try='test -z "$ac_c_werror_flag"
27099 || test ! -s conftest.err'
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; } &&
27105 { ac_try='test -s conftest.$ac_objext'
27106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; }; then
27112 cat >>confdefs.h <<\_ACEOF
27113 #define STRUCT_TM_HAS_GMTOFF 1
27114 _ACEOF
27116 echo "$as_me:$LINENO: result: yes" >&5
27117 echo "${ECHO_T}yes" >&6
27118 else
27119 echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27122 echo "$as_me:$LINENO: result: no" >&5
27123 echo "${ECHO_T}no" >&6
27124 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27125 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27126 cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h. */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h. */
27132 #include <time.h>
27134 main ()
27136 void i(){long z2 = 2*timezone;}
27138 return 0;
27140 _ACEOF
27141 rm -f conftest.$ac_objext
27142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27143 (eval $ac_compile) 2>conftest.er1
27144 ac_status=$?
27145 grep -v '^ *+' conftest.er1 >conftest.err
27146 rm -f conftest.er1
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
27150 { ac_try='test -z "$ac_c_werror_flag"
27151 || test ! -s conftest.err'
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; } &&
27157 { ac_try='test -s conftest.$ac_objext'
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_TIMEZONE 1
27166 _ACEOF
27168 echo "$as_me:$LINENO: result: yes" >&5
27169 echo "${ECHO_T}yes" >&6
27170 else
27171 echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27174 echo "$as_me:$LINENO: result: no" >&5
27175 echo "${ECHO_T}no" >&6
27176 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27177 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h. */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 #include <time.h>
27186 main ()
27188 long z2 = _timezone;
27190 return 0;
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27195 (eval $ac_compile) 2>conftest.er1
27196 ac_status=$?
27197 grep -v '^ *+' conftest.er1 >conftest.err
27198 rm -f conftest.er1
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag"
27203 || test ! -s conftest.err'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; } &&
27209 { ac_try='test -s conftest.$ac_objext'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27216 cat >>confdefs.h <<\_ACEOF
27217 #define HAVE_UNDERSCORE_TIMEZONE 1
27218 _ACEOF
27220 echo "$as_me:$LINENO: result: yes" >&5
27221 echo "${ECHO_T}yes" >&6
27222 else
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27226 echo "$as_me:$LINENO: result: no" >&5
27227 echo "${ECHO_T}no" >&6
27229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27235 for ac_prog in perl
27237 # Extract the first word of "$ac_prog", so it can be a program name with args.
27238 set dummy $ac_prog; ac_word=$2
27239 echo "$as_me:$LINENO: checking for $ac_word" >&5
27240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27241 if test "${ac_cv_prog_PERL+set}" = set; then
27242 echo $ECHO_N "(cached) $ECHO_C" >&6
27243 else
27244 if test -n "$PERL"; then
27245 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27246 else
27247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27248 for as_dir in $PATH
27250 IFS=$as_save_IFS
27251 test -z "$as_dir" && as_dir=.
27252 for ac_exec_ext in '' $ac_executable_extensions; do
27253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27254 ac_cv_prog_PERL="$ac_prog"
27255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27256 break 2
27258 done
27259 done
27263 PERL=$ac_cv_prog_PERL
27264 if test -n "$PERL"; then
27265 echo "$as_me:$LINENO: result: $PERL" >&5
27266 echo "${ECHO_T}$PERL" >&6
27267 else
27268 echo "$as_me:$LINENO: result: no" >&5
27269 echo "${ECHO_T}no" >&6
27272 test -n "$PERL" && break
27273 done
27274 test -n "$PERL" || PERL="false"
27277 SYSDEP_SOURCES=
27278 SIGNAL_HANDLER_AUX=
27280 case "${host}" in
27281 i?86-*-linux*)
27282 SIGNAL_HANDLER=include/i386-signal.h
27284 sparc*-sun-solaris*)
27285 SIGNAL_HANDLER=include/sparc-signal.h
27287 # ia64-*)
27288 # SYSDEP_SOURCES=sysdep/ia64.c
27289 # test -d sysdep || mkdir sysdep
27290 # ;;
27291 hppa*-*-linux*)
27292 SIGNAL_HANDLER=include/pa-signal.h
27294 hppa*-hp-hpux*)
27295 SIGNAL_HANDLER=include/hppa-signal.h
27297 ia64-*-linux*)
27298 SIGNAL_HANDLER=include/dwarf2-signal.h
27300 powerpc*-*-linux*)
27301 SIGNAL_HANDLER=include/powerpc-signal.h
27303 alpha*-*-linux*)
27304 SIGNAL_HANDLER=include/dwarf2-signal.h
27306 s390*-*-linux*)
27307 SIGNAL_HANDLER=include/s390-signal.h
27309 x86_64*-*-linux*)
27310 SIGNAL_HANDLER=include/x86_64-signal.h
27311 SIGNAL_HANDLER_AUX=include/i386-signal.h
27313 sparc*-*-linux*)
27314 SIGNAL_HANDLER=include/dwarf2-signal.h
27316 sh*-*-linux*)
27317 SIGNAL_HANDLER=include/sh-signal.h
27319 *mingw*)
27320 SIGNAL_HANDLER=include/win32-signal.h
27322 mips*-*-linux*)
27323 SIGNAL_HANDLER=include/mips-signal.h
27325 m68*-*-linux*)
27326 SIGNAL_HANDLER=include/dwarf2-signal.h
27328 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27329 SIGNAL_HANDLER=include/darwin-signal.h
27332 SIGNAL_HANDLER=include/default-signal.h
27334 esac
27336 # If we're using sjlj exceptions, forget what we just learned.
27337 if test "$enable_sjlj_exceptions" = yes; then
27338 SIGNAL_HANDLER=include/default-signal.h
27339 SIGNAL_HANDLER_AUX=
27344 if test -z "$SIGNAL_HANDLER_AUX"; then
27345 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27348 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27351 if test "${multilib}" = "yes"; then
27352 multilib_arg="--enable-multilib"
27353 else
27354 multilib_arg=
27357 # See if we support thread-local storage.
27359 # Check whether --enable-tls or --disable-tls was given.
27360 if test "${enable_tls+set}" = set; then
27361 enableval="$enable_tls"
27363 case "$enableval" in
27364 yes|no) ;;
27365 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27366 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27367 { (exit 1); exit 1; }; } ;;
27368 esac
27370 else
27371 enable_tls=yes
27374 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27375 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27376 if test "${gcc_cv_have_tls+set}" = set; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 else
27380 if test "$cross_compiling" = yes; then
27381 if test x$gcc_no_link = xyes; then
27382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27384 { (exit 1); exit 1; }; }
27386 cat >conftest.$ac_ext <<_ACEOF
27387 __thread int a; int b; int main() { return a = b; }
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391 (eval $ac_link) 2>conftest.er1
27392 ac_status=$?
27393 grep -v '^ *+' conftest.er1 >conftest.err
27394 rm -f conftest.er1
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag"
27399 || test ! -s conftest.err'
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; } &&
27405 { ac_try='test -s conftest$ac_exeext'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 gcc_cv_have_tls=yes
27412 else
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 gcc_cv_have_tls=no
27418 rm -f conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
27422 else
27423 cat >conftest.$ac_ext <<_ACEOF
27424 __thread int a; int b; int main() { return a = b; }
27425 _ACEOF
27426 rm -f conftest$ac_exeext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27428 (eval $ac_link) 2>&5
27429 ac_status=$?
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } && { ac_try='./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 chktls_save_LDFLAGS="$LDFLAGS"
27438 LDFLAGS="-static $LDFLAGS"
27439 if test x$gcc_no_link = xyes; then
27440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27442 { (exit 1); exit 1; }; }
27444 cat >conftest.$ac_ext <<_ACEOF
27445 int main() { return 0; }
27446 _ACEOF
27447 rm -f conftest.$ac_objext conftest$ac_exeext
27448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27449 (eval $ac_link) 2>conftest.er1
27450 ac_status=$?
27451 grep -v '^ *+' conftest.er1 >conftest.err
27452 rm -f conftest.er1
27453 cat conftest.err >&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
27456 { ac_try='test -z "$ac_c_werror_flag"
27457 || test ! -s conftest.err'
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); }; } &&
27463 { ac_try='test -s conftest$ac_exeext'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; }; then
27469 if test "$cross_compiling" = yes; then
27470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27471 See \`config.log' for more details." >&5
27472 echo "$as_me: error: cannot run test program while cross compiling
27473 See \`config.log' for more details." >&2;}
27474 { (exit 1); exit 1; }; }
27475 else
27476 cat >conftest.$ac_ext <<_ACEOF
27477 __thread int a; int b; int main() { return a = b; }
27478 _ACEOF
27479 rm -f conftest$ac_exeext
27480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27481 (eval $ac_link) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 gcc_cv_have_tls=yes
27491 else
27492 echo "$as_me: program exited with status $ac_status" >&5
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27496 ( exit $ac_status )
27497 gcc_cv_have_tls=no
27499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27501 else
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 gcc_cv_have_tls=yes
27507 rm -f conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
27509 LDFLAGS="$chktls_save_LDFLAGS"
27510 if test $gcc_cv_have_tls = yes; then
27511 chktls_save_CFLAGS="$CFLAGS"
27512 thread_CFLAGS=failed
27513 for flag in '' '-pthread' '-lpthread'; do
27514 CFLAGS="$flag $chktls_save_CFLAGS"
27515 if test x$gcc_no_link = xyes; then
27516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27518 { (exit 1); exit 1; }; }
27520 cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h. */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27526 #include <pthread.h>
27527 void *g(void *d) { return NULL; }
27529 main ()
27531 pthread_t t; pthread_create(&t,NULL,g,NULL);
27533 return 0;
27535 _ACEOF
27536 rm -f conftest.$ac_objext conftest$ac_exeext
27537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27538 (eval $ac_link) 2>conftest.er1
27539 ac_status=$?
27540 grep -v '^ *+' conftest.er1 >conftest.err
27541 rm -f conftest.er1
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_c_werror_flag"
27546 || test ! -s conftest.err'
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; } &&
27552 { ac_try='test -s conftest$ac_exeext'
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27555 ac_status=$?
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; }; then
27558 thread_CFLAGS="$flag"
27559 else
27560 echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27564 rm -f conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
27566 if test "X$thread_CFLAGS" != Xfailed; then
27567 break
27569 done
27570 CFLAGS="$chktls_save_CFLAGS"
27571 if test "X$thread_CFLAGS" != Xfailed; then
27572 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27573 if test "$cross_compiling" = yes; then
27574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27575 See \`config.log' for more details." >&5
27576 echo "$as_me: error: cannot run test program while cross compiling
27577 See \`config.log' for more details." >&2;}
27578 { (exit 1); exit 1; }; }
27579 else
27580 cat >conftest.$ac_ext <<_ACEOF
27581 /* confdefs.h. */
27582 _ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h. */
27586 #include <pthread.h>
27587 __thread int a;
27588 static int *a_in_other_thread;
27589 static void *
27590 thread_func (void *arg)
27592 a_in_other_thread = &a;
27593 return (void *)0;
27596 main ()
27598 pthread_t thread;
27599 void *thread_retval;
27600 int *a_in_main_thread;
27601 if (pthread_create (&thread, (pthread_attr_t *)0,
27602 thread_func, (void *)0))
27603 return 0;
27604 a_in_main_thread = &a;
27605 if (pthread_join (thread, &thread_retval))
27606 return 0;
27607 return (a_in_other_thread == a_in_main_thread);
27609 return 0;
27611 _ACEOF
27612 rm -f conftest$ac_exeext
27613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27614 (eval $ac_link) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; }; then
27623 gcc_cv_have_tls=yes
27624 else
27625 echo "$as_me: program exited with status $ac_status" >&5
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ( exit $ac_status )
27630 gcc_cv_have_tls=no
27632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27634 CFLAGS="$chktls_save_CFLAGS"
27637 else
27638 echo "$as_me: program exited with status $ac_status" >&5
27639 echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27642 ( exit $ac_status )
27643 gcc_cv_have_tls=no
27645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27648 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27649 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27650 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27652 cat >>confdefs.h <<\_ACEOF
27653 #define HAVE_TLS 1
27654 _ACEOF
27658 # For _Unwind_GetIPInfo.
27662 ac_ext=cc
27663 ac_cpp='$CXXCPP $CPPFLAGS'
27664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27668 ac_save_CXXFLAGS="$CXXFLAGS"
27669 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27670 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27671 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27672 if test "${gcc_cv_getipinfo+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27676 if test x$gcc_no_link = xyes; then
27677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27679 { (exit 1); exit 1; }; }
27681 cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h. */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 extern "C" { extern void _Unwind_GetIPInfo(); }
27689 main ()
27691 _Unwind_GetIPInfo();
27693 return 0;
27695 _ACEOF
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27698 (eval $ac_link) 2>conftest.er1
27699 ac_status=$?
27700 grep -v '^ *+' conftest.er1 >conftest.err
27701 rm -f conftest.er1
27702 cat conftest.err >&5
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); } &&
27705 { ac_try='test -z "$ac_cxx_werror_flag"
27706 || test ! -s conftest.err'
27707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27709 ac_status=$?
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest$ac_exeext'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; }; then
27718 gcc_cv_getipinfo=yes
27719 else
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27723 gcc_cv_getipinfo=no
27725 rm -f conftest.err conftest.$ac_objext \
27726 conftest$ac_exeext conftest.$ac_ext
27730 if test $gcc_cv_getipinfo = yes; then
27732 cat >>confdefs.h <<\_ACEOF
27733 #define HAVE_GETIPINFO 1
27734 _ACEOF
27737 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27738 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27739 CXXFLAGS="$ac_save_CXXFLAGS"
27740 ac_ext=c
27741 ac_cpp='$CPP $CPPFLAGS'
27742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27748 # See if linker supports anonymous version scripts.
27749 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27750 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27751 if test "${libjava_cv_anon_version_script+set}" = set; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 else
27754 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27755 libjava_cv_anon_version_script=no
27756 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27757 echo '{ global: globalsymb*; local: *; };' > conftest.map
27758 if test x$gcc_no_link = xyes; then
27759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27761 { (exit 1); exit 1; }; }
27763 cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h. */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h. */
27769 void globalsymbol (void) {} void localsymbol (void) {}
27771 main ()
27775 return 0;
27777 _ACEOF
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27780 (eval $ac_link) 2>conftest.er1
27781 ac_status=$?
27782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag"
27788 || test ! -s conftest.err'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest$ac_exeext'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 libjava_cv_anon_version_script=yes
27801 else
27802 echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27806 rm -f conftest.err conftest.$ac_objext \
27807 conftest$ac_exeext conftest.$ac_ext
27808 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27811 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27812 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27815 if test "$libjava_cv_anon_version_script" = yes; then
27816 ANONVERSCRIPT_TRUE=
27817 ANONVERSCRIPT_FALSE='#'
27818 else
27819 ANONVERSCRIPT_TRUE='#'
27820 ANONVERSCRIPT_FALSE=
27824 # Check if linker supports static linking on a per library basis
27825 LD_START_STATIC_SPEC=
27826 LD_FINISH_STATIC_SPEC=
27827 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27828 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27829 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27830 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27836 here=`${PWDCMD-pwd}`
27839 # We get this from the environment.
27842 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27845 if test ${multilib} = yes; then
27846 multilib_arg="--enable-multilib"
27847 else
27848 multilib_arg=
27851 ac_config_files="$ac_config_files scripts/jar"
27853 cat >confcache <<\_ACEOF
27854 # This file is a shell script that caches the results of configure
27855 # tests run on this system so they can be shared between configure
27856 # scripts and configure runs, see configure's option --config-cache.
27857 # It is not useful on other systems. If it contains results you don't
27858 # want to keep, you may remove or edit it.
27860 # config.status only pays attention to the cache file if you give it
27861 # the --recheck option to rerun configure.
27863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27865 # following values.
27867 _ACEOF
27869 # The following way of writing the cache mishandles newlines in values,
27870 # but we know of no workaround that is simple, portable, and efficient.
27871 # So, don't put newlines in cache variables' values.
27872 # Ultrix sh set writes to stderr and can't be redirected directly,
27873 # and sets the high bit in the cache file unless we assign to the vars.
27875 (set) 2>&1 |
27876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27877 *ac_space=\ *)
27878 # `set' does not quote correctly, so add quotes (double-quote
27879 # substitution turns \\\\ into \\, and sed turns \\ into \).
27880 sed -n \
27881 "s/'/'\\\\''/g;
27882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27885 # `set' quotes correctly as required by POSIX, so do not add quotes.
27886 sed -n \
27887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27889 esac;
27891 sed '
27892 t clear
27893 : clear
27894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27895 t end
27896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27897 : end' >>confcache
27898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27899 if test -w $cache_file; then
27900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27901 cat confcache >$cache_file
27902 else
27903 echo "not updating unwritable cache $cache_file"
27906 rm -f confcache
27908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27909 # Let make expand exec_prefix.
27910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27914 # trailing colons and then remove the whole line if VPATH becomes empty
27915 # (actually we leave an empty line to preserve line numbers).
27916 if test "x$srcdir" = x.; then
27917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27918 s/:*\$(srcdir):*/:/;
27919 s/:*\${srcdir}:*/:/;
27920 s/:*@srcdir@:*/:/;
27921 s/^\([^=]*=[ ]*\):*/\1/;
27922 s/:*$//;
27923 s/^[^=]*=[ ]*$//;
27927 DEFS=-DHAVE_CONFIG_H
27929 ac_libobjs=
27930 ac_ltlibobjs=
27931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27932 # 1. Remove the extension, and $U if already installed.
27933 ac_i=`echo "$ac_i" |
27934 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27935 # 2. Add them.
27936 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27937 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27938 done
27939 LIBOBJS=$ac_libobjs
27941 LTLIBOBJS=$ac_ltlibobjs
27944 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27945 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27946 Usually this means the macro was only invoked conditionally." >&5
27947 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27948 Usually this means the macro was only invoked conditionally." >&2;}
27949 { (exit 1); exit 1; }; }
27951 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27952 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27953 Usually this means the macro was only invoked conditionally." >&5
27954 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27955 Usually this means the macro was only invoked conditionally." >&2;}
27956 { (exit 1); exit 1; }; }
27958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27960 Usually this means the macro was only invoked conditionally." >&5
27961 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27962 Usually this means the macro was only invoked conditionally." >&2;}
27963 { (exit 1); exit 1; }; }
27965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27966 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27967 Usually this means the macro was only invoked conditionally." >&5
27968 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27969 Usually this means the macro was only invoked conditionally." >&2;}
27970 { (exit 1); exit 1; }; }
27972 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27973 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27974 Usually this means the macro was only invoked conditionally." >&5
27975 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27976 Usually this means the macro was only invoked conditionally." >&2;}
27977 { (exit 1); exit 1; }; }
27979 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
27980 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
27981 Usually this means the macro was only invoked conditionally." >&5
27982 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
27983 Usually this means the macro was only invoked conditionally." >&2;}
27984 { (exit 1); exit 1; }; }
27986 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
27987 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
27988 Usually this means the macro was only invoked conditionally." >&5
27989 echo "$as_me: error: conditional \"X_AWT\" was never defined.
27990 Usually this means the macro was only invoked conditionally." >&2;}
27991 { (exit 1); exit 1; }; }
27993 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27994 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27995 Usually this means the macro was only invoked conditionally." >&5
27996 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27997 Usually this means the macro was only invoked conditionally." >&2;}
27998 { (exit 1); exit 1; }; }
28000 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28001 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28002 Usually this means the macro was only invoked conditionally." >&5
28003 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28004 Usually this means the macro was only invoked conditionally." >&2;}
28005 { (exit 1); exit 1; }; }
28007 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28008 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28009 Usually this means the macro was only invoked conditionally." >&5
28010 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28011 Usually this means the macro was only invoked conditionally." >&2;}
28012 { (exit 1); exit 1; }; }
28014 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28015 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28016 Usually this means the macro was only invoked conditionally." >&5
28017 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28018 Usually this means the macro was only invoked conditionally." >&2;}
28019 { (exit 1); exit 1; }; }
28021 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28022 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28023 Usually this means the macro was only invoked conditionally." >&5
28024 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28025 Usually this means the macro was only invoked conditionally." >&2;}
28026 { (exit 1); exit 1; }; }
28028 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28029 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28030 Usually this means the macro was only invoked conditionally." >&5
28031 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28032 Usually this means the macro was only invoked conditionally." >&2;}
28033 { (exit 1); exit 1; }; }
28035 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28036 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28037 Usually this means the macro was only invoked conditionally." >&5
28038 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28039 Usually this means the macro was only invoked conditionally." >&2;}
28040 { (exit 1); exit 1; }; }
28042 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28043 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28044 Usually this means the macro was only invoked conditionally." >&5
28045 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28046 Usually this means the macro was only invoked conditionally." >&2;}
28047 { (exit 1); exit 1; }; }
28049 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28050 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28051 Usually this means the macro was only invoked conditionally." >&5
28052 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28053 Usually this means the macro was only invoked conditionally." >&2;}
28054 { (exit 1); exit 1; }; }
28056 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28057 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28058 Usually this means the macro was only invoked conditionally." >&5
28059 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28060 Usually this means the macro was only invoked conditionally." >&2;}
28061 { (exit 1); exit 1; }; }
28063 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28064 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28065 Usually this means the macro was only invoked conditionally." >&5
28066 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28067 Usually this means the macro was only invoked conditionally." >&2;}
28068 { (exit 1); exit 1; }; }
28070 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28071 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28072 Usually this means the macro was only invoked conditionally." >&5
28073 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28074 Usually this means the macro was only invoked conditionally." >&2;}
28075 { (exit 1); exit 1; }; }
28077 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28078 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28079 Usually this means the macro was only invoked conditionally." >&5
28080 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28081 Usually this means the macro was only invoked conditionally." >&2;}
28082 { (exit 1); exit 1; }; }
28084 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28085 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28086 Usually this means the macro was only invoked conditionally." >&5
28087 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28088 Usually this means the macro was only invoked conditionally." >&2;}
28089 { (exit 1); exit 1; }; }
28091 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28092 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28093 Usually this means the macro was only invoked conditionally." >&5
28094 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28095 Usually this means the macro was only invoked conditionally." >&2;}
28096 { (exit 1); exit 1; }; }
28098 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28099 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28100 Usually this means the macro was only invoked conditionally." >&5
28101 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28102 Usually this means the macro was only invoked conditionally." >&2;}
28103 { (exit 1); exit 1; }; }
28105 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28106 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28107 Usually this means the macro was only invoked conditionally." >&5
28108 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28109 Usually this means the macro was only invoked conditionally." >&2;}
28110 { (exit 1); exit 1; }; }
28112 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28113 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28114 Usually this means the macro was only invoked conditionally." >&5
28115 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28116 Usually this means the macro was only invoked conditionally." >&2;}
28117 { (exit 1); exit 1; }; }
28119 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28120 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28121 Usually this means the macro was only invoked conditionally." >&5
28122 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28123 Usually this means the macro was only invoked conditionally." >&2;}
28124 { (exit 1); exit 1; }; }
28126 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28127 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28128 Usually this means the macro was only invoked conditionally." >&5
28129 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28130 Usually this means the macro was only invoked conditionally." >&2;}
28131 { (exit 1); exit 1; }; }
28133 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28134 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28135 Usually this means the macro was only invoked conditionally." >&5
28136 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28137 Usually this means the macro was only invoked conditionally." >&2;}
28138 { (exit 1); exit 1; }; }
28140 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28141 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28142 Usually this means the macro was only invoked conditionally." >&5
28143 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28144 Usually this means the macro was only invoked conditionally." >&2;}
28145 { (exit 1); exit 1; }; }
28147 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28148 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28149 Usually this means the macro was only invoked conditionally." >&5
28150 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28151 Usually this means the macro was only invoked conditionally." >&2;}
28152 { (exit 1); exit 1; }; }
28155 : ${CONFIG_STATUS=./config.status}
28156 ac_clean_files_save=$ac_clean_files
28157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28160 cat >$CONFIG_STATUS <<_ACEOF
28161 #! $SHELL
28162 # Generated by $as_me.
28163 # Run this file to recreate the current configuration.
28164 # Compiler output produced by configure, useful for debugging
28165 # configure, is in config.log if it exists.
28167 debug=false
28168 ac_cs_recheck=false
28169 ac_cs_silent=false
28170 SHELL=\${CONFIG_SHELL-$SHELL}
28171 _ACEOF
28173 cat >>$CONFIG_STATUS <<\_ACEOF
28174 ## --------------------- ##
28175 ## M4sh Initialization. ##
28176 ## --------------------- ##
28178 # Be Bourne compatible
28179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28180 emulate sh
28181 NULLCMD=:
28182 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28183 # is contrary to our usage. Disable this feature.
28184 alias -g '${1+"$@"}'='"$@"'
28185 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28186 set -o posix
28188 DUALCASE=1; export DUALCASE # for MKS sh
28190 # Support unset when possible.
28191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28192 as_unset=unset
28193 else
28194 as_unset=false
28198 # Work around bugs in pre-3.0 UWIN ksh.
28199 $as_unset ENV MAIL MAILPATH
28200 PS1='$ '
28201 PS2='> '
28202 PS4='+ '
28204 # NLS nuisances.
28205 for as_var in \
28206 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28207 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28208 LC_TELEPHONE LC_TIME
28210 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28211 eval $as_var=C; export $as_var
28212 else
28213 $as_unset $as_var
28215 done
28217 # Required to use basename.
28218 if expr a : '\(a\)' >/dev/null 2>&1; then
28219 as_expr=expr
28220 else
28221 as_expr=false
28224 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28225 as_basename=basename
28226 else
28227 as_basename=false
28231 # Name of the executable.
28232 as_me=`$as_basename "$0" ||
28233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28234 X"$0" : 'X\(//\)$' \| \
28235 X"$0" : 'X\(/\)$' \| \
28236 . : '\(.\)' 2>/dev/null ||
28237 echo X/"$0" |
28238 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28239 /^X\/\(\/\/\)$/{ s//\1/; q; }
28240 /^X\/\(\/\).*/{ s//\1/; q; }
28241 s/.*/./; q'`
28244 # PATH needs CR, and LINENO needs CR and PATH.
28245 # Avoid depending upon Character Ranges.
28246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28249 as_cr_digits='0123456789'
28250 as_cr_alnum=$as_cr_Letters$as_cr_digits
28252 # The user is always right.
28253 if test "${PATH_SEPARATOR+set}" != set; then
28254 echo "#! /bin/sh" >conf$$.sh
28255 echo "exit 0" >>conf$$.sh
28256 chmod +x conf$$.sh
28257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28258 PATH_SEPARATOR=';'
28259 else
28260 PATH_SEPARATOR=:
28262 rm -f conf$$.sh
28266 as_lineno_1=$LINENO
28267 as_lineno_2=$LINENO
28268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28269 test "x$as_lineno_1" != "x$as_lineno_2" &&
28270 test "x$as_lineno_3" = "x$as_lineno_2" || {
28271 # Find who we are. Look in the path if we contain no path at all
28272 # relative or not.
28273 case $0 in
28274 *[\\/]* ) as_myself=$0 ;;
28275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28276 for as_dir in $PATH
28278 IFS=$as_save_IFS
28279 test -z "$as_dir" && as_dir=.
28280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28281 done
28284 esac
28285 # We did not find ourselves, most probably we were run as `sh COMMAND'
28286 # in which case we are not to be found in the path.
28287 if test "x$as_myself" = x; then
28288 as_myself=$0
28290 if test ! -f "$as_myself"; then
28291 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28292 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28293 { (exit 1); exit 1; }; }
28295 case $CONFIG_SHELL in
28297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28298 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28300 IFS=$as_save_IFS
28301 test -z "$as_dir" && as_dir=.
28302 for as_base in sh bash ksh sh5; do
28303 case $as_dir in
28305 if ("$as_dir/$as_base" -c '
28306 as_lineno_1=$LINENO
28307 as_lineno_2=$LINENO
28308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28309 test "x$as_lineno_1" != "x$as_lineno_2" &&
28310 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28311 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28312 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28313 CONFIG_SHELL=$as_dir/$as_base
28314 export CONFIG_SHELL
28315 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28316 fi;;
28317 esac
28318 done
28319 done
28321 esac
28323 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28324 # uniformly replaced by the line number. The first 'sed' inserts a
28325 # line-number line before each line; the second 'sed' does the real
28326 # work. The second script uses 'N' to pair each line-number line
28327 # with the numbered line, and appends trailing '-' during
28328 # substitution so that $LINENO is not a special case at line end.
28329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28330 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28331 sed '=' <$as_myself |
28332 sed '
28334 s,$,-,
28335 : loop
28336 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28337 t loop
28338 s,-$,,
28339 s,^['$as_cr_digits']*\n,,
28340 ' >$as_me.lineno &&
28341 chmod +x $as_me.lineno ||
28342 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28343 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28344 { (exit 1); exit 1; }; }
28346 # Don't try to exec as it changes $[0], causing all sort of problems
28347 # (the dirname of $[0] is not the place where we might find the
28348 # original and so on. Autoconf is especially sensible to this).
28349 . ./$as_me.lineno
28350 # Exit status is that of the last command.
28351 exit
28355 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28356 *c*,-n*) ECHO_N= ECHO_C='
28357 ' ECHO_T=' ' ;;
28358 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28359 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28360 esac
28362 if expr a : '\(a\)' >/dev/null 2>&1; then
28363 as_expr=expr
28364 else
28365 as_expr=false
28368 rm -f conf$$ conf$$.exe conf$$.file
28369 echo >conf$$.file
28370 if ln -s conf$$.file conf$$ 2>/dev/null; then
28371 # We could just check for DJGPP; but this test a) works b) is more generic
28372 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28373 if test -f conf$$.exe; then
28374 # Don't use ln at all; we don't have any links
28375 as_ln_s='cp -p'
28376 else
28377 as_ln_s='ln -s'
28379 elif ln conf$$.file conf$$ 2>/dev/null; then
28380 as_ln_s=ln
28381 else
28382 as_ln_s='cp -p'
28384 rm -f conf$$ conf$$.exe conf$$.file
28386 if mkdir -p . 2>/dev/null; then
28387 as_mkdir_p=:
28388 else
28389 test -d ./-p && rmdir ./-p
28390 as_mkdir_p=false
28393 as_executable_p="test -f"
28395 # Sed expression to map a string onto a valid CPP name.
28396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28398 # Sed expression to map a string onto a valid variable name.
28399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28402 # IFS
28403 # We need space, tab and new line, in precisely that order.
28404 as_nl='
28406 IFS=" $as_nl"
28408 # CDPATH.
28409 $as_unset CDPATH
28411 exec 6>&1
28413 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28414 # report actual input values of CONFIG_FILES etc. instead of their
28415 # values after options handling. Logging --version etc. is OK.
28416 exec 5>>config.log
28418 echo
28419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28420 ## Running $as_me. ##
28421 _ASBOX
28422 } >&5
28423 cat >&5 <<_CSEOF
28425 This file was extended by libjava $as_me version-unused, which was
28426 generated by GNU Autoconf 2.59. Invocation command line was
28428 CONFIG_FILES = $CONFIG_FILES
28429 CONFIG_HEADERS = $CONFIG_HEADERS
28430 CONFIG_LINKS = $CONFIG_LINKS
28431 CONFIG_COMMANDS = $CONFIG_COMMANDS
28432 $ $0 $@
28434 _CSEOF
28435 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28436 echo >&5
28437 _ACEOF
28439 # Files that config.status was made for.
28440 if test -n "$ac_config_files"; then
28441 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28444 if test -n "$ac_config_headers"; then
28445 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28448 if test -n "$ac_config_links"; then
28449 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28452 if test -n "$ac_config_commands"; then
28453 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28456 cat >>$CONFIG_STATUS <<\_ACEOF
28458 ac_cs_usage="\
28459 \`$as_me' instantiates files from templates according to the
28460 current configuration.
28462 Usage: $0 [OPTIONS] [FILE]...
28464 -h, --help print this help, then exit
28465 -V, --version print version number, then exit
28466 -q, --quiet do not print progress messages
28467 -d, --debug don't remove temporary files
28468 --recheck update $as_me by reconfiguring in the same conditions
28469 --file=FILE[:TEMPLATE]
28470 instantiate the configuration file FILE
28471 --header=FILE[:TEMPLATE]
28472 instantiate the configuration header FILE
28474 Configuration files:
28475 $config_files
28477 Configuration headers:
28478 $config_headers
28480 Configuration links:
28481 $config_links
28483 Configuration commands:
28484 $config_commands
28486 Report bugs to <bug-autoconf@gnu.org>."
28487 _ACEOF
28489 cat >>$CONFIG_STATUS <<_ACEOF
28490 ac_cs_version="\\
28491 libjava config.status version-unused
28492 configured by $0, generated by GNU Autoconf 2.59,
28493 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28495 Copyright (C) 2003 Free Software Foundation, Inc.
28496 This config.status script is free software; the Free Software Foundation
28497 gives unlimited permission to copy, distribute and modify it."
28498 srcdir=$srcdir
28499 INSTALL="$INSTALL"
28500 _ACEOF
28502 cat >>$CONFIG_STATUS <<\_ACEOF
28503 # If no file are specified by the user, then we need to provide default
28504 # value. By we need to know if files were specified by the user.
28505 ac_need_defaults=:
28506 while test $# != 0
28508 case $1 in
28509 --*=*)
28510 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28511 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28512 ac_shift=:
28515 ac_option=$1
28516 ac_optarg=$2
28517 ac_shift=shift
28519 *) # This is not an option, so the user has probably given explicit
28520 # arguments.
28521 ac_option=$1
28522 ac_need_defaults=false;;
28523 esac
28525 case $ac_option in
28526 # Handling of the options.
28527 _ACEOF
28528 cat >>$CONFIG_STATUS <<\_ACEOF
28529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28530 ac_cs_recheck=: ;;
28531 --version | --vers* | -V )
28532 echo "$ac_cs_version"; exit 0 ;;
28533 --he | --h)
28534 # Conflict between --help and --header
28535 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28536 Try \`$0 --help' for more information." >&5
28537 echo "$as_me: error: ambiguous option: $1
28538 Try \`$0 --help' for more information." >&2;}
28539 { (exit 1); exit 1; }; };;
28540 --help | --hel | -h )
28541 echo "$ac_cs_usage"; exit 0 ;;
28542 --debug | --d* | -d )
28543 debug=: ;;
28544 --file | --fil | --fi | --f )
28545 $ac_shift
28546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28547 ac_need_defaults=false;;
28548 --header | --heade | --head | --hea )
28549 $ac_shift
28550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28551 ac_need_defaults=false;;
28552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28554 ac_cs_silent=: ;;
28556 # This is an error.
28557 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28558 Try \`$0 --help' for more information." >&5
28559 echo "$as_me: error: unrecognized option: $1
28560 Try \`$0 --help' for more information." >&2;}
28561 { (exit 1); exit 1; }; } ;;
28563 *) ac_config_targets="$ac_config_targets $1" ;;
28565 esac
28566 shift
28567 done
28569 ac_configure_extra_args=
28571 if $ac_cs_silent; then
28572 exec 6>/dev/null
28573 ac_configure_extra_args="$ac_configure_extra_args --silent"
28576 _ACEOF
28577 cat >>$CONFIG_STATUS <<_ACEOF
28578 if \$ac_cs_recheck; then
28579 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28580 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28583 _ACEOF
28585 cat >>$CONFIG_STATUS <<_ACEOF
28587 # INIT-COMMANDS section.
28591 srcdir="$srcdir"
28592 host="$host"
28593 target="$target"
28594 with_multisubdir="$with_multisubdir"
28595 with_multisrctop="$with_multisrctop"
28596 with_target_subdir="$with_target_subdir"
28597 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28598 multi_basedir="$multi_basedir"
28599 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28600 CC="$CC"
28601 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28604 # The HP-UX ksh and POSIX shell print the target directory to stdout
28605 # if CDPATH is set.
28606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28608 sed_quote_subst='$sed_quote_subst'
28609 double_quote_subst='$double_quote_subst'
28610 delay_variable_subst='$delay_variable_subst'
28611 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28612 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28613 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28614 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28615 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28616 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28617 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28618 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28619 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28620 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28621 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28622 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28623 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28624 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28625 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28626 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28627 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28628 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28629 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28630 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28631 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28632 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28633 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28634 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28635 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28636 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28637 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28638 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28639 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28640 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28641 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28642 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28643 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28644 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28645 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28646 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28647 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28648 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28649 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28650 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28651 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28652 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28653 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28654 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"`'
28655 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28656 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28657 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28658 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28659 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28660 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28661 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28662 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28663 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28664 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28665 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28666 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28667 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28668 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28669 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28670 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28671 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28672 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28673 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28674 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28675 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28676 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28677 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28678 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28679 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28680 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28681 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28682 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28683 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28684 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28685 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28686 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28687 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28688 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28689 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28690 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28691 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28692 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28693 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28694 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28695 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28696 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28697 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28698 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28699 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28700 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28701 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28702 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28703 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28704 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28705 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28706 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28707 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28708 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28709 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28710 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28711 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28712 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28713 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28714 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28715 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28716 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28717 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28718 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28719 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28720 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28721 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28722 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28723 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28724 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28725 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28726 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28727 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28728 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28729 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28730 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28731 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28732 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28733 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28734 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28736 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28737 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28738 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28739 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28740 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28741 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28742 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28743 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28744 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28745 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28746 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28747 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28748 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28749 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28750 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28751 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28752 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28753 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28754 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28755 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28756 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28757 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28758 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28759 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28760 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28761 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28762 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28763 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28764 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28765 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28766 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28767 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28768 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28769 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28770 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28771 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28772 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28773 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28774 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28775 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28776 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28777 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28778 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28779 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28780 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28781 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28782 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28783 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28784 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28785 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28786 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28787 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28788 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28789 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28790 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28791 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28792 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28793 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28794 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28795 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28796 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28797 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28798 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28799 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28800 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28801 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28802 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28803 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28804 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28805 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28806 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28807 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28808 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28809 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28810 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28811 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28812 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28813 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28814 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28815 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28816 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28817 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28818 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28820 LTCC='$LTCC'
28821 LTCFLAGS='$LTCFLAGS'
28822 compiler='$compiler_DEFAULT'
28824 # Quote evaled strings.
28825 for var in SED \
28826 GREP \
28827 EGREP \
28828 FGREP \
28829 LD \
28830 NM \
28831 LN_S \
28832 lt_SP2NL \
28833 lt_NL2SP \
28834 reload_flag \
28835 deplibs_check_method \
28836 file_magic_cmd \
28837 AR \
28838 AR_FLAGS \
28839 STRIP \
28840 RANLIB \
28841 CC \
28842 CFLAGS \
28843 compiler \
28844 lt_cv_sys_global_symbol_pipe \
28845 lt_cv_sys_global_symbol_to_cdecl \
28846 lt_cv_sys_global_symbol_to_c_name_address \
28847 SHELL \
28848 ECHO \
28849 lt_prog_compiler_no_builtin_flag \
28850 lt_prog_compiler_wl \
28851 lt_prog_compiler_pic \
28852 lt_prog_compiler_static \
28853 lt_cv_prog_compiler_c_o \
28854 need_locks \
28855 shrext_cmds \
28856 export_dynamic_flag_spec \
28857 whole_archive_flag_spec \
28858 compiler_needs_object \
28859 with_gnu_ld \
28860 allow_undefined_flag \
28861 no_undefined_flag \
28862 hardcode_libdir_flag_spec \
28863 hardcode_libdir_flag_spec_ld \
28864 hardcode_libdir_separator \
28865 fix_srcfile_path \
28866 exclude_expsyms \
28867 include_expsyms \
28868 file_list_spec \
28869 variables_saved_for_relink \
28870 libname_spec \
28871 library_names_spec \
28872 soname_spec \
28873 finish_eval \
28874 old_striplib \
28875 striplib \
28876 predep_objects \
28877 postdep_objects \
28878 predeps \
28879 postdeps \
28880 compiler_lib_search_path \
28881 LD_CXX \
28882 LD_GCJ \
28883 compiler_CXX \
28884 compiler_GCJ \
28885 lt_prog_compiler_no_builtin_flag_CXX \
28886 lt_prog_compiler_no_builtin_flag_GCJ \
28887 lt_prog_compiler_wl_CXX \
28888 lt_prog_compiler_wl_GCJ \
28889 lt_prog_compiler_pic_CXX \
28890 lt_prog_compiler_pic_GCJ \
28891 lt_prog_compiler_static_CXX \
28892 lt_prog_compiler_static_GCJ \
28893 lt_cv_prog_compiler_c_o_CXX \
28894 lt_cv_prog_compiler_c_o_GCJ \
28895 export_dynamic_flag_spec_CXX \
28896 export_dynamic_flag_spec_GCJ \
28897 whole_archive_flag_spec_CXX \
28898 whole_archive_flag_spec_GCJ \
28899 compiler_needs_object_CXX \
28900 compiler_needs_object_GCJ \
28901 with_gnu_ld_CXX \
28902 with_gnu_ld_GCJ \
28903 allow_undefined_flag_CXX \
28904 allow_undefined_flag_GCJ \
28905 no_undefined_flag_CXX \
28906 no_undefined_flag_GCJ \
28907 hardcode_libdir_flag_spec_CXX \
28908 hardcode_libdir_flag_spec_GCJ \
28909 hardcode_libdir_flag_spec_ld_CXX \
28910 hardcode_libdir_flag_spec_ld_GCJ \
28911 hardcode_libdir_separator_CXX \
28912 hardcode_libdir_separator_GCJ \
28913 fix_srcfile_path_CXX \
28914 fix_srcfile_path_GCJ \
28915 exclude_expsyms_CXX \
28916 exclude_expsyms_GCJ \
28917 include_expsyms_CXX \
28918 include_expsyms_GCJ \
28919 file_list_spec_CXX \
28920 file_list_spec_GCJ \
28921 predep_objects_CXX \
28922 predep_objects_GCJ \
28923 postdep_objects_CXX \
28924 postdep_objects_GCJ \
28925 predeps_CXX \
28926 predeps_GCJ \
28927 postdeps_CXX \
28928 postdeps_GCJ \
28929 compiler_lib_search_path_CXX \
28930 compiler_lib_search_path_GCJ; do
28931 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28932 *[\\\\\\\`\\"\\\$]*)
28933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28938 esac
28939 done
28941 # Double-quote double-evaled strings.
28942 for var in reload_cmds \
28943 old_postinstall_cmds \
28944 old_postuninstall_cmds \
28945 old_archive_cmds \
28946 extract_expsyms_cmds \
28947 old_archive_from_new_cmds \
28948 old_archive_from_expsyms_cmds \
28949 archive_cmds \
28950 archive_expsym_cmds \
28951 module_cmds \
28952 module_expsym_cmds \
28953 export_symbols_cmds \
28954 prelink_cmds \
28955 postinstall_cmds \
28956 postuninstall_cmds \
28957 finish_cmds \
28958 sys_lib_search_path_spec \
28959 sys_lib_dlsearch_path_spec \
28960 old_archive_cmds_CXX \
28961 old_archive_cmds_GCJ \
28962 old_archive_from_new_cmds_CXX \
28963 old_archive_from_new_cmds_GCJ \
28964 old_archive_from_expsyms_cmds_CXX \
28965 old_archive_from_expsyms_cmds_GCJ \
28966 archive_cmds_CXX \
28967 archive_cmds_GCJ \
28968 archive_expsym_cmds_CXX \
28969 archive_expsym_cmds_GCJ \
28970 module_cmds_CXX \
28971 module_cmds_GCJ \
28972 module_expsym_cmds_CXX \
28973 module_expsym_cmds_GCJ \
28974 export_symbols_cmds_CXX \
28975 export_symbols_cmds_GCJ \
28976 prelink_cmds_CXX \
28977 prelink_cmds_GCJ; do
28978 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28979 *[\\\\\\\`\\"\\\$]*)
28980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28985 esac
28986 done
28988 # Fix-up fallback echo if it was mangled by the above quoting rules.
28989 case \$lt_ECHO in
28990 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28992 esac
28994 ac_aux_dir='$ac_aux_dir'
28995 xsi_shell='$xsi_shell'
28996 lt_shell_append='$lt_shell_append'
28998 # See if we are running on zsh, and set the options which allow our
28999 # commands through without removal of \ escapes INIT.
29000 if test -n "\${ZSH_VERSION+set}" ; then
29001 setopt NO_GLOB_SUBST
29005 PACKAGE='$PACKAGE'
29006 VERSION='$VERSION'
29007 TIMESTAMP='$TIMESTAMP'
29008 RM='$RM'
29009 ofile='$ofile'
29018 _ACEOF
29022 cat >>$CONFIG_STATUS <<\_ACEOF
29023 for ac_config_target in $ac_config_targets
29025 case "$ac_config_target" in
29026 # Handling of arguments.
29027 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29028 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29029 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29030 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29031 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29032 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29033 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29034 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29035 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29036 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29037 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29038 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29039 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29040 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29041 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29042 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29043 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29044 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29045 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29046 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29047 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29048 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29049 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29050 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29051 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29052 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29053 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29054 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29055 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29056 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29057 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29058 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29059 { (exit 1); exit 1; }; };;
29060 esac
29061 done
29063 # If the user did not use the arguments to specify the items to instantiate,
29064 # then the envvar interface is used. Set only those that are not.
29065 # We use the long form for the default assignment because of an extremely
29066 # bizarre bug on SunOS 4.1.3.
29067 if $ac_need_defaults; then
29068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29070 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29074 # Have a temporary directory for convenience. Make it in the build tree
29075 # simply because there is no reason to put it here, and in addition,
29076 # creating and moving files from /tmp can sometimes cause problems.
29077 # Create a temporary directory, and hook for its removal unless debugging.
29078 $debug ||
29080 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29081 trap '{ (exit 1); exit 1; }' 1 2 13 15
29084 # Create a (secure) tmp directory for tmp files.
29087 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29088 test -n "$tmp" && test -d "$tmp"
29089 } ||
29091 tmp=./confstat$$-$RANDOM
29092 (umask 077 && mkdir $tmp)
29093 } ||
29095 echo "$me: cannot create a temporary directory in ." >&2
29096 { (exit 1); exit 1; }
29099 _ACEOF
29101 cat >>$CONFIG_STATUS <<_ACEOF
29104 # CONFIG_FILES section.
29107 # No need to generate the scripts if there are no CONFIG_FILES.
29108 # This happens for instance when ./config.status config.h
29109 if test -n "\$CONFIG_FILES"; then
29110 # Protect against being on the right side of a sed subst in config.status.
29111 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29112 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29113 s,@SHELL@,$SHELL,;t t
29114 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29115 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29116 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29117 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29118 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29119 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29120 s,@exec_prefix@,$exec_prefix,;t t
29121 s,@prefix@,$prefix,;t t
29122 s,@program_transform_name@,$program_transform_name,;t t
29123 s,@bindir@,$bindir,;t t
29124 s,@sbindir@,$sbindir,;t t
29125 s,@libexecdir@,$libexecdir,;t t
29126 s,@datadir@,$datadir,;t t
29127 s,@sysconfdir@,$sysconfdir,;t t
29128 s,@sharedstatedir@,$sharedstatedir,;t t
29129 s,@localstatedir@,$localstatedir,;t t
29130 s,@libdir@,$libdir,;t t
29131 s,@includedir@,$includedir,;t t
29132 s,@oldincludedir@,$oldincludedir,;t t
29133 s,@infodir@,$infodir,;t t
29134 s,@mandir@,$mandir,;t t
29135 s,@build_alias@,$build_alias,;t t
29136 s,@host_alias@,$host_alias,;t t
29137 s,@target_alias@,$target_alias,;t t
29138 s,@DEFS@,$DEFS,;t t
29139 s,@ECHO_C@,$ECHO_C,;t t
29140 s,@ECHO_N@,$ECHO_N,;t t
29141 s,@ECHO_T@,$ECHO_T,;t t
29142 s,@LIBS@,$LIBS,;t t
29143 s,@build@,$build,;t t
29144 s,@build_cpu@,$build_cpu,;t t
29145 s,@build_vendor@,$build_vendor,;t t
29146 s,@build_os@,$build_os,;t t
29147 s,@build_libsubdir@,$build_libsubdir,;t t
29148 s,@build_subdir@,$build_subdir,;t t
29149 s,@host_subdir@,$host_subdir,;t t
29150 s,@target_subdir@,$target_subdir,;t t
29151 s,@multi_basedir@,$multi_basedir,;t t
29152 s,@host@,$host,;t t
29153 s,@host_cpu@,$host_cpu,;t t
29154 s,@host_vendor@,$host_vendor,;t t
29155 s,@host_os@,$host_os,;t t
29156 s,@target@,$target,;t t
29157 s,@target_cpu@,$target_cpu,;t t
29158 s,@target_vendor@,$target_vendor,;t t
29159 s,@target_os@,$target_os,;t t
29160 s,@target_noncanonical@,$target_noncanonical,;t t
29161 s,@LN_S@,$LN_S,;t t
29162 s,@mkinstalldirs@,$mkinstalldirs,;t t
29163 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29164 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29165 s,@CC@,$CC,;t t
29166 s,@ac_ct_CC@,$ac_ct_CC,;t t
29167 s,@EXEEXT@,$EXEEXT,;t t
29168 s,@OBJEXT@,$OBJEXT,;t t
29169 s,@CXX@,$CXX,;t t
29170 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29171 s,@CFLAGS@,$CFLAGS,;t t
29172 s,@CXXFLAGS@,$CXXFLAGS,;t t
29173 s,@LDFLAGS@,$LDFLAGS,;t t
29174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29175 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29177 s,@CYGPATH_W@,$CYGPATH_W,;t t
29178 s,@PACKAGE@,$PACKAGE,;t t
29179 s,@VERSION@,$VERSION,;t t
29180 s,@ACLOCAL@,$ACLOCAL,;t t
29181 s,@AUTOCONF@,$AUTOCONF,;t t
29182 s,@AUTOMAKE@,$AUTOMAKE,;t t
29183 s,@AUTOHEADER@,$AUTOHEADER,;t t
29184 s,@MAKEINFO@,$MAKEINFO,;t t
29185 s,@install_sh@,$install_sh,;t t
29186 s,@STRIP@,$STRIP,;t t
29187 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29188 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29189 s,@mkdir_p@,$mkdir_p,;t t
29190 s,@AWK@,$AWK,;t t
29191 s,@SET_MAKE@,$SET_MAKE,;t t
29192 s,@am__leading_dot@,$am__leading_dot,;t t
29193 s,@AMTAR@,$AMTAR,;t t
29194 s,@am__tar@,$am__tar,;t t
29195 s,@am__untar@,$am__untar,;t t
29196 s,@DEPDIR@,$DEPDIR,;t t
29197 s,@am__include@,$am__include,;t t
29198 s,@am__quote@,$am__quote,;t t
29199 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29200 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29201 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29202 s,@CCDEPMODE@,$CCDEPMODE,;t t
29203 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29204 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29205 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29206 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29207 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29208 s,@AS@,$AS,;t t
29209 s,@ac_ct_AS@,$ac_ct_AS,;t t
29210 s,@LD@,$LD,;t t
29211 s,@ac_ct_LD@,$ac_ct_LD,;t t
29212 s,@AR@,$AR,;t t
29213 s,@ac_ct_AR@,$ac_ct_AR,;t t
29214 s,@RANLIB@,$RANLIB,;t t
29215 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29216 s,@JAR@,$JAR,;t t
29217 s,@ZIP@,$ZIP,;t t
29218 s,@UNZIP@,$UNZIP,;t t
29219 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29220 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29221 s,@MAINT@,$MAINT,;t t
29222 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29223 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29224 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29225 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29226 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29227 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29228 s,@TOOLKIT@,$TOOLKIT,;t t
29229 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29230 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29231 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29232 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29233 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29234 s,@GCJH@,$GCJH,;t t
29235 s,@host_exeext@,$host_exeext,;t t
29236 s,@INCLTDL@,$INCLTDL,;t t
29237 s,@LIBLTDL@,$LIBLTDL,;t t
29238 s,@DIRLTDL@,$DIRLTDL,;t t
29239 s,@LIBTOOL@,$LIBTOOL,;t t
29240 s,@SED@,$SED,;t t
29241 s,@EGREP@,$EGREP,;t t
29242 s,@FGREP@,$FGREP,;t t
29243 s,@GREP@,$GREP,;t t
29244 s,@DUMPBIN@,$DUMPBIN,;t t
29245 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29246 s,@NM@,$NM,;t t
29247 s,@lt_ECHO@,$lt_ECHO,;t t
29248 s,@CPP@,$CPP,;t t
29249 s,@CPPFLAGS@,$CPPFLAGS,;t t
29250 s,@CXXCPP@,$CXXCPP,;t t
29251 s,@GCJ@,$GCJ,;t t
29252 s,@GCJFLAGS@,$GCJFLAGS,;t t
29253 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29254 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29255 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29256 s,@subdirs@,$subdirs,;t t
29257 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29258 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29259 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29260 s,@ECJ_JAR@,$ECJ_JAR,;t t
29261 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29262 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29263 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29264 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29265 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29266 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29267 s,@JAVA_HOME@,$JAVA_HOME,;t t
29268 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29269 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29270 s,@INTERPRETER@,$INTERPRETER,;t t
29271 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29272 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29273 s,@LIBFFI@,$LIBFFI,;t t
29274 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29275 s,@PLATFORM@,$PLATFORM,;t t
29276 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29277 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29278 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29279 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29280 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29281 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29282 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29283 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29284 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29285 s,@X_CFLAGS@,$X_CFLAGS,;t t
29286 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29287 s,@X_LIBS@,$X_LIBS,;t t
29288 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29289 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29290 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29291 s,@extra_ldflags@,$extra_ldflags,;t t
29292 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29293 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29294 s,@GCLIBS@,$GCLIBS,;t t
29295 s,@GCINCS@,$GCINCS,;t t
29296 s,@GCDEPS@,$GCDEPS,;t t
29297 s,@GCSPEC@,$GCSPEC,;t t
29298 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29299 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29300 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29301 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29302 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29303 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29304 s,@THREADLIBS@,$THREADLIBS,;t t
29305 s,@THREADINCS@,$THREADINCS,;t t
29306 s,@THREADDEPS@,$THREADDEPS,;t t
29307 s,@THREADSPEC@,$THREADSPEC,;t t
29308 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29309 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29310 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29311 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29312 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29313 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29314 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29315 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29316 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29317 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29318 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29319 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29320 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29321 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29322 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29323 s,@LIBICONV@,$LIBICONV,;t t
29324 s,@LTLIBICONV@,$LTLIBICONV,;t t
29325 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29326 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29327 s,@GTK_LIBS@,$GTK_LIBS,;t t
29328 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29329 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29330 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29331 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29332 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29333 s,@ZLIBS@,$ZLIBS,;t t
29334 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29335 s,@ZINCS@,$ZINCS,;t t
29336 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29337 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29338 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29339 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29340 s,@IEEESPEC@,$IEEESPEC,;t t
29341 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29342 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29343 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29344 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29345 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29346 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29347 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29348 s,@toolexecdir@,$toolexecdir,;t t
29349 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29350 s,@toolexeclibdir@,$toolexeclibdir,;t t
29351 s,@GCJVERSION@,$GCJVERSION,;t t
29352 s,@dbexecdir@,$dbexecdir,;t t
29353 s,@gxx_include_dir@,$gxx_include_dir,;t t
29354 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29355 s,@PERL@,$PERL,;t t
29356 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29357 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29358 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29359 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29360 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29361 s,@here@,$here,;t t
29362 s,@LIBOBJS@,$LIBOBJS,;t t
29363 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29364 CEOF
29366 _ACEOF
29368 cat >>$CONFIG_STATUS <<\_ACEOF
29369 # Split the substitutions into bite-sized pieces for seds with
29370 # small command number limits, like on Digital OSF/1 and HP-UX.
29371 ac_max_sed_lines=48
29372 ac_sed_frag=1 # Number of current file.
29373 ac_beg=1 # First line for current file.
29374 ac_end=$ac_max_sed_lines # Line after last line for current file.
29375 ac_more_lines=:
29376 ac_sed_cmds=
29377 while $ac_more_lines; do
29378 if test $ac_beg -gt 1; then
29379 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29380 else
29381 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29383 if test ! -s $tmp/subs.frag; then
29384 ac_more_lines=false
29385 else
29386 # The purpose of the label and of the branching condition is to
29387 # speed up the sed processing (if there are no `@' at all, there
29388 # is no need to browse any of the substitutions).
29389 # These are the two extra sed commands mentioned above.
29390 (echo ':t
29391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29392 if test -z "$ac_sed_cmds"; then
29393 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29394 else
29395 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29397 ac_sed_frag=`expr $ac_sed_frag + 1`
29398 ac_beg=$ac_end
29399 ac_end=`expr $ac_end + $ac_max_sed_lines`
29401 done
29402 if test -z "$ac_sed_cmds"; then
29403 ac_sed_cmds=cat
29405 fi # test -n "$CONFIG_FILES"
29407 _ACEOF
29408 cat >>$CONFIG_STATUS <<\_ACEOF
29409 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29411 case $ac_file in
29412 - | *:- | *:-:* ) # input from stdin
29413 cat >$tmp/stdin
29414 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29416 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29418 * ) ac_file_in=$ac_file.in ;;
29419 esac
29421 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29422 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29424 X"$ac_file" : 'X\(//\)[^/]' \| \
29425 X"$ac_file" : 'X\(//\)$' \| \
29426 X"$ac_file" : 'X\(/\)' \| \
29427 . : '\(.\)' 2>/dev/null ||
29428 echo X"$ac_file" |
29429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29431 /^X\(\/\/\)$/{ s//\1/; q; }
29432 /^X\(\/\).*/{ s//\1/; q; }
29433 s/.*/./; q'`
29434 { if $as_mkdir_p; then
29435 mkdir -p "$ac_dir"
29436 else
29437 as_dir="$ac_dir"
29438 as_dirs=
29439 while test ! -d "$as_dir"; do
29440 as_dirs="$as_dir $as_dirs"
29441 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29443 X"$as_dir" : 'X\(//\)[^/]' \| \
29444 X"$as_dir" : 'X\(//\)$' \| \
29445 X"$as_dir" : 'X\(/\)' \| \
29446 . : '\(.\)' 2>/dev/null ||
29447 echo X"$as_dir" |
29448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29450 /^X\(\/\/\)$/{ s//\1/; q; }
29451 /^X\(\/\).*/{ s//\1/; q; }
29452 s/.*/./; q'`
29453 done
29454 test ! -n "$as_dirs" || mkdir $as_dirs
29455 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29456 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29457 { (exit 1); exit 1; }; }; }
29459 ac_builddir=.
29461 if test "$ac_dir" != .; then
29462 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29463 # A "../" for each directory in $ac_dir_suffix.
29464 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29465 else
29466 ac_dir_suffix= ac_top_builddir=
29469 case $srcdir in
29470 .) # No --srcdir option. We are building in place.
29471 ac_srcdir=.
29472 if test -z "$ac_top_builddir"; then
29473 ac_top_srcdir=.
29474 else
29475 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29476 fi ;;
29477 [\\/]* | ?:[\\/]* ) # Absolute path.
29478 ac_srcdir=$srcdir$ac_dir_suffix;
29479 ac_top_srcdir=$srcdir ;;
29480 *) # Relative path.
29481 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29482 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29483 esac
29485 # Do not use `cd foo && pwd` to compute absolute paths, because
29486 # the directories may not exist.
29487 case `pwd` in
29488 .) ac_abs_builddir="$ac_dir";;
29490 case "$ac_dir" in
29491 .) ac_abs_builddir=`pwd`;;
29492 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29493 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29494 esac;;
29495 esac
29496 case $ac_abs_builddir in
29497 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29499 case ${ac_top_builddir}. in
29500 .) ac_abs_top_builddir=$ac_abs_builddir;;
29501 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29502 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29503 esac;;
29504 esac
29505 case $ac_abs_builddir in
29506 .) ac_abs_srcdir=$ac_srcdir;;
29508 case $ac_srcdir in
29509 .) ac_abs_srcdir=$ac_abs_builddir;;
29510 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29511 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29512 esac;;
29513 esac
29514 case $ac_abs_builddir in
29515 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29517 case $ac_top_srcdir in
29518 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29519 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29520 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29521 esac;;
29522 esac
29525 case $INSTALL in
29526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29527 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29528 esac
29530 if test x"$ac_file" != x-; then
29531 { echo "$as_me:$LINENO: creating $ac_file" >&5
29532 echo "$as_me: creating $ac_file" >&6;}
29533 rm -f "$ac_file"
29535 # Let's still pretend it is `configure' which instantiates (i.e., don't
29536 # use $as_me), people would be surprised to read:
29537 # /* config.h. Generated by config.status. */
29538 if test x"$ac_file" = x-; then
29539 configure_input=
29540 else
29541 configure_input="$ac_file. "
29543 configure_input=$configure_input"Generated from `echo $ac_file_in |
29544 sed 's,.*/,,'` by configure."
29546 # First look for the input files in the build tree, otherwise in the
29547 # src tree.
29548 ac_file_inputs=`IFS=:
29549 for f in $ac_file_in; do
29550 case $f in
29551 -) echo $tmp/stdin ;;
29552 [\\/$]*)
29553 # Absolute (can't be DOS-style, as IFS=:)
29554 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29555 echo "$as_me: error: cannot find input file: $f" >&2;}
29556 { (exit 1); exit 1; }; }
29557 echo "$f";;
29558 *) # Relative
29559 if test -f "$f"; then
29560 # Build tree
29561 echo "$f"
29562 elif test -f "$srcdir/$f"; then
29563 # Source tree
29564 echo "$srcdir/$f"
29565 else
29566 # /dev/null tree
29567 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29568 echo "$as_me: error: cannot find input file: $f" >&2;}
29569 { (exit 1); exit 1; }; }
29570 fi;;
29571 esac
29572 done` || { (exit 1); exit 1; }
29573 _ACEOF
29574 cat >>$CONFIG_STATUS <<_ACEOF
29575 sed "$ac_vpsub
29576 $extrasub
29577 _ACEOF
29578 cat >>$CONFIG_STATUS <<\_ACEOF
29580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29581 s,@configure_input@,$configure_input,;t t
29582 s,@srcdir@,$ac_srcdir,;t t
29583 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29584 s,@top_srcdir@,$ac_top_srcdir,;t t
29585 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29586 s,@builddir@,$ac_builddir,;t t
29587 s,@abs_builddir@,$ac_abs_builddir,;t t
29588 s,@top_builddir@,$ac_top_builddir,;t t
29589 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29590 s,@INSTALL@,$ac_INSTALL,;t t
29591 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29592 rm -f $tmp/stdin
29593 if test x"$ac_file" != x-; then
29594 mv $tmp/out $ac_file
29595 else
29596 cat $tmp/out
29597 rm -f $tmp/out
29600 # Run the commands associated with the file.
29601 case $ac_file in
29602 scripts/jar ) chmod +x scripts/jar ;;
29603 esac
29604 done
29605 _ACEOF
29606 cat >>$CONFIG_STATUS <<\_ACEOF
29609 # CONFIG_HEADER section.
29612 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29613 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29615 # ac_d sets the value in "#define NAME VALUE" lines.
29616 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29617 ac_dB='[ ].*$,\1#\2'
29618 ac_dC=' '
29619 ac_dD=',;t'
29620 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29621 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29622 ac_uB='$,\1#\2define\3'
29623 ac_uC=' '
29624 ac_uD=',;t'
29626 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29628 case $ac_file in
29629 - | *:- | *:-:* ) # input from stdin
29630 cat >$tmp/stdin
29631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29635 * ) ac_file_in=$ac_file.in ;;
29636 esac
29638 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29639 echo "$as_me: creating $ac_file" >&6;}
29641 # First look for the input files in the build tree, otherwise in the
29642 # src tree.
29643 ac_file_inputs=`IFS=:
29644 for f in $ac_file_in; do
29645 case $f in
29646 -) echo $tmp/stdin ;;
29647 [\\/$]*)
29648 # Absolute (can't be DOS-style, as IFS=:)
29649 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29650 echo "$as_me: error: cannot find input file: $f" >&2;}
29651 { (exit 1); exit 1; }; }
29652 # Do quote $f, to prevent DOS paths from being IFS'd.
29653 echo "$f";;
29654 *) # Relative
29655 if test -f "$f"; then
29656 # Build tree
29657 echo "$f"
29658 elif test -f "$srcdir/$f"; then
29659 # Source tree
29660 echo "$srcdir/$f"
29661 else
29662 # /dev/null tree
29663 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29664 echo "$as_me: error: cannot find input file: $f" >&2;}
29665 { (exit 1); exit 1; }; }
29666 fi;;
29667 esac
29668 done` || { (exit 1); exit 1; }
29669 # Remove the trailing spaces.
29670 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29672 _ACEOF
29674 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29675 # `conftest.undefs', that substitutes the proper values into
29676 # config.h.in to produce config.h. The first handles `#define'
29677 # templates, and the second `#undef' templates.
29678 # And first: Protect against being on the right side of a sed subst in
29679 # config.status. Protect against being in an unquoted here document
29680 # in config.status.
29681 rm -f conftest.defines conftest.undefs
29682 # Using a here document instead of a string reduces the quoting nightmare.
29683 # Putting comments in sed scripts is not portable.
29685 # `end' is used to avoid that the second main sed command (meant for
29686 # 0-ary CPP macros) applies to n-ary macro definitions.
29687 # See the Autoconf documentation for `clear'.
29688 cat >confdef2sed.sed <<\_ACEOF
29689 s/[\\&,]/\\&/g
29690 s,[\\$`],\\&,g
29691 t clear
29692 : clear
29693 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29694 t end
29695 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29696 : end
29697 _ACEOF
29698 # If some macros were called several times there might be several times
29699 # the same #defines, which is useless. Nevertheless, we may not want to
29700 # sort them, since we want the *last* AC-DEFINE to be honored.
29701 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29702 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29703 rm -f confdef2sed.sed
29705 # This sed command replaces #undef with comments. This is necessary, for
29706 # example, in the case of _POSIX_SOURCE, which is predefined and required
29707 # on some systems where configure will not decide to define it.
29708 cat >>conftest.undefs <<\_ACEOF
29709 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29710 _ACEOF
29712 # Break up conftest.defines because some shells have a limit on the size
29713 # of here documents, and old seds have small limits too (100 cmds).
29714 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29715 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29716 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29717 echo ' :' >>$CONFIG_STATUS
29718 rm -f conftest.tail
29719 while grep . conftest.defines >/dev/null
29721 # Write a limited-size here document to $tmp/defines.sed.
29722 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29723 # Speed up: don't consider the non `#define' lines.
29724 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29725 # Work around the forget-to-reset-the-flag bug.
29726 echo 't clr' >>$CONFIG_STATUS
29727 echo ': clr' >>$CONFIG_STATUS
29728 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29729 echo 'CEOF
29730 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29731 rm -f $tmp/in
29732 mv $tmp/out $tmp/in
29733 ' >>$CONFIG_STATUS
29734 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29735 rm -f conftest.defines
29736 mv conftest.tail conftest.defines
29737 done
29738 rm -f conftest.defines
29739 echo ' fi # grep' >>$CONFIG_STATUS
29740 echo >>$CONFIG_STATUS
29742 # Break up conftest.undefs 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 #undef templates' >>$CONFIG_STATUS
29745 rm -f conftest.tail
29746 while grep . conftest.undefs >/dev/null
29748 # Write a limited-size here document to $tmp/undefs.sed.
29749 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29750 # Speed up: don't consider the non `#undef'
29751 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29752 # Work around the forget-to-reset-the-flag bug.
29753 echo 't clr' >>$CONFIG_STATUS
29754 echo ': clr' >>$CONFIG_STATUS
29755 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29756 echo 'CEOF
29757 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29758 rm -f $tmp/in
29759 mv $tmp/out $tmp/in
29760 ' >>$CONFIG_STATUS
29761 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29762 rm -f conftest.undefs
29763 mv conftest.tail conftest.undefs
29764 done
29765 rm -f conftest.undefs
29767 cat >>$CONFIG_STATUS <<\_ACEOF
29768 # Let's still pretend it is `configure' which instantiates (i.e., don't
29769 # use $as_me), people would be surprised to read:
29770 # /* config.h. Generated by config.status. */
29771 if test x"$ac_file" = x-; then
29772 echo "/* Generated by configure. */" >$tmp/config.h
29773 else
29774 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29776 cat $tmp/in >>$tmp/config.h
29777 rm -f $tmp/in
29778 if test x"$ac_file" != x-; then
29779 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29780 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29781 echo "$as_me: $ac_file is unchanged" >&6;}
29782 else
29783 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29784 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29785 X"$ac_file" : 'X\(//\)[^/]' \| \
29786 X"$ac_file" : 'X\(//\)$' \| \
29787 X"$ac_file" : 'X\(/\)' \| \
29788 . : '\(.\)' 2>/dev/null ||
29789 echo X"$ac_file" |
29790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29792 /^X\(\/\/\)$/{ s//\1/; q; }
29793 /^X\(\/\).*/{ s//\1/; q; }
29794 s/.*/./; q'`
29795 { if $as_mkdir_p; then
29796 mkdir -p "$ac_dir"
29797 else
29798 as_dir="$ac_dir"
29799 as_dirs=
29800 while test ! -d "$as_dir"; do
29801 as_dirs="$as_dir $as_dirs"
29802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29804 X"$as_dir" : 'X\(//\)[^/]' \| \
29805 X"$as_dir" : 'X\(//\)$' \| \
29806 X"$as_dir" : 'X\(/\)' \| \
29807 . : '\(.\)' 2>/dev/null ||
29808 echo X"$as_dir" |
29809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29811 /^X\(\/\/\)$/{ s//\1/; q; }
29812 /^X\(\/\).*/{ s//\1/; q; }
29813 s/.*/./; q'`
29814 done
29815 test ! -n "$as_dirs" || mkdir $as_dirs
29816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29817 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29818 { (exit 1); exit 1; }; }; }
29820 rm -f $ac_file
29821 mv $tmp/config.h $ac_file
29823 else
29824 cat $tmp/config.h
29825 rm -f $tmp/config.h
29827 # Compute $ac_file's index in $config_headers.
29828 _am_stamp_count=1
29829 for _am_header in $config_headers :; do
29830 case $_am_header in
29831 $ac_file | $ac_file:* )
29832 break ;;
29834 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29835 esac
29836 done
29837 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29838 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29839 X$ac_file : 'X\(//\)[^/]' \| \
29840 X$ac_file : 'X\(//\)$' \| \
29841 X$ac_file : 'X\(/\)' \| \
29842 . : '\(.\)' 2>/dev/null ||
29843 echo X$ac_file |
29844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29846 /^X\(\/\/\)$/{ s//\1/; q; }
29847 /^X\(\/\).*/{ s//\1/; q; }
29848 s/.*/./; q'`/stamp-h$_am_stamp_count
29849 done
29850 _ACEOF
29851 cat >>$CONFIG_STATUS <<\_ACEOF
29854 # CONFIG_LINKS section.
29857 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29858 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29859 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29861 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29862 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29864 if test ! -r $srcdir/$ac_source; then
29865 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29866 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29867 { (exit 1); exit 1; }; }
29869 rm -f $ac_dest
29871 # Make relative symlinks.
29872 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29874 X"$ac_dest" : 'X\(//\)[^/]' \| \
29875 X"$ac_dest" : 'X\(//\)$' \| \
29876 X"$ac_dest" : 'X\(/\)' \| \
29877 . : '\(.\)' 2>/dev/null ||
29878 echo X"$ac_dest" |
29879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29881 /^X\(\/\/\)$/{ s//\1/; q; }
29882 /^X\(\/\).*/{ s//\1/; q; }
29883 s/.*/./; q'`
29884 { if $as_mkdir_p; then
29885 mkdir -p "$ac_dest_dir"
29886 else
29887 as_dir="$ac_dest_dir"
29888 as_dirs=
29889 while test ! -d "$as_dir"; do
29890 as_dirs="$as_dir $as_dirs"
29891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29893 X"$as_dir" : 'X\(//\)[^/]' \| \
29894 X"$as_dir" : 'X\(//\)$' \| \
29895 X"$as_dir" : 'X\(/\)' \| \
29896 . : '\(.\)' 2>/dev/null ||
29897 echo X"$as_dir" |
29898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29900 /^X\(\/\/\)$/{ s//\1/; q; }
29901 /^X\(\/\).*/{ s//\1/; q; }
29902 s/.*/./; q'`
29903 done
29904 test ! -n "$as_dirs" || mkdir $as_dirs
29905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29906 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29907 { (exit 1); exit 1; }; }; }
29909 ac_builddir=.
29911 if test "$ac_dest_dir" != .; then
29912 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29913 # A "../" for each directory in $ac_dir_suffix.
29914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29915 else
29916 ac_dir_suffix= ac_top_builddir=
29919 case $srcdir in
29920 .) # No --srcdir option. We are building in place.
29921 ac_srcdir=.
29922 if test -z "$ac_top_builddir"; then
29923 ac_top_srcdir=.
29924 else
29925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29926 fi ;;
29927 [\\/]* | ?:[\\/]* ) # Absolute path.
29928 ac_srcdir=$srcdir$ac_dir_suffix;
29929 ac_top_srcdir=$srcdir ;;
29930 *) # Relative path.
29931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29933 esac
29935 # Do not use `cd foo && pwd` to compute absolute paths, because
29936 # the directories may not exist.
29937 case `pwd` in
29938 .) ac_abs_builddir="$ac_dest_dir";;
29940 case "$ac_dest_dir" in
29941 .) ac_abs_builddir=`pwd`;;
29942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29943 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29944 esac;;
29945 esac
29946 case $ac_abs_builddir in
29947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29949 case ${ac_top_builddir}. in
29950 .) ac_abs_top_builddir=$ac_abs_builddir;;
29951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29953 esac;;
29954 esac
29955 case $ac_abs_builddir in
29956 .) ac_abs_srcdir=$ac_srcdir;;
29958 case $ac_srcdir in
29959 .) ac_abs_srcdir=$ac_abs_builddir;;
29960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29962 esac;;
29963 esac
29964 case $ac_abs_builddir in
29965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29967 case $ac_top_srcdir in
29968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29971 esac;;
29972 esac
29975 case $srcdir in
29976 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29977 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29978 esac
29980 # Try a symlink, then a hard link, then a copy.
29981 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29982 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29983 cp -p $srcdir/$ac_source $ac_dest ||
29984 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29985 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29986 { (exit 1); exit 1; }; }
29987 done
29988 _ACEOF
29989 cat >>$CONFIG_STATUS <<\_ACEOF
29992 # CONFIG_COMMANDS section.
29994 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29995 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29996 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29997 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29998 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29999 X"$ac_dest" : 'X\(//\)[^/]' \| \
30000 X"$ac_dest" : 'X\(//\)$' \| \
30001 X"$ac_dest" : 'X\(/\)' \| \
30002 . : '\(.\)' 2>/dev/null ||
30003 echo X"$ac_dest" |
30004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30006 /^X\(\/\/\)$/{ s//\1/; q; }
30007 /^X\(\/\).*/{ s//\1/; q; }
30008 s/.*/./; q'`
30009 { if $as_mkdir_p; then
30010 mkdir -p "$ac_dir"
30011 else
30012 as_dir="$ac_dir"
30013 as_dirs=
30014 while test ! -d "$as_dir"; do
30015 as_dirs="$as_dir $as_dirs"
30016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30018 X"$as_dir" : 'X\(//\)[^/]' \| \
30019 X"$as_dir" : 'X\(//\)$' \| \
30020 X"$as_dir" : 'X\(/\)' \| \
30021 . : '\(.\)' 2>/dev/null ||
30022 echo X"$as_dir" |
30023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30025 /^X\(\/\/\)$/{ s//\1/; q; }
30026 /^X\(\/\).*/{ s//\1/; q; }
30027 s/.*/./; q'`
30028 done
30029 test ! -n "$as_dirs" || mkdir $as_dirs
30030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30032 { (exit 1); exit 1; }; }; }
30034 ac_builddir=.
30036 if test "$ac_dir" != .; then
30037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30038 # A "../" for each directory in $ac_dir_suffix.
30039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30040 else
30041 ac_dir_suffix= ac_top_builddir=
30044 case $srcdir in
30045 .) # No --srcdir option. We are building in place.
30046 ac_srcdir=.
30047 if test -z "$ac_top_builddir"; then
30048 ac_top_srcdir=.
30049 else
30050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30051 fi ;;
30052 [\\/]* | ?:[\\/]* ) # Absolute path.
30053 ac_srcdir=$srcdir$ac_dir_suffix;
30054 ac_top_srcdir=$srcdir ;;
30055 *) # Relative path.
30056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30058 esac
30060 # Do not use `cd foo && pwd` to compute absolute paths, because
30061 # the directories may not exist.
30062 case `pwd` in
30063 .) ac_abs_builddir="$ac_dir";;
30065 case "$ac_dir" in
30066 .) ac_abs_builddir=`pwd`;;
30067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30069 esac;;
30070 esac
30071 case $ac_abs_builddir in
30072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30074 case ${ac_top_builddir}. in
30075 .) ac_abs_top_builddir=$ac_abs_builddir;;
30076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30078 esac;;
30079 esac
30080 case $ac_abs_builddir in
30081 .) ac_abs_srcdir=$ac_srcdir;;
30083 case $ac_srcdir in
30084 .) ac_abs_srcdir=$ac_abs_builddir;;
30085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30087 esac;;
30088 esac
30089 case $ac_abs_builddir in
30090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30092 case $ac_top_srcdir in
30093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30096 esac;;
30097 esac
30100 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30101 echo "$as_me: executing $ac_dest commands" >&6;}
30102 case $ac_dest in
30103 default-1 )
30104 # Only add multilib support code if we just rebuilt the top-level
30105 # Makefile.
30106 case " $CONFIG_FILES " in
30107 *" Makefile "*)
30108 ac_file=Makefile . ${multi_basedir}/config-ml.in
30110 esac ;;
30111 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30112 # Strip MF so we end up with the name of the file.
30113 mf=`echo "$mf" | sed -e 's/:.*$//'`
30114 # Check whether this is an Automake generated Makefile or not.
30115 # We used to match only the files named `Makefile.in', but
30116 # some people rename them; so instead we look at the file content.
30117 # Grep'ing the first line is not enough: some people post-process
30118 # each Makefile.in and add a new line on top of each file to say so.
30119 # So let's grep whole file.
30120 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30121 dirpart=`(dirname "$mf") 2>/dev/null ||
30122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30123 X"$mf" : 'X\(//\)[^/]' \| \
30124 X"$mf" : 'X\(//\)$' \| \
30125 X"$mf" : 'X\(/\)' \| \
30126 . : '\(.\)' 2>/dev/null ||
30127 echo X"$mf" |
30128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30130 /^X\(\/\/\)$/{ s//\1/; q; }
30131 /^X\(\/\).*/{ s//\1/; q; }
30132 s/.*/./; q'`
30133 else
30134 continue
30136 # Extract the definition of DEPDIR, am__include, and am__quote
30137 # from the Makefile without running `make'.
30138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30139 test -z "$DEPDIR" && continue
30140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30141 test -z "am__include" && continue
30142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30143 # When using ansi2knr, U may be empty or an underscore; expand it
30144 U=`sed -n 's/^U = //p' < "$mf"`
30145 # Find all dependency output files, they are included files with
30146 # $(DEPDIR) in their names. We invoke sed twice because it is the
30147 # simplest approach to changing $(DEPDIR) to its actual value in the
30148 # expansion.
30149 for file in `sed -n "
30150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30152 # Make sure the directory exists.
30153 test -f "$dirpart/$file" && continue
30154 fdir=`(dirname "$file") 2>/dev/null ||
30155 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30156 X"$file" : 'X\(//\)[^/]' \| \
30157 X"$file" : 'X\(//\)$' \| \
30158 X"$file" : 'X\(/\)' \| \
30159 . : '\(.\)' 2>/dev/null ||
30160 echo X"$file" |
30161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30163 /^X\(\/\/\)$/{ s//\1/; q; }
30164 /^X\(\/\).*/{ s//\1/; q; }
30165 s/.*/./; q'`
30166 { if $as_mkdir_p; then
30167 mkdir -p $dirpart/$fdir
30168 else
30169 as_dir=$dirpart/$fdir
30170 as_dirs=
30171 while test ! -d "$as_dir"; do
30172 as_dirs="$as_dir $as_dirs"
30173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30175 X"$as_dir" : 'X\(//\)[^/]' \| \
30176 X"$as_dir" : 'X\(//\)$' \| \
30177 X"$as_dir" : 'X\(/\)' \| \
30178 . : '\(.\)' 2>/dev/null ||
30179 echo X"$as_dir" |
30180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30182 /^X\(\/\/\)$/{ s//\1/; q; }
30183 /^X\(\/\).*/{ s//\1/; q; }
30184 s/.*/./; q'`
30185 done
30186 test ! -n "$as_dirs" || mkdir $as_dirs
30187 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30188 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30189 { (exit 1); exit 1; }; }; }
30191 # echo "creating $dirpart/$file"
30192 echo '# dummy' > "$dirpart/$file"
30193 done
30194 done
30196 libtool )
30198 # See if we are running on zsh, and set the options which allow our
30199 # commands through without removal of \ escapes.
30200 if test -n "${ZSH_VERSION+set}" ; then
30201 setopt NO_GLOB_SUBST
30204 cfgfile="${ofile}T"
30205 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30206 $RM "$cfgfile"
30208 cat <<_LT_EOF >> "$cfgfile"
30209 #! $SHELL
30211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30212 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30217 # 2006, 2007 Free Software Foundation, Inc.
30219 # This file is part of GNU Libtool:
30220 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30222 # This program is free software; you can redistribute it and/or modify
30223 # it under the terms of the GNU General Public License as published by
30224 # the Free Software Foundation; either version 2 of the License, or
30225 # (at your option) any later version.
30227 # This program is distributed in the hope that it will be useful, but
30228 # WITHOUT ANY WARRANTY; without even the implied warranty of
30229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30230 # General Public License for more details.
30232 # You should have received a copy of the GNU General Public License
30233 # along with this program; if not, a copy can be downloaded from
30234 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30235 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30236 # MA 02110-1301, USA.
30238 # As a special exception to the GNU General Public License, if you
30239 # distribute this file as part of a program that contains a
30240 # configuration script generated by Autoconf, you may include it under
30241 # the same distribution terms that you use for the rest of that program.
30244 # The names of the tagged configurations supported by this script.
30245 available_tags="CXX GCJ "
30247 # ### BEGIN LIBTOOL CONFIG
30249 # Which release of libtool.m4 was used?
30250 macro_version=$macro_version
30251 macro_revision=$macro_revision
30253 # Whether or not to build shared libraries.
30254 build_libtool_libs=$enable_shared
30256 # Whether or not to build static libraries.
30257 build_old_libs=$enable_static
30259 # What type of objects to build.
30260 pic_mode=$pic_mode
30262 # Whether or not to optimize for fast installation.
30263 fast_install=$enable_fast_install
30265 # The host system.
30266 host_alias=$host_alias
30267 host=$host
30268 host_os=$host_os
30270 # The build system.
30271 build_alias=$build_alias
30272 build=$build
30273 build_os=$build_os
30275 # A sed program that does not truncate output.
30276 SED=$lt_SED
30278 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30279 Xsed="\$SED -e 1s/^X//"
30281 # A grep program that handles long lines.
30282 GREP=$lt_GREP
30284 # An ERE matcher.
30285 EGREP=$lt_EGREP
30287 # A literal string matcher.
30288 FGREP=$lt_FGREP
30290 # A BSD- or MS-compatible name lister.
30291 NM=$lt_NM
30293 # Whether we need soft or hard links.
30294 LN_S=$lt_LN_S
30296 # What is the maximum length of a command?
30297 max_cmd_len=$max_cmd_len
30299 # Object file suffix (normally "o").
30300 objext=$ac_objext
30302 # Executable file suffix (normally "").
30303 exeext=$exeext
30305 # whether the shell understands "unset".
30306 lt_unset=$lt_unset
30308 # turn spaces into newlines.
30309 SP2NL=$lt_lt_SP2NL
30311 # turn newlines into spaces.
30312 NL2SP=$lt_lt_NL2SP
30314 # How to create reloadable object files.
30315 reload_flag=$lt_reload_flag
30316 reload_cmds=$lt_reload_cmds
30318 # Method to check whether dependent libraries are shared objects.
30319 deplibs_check_method=$lt_deplibs_check_method
30321 # Command to use when deplibs_check_method == "file_magic".
30322 file_magic_cmd=$lt_file_magic_cmd
30324 # The archiver.
30325 AR=$lt_AR
30326 AR_FLAGS=$lt_AR_FLAGS
30328 # A symbol stripping program.
30329 STRIP=$lt_STRIP
30331 # Commands used to install an old-style archive.
30332 RANLIB=$lt_RANLIB
30333 old_postinstall_cmds=$lt_old_postinstall_cmds
30334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30336 # A C compiler.
30337 LTCC=$lt_CC
30339 # LTCC compiler flags.
30340 LTCFLAGS=$lt_CFLAGS
30342 # Take the output of nm and produce a listing of raw symbols and C names.
30343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30345 # Transform the output of nm in a proper C declaration.
30346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30348 # Transform the output of nm in a C name address pair.
30349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30351 # The name of the directory that contains temporary libtool files.
30352 objdir=$objdir
30354 # Shell to use when invoking shell scripts.
30355 SHELL=$lt_SHELL
30357 # An echo program that does not interpret backslashes.
30358 ECHO=$lt_ECHO
30360 # Used to examine libraries when file_magic_cmd begins with "file".
30361 MAGIC_CMD=$MAGIC_CMD
30363 # Must we lock files when doing compilation?
30364 need_locks=$lt_need_locks
30366 # Old archive suffix (normally "a").
30367 libext=$libext
30369 # Shared library suffix (normally ".so").
30370 shrext_cmds=$lt_shrext_cmds
30372 # The commands to extract the exported symbol list from a shared archive.
30373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30375 # Variables whose values should be saved in libtool wrapper scripts and
30376 # restored at link time.
30377 variables_saved_for_relink=$lt_variables_saved_for_relink
30379 # Do we need the "lib" prefix for modules?
30380 need_lib_prefix=$need_lib_prefix
30382 # Do we need a version for libraries?
30383 need_version=$need_version
30385 # Library versioning type.
30386 version_type=$version_type
30388 # Shared library runtime path variable.
30389 runpath_var=$runpath_var
30391 # Shared library path variable.
30392 shlibpath_var=$shlibpath_var
30394 # Is shlibpath searched before the hard-coded library search path?
30395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30397 # Format of library name prefix.
30398 libname_spec=$lt_libname_spec
30400 # List of archive names. First name is the real one, the rest are links.
30401 # The last name is the one that the linker finds with -lNAME
30402 library_names_spec=$lt_library_names_spec
30404 # The coded name of the library, if different from the real name.
30405 soname_spec=$lt_soname_spec
30407 # Command to use after installation of a shared archive.
30408 postinstall_cmds=$lt_postinstall_cmds
30410 # Command to use after uninstallation of a shared archive.
30411 postuninstall_cmds=$lt_postuninstall_cmds
30413 # Commands used to finish a libtool library installation in a directory.
30414 finish_cmds=$lt_finish_cmds
30416 # As "finish_cmds", except a single script fragment to be evaled but
30417 # not shown.
30418 finish_eval=$lt_finish_eval
30420 # Whether we should hardcode library paths into libraries.
30421 hardcode_into_libs=$hardcode_into_libs
30423 # Compile-time system search path for libraries.
30424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30426 # Run-time system search path for libraries.
30427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30429 # Whether dlopen is supported.
30430 dlopen_support=$enable_dlopen
30432 # Whether dlopen of programs is supported.
30433 dlopen_self=$enable_dlopen_self
30435 # Whether dlopen of statically linked programs is supported.
30436 dlopen_self_static=$enable_dlopen_self_static
30438 # Commands to strip libraries.
30439 old_striplib=$lt_old_striplib
30440 striplib=$lt_striplib
30443 # The linker used to build libraries.
30444 LD=$lt_LD
30446 # Commands used to build an old-style archive.
30447 old_archive_cmds=$lt_old_archive_cmds
30449 # A language specific compiler.
30450 CC=$lt_compiler
30452 # Is the compiler the GNU compiler?
30453 with_gcc=$GCC
30455 # Compiler flag to turn off builtin functions.
30456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30458 # How to pass a linker flag through the compiler.
30459 wl=$lt_lt_prog_compiler_wl
30461 # Additional compiler flags for building library objects.
30462 pic_flag=$lt_lt_prog_compiler_pic
30464 # Compiler flag to prevent dynamic linking.
30465 link_static_flag=$lt_lt_prog_compiler_static
30467 # Does compiler simultaneously support -c and -o options?
30468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30470 # Whether or not to add -lc for building shared libraries.
30471 build_libtool_need_lc=$archive_cmds_need_lc
30473 # Whether or not to disallow shared libs when runtime libs are static.
30474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30476 # Compiler flag to allow reflexive dlopens.
30477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30479 # Compiler flag to generate shared objects directly from archives.
30480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30482 # Whether the compiler copes with passing no objects directly.
30483 compiler_needs_object=$lt_compiler_needs_object
30485 # Create an old-style archive from a shared archive.
30486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30488 # Create a temporary old-style archive to link instead of a shared archive.
30489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30491 # Commands used to build a shared archive.
30492 archive_cmds=$lt_archive_cmds
30493 archive_expsym_cmds=$lt_archive_expsym_cmds
30495 # Commands used to build a loadable module if different from building
30496 # a shared archive.
30497 module_cmds=$lt_module_cmds
30498 module_expsym_cmds=$lt_module_expsym_cmds
30500 # Whether we are building with GNU ld or not.
30501 with_gnu_ld=$lt_with_gnu_ld
30503 # Flag that allows shared libraries with undefined symbols to be built.
30504 allow_undefined_flag=$lt_allow_undefined_flag
30506 # Flag that enforces no undefined symbols.
30507 no_undefined_flag=$lt_no_undefined_flag
30509 # Flag to hardcode \$libdir into a binary during linking.
30510 # This must work even if \$libdir does not exist
30511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30513 # If ld is used when linking, flag to hardcode \$libdir into a binary
30514 # during linking. This must work even if \$libdir does not exist.
30515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30517 # Whether we need a single "-rpath" flag with a separated argument.
30518 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30521 # DIR into the resulting binary.
30522 hardcode_direct=$hardcode_direct
30524 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30525 # DIR into the resulting binary and the resulting library dependency is
30526 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30527 # library is relocated.
30528 hardcode_direct_absolute=$hardcode_direct_absolute
30530 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30531 # into the resulting binary.
30532 hardcode_minus_L=$hardcode_minus_L
30534 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30535 # into the resulting binary.
30536 hardcode_shlibpath_var=$hardcode_shlibpath_var
30538 # Set to "yes" if building a shared library automatically hardcodes DIR
30539 # into the library and all subsequent libraries and executables linked
30540 # against it.
30541 hardcode_automatic=$hardcode_automatic
30543 # Set to yes if linker adds runtime paths of dependent libraries
30544 # to runtime path list.
30545 inherit_rpath=$inherit_rpath
30547 # Whether libtool must link a program against all its dependency libraries.
30548 link_all_deplibs=$link_all_deplibs
30550 # Fix the shell variable \$srcfile for the compiler.
30551 fix_srcfile_path=$lt_fix_srcfile_path
30553 # Set to "yes" if exported symbols are required.
30554 always_export_symbols=$always_export_symbols
30556 # The commands to list exported symbols.
30557 export_symbols_cmds=$lt_export_symbols_cmds
30559 # Symbols that should not be listed in the preloaded symbols.
30560 exclude_expsyms=$lt_exclude_expsyms
30562 # Symbols that must always be exported.
30563 include_expsyms=$lt_include_expsyms
30565 # Commands necessary for linking programs (against libraries) with templates.
30566 prelink_cmds=$lt_prelink_cmds
30568 # Specify filename containing input files.
30569 file_list_spec=$lt_file_list_spec
30571 # How to hardcode a shared library path into an executable.
30572 hardcode_action=$hardcode_action
30574 # Dependencies to place before and after the objects being linked to
30575 # create a shared library.
30576 predep_objects=$lt_predep_objects
30577 postdep_objects=$lt_postdep_objects
30578 predeps=$lt_predeps
30579 postdeps=$lt_postdeps
30581 # The library search path used internally by the compiler when linking
30582 # a shared library.
30583 compiler_lib_search_path=$lt_compiler_lib_search_path
30585 # ### END LIBTOOL CONFIG
30587 _LT_EOF
30589 case $host_os in
30590 aix3*)
30591 cat <<\_LT_EOF >> "$cfgfile"
30592 # AIX sometimes has problems with the GCC collect2 program. For some
30593 # reason, if we set the COLLECT_NAMES environment variable, the problems
30594 # vanish in a puff of smoke.
30595 if test "X${COLLECT_NAMES+set}" != Xset; then
30596 COLLECT_NAMES=
30597 export COLLECT_NAMES
30599 _LT_EOF
30601 esac
30604 ltmain="$ac_aux_dir/ltmain.sh"
30607 # We use sed instead of cat because bash on DJGPP gets confused if
30608 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30609 # text mode, it properly converts lines to CR/LF. This bash problem
30610 # is reportedly fixed, but why not run on old versions too?
30611 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30612 || (rm -f "$cfgfile"; exit 1)
30614 case $xsi_shell in
30615 yes)
30616 cat << \_LT_EOF >> "$cfgfile"
30617 # func_dirname file append nondir_replacement
30618 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30619 # otherwise set result to NONDIR_REPLACEMENT.
30620 func_dirname ()
30622 case ${1} in
30623 */*) func_dirname_result="${1%/*}${2}" ;;
30624 * ) func_dirname_result="${3}" ;;
30625 esac
30628 # func_basename file
30629 func_basename ()
30631 func_basename_result="${1##*/}"
30634 # func_stripname prefix suffix name
30635 # strip PREFIX and SUFFIX off of NAME.
30636 # PREFIX and SUFFIX must not contain globbing or regex special
30637 # characters, hashes, percent signs, but SUFFIX may contain a leading
30638 # dot (in which case that matches only a dot).
30639 func_stripname ()
30641 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30642 # positional parameters, so assign one to ordinary parameter first.
30643 func_stripname_result=${3}
30644 func_stripname_result=${func_stripname_result#"${1}"}
30645 func_stripname_result=${func_stripname_result%"${2}"}
30648 # func_opt_split
30649 func_opt_split ()
30651 func_opt_split_opt=${1%%=*}
30652 func_opt_split_arg=${1#*=}
30655 # func_lo2o object
30656 func_lo2o ()
30658 case ${1} in
30659 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30660 *) func_lo2o_result=${1} ;;
30661 esac
30663 _LT_EOF
30665 *) # Bourne compatible functions.
30666 cat << \_LT_EOF >> "$cfgfile"
30667 # func_dirname file append nondir_replacement
30668 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30669 # otherwise set result to NONDIR_REPLACEMENT.
30670 func_dirname ()
30672 # Extract subdirectory from the argument.
30673 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30674 if test "X$func_dirname_result" = "X${1}"; then
30675 func_dirname_result="${3}"
30676 else
30677 func_dirname_result="$func_dirname_result${2}"
30681 # func_basename file
30682 func_basename ()
30684 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30687 # func_stripname prefix suffix name
30688 # strip PREFIX and SUFFIX off of NAME.
30689 # PREFIX and SUFFIX must not contain globbing or regex special
30690 # characters, hashes, percent signs, but SUFFIX may contain a leading
30691 # dot (in which case that matches only a dot).
30692 # func_strip_suffix prefix name
30693 func_stripname ()
30695 case ${2} in
30696 .*) func_stripname_result=`$ECHO "X${3}" \
30697 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30698 *) func_stripname_result=`$ECHO "X${3}" \
30699 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30700 esac
30703 # sed scripts:
30704 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30705 my_sed_long_arg='1s/^-[^=]*=//'
30707 # func_opt_split
30708 func_opt_split ()
30710 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30711 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30714 # func_lo2o object
30715 func_lo2o ()
30717 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30719 _LT_EOF
30720 esac
30722 case $lt_shell_append in
30723 yes)
30724 cat << \_LT_EOF >> "$cfgfile"
30726 # func_append var value
30727 # Append VALUE to the end of shell variable VAR.
30728 func_append ()
30730 eval "$1+=\$2"
30732 _LT_EOF
30735 cat << \_LT_EOF >> "$cfgfile"
30737 # func_append var value
30738 # Append VALUE to the end of shell variable VAR.
30739 func_append ()
30741 eval "$1=\$$1\$2"
30743 _LT_EOF
30745 esac
30748 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30749 || (rm -f "$cfgfile"; exit 1)
30751 mv -f "$cfgfile" "$ofile" ||
30752 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30753 chmod +x "$ofile"
30756 cat <<_LT_EOF >> "$ofile"
30758 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30760 # The linker used to build libraries.
30761 LD=$lt_LD_CXX
30763 # Commands used to build an old-style archive.
30764 old_archive_cmds=$lt_old_archive_cmds_CXX
30766 # A language specific compiler.
30767 CC=$lt_compiler_CXX
30769 # Is the compiler the GNU compiler?
30770 with_gcc=$GCC_CXX
30772 # Compiler flag to turn off builtin functions.
30773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30775 # How to pass a linker flag through the compiler.
30776 wl=$lt_lt_prog_compiler_wl_CXX
30778 # Additional compiler flags for building library objects.
30779 pic_flag=$lt_lt_prog_compiler_pic_CXX
30781 # Compiler flag to prevent dynamic linking.
30782 link_static_flag=$lt_lt_prog_compiler_static_CXX
30784 # Does compiler simultaneously support -c and -o options?
30785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30787 # Whether or not to add -lc for building shared libraries.
30788 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30790 # Whether or not to disallow shared libs when runtime libs are static.
30791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30793 # Compiler flag to allow reflexive dlopens.
30794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30796 # Compiler flag to generate shared objects directly from archives.
30797 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30799 # Whether the compiler copes with passing no objects directly.
30800 compiler_needs_object=$lt_compiler_needs_object_CXX
30802 # Create an old-style archive from a shared archive.
30803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30805 # Create a temporary old-style archive to link instead of a shared archive.
30806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30808 # Commands used to build a shared archive.
30809 archive_cmds=$lt_archive_cmds_CXX
30810 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30812 # Commands used to build a loadable module if different from building
30813 # a shared archive.
30814 module_cmds=$lt_module_cmds_CXX
30815 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30817 # Whether we are building with GNU ld or not.
30818 with_gnu_ld=$lt_with_gnu_ld_CXX
30820 # Flag that allows shared libraries with undefined symbols to be built.
30821 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30823 # Flag that enforces no undefined symbols.
30824 no_undefined_flag=$lt_no_undefined_flag_CXX
30826 # Flag to hardcode \$libdir into a binary during linking.
30827 # This must work even if \$libdir does not exist
30828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30830 # If ld is used when linking, flag to hardcode \$libdir into a binary
30831 # during linking. This must work even if \$libdir does not exist.
30832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30834 # Whether we need a single "-rpath" flag with a separated argument.
30835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30837 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30838 # DIR into the resulting binary.
30839 hardcode_direct=$hardcode_direct_CXX
30841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30842 # DIR into the resulting binary and the resulting library dependency is
30843 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30844 # library is relocated.
30845 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30847 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30848 # into the resulting binary.
30849 hardcode_minus_L=$hardcode_minus_L_CXX
30851 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30852 # into the resulting binary.
30853 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30855 # Set to "yes" if building a shared library automatically hardcodes DIR
30856 # into the library and all subsequent libraries and executables linked
30857 # against it.
30858 hardcode_automatic=$hardcode_automatic_CXX
30860 # Set to yes if linker adds runtime paths of dependent libraries
30861 # to runtime path list.
30862 inherit_rpath=$inherit_rpath_CXX
30864 # Whether libtool must link a program against all its dependency libraries.
30865 link_all_deplibs=$link_all_deplibs_CXX
30867 # Fix the shell variable \$srcfile for the compiler.
30868 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30870 # Set to "yes" if exported symbols are required.
30871 always_export_symbols=$always_export_symbols_CXX
30873 # The commands to list exported symbols.
30874 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30876 # Symbols that should not be listed in the preloaded symbols.
30877 exclude_expsyms=$lt_exclude_expsyms_CXX
30879 # Symbols that must always be exported.
30880 include_expsyms=$lt_include_expsyms_CXX
30882 # Commands necessary for linking programs (against libraries) with templates.
30883 prelink_cmds=$lt_prelink_cmds_CXX
30885 # Specify filename containing input files.
30886 file_list_spec=$lt_file_list_spec_CXX
30888 # How to hardcode a shared library path into an executable.
30889 hardcode_action=$hardcode_action_CXX
30891 # Dependencies to place before and after the objects being linked to
30892 # create a shared library.
30893 predep_objects=$lt_predep_objects_CXX
30894 postdep_objects=$lt_postdep_objects_CXX
30895 predeps=$lt_predeps_CXX
30896 postdeps=$lt_postdeps_CXX
30898 # The library search path used internally by the compiler when linking
30899 # a shared library.
30900 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30902 # ### END LIBTOOL TAG CONFIG: CXX
30903 _LT_EOF
30906 cat <<_LT_EOF >> "$ofile"
30908 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30910 # The linker used to build libraries.
30911 LD=$lt_LD_GCJ
30913 # Commands used to build an old-style archive.
30914 old_archive_cmds=$lt_old_archive_cmds_GCJ
30916 # A language specific compiler.
30917 CC=$lt_compiler_GCJ
30919 # Is the compiler the GNU compiler?
30920 with_gcc=$GCC_GCJ
30922 # Compiler flag to turn off builtin functions.
30923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30925 # How to pass a linker flag through the compiler.
30926 wl=$lt_lt_prog_compiler_wl_GCJ
30928 # Additional compiler flags for building library objects.
30929 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30931 # Compiler flag to prevent dynamic linking.
30932 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30934 # Does compiler simultaneously support -c and -o options?
30935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30937 # Whether or not to add -lc for building shared libraries.
30938 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30940 # Whether or not to disallow shared libs when runtime libs are static.
30941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30943 # Compiler flag to allow reflexive dlopens.
30944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30946 # Compiler flag to generate shared objects directly from archives.
30947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30949 # Whether the compiler copes with passing no objects directly.
30950 compiler_needs_object=$lt_compiler_needs_object_GCJ
30952 # Create an old-style archive from a shared archive.
30953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30955 # Create a temporary old-style archive to link instead of a shared archive.
30956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30958 # Commands used to build a shared archive.
30959 archive_cmds=$lt_archive_cmds_GCJ
30960 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30962 # Commands used to build a loadable module if different from building
30963 # a shared archive.
30964 module_cmds=$lt_module_cmds_GCJ
30965 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30967 # Whether we are building with GNU ld or not.
30968 with_gnu_ld=$lt_with_gnu_ld_GCJ
30970 # Flag that allows shared libraries with undefined symbols to be built.
30971 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30973 # Flag that enforces no undefined symbols.
30974 no_undefined_flag=$lt_no_undefined_flag_GCJ
30976 # Flag to hardcode \$libdir into a binary during linking.
30977 # This must work even if \$libdir does not exist
30978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30980 # If ld is used when linking, flag to hardcode \$libdir into a binary
30981 # during linking. This must work even if \$libdir does not exist.
30982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30984 # Whether we need a single "-rpath" flag with a separated argument.
30985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30987 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30988 # DIR into the resulting binary.
30989 hardcode_direct=$hardcode_direct_GCJ
30991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30992 # DIR into the resulting binary and the resulting library dependency is
30993 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30994 # library is relocated.
30995 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30997 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30998 # into the resulting binary.
30999 hardcode_minus_L=$hardcode_minus_L_GCJ
31001 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31002 # into the resulting binary.
31003 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31005 # Set to "yes" if building a shared library automatically hardcodes DIR
31006 # into the library and all subsequent libraries and executables linked
31007 # against it.
31008 hardcode_automatic=$hardcode_automatic_GCJ
31010 # Set to yes if linker adds runtime paths of dependent libraries
31011 # to runtime path list.
31012 inherit_rpath=$inherit_rpath_GCJ
31014 # Whether libtool must link a program against all its dependency libraries.
31015 link_all_deplibs=$link_all_deplibs_GCJ
31017 # Fix the shell variable \$srcfile for the compiler.
31018 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31020 # Set to "yes" if exported symbols are required.
31021 always_export_symbols=$always_export_symbols_GCJ
31023 # The commands to list exported symbols.
31024 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31026 # Symbols that should not be listed in the preloaded symbols.
31027 exclude_expsyms=$lt_exclude_expsyms_GCJ
31029 # Symbols that must always be exported.
31030 include_expsyms=$lt_include_expsyms_GCJ
31032 # Commands necessary for linking programs (against libraries) with templates.
31033 prelink_cmds=$lt_prelink_cmds_GCJ
31035 # Specify filename containing input files.
31036 file_list_spec=$lt_file_list_spec_GCJ
31038 # How to hardcode a shared library path into an executable.
31039 hardcode_action=$hardcode_action_GCJ
31041 # Dependencies to place before and after the objects being linked to
31042 # create a shared library.
31043 predep_objects=$lt_predep_objects_GCJ
31044 postdep_objects=$lt_postdep_objects_GCJ
31045 predeps=$lt_predeps_GCJ
31046 postdeps=$lt_postdeps_GCJ
31048 # The library search path used internally by the compiler when linking
31049 # a shared library.
31050 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31052 # ### END LIBTOOL TAG CONFIG: GCJ
31053 _LT_EOF
31056 esac
31057 done
31058 _ACEOF
31060 cat >>$CONFIG_STATUS <<\_ACEOF
31062 { (exit 0); exit 0; }
31063 _ACEOF
31064 chmod +x $CONFIG_STATUS
31065 ac_clean_files=$ac_clean_files_save
31068 # configure is writing to config.log, and then calls config.status.
31069 # config.status does its own redirection, appending to config.log.
31070 # Unfortunately, on DOS this fails, as config.log is still kept open
31071 # by configure, so config.status won't be able to write to it; its
31072 # output is simply discarded. So we exec the FD to /dev/null,
31073 # effectively closing config.log, so it can be properly (re)opened and
31074 # appended to by config.status. When coming back to configure, we
31075 # need to make the FD available again.
31076 if test "$no_create" != yes; then
31077 ac_cs_success=:
31078 ac_config_status_args=
31079 test "$silent" = yes &&
31080 ac_config_status_args="$ac_config_status_args --quiet"
31081 exec 5>/dev/null
31082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31083 exec 5>>config.log
31084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31085 # would make configure fail if this is the last instruction.
31086 $ac_cs_success || { (exit 1); exit 1; }
31090 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31092 if test "$no_recursion" != yes; then
31094 # Remove --cache-file and --srcdir arguments so they do not pile up.
31095 ac_sub_configure_args=
31096 ac_prev=
31097 eval "set x $ac_configure_args"
31098 shift
31099 for ac_arg
31101 if test -n "$ac_prev"; then
31102 ac_prev=
31103 continue
31105 case $ac_arg in
31106 -cache-file | --cache-file | --cache-fil | --cache-fi \
31107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31108 ac_prev=cache_file ;;
31109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31111 | --c=*)
31113 --config-cache | -C)
31115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31116 ac_prev=srcdir ;;
31117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31120 ac_prev=prefix ;;
31121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31124 case $ac_arg in
31125 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31126 esac
31127 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31128 esac
31129 done
31131 # Always prepend --prefix to ensure using the same prefix
31132 # in subdir configurations.
31133 ac_arg="--prefix=$prefix"
31134 case $ac_arg in
31135 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31136 esac
31137 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31139 ac_popdir=`pwd`
31140 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31142 # Do not complain, so a configure script can configure whichever
31143 # parts of a large source tree are present.
31144 test -d "$srcdir/$ac_dir" || continue
31146 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31147 echo "$as_me: configuring in $ac_dir" >&6;}
31148 { if $as_mkdir_p; then
31149 mkdir -p "$ac_dir"
31150 else
31151 as_dir="$ac_dir"
31152 as_dirs=
31153 while test ! -d "$as_dir"; do
31154 as_dirs="$as_dir $as_dirs"
31155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31157 X"$as_dir" : 'X\(//\)[^/]' \| \
31158 X"$as_dir" : 'X\(//\)$' \| \
31159 X"$as_dir" : 'X\(/\)' \| \
31160 . : '\(.\)' 2>/dev/null ||
31161 echo X"$as_dir" |
31162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31164 /^X\(\/\/\)$/{ s//\1/; q; }
31165 /^X\(\/\).*/{ s//\1/; q; }
31166 s/.*/./; q'`
31167 done
31168 test ! -n "$as_dirs" || mkdir $as_dirs
31169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31171 { (exit 1); exit 1; }; }; }
31173 ac_builddir=.
31175 if test "$ac_dir" != .; then
31176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31177 # A "../" for each directory in $ac_dir_suffix.
31178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31179 else
31180 ac_dir_suffix= ac_top_builddir=
31183 case $srcdir in
31184 .) # No --srcdir option. We are building in place.
31185 ac_srcdir=.
31186 if test -z "$ac_top_builddir"; then
31187 ac_top_srcdir=.
31188 else
31189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31190 fi ;;
31191 [\\/]* | ?:[\\/]* ) # Absolute path.
31192 ac_srcdir=$srcdir$ac_dir_suffix;
31193 ac_top_srcdir=$srcdir ;;
31194 *) # Relative path.
31195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31197 esac
31199 # Do not use `cd foo && pwd` to compute absolute paths, because
31200 # the directories may not exist.
31201 case `pwd` in
31202 .) ac_abs_builddir="$ac_dir";;
31204 case "$ac_dir" in
31205 .) ac_abs_builddir=`pwd`;;
31206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31208 esac;;
31209 esac
31210 case $ac_abs_builddir in
31211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31213 case ${ac_top_builddir}. in
31214 .) ac_abs_top_builddir=$ac_abs_builddir;;
31215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31217 esac;;
31218 esac
31219 case $ac_abs_builddir in
31220 .) ac_abs_srcdir=$ac_srcdir;;
31222 case $ac_srcdir in
31223 .) ac_abs_srcdir=$ac_abs_builddir;;
31224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31226 esac;;
31227 esac
31228 case $ac_abs_builddir in
31229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31231 case $ac_top_srcdir in
31232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31235 esac;;
31236 esac
31239 cd "$ac_dir"
31241 # Check for guested configure; otherwise get Cygnus style configure.
31242 if test -f "$ac_srcdir/configure.gnu"; then
31243 ac_sub_configure=$ac_srcdir/configure.gnu
31244 elif test -f "$ac_srcdir/configure"; then
31245 ac_sub_configure=$ac_srcdir/configure
31246 elif test -f "$ac_srcdir/configure.in"; then
31247 # This should be Cygnus configure.
31248 ac_sub_configure=$ac_aux_dir/configure
31249 else
31250 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31251 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31252 ac_sub_configure=
31255 # The recursion is here.
31256 if test -n "$ac_sub_configure"; then
31257 # Make the cache file name correct relative to the subdirectory.
31258 case $cache_file in
31259 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31260 *) # Relative path.
31261 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31262 esac
31264 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31265 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31266 # The eval makes quoting arguments work.
31267 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31268 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31269 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31270 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31271 { (exit 1); exit 1; }; }
31274 cd "$ac_popdir"
31275 done