]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
configure.ac: m4_include config/proginstall.m4.
[thirdparty/gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="java/lang/System.java"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
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
484
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'
502
503 ac_prev=
504 for ac_option
505 do
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
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
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 ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
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 ;;
544
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" ;;
553
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'" ;;
566
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 ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
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 ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
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 ;;
615
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 ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
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 ;;
641
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 ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
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 ;;
662
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 ;;
669
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 ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
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 ;;
696
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 ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
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 ;;
724
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 ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
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'" ;;
748
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" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
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 ;;
768
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 ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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 ;;
790
791 *)
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}
797 ;;
798
799 esac
800 done
801
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; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
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
818
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
822 do
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
830
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
837
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
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
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=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
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; }; }
885 fi
886 fi
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
927
928 #
929 # Report the --help message.
930 #
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.
936
937 Usage: $0 [OPTION]... [VAR=VALUE]...
938
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.
941
942 Defaults for the options are specified in brackets.
943
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 \`..']
954
955 _ACEOF
956
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]
963
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'.
968
969 For better control, use the options below.
970
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
985
986 cat <<\_ACEOF
987
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
992
993 X features:
994 --x-includes=DIR X include files are in DIR
995 --x-libraries=DIR X library files are in DIR
996
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
1002 fi
1003
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
1009
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]
1049
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
1074
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
1086
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.
1089
1090 _ACEOF
1091 fi
1092
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=.
1099
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=
1106 fi
1107
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
1123
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";;
1128 *)
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}.;;
1137 *)
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;;
1146 *)
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;;
1155 *)
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
1162
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
1177 fi
1178 cd $ac_popdir
1179 done
1180 fi
1181
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
1187
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
1193 fi
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.
1198
1199 It was created by libjava $as_me version-unused, which was
1200 generated by GNU Autoconf 2.59. Invocation command line was
1201
1202 $ $0 $@
1203
1204 _ACEOF
1205 {
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1210
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`
1216
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`
1219
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`
1227
1228 _ASUNAME
1229
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1232 do
1233 IFS=$as_save_IFS
1234 test -z "$as_dir" && as_dir=.
1235 echo "PATH: $as_dir"
1236 done
1237
1238 } >&5
1239
1240 cat >&5 <<_ACEOF
1241
1242
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1246
1247 _ACEOF
1248
1249
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
1261 do
1262 for ac_arg
1263 do
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'" ;;
1274 2)
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
1287 ;;
1288 -* ) ac_must_keep_next=true ;;
1289 esac
1290 fi
1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292 # Get rid of the leading space.
1293 ac_sep=" "
1294 ;;
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; }
1300
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.
1308 {
1309 echo
1310
1311 cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316 echo
1317 # The following way of writing the cache mishandles newlines in values,
1318 {
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"
1325 ;;
1326 *)
1327 sed -n \
1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ;;
1330 esac;
1331 }
1332 echo
1333
1334 cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339 echo
1340 for ac_var in $ac_subst_vars
1341 do
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1346
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
1355 do
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1360 fi
1361
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
1371 fi
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
1379 ' 0
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
1384
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
1389
1390 # Predefined preprocessor variables.
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1415
1416
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"
1424 fi
1425 fi
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"
1432 fi
1433 done
1434
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
1445 fi
1446 else
1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449 >$cache_file
1450 fi
1451
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 ,);;
1471 *)
1472 if test "x$ac_old_val" != "x$ac_new_val"; then
1473 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1476 echo "$as_me: former value: $ac_old_val" >&2;}
1477 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1478 echo "$as_me: current value: $ac_new_val" >&2;}
1479 ac_cache_corrupted=:
1480 fi;;
1481 esac
1482 # Pass precious variables to config.status.
1483 if test "$ac_new_set" = set; then
1484 case $ac_new_val in
1485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487 *) ac_arg=$ac_var=$ac_new_val ;;
1488 esac
1489 case " $ac_configure_args " in
1490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1491 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492 esac
1493 fi
1494 done
1495 if $ac_cache_corrupted; then
1496 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500 { (exit 1); exit 1; }; }
1501 fi
1502
1503 ac_ext=c
1504 ac_cpp='$CPP $CPPFLAGS'
1505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 ac_aux_dir=
1539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1552 fi
1553 done
1554 if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557 { (exit 1); exit 1; }; }
1558 fi
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563 # Make sure we can run config.sub.
1564 $ac_config_sub sun4 >/dev/null 2>&1 ||
1565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569 echo "$as_me:$LINENO: checking build system type" >&5
1570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571 if test "${ac_cv_build+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 ac_cv_build_alias=$build_alias
1575 test -z "$ac_cv_build_alias" &&
1576 ac_cv_build_alias=`$ac_config_guess`
1577 test -z "$ac_cv_build_alias" &&
1578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580 { (exit 1); exit 1; }; }
1581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588 echo "${ECHO_T}$ac_cv_build" >&6
1589 build=$ac_cv_build
1590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 case ${build_alias} in
1596 "") build_noncanonical=${build} ;;
1597 *) build_noncanonical=${build_alias} ;;
1598 esac
1599
1600 case ${host_alias} in
1601 "") host_noncanonical=${build_noncanonical} ;;
1602 *) host_noncanonical=${host_alias} ;;
1603 esac
1604
1605 case ${target_alias} in
1606 "") target_noncanonical=${host_noncanonical} ;;
1607 *) target_noncanonical=${target_alias} ;;
1608 esac
1609
1610
1611 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1612 # have matching libraries, they should use host libraries: Makefile.tpl
1613 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1614 # However, they still use the build modules, because the corresponding
1615 # host modules (e.g. bison) are only built for the host when bootstrap
1616 # finishes. So:
1617 # - build_subdir is where we find build modules, and never changes.
1618 # - build_libsubdir is where we find build libraries, and can be overridden.
1619
1620 # Prefix 'build-' so this never conflicts with target_subdir.
1621 build_subdir="build-${build_noncanonical}"
1622
1623 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1624 if test "${with_build_libsubdir+set}" = set; then
1625 withval="$with_build_libsubdir"
1626 build_libsubdir="$withval"
1627 else
1628 build_libsubdir="$build_subdir"
1629 fi;
1630 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1631 if ( test $srcdir = . && test -d gcc ) \
1632 || test -d $srcdir/../host-${host_noncanonical}; then
1633 host_subdir="host-${host_noncanonical}"
1634 else
1635 host_subdir=.
1636 fi
1637 # No prefix.
1638 target_subdir=${target_noncanonical}
1639
1640
1641 # We use these options to decide which functions to include.
1642
1643 # Check whether --with-target-subdir or --without-target-subdir was given.
1644 if test "${with_target_subdir+set}" = set; then
1645 withval="$with_target_subdir"
1646
1647 fi;
1648
1649 # We may get other options which we don't document:
1650 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1651
1652 # Find the rest of the source tree framework.
1653 # Default to --enable-multilib
1654 # Check whether --enable-multilib or --disable-multilib was given.
1655 if test "${enable_multilib+set}" = set; then
1656 enableval="$enable_multilib"
1657 case "$enableval" in
1658 yes) multilib=yes ;;
1659 no) multilib=no ;;
1660 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1661 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1663 esac
1664 else
1665 multilib=yes
1666 fi;
1667
1668 # We may get other options which we leave undocumented:
1669 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1670 # See config-ml.in if you want the gory details.
1671
1672 if test "$srcdir" = "."; then
1673 if test "$with_target_subdir" != "."; then
1674 multi_basedir="$srcdir/$with_multisrctop../.."
1675 else
1676 multi_basedir="$srcdir/$with_multisrctop.."
1677 fi
1678 else
1679 multi_basedir="$srcdir/.."
1680 fi
1681
1682
1683 # Even if the default multilib is not a cross compilation,
1684 # it may be that some of the other multilibs are.
1685 if test $cross_compiling = no && test $multilib = yes \
1686 && test "x${with_multisubdir}" != x ; then
1687 cross_compiling=maybe
1688 fi
1689
1690 ac_config_commands="$ac_config_commands default-1"
1691
1692
1693 echo "$as_me:$LINENO: checking host system type" >&5
1694 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1695 if test "${ac_cv_host+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 ac_cv_host_alias=$host_alias
1699 test -z "$ac_cv_host_alias" &&
1700 ac_cv_host_alias=$ac_cv_build_alias
1701 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1702 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1703 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1704 { (exit 1); exit 1; }; }
1705
1706 fi
1707 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1708 echo "${ECHO_T}$ac_cv_host" >&6
1709 host=$ac_cv_host
1710 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1711 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1712 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713
1714
1715 echo "$as_me:$LINENO: checking target system type" >&5
1716 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1717 if test "${ac_cv_target+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 ac_cv_target_alias=$target_alias
1721 test "x$ac_cv_target_alias" = "x" &&
1722 ac_cv_target_alias=$ac_cv_host_alias
1723 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1724 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1725 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1726 { (exit 1); exit 1; }; }
1727
1728 fi
1729 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1730 echo "${ECHO_T}$ac_cv_target" >&6
1731 target=$ac_cv_target
1732 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737 # The aliases save the names the user supplied, while $host etc.
1738 # will get canonicalized.
1739 test -n "$target_alias" &&
1740 test "$program_prefix$program_suffix$program_transform_name" = \
1741 NONENONEs,x,x, &&
1742 program_prefix=${target_alias}-
1743 case ${build_alias} in
1744 "") build_noncanonical=${build} ;;
1745 *) build_noncanonical=${build_alias} ;;
1746 esac
1747
1748 case ${target_alias} in
1749 "") target_noncanonical=${host_noncanonical} ;;
1750 *) target_noncanonical=${target_alias} ;;
1751 esac
1752
1753
1754
1755
1756 # This works around the fact that libtool configuration may change LD
1757 # for this particular configuration, but some shells, instead of
1758 # keeping the changes in LD private, export them just because LD is
1759 # exported.
1760 ORIGINAL_LD_FOR_MULTILIBS=$LD
1761
1762 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1763 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1764 LN_S=$as_ln_s
1765 if test "$LN_S" = "ln -s"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1770 echo "${ECHO_T}no, using $LN_S" >&6
1771 fi
1772
1773
1774 # This works around an automake problem.
1775 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1776
1777
1778
1779 # Check whether --with-cross-host or --without-cross-host was given.
1780 if test "${with_cross_host+set}" = set; then
1781 withval="$with_cross_host"
1782
1783 fi;
1784
1785
1786 # Check whether --with-newlib or --without-newlib was given.
1787 if test "${with_newlib+set}" = set; then
1788 withval="$with_newlib"
1789
1790 fi;
1791
1792 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1793 if test "${enable_version_specific_runtime_libs+set}" = set; then
1794 enableval="$enable_version_specific_runtime_libs"
1795 case "$enableval" in
1796 yes) version_specific_libs=yes ;;
1797 no) version_specific_libs=no ;;
1798 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1799 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1800 { (exit 1); exit 1; }; };;
1801 esac
1802 else
1803 version_specific_libs=no
1804
1805 fi;
1806
1807 # Check whether --enable-plugin or --disable-plugin was given.
1808 if test "${enable_plugin+set}" = set; then
1809 enableval="$enable_plugin"
1810 case "$enableval" in
1811 yes) plugin_enabled=yes ;;
1812 no) plugin_enabled=no ;;
1813 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1814 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1815 { (exit 1); exit 1; }; };;
1816 esac
1817 else
1818 plugin_enabled=no
1819
1820 fi;
1821
1822 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1823 if test "${enable_gconf_peer+set}" = set; then
1824 enableval="$enable_gconf_peer"
1825 case "$enableval" in
1826 yes) gconf_enabled=yes ;;
1827 no) gconf_enabled=no ;;
1828 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1829 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1830 { (exit 1); exit 1; }; };;
1831 esac
1832 else
1833 gconf_enabled=no
1834
1835 fi;
1836
1837 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1838 if test "${enable_java_maintainer_mode+set}" = set; then
1839 enableval="$enable_java_maintainer_mode"
1840
1841 fi;
1842
1843
1844 if test "$enable_java_maintainer_mode" = yes; then
1845 JAVA_MAINTAINER_MODE_TRUE=
1846 JAVA_MAINTAINER_MODE_FALSE='#'
1847 else
1848 JAVA_MAINTAINER_MODE_TRUE='#'
1849 JAVA_MAINTAINER_MODE_FALSE=
1850 fi
1851
1852
1853 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1854
1855
1856 # (1) We use an abnormal CXX (without library references), so we
1857 # must cache it under a different name.
1858 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1859 # the non-multilib-adjusted value will be used in multilibs.
1860 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1861 # (4) As another side effect, automake doesn't automatically include them
1862 # in Makefile.in.
1863 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1864 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1865 # used in later tests. This may not be necessary in libjava; I don't know.
1866
1867
1868 save_CXXFLAGS="$CXXFLAGS"
1869 CXXFLAGS="$CXXFLAGS -fno-builtin"
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1896 fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 CC=$ac_cv_prog_CC
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 fi
1912 if test -z "$ac_cv_prog_CC"; then
1913 ac_ct_CC=$CC
1914 # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 CC=$ac_ct_CC
1950 else
1951 CC="$ac_cv_prog_CC"
1952 fi
1953
1954 if test -z "$CC"; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_CC="${ac_tool_prefix}cc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977 done
1978 done
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984 echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6
1986 else
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991 fi
1992 if test -z "$ac_cv_prog_CC"; then
1993 ac_ct_CC=$CC
1994 # Extract the first word of "cc", so it can be a program name with args.
1995 set dummy cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 CC=$ac_ct_CC
2030 else
2031 CC="$ac_cv_prog_CC"
2032 fi
2033
2034 fi
2035 if test -z "$CC"; then
2036 # Extract the first word of "cc", so it can be a program name with args.
2037 set dummy cc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 else
2046 ac_prog_rejected=no
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2055 ac_prog_rejected=yes
2056 continue
2057 fi
2058 ac_cv_prog_CC="cc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064
2065 if test $ac_prog_rejected = yes; then
2066 # We found a bogon in the path, so make sure we never use it.
2067 set dummy $ac_cv_prog_CC
2068 shift
2069 if test $# != 0; then
2070 # We chose a different compiler from the bogus one.
2071 # However, it has the same basename, so the bogon will be chosen
2072 # first if we set CC to just the basename; use the full file name.
2073 shift
2074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2075 fi
2076 fi
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088 fi
2089 if test -z "$CC"; then
2090 if test -n "$ac_tool_prefix"; then
2091 for ac_prog in cl
2092 do
2093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114 done
2115 done
2116
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128 test -n "$CC" && break
2129 done
2130 fi
2131 if test -z "$CC"; then
2132 ac_ct_CC=$CC
2133 for ac_prog in cl
2134 do
2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
2136 set dummy $ac_prog; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152 ac_cv_prog_ac_ct_CC="$ac_prog"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156 done
2157 done
2158
2159 fi
2160 fi
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6
2165 else
2166 echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2168 fi
2169
2170 test -n "$ac_ct_CC" && break
2171 done
2172
2173 CC=$ac_ct_CC
2174 fi
2175
2176 fi
2177
2178
2179 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: no acceptable C compiler found in \$PATH
2182 See \`config.log' for more details." >&2;}
2183 { (exit 1); exit 1; }; }
2184
2185 # Provide some information about the compiler.
2186 echo "$as_me:$LINENO:" \
2187 "checking for C compiler version" >&5
2188 ac_compiler=`set X $ac_compile; echo $2`
2189 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2190 (eval $ac_compiler --version </dev/null >&5) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2195 (eval $ac_compiler -v </dev/null >&5) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2200 (eval $ac_compiler -V </dev/null >&5) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2204
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h. */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2211
2212 int
2213 main ()
2214 {
2215
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 # FIXME: Cleanup?
2221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2222 (eval $ac_link) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; then
2226 gcc_no_link=no
2227 else
2228 gcc_no_link=yes
2229 fi
2230
2231 if test x$gcc_no_link = xyes; then
2232 # Setting cross_compile will disable run tests; it will
2233 # also disable AC_CHECK_FILE but that's generally
2234 # correct if we can't link.
2235 cross_compiling=yes
2236 EXEEXT=
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244
2245 int
2246 main ()
2247 {
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 ac_clean_files_save=$ac_clean_files
2254 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2255 # Try to create an executable without -o first, disregard a.out.
2256 # It will help us diagnose broken compilers, and finding out an intuition
2257 # of exeext.
2258 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2259 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2260 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2262 (eval $ac_link_default) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # Find the output, starting from the most likely. This scheme is
2267 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2268 # resort.
2269
2270 # Be careful to initialize this variable, since it used to be cached.
2271 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2272 ac_cv_exeext=
2273 # b.out is created by i960 compilers.
2274 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2275 do
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2279 ;;
2280 conftest.$ac_ext )
2281 # This is the source file.
2282 ;;
2283 [ab].out )
2284 # We found the default executable, but exeext='' is most
2285 # certainly right.
2286 break;;
2287 *.* )
2288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 # FIXME: I believe we export ac_cv_exeext for Libtool,
2290 # but it would be cool to find out if it's true. Does anybody
2291 # maintain Libtool? --akim.
2292 export ac_cv_exeext
2293 break;;
2294 * )
2295 break;;
2296 esac
2297 done
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&2;}
2306 { (exit 77); exit 77; }; }
2307 fi
2308
2309 ac_exeext=$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_file" >&5
2311 echo "${ECHO_T}$ac_file" >&6
2312
2313 # Check the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 cross_compiling=no
2327 else
2328 if test "$cross_compiling" = maybe; then
2329 cross_compiling=yes
2330 else
2331 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339 fi
2340 fi
2341 echo "$as_me:$LINENO: result: yes" >&5
2342 echo "${ECHO_T}yes" >&6
2343
2344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2345 ac_clean_files=$ac_clean_files_save
2346 # Check the compiler produces executables we can run. If not, either
2347 # the compiler is broken, or we cross compile.
2348 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2350 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2351 echo "${ECHO_T}$cross_compiling" >&6
2352
2353 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2356 (eval $ac_link) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2361 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2362 # work properly (i.e., refer to `conftest.exe'), while it won't with
2363 # `rm'.
2364 for ac_file in conftest.exe conftest conftest.*; do
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2369 export ac_cv_exeext
2370 break;;
2371 * ) break;;
2372 esac
2373 done
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2378 See \`config.log' for more details." >&2;}
2379 { (exit 1); exit 1; }; }
2380 fi
2381
2382 rm -f conftest$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2384 echo "${ECHO_T}$ac_cv_exeext" >&6
2385
2386 rm -f conftest.$ac_ext
2387 EXEEXT=$ac_cv_exeext
2388 ac_exeext=$EXEEXT
2389 fi
2390 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2391 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2392 if test "${ac_cv_objext+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2401
2402 int
2403 main ()
2404 {
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.o conftest.obj
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2417 case $ac_file in
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2420 break;;
2421 esac
2422 done
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2435 fi
2436 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2437 echo "${ECHO_T}$ac_cv_objext" >&6
2438 OBJEXT=$ac_cv_objext
2439 ac_objext=$OBJEXT
2440 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2441 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2442 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2451
2452 int
2453 main ()
2454 {
2455 #ifndef __GNUC__
2456 choke me
2457 #endif
2458
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 ac_compiler_gnu=yes
2486 else
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2498 GCC=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CFLAGS=${CFLAGS+set}
2500 ac_save_CFLAGS=$CFLAGS
2501 CFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2503 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513
2514 int
2515 main ()
2516 {
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag"
2532 || test ! -s conftest.err'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2544 ac_cv_prog_cc_g=yes
2545 else
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ac_cv_prog_cc_g=no
2550 fi
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2555 if test "$ac_test_CFLAGS" = set; then
2556 CFLAGS=$ac_save_CFLAGS
2557 elif test $ac_cv_prog_cc_g = yes; then
2558 if test "$GCC" = yes; then
2559 CFLAGS="-g -O2"
2560 else
2561 CFLAGS="-g"
2562 fi
2563 else
2564 if test "$GCC" = yes; then
2565 CFLAGS="-O2"
2566 else
2567 CFLAGS=
2568 fi
2569 fi
2570 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2571 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2572 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 ac_cv_prog_cc_stdc=no
2576 ac_save_CC=$CC
2577 cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h. */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2583 #include <stdarg.h>
2584 #include <stdio.h>
2585 #include <sys/types.h>
2586 #include <sys/stat.h>
2587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2588 struct buf { int x; };
2589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2590 static char *e (p, i)
2591 char **p;
2592 int i;
2593 {
2594 return p[i];
2595 }
2596 static char *f (char * (*g) (char **, int), char **p, ...)
2597 {
2598 char *s;
2599 va_list v;
2600 va_start (v,p);
2601 s = g (p, va_arg (v,int));
2602 va_end (v);
2603 return s;
2604 }
2605
2606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2607 function prototypes and stuff, but not '\xHH' hex character constants.
2608 These don't provoke an error unfortunately, instead are silently treated
2609 as 'x'. The following induces an error, until -std1 is added to get
2610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2611 array size at least. It's necessary to write '\x00'==0 to get something
2612 that's true only with -std1. */
2613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2614
2615 int test (int i, double x);
2616 struct s1 {int (*f) (int a);};
2617 struct s2 {int (*f) (double a);};
2618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2619 int argc;
2620 char **argv;
2621 int
2622 main ()
2623 {
2624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2625 ;
2626 return 0;
2627 }
2628 _ACEOF
2629 # Don't try gcc -ansi; that turns off useful extensions and
2630 # breaks some systems' header files.
2631 # AIX -qlanglvl=ansi
2632 # Ultrix and OSF/1 -std1
2633 # HP-UX 10.20 and later -Ae
2634 # HP-UX older versions -Aa -D_HPUX_SOURCE
2635 # SVR4 -Xc -D__EXTENSIONS__
2636 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2637 do
2638 CC="$ac_save_CC $ac_arg"
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2642 ac_status=$?
2643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 ac_cv_prog_cc_stdc=$ac_arg
2662 break
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 fi
2668 rm -f conftest.err conftest.$ac_objext
2669 done
2670 rm -f conftest.$ac_ext conftest.$ac_objext
2671 CC=$ac_save_CC
2672
2673 fi
2674
2675 case "x$ac_cv_prog_cc_stdc" in
2676 x|xno)
2677 echo "$as_me:$LINENO: result: none needed" >&5
2678 echo "${ECHO_T}none needed" >&6 ;;
2679 *)
2680 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2681 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2682 CC="$CC $ac_cv_prog_cc_stdc" ;;
2683 esac
2684
2685 # Some people use a C++ compiler to compile C. Since we use `exit',
2686 # in C++ we need to declare it. In case someone uses the same compiler
2687 # for both compiling C and C++ we need to have the C++ compiler decide
2688 # the declaration of exit, since it's the most demanding environment.
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #ifndef __cplusplus
2691 choke me
2692 #endif
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag"
2704 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 for ac_declaration in \
2717 '' \
2718 'extern "C" void std::exit (int) throw (); using std::exit;' \
2719 'extern "C" void std::exit (int); using std::exit;' \
2720 'extern "C" void exit (int) throw ();' \
2721 'extern "C" void exit (int);' \
2722 'void exit (int);'
2723 do
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 $ac_declaration
2731 #include <stdlib.h>
2732 int
2733 main ()
2734 {
2735 exit (42);
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 :
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 continue
2768 fi
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 $ac_declaration
2777 int
2778 main ()
2779 {
2780 exit (42);
2781 ;
2782 return 0;
2783 }
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_c_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 break
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 fi
2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 done
2815 rm -f conftest*
2816 if test -n "$ac_declaration"; then
2817 echo '#ifdef __cplusplus' >>confdefs.h
2818 echo $ac_declaration >>confdefs.h
2819 echo '#endif' >>confdefs.h
2820 fi
2821
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 fi
2827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834 ac_ext=cc
2835 ac_cpp='$CXXCPP $CPPFLAGS'
2836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2841 do
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_CXX+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$CXX"; then
2850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 CXX=$ac_cv_prog_CXX
2869 if test -n "$CXX"; then
2870 echo "$as_me:$LINENO: result: $CXX" >&5
2871 echo "${ECHO_T}$CXX" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877 test -n "$CXX" && break
2878 done
2879 fi
2880 if test -z "$CXX"; then
2881 ac_ct_CXX=$CXX
2882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2883 do
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if test -n "$ac_ct_CXX"; then
2892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_prog"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907
2908 fi
2909 fi
2910 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2911 if test -n "$ac_ct_CXX"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2913 echo "${ECHO_T}$ac_ct_CXX" >&6
2914 else
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2917 fi
2918
2919 test -n "$ac_ct_CXX" && break
2920 done
2921 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2922
2923 CXX=$ac_ct_CXX
2924 fi
2925
2926
2927 # Provide some information about the compiler.
2928 echo "$as_me:$LINENO:" \
2929 "checking for C++ compiler version" >&5
2930 ac_compiler=`set X $ac_compile; echo $2`
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2932 (eval $ac_compiler --version </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2937 (eval $ac_compiler -v </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2942 (eval $ac_compiler -V </dev/null >&5) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946
2947 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963 choke me
2964 #endif
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_cxx_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 ac_compiler_gnu=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_compiler_gnu=no
2998 fi
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3001
3002 fi
3003 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3005 GXX=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CXXFLAGS=${CXXFLAGS+set}
3007 ac_save_CXXFLAGS=$CXXFLAGS
3008 CXXFLAGS="-g"
3009 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3010 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3011 if test "${ac_cv_prog_cxx_g+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag"
3039 || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_cv_prog_cxx_g=no
3057 fi
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059 fi
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063 CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065 if test "$GXX" = yes; then
3066 CXXFLAGS="-g -O2"
3067 else
3068 CXXFLAGS="-g"
3069 fi
3070 else
3071 if test "$GXX" = yes; then
3072 CXXFLAGS="-O2"
3073 else
3074 CXXFLAGS=
3075 fi
3076 fi
3077 for ac_declaration in \
3078 '' \
3079 'extern "C" void std::exit (int) throw (); using std::exit;' \
3080 'extern "C" void std::exit (int); using std::exit;' \
3081 'extern "C" void exit (int) throw ();' \
3082 'extern "C" void exit (int);' \
3083 'void exit (int);'
3084 do
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091 $ac_declaration
3092 #include <stdlib.h>
3093 int
3094 main ()
3095 {
3096 exit (42);
3097 ;
3098 return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag"
3111 || test ! -s conftest.err'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 :
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 continue
3129 fi
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 $ac_declaration
3138 int
3139 main ()
3140 {
3141 exit (42);
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag"
3156 || test ! -s conftest.err'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 break
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 fi
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 done
3176 rm -f conftest*
3177 if test -n "$ac_declaration"; then
3178 echo '#ifdef __cplusplus' >>confdefs.h
3179 echo $ac_declaration >>confdefs.h
3180 echo '#endif' >>confdefs.h
3181 fi
3182
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188
3189 CXXFLAGS="$save_CXXFLAGS"
3190
3191
3192
3193
3194
3195 am__api_version="1.9"
3196 # Find a good install program. We prefer a C program (faster),
3197 # so one script is as good as another. But avoid the broken or
3198 # incompatible versions:
3199 # SysV /etc/install, /usr/sbin/install
3200 # SunOS /usr/etc/install
3201 # IRIX /sbin/install
3202 # AIX /bin/install
3203 # AmigaOS /C/install, which installs bootblocks on floppy discs
3204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207 # OS/2's system install, which has a completely different semantic
3208 # ./install, which can be erroneously created by make from ./install.sh.
3209 # Reject install programs that cannot install multiple files.
3210 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3211 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3212 if test -z "$INSTALL"; then
3213 if test "${ac_cv_path_install+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 # Account for people who put trailing slashes in PATH elements.
3222 case $as_dir/ in
3223 ./ | .// | /cC/* | \
3224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3225 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3226 /usr/ucb/* ) ;;
3227 *)
3228 # OSF1 and SCO ODT 3.0 have their own names for install.
3229 # Don't use installbsd from OSF since it installs stuff as root
3230 # by default.
3231 for ac_prog in ginstall scoinst install; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3234 if test $ac_prog = install &&
3235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3236 # AIX install. It has an incompatible calling convention.
3237 :
3238 elif test $ac_prog = install &&
3239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3240 # program-specific install script used by HP pwplus--don't use.
3241 :
3242 else
3243 rm -rf conftest.one conftest.two conftest.dir
3244 echo one > conftest.one
3245 echo two > conftest.two
3246 mkdir conftest.dir
3247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3248 test -s conftest.one && test -s conftest.two &&
3249 test -s conftest.dir/conftest.one &&
3250 test -s conftest.dir/conftest.two
3251 then
3252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3253 break 3
3254 fi
3255 fi
3256 fi
3257 done
3258 done
3259 ;;
3260 esac
3261 done
3262
3263 rm -rf conftest.one conftest.two conftest.dir
3264
3265 fi
3266 if test "${ac_cv_path_install+set}" = set; then
3267 INSTALL=$ac_cv_path_install
3268 else
3269 # As a last resort, use the slow shell script. Don't cache a
3270 # value for INSTALL within a source directory, because that will
3271 # break other packages using the cache if that directory is
3272 # removed, or if the value is a relative name.
3273 INSTALL=$ac_install_sh
3274 fi
3275 fi
3276 echo "$as_me:$LINENO: result: $INSTALL" >&5
3277 echo "${ECHO_T}$INSTALL" >&6
3278
3279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3280 # It thinks the first close brace ends the variable substitution.
3281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3282
3283 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3284
3285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3286
3287 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3288 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3289 # Just in case
3290 sleep 1
3291 echo timestamp > conftest.file
3292 # Do `set' in a subshell so we don't clobber the current shell's
3293 # arguments. Must try -L first in case configure is actually a
3294 # symlink; some systems play weird games with the mod time of symlinks
3295 # (eg FreeBSD returns the mod time of the symlink's containing
3296 # directory).
3297 if (
3298 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3299 if test "$*" = "X"; then
3300 # -L didn't work.
3301 set X `ls -t $srcdir/configure conftest.file`
3302 fi
3303 rm -f conftest.file
3304 if test "$*" != "X $srcdir/configure conftest.file" \
3305 && test "$*" != "X conftest.file $srcdir/configure"; then
3306
3307 # If neither matched, then we have a broken ls. This can happen
3308 # if, for instance, CONFIG_SHELL is bash and it inherits a
3309 # broken ls alias from the environment. This has actually
3310 # happened. Such a system could not be considered "sane".
3311 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3312 alias in your environment" >&5
3313 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3314 alias in your environment" >&2;}
3315 { (exit 1); exit 1; }; }
3316 fi
3317
3318 test "$2" = conftest.file
3319 )
3320 then
3321 # Ok.
3322 :
3323 else
3324 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3325 Check your system clock" >&5
3326 echo "$as_me: error: newly created file is older than distributed files!
3327 Check your system clock" >&2;}
3328 { (exit 1); exit 1; }; }
3329 fi
3330 echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6
3332 test "$program_prefix" != NONE &&
3333 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3334 # Use a double $ so make ignores it.
3335 test "$program_suffix" != NONE &&
3336 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3337 # Double any \ or $. echo might interpret backslashes.
3338 # By default was `s,x,x', remove it if useless.
3339 cat <<\_ACEOF >conftest.sed
3340 s/[\\$]/&&/g;s/;s,x,x,$//
3341 _ACEOF
3342 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3343 rm conftest.sed
3344
3345 # expand $ac_aux_dir to an absolute path
3346 am_aux_dir=`cd $ac_aux_dir && pwd`
3347
3348 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3349 # Use eval to expand $SHELL
3350 if eval "$MISSING --run true"; then
3351 am_missing_run="$MISSING --run "
3352 else
3353 am_missing_run=
3354 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3355 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3356 fi
3357
3358 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3359 # We used to keeping the `.' as first argument, in order to
3360 # allow $(mkdir_p) to be used without argument. As in
3361 # $(mkdir_p) $(somedir)
3362 # where $(somedir) is conditionally defined. However this is wrong
3363 # for two reasons:
3364 # 1. if the package is installed by a user who cannot write `.'
3365 # make install will fail,
3366 # 2. the above comment should most certainly read
3367 # $(mkdir_p) $(DESTDIR)$(somedir)
3368 # so it does not work when $(somedir) is undefined and
3369 # $(DESTDIR) is not.
3370 # To support the latter case, we have to write
3371 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3372 # so the `.' trick is pointless.
3373 mkdir_p='mkdir -p --'
3374 else
3375 # On NextStep and OpenStep, the `mkdir' command does not
3376 # recognize any option. It will interpret all options as
3377 # directories to create, and then abort because `.' already
3378 # exists.
3379 for d in ./-p ./--version;
3380 do
3381 test -d $d && rmdir $d
3382 done
3383 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3384 if test -f "$ac_aux_dir/mkinstalldirs"; then
3385 mkdir_p='$(mkinstalldirs)'
3386 else
3387 mkdir_p='$(install_sh) -d'
3388 fi
3389 fi
3390
3391 for ac_prog in gawk mawk nawk awk
3392 do
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_AWK+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$AWK"; then
3401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_AWK="$ac_prog"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416
3417 fi
3418 fi
3419 AWK=$ac_cv_prog_AWK
3420 if test -n "$AWK"; then
3421 echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3423 else
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 test -n "$AWK" && break
3429 done
3430
3431 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3433 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3434 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 cat >conftest.make <<\_ACEOF
3438 all:
3439 @echo 'ac_maketemp="$(MAKE)"'
3440 _ACEOF
3441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3442 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3443 if test -n "$ac_maketemp"; then
3444 eval ac_cv_prog_make_${ac_make}_set=yes
3445 else
3446 eval ac_cv_prog_make_${ac_make}_set=no
3447 fi
3448 rm -f conftest.make
3449 fi
3450 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3453 SET_MAKE=
3454 else
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 SET_MAKE="MAKE=${MAKE-make}"
3458 fi
3459
3460 rm -rf .tst 2>/dev/null
3461 mkdir .tst 2>/dev/null
3462 if test -d .tst; then
3463 am__leading_dot=.
3464 else
3465 am__leading_dot=_
3466 fi
3467 rmdir .tst 2>/dev/null
3468
3469 DEPDIR="${am__leading_dot}deps"
3470
3471 ac_config_commands="$ac_config_commands depfiles"
3472
3473
3474 am_make=${MAKE-make}
3475 cat > confinc << 'END'
3476 am__doit:
3477 @echo done
3478 .PHONY: am__doit
3479 END
3480 # If we don't find an include directive, just comment out the code.
3481 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3482 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3483 am__include="#"
3484 am__quote=
3485 _am_result=none
3486 # First try GNU make style include.
3487 echo "include confinc" > confmf
3488 # We grep out `Entering directory' and `Leaving directory'
3489 # messages which can occur if `w' ends up in MAKEFLAGS.
3490 # In particular we don't look at `^make:' because GNU make might
3491 # be invoked under some other name (usually "gmake"), in which
3492 # case it prints its new name instead of `make'.
3493 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3494 am__include=include
3495 am__quote=
3496 _am_result=GNU
3497 fi
3498 # Now try BSD make style include.
3499 if test "$am__include" = "#"; then
3500 echo '.include "confinc"' > confmf
3501 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3502 am__include=.include
3503 am__quote="\""
3504 _am_result=BSD
3505 fi
3506 fi
3507
3508
3509 echo "$as_me:$LINENO: result: $_am_result" >&5
3510 echo "${ECHO_T}$_am_result" >&6
3511 rm -f confinc confmf
3512
3513 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3514 if test "${enable_dependency_tracking+set}" = set; then
3515 enableval="$enable_dependency_tracking"
3516
3517 fi;
3518 if test "x$enable_dependency_tracking" != xno; then
3519 am_depcomp="$ac_aux_dir/depcomp"
3520 AMDEPBACKSLASH='\'
3521 fi
3522
3523
3524 if test "x$enable_dependency_tracking" != xno; then
3525 AMDEP_TRUE=
3526 AMDEP_FALSE='#'
3527 else
3528 AMDEP_TRUE='#'
3529 AMDEP_FALSE=
3530 fi
3531
3532
3533
3534 # test to see if srcdir already configured
3535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3536 test -f $srcdir/config.status; then
3537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3539 { (exit 1); exit 1; }; }
3540 fi
3541
3542 # test whether we have cygpath
3543 if test -z "$CYGPATH_W"; then
3544 if (cygpath --version) >/dev/null 2>/dev/null; then
3545 CYGPATH_W='cygpath -w'
3546 else
3547 CYGPATH_W=echo
3548 fi
3549 fi
3550
3551
3552 # Define the identity of the package.
3553 PACKAGE='libjava'
3554 VERSION='version-unused'
3555
3556
3557 cat >>confdefs.h <<_ACEOF
3558 #define PACKAGE "$PACKAGE"
3559 _ACEOF
3560
3561
3562 cat >>confdefs.h <<_ACEOF
3563 #define VERSION "$VERSION"
3564 _ACEOF
3565
3566 # Some tools Automake needs.
3567
3568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3569
3570
3571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3572
3573
3574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3575
3576
3577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3578
3579
3580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3581
3582 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3583
3584 # Installed binaries are usually stripped using `strip' when the user
3585 # run `make install-strip'. However `strip' might not be the right
3586 # tool to use in cross-compilation environments, therefore Automake
3587 # will honor the `STRIP' environment variable to overrule this program.
3588 if test "$cross_compiling" != no; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}strip; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_prog_STRIP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 if test -n "$STRIP"; then
3598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613
3614 fi
3615 fi
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 echo "$as_me:$LINENO: result: $STRIP" >&5
3619 echo "${ECHO_T}$STRIP" >&6
3620 else
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625 fi
3626 if test -z "$ac_cv_prog_STRIP"; then
3627 ac_ct_STRIP=$STRIP
3628 # Extract the first word of "strip", so it can be a program name with args.
3629 set dummy strip; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 if test -n "$ac_ct_STRIP"; then
3636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_ac_ct_STRIP="strip"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651
3652 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3653 fi
3654 fi
3655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3656 if test -n "$ac_ct_STRIP"; then
3657 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3658 echo "${ECHO_T}$ac_ct_STRIP" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 STRIP=$ac_ct_STRIP
3665 else
3666 STRIP="$ac_cv_prog_STRIP"
3667 fi
3668
3669 fi
3670 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3671
3672 # We need awk for the "check" target. The system "awk" is bad on
3673 # some platforms.
3674 # Always define AMTAR for backward compatibility.
3675
3676 AMTAR=${AMTAR-"${am_missing_run}tar"}
3677
3678 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3679
3680
3681
3682
3683 depcc="$CC" am_compiler_list=
3684
3685 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3686 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3687 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3691 # We make a subdir and do the tests there. Otherwise we can end up
3692 # making bogus files that we don't know about and never remove. For
3693 # instance it was reported that on HP-UX the gcc test will end up
3694 # making a dummy file named `D' -- because `-MD' means `put the output
3695 # in D'.
3696 mkdir conftest.dir
3697 # Copy depcomp to subdir because otherwise we won't find it if we're
3698 # using a relative directory.
3699 cp "$am_depcomp" conftest.dir
3700 cd conftest.dir
3701 # We will build objects and dependencies in a subdirectory because
3702 # it helps to detect inapplicable dependency modes. For instance
3703 # both Tru64's cc and ICC support -MD to output dependencies as a
3704 # side effect of compilation, but ICC will put the dependencies in
3705 # the current directory while Tru64 will put them in the object
3706 # directory.
3707 mkdir sub
3708
3709 am_cv_CC_dependencies_compiler_type=none
3710 if test "$am_compiler_list" = ""; then
3711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3712 fi
3713 for depmode in $am_compiler_list; do
3714 # Setup a source with many dependencies, because some compilers
3715 # like to wrap large dependency lists on column 80 (with \), and
3716 # we should not choose a depcomp mode which is confused by this.
3717 #
3718 # We need to recreate these files for each test, as the compiler may
3719 # overwrite some of them when testing with obscure command lines.
3720 # This happens at least with the AIX C compiler.
3721 : > sub/conftest.c
3722 for i in 1 2 3 4 5 6; do
3723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3725 # Solaris 8's {/usr,}/bin/sh.
3726 touch sub/conftst$i.h
3727 done
3728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3729
3730 case $depmode in
3731 nosideeffect)
3732 # after this tag, mechanisms are not by side-effect, so they'll
3733 # only be used when explicitly requested
3734 if test "x$enable_dependency_tracking" = xyes; then
3735 continue
3736 else
3737 break
3738 fi
3739 ;;
3740 none) break ;;
3741 esac
3742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3743 # mode. It turns out that the SunPro C++ compiler does not properly
3744 # handle `-M -o', and we need to detect this.
3745 if depmode=$depmode \
3746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3749 >/dev/null 2>conftest.err &&
3750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3751 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3753 # icc doesn't choke on unknown options, it will just issue warnings
3754 # or remarks (even with -Werror). So we grep stderr for any message
3755 # that says an option was ignored or not supported.
3756 # When given -MP, icc 7.0 and 7.1 complain thusly:
3757 # icc: Command line warning: ignoring option '-M'; no argument required
3758 # The diagnosis changed in icc 8.0:
3759 # icc: Command line remark: option '-MP' not supported
3760 if (grep 'ignoring option' conftest.err ||
3761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3762 am_cv_CC_dependencies_compiler_type=$depmode
3763 break
3764 fi
3765 fi
3766 done
3767
3768 cd ..
3769 rm -rf conftest.dir
3770 else
3771 am_cv_CC_dependencies_compiler_type=none
3772 fi
3773
3774 fi
3775 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3776 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3778
3779
3780
3781 if
3782 test "x$enable_dependency_tracking" != xno \
3783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3784 am__fastdepCC_TRUE=
3785 am__fastdepCC_FALSE='#'
3786 else
3787 am__fastdepCC_TRUE='#'
3788 am__fastdepCC_FALSE=
3789 fi
3790
3791
3792 depcc="$CXX" am_compiler_list=
3793
3794 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3795 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3796 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named `D' -- because `-MD' means `put the output
3804 # in D'.
3805 mkdir conftest.dir
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3809 cd conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3815 # directory.
3816 mkdir sub
3817
3818 am_cv_CXX_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821 fi
3822 for depmode in $am_compiler_list; do
3823 # Setup a source with many dependencies, because some compilers
3824 # like to wrap large dependency lists on column 80 (with \), and
3825 # we should not choose a depcomp mode which is confused by this.
3826 #
3827 # We need to recreate these files for each test, as the compiler may
3828 # overwrite some of them when testing with obscure command lines.
3829 # This happens at least with the AIX C compiler.
3830 : > sub/conftest.c
3831 for i in 1 2 3 4 5 6; do
3832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834 # Solaris 8's {/usr,}/bin/sh.
3835 touch sub/conftst$i.h
3836 done
3837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839 case $depmode in
3840 nosideeffect)
3841 # after this tag, mechanisms are not by side-effect, so they'll
3842 # only be used when explicitly requested
3843 if test "x$enable_dependency_tracking" = xyes; then
3844 continue
3845 else
3846 break
3847 fi
3848 ;;
3849 none) break ;;
3850 esac
3851 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3852 # mode. It turns out that the SunPro C++ compiler does not properly
3853 # handle `-M -o', and we need to detect this.
3854 if depmode=$depmode \
3855 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3858 >/dev/null 2>conftest.err &&
3859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862 # icc doesn't choke on unknown options, it will just issue warnings
3863 # or remarks (even with -Werror). So we grep stderr for any message
3864 # that says an option was ignored or not supported.
3865 # When given -MP, icc 7.0 and 7.1 complain thusly:
3866 # icc: Command line warning: ignoring option '-M'; no argument required
3867 # The diagnosis changed in icc 8.0:
3868 # icc: Command line remark: option '-MP' not supported
3869 if (grep 'ignoring option' conftest.err ||
3870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871 am_cv_CXX_dependencies_compiler_type=$depmode
3872 break
3873 fi
3874 fi
3875 done
3876
3877 cd ..
3878 rm -rf conftest.dir
3879 else
3880 am_cv_CXX_dependencies_compiler_type=none
3881 fi
3882
3883 fi
3884 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3885 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3886 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3887
3888
3889
3890 if
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCXX_TRUE=
3894 am__fastdepCXX_FALSE='#'
3895 else
3896 am__fastdepCXX_TRUE='#'
3897 am__fastdepCXX_FALSE=
3898 fi
3899
3900
3901
3902
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}as; ac_word=$2
3906 echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_AS+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 if test -n "$AS"; then
3912 ac_cv_prog_AS="$AS" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_AS="${ac_tool_prefix}as"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927
3928 fi
3929 fi
3930 AS=$ac_cv_prog_AS
3931 if test -n "$AS"; then
3932 echo "$as_me:$LINENO: result: $AS" >&5
3933 echo "${ECHO_T}$AS" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939 fi
3940 if test -z "$ac_cv_prog_AS"; then
3941 ac_ct_AS=$AS
3942 # Extract the first word of "as", so it can be a program name with args.
3943 set dummy as; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 if test -n "$ac_ct_AS"; then
3950 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_ac_ct_AS="as"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965
3966 fi
3967 fi
3968 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3969 if test -n "$ac_ct_AS"; then
3970 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3971 echo "${ECHO_T}$ac_ct_AS" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975 fi
3976
3977 AS=$ac_ct_AS
3978 else
3979 AS="$ac_cv_prog_AS"
3980 fi
3981
3982 if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3984 set dummy ${ac_tool_prefix}ld; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_prog_LD+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 if test -n "$LD"; then
3991 ac_cv_prog_LD="$LD" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_LD="${ac_tool_prefix}ld"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006
4007 fi
4008 fi
4009 LD=$ac_cv_prog_LD
4010 if test -n "$LD"; then
4011 echo "$as_me:$LINENO: result: $LD" >&5
4012 echo "${ECHO_T}$LD" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018 fi
4019 if test -z "$ac_cv_prog_LD"; then
4020 ac_ct_LD=$LD
4021 # Extract the first word of "ld", so it can be a program name with args.
4022 set dummy ld; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 if test -n "$ac_ct_LD"; then
4029 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_ac_ct_LD="ld"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044
4045 fi
4046 fi
4047 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4048 if test -n "$ac_ct_LD"; then
4049 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4050 echo "${ECHO_T}$ac_ct_LD" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056 LD=$ac_ct_LD
4057 else
4058 LD="$ac_cv_prog_LD"
4059 fi
4060
4061 if test -n "$ac_tool_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4063 set dummy ${ac_tool_prefix}ar; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_prog_AR+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if test -n "$AR"; then
4070 ac_cv_prog_AR="$AR" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_AR="${ac_tool_prefix}ar"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085
4086 fi
4087 fi
4088 AR=$ac_cv_prog_AR
4089 if test -n "$AR"; then
4090 echo "$as_me:$LINENO: result: $AR" >&5
4091 echo "${ECHO_T}$AR" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4095 fi
4096
4097 fi
4098 if test -z "$ac_cv_prog_AR"; then
4099 ac_ct_AR=$AR
4100 # Extract the first word of "ar", so it can be a program name with args.
4101 set dummy ar; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 if test -n "$ac_ct_AR"; then
4108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_AR="ar"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121 done
4122 done
4123
4124 fi
4125 fi
4126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4127 if test -n "$ac_ct_AR"; then
4128 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4129 echo "${ECHO_T}$ac_ct_AR" >&6
4130 else
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4133 fi
4134
4135 AR=$ac_ct_AR
4136 else
4137 AR="$ac_cv_prog_AR"
4138 fi
4139
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_RANLIB+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$RANLIB"; then
4149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164
4165 fi
4166 fi
4167 RANLIB=$ac_cv_prog_RANLIB
4168 if test -n "$RANLIB"; then
4169 echo "$as_me:$LINENO: result: $RANLIB" >&5
4170 echo "${ECHO_T}$RANLIB" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176 fi
4177 if test -z "$ac_cv_prog_RANLIB"; then
4178 ac_ct_RANLIB=$RANLIB
4179 # Extract the first word of "ranlib", so it can be a program name with args.
4180 set dummy ranlib; ac_word=$2
4181 echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test -n "$ac_ct_RANLIB"; then
4187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_RANLIB="ranlib"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202
4203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4204 fi
4205 fi
4206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4207 if test -n "$ac_ct_RANLIB"; then
4208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213 fi
4214
4215 RANLIB=$ac_ct_RANLIB
4216 else
4217 RANLIB="$ac_cv_prog_RANLIB"
4218 fi
4219
4220 for ac_prog in gawk mawk nawk awk
4221 do
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223 set dummy $ac_prog; ac_word=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_AWK+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test -n "$AWK"; then
4230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_AWK="$ac_prog"
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243 done
4244 done
4245
4246 fi
4247 fi
4248 AWK=$ac_cv_prog_AWK
4249 if test -n "$AWK"; then
4250 echo "$as_me:$LINENO: result: $AWK" >&5
4251 echo "${ECHO_T}$AWK" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255 fi
4256
4257 test -n "$AWK" && break
4258 done
4259
4260 for ac_prog in jar fastjar gjar
4261 do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_JAR+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 if test -n "$JAR"; then
4270 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_JAR="$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285
4286 fi
4287 fi
4288 JAR=$ac_cv_prog_JAR
4289 if test -n "$JAR"; then
4290 echo "$as_me:$LINENO: result: $JAR" >&5
4291 echo "${ECHO_T}$JAR" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297 test -n "$JAR" && break
4298 done
4299 test -n "$JAR" || JAR="no"
4300
4301 # Extract the first word of "zip", so it can be a program name with args.
4302 set dummy zip; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_path_ZIP+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 case $ZIP in
4309 [\\/]* | ?:[\\/]*)
4310 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4311 ;;
4312 *)
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326
4327 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4328 ;;
4329 esac
4330 fi
4331 ZIP=$ac_cv_path_ZIP
4332
4333 if test -n "$ZIP"; then
4334 echo "$as_me:$LINENO: result: $ZIP" >&5
4335 echo "${ECHO_T}$ZIP" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4339 fi
4340
4341 # Extract the first word of "unzip", so it can be a program name with args.
4342 set dummy unzip; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_path_UNZIP+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 case $UNZIP in
4349 [\\/]* | ?:[\\/]*)
4350 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4351 ;;
4352 *)
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366
4367 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4368 ;;
4369 esac
4370 fi
4371 UNZIP=$ac_cv_path_UNZIP
4372
4373 if test -n "$UNZIP"; then
4374 echo "$as_me:$LINENO: result: $UNZIP" >&5
4375 echo "${ECHO_T}$UNZIP" >&6
4376 else
4377 echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6
4379 fi
4380
4381
4382 # We need a jar that supports -@. This is a GNU extension.
4383 if test "$JAR" != no; then
4384 rm -f config-test.jar
4385 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4386 if test -f config-test.jar; then
4387 rm -f config-test.jar
4388 else
4389 JAR=no
4390 fi
4391 fi
4392
4393 # Prefer the jar we found, but fall back to our jar script.
4394 if test "$JAR" = no; then
4395 if test "$ZIP" = no; then
4396 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4397 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4398 { (exit 1); exit 1; }; }
4399 else
4400 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4401 JAR=`pwd`/scripts/jar
4402 fi
4403 fi
4404
4405 # Find a good install program. We prefer a C program (faster),
4406 # so one script is as good as another. But avoid the broken or
4407 # incompatible versions:
4408 # SysV /etc/install, /usr/sbin/install
4409 # SunOS /usr/etc/install
4410 # IRIX /sbin/install
4411 # AIX /bin/install
4412 # AmigaOS /C/install, which installs bootblocks on floppy discs
4413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4416 # OS/2's system install, which has a completely different semantic
4417 # ./install, which can be erroneously created by make from ./install.sh.
4418 # Reject install programs that cannot install multiple files.
4419 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4421 if test -z "$INSTALL"; then
4422 if test "${ac_cv_path_install+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 # Account for people who put trailing slashes in PATH elements.
4431 case $as_dir/ in
4432 ./ | .// | /cC/* | \
4433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4434 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4435 /usr/ucb/* ) ;;
4436 *)
4437 # OSF1 and SCO ODT 3.0 have their own names for install.
4438 # Don't use installbsd from OSF since it installs stuff as root
4439 # by default.
4440 for ac_prog in ginstall scoinst install; do
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4443 if test $ac_prog = install &&
4444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4445 # AIX install. It has an incompatible calling convention.
4446 :
4447 elif test $ac_prog = install &&
4448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4449 # program-specific install script used by HP pwplus--don't use.
4450 :
4451 else
4452 rm -rf conftest.one conftest.two conftest.dir
4453 echo one > conftest.one
4454 echo two > conftest.two
4455 mkdir conftest.dir
4456 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4457 test -s conftest.one && test -s conftest.two &&
4458 test -s conftest.dir/conftest.one &&
4459 test -s conftest.dir/conftest.two
4460 then
4461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4462 break 3
4463 fi
4464 fi
4465 fi
4466 done
4467 done
4468 ;;
4469 esac
4470 done
4471
4472 rm -rf conftest.one conftest.two conftest.dir
4473
4474 fi
4475 if test "${ac_cv_path_install+set}" = set; then
4476 INSTALL=$ac_cv_path_install
4477 else
4478 # As a last resort, use the slow shell script. Don't cache a
4479 # value for INSTALL within a source directory, because that will
4480 # break other packages using the cache if that directory is
4481 # removed, or if the value is a relative name.
4482 INSTALL=$ac_install_sh
4483 fi
4484 fi
4485 echo "$as_me:$LINENO: result: $INSTALL" >&5
4486 echo "${ECHO_T}$INSTALL" >&6
4487
4488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4489 # It thinks the first close brace ends the variable substitution.
4490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4491
4492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4493
4494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4495
4496
4497 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4498 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4500 if test "${enable_maintainer_mode+set}" = set; then
4501 enableval="$enable_maintainer_mode"
4502 USE_MAINTAINER_MODE=$enableval
4503 else
4504 USE_MAINTAINER_MODE=no
4505 fi;
4506 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4507 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4508
4509
4510 if test $USE_MAINTAINER_MODE = yes; then
4511 MAINTAINER_MODE_TRUE=
4512 MAINTAINER_MODE_FALSE='#'
4513 else
4514 MAINTAINER_MODE_TRUE='#'
4515 MAINTAINER_MODE_FALSE=
4516 fi
4517
4518 MAINT=$MAINTAINER_MODE_TRUE
4519
4520
4521
4522
4523
4524 # configure.host sets the following important variables
4525 # libgcj_cflags - host specific C compiler flags
4526 # libgcj_cxxflags - host specific C++ compiler flags
4527 # libgcj_javaflags - host specific Java compiler flags
4528
4529 libgcj_cflags=
4530 libgcj_cxxflags=
4531 libgcj_javaflags=
4532
4533 . ${srcdir}/configure.host
4534
4535 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4536 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4537 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4541 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4542 acl_cv_prog_gnu_ld=yes
4543 else
4544 acl_cv_prog_gnu_ld=no
4545 fi
4546 fi
4547 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4548 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4549 with_gnu_ld=$acl_cv_prog_gnu_ld
4550
4551 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4552 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4553 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556
4557 acl_cv_prog_gnu_ld_symbolic=no
4558
4559 if test x"$with_gnu_ld" = x"yes"; then
4560 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4561 acl_cv_prog_gnu_ld_symbolic=yes
4562 fi
4563 fi
4564 fi
4565 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4566 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4567 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4568 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4569 else
4570 SYMBOLIC_LDFLAGS=''
4571 fi
4572
4573 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4574 if test -z "$libgcj_ld_symbolic"; then
4575 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4576 fi
4577
4578 LIBGCJ_CFLAGS="${libgcj_cflags}"
4579 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4580 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4581 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4582 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4583
4584
4585
4586
4587
4588
4589 # Only use libltdl for non-newlib builds.
4590 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4591 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4592 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4593 library_names_spec=
4594 libname_spec='lib$name'
4595 soname_spec=
4596 shrext=".so"
4597 postinstall_cmds=
4598 postuninstall_cmds=
4599 finish_cmds=
4600 finish_eval=
4601 shlibpath_var=
4602 shlibpath_overrides_runpath=unknown
4603 version_type=none
4604 dynamic_linker="$host_os ld.so"
4605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4606 if test "$GCC" = yes; then
4607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4608 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4609 # if the path contains ";" then we assume it to be the separator
4610 # otherwise default to the standard path separator (i.e. ":") - it is
4611 # assumed that no part of a normal pathname contains ";" but that should
4612 # okay in the real world where ";" in dirpaths is itself problematic.
4613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4614 else
4615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4616 fi
4617 else
4618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4619 fi
4620 need_lib_prefix=unknown
4621 hardcode_into_libs=no
4622
4623 # when you set need_version to no, make sure it does not cause -set_version
4624 # flags to be left without arguments
4625 need_version=unknown
4626
4627 case $host_os in
4628 aix3*)
4629 version_type=linux
4630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4631 shlibpath_var=LIBPATH
4632
4633 # AIX 3 has no versioning support, so we append a major version to the name.
4634 soname_spec='${libname}${release}${shared_ext}$major'
4635 ;;
4636
4637 aix[4-9]*)
4638 version_type=linux
4639 need_lib_prefix=no
4640 need_version=no
4641 hardcode_into_libs=yes
4642 if test "$host_cpu" = ia64; then
4643 # AIX 5 supports IA64
4644 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4645 shlibpath_var=LD_LIBRARY_PATH
4646 else
4647 # With GCC up to 2.95.x, collect2 would create an import file
4648 # for dependence libraries. The import file would start with
4649 # the line `#! .'. This would cause the generated library to
4650 # depend on `.', always an invalid library. This was fixed in
4651 # development snapshots of GCC prior to 3.0.
4652 case $host_os in
4653 aix4 | aix4.[01] | aix4.[01].*)
4654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4655 echo ' yes '
4656 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4657 :
4658 else
4659 can_build_shared=no
4660 fi
4661 ;;
4662 esac
4663 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4664 # soname into executable. Probably we can add versioning support to
4665 # collect2, so additional links can be useful in future.
4666 if test "$aix_use_runtimelinking" = yes; then
4667 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4668 # instead of lib<name>.a to let people know that these are not
4669 # typical AIX shared libraries.
4670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4671 else
4672 # We preserve .a as extension for shared libraries through AIX4.2
4673 # and later when we are not doing run time linking.
4674 library_names_spec='${libname}${release}.a $libname.a'
4675 soname_spec='${libname}${release}${shared_ext}$major'
4676 fi
4677 shlibpath_var=LIBPATH
4678 fi
4679 ;;
4680
4681 amigaos*)
4682 library_names_spec='$libname.ixlibrary $libname.a'
4683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4684 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'
4685 ;;
4686
4687 beos*)
4688 library_names_spec='${libname}${shared_ext}'
4689 dynamic_linker="$host_os ld.so"
4690 shlibpath_var=LIBRARY_PATH
4691 ;;
4692
4693 bsdi4*)
4694 version_type=linux
4695 need_version=no
4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4697 soname_spec='${libname}${release}${shared_ext}$major'
4698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4699 shlibpath_var=LD_LIBRARY_PATH
4700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4702 # the default ld.so.conf also contains /usr/contrib/lib and
4703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4704 # libtool to hard-code these into programs
4705 ;;
4706
4707 cygwin* | mingw* | pw32*)
4708 version_type=windows
4709 shrext=".dll"
4710 need_version=no
4711 need_lib_prefix=no
4712
4713 case $GCC,$host_os in
4714 yes,cygwin* | yes,mingw* | yes,pw32*)
4715 library_names_spec='$libname.dll.a'
4716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4717 postinstall_cmds='base_file=`basename \${file}`~
4718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4719 dldir=$destdir/`dirname \$dlpath`~
4720 test -d \$dldir || mkdir -p \$dldir~
4721 $install_prog $dir/$dlname \$dldir/$dlname'
4722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4723 dlpath=$dir/\$dldll~
4724 $rm \$dlpath'
4725 shlibpath_overrides_runpath=yes
4726
4727 case $host_os in
4728 cygwin*)
4729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4731 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4732 ;;
4733 mingw*)
4734 # MinGW DLLs use traditional 'lib' prefix
4735 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4738 # It is most probably a Windows format PATH printed by
4739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4740 # path with ; separators, and with drive letters. We can handle the
4741 # drive letters (cygwin fileutils understands them), so leave them,
4742 # especially as we might pass files found there to a mingw objdump,
4743 # which wouldn't understand a cygwinified path. Ahh.
4744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4745 else
4746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4747 fi
4748 ;;
4749 pw32*)
4750 # pw32 DLLs use 'pw' prefix rather than 'lib'
4751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4752 ;;
4753 esac
4754 ;;
4755
4756 *)
4757 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4758 ;;
4759 esac
4760 dynamic_linker='Win32 ld.exe'
4761 # FIXME: first we should search . and the directory the executable is in
4762 shlibpath_var=PATH
4763 ;;
4764
4765 darwin* | rhapsody*)
4766 dynamic_linker="$host_os dyld"
4767 version_type=darwin
4768 need_lib_prefix=no
4769 need_version=no
4770 # FIXME: Relying on posixy $() will cause problems for
4771 # cross-compilation, but unfortunately the echo tests do not
4772 # yet detect zsh echo's removal of \ escapes.
4773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4774 soname_spec='${libname}${release}${major}$shared_ext'
4775 shlibpath_overrides_runpath=yes
4776 shlibpath_var=DYLD_LIBRARY_PATH
4777 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4779 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4780 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"`
4781 fi
4782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4783 ;;
4784
4785 dgux*)
4786 version_type=linux
4787 need_lib_prefix=no
4788 need_version=no
4789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4790 soname_spec='${libname}${release}${shared_ext}$major'
4791 shlibpath_var=LD_LIBRARY_PATH
4792 ;;
4793
4794 freebsd1*)
4795 dynamic_linker=no
4796 ;;
4797
4798 freebsd*)
4799 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4800 version_type=freebsd-$objformat
4801 case $version_type in
4802 freebsd-elf*)
4803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4804 need_version=no
4805 need_lib_prefix=no
4806 ;;
4807 freebsd-*)
4808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4809 need_version=yes
4810 ;;
4811 esac
4812 shlibpath_var=LD_LIBRARY_PATH
4813 case $host_os in
4814 freebsd2*)
4815 shlibpath_overrides_runpath=yes
4816 ;;
4817 freebsd3.01* | freebsdelf3.01*)
4818 shlibpath_overrides_runpath=yes
4819 hardcode_into_libs=yes
4820 ;;
4821 *) # from 3.2 on
4822 shlibpath_overrides_runpath=no
4823 hardcode_into_libs=yes
4824 ;;
4825 esac
4826 ;;
4827
4828 gnu*)
4829 version_type=linux
4830 need_lib_prefix=no
4831 need_version=no
4832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4833 soname_spec='${libname}${release}${shared_ext}$major'
4834 shlibpath_var=LD_LIBRARY_PATH
4835 hardcode_into_libs=yes
4836 ;;
4837
4838 hpux9* | hpux10* | hpux11*)
4839 # Give a soname corresponding to the major version so that dld.sl refuses to
4840 # link against other versions.
4841 version_type=sunos
4842 need_lib_prefix=no
4843 need_version=no
4844 case "$host_cpu" in
4845 ia64*)
4846 shrext='.so'
4847 hardcode_into_libs=yes
4848 dynamic_linker="$host_os dld.so"
4849 shlibpath_var=LD_LIBRARY_PATH
4850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4852 soname_spec='${libname}${release}${shared_ext}$major'
4853 if test "X$HPUX_IA64_MODE" = X32; then
4854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4855 else
4856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4857 fi
4858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4859 ;;
4860 hppa*64*)
4861 shrext='.sl'
4862 hardcode_into_libs=yes
4863 dynamic_linker="$host_os dld.sl"
4864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4867 soname_spec='${libname}${release}${shared_ext}$major'
4868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4870 ;;
4871 *)
4872 shrext='.sl'
4873 dynamic_linker="$host_os dld.sl"
4874 shlibpath_var=SHLIB_PATH
4875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4877 soname_spec='${libname}${release}${shared_ext}$major'
4878 ;;
4879 esac
4880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4881 postinstall_cmds='chmod 555 $lib'
4882 ;;
4883
4884 irix5* | irix6* | nonstopux*)
4885 case $host_os in
4886 nonstopux*) version_type=nonstopux ;;
4887 *)
4888 if test "$lt_cv_prog_gnu_ld" = yes; then
4889 version_type=linux
4890 else
4891 version_type=irix
4892 fi ;;
4893 esac
4894 need_lib_prefix=no
4895 need_version=no
4896 soname_spec='${libname}${release}${shared_ext}$major'
4897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4898 case $host_os in
4899 irix5* | nonstopux*)
4900 libsuff= shlibsuff=
4901 ;;
4902 *)
4903 case $LD in # libtool.m4 will add one of these switches to LD
4904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4905 libsuff= shlibsuff= libmagic=32-bit;;
4906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4907 libsuff=32 shlibsuff=N32 libmagic=N32;;
4908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4910 *) libsuff= shlibsuff= libmagic=never-match;;
4911 esac
4912 ;;
4913 esac
4914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4915 shlibpath_overrides_runpath=no
4916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4918 hardcode_into_libs=yes
4919 ;;
4920
4921 # No shared lib support for Linux oldld, aout, or coff.
4922 linux*oldld* | linux*aout* | linux*coff*)
4923 dynamic_linker=no
4924 ;;
4925
4926 # This must be Linux ELF.
4927 linux*|k*bsd*-gnu)
4928 version_type=linux
4929 need_lib_prefix=no
4930 need_version=no
4931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4932 soname_spec='${libname}${release}${shared_ext}$major'
4933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4934 shlibpath_var=LD_LIBRARY_PATH
4935 shlibpath_overrides_runpath=no
4936 # This implies no fast_install, which is unacceptable.
4937 # Some rework will be needed to allow for fast_install
4938 # before this can be enabled.
4939 hardcode_into_libs=yes
4940
4941 # We used to test for /lib/ld.so.1 and disable shared libraries on
4942 # powerpc, because MkLinux only supported shared libraries with the
4943 # GNU dynamic linker. Since this was broken with cross compilers,
4944 # most powerpc-linux boxes support dynamic linking these days and
4945 # people can always --disable-shared, the test was removed, and we
4946 # assume the GNU/Linux dynamic linker is in use.
4947 dynamic_linker='GNU/Linux ld.so'
4948 ;;
4949
4950 netbsd*)
4951 version_type=sunos
4952 need_lib_prefix=no
4953 need_version=no
4954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4957 dynamic_linker='NetBSD (a.out) ld.so'
4958 else
4959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4960 soname_spec='${libname}${release}${shared_ext}$major'
4961 dynamic_linker='NetBSD ld.elf_so'
4962 fi
4963 shlibpath_var=LD_LIBRARY_PATH
4964 shlibpath_overrides_runpath=yes
4965 hardcode_into_libs=yes
4966 ;;
4967
4968 newsos6)
4969 version_type=linux
4970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4971 shlibpath_var=LD_LIBRARY_PATH
4972 shlibpath_overrides_runpath=yes
4973 ;;
4974
4975 nto-qnx)
4976 version_type=linux
4977 need_lib_prefix=no
4978 need_version=no
4979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4980 soname_spec='${libname}${release}${shared_ext}$major'
4981 shlibpath_var=LD_LIBRARY_PATH
4982 shlibpath_overrides_runpath=yes
4983 ;;
4984
4985 openbsd*)
4986 version_type=sunos
4987 need_lib_prefix=no
4988 need_version=no
4989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4991 shlibpath_var=LD_LIBRARY_PATH
4992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4993 case $host_os in
4994 openbsd2.[89] | openbsd2.[89].*)
4995 shlibpath_overrides_runpath=no
4996 ;;
4997 *)
4998 shlibpath_overrides_runpath=yes
4999 ;;
5000 esac
5001 else
5002 shlibpath_overrides_runpath=yes
5003 fi
5004 ;;
5005
5006 os2*)
5007 libname_spec='$name'
5008 shrext=".dll"
5009 need_lib_prefix=no
5010 library_names_spec='$libname${shared_ext} $libname.a'
5011 dynamic_linker='OS/2 ld.exe'
5012 shlibpath_var=LIBPATH
5013 ;;
5014
5015 osf3* | osf4* | osf5*)
5016 version_type=osf
5017 need_lib_prefix=no
5018 need_version=no
5019 soname_spec='${libname}${release}${shared_ext}$major'
5020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5021 shlibpath_var=LD_LIBRARY_PATH
5022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5024 ;;
5025
5026 sco3.2v5*)
5027 version_type=osf
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 ;;
5032
5033 solaris*)
5034 version_type=linux
5035 need_lib_prefix=no
5036 need_version=no
5037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5038 soname_spec='${libname}${release}${shared_ext}$major'
5039 shlibpath_var=LD_LIBRARY_PATH
5040 shlibpath_overrides_runpath=yes
5041 hardcode_into_libs=yes
5042 # ldd complains unless libraries are executable
5043 postinstall_cmds='chmod +x $lib'
5044 ;;
5045
5046 sunos4*)
5047 version_type=sunos
5048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5050 shlibpath_var=LD_LIBRARY_PATH
5051 shlibpath_overrides_runpath=yes
5052 if test "$with_gnu_ld" = yes; then
5053 need_lib_prefix=no
5054 fi
5055 need_version=yes
5056 ;;
5057
5058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5059 version_type=linux
5060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5061 soname_spec='${libname}${release}${shared_ext}$major'
5062 shlibpath_var=LD_LIBRARY_PATH
5063 case $host_vendor in
5064 sni)
5065 shlibpath_overrides_runpath=no
5066 need_lib_prefix=no
5067 export_dynamic_flag_spec='${wl}-Blargedynsym'
5068 runpath_var=LD_RUN_PATH
5069 ;;
5070 siemens)
5071 need_lib_prefix=no
5072 ;;
5073 motorola)
5074 need_lib_prefix=no
5075 need_version=no
5076 shlibpath_overrides_runpath=no
5077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5078 ;;
5079 esac
5080 ;;
5081
5082 sysv4*MP*)
5083 if test -d /usr/nec ;then
5084 version_type=linux
5085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5086 soname_spec='$libname${shared_ext}.$major'
5087 shlibpath_var=LD_LIBRARY_PATH
5088 fi
5089 ;;
5090
5091 uts4*)
5092 version_type=linux
5093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5094 soname_spec='${libname}${release}${shared_ext}$major'
5095 shlibpath_var=LD_LIBRARY_PATH
5096 ;;
5097
5098 *)
5099 dynamic_linker=no
5100 ;;
5101 esac
5102 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5103 echo "${ECHO_T}$dynamic_linker" >&6
5104 test "$dynamic_linker" = no && can_build_shared=no
5105
5106
5107 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5108 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5109 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 libltdl_cv_shlibpath_var="$shlibpath_var"
5113 fi
5114 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5115 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5116 if test -n "$libltdl_cv_shlibpath_var"; then
5117
5118 cat >>confdefs.h <<_ACEOF
5119 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5120 _ACEOF
5121
5122 fi
5123
5124 fi
5125
5126 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5127
5128
5129 # See if the user has requested runtime debugging.
5130 LIBGCJDEBUG="disable"
5131
5132 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5133 if test "${enable_libgcj_debug+set}" = set; then
5134 enableval="$enable_libgcj_debug"
5135 if test "$enable_libgcj_debug" = yes; then
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define DEBUG 1
5139 _ACEOF
5140
5141 LIBGCJDEBUG="enable"
5142 fi
5143 fi;
5144
5145
5146 # Check whether --with-escher or --without-escher was given.
5147 if test "${with_escher+set}" = set; then
5148 withval="$with_escher"
5149
5150 fi;
5151 case "$with_escher" in
5152 "")
5153 use_escher=false
5154 ;;
5155 "no")
5156 use_escher=false
5157 ;;
5158 "yes")
5159 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5160 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5161 { (exit 1); exit 1; }; }
5162 ;;
5163 *)
5164 use_escher=true
5165 ;;
5166 esac
5167
5168 # Determine which AWT peer libraries to build
5169 # Check whether --enable-java-awt or --disable-java-awt was given.
5170 if test "${enable_java_awt+set}" = set; then
5171 enableval="$enable_java_awt"
5172
5173 fi;
5174
5175 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5176 use_xlib_awt=""
5177 use_gtk_awt=""
5178 use_qt_awt=""
5179 use_x_awt=""
5180 # The default toolkit to use is the first one specified.
5181 TOOLKIT=
5182
5183
5184 for peer in $peerlibs ; do
5185 case $peer in
5186 xlib)
5187 if test "$no_x" = yes; then
5188 echo "*** xlib peers requested but no X library available" 1>&2
5189 exit 1
5190 else
5191 use_xlib_awt="yes"
5192 if test -z "$TOOLKIT"; then
5193 TOOLKIT=gnu.awt.xlib.XToolkit
5194 fi
5195 fi
5196 ;;
5197 gtk)
5198 if test "$no_x" = yes; then
5199 echo "*** gtk peers requested but no X library available" 1>&2
5200 exit 1
5201 else
5202 use_gtk_awt=yes
5203 if test -z "$TOOLKIT"; then
5204 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5205 fi
5206 fi
5207 ;;
5208 qt)
5209 if test "$no_x" = yes; then
5210 # Perhaps we should admit the possibility of embedded Qt.
5211 echo "*** Qt peers requested but no X library available" 1>&2
5212 exit 1
5213 else
5214 use_qt_awt=yes
5215 if test -z "$TOOLKIT"; then
5216 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5217 fi
5218 fi
5219 ;;
5220 x)
5221 use_x_awt=yes
5222 if test -z "$TOOLKIT"; then
5223 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5224 fi
5225 ;;
5226 no)
5227 use_xlib_awt=
5228 use_gtk_awt=
5229 use_qt_awt=
5230 use_x_awt=
5231 break
5232 ;;
5233 *)
5234 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5235 exit 1
5236 esac
5237 done
5238
5239
5240
5241 if test "$use_xlib_awt" = yes; then
5242 XLIB_AWT_TRUE=
5243 XLIB_AWT_FALSE='#'
5244 else
5245 XLIB_AWT_TRUE='#'
5246 XLIB_AWT_FALSE=
5247 fi
5248
5249
5250
5251 if test "$use_x_awt" = yes; then
5252 X_AWT_TRUE=
5253 X_AWT_FALSE='#'
5254 else
5255 X_AWT_TRUE='#'
5256 X_AWT_FALSE=
5257 fi
5258
5259
5260
5261 cat >>confdefs.h <<_ACEOF
5262 #define AWT_TOOLKIT "$TOOLKIT"
5263 _ACEOF
5264
5265
5266
5267 cat >>confdefs.h <<_ACEOF
5268 #define LIBGCJ_PREFIX "$prefix"
5269 _ACEOF
5270
5271
5272 # Create standard.omit based on decisions we just made.
5273 cp $srcdir/standard.omit.in standard.omit
5274 if test "$use_xlib_awt" != yes; then
5275 echo gnu/awt/xlib >> standard.omit
5276 echo gnu/gcj/xlib >> standard.omit
5277 fi
5278 if test "$use_x_awt" != yes; then
5279 echo gnu/java/awt/peer/x >> standard.omit
5280 fi
5281
5282 # Tools that need to be compiled against classpath's tools classes
5283 : > vm-tools-packages
5284 for package in gnu/gcj/tools/gc_analyze ; do
5285 echo $package >> standard.omit
5286 echo $package >> vm-tools-packages
5287 done
5288
5289 if test -z "${with_multisubdir}"; then
5290 builddotdot=.
5291 else
5292 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5293 fi
5294
5295 NATIVE=yes
5296
5297 # Which gcj and host gcj (for ecjx) do we use?
5298 which_gcj=default
5299 host_exeext=${ac_exeext}
5300 GCJ_FOR_ECJX=
5301 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5302 if test -n "${with_cross_host}"; then
5303 # We are being configured with a cross compiler. We can't
5304 # use ac_exeext, because that is for the target platform.
5305 NATIVE=no
5306 cross_host_exeext=
5307 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5308 case "${with_cross_host}" in
5309 *mingw* | *cygwin*)
5310 cross_host_exeext=.exe
5311 ;;
5312 esac
5313 host_exeext=${cross_host_exeext}
5314 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5315 if test x"$build_noncanonical" = x"$with_cross_host"; then
5316 # Ordinary cross (host!=target and host=build)
5317 which_gcj=built
5318 else
5319 # Canadian cross (host!=target and host!=build)
5320 which_gcj=cross
5321 fi
5322 else
5323 which_gcj=cross
5324 fi
5325 else
5326 # We are being configured with a native or crossed-native compiler
5327 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5328 if test x"$build" = x"$host"; then
5329 # True native build (host=target and host=build)
5330 which_gcj=built
5331 else
5332 # Crossed-native build (host=target and host!=build)
5333 which_gcj=cross
5334 fi
5335 else
5336 which_gcj=path
5337 fi
5338 fi
5339 case "${which_gcj}" in
5340 built)
5341 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5342 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5343 ;;
5344 cross)
5345 if test "x${with_newlib}" = "xyes"; then
5346 # FIXME (comment): Why is this needed?
5347 GCC_UNWIND_INCLUDE=
5348 GCJ="${target_noncanonical}-gcj"
5349 else
5350 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5351 fi
5352 GCJH='$(target_noncanonical)-gcjh'
5353 ;;
5354 path)
5355 GCJ="gcj -B`${PWDCMD-pwd}`/"
5356 GCJH=gcjh
5357 ;;
5358 esac
5359
5360
5361
5362
5363
5364 # Create it, so that compile/link tests don't fail
5365 test -f libgcj.spec || touch libgcj.spec
5366
5367
5368
5369 # Set up to configure Classpath.
5370 # FIXME: no supported way to pass args in autoconf.
5371 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5372 # Disable tool wrappers to avoid ltdl.h configure check.
5373 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5374 ac_configure_args="$ac_configure_args --disable-load-library"
5375 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5376 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5377 dir1=`cd $srcdir && pwd`
5378 dir2=`pwd`
5379 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5380 ac_configure_args="$ac_configure_args --disable-core-jni"
5381 ac_configure_args="$ac_configure_args --disable-examples"
5382 ac_configure_args="$ac_configure_args --with-glibj=build"
5383 if test "$plugin_enabled" != yes; then
5384 ac_configure_args="$ac_configure_args --disable-plugin"
5385 fi
5386 if test "$gconf_enabled" != yes; then
5387 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5388 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5389 fi
5390 if test "$use_gtk_awt" != yes; then
5391 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5392 fi
5393 if test "$use_qt_awt" != yes; then
5394 ac_configure_args="$ac_configure_args --disable-qt-peer"
5395 else
5396 # We need this as qt is disabled by default in classpath.
5397 ac_configure_args="$ac_configure_args --enable-qt-peer"
5398 fi
5399 if test "$use_x_awt" != yes; then
5400 ac_configure_args="$ac_configure_args --without-escher"
5401 else
5402 # We need this as escher is disabled by default in classpath.
5403 if test "$use_escher" != true; then
5404 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5405 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5406 { (exit 1); exit 1; }; }
5407 else
5408 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5409 fi
5410 fi
5411 # -Werror causes unavoidable problems in code using alsa.
5412 ac_configure_args="$ac_configure_args --disable-Werror"
5413
5414 # Only use libltdl for non-newlib builds.
5415 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5416 case $enable_ltdl_convenience in
5417 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5418 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5419 { (exit 1); exit 1; }; } ;;
5420 "") enable_ltdl_convenience=yes
5421 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5422 esac
5423 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5424 LTDLINCL='-I${top_srcdir}/''libltdl'
5425 # For backwards non-gettext consistent compatibility...
5426 INCLTDL="$LTDLINCL"
5427
5428 enable_dlopen=yes
5429
5430
5431
5432 DIRLTDL=libltdl
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define USE_LTDL 1
5436 _ACEOF
5437
5438 # Sigh. Libtool's macro doesn't do the right thing.
5439 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5440 # FIXME: this is a hack.
5441 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5442 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5443 fi
5444
5445
5446
5447
5448
5449 macro_version='2.1a'
5450 macro_revision='1.2435'
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 ltmain="$ac_aux_dir/ltmain.sh"
5464
5465 # Set options
5466
5467
5468 enable_win32_dll=no
5469
5470
5471 # Check whether --enable-shared or --disable-shared was given.
5472 if test "${enable_shared+set}" = set; then
5473 enableval="$enable_shared"
5474 p=${PACKAGE-default}
5475 case $enableval in
5476 yes) enable_shared=yes ;;
5477 no) enable_shared=no ;;
5478 *)
5479 enable_shared=no
5480 # Look at the argument we got. We use all the common list separators.
5481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5482 for pkg in $enableval; do
5483 IFS="$lt_save_ifs"
5484 if test "X$pkg" = "X$p"; then
5485 enable_shared=yes
5486 fi
5487 done
5488 IFS="$lt_save_ifs"
5489 ;;
5490 esac
5491 else
5492 enable_shared=yes
5493 fi;
5494
5495
5496
5497
5498
5499
5500
5501
5502 # Check whether --enable-static or --disable-static was given.
5503 if test "${enable_static+set}" = set; then
5504 enableval="$enable_static"
5505 p=${PACKAGE-default}
5506 case $enableval in
5507 yes) enable_static=yes ;;
5508 no) enable_static=no ;;
5509 *)
5510 enable_static=no
5511 # Look at the argument we got. We use all the common list separators.
5512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5513 for pkg in $enableval; do
5514 IFS="$lt_save_ifs"
5515 if test "X$pkg" = "X$p"; then
5516 enable_static=yes
5517 fi
5518 done
5519 IFS="$lt_save_ifs"
5520 ;;
5521 esac
5522 else
5523 enable_static=yes
5524 fi;
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 # Check whether --with-pic or --without-pic was given.
5535 if test "${with_pic+set}" = set; then
5536 withval="$with_pic"
5537 pic_mode="$withval"
5538 else
5539 pic_mode=default
5540 fi;
5541
5542 test -z "$pic_mode" && pic_mode=default
5543
5544
5545
5546
5547
5548
5549
5550 # Check whether --enable-fast-install or --disable-fast-install was given.
5551 if test "${enable_fast_install+set}" = set; then
5552 enableval="$enable_fast_install"
5553 p=${PACKAGE-default}
5554 case $enableval in
5555 yes) enable_fast_install=yes ;;
5556 no) enable_fast_install=no ;;
5557 *)
5558 enable_fast_install=no
5559 # Look at the argument we got. We use all the common list separators.
5560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5561 for pkg in $enableval; do
5562 IFS="$lt_save_ifs"
5563 if test "X$pkg" = "X$p"; then
5564 enable_fast_install=yes
5565 fi
5566 done
5567 IFS="$lt_save_ifs"
5568 ;;
5569 esac
5570 else
5571 enable_fast_install=yes
5572 fi;
5573
5574
5575
5576
5577
5578
5579
5580
5581 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5582 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5583 if test "${lt_cv_path_SED+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586 # Loop through the user's path and test for sed and gsed.
5587 # Then use that list of sed's as ones to test for truncation.
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for lt_ac_prog in sed gsed; do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5596 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5597 fi
5598 done
5599 done
5600 done
5601 IFS=$as_save_IFS
5602 lt_ac_max=0
5603 lt_ac_count=0
5604 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5605 # along with /bin/sed that truncates output.
5606 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5607 test ! -f $lt_ac_sed && continue
5608 cat /dev/null > conftest.in
5609 lt_ac_count=0
5610 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5611 # Check for GNU sed and select it if it is found.
5612 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5613 lt_cv_path_SED=$lt_ac_sed
5614 break
5615 fi
5616 while true; do
5617 cat conftest.in conftest.in >conftest.tmp
5618 mv conftest.tmp conftest.in
5619 cp conftest.in conftest.nl
5620 echo >>conftest.nl
5621 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5622 cmp -s conftest.out conftest.nl || break
5623 # 10000 chars as input seems more than enough
5624 test $lt_ac_count -gt 10 && break
5625 lt_ac_count=`expr $lt_ac_count + 1`
5626 if test $lt_ac_count -gt $lt_ac_max; then
5627 lt_ac_max=$lt_ac_count
5628 lt_cv_path_SED=$lt_ac_sed
5629 fi
5630 done
5631 done
5632
5633 fi
5634
5635 SED=$lt_cv_path_SED
5636
5637 echo "$as_me:$LINENO: result: $SED" >&5
5638 echo "${ECHO_T}$SED" >&6
5639
5640 test -z "$SED" && SED=sed
5641 Xsed="$SED -e 1s/^X//"
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 echo "$as_me:$LINENO: checking for egrep" >&5
5654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5655 if test "${ac_cv_prog_egrep+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5659 then ac_cv_prog_egrep='grep -E'
5660 else ac_cv_prog_egrep='egrep'
5661 fi
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5664 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5665 EGREP=$ac_cv_prog_egrep
5666
5667
5668 echo "$as_me:$LINENO: checking for fgrep" >&5
5669 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5670 if test "${ac_cv_prog_fgrep+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5674 then ac_cv_prog_fgrep='grep -F'
5675 else ac_cv_prog_fgrep='fgrep'
5676 fi
5677 fi
5678 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5679 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5680 FGREP=$ac_cv_prog_fgrep
5681
5682
5683 test -z "$GREP" && GREP=grep
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5704 if test "${with_gnu_ld+set}" = set; then
5705 withval="$with_gnu_ld"
5706 test "$withval" = no || with_gnu_ld=yes
5707 else
5708 with_gnu_ld=no
5709 fi;
5710 ac_prog=ld
5711 if test "$GCC" = yes; then
5712 # Check if gcc -print-prog-name=ld gives a path.
5713 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5715 case $host in
5716 *-*-mingw*)
5717 # gcc leaves a trailing carriage return which upsets mingw
5718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5719 *)
5720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5721 esac
5722 case $ac_prog in
5723 # Accept absolute paths.
5724 [\\/]* | ?:[\\/]*)
5725 re_direlt='/[^/][^/]*/\.\./'
5726 # Canonicalize the pathname of ld
5727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5730 done
5731 test -z "$LD" && LD="$ac_prog"
5732 ;;
5733 "")
5734 # If it fails, then pretend we aren't using GCC.
5735 ac_prog=ld
5736 ;;
5737 *)
5738 # If it is relative, then search for the first ld in PATH.
5739 with_gnu_ld=unknown
5740 ;;
5741 esac
5742 elif test "$with_gnu_ld" = yes; then
5743 echo "$as_me:$LINENO: checking for GNU ld" >&5
5744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5745 else
5746 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5748 fi
5749 if test "${lt_cv_path_LD+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 if test -z "$LD"; then
5753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754 for ac_dir in $PATH; do
5755 IFS="$lt_save_ifs"
5756 test -z "$ac_dir" && ac_dir=.
5757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5758 lt_cv_path_LD="$ac_dir/$ac_prog"
5759 # Check to see if the program is GNU ld. I'd rather use --version,
5760 # but apparently some variants of GNU ld only accept -v.
5761 # Break only if it was the GNU/non-GNU ld that we prefer.
5762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5763 *GNU* | *'with BFD'*)
5764 test "$with_gnu_ld" != no && break
5765 ;;
5766 *)
5767 test "$with_gnu_ld" != yes && break
5768 ;;
5769 esac
5770 fi
5771 done
5772 IFS="$lt_save_ifs"
5773 else
5774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5775 fi
5776 fi
5777
5778 LD="$lt_cv_path_LD"
5779 if test -n "$LD"; then
5780 echo "$as_me:$LINENO: result: $LD" >&5
5781 echo "${ECHO_T}$LD" >&6
5782 else
5783 echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5788 { (exit 1); exit 1; }; }
5789 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797 lt_cv_prog_gnu_ld=yes
5798 ;;
5799 *)
5800 lt_cv_prog_gnu_ld=no
5801 ;;
5802 esac
5803 fi
5804 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5819 if test "${lt_cv_path_NM+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5824 lt_cv_path_NM="$NM"
5825 else
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5829 fi
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833 IFS="$lt_save_ifs"
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5844 break
5845 ;;
5846 *)
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848 */dev/null*)
5849 lt_cv_path_NM="$tmp_nm -p"
5850 break
5851 ;;
5852 *)
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5855 ;;
5856 esac
5857 ;;
5858 esac
5859 fi
5860 done
5861 IFS="$lt_save_ifs"
5862 done
5863 : ${lt_cv_path_NM=no}
5864 fi
5865 fi
5866 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6
5868 if test "$lt_cv_path_NM" != "no"; then
5869 NM="$lt_cv_path_NM"
5870 else
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$ac_tool_prefix"; then
5873 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874 do
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 if test -n "$DUMPBIN"; then
5883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896 done
5897 done
5898
5899 fi
5900 fi
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5904 echo "${ECHO_T}$DUMPBIN" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 test -n "$DUMPBIN" && break
5911 done
5912 fi
5913 if test -z "$DUMPBIN"; then
5914 ac_ct_DUMPBIN=$DUMPBIN
5915 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5916 do
5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 if test -n "$ac_ct_DUMPBIN"; then
5925 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940
5941 fi
5942 fi
5943 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5944 if test -n "$ac_ct_DUMPBIN"; then
5945 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5946 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5947 else
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5950 fi
5951
5952 test -n "$ac_ct_DUMPBIN" && break
5953 done
5954 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5955
5956 DUMPBIN=$ac_ct_DUMPBIN
5957 fi
5958
5959
5960 if test "$DUMPBIN" != ":"; then
5961 NM="$DUMPBIN"
5962 fi
5963 fi
5964 test -z "$NM" && NM=nm
5965
5966
5967
5968
5969
5970
5971 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5972 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5973 if test "${lt_cv_nm_interface+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 lt_cv_nm_interface="BSD nm"
5977 echo "int some_variable = 0;" > conftest.$ac_ext
5978 (eval echo "\"\$as_me:5978: $ac_compile\"" >&5)
5979 (eval "$ac_compile" 2>conftest.err)
5980 cat conftest.err >&5
5981 (eval echo "\"\$as_me:5981: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5983 cat conftest.err >&5
5984 (eval echo "\"\$as_me:5984: output\"" >&5)
5985 cat conftest.out >&5
5986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5987 lt_cv_nm_interface="MS dumpbin"
5988 fi
5989 rm -f conftest*
5990 fi
5991 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5992 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5993
5994 # find the maximum length of command line arguments
5995 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5996 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5997 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 i=0
6001 teststring="ABCD"
6002
6003 case $build_os in
6004 msdosdjgpp*)
6005 # On DJGPP, this test can blow up pretty badly due to problems in libc
6006 # (any single argument exceeding 2000 bytes causes a buffer overrun
6007 # during glob expansion). Even if it were fixed, the result of this
6008 # check would be larger than it should be.
6009 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6010 ;;
6011
6012 gnu*)
6013 # Under GNU Hurd, this test is not required because there is
6014 # no limit to the length of command line arguments.
6015 # Libtool will interpret -1 as no limit whatsoever
6016 lt_cv_sys_max_cmd_len=-1;
6017 ;;
6018
6019 cygwin* | mingw*)
6020 # On Win9x/ME, this test blows up -- it succeeds, but takes
6021 # about 5 minutes as the teststring grows exponentially.
6022 # Worse, since 9x/ME are not pre-emptively multitasking,
6023 # you end up with a "frozen" computer, even though with patience
6024 # the test eventually succeeds (with a max line length of 256k).
6025 # Instead, let's just punt: use the minimum linelength reported by
6026 # all of the supported platforms: 8192 (on NT/2K/XP).
6027 lt_cv_sys_max_cmd_len=8192;
6028 ;;
6029
6030 amigaos*)
6031 # On AmigaOS with pdksh, this test takes hours, literally.
6032 # So we just punt and use a minimum line length of 8192.
6033 lt_cv_sys_max_cmd_len=8192;
6034 ;;
6035
6036 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6037 # This has been around since 386BSD, at least. Likely further.
6038 if test -x /sbin/sysctl; then
6039 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6040 elif test -x /usr/sbin/sysctl; then
6041 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6042 else
6043 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6044 fi
6045 # And add a safety zone
6046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6048 ;;
6049
6050 interix*)
6051 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6052 lt_cv_sys_max_cmd_len=196608
6053 ;;
6054
6055 osf*)
6056 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6057 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6058 # nice to cause kernel panics so lets avoid the loop below.
6059 # First set a reasonable default.
6060 lt_cv_sys_max_cmd_len=16384
6061 #
6062 if test -x /sbin/sysconfig; then
6063 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6064 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6065 esac
6066 fi
6067 ;;
6068 sco3.2v5*)
6069 lt_cv_sys_max_cmd_len=102400
6070 ;;
6071 sysv5* | sco5v6* | sysv4.2uw2*)
6072 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6073 if test -n "$kargmax"; then
6074 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6075 else
6076 lt_cv_sys_max_cmd_len=32768
6077 fi
6078 ;;
6079 *)
6080 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6081 if test -n $lt_cv_sys_max_cmd_len; then
6082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6084 else
6085 # Make teststring a little bigger before we do anything with it.
6086 # a 1K string should be a reasonable start.
6087 for i in 1 2 3 4 5 6 7 8 ; do
6088 teststring=$teststring$teststring
6089 done
6090 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6091 # If test is not a shell built-in, we'll probably end up computing a
6092 # maximum length that is only half of the actual maximum length, but
6093 # we can't tell.
6094 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6095 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6096 test $i != 17 # 1/2 MB should be enough
6097 do
6098 i=`expr $i + 1`
6099 teststring=$teststring$teststring
6100 done
6101 # Only check the string length outside the loop.
6102 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6103 teststring=
6104 # Add a significant safety factor because C++ compilers can tack on
6105 # massive amounts of additional arguments before passing them to the
6106 # linker. It appears as though 1/2 is a usable value.
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6108 fi
6109 ;;
6110 esac
6111
6112 fi
6113
6114 if test -n $lt_cv_sys_max_cmd_len ; then
6115 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6116 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6117 else
6118 echo "$as_me:$LINENO: result: none" >&5
6119 echo "${ECHO_T}none" >&6
6120 fi
6121 max_cmd_len=$lt_cv_sys_max_cmd_len
6122
6123
6124
6125
6126
6127
6128 : ${CP="cp -f"}
6129 : ${MV="mv -f"}
6130 : ${RM="rm -f"}
6131
6132 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6133 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6134 # Try some XSI features
6135 xsi_shell=no
6136 ( _lt_dummy="a/b/c"
6137 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6138 = c,a/b,, ) >/dev/null 2>&1 \
6139 && xsi_shell=yes
6140 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6141 echo "${ECHO_T}$xsi_shell" >&6
6142
6143
6144 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6145 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6146 lt_shell_append=no
6147 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6148 >/dev/null 2>&1 \
6149 && lt_shell_append=yes
6150 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6151 echo "${ECHO_T}$lt_shell_append" >&6
6152
6153
6154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6155 lt_unset=unset
6156 else
6157 lt_unset=false
6158 fi
6159
6160
6161
6162
6163
6164 # test EBCDIC or ASCII
6165 case `echo X|tr X '\101'` in
6166 A) # ASCII based system
6167 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6168 lt_SP2NL='tr \040 \012'
6169 lt_NL2SP='tr \015\012 \040\040'
6170 ;;
6171 *) # EBCDIC based system
6172 lt_SP2NL='tr \100 \n'
6173 lt_NL2SP='tr \r\n \100\100'
6174 ;;
6175 esac
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6187 if test "${lt_cv_ld_reload_flag+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 lt_cv_ld_reload_flag='-r'
6191 fi
6192 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6194 reload_flag=$lt_cv_ld_reload_flag
6195 case $reload_flag in
6196 "" | " "*) ;;
6197 *) reload_flag=" $reload_flag" ;;
6198 esac
6199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6200 case $host_os in
6201 darwin*)
6202 if test "$GCC" = yes; then
6203 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6204 else
6205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6206 fi
6207 ;;
6208 esac
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6220 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6221 if test "${lt_cv_deplibs_check_method+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 lt_cv_file_magic_cmd='$MAGIC_CMD'
6225 lt_cv_file_magic_test_file=
6226 lt_cv_deplibs_check_method='unknown'
6227 # Need to set the preceding variable on all platforms that support
6228 # interlibrary dependencies.
6229 # 'none' -- dependencies not supported.
6230 # `unknown' -- same as none, but documents that we really don't know.
6231 # 'pass_all' -- all dependencies passed with no checks.
6232 # 'test_compile' -- check by making test program.
6233 # 'file_magic [[regex]]' -- check by looking for files in library path
6234 # which responds to the $file_magic_cmd with a given extended regex.
6235 # If you have `file' or equivalent on your system and you're not sure
6236 # whether `pass_all' will *always* work, you probably want this one.
6237
6238 case $host_os in
6239 aix[4-9]*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 beos*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 bsdi[45]*)
6248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6249 lt_cv_file_magic_cmd='/usr/bin/file -L'
6250 lt_cv_file_magic_test_file=/shlib/libc.so
6251 ;;
6252
6253 cygwin*)
6254 # func_win32_libid is a shell function defined in ltmain.sh
6255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6256 lt_cv_file_magic_cmd='func_win32_libid'
6257 ;;
6258
6259 mingw* | pw32*)
6260 # Base MSYS/MinGW do not provide the 'file' command needed by
6261 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6262 # unless we find 'file', for example because we are cross-compiling.
6263 if ( file / ) >/dev/null 2>&1; then
6264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6265 lt_cv_file_magic_cmd='func_win32_libid'
6266 else
6267 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6268 lt_cv_file_magic_cmd='$OBJDUMP -f'
6269 fi
6270 ;;
6271
6272 darwin* | rhapsody*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 freebsd* | dragonfly*)
6277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6278 case $host_cpu in
6279 i*86 )
6280 # Not sure whether the presence of OpenBSD here was a mistake.
6281 # Let's accept both of them until this is cleared up.
6282 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6283 lt_cv_file_magic_cmd=/usr/bin/file
6284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6285 ;;
6286 esac
6287 else
6288 lt_cv_deplibs_check_method=pass_all
6289 fi
6290 ;;
6291
6292 gnu*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 hpux10.20* | hpux11*)
6297 lt_cv_file_magic_cmd=/usr/bin/file
6298 case $host_cpu in
6299 ia64*)
6300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6301 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6302 ;;
6303 hppa*64*)
6304 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]'
6305 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6306 ;;
6307 *)
6308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6309 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6310 ;;
6311 esac
6312 ;;
6313
6314 interix[3-9]*)
6315 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6317 ;;
6318
6319 irix5* | irix6* | nonstopux*)
6320 case $LD in
6321 *-32|*"-32 ") libmagic=32-bit;;
6322 *-n32|*"-n32 ") libmagic=N32;;
6323 *-64|*"-64 ") libmagic=64-bit;;
6324 *) libmagic=never-match;;
6325 esac
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 # This must be Linux ELF.
6330 linux* | k*bsd*-gnu)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 netbsd*)
6335 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6337 else
6338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6339 fi
6340 ;;
6341
6342 newos6*)
6343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6344 lt_cv_file_magic_cmd=/usr/bin/file
6345 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6346 ;;
6347
6348 *nto* | *qnx*)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351
6352 openbsd*)
6353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6355 else
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357 fi
6358 ;;
6359
6360 osf3* | osf4* | osf5*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 rdos*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 solaris*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375
6376 sysv4 | sysv4.3*)
6377 case $host_vendor in
6378 motorola)
6379 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]'
6380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6381 ;;
6382 ncr)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385 sequent)
6386 lt_cv_file_magic_cmd='/bin/file'
6387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6388 ;;
6389 sni)
6390 lt_cv_file_magic_cmd='/bin/file'
6391 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6392 lt_cv_file_magic_test_file=/lib/libc.so
6393 ;;
6394 siemens)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397 pc)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400 esac
6401 ;;
6402
6403 tpf*)
6404 lt_cv_deplibs_check_method=pass_all
6405 ;;
6406 esac
6407
6408 fi
6409 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6410 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6411 file_magic_cmd=$lt_cv_file_magic_cmd
6412 deplibs_check_method=$lt_cv_deplibs_check_method
6413 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}ar; ac_word=$2
6429 echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431 if test "${ac_cv_prog_AR+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 if test -n "$AR"; then
6435 ac_cv_prog_AR="$AR" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_AR="${ac_tool_prefix}ar"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448 done
6449 done
6450
6451 fi
6452 fi
6453 AR=$ac_cv_prog_AR
6454 if test -n "$AR"; then
6455 echo "$as_me:$LINENO: result: $AR" >&5
6456 echo "${ECHO_T}$AR" >&6
6457 else
6458 echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6460 fi
6461
6462 fi
6463 if test -z "$ac_cv_prog_AR"; then
6464 ac_ct_AR=$AR
6465 # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 if test -n "$ac_ct_AR"; then
6473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_ac_ct_AR="ar"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486 done
6487 done
6488
6489 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6490 fi
6491 fi
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6495 echo "${ECHO_T}$ac_ct_AR" >&6
6496 else
6497 echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6499 fi
6500
6501 AR=$ac_ct_AR
6502 else
6503 AR="$ac_cv_prog_AR"
6504 fi
6505
6506 test -z "$AR" && AR=ar
6507 test -z "$AR_FLAGS" && AR_FLAGS=cru
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 if test -n "$ac_tool_prefix"; then
6520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6521 set dummy ${ac_tool_prefix}strip; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_STRIP+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test -n "$STRIP"; then
6528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543
6544 fi
6545 fi
6546 STRIP=$ac_cv_prog_STRIP
6547 if test -n "$STRIP"; then
6548 echo "$as_me:$LINENO: result: $STRIP" >&5
6549 echo "${ECHO_T}$STRIP" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6553 fi
6554
6555 fi
6556 if test -z "$ac_cv_prog_STRIP"; then
6557 ac_ct_STRIP=$STRIP
6558 # Extract the first word of "strip", so it can be a program name with args.
6559 set dummy strip; ac_word=$2
6560 echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 if test -n "$ac_ct_STRIP"; then
6566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_STRIP="strip"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581
6582 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6583 fi
6584 fi
6585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6586 if test -n "$ac_ct_STRIP"; then
6587 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6588 echo "${ECHO_T}$ac_ct_STRIP" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6592 fi
6593
6594 STRIP=$ac_ct_STRIP
6595 else
6596 STRIP="$ac_cv_prog_STRIP"
6597 fi
6598
6599 test -z "$STRIP" && STRIP=:
6600
6601
6602
6603
6604
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6609 echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611 if test "${ac_cv_prog_RANLIB+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 if test -n "$RANLIB"; then
6615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630
6631 fi
6632 fi
6633 RANLIB=$ac_cv_prog_RANLIB
6634 if test -n "$RANLIB"; then
6635 echo "$as_me:$LINENO: result: $RANLIB" >&5
6636 echo "${ECHO_T}$RANLIB" >&6
6637 else
6638 echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6
6640 fi
6641
6642 fi
6643 if test -z "$ac_cv_prog_RANLIB"; then
6644 ac_ct_RANLIB=$RANLIB
6645 # Extract the first word of "ranlib", so it can be a program name with args.
6646 set dummy ranlib; ac_word=$2
6647 echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6649 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 if test -n "$ac_ct_RANLIB"; then
6653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_ac_ct_RANLIB="ranlib"
6663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668
6669 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6670 fi
6671 fi
6672 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6673 if test -n "$ac_ct_RANLIB"; then
6674 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6675 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6676 else
6677 echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6
6679 fi
6680
6681 RANLIB=$ac_ct_RANLIB
6682 else
6683 RANLIB="$ac_cv_prog_RANLIB"
6684 fi
6685
6686 test -z "$RANLIB" && RANLIB=:
6687
6688
6689
6690
6691
6692
6693 # Determine commands to create old-style static archives.
6694 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6695 old_postinstall_cmds='chmod 644 $oldlib'
6696 old_postuninstall_cmds=
6697
6698 if test -n "$RANLIB"; then
6699 case $host_os in
6700 openbsd*)
6701 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6702 ;;
6703 *)
6704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6705 ;;
6706 esac
6707 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6708 fi
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 # If no C compiler was specified, use CC.
6744 LTCC=${LTCC-"$CC"}
6745
6746 # If no C compiler flags were specified, use CFLAGS.
6747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6748
6749 # Allow CC to be a program name with arguments.
6750 compiler=$CC
6751
6752
6753 # Check for command to grab the raw symbol name followed by C symbol from nm.
6754 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6755 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6756 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759
6760 # These are sane defaults that work on at least a few old systems.
6761 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6762
6763 # Character class describing NM global symbol codes.
6764 symcode='[BCDEGRST]'
6765
6766 # Regexp to match symbols that can be accessed directly from C.
6767 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6768
6769 # Define system-specific variables.
6770 case $host_os in
6771 aix*)
6772 symcode='[BCDT]'
6773 ;;
6774 cygwin* | mingw* | pw32*)
6775 symcode='[ABCDGISTW]'
6776 ;;
6777 hpux*)
6778 if test "$host_cpu" = ia64; then
6779 symcode='[ABCDEGRST]'
6780 fi
6781 ;;
6782 irix* | nonstopux*)
6783 symcode='[BCDEGRST]'
6784 ;;
6785 osf*)
6786 symcode='[BCDEGQRST]'
6787 ;;
6788 solaris*)
6789 symcode='[BDRT]'
6790 ;;
6791 sco3.2v5*)
6792 symcode='[DT]'
6793 ;;
6794 sysv4.2uw2*)
6795 symcode='[DT]'
6796 ;;
6797 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6798 symcode='[ABDT]'
6799 ;;
6800 sysv4)
6801 symcode='[DFNSTU]'
6802 ;;
6803 esac
6804
6805 # If we're using GNU nm, then use its standard symbol codes.
6806 case `$NM -V 2>&1` in
6807 *GNU* | *'with BFD'*)
6808 symcode='[ABCDGIRSTW]' ;;
6809 esac
6810
6811 # Transform an extracted symbol line into a proper C declaration.
6812 # Some systems (esp. on ia64) link data and code symbols differently,
6813 # so use this general approach.
6814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6815
6816 # Transform an extracted symbol line into symbol name and symbol address
6817 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6818
6819 # Handle CRLF in mingw tool chain
6820 opt_cr=
6821 case $build_os in
6822 mingw*)
6823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6824 ;;
6825 esac
6826
6827 # Try without a prefix underscore, then with it.
6828 for ac_symprfx in "" "_"; do
6829
6830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6831 symxfrm="\\1 $ac_symprfx\\2 \\2"
6832
6833 # Write the raw and C identifiers.
6834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6835 # Fake it for dumpbin and say T for any non-static function
6836 # and D for any global variable.
6837 # Also find C++ and __fastcall symbols from MSVC++,
6838 # which start with @ or ?.
6839 lt_cv_sys_global_symbol_pipe="$AWK '"\
6840 " {last_section=section; section=\$ 3};"\
6841 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6842 " \$ 0!~/External *\|/{next};"\
6843 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6844 " {if(hide[section]) next};"\
6845 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6846 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6847 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6848 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6849 " ' prfx=^$ac_symprfx"
6850 else
6851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6852 fi
6853
6854 # Check to see that the pipe works correctly.
6855 pipe_works=no
6856
6857 rm -f conftest*
6858 cat > conftest.$ac_ext <<_LT_EOF
6859 #ifdef __cplusplus
6860 extern "C" {
6861 #endif
6862 char nm_test_var;
6863 void nm_test_func(void);
6864 void nm_test_func(void){}
6865 #ifdef __cplusplus
6866 }
6867 #endif
6868 int main(){nm_test_var='a';nm_test_func();return(0);}
6869 _LT_EOF
6870
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; then
6876 # Now try to grab the symbols.
6877 nlist=conftest.nm
6878 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6879 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && test -s "$nlist"; then
6883 # Try sorting and uniquifying the output.
6884 if sort "$nlist" | uniq > "$nlist"T; then
6885 mv -f "$nlist"T "$nlist"
6886 else
6887 rm -f "$nlist"T
6888 fi
6889
6890 # Make sure that we snagged all the symbols we need.
6891 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6892 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6893 cat <<_LT_EOF > conftest.$ac_ext
6894 #ifdef __cplusplus
6895 extern "C" {
6896 #endif
6897
6898 _LT_EOF
6899 # Now generate the symbol file.
6900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6901
6902 cat <<_LT_EOF >> conftest.$ac_ext
6903
6904 /* The mapping between symbol names and symbols. */
6905 const struct {
6906 const char *name;
6907 void *address;
6908 }
6909 lt__PROGRAM__LTX_preloaded_symbols[] =
6910 {
6911 { "@PROGRAM@", (void *) 0 },
6912 _LT_EOF
6913 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6914 cat <<\_LT_EOF >> conftest.$ac_ext
6915 {0, (void *) 0}
6916 };
6917
6918 /* This works around a problem in FreeBSD linker */
6919 #ifdef FREEBSD_WORKAROUND
6920 static const void *lt_preloaded_setup() {
6921 return lt__PROGRAM__LTX_preloaded_symbols;
6922 }
6923 #endif
6924
6925 #ifdef __cplusplus
6926 }
6927 #endif
6928 _LT_EOF
6929 # Now try linking the two files.
6930 mv conftest.$ac_objext conftstm.$ac_objext
6931 lt_save_LIBS="$LIBS"
6932 lt_save_CFLAGS="$CFLAGS"
6933 LIBS="conftstm.$ac_objext"
6934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6940 pipe_works=yes
6941 fi
6942 LIBS="$lt_save_LIBS"
6943 CFLAGS="$lt_save_CFLAGS"
6944 else
6945 echo "cannot find nm_test_func in $nlist" >&5
6946 fi
6947 else
6948 echo "cannot find nm_test_var in $nlist" >&5
6949 fi
6950 else
6951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6952 fi
6953 else
6954 echo "$progname: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6956 fi
6957 rm -f conftest* conftst*
6958
6959 # Do not use the global_symbol_pipe unless it works.
6960 if test "$pipe_works" = yes; then
6961 break
6962 else
6963 lt_cv_sys_global_symbol_pipe=
6964 fi
6965 done
6966
6967 fi
6968
6969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6970 lt_cv_sys_global_symbol_to_cdecl=
6971 fi
6972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6973 echo "$as_me:$LINENO: result: failed" >&5
6974 echo "${ECHO_T}failed" >&6
6975 else
6976 echo "$as_me:$LINENO: result: ok" >&5
6977 echo "${ECHO_T}ok" >&6
6978 fi
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6998 if test "${enable_libtool_lock+set}" = set; then
6999 enableval="$enable_libtool_lock"
7000
7001 fi;
7002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7003
7004 # Some flags need to be propagated to the compiler or linker for good
7005 # libtool support.
7006 case $host in
7007 ia64-*-hpux*)
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; then
7015 case `/usr/bin/file conftest.$ac_objext` in
7016 *ELF-32*)
7017 HPUX_IA64_MODE="32"
7018 ;;
7019 *ELF-64*)
7020 HPUX_IA64_MODE="64"
7021 ;;
7022 esac
7023 fi
7024 rm -rf conftest*
7025 ;;
7026 *-*-irix6*)
7027 # Find out which ABI we are using.
7028 echo '#line 7028 "configure"' > conftest.$ac_ext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; then
7034 if test "$lt_cv_prog_gnu_ld" = yes; then
7035 case `/usr/bin/file conftest.$ac_objext` in
7036 *32-bit*)
7037 LD="${LD-ld} -melf32bsmip"
7038 ;;
7039 *N32*)
7040 LD="${LD-ld} -melf32bmipn32"
7041 ;;
7042 *64-bit*)
7043 LD="${LD-ld} -melf64bmip"
7044 ;;
7045 esac
7046 else
7047 case `/usr/bin/file conftest.$ac_objext` in
7048 *32-bit*)
7049 LD="${LD-ld} -32"
7050 ;;
7051 *N32*)
7052 LD="${LD-ld} -n32"
7053 ;;
7054 *64-bit*)
7055 LD="${LD-ld} -64"
7056 ;;
7057 esac
7058 fi
7059 fi
7060 rm -rf conftest*
7061 ;;
7062
7063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7065 # Find out which ABI we are using.
7066 echo 'int i;' > conftest.$ac_ext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; then
7072 case `/usr/bin/file conftest.o` in
7073 *32-bit*)
7074 case $host in
7075 x86_64-*kfreebsd*-gnu)
7076 LD="${LD-ld} -m elf_i386_fbsd"
7077 ;;
7078 x86_64-*linux*)
7079 LD="${LD-ld} -m elf_i386"
7080 ;;
7081 ppc64-*linux*|powerpc64-*linux*)
7082 LD="${LD-ld} -m elf32ppclinux"
7083 ;;
7084 s390x-*linux*)
7085 LD="${LD-ld} -m elf_s390"
7086 ;;
7087 sparc64-*linux*)
7088 LD="${LD-ld} -m elf32_sparc"
7089 ;;
7090 esac
7091 ;;
7092 *64-bit*)
7093 case $host in
7094 x86_64-*kfreebsd*-gnu)
7095 LD="${LD-ld} -m elf_x86_64_fbsd"
7096 ;;
7097 x86_64-*linux*)
7098 LD="${LD-ld} -m elf_x86_64"
7099 ;;
7100 ppc*-*linux*|powerpc*-*linux*)
7101 LD="${LD-ld} -m elf64ppc"
7102 ;;
7103 s390*-*linux*|s390*-*tpf*)
7104 LD="${LD-ld} -m elf64_s390"
7105 ;;
7106 sparc*-*linux*)
7107 LD="${LD-ld} -m elf64_sparc"
7108 ;;
7109 esac
7110 ;;
7111 esac
7112 fi
7113 rm -rf conftest*
7114 ;;
7115
7116 *-*-sco3.2v5*)
7117 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7118 SAVE_CFLAGS="$CFLAGS"
7119 CFLAGS="$CFLAGS -belf"
7120 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7121 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7122 if test "${lt_cv_cc_needs_belf+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131 if test x$gcc_no_link = xyes; then
7132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7134 { (exit 1); exit 1; }; }
7135 fi
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142
7143 int
7144 main ()
7145 {
7146
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest$ac_exeext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 lt_cv_cc_needs_belf=yes
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 lt_cv_cc_needs_belf=no
7179 fi
7180 rm -f conftest.err conftest.$ac_objext \
7181 conftest$ac_exeext conftest.$ac_ext
7182 ac_ext=c
7183 ac_cpp='$CPP $CPPFLAGS'
7184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187
7188 fi
7189 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7190 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7191 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7193 CFLAGS="$SAVE_CFLAGS"
7194 fi
7195 ;;
7196 sparc*-*solaris*)
7197 # Find out which ABI we are using.
7198 echo 'int i;' > conftest.$ac_ext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; then
7204 case `/usr/bin/file conftest.o` in
7205 *64-bit*)
7206 case $lt_cv_prog_gnu_ld in
7207 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7208 *) LD="${LD-ld} -64" ;;
7209 esac
7210 ;;
7211 esac
7212 fi
7213 rm -rf conftest*
7214 ;;
7215 esac
7216
7217 need_locks="$enable_libtool_lock"
7218
7219 ac_ext=c
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7225 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7226 # On Suns, sometimes $CPP names a directory.
7227 if test -n "$CPP" && test -d "$CPP"; then
7228 CPP=
7229 fi
7230 if test -z "$CPP"; then
7231 if test "${ac_cv_prog_CPP+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 # Double quotes because CPP needs to be expanded
7235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7236 do
7237 ac_preproc_ok=false
7238 for ac_c_preproc_warn_flag in '' yes
7239 do
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #ifdef __STDC__
7253 # include <limits.h>
7254 #else
7255 # include <assert.h>
7256 #endif
7257 Syntax error
7258 _ACEOF
7259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } >/dev/null; then
7267 if test -s conftest.err; then
7268 ac_cpp_err=$ac_c_preproc_warn_flag
7269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7270 else
7271 ac_cpp_err=
7272 fi
7273 else
7274 ac_cpp_err=yes
7275 fi
7276 if test -z "$ac_cpp_err"; then
7277 :
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 # Broken: fails on valid input.
7283 continue
7284 fi
7285 rm -f conftest.err conftest.$ac_ext
7286
7287 # OK, works on sane cases. Now check whether non-existent headers
7288 # can be detected and how.
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 #include <ac_nonexistent.h>
7296 _ACEOF
7297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } >/dev/null; then
7305 if test -s conftest.err; then
7306 ac_cpp_err=$ac_c_preproc_warn_flag
7307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7308 else
7309 ac_cpp_err=
7310 fi
7311 else
7312 ac_cpp_err=yes
7313 fi
7314 if test -z "$ac_cpp_err"; then
7315 # Broken: success on invalid input.
7316 continue
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321 # Passes both tests.
7322 ac_preproc_ok=:
7323 break
7324 fi
7325 rm -f conftest.err conftest.$ac_ext
7326
7327 done
7328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7329 rm -f conftest.err conftest.$ac_ext
7330 if $ac_preproc_ok; then
7331 break
7332 fi
7333
7334 done
7335 ac_cv_prog_CPP=$CPP
7336
7337 fi
7338 CPP=$ac_cv_prog_CPP
7339 else
7340 ac_cv_prog_CPP=$CPP
7341 fi
7342 echo "$as_me:$LINENO: result: $CPP" >&5
7343 echo "${ECHO_T}$CPP" >&6
7344 ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7346 do
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #ifdef __STDC__
7360 # include <limits.h>
7361 #else
7362 # include <assert.h>
7363 #endif
7364 Syntax error
7365 _ACEOF
7366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_c_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7377 else
7378 ac_cpp_err=
7379 fi
7380 else
7381 ac_cpp_err=yes
7382 fi
7383 if test -z "$ac_cpp_err"; then
7384 :
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 # Broken: fails on valid input.
7390 continue
7391 fi
7392 rm -f conftest.err conftest.$ac_ext
7393
7394 # OK, works on sane cases. Now check whether non-existent headers
7395 # can be detected and how.
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <ac_nonexistent.h>
7403 _ACEOF
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } >/dev/null; then
7412 if test -s conftest.err; then
7413 ac_cpp_err=$ac_c_preproc_warn_flag
7414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7415 else
7416 ac_cpp_err=
7417 fi
7418 else
7419 ac_cpp_err=yes
7420 fi
7421 if test -z "$ac_cpp_err"; then
7422 # Broken: success on invalid input.
7423 continue
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 # Passes both tests.
7429 ac_preproc_ok=:
7430 break
7431 fi
7432 rm -f conftest.err conftest.$ac_ext
7433
7434 done
7435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7436 rm -f conftest.err conftest.$ac_ext
7437 if $ac_preproc_ok; then
7438 :
7439 else
7440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7441 See \`config.log' for more details." >&5
7442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7443 See \`config.log' for more details." >&2;}
7444 { (exit 1); exit 1; }; }
7445 fi
7446
7447 ac_ext=c
7448 ac_cpp='$CPP $CPPFLAGS'
7449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452
7453
7454 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7456 if test "${ac_cv_header_stdc+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 #include <stdlib.h>
7466 #include <stdarg.h>
7467 #include <string.h>
7468 #include <float.h>
7469
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -z "$ac_c_werror_flag"
7488 || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_header_stdc=yes
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 ac_cv_header_stdc=no
7506 fi
7507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508
7509 if test $ac_cv_header_stdc = yes; then
7510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #include <string.h>
7518
7519 _ACEOF
7520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7521 $EGREP "memchr" >/dev/null 2>&1; then
7522 :
7523 else
7524 ac_cv_header_stdc=no
7525 fi
7526 rm -f conftest*
7527
7528 fi
7529
7530 if test $ac_cv_header_stdc = yes; then
7531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <stdlib.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "free" >/dev/null 2>&1; then
7543 :
7544 else
7545 ac_cv_header_stdc=no
7546 fi
7547 rm -f conftest*
7548
7549 fi
7550
7551 if test $ac_cv_header_stdc = yes; then
7552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553 if test "$cross_compiling" = yes; then
7554 :
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 #include <ctype.h>
7563 #if ((' ' & 0x0FF) == 0x020)
7564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7566 #else
7567 # define ISLOWER(c) \
7568 (('a' <= (c) && (c) <= 'i') \
7569 || ('j' <= (c) && (c) <= 'r') \
7570 || ('s' <= (c) && (c) <= 'z'))
7571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7572 #endif
7573
7574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7575 int
7576 main ()
7577 {
7578 int i;
7579 for (i = 0; i < 256; i++)
7580 if (XOR (islower (i), ISLOWER (i))
7581 || toupper (i) != TOUPPER (i))
7582 exit(2);
7583 exit (0);
7584 }
7585 _ACEOF
7586 rm -f conftest$ac_exeext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 :
7598 else
7599 echo "$as_me: program exited with status $ac_status" >&5
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 ( exit $ac_status )
7604 ac_cv_header_stdc=no
7605 fi
7606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 fi
7609 fi
7610 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7611 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7612 if test $ac_cv_header_stdc = yes; then
7613
7614 cat >>confdefs.h <<\_ACEOF
7615 #define STDC_HEADERS 1
7616 _ACEOF
7617
7618 fi
7619
7620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7631 inttypes.h stdint.h unistd.h
7632 do
7633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646
7647 #include <$ac_header>
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_c_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 eval "$as_ac_Header=yes"
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 eval "$as_ac_Header=no"
7677 fi
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 fi
7680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685 _ACEOF
7686
7687 fi
7688
7689 done
7690
7691
7692
7693 for ac_header in dlfcn.h
7694 do
7695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7696 echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701 cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h. */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 $ac_includes_default
7708
7709 #include <$ac_header>
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -z "$ac_c_werror_flag"
7721 || test ! -s conftest.err'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; } &&
7727 { ac_try='test -s conftest.$ac_objext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 eval "$as_ac_Header=yes"
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 eval "$as_ac_Header=no"
7739 fi
7740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7741 fi
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7745 cat >>confdefs.h <<_ACEOF
7746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7747 _ACEOF
7748
7749 fi
7750
7751 done
7752
7753
7754
7755 ac_ext=cc
7756 ac_cpp='$CXXCPP $CPPFLAGS'
7757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7760 if test -n "$ac_tool_prefix"; then
7761 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7762 do
7763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7765 echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7767 if test "${ac_cv_prog_CXX+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 if test -n "$CXX"; then
7771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786
7787 fi
7788 fi
7789 CXX=$ac_cv_prog_CXX
7790 if test -n "$CXX"; then
7791 echo "$as_me:$LINENO: result: $CXX" >&5
7792 echo "${ECHO_T}$CXX" >&6
7793 else
7794 echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6
7796 fi
7797
7798 test -n "$CXX" && break
7799 done
7800 fi
7801 if test -z "$CXX"; then
7802 ac_ct_CXX=$CXX
7803 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7804 do
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 if test -n "$ac_ct_CXX"; then
7813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_ac_ct_CXX="$ac_prog"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828
7829 fi
7830 fi
7831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7832 if test -n "$ac_ct_CXX"; then
7833 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7834 echo "${ECHO_T}$ac_ct_CXX" >&6
7835 else
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838 fi
7839
7840 test -n "$ac_ct_CXX" && break
7841 done
7842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7843
7844 CXX=$ac_ct_CXX
7845 fi
7846
7847
7848 # Provide some information about the compiler.
7849 echo "$as_me:$LINENO:" \
7850 "checking for C++ compiler version" >&5
7851 ac_compiler=`set X $ac_compile; echo $2`
7852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7853 (eval $ac_compiler --version </dev/null >&5) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }
7857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7858 (eval $ac_compiler -v </dev/null >&5) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }
7862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7863 (eval $ac_compiler -V </dev/null >&5) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }
7867
7868 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879
7880 int
7881 main ()
7882 {
7883 #ifndef __GNUC__
7884 choke me
7885 #endif
7886
7887 ;
7888 return 0;
7889 }
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893 (eval $ac_compile) 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -z "$ac_cxx_werror_flag"
7901 || test ! -s conftest.err'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; } &&
7907 { ac_try='test -s conftest.$ac_objext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_compiler_gnu=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ac_compiler_gnu=no
7919 fi
7920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7922
7923 fi
7924 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7926 GXX=`test $ac_compiler_gnu = yes && echo yes`
7927 ac_test_CXXFLAGS=${CXXFLAGS+set}
7928 ac_save_CXXFLAGS=$CXXFLAGS
7929 CXXFLAGS="-g"
7930 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7932 if test "${ac_cv_prog_cxx_g+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7941
7942 int
7943 main ()
7944 {
7945
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_cxx_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_prog_cxx_g=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_cv_prog_cxx_g=no
7978 fi
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7980 fi
7981 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7982 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7983 if test "$ac_test_CXXFLAGS" = set; then
7984 CXXFLAGS=$ac_save_CXXFLAGS
7985 elif test $ac_cv_prog_cxx_g = yes; then
7986 if test "$GXX" = yes; then
7987 CXXFLAGS="-g -O2"
7988 else
7989 CXXFLAGS="-g"
7990 fi
7991 else
7992 if test "$GXX" = yes; then
7993 CXXFLAGS="-O2"
7994 else
7995 CXXFLAGS=
7996 fi
7997 fi
7998 for ac_declaration in \
7999 '' \
8000 'extern "C" void std::exit (int) throw (); using std::exit;' \
8001 'extern "C" void std::exit (int); using std::exit;' \
8002 'extern "C" void exit (int) throw ();' \
8003 'extern "C" void exit (int);' \
8004 'void exit (int);'
8005 do
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_declaration
8013 #include <stdlib.h>
8014 int
8015 main ()
8016 {
8017 exit (42);
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024 (eval $ac_compile) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_cxx_werror_flag"
8032 || test ! -s conftest.err'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest.$ac_objext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 :
8045 else
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 continue
8050 fi
8051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_declaration
8059 int
8060 main ()
8061 {
8062 exit (42);
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_cxx_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 break
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 fi
8095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8096 done
8097 rm -f conftest*
8098 if test -n "$ac_declaration"; then
8099 echo '#ifdef __cplusplus' >>confdefs.h
8100 echo $ac_declaration >>confdefs.h
8101 echo '#endif' >>confdefs.h
8102 fi
8103
8104 ac_ext=c
8105 ac_cpp='$CPP $CPPFLAGS'
8106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109
8110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8112 (test "X$CXX" != "Xg++"))) ; then
8113 ac_ext=cc
8114 ac_cpp='$CXXCPP $CPPFLAGS'
8115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8118 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8119 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8120 if test -z "$CXXCPP"; then
8121 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 # Double quotes because CXXCPP needs to be expanded
8125 for CXXCPP in "$CXX -E" "/lib/cpp"
8126 do
8127 ac_preproc_ok=false
8128 for ac_cxx_preproc_warn_flag in '' yes
8129 do
8130 # Use a header file that comes with gcc, so configuring glibc
8131 # with a fresh cross-compiler works.
8132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133 # <limits.h> exists even on freestanding compilers.
8134 # On the NeXT, cc -E runs the code through the compiler's parser,
8135 # not just through cpp. "Syntax error" is here to catch this case.
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #ifdef __STDC__
8143 # include <limits.h>
8144 #else
8145 # include <assert.h>
8146 #endif
8147 Syntax error
8148 _ACEOF
8149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } >/dev/null; then
8157 if test -s conftest.err; then
8158 ac_cpp_err=$ac_cxx_preproc_warn_flag
8159 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8160 else
8161 ac_cpp_err=
8162 fi
8163 else
8164 ac_cpp_err=yes
8165 fi
8166 if test -z "$ac_cpp_err"; then
8167 :
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 # Broken: fails on valid input.
8173 continue
8174 fi
8175 rm -f conftest.err conftest.$ac_ext
8176
8177 # OK, works on sane cases. Now check whether non-existent headers
8178 # can be detected and how.
8179 cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <ac_nonexistent.h>
8186 _ACEOF
8187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } >/dev/null; then
8195 if test -s conftest.err; then
8196 ac_cpp_err=$ac_cxx_preproc_warn_flag
8197 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8198 else
8199 ac_cpp_err=
8200 fi
8201 else
8202 ac_cpp_err=yes
8203 fi
8204 if test -z "$ac_cpp_err"; then
8205 # Broken: success on invalid input.
8206 continue
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 # Passes both tests.
8212 ac_preproc_ok=:
8213 break
8214 fi
8215 rm -f conftest.err conftest.$ac_ext
8216
8217 done
8218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8219 rm -f conftest.err conftest.$ac_ext
8220 if $ac_preproc_ok; then
8221 break
8222 fi
8223
8224 done
8225 ac_cv_prog_CXXCPP=$CXXCPP
8226
8227 fi
8228 CXXCPP=$ac_cv_prog_CXXCPP
8229 else
8230 ac_cv_prog_CXXCPP=$CXXCPP
8231 fi
8232 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8233 echo "${ECHO_T}$CXXCPP" >&6
8234 ac_preproc_ok=false
8235 for ac_cxx_preproc_warn_flag in '' yes
8236 do
8237 # Use a header file that comes with gcc, so configuring glibc
8238 # with a fresh cross-compiler works.
8239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 # <limits.h> exists even on freestanding compilers.
8241 # On the NeXT, cc -E runs the code through the compiler's parser,
8242 # not just through cpp. "Syntax error" is here to catch this case.
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #ifdef __STDC__
8250 # include <limits.h>
8251 #else
8252 # include <assert.h>
8253 #endif
8254 Syntax error
8255 _ACEOF
8256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } >/dev/null; then
8264 if test -s conftest.err; then
8265 ac_cpp_err=$ac_cxx_preproc_warn_flag
8266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8267 else
8268 ac_cpp_err=
8269 fi
8270 else
8271 ac_cpp_err=yes
8272 fi
8273 if test -z "$ac_cpp_err"; then
8274 :
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 # Broken: fails on valid input.
8280 continue
8281 fi
8282 rm -f conftest.err conftest.$ac_ext
8283
8284 # OK, works on sane cases. Now check whether non-existent headers
8285 # can be detected and how.
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 #include <ac_nonexistent.h>
8293 _ACEOF
8294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } >/dev/null; then
8302 if test -s conftest.err; then
8303 ac_cpp_err=$ac_cxx_preproc_warn_flag
8304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8305 else
8306 ac_cpp_err=
8307 fi
8308 else
8309 ac_cpp_err=yes
8310 fi
8311 if test -z "$ac_cpp_err"; then
8312 # Broken: success on invalid input.
8313 continue
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 # Passes both tests.
8319 ac_preproc_ok=:
8320 break
8321 fi
8322 rm -f conftest.err conftest.$ac_ext
8323
8324 done
8325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8326 rm -f conftest.err conftest.$ac_ext
8327 if $ac_preproc_ok; then
8328 :
8329 else
8330 _lt_caught_CXX_error=yes
8331 fi
8332
8333 ac_ext=c
8334 ac_cpp='$CPP $CPPFLAGS'
8335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339 else
8340 _lt_caught_CXX_error=yes
8341 fi
8342
8343
8344
8345
8346
8347 # This can be used to rebuild libtool when needed
8348 LIBTOOL_DEPS="$ltmain"
8349
8350 # Always use our own libtool.
8351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377 test -z "$LN_S" && LN_S="ln -s"
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 if test -n "${ZSH_VERSION+set}" ; then
8393 setopt NO_GLOB_SUBST
8394 fi
8395
8396 echo "$as_me:$LINENO: checking for objdir" >&5
8397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8398 if test "${lt_cv_objdir+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 rm -f .libs 2>/dev/null
8402 mkdir .libs 2>/dev/null
8403 if test -d .libs; then
8404 lt_cv_objdir=.libs
8405 else
8406 # MS-DOS does not allow filenames that begin with a dot.
8407 lt_cv_objdir=_libs
8408 fi
8409 rmdir .libs 2>/dev/null
8410 fi
8411 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8412 echo "${ECHO_T}$lt_cv_objdir" >&6
8413 objdir=$lt_cv_objdir
8414
8415
8416
8417
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define LT_OBJDIR "$lt_cv_objdir/"
8421 _ACEOF
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439 case $host_os in
8440 aix3*)
8441 # AIX sometimes has problems with the GCC collect2 program. For some
8442 # reason, if we set the COLLECT_NAMES environment variable, the problems
8443 # vanish in a puff of smoke.
8444 if test "X${COLLECT_NAMES+set}" != Xset; then
8445 COLLECT_NAMES=
8446 export COLLECT_NAMES
8447 fi
8448 ;;
8449 esac
8450
8451 # Sed substitution that helps us do robust quoting. It backslashifies
8452 # metacharacters that are still active within double-quoted strings.
8453 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8454
8455 # Same as above, but do not quote variable references.
8456 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8457
8458 # Sed substitution to delay expansion of an escaped shell variable in a
8459 # double_quote_subst'ed string.
8460 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8461
8462 # Sed substitution to delay expansion of an escaped single quote.
8463 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8464
8465 # Sed substitution to avoid accidental globbing in evaled expressions
8466 no_glob_subst='s/\*/\\\*/g'
8467
8468 # Global variables:
8469 ofile=libtool
8470 can_build_shared=yes
8471
8472 # All known linkers require a `.a' archive for static linking (except MSVC,
8473 # which needs '.lib').
8474 libext=a
8475
8476 with_gnu_ld="$lt_cv_prog_gnu_ld"
8477
8478 old_CC="$CC"
8479 old_CFLAGS="$CFLAGS"
8480
8481 # Set sane defaults for various variables
8482 test -z "$CC" && CC=cc
8483 test -z "$LTCC" && LTCC=$CC
8484 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8485 test -z "$LD" && LD=ld
8486 test -z "$ac_objext" && ac_objext=o
8487
8488 for cc_temp in $compiler""; do
8489 case $cc_temp in
8490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8492 \-*) ;;
8493 *) break;;
8494 esac
8495 done
8496 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8497
8498
8499 # Only perform the check for file, if the check method requires it
8500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8501 case $deplibs_check_method in
8502 file_magic*)
8503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8504 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8505 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 case $MAGIC_CMD in
8510 [\\/*] | ?:[\\/]*)
8511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8512 ;;
8513 *)
8514 lt_save_MAGIC_CMD="$MAGIC_CMD"
8515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8517 for ac_dir in $ac_dummy; do
8518 IFS="$lt_save_ifs"
8519 test -z "$ac_dir" && ac_dir=.
8520 if test -f $ac_dir/${ac_tool_prefix}file; then
8521 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8522 if test -n "$file_magic_test_file"; then
8523 case $deplibs_check_method in
8524 "file_magic "*)
8525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8528 $EGREP "$file_magic_regex" > /dev/null; then
8529 :
8530 else
8531 cat <<_LT_EOF 1>&2
8532
8533 *** Warning: the command libtool uses to detect shared libraries,
8534 *** $file_magic_cmd, produces output that libtool cannot recognize.
8535 *** The result is that libtool may fail to recognize shared libraries
8536 *** as such. This will affect the creation of libtool libraries that
8537 *** depend on shared libraries, but programs linked with such libtool
8538 *** libraries will work regardless of this problem. Nevertheless, you
8539 *** may want to report the problem to your system manager and/or to
8540 *** bug-libtool@gnu.org
8541
8542 _LT_EOF
8543 fi ;;
8544 esac
8545 fi
8546 break
8547 fi
8548 done
8549 IFS="$lt_save_ifs"
8550 MAGIC_CMD="$lt_save_MAGIC_CMD"
8551 ;;
8552 esac
8553 fi
8554
8555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8556 if test -n "$MAGIC_CMD"; then
8557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8558 echo "${ECHO_T}$MAGIC_CMD" >&6
8559 else
8560 echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562 fi
8563
8564
8565
8566
8567
8568 if test -z "$lt_cv_path_MAGIC_CMD"; then
8569 if test -n "$ac_tool_prefix"; then
8570 echo "$as_me:$LINENO: checking for file" >&5
8571 echo $ECHO_N "checking for file... $ECHO_C" >&6
8572 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 case $MAGIC_CMD in
8576 [\\/*] | ?:[\\/]*)
8577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8578 ;;
8579 *)
8580 lt_save_MAGIC_CMD="$MAGIC_CMD"
8581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8583 for ac_dir in $ac_dummy; do
8584 IFS="$lt_save_ifs"
8585 test -z "$ac_dir" && ac_dir=.
8586 if test -f $ac_dir/file; then
8587 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8588 if test -n "$file_magic_test_file"; then
8589 case $deplibs_check_method in
8590 "file_magic "*)
8591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8594 $EGREP "$file_magic_regex" > /dev/null; then
8595 :
8596 else
8597 cat <<_LT_EOF 1>&2
8598
8599 *** Warning: the command libtool uses to detect shared libraries,
8600 *** $file_magic_cmd, produces output that libtool cannot recognize.
8601 *** The result is that libtool may fail to recognize shared libraries
8602 *** as such. This will affect the creation of libtool libraries that
8603 *** depend on shared libraries, but programs linked with such libtool
8604 *** libraries will work regardless of this problem. Nevertheless, you
8605 *** may want to report the problem to your system manager and/or to
8606 *** bug-libtool@gnu.org
8607
8608 _LT_EOF
8609 fi ;;
8610 esac
8611 fi
8612 break
8613 fi
8614 done
8615 IFS="$lt_save_ifs"
8616 MAGIC_CMD="$lt_save_MAGIC_CMD"
8617 ;;
8618 esac
8619 fi
8620
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if test -n "$MAGIC_CMD"; then
8623 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8624 echo "${ECHO_T}$MAGIC_CMD" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6
8628 fi
8629
8630
8631 else
8632 MAGIC_CMD=:
8633 fi
8634 fi
8635
8636 fi
8637 ;;
8638 esac
8639
8640 # Use C for the default configuration in the libtool script
8641
8642 lt_save_CC="$CC"
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649
8650 # Source file extension for C test sources.
8651 ac_ext=c
8652
8653 # Object file extension for compiled C test sources.
8654 objext=o
8655 objext=$objext
8656
8657 # Code to be used in simple compile tests
8658 lt_simple_compile_test_code="int some_variable = 0;"
8659
8660 # Code to be used in simple link tests
8661 lt_simple_link_test_code='int main(){return(0);}'
8662
8663
8664
8665
8666
8667
8668
8669 # If no C compiler was specified, use CC.
8670 LTCC=${LTCC-"$CC"}
8671
8672 # If no C compiler flags were specified, use CFLAGS.
8673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8674
8675 # Allow CC to be a program name with arguments.
8676 compiler=$CC
8677
8678 # Save the default compiler, since it gets overwritten when the other
8679 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8680 compiler_DEFAULT=$CC
8681
8682 # save warnings/boilerplate of simple test code
8683 ac_outfile=conftest.$ac_objext
8684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8686 _lt_compiler_boilerplate=`cat conftest.err`
8687 $RM conftest*
8688
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8692 _lt_linker_boilerplate=`cat conftest.err`
8693 $RM conftest*
8694
8695
8696 ## CAVEAT EMPTOR:
8697 ## There is no encapsulation within the following macros, do not change
8698 ## the running order or otherwise move them around unless you know exactly
8699 ## what you are doing...
8700 if test -n "$compiler"; then
8701
8702 lt_prog_compiler_no_builtin_flag=
8703
8704 if test "$GCC" = yes; then
8705 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8706
8707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8708 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8709 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 lt_cv_prog_compiler_rtti_exceptions=no
8713 ac_outfile=conftest.$ac_objext
8714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-fno-rtti -fno-exceptions"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 # The option is referenced via a variable to avoid confusing sed.
8721 lt_compile=`echo "$ac_compile" | $SED \
8722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8724 -e 's:$: $lt_compiler_flag:'`
8725 (eval echo "\"\$as_me:8725: $lt_compile\"" >&5)
8726 (eval "$lt_compile" 2>conftest.err)
8727 ac_status=$?
8728 cat conftest.err >&5
8729 echo "$as_me:8729: \$? = $ac_status" >&5
8730 if (exit $ac_status) && test -s "$ac_outfile"; then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings other than the usual output.
8733 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_rtti_exceptions=yes
8737 fi
8738 fi
8739 $RM conftest*
8740
8741 fi
8742 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8743 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8744
8745 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8747 else
8748 :
8749 fi
8750
8751 fi
8752
8753
8754
8755
8756
8757
8758 lt_prog_compiler_wl=
8759 lt_prog_compiler_pic=
8760 lt_prog_compiler_static=
8761
8762 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8764
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
8768
8769 case $host_os in
8770 aix*)
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 fi
8776 ;;
8777
8778 amigaos*)
8779 if test "$host_cpu" = m68k; then
8780 # FIXME: we need at least 68020 code to build shared libraries, but
8781 # adding the `-m68020' flag to GCC prevents building anything better,
8782 # like `-m68040'.
8783 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8784 fi
8785 ;;
8786
8787 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8788 # PIC is the default for these OSes.
8789 ;;
8790
8791 mingw* | cygwin* | pw32* | os2*)
8792 # This hack is so that the source file can tell whether it is being
8793 # built for inclusion in a dll (and should export symbols for example).
8794 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8795 # (--disable-auto-import) libraries
8796 lt_prog_compiler_pic='-DDLL_EXPORT'
8797 ;;
8798
8799 darwin* | rhapsody*)
8800 # PIC is the default on this platform
8801 # Common symbols not allowed in MH_DYLIB files
8802 lt_prog_compiler_pic='-fno-common'
8803 ;;
8804
8805 hpux*)
8806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8807 # not for PA HP-UX.
8808 case $host_cpu in
8809 hppa*64*|ia64*)
8810 # +Z the default
8811 ;;
8812 *)
8813 lt_prog_compiler_pic='-fPIC'
8814 ;;
8815 esac
8816 ;;
8817
8818 interix[3-9]*)
8819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8820 # Instead, we relocate shared libraries at runtime.
8821 ;;
8822
8823 msdosdjgpp*)
8824 # Just because we use GCC doesn't mean we suddenly get shared libraries
8825 # on systems that don't support them.
8826 lt_prog_compiler_can_build_shared=no
8827 enable_shared=no
8828 ;;
8829
8830 *nto* | *qnx*)
8831 # QNX uses GNU C++, but need to define -shared option too, otherwise
8832 # it will coredump.
8833 lt_prog_compiler_pic='-fPIC -shared'
8834 ;;
8835
8836 sysv4*MP*)
8837 if test -d /usr/nec; then
8838 lt_prog_compiler_pic=-Kconform_pic
8839 fi
8840 ;;
8841
8842 *)
8843 lt_prog_compiler_pic='-fPIC'
8844 ;;
8845 esac
8846 else
8847 # PORTME Check for flag to pass linker flags through the system compiler.
8848 case $host_os in
8849 aix*)
8850 lt_prog_compiler_wl='-Wl,'
8851 if test "$host_cpu" = ia64; then
8852 # AIX 5 now supports IA64 processor
8853 lt_prog_compiler_static='-Bstatic'
8854 else
8855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8856 fi
8857 ;;
8858 darwin*)
8859 # PIC is the default on this platform
8860 # Common symbols not allowed in MH_DYLIB files
8861 case $cc_basename in
8862 xlc*)
8863 lt_prog_compiler_pic='-qnocommon'
8864 lt_prog_compiler_wl='-Wl,'
8865 ;;
8866 esac
8867 ;;
8868
8869 mingw* | cygwin* | pw32* | os2*)
8870 # This hack is so that the source file can tell whether it is being
8871 # built for inclusion in a dll (and should export symbols for example).
8872 lt_prog_compiler_pic='-DDLL_EXPORT'
8873 ;;
8874
8875 hpux9* | hpux10* | hpux11*)
8876 lt_prog_compiler_wl='-Wl,'
8877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8878 # not for PA HP-UX.
8879 case $host_cpu in
8880 hppa*64*|ia64*)
8881 # +Z the default
8882 ;;
8883 *)
8884 lt_prog_compiler_pic='+Z'
8885 ;;
8886 esac
8887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8888 lt_prog_compiler_static='${wl}-a ${wl}archive'
8889 ;;
8890
8891 irix5* | irix6* | nonstopux*)
8892 lt_prog_compiler_wl='-Wl,'
8893 # PIC (with -KPIC) is the default.
8894 lt_prog_compiler_static='-non_shared'
8895 ;;
8896
8897 linux* | k*bsd*-gnu)
8898 case $cc_basename in
8899 icc* | ecc*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-static'
8903 ;;
8904 pgcc* | pgf77* | pgf90* | pgf95*)
8905 # Portland Group compilers (*not* the Pentium gcc compiler,
8906 # which looks to be a dead project)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-fpic'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911 ccc*)
8912 lt_prog_compiler_wl='-Wl,'
8913 # All Alpha code is PIC.
8914 lt_prog_compiler_static='-non_shared'
8915 ;;
8916 *)
8917 case `$CC -V 2>&1 | sed 5q` in
8918 *Sun\ C*)
8919 # Sun C 5.9
8920 lt_prog_compiler_pic='-KPIC'
8921 lt_prog_compiler_static='-Bstatic'
8922 lt_prog_compiler_wl='-Wl,'
8923 ;;
8924 *Sun\ F*)
8925 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 lt_prog_compiler_wl=''
8929 ;;
8930 esac
8931 ;;
8932 esac
8933 ;;
8934
8935 newsos6)
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939
8940 *nto* | *qnx*)
8941 # QNX uses GNU C++, but need to define -shared option too, otherwise
8942 # it will coredump.
8943 lt_prog_compiler_pic='-fPIC -shared'
8944 ;;
8945
8946 osf3* | osf4* | osf5*)
8947 lt_prog_compiler_wl='-Wl,'
8948 # All OSF/1 code is PIC.
8949 lt_prog_compiler_static='-non_shared'
8950 ;;
8951
8952 rdos*)
8953 lt_prog_compiler_static='-non_shared'
8954 ;;
8955
8956 solaris*)
8957 lt_prog_compiler_pic='-KPIC'
8958 lt_prog_compiler_static='-Bstatic'
8959 case $cc_basename in
8960 f77* | f90* | f95*)
8961 lt_prog_compiler_wl='-Qoption ld ';;
8962 *)
8963 lt_prog_compiler_wl='-Wl,';;
8964 esac
8965 ;;
8966
8967 sunos4*)
8968 lt_prog_compiler_wl='-Qoption ld '
8969 lt_prog_compiler_pic='-PIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 ;;
8972
8973 sysv4 | sysv4.2uw2* | sysv4.3*)
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-KPIC'
8976 lt_prog_compiler_static='-Bstatic'
8977 ;;
8978
8979 sysv4*MP*)
8980 if test -d /usr/nec ;then
8981 lt_prog_compiler_pic='-Kconform_pic'
8982 lt_prog_compiler_static='-Bstatic'
8983 fi
8984 ;;
8985
8986 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 ;;
8991
8992 unicos*)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_can_build_shared=no
8995 ;;
8996
8997 uts4*)
8998 lt_prog_compiler_pic='-pic'
8999 lt_prog_compiler_static='-Bstatic'
9000 ;;
9001
9002 *)
9003 lt_prog_compiler_can_build_shared=no
9004 ;;
9005 esac
9006 fi
9007
9008 case $host_os in
9009 # For platforms which do not support PIC, -DPIC is meaningless:
9010 *djgpp*)
9011 lt_prog_compiler_pic=
9012 ;;
9013 *)
9014 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9015 ;;
9016 esac
9017 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9018 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9019
9020
9021
9022
9023
9024
9025 #
9026 # Check to make sure the PIC flag actually works.
9027 #
9028 if test -n "$lt_prog_compiler_pic"; then
9029 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9031 if test "${lt_prog_compiler_pic_works+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 lt_prog_compiler_pic_works=no
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 # The option is referenced via a variable to avoid confusing sed.
9043 lt_compile=`echo "$ac_compile" | $SED \
9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046 -e 's:$: $lt_compiler_flag:'`
9047 (eval echo "\"\$as_me:9047: $lt_compile\"" >&5)
9048 (eval "$lt_compile" 2>conftest.err)
9049 ac_status=$?
9050 cat conftest.err >&5
9051 echo "$as_me:9051: \$? = $ac_status" >&5
9052 if (exit $ac_status) && test -s "$ac_outfile"; then
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings other than the usual output.
9055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9058 lt_prog_compiler_pic_works=yes
9059 fi
9060 fi
9061 $RM conftest*
9062
9063 fi
9064 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9065 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9066
9067 if test x"$lt_prog_compiler_pic_works" = xyes; then
9068 case $lt_prog_compiler_pic in
9069 "" | " "*) ;;
9070 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9071 esac
9072 else
9073 lt_prog_compiler_pic=
9074 lt_prog_compiler_can_build_shared=no
9075 fi
9076
9077 fi
9078
9079
9080
9081
9082
9083
9084 #
9085 # Check to make sure the static flag actually works.
9086 #
9087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9088 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9089 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9090 if test "${lt_prog_compiler_static_works+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 lt_prog_compiler_static_works=no
9094 save_LDFLAGS="$LDFLAGS"
9095 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9098 # The linker can only warn and ignore the option if not recognized
9099 # So say no if there are warnings
9100 if test -s conftest.err; then
9101 # Append any errors to the config.log.
9102 cat conftest.err 1>&5
9103 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105 if diff conftest.exp conftest.er2 >/dev/null; then
9106 lt_prog_compiler_static_works=yes
9107 fi
9108 else
9109 lt_prog_compiler_static_works=yes
9110 fi
9111 fi
9112 $RM conftest*
9113 LDFLAGS="$save_LDFLAGS"
9114
9115 fi
9116 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9117 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9118
9119 if test x"$lt_prog_compiler_static_works" = xyes; then
9120 :
9121 else
9122 lt_prog_compiler_static=
9123 fi
9124
9125
9126
9127
9128
9129
9130
9131 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9132 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9133 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 lt_cv_prog_compiler_c_o=no
9137 $RM -r conftest 2>/dev/null
9138 mkdir conftest
9139 cd conftest
9140 mkdir out
9141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9142
9143 lt_compiler_flag="-o out/conftest2.$ac_objext"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 lt_compile=`echo "$ac_compile" | $SED \
9149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151 -e 's:$: $lt_compiler_flag:'`
9152 (eval echo "\"\$as_me:9152: $lt_compile\"" >&5)
9153 (eval "$lt_compile" 2>out/conftest.err)
9154 ac_status=$?
9155 cat out/conftest.err >&5
9156 echo "$as_me:9156: \$? = $ac_status" >&5
9157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9158 then
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings
9161 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9164 lt_cv_prog_compiler_c_o=yes
9165 fi
9166 fi
9167 chmod u+w . 2>&5
9168 $RM conftest*
9169 # SGI C++ compiler will create directory out/ii_files/ for
9170 # template instantiation
9171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9172 $RM out/* && rmdir out
9173 cd ..
9174 $RM -r conftest
9175 $RM conftest*
9176
9177 fi
9178 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9179 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9180
9181
9182
9183
9184
9185
9186 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9187 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9188 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 lt_cv_prog_compiler_c_o=no
9192 $RM -r conftest 2>/dev/null
9193 mkdir conftest
9194 cd conftest
9195 mkdir out
9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
9198 lt_compiler_flag="-o out/conftest2.$ac_objext"
9199 # Insert the option either (1) after the last *FLAGS variable, or
9200 # (2) before a word containing "conftest.", or (3) at the end.
9201 # Note that $ac_compile itself does not contain backslashes and begins
9202 # with a dollar sign (not a hyphen), so the echo should work correctly.
9203 lt_compile=`echo "$ac_compile" | $SED \
9204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9206 -e 's:$: $lt_compiler_flag:'`
9207 (eval echo "\"\$as_me:9207: $lt_compile\"" >&5)
9208 (eval "$lt_compile" 2>out/conftest.err)
9209 ac_status=$?
9210 cat out/conftest.err >&5
9211 echo "$as_me:9211: \$? = $ac_status" >&5
9212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9213 then
9214 # The compiler can only warn and ignore the option if not recognized
9215 # So say no if there are warnings
9216 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9219 lt_cv_prog_compiler_c_o=yes
9220 fi
9221 fi
9222 chmod u+w . 2>&5
9223 $RM conftest*
9224 # SGI C++ compiler will create directory out/ii_files/ for
9225 # template instantiation
9226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9227 $RM out/* && rmdir out
9228 cd ..
9229 $RM -r conftest
9230 $RM conftest*
9231
9232 fi
9233 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9234 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9235
9236
9237
9238
9239 hard_links="nottested"
9240 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9241 # do not overwrite the value of need_locks provided by the user
9242 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9244 hard_links=yes
9245 $RM conftest*
9246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9247 touch conftest.a
9248 ln conftest.a conftest.b 2>&5 || hard_links=no
9249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9250 echo "$as_me:$LINENO: result: $hard_links" >&5
9251 echo "${ECHO_T}$hard_links" >&6
9252 if test "$hard_links" = no; then
9253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9255 need_locks=warn
9256 fi
9257 else
9258 need_locks=no
9259 fi
9260
9261
9262
9263
9264
9265
9266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9268
9269 runpath_var=
9270 allow_undefined_flag=
9271 always_export_symbols=no
9272 archive_cmds=
9273 archive_expsym_cmds=
9274 compiler_needs_object=no
9275 enable_shared_with_static_runtimes=no
9276 export_dynamic_flag_spec=
9277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9278 hardcode_automatic=no
9279 hardcode_direct=no
9280 hardcode_direct_absolute=no
9281 hardcode_libdir_flag_spec=
9282 hardcode_libdir_flag_spec_ld=
9283 hardcode_libdir_separator=
9284 hardcode_minus_L=no
9285 hardcode_shlibpath_var=unsupported
9286 inherit_rpath=no
9287 link_all_deplibs=unknown
9288 module_cmds=
9289 module_expsym_cmds=
9290 old_archive_from_new_cmds=
9291 old_archive_from_expsyms_cmds=
9292 thread_safe_flag_spec=
9293 whole_archive_flag_spec=
9294 # include_expsyms should be a list of space-separated symbols to be *always*
9295 # included in the symbol list
9296 include_expsyms=
9297 # exclude_expsyms can be an extended regexp of symbols to exclude
9298 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9299 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9300 # as well as any symbol that contains `d'.
9301 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9303 # platforms (ab)use it in PIC code, but their linkers get confused if
9304 # the symbol is explicitly referenced. Since portable code cannot
9305 # rely on this symbol name, it's probably fine to never include it in
9306 # preloaded symbol tables.
9307 extract_expsyms_cmds=
9308
9309 case $host_os in
9310 cygwin* | mingw* | pw32*)
9311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9312 # When not using gcc, we currently assume that we are using
9313 # Microsoft Visual C++.
9314 if test "$GCC" != yes; then
9315 with_gnu_ld=no
9316 fi
9317 ;;
9318 interix*)
9319 # we just hope/assume this is gcc and not c89 (= MSVC++)
9320 with_gnu_ld=yes
9321 ;;
9322 openbsd*)
9323 with_gnu_ld=no
9324 ;;
9325 esac
9326
9327 ld_shlibs=yes
9328 if test "$with_gnu_ld" = yes; then
9329 # If archive_cmds runs LD, not CC, wlarc should be empty
9330 wlarc='${wl}'
9331
9332 # Set some defaults for GNU ld with shared library support. These
9333 # are reset later if shared libraries are not supported. Putting them
9334 # here allows them to be overridden if necessary.
9335 runpath_var=LD_RUN_PATH
9336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337 export_dynamic_flag_spec='${wl}--export-dynamic'
9338 # ancient GNU ld didn't support --whole-archive et. al.
9339 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9340 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9341 else
9342 whole_archive_flag_spec=
9343 fi
9344 supports_anon_versioning=no
9345 case `$LD -v 2>&1` in
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9349 *\ 2.11.*) ;; # other 2.11 versions
9350 *) supports_anon_versioning=yes ;;
9351 esac
9352
9353 # See if GNU ld supports shared libraries.
9354 case $host_os in
9355 aix[3-9]*)
9356 # On AIX/PPC, the GNU linker is very broken
9357 if test "$host_cpu" != ia64; then
9358 ld_shlibs=no
9359 cat <<_LT_EOF 1>&2
9360
9361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9362 *** to be unable to reliably create shared libraries on AIX.
9363 *** Therefore, libtool is disabling shared libraries support. If you
9364 *** really care for shared libraries, you may want to modify your PATH
9365 *** so that a non-GNU linker is found, and then restart.
9366
9367 _LT_EOF
9368 fi
9369 ;;
9370
9371 amigaos*)
9372 if test "$host_cpu" = m68k; then
9373 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)'
9374 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_minus_L=yes
9376 fi
9377
9378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9379 # that the semantics of dynamic libraries on AmigaOS, at least up
9380 # to version 4, is to share data among multiple programs linked
9381 # with the same dynamic library. Since this doesn't match the
9382 # behavior of shared libraries on other platforms, we can't use
9383 # them.
9384 ld_shlibs=no
9385 ;;
9386
9387 beos*)
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 allow_undefined_flag=unsupported
9390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9391 # support --undefined. This deserves some investigation. FIXME
9392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 else
9394 ld_shlibs=no
9395 fi
9396 ;;
9397
9398 cygwin* | mingw* | pw32*)
9399 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9400 # as there is no search path for DLLs.
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 allow_undefined_flag=unsupported
9403 always_export_symbols=no
9404 enable_shared_with_static_runtimes=yes
9405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9406
9407 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9409 # If the export-symbols file already is a .def file (1st line
9410 # is EXPORTS), use it as is; otherwise, prepend...
9411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9412 cp $export_symbols $output_objdir/$soname.def;
9413 else
9414 echo EXPORTS > $output_objdir/$soname.def;
9415 cat $export_symbols >> $output_objdir/$soname.def;
9416 fi~
9417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 interix[3-9]*)
9424 hardcode_direct=no
9425 hardcode_shlibpath_var=no
9426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9427 export_dynamic_flag_spec='${wl}-E'
9428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9429 # Instead, shared libraries are loaded at an image base (0x10000000 by
9430 # default) and relocated if they conflict, which is a slow very memory
9431 # consuming and fragmenting process. To avoid this, we pick a random,
9432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9435 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'
9436 ;;
9437
9438 gnu* | linux* | tpf* | k*bsd*-gnu)
9439 tmp_diet=no
9440 if test "$host_os" = linux-dietlibc; then
9441 case $cc_basename in
9442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9443 esac
9444 fi
9445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9446 && test "$tmp_diet" = no
9447 then
9448 tmp_addflag=
9449 case $cc_basename,$host_cpu in
9450 pgcc*) # Portland Group C compiler
9451 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'
9452 tmp_addflag=' $pic_flag'
9453 ;;
9454 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9455 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'
9456 tmp_addflag=' $pic_flag -Mnomain' ;;
9457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9458 tmp_addflag=' -i_dynamic' ;;
9459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9460 tmp_addflag=' -i_dynamic -nofor_main' ;;
9461 ifc* | ifort*) # Intel Fortran compiler
9462 tmp_addflag=' -nofor_main' ;;
9463 esac
9464 case `$CC -V 2>&1 | sed 5q` in
9465 *Sun\ C*) # Sun C 5.9
9466 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'
9467 compiler_needs_object=yes
9468 tmp_sharedflag='-G' ;;
9469 *Sun\ F*) # Sun Fortran 8.3
9470 tmp_sharedflag='-G' ;;
9471 *)
9472 tmp_sharedflag='-shared' ;;
9473 esac
9474 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475
9476 if test "x$supports_anon_versioning" = xyes; then
9477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9479 echo "local: *; };" >> $output_objdir/$libname.ver~
9480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9481 fi
9482 else
9483 ld_shlibs=no
9484 fi
9485 ;;
9486
9487 netbsd*)
9488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9489 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9490 wlarc=
9491 else
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494 fi
9495 ;;
9496
9497 solaris*)
9498 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9499 ld_shlibs=no
9500 cat <<_LT_EOF 1>&2
9501
9502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9503 *** create shared libraries on Solaris systems. Therefore, libtool
9504 *** is disabling shared libraries support. We urge you to upgrade GNU
9505 *** binutils to release 2.9.1 or newer. Another option is to modify
9506 *** your PATH or compiler configuration so that the native linker is
9507 *** used, and then restart.
9508
9509 _LT_EOF
9510 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513 else
9514 ld_shlibs=no
9515 fi
9516 ;;
9517
9518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9519 case `$LD -v 2>&1` in
9520 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9521 ld_shlibs=no
9522 cat <<_LT_EOF 1>&2
9523
9524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9525 *** reliably create shared libraries on SCO systems. Therefore, libtool
9526 *** is disabling shared libraries support. We urge you to upgrade GNU
9527 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9528 *** your PATH or compiler configuration so that the native linker is
9529 *** used, and then restart.
9530
9531 _LT_EOF
9532 ;;
9533 *)
9534 # For security reasons, it is highly recommended that you always
9535 # use absolute paths for naming shared libraries, and exclude the
9536 # DT_RUNPATH tag from executables and libraries. But doing so
9537 # requires that you compile everything twice, which is a pain.
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9542 else
9543 ld_shlibs=no
9544 fi
9545 ;;
9546 esac
9547 ;;
9548
9549 sunos4*)
9550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551 wlarc=
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 *)
9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560 else
9561 ld_shlibs=no
9562 fi
9563 ;;
9564 esac
9565
9566 if test "$ld_shlibs" = no; then
9567 runpath_var=
9568 hardcode_libdir_flag_spec=
9569 export_dynamic_flag_spec=
9570 whole_archive_flag_spec=
9571 fi
9572 else
9573 # PORTME fill in a description of your system's linker (not GNU ld)
9574 case $host_os in
9575 aix3*)
9576 allow_undefined_flag=unsupported
9577 always_export_symbols=yes
9578 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'
9579 # Note: this linker hardcodes the directories in LIBPATH if there
9580 # are no directories specified by -L.
9581 hardcode_minus_L=yes
9582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9583 # Neither direct hardcoding nor static linking is supported with a
9584 # broken collect2.
9585 hardcode_direct=unsupported
9586 fi
9587 ;;
9588
9589 aix[4-9]*)
9590 if test "$host_cpu" = ia64; then
9591 # On IA64, the linker does run time linking by default, so we don't
9592 # have to do anything special.
9593 aix_use_runtimelinking=no
9594 exp_sym_flag='-Bexport'
9595 no_entry_flag=""
9596 else
9597 # If we're using GNU nm, then we don't want the "-C" option.
9598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9600 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'
9601 else
9602 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'
9603 fi
9604 aix_use_runtimelinking=no
9605
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9610 for ld_flag in $LDFLAGS; do
9611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9612 aix_use_runtimelinking=yes
9613 break
9614 fi
9615 done
9616 ;;
9617 esac
9618
9619 exp_sym_flag='-bexport'
9620 no_entry_flag='-bnoentry'
9621 fi
9622
9623 # When large executables or shared objects are built, AIX ld can
9624 # have problems creating the table of contents. If linking a library
9625 # or program results in "error TOC overflow" add -mminimal-toc to
9626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9628
9629 archive_cmds=''
9630 hardcode_direct=yes
9631 hardcode_direct_absolute=yes
9632 hardcode_libdir_separator=':'
9633 link_all_deplibs=yes
9634 file_list_spec='${wl}-f,'
9635
9636 if test "$GCC" = yes; then
9637 case $host_os in aix4.[012]|aix4.[012].*)
9638 # We only want to do this on AIX 4.2 and lower, the check
9639 # below for broken collect2 doesn't work under 4.3+
9640 collect2name=`${CC} -print-prog-name=collect2`
9641 if test -f "$collect2name" &&
9642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9643 then
9644 # We have reworked collect2
9645 :
9646 else
9647 # We have old collect2
9648 hardcode_direct=unsupported
9649 # It fails to find uninstalled libraries when the uninstalled
9650 # path is not listed in the libpath. Setting hardcode_minus_L
9651 # to unsupported forces relinking
9652 hardcode_minus_L=yes
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_libdir_separator=
9655 fi
9656 ;;
9657 esac
9658 shared_flag='-shared'
9659 if test "$aix_use_runtimelinking" = yes; then
9660 shared_flag="$shared_flag "'${wl}-G'
9661 fi
9662 else
9663 # not using gcc
9664 if test "$host_cpu" = ia64; then
9665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9666 # chokes on -Wl,-G. The following line is correct:
9667 shared_flag='-G'
9668 else
9669 if test "$aix_use_runtimelinking" = yes; then
9670 shared_flag='${wl}-G'
9671 else
9672 shared_flag='${wl}-bM:SRE'
9673 fi
9674 fi
9675 fi
9676
9677 # It seems that -bexpall does not export symbols beginning with
9678 # underscore (_), so it is better to generate a list of symbols to export.
9679 always_export_symbols=yes
9680 if test "$aix_use_runtimelinking" = yes; then
9681 # Warning - without using the other runtime loading flags (-brtl),
9682 # -berok will link without error, but may produce a broken library.
9683 allow_undefined_flag='-berok'
9684 # Determine the default libpath from the value encoded in an
9685 # empty executable.
9686 if test x$gcc_no_link = xyes; then
9687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9689 { (exit 1); exit 1; }; }
9690 fi
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697
9698 int
9699 main ()
9700 {
9701
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728
9729 lt_aix_libpath_sed='
9730 /Import File Strings/,/^$/ {
9731 /^0/ {
9732 s/^0 *\(.*\)$/\1/
9733 p
9734 }
9735 }'
9736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737 # Check for a 64-bit object if we didn't find anything.
9738 if test -z "$aix_libpath"; then
9739 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 fi
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 fi
9746 rm -f conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749
9750 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9751 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"
9752 else
9753 if test "$host_cpu" = ia64; then
9754 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9755 allow_undefined_flag="-z nodefs"
9756 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"
9757 else
9758 # Determine the default libpath from the value encoded in an
9759 # empty executable.
9760 if test x$gcc_no_link = xyes; then
9761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9763 { (exit 1); exit 1; }; }
9764 fi
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771
9772 int
9773 main ()
9774 {
9775
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag"
9790 || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802
9803 lt_aix_libpath_sed='
9804 /Import File Strings/,/^$/ {
9805 /^0/ {
9806 s/^0 *\(.*\)$/\1/
9807 p
9808 }
9809 }'
9810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811 # Check for a 64-bit object if we didn't find anything.
9812 if test -z "$aix_libpath"; then
9813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814 fi
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 fi
9820 rm -f conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9823
9824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9825 # Warning - without using the other run time loading flags,
9826 # -berok will link without error, but may produce a broken library.
9827 no_undefined_flag=' ${wl}-bernotok'
9828 allow_undefined_flag=' ${wl}-berok'
9829 # Exported symbols can be pulled into shared objects from archives
9830 whole_archive_flag_spec='$convenience'
9831 archive_cmds_need_lc=yes
9832 # This is similar to how AIX traditionally builds its shared libraries.
9833 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'
9834 fi
9835 fi
9836 ;;
9837
9838 amigaos*)
9839 if test "$host_cpu" = m68k; then
9840 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)'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_minus_L=yes
9843 fi
9844 # see comment about different semantics on the GNU ld section
9845 ld_shlibs=no
9846 ;;
9847
9848 bsdi[45]*)
9849 export_dynamic_flag_spec=-rdynamic
9850 ;;
9851
9852 cygwin* | mingw* | pw32*)
9853 # When not using gcc, we currently assume that we are using
9854 # Microsoft Visual C++.
9855 # hardcode_libdir_flag_spec is actually meaningless, as there is
9856 # no search path for DLLs.
9857 hardcode_libdir_flag_spec=' '
9858 allow_undefined_flag=unsupported
9859 # Tell ltmain to make .lib files, not .a files.
9860 libext=lib
9861 # Tell ltmain to make .dll files, not .so files.
9862 shrext_cmds=".dll"
9863 # FIXME: Setting linknames here is a bad hack.
9864 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9865 # The linker will automatically build a .lib file if we build a DLL.
9866 old_archive_from_new_cmds='true'
9867 # FIXME: Should let the user specify the lib program.
9868 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9869 fix_srcfile_path='`cygpath -w "$srcfile"`'
9870 enable_shared_with_static_runtimes=yes
9871 ;;
9872
9873 darwin* | rhapsody*)
9874 case $host_os in
9875 rhapsody* | darwin1.[012])
9876 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9877 ;;
9878 *) # Darwin 1.3 on
9879 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9880 10.[012])
9881 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9882 ;;
9883 10.*)
9884 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9885 ;;
9886 esac
9887 ;;
9888 esac
9889 archive_cmds_need_lc=no
9890 hardcode_direct=no
9891 hardcode_automatic=yes
9892 hardcode_shlibpath_var=unsupported
9893 whole_archive_flag_spec=''
9894 link_all_deplibs=yes
9895 if test "$GCC" = yes ; then
9896 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 lt_cv_apple_cc_single_mod=no
9900 if test -z "${LT_MULTI_MODULE}"; then
9901 # By default we will add the -single_module flag. You can override
9902 # by either setting the environment variable LT_MULTI_MODULE
9903 # non-empty at configure time, or by adding -multi-module to the
9904 # link flags.
9905 echo "int foo(void){return 1;}" > conftest.c
9906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9907 -dynamiclib ${wl}-single_module conftest.c
9908 if test -f libconftest.dylib; then
9909 lt_cv_apple_cc_single_mod=yes
9910 rm libconftest.dylib
9911 fi
9912 rm conftest.$ac_ext
9913 fi
9914 fi
9915
9916 output_verbose_link_cmd=echo
9917 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9918 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9919 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}'
9920 else
9921 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9922 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}'
9923 fi
9924 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9925 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}'
9926 else
9927 case $cc_basename in
9928 xlc*)
9929 output_verbose_link_cmd=echo
9930 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9931 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9932 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9933 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}'
9934 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}'
9935 ;;
9936 *)
9937 ld_shlibs=no
9938 ;;
9939 esac
9940 fi
9941 ;;
9942
9943 dgux*)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 freebsd1*)
9950 ld_shlibs=no
9951 ;;
9952
9953 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9954 # support. Future versions do this automatically, but an explicit c++rt0.o
9955 # does not break anything, and helps significantly (at the cost of a little
9956 # extra space).
9957 freebsd2.2*)
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9959 hardcode_libdir_flag_spec='-R$libdir'
9960 hardcode_direct=yes
9961 hardcode_shlibpath_var=no
9962 ;;
9963
9964 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9965 freebsd2*)
9966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_direct=yes
9968 hardcode_minus_L=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9973 freebsd* | dragonfly*)
9974 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_direct=yes
9977 hardcode_shlibpath_var=no
9978 ;;
9979
9980 hpux9*)
9981 if test "$GCC" = yes; then
9982 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'
9983 else
9984 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'
9985 fi
9986 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9987 hardcode_libdir_separator=:
9988 hardcode_direct=yes
9989
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9993 export_dynamic_flag_spec='${wl}-E'
9994 ;;
9995
9996 hpux10*)
9997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9998 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001 fi
10002 if test "$with_gnu_ld" = no; then
10003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10004 hardcode_libdir_flag_spec_ld='+b $libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_direct=yes
10007 hardcode_direct_absolute=yes
10008 export_dynamic_flag_spec='${wl}-E'
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10012 fi
10013 ;;
10014
10015 hpux11*)
10016 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10017 case $host_cpu in
10018 hppa*64*)
10019 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 ;;
10021 ia64*)
10022 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023 ;;
10024 *)
10025 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026 ;;
10027 esac
10028 else
10029 case $host_cpu in
10030 hppa*64*)
10031 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 ;;
10033 ia64*)
10034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035 ;;
10036 *)
10037 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 ;;
10039 esac
10040 fi
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044
10045 case $host_cpu in
10046 hppa*64*|ia64*)
10047 hardcode_direct=no
10048 hardcode_shlibpath_var=no
10049 ;;
10050 *)
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 export_dynamic_flag_spec='${wl}-E'
10054
10055 # hardcode_minus_L: Not really in the search PATH,
10056 # but as the default location of the library.
10057 hardcode_minus_L=yes
10058 ;;
10059 esac
10060 fi
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 if test "$GCC" = yes; then
10065 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'
10066 # Try to use the -exported_symbol ld option, if it does not
10067 # work, assume that -exports_file does not work either and
10068 # implicitly export all symbols.
10069 save_LDFLAGS="$LDFLAGS"
10070 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10071 if test x$gcc_no_link = xyes; then
10072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10074 { (exit 1); exit 1; }; }
10075 fi
10076 cat >conftest.$ac_ext <<_ACEOF
10077 int foo(void) {}
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 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'
10102
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 fi
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LDFLAGS="$save_LDFLAGS"
10111 else
10112 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'
10113 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'
10114 fi
10115 archive_cmds_need_lc='no'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator=:
10118 inherit_rpath=yes
10119 link_all_deplibs=yes
10120 ;;
10121
10122 netbsd*)
10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10125 else
10126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10127 fi
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_direct=yes
10130 hardcode_shlibpath_var=no
10131 ;;
10132
10133 newsos6)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10138 hardcode_shlibpath_var=no
10139 ;;
10140
10141 *nto* | *qnx*)
10142 ;;
10143
10144 openbsd*)
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_direct_absolute=yes
10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10153 else
10154 case $host_os in
10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-R$libdir'
10158 ;;
10159 *)
10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 ;;
10163 esac
10164 fi
10165 ;;
10166
10167 os2*)
10168 hardcode_libdir_flag_spec='-L$libdir'
10169 hardcode_minus_L=yes
10170 allow_undefined_flag=unsupported
10171 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'
10172 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10173 ;;
10174
10175 osf3*)
10176 if test "$GCC" = yes; then
10177 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10178 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'
10179 else
10180 allow_undefined_flag=' -expect_unresolved \*'
10181 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'
10182 fi
10183 archive_cmds_need_lc='no'
10184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185 hardcode_libdir_separator=:
10186 ;;
10187
10188 osf4* | osf5*) # as osf3* with the addition of -msym flag
10189 if test "$GCC" = yes; then
10190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10191 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'
10192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10193 else
10194 allow_undefined_flag=' -expect_unresolved \*'
10195 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'
10196 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~
10197 $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'
10198
10199 # Both c and cxx compiler support -rpath directly
10200 hardcode_libdir_flag_spec='-rpath $libdir'
10201 fi
10202 archive_cmds_need_lc='no'
10203 hardcode_libdir_separator=:
10204 ;;
10205
10206 solaris*)
10207 no_undefined_flag=' -z defs'
10208 if test "$GCC" = yes; then
10209 wlarc='${wl}'
10210 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10212 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10213 else
10214 case `$CC -V 2>&1` in
10215 *"Compilers 5.0"*)
10216 wlarc=''
10217 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10220 ;;
10221 *)
10222 wlarc='${wl}'
10223 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10225 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10226 ;;
10227 esac
10228 fi
10229 hardcode_libdir_flag_spec='-R$libdir'
10230 hardcode_shlibpath_var=no
10231 case $host_os in
10232 solaris2.[0-5] | solaris2.[0-5].*) ;;
10233 *)
10234 # The compiler driver will combine and reorder linker options,
10235 # but understands `-z linker_flag'. GCC discards it without `$wl',
10236 # but is careful enough not to reorder.
10237 # Supported since Solaris 2.6 (maybe 2.5.1?)
10238 if test "$GCC" = yes; then
10239 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10240 else
10241 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10242 fi
10243 ;;
10244 esac
10245 link_all_deplibs=yes
10246 ;;
10247
10248 sunos4*)
10249 if test "x$host_vendor" = xsequent; then
10250 # Use $CC to link under sequent, because it throws in some extra .o
10251 # files that make .init and .fini sections work.
10252 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10253 else
10254 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10255 fi
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_direct=yes
10258 hardcode_minus_L=yes
10259 hardcode_shlibpath_var=no
10260 ;;
10261
10262 sysv4)
10263 case $host_vendor in
10264 sni)
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_direct=yes # is this really true???
10267 ;;
10268 siemens)
10269 ## LD is ld it makes a PLAMLIB
10270 ## CC just makes a GrossModule.
10271 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10272 reload_cmds='$CC -r -o $output$reload_objs'
10273 hardcode_direct=no
10274 ;;
10275 motorola)
10276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10278 ;;
10279 esac
10280 runpath_var='LD_RUN_PATH'
10281 hardcode_shlibpath_var=no
10282 ;;
10283
10284 sysv4.3*)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_shlibpath_var=no
10287 export_dynamic_flag_spec='-Bexport'
10288 ;;
10289
10290 sysv4*MP*)
10291 if test -d /usr/nec; then
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_shlibpath_var=no
10294 runpath_var=LD_RUN_PATH
10295 hardcode_runpath_var=yes
10296 ld_shlibs=yes
10297 fi
10298 ;;
10299
10300 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10301 no_undefined_flag='${wl}-z,text'
10302 archive_cmds_need_lc=no
10303 hardcode_shlibpath_var=no
10304 runpath_var='LD_RUN_PATH'
10305
10306 if test "$GCC" = yes; then
10307 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 else
10310 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 fi
10313 ;;
10314
10315 sysv5* | sco3.2v5* | sco5v6*)
10316 # Note: We can NOT use -z defs as we might desire, because we do not
10317 # link with -lc, and that would cause any symbols used from libc to
10318 # always be unresolved, which means just about no library would
10319 # ever link correctly. If we're not using GNU ld we use -z text
10320 # though, which does catch some bad symbols but isn't as heavy-handed
10321 # as -z defs.
10322 no_undefined_flag='${wl}-z,text'
10323 allow_undefined_flag='${wl}-z,nodefs'
10324 archive_cmds_need_lc=no
10325 hardcode_shlibpath_var=no
10326 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10327 hardcode_libdir_separator=':'
10328 link_all_deplibs=yes
10329 export_dynamic_flag_spec='${wl}-Bexport'
10330 runpath_var='LD_RUN_PATH'
10331
10332 if test "$GCC" = yes; then
10333 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 else
10336 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 fi
10339 ;;
10340
10341 uts4*)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_shlibpath_var=no
10345 ;;
10346
10347 *)
10348 ld_shlibs=no
10349 ;;
10350 esac
10351
10352 if test x$host_vendor = xsni; then
10353 case $host in
10354 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10355 export_dynamic_flag_spec='${wl}-Blargedynsym'
10356 ;;
10357 esac
10358 fi
10359 fi
10360
10361 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10362 echo "${ECHO_T}$ld_shlibs" >&6
10363 test "$ld_shlibs" = no && can_build_shared=no
10364
10365 with_gnu_ld=$with_gnu_ld
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381 #
10382 # Do we need to explicitly link libc?
10383 #
10384 case "x$archive_cmds_need_lc" in
10385 x|xyes)
10386 # Assume -lc should be added
10387 archive_cmds_need_lc=yes
10388
10389 if test "$enable_shared" = yes && test "$GCC" = yes; then
10390 case $archive_cmds in
10391 *'~'*)
10392 # FIXME: we may have to deal with multi-command sequences.
10393 ;;
10394 '$CC '*)
10395 # Test whether the compiler implicitly links with -lc since on some
10396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10397 # to ld, don't add -lc before -lgcc.
10398 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10400 $RM conftest*
10401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10402
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } 2>conftest.err; then
10408 soname=conftest
10409 lib=conftest
10410 libobjs=conftest.$ac_objext
10411 deplibs=
10412 wl=$lt_prog_compiler_wl
10413 pic_flag=$lt_prog_compiler_pic
10414 compiler_flags=-v
10415 linker_flags=-v
10416 verstring=
10417 output_objdir=.
10418 libname=conftest
10419 lt_save_allow_undefined_flag=$allow_undefined_flag
10420 allow_undefined_flag=
10421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10422 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }
10426 then
10427 archive_cmds_need_lc=no
10428 else
10429 archive_cmds_need_lc=yes
10430 fi
10431 allow_undefined_flag=$lt_save_allow_undefined_flag
10432 else
10433 cat conftest.err 1>&5
10434 fi
10435 $RM conftest*
10436 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10437 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10438 ;;
10439 esac
10440 fi
10441 ;;
10442 esac
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10602 withGCC=$GCC
10603 if test "$withGCC" = yes; then
10604 case $host_os in
10605 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10606 *) lt_awk_arg="/^libraries:/" ;;
10607 esac
10608 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10609 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10610 # if the path contains ";" then we assume it to be the separator
10611 # otherwise default to the standard path separator (i.e. ":") - it is
10612 # assumed that no part of a normal pathname contains ";" but that should
10613 # okay in the real world where ";" in dirpaths is itself problematic.
10614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10615 else
10616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10617 fi
10618 # Ok, now we have the path, separated by spaces, we can step through it
10619 # and add multilib dir if necessary.
10620 lt_tmp_lt_search_path_spec=
10621 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10622 for lt_sys_path in $lt_search_path_spec; do
10623 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10624 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10625 else
10626 test -d "$lt_sys_path" && \
10627 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10628 fi
10629 done
10630 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10631 BEGIN {RS=" "; FS="/|\n";} {
10632 lt_foo="";
10633 lt_count=0;
10634 for (lt_i = NF; lt_i > 0; lt_i--) {
10635 if ($lt_i != "" && $lt_i != ".") {
10636 if ($lt_i == "..") {
10637 lt_count++;
10638 } else {
10639 if (lt_count == 0) {
10640 lt_foo="/" $lt_i lt_foo;
10641 } else {
10642 lt_count--;
10643 }
10644 }
10645 }
10646 }
10647 if (lt_foo != "") { lt_freq[lt_foo]++; }
10648 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10649 }'`
10650 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10651 else
10652 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10653 fi
10654 library_names_spec=
10655 libname_spec='lib$name'
10656 soname_spec=
10657 shrext_cmds=".so"
10658 postinstall_cmds=
10659 postuninstall_cmds=
10660 finish_cmds=
10661 finish_eval=
10662 shlibpath_var=
10663 shlibpath_overrides_runpath=unknown
10664 version_type=none
10665 dynamic_linker="$host_os ld.so"
10666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10667 need_lib_prefix=unknown
10668 hardcode_into_libs=no
10669
10670 # when you set need_version to no, make sure it does not cause -set_version
10671 # flags to be left without arguments
10672 need_version=unknown
10673
10674 case $host_os in
10675 aix3*)
10676 version_type=linux
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10678 shlibpath_var=LIBPATH
10679
10680 # AIX 3 has no versioning support, so we append a major version to the name.
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 ;;
10683
10684 aix[4-9]*)
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 hardcode_into_libs=yes
10689 if test "$host_cpu" = ia64; then
10690 # AIX 5 supports IA64
10691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 else
10694 # With GCC up to 2.95.x, collect2 would create an import file
10695 # for dependence libraries. The import file would start with
10696 # the line `#! .'. This would cause the generated library to
10697 # depend on `.', always an invalid library. This was fixed in
10698 # development snapshots of GCC prior to 3.0.
10699 case $host_os in
10700 aix4 | aix4.[01] | aix4.[01].*)
10701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10702 echo ' yes '
10703 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10704 :
10705 else
10706 can_build_shared=no
10707 fi
10708 ;;
10709 esac
10710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10711 # soname into executable. Probably we can add versioning support to
10712 # collect2, so additional links can be useful in future.
10713 if test "$aix_use_runtimelinking" = yes; then
10714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10715 # instead of lib<name>.a to let people know that these are not
10716 # typical AIX shared libraries.
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 else
10719 # We preserve .a as extension for shared libraries through AIX4.2
10720 # and later when we are not doing run time linking.
10721 library_names_spec='${libname}${release}.a $libname.a'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 fi
10724 shlibpath_var=LIBPATH
10725 fi
10726 ;;
10727
10728 amigaos*)
10729 if test "$host_cpu" = m68k; then
10730 library_names_spec='$libname.ixlibrary $libname.a'
10731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732 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'
10733 else
10734 dynamic_linker=no
10735 fi
10736 ;;
10737
10738 beos*)
10739 library_names_spec='${libname}${shared_ext}'
10740 dynamic_linker="$host_os ld.so"
10741 shlibpath_var=LIBRARY_PATH
10742 ;;
10743
10744 bsdi[45]*)
10745 version_type=linux
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10753 # the default ld.so.conf also contains /usr/contrib/lib and
10754 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10755 # libtool to hard-code these into programs
10756 ;;
10757
10758 cygwin* | mingw* | pw32*)
10759 version_type=windows
10760 shrext_cmds=".dll"
10761 need_version=no
10762 need_lib_prefix=no
10763
10764 case $withGCC,$host_os in
10765 yes,cygwin* | yes,mingw* | yes,pw32*)
10766 library_names_spec='$libname.dll.a'
10767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768 postinstall_cmds='base_file=`basename \${file}`~
10769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770 dldir=$destdir/`dirname \$dlpath`~
10771 test -d \$dldir || mkdir -p \$dldir~
10772 $install_prog $dir/$dlname \$dldir/$dlname~
10773 chmod a+x \$dldir/$dlname~
10774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10776 fi'
10777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778 dlpath=$dir/\$dldll~
10779 $RM \$dlpath'
10780 shlibpath_overrides_runpath=yes
10781
10782 case $host_os in
10783 cygwin*)
10784 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10787 ;;
10788 mingw*)
10789 # MinGW DLLs use traditional 'lib' prefix
10790 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10791 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10792 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10793 # It is most probably a Windows format PATH printed by
10794 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10795 # path with ; separators, and with drive letters. We can handle the
10796 # drive letters (cygwin fileutils understands them), so leave them,
10797 # especially as we might pass files found there to a mingw objdump,
10798 # which wouldn't understand a cygwinified path. Ahh.
10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10800 else
10801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10802 fi
10803 ;;
10804 pw32*)
10805 # pw32 DLLs use 'pw' prefix rather than 'lib'
10806 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10807 ;;
10808 esac
10809 ;;
10810
10811 *)
10812 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10813 ;;
10814 esac
10815 dynamic_linker='Win32 ld.exe'
10816 # FIXME: first we should search . and the directory the executable is in
10817 shlibpath_var=PATH
10818 ;;
10819
10820 darwin* | rhapsody*)
10821 dynamic_linker="$host_os dyld"
10822 version_type=darwin
10823 need_lib_prefix=no
10824 need_version=no
10825 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10826 soname_spec='${libname}${release}${major}$shared_ext'
10827 shlibpath_overrides_runpath=yes
10828 shlibpath_var=DYLD_LIBRARY_PATH
10829 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10830
10831 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10833 ;;
10834
10835 dgux*)
10836 version_type=linux
10837 need_lib_prefix=no
10838 need_version=no
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 ;;
10843
10844 freebsd1*)
10845 dynamic_linker=no
10846 ;;
10847
10848 freebsd* | dragonfly*)
10849 # DragonFly does not have aout. When/if they implement a new
10850 # versioning mechanism, adjust this.
10851 if test -x /usr/bin/objformat; then
10852 objformat=`/usr/bin/objformat`
10853 else
10854 case $host_os in
10855 freebsd[123]*) objformat=aout ;;
10856 *) objformat=elf ;;
10857 esac
10858 fi
10859 version_type=freebsd-$objformat
10860 case $version_type in
10861 freebsd-elf*)
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10863 need_version=no
10864 need_lib_prefix=no
10865 ;;
10866 freebsd-*)
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10868 need_version=yes
10869 ;;
10870 esac
10871 shlibpath_var=LD_LIBRARY_PATH
10872 case $host_os in
10873 freebsd2*)
10874 shlibpath_overrides_runpath=yes
10875 ;;
10876 freebsd3.[01]* | freebsdelf3.[01]*)
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10879 ;;
10880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10882 shlibpath_overrides_runpath=no
10883 hardcode_into_libs=yes
10884 ;;
10885 *) # from 4.6 on, and DragonFly
10886 shlibpath_overrides_runpath=yes
10887 hardcode_into_libs=yes
10888 ;;
10889 esac
10890 ;;
10891
10892 gnu*)
10893 version_type=linux
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 hardcode_into_libs=yes
10900 ;;
10901
10902 hpux9* | hpux10* | hpux11*)
10903 # Give a soname corresponding to the major version so that dld.sl refuses to
10904 # link against other versions.
10905 version_type=sunos
10906 need_lib_prefix=no
10907 need_version=no
10908 case $host_cpu in
10909 ia64*)
10910 shrext_cmds='.so'
10911 hardcode_into_libs=yes
10912 dynamic_linker="$host_os dld.so"
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 if test "X$HPUX_IA64_MODE" = X32; then
10918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10919 else
10920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10921 fi
10922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10923 ;;
10924 hppa*64*)
10925 shrext_cmds='.sl'
10926 hardcode_into_libs=yes
10927 dynamic_linker="$host_os dld.sl"
10928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10934 ;;
10935 *)
10936 shrext_cmds='.sl'
10937 dynamic_linker="$host_os dld.sl"
10938 shlibpath_var=SHLIB_PATH
10939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 ;;
10943 esac
10944 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10945 postinstall_cmds='chmod 555 $lib'
10946 ;;
10947
10948 interix[3-9]*)
10949 version_type=linux
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=no
10957 hardcode_into_libs=yes
10958 ;;
10959
10960 irix5* | irix6* | nonstopux*)
10961 case $host_os in
10962 nonstopux*) version_type=nonstopux ;;
10963 *)
10964 if test "$lt_cv_prog_gnu_ld" = yes; then
10965 version_type=linux
10966 else
10967 version_type=irix
10968 fi ;;
10969 esac
10970 need_lib_prefix=no
10971 need_version=no
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10974 case $host_os in
10975 irix5* | nonstopux*)
10976 libsuff= shlibsuff=
10977 ;;
10978 *)
10979 case $LD in # libtool.m4 will add one of these switches to LD
10980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10981 libsuff= shlibsuff= libmagic=32-bit;;
10982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10983 libsuff=32 shlibsuff=N32 libmagic=N32;;
10984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10986 *) libsuff= shlibsuff= libmagic=never-match;;
10987 esac
10988 ;;
10989 esac
10990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10991 shlibpath_overrides_runpath=no
10992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10994 hardcode_into_libs=yes
10995 ;;
10996
10997 # No shared lib support for Linux oldld, aout, or coff.
10998 linux*oldld* | linux*aout* | linux*coff*)
10999 dynamic_linker=no
11000 ;;
11001
11002 # This must be Linux ELF.
11003 linux* | k*bsd*-gnu)
11004 version_type=linux
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
11012 # Some binutils ld are patched to set DT_RUNPATH
11013 save_LDFLAGS=$LDFLAGS
11014 save_libdir=$libdir
11015 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11016 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11017 if test x$gcc_no_link = xyes; then
11018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11020 { (exit 1); exit 1; }; }
11021 fi
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028
11029 int
11030 main ()
11031 {
11032
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>conftest.er1
11040 ac_status=$?
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
11046 { ac_try='test -z "$ac_c_werror_flag"
11047 || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11060 shlibpath_overrides_runpath=yes
11061 fi
11062
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 fi
11068 rm -f conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LDFLAGS=$save_LDFLAGS
11071 libdir=$save_libdir
11072
11073 # This implies no fast_install, which is unacceptable.
11074 # Some rework will be needed to allow for fast_install
11075 # before this can be enabled.
11076 hardcode_into_libs=yes
11077
11078 # Append ld.so.conf contents to the search path
11079 if test -f /etc/ld.so.conf; then
11080 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' ' '`
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11082 fi
11083
11084 # We used to test for /lib/ld.so.1 and disable shared libraries on
11085 # powerpc, because MkLinux only supported shared libraries with the
11086 # GNU dynamic linker. Since this was broken with cross compilers,
11087 # most powerpc-linux boxes support dynamic linking these days and
11088 # people can always --disable-shared, the test was removed, and we
11089 # assume the GNU/Linux dynamic linker is in use.
11090 dynamic_linker='GNU/Linux ld.so'
11091 ;;
11092
11093 netbsd*)
11094 version_type=sunos
11095 need_lib_prefix=no
11096 need_version=no
11097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100 dynamic_linker='NetBSD (a.out) ld.so'
11101 else
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 dynamic_linker='NetBSD ld.elf_so'
11105 fi
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11109 ;;
11110
11111 newsos6)
11112 version_type=linux
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 ;;
11117
11118 *nto* | *qnx*)
11119 version_type=qnx
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11127 dynamic_linker='ldqnx.so'
11128 ;;
11129
11130 openbsd*)
11131 version_type=sunos
11132 sys_lib_dlsearch_path_spec="/usr/lib"
11133 need_lib_prefix=no
11134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11135 case $host_os in
11136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11137 *) need_version=no ;;
11138 esac
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11143 case $host_os in
11144 openbsd2.[89] | openbsd2.[89].*)
11145 shlibpath_overrides_runpath=no
11146 ;;
11147 *)
11148 shlibpath_overrides_runpath=yes
11149 ;;
11150 esac
11151 else
11152 shlibpath_overrides_runpath=yes
11153 fi
11154 ;;
11155
11156 os2*)
11157 libname_spec='$name'
11158 shrext_cmds=".dll"
11159 need_lib_prefix=no
11160 library_names_spec='$libname${shared_ext} $libname.a'
11161 dynamic_linker='OS/2 ld.exe'
11162 shlibpath_var=LIBPATH
11163 ;;
11164
11165 osf3* | osf4* | osf5*)
11166 version_type=osf
11167 need_lib_prefix=no
11168 need_version=no
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11174 ;;
11175
11176 rdos*)
11177 dynamic_linker=no
11178 ;;
11179
11180 solaris*)
11181 version_type=linux
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 # ldd complains unless libraries are executable
11190 postinstall_cmds='chmod +x $lib'
11191 ;;
11192
11193 sunos4*)
11194 version_type=sunos
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 if test "$with_gnu_ld" = yes; then
11200 need_lib_prefix=no
11201 fi
11202 need_version=yes
11203 ;;
11204
11205 sysv4 | sysv4.3*)
11206 version_type=linux
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_vendor in
11211 sni)
11212 shlibpath_overrides_runpath=no
11213 need_lib_prefix=no
11214 runpath_var=LD_RUN_PATH
11215 ;;
11216 siemens)
11217 need_lib_prefix=no
11218 ;;
11219 motorola)
11220 need_lib_prefix=no
11221 need_version=no
11222 shlibpath_overrides_runpath=no
11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224 ;;
11225 esac
11226 ;;
11227
11228 sysv4*MP*)
11229 if test -d /usr/nec ;then
11230 version_type=linux
11231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11232 soname_spec='$libname${shared_ext}.$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 fi
11235 ;;
11236
11237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 version_type=freebsd-elf
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 if test "$with_gnu_ld" = yes; then
11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248 else
11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 case $host_os in
11251 sco3.2v5*)
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253 ;;
11254 esac
11255 fi
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11257 ;;
11258
11259 tpf*)
11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 version_type=linux
11262 need_lib_prefix=no
11263 need_version=no
11264 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11268 ;;
11269
11270 uts4*)
11271 version_type=linux
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 ;;
11276
11277 *)
11278 dynamic_linker=no
11279 ;;
11280 esac
11281 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11282 echo "${ECHO_T}$dynamic_linker" >&6
11283 test "$dynamic_linker" = no && can_build_shared=no
11284
11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 if test "$GCC" = yes; then
11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11378 hardcode_action=
11379 if test -n "$hardcode_libdir_flag_spec" ||
11380 test -n "$runpath_var" ||
11381 test "X$hardcode_automatic" = "Xyes" ; then
11382
11383 # We can hardcode non-existent directories.
11384 if test "$hardcode_direct" != no &&
11385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11386 # have to relink, otherwise we might link with an installed library
11387 # when we should be linking with a yet-to-be-installed one
11388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11389 test "$hardcode_minus_L" != no; then
11390 # Linking always hardcodes the temporary library directory.
11391 hardcode_action=relink
11392 else
11393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11394 hardcode_action=immediate
11395 fi
11396 else
11397 # We cannot hardcode anything, or else we can only hardcode existing
11398 # directories.
11399 hardcode_action=unsupported
11400 fi
11401 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11402 echo "${ECHO_T}$hardcode_action" >&6
11403
11404 if test "$hardcode_action" = relink ||
11405 test "$inherit_rpath" = yes; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408 elif test "$shlibpath_overrides_runpath" = yes ||
11409 test "$enable_shared" = no; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11412 fi
11413
11414
11415
11416
11417
11418
11419 if test "x$enable_dlopen" != xyes; then
11420 enable_dlopen=unknown
11421 enable_dlopen_self=unknown
11422 enable_dlopen_self_static=unknown
11423 else
11424 lt_cv_dlopen=no
11425 lt_cv_dlopen_libs=
11426
11427 case $host_os in
11428 beos*)
11429 lt_cv_dlopen="load_add_on"
11430 lt_cv_dlopen_libs=
11431 lt_cv_dlopen_self=yes
11432 ;;
11433
11434 mingw* | pw32*)
11435 lt_cv_dlopen="LoadLibrary"
11436 lt_cv_dlopen_libs=
11437 ;;
11438
11439 cygwin*)
11440 lt_cv_dlopen="dlopen"
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 darwin*)
11445 # if libdl is installed we need to link against it
11446 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldl $LIBS"
11453 if test x$gcc_no_link = xyes; then
11454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11456 { (exit 1); exit 1; }; }
11457 fi
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464
11465 /* Override any gcc2 internal prototype to avoid an error. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 dlopen ();
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11482 (eval $ac_link) 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag"
11490 || test ! -s conftest.err'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest$ac_exeext'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 ac_cv_lib_dl_dlopen=yes
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 ac_cv_lib_dl_dlopen=no
11508 fi
11509 rm -f conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11515 if test $ac_cv_lib_dl_dlopen = yes; then
11516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11517 else
11518
11519 lt_cv_dlopen="dyld"
11520 lt_cv_dlopen_libs=
11521 lt_cv_dlopen_self=yes
11522
11523 fi
11524
11525 ;;
11526
11527 *)
11528 echo "$as_me:$LINENO: checking for shl_load" >&5
11529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11530 if test "${ac_cv_func_shl_load+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 if test x$gcc_no_link = xyes; then
11534 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11536 { (exit 1); exit 1; }; }
11537 fi
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11546 #define shl_load innocuous_shl_load
11547
11548 /* System header to define __stub macros and hopefully few prototypes,
11549 which can conflict with char shl_load (); below.
11550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551 <limits.h> exists even on freestanding compilers. */
11552
11553 #ifdef __STDC__
11554 # include <limits.h>
11555 #else
11556 # include <assert.h>
11557 #endif
11558
11559 #undef shl_load
11560
11561 /* Override any gcc2 internal prototype to avoid an error. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 {
11565 #endif
11566 /* We use char because int might match the return type of a gcc2
11567 builtin and then its argument prototype would still apply. */
11568 char shl_load ();
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11573 choke me
11574 #else
11575 char (*f) () = shl_load;
11576 #endif
11577 #ifdef __cplusplus
11578 }
11579 #endif
11580
11581 int
11582 main ()
11583 {
11584 return f != shl_load;
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591 (eval $ac_link) 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag"
11599 || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_cv_func_shl_load=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_cv_func_shl_load=no
11617 fi
11618 rm -f conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 fi
11621 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11622 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11623 if test $ac_cv_func_shl_load = yes; then
11624 lt_cv_dlopen="shl_load"
11625 else
11626 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11627 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-ldld $LIBS"
11633 if test x$gcc_no_link = xyes; then
11634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11636 { (exit 1); exit 1; }; }
11637 fi
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644
11645 /* Override any gcc2 internal prototype to avoid an error. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char shl_load ();
11652 int
11653 main ()
11654 {
11655 shl_load ();
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest$ac_exeext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_lib_dld_shl_load=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_cv_lib_dld_shl_load=no
11688 fi
11689 rm -f conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11692 fi
11693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11695 if test $ac_cv_lib_dld_shl_load = yes; then
11696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11697 else
11698 echo "$as_me:$LINENO: checking for dlopen" >&5
11699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11700 if test "${ac_cv_func_dlopen+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 if test x$gcc_no_link = xyes; then
11704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11706 { (exit 1); exit 1; }; }
11707 fi
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11716 #define dlopen innocuous_dlopen
11717
11718 /* System header to define __stub macros and hopefully few prototypes,
11719 which can conflict with char dlopen (); below.
11720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11721 <limits.h> exists even on freestanding compilers. */
11722
11723 #ifdef __STDC__
11724 # include <limits.h>
11725 #else
11726 # include <assert.h>
11727 #endif
11728
11729 #undef dlopen
11730
11731 /* Override any gcc2 internal prototype to avoid an error. */
11732 #ifdef __cplusplus
11733 extern "C"
11734 {
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char dlopen ();
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11743 choke me
11744 #else
11745 char (*f) () = dlopen;
11746 #endif
11747 #ifdef __cplusplus
11748 }
11749 #endif
11750
11751 int
11752 main ()
11753 {
11754 return f != dlopen;
11755 ;
11756 return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_func_dlopen=yes
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_func_dlopen=no
11787 fi
11788 rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 fi
11791 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11792 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11793 if test $ac_cv_func_dlopen = yes; then
11794 lt_cv_dlopen="dlopen"
11795 else
11796 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11797 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-ldl $LIBS"
11803 if test x$gcc_no_link = xyes; then
11804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11806 { (exit 1); exit 1; }; }
11807 fi
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814
11815 /* Override any gcc2 internal prototype to avoid an error. */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 /* We use char because int might match the return type of a gcc2
11820 builtin and then its argument prototype would still apply. */
11821 char dlopen ();
11822 int
11823 main ()
11824 {
11825 dlopen ();
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11832 (eval $ac_link) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag"
11840 || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_lib_dl_dlopen=yes
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_cv_lib_dl_dlopen=no
11858 fi
11859 rm -f conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11861 LIBS=$ac_check_lib_save_LIBS
11862 fi
11863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11865 if test $ac_cv_lib_dl_dlopen = yes; then
11866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11867 else
11868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lsvld $LIBS"
11875 if test x$gcc_no_link = xyes; then
11876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11878 { (exit 1); exit 1; }; }
11879 fi
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886
11887 /* Override any gcc2 internal prototype to avoid an error. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11893 char dlopen ();
11894 int
11895 main ()
11896 {
11897 dlopen ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_svld_dlopen=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_cv_lib_svld_dlopen=no
11930 fi
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11936 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11937 if test $ac_cv_lib_svld_dlopen = yes; then
11938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11939 else
11940 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11941 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11942 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-ldld $LIBS"
11947 if test x$gcc_no_link = xyes; then
11948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11950 { (exit 1); exit 1; }; }
11951 fi
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958
11959 /* Override any gcc2 internal prototype to avoid an error. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 /* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11965 char dld_link ();
11966 int
11967 main ()
11968 {
11969 dld_link ();
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_lib_dld_dld_link=yes
11997 else
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_lib_dld_dld_link=no
12002 fi
12003 rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12008 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12009 if test $ac_cv_lib_dld_dld_link = yes; then
12010 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12011 fi
12012
12013
12014 fi
12015
12016
12017 fi
12018
12019
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028 ;;
12029 esac
12030
12031 if test "x$lt_cv_dlopen" != xno; then
12032 enable_dlopen=yes
12033 else
12034 enable_dlopen=no
12035 fi
12036
12037 case $lt_cv_dlopen in
12038 dlopen)
12039 save_CPPFLAGS="$CPPFLAGS"
12040 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12041
12042 save_LDFLAGS="$LDFLAGS"
12043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12044
12045 save_LIBS="$LIBS"
12046 LIBS="$lt_cv_dlopen_libs $LIBS"
12047
12048 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12049 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12050 if test "${lt_cv_dlopen_self+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053 if test "$cross_compiling" = yes; then :
12054 lt_cv_dlopen_self=cross
12055 else
12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057 lt_status=$lt_dlunknown
12058 cat > conftest.$ac_ext <<_LT_EOF
12059 #line 12059 "configure"
12060 #include "confdefs.h"
12061
12062 #if HAVE_DLFCN_H
12063 #include <dlfcn.h>
12064 #endif
12065
12066 #include <stdio.h>
12067
12068 #ifdef RTLD_GLOBAL
12069 # define LT_DLGLOBAL RTLD_GLOBAL
12070 #else
12071 # ifdef DL_GLOBAL
12072 # define LT_DLGLOBAL DL_GLOBAL
12073 # else
12074 # define LT_DLGLOBAL 0
12075 # endif
12076 #endif
12077
12078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079 find out it does not work in some platform. */
12080 #ifndef LT_DLLAZY_OR_NOW
12081 # ifdef RTLD_LAZY
12082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # else
12084 # ifdef DL_LAZY
12085 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # else
12087 # ifdef RTLD_NOW
12088 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # else
12090 # ifdef DL_NOW
12091 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # else
12093 # define LT_DLLAZY_OR_NOW 0
12094 # endif
12095 # endif
12096 # endif
12097 # endif
12098 #endif
12099
12100 #ifdef __cplusplus
12101 extern "C" void exit (int);
12102 #endif
12103
12104 void fnord() { int i=42;}
12105 int main ()
12106 {
12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108 int status = $lt_dlunknown;
12109
12110 if (self)
12111 {
12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12113 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12114 /* dlclose (self); */
12115 }
12116 else
12117 puts (dlerror ());
12118
12119 exit (status);
12120 }
12121 _LT_EOF
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12127 (./conftest; exit; ) >&5 2>/dev/null
12128 lt_status=$?
12129 case x$lt_status in
12130 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12131 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12132 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12133 esac
12134 else :
12135 # compilation failed
12136 lt_cv_dlopen_self=no
12137 fi
12138 fi
12139 rm -fr conftest*
12140
12141
12142 fi
12143 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12144 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12145
12146 if test "x$lt_cv_dlopen_self" = xyes; then
12147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12148 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12149 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12150 if test "${lt_cv_dlopen_self_static+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 if test "$cross_compiling" = yes; then :
12154 lt_cv_dlopen_self_static=cross
12155 else
12156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12157 lt_status=$lt_dlunknown
12158 cat > conftest.$ac_ext <<_LT_EOF
12159 #line 12159 "configure"
12160 #include "confdefs.h"
12161
12162 #if HAVE_DLFCN_H
12163 #include <dlfcn.h>
12164 #endif
12165
12166 #include <stdio.h>
12167
12168 #ifdef RTLD_GLOBAL
12169 # define LT_DLGLOBAL RTLD_GLOBAL
12170 #else
12171 # ifdef DL_GLOBAL
12172 # define LT_DLGLOBAL DL_GLOBAL
12173 # else
12174 # define LT_DLGLOBAL 0
12175 # endif
12176 #endif
12177
12178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12179 find out it does not work in some platform. */
12180 #ifndef LT_DLLAZY_OR_NOW
12181 # ifdef RTLD_LAZY
12182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12183 # else
12184 # ifdef DL_LAZY
12185 # define LT_DLLAZY_OR_NOW DL_LAZY
12186 # else
12187 # ifdef RTLD_NOW
12188 # define LT_DLLAZY_OR_NOW RTLD_NOW
12189 # else
12190 # ifdef DL_NOW
12191 # define LT_DLLAZY_OR_NOW DL_NOW
12192 # else
12193 # define LT_DLLAZY_OR_NOW 0
12194 # endif
12195 # endif
12196 # endif
12197 # endif
12198 #endif
12199
12200 #ifdef __cplusplus
12201 extern "C" void exit (int);
12202 #endif
12203
12204 void fnord() { int i=42;}
12205 int main ()
12206 {
12207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12208 int status = $lt_dlunknown;
12209
12210 if (self)
12211 {
12212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12213 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12214 /* dlclose (self); */
12215 }
12216 else
12217 puts (dlerror ());
12218
12219 exit (status);
12220 }
12221 _LT_EOF
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12227 (./conftest; exit; ) >&5 2>/dev/null
12228 lt_status=$?
12229 case x$lt_status in
12230 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12231 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12232 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12233 esac
12234 else :
12235 # compilation failed
12236 lt_cv_dlopen_self_static=no
12237 fi
12238 fi
12239 rm -fr conftest*
12240
12241
12242 fi
12243 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12244 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12245 fi
12246
12247 CPPFLAGS="$save_CPPFLAGS"
12248 LDFLAGS="$save_LDFLAGS"
12249 LIBS="$save_LIBS"
12250 ;;
12251 esac
12252
12253 case $lt_cv_dlopen_self in
12254 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12255 *) enable_dlopen_self=unknown ;;
12256 esac
12257
12258 case $lt_cv_dlopen_self_static in
12259 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12260 *) enable_dlopen_self_static=unknown ;;
12261 esac
12262 fi
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280 striplib=
12281 old_striplib=
12282 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12283 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12284 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12286 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12287 echo "$as_me:$LINENO: result: yes" >&5
12288 echo "${ECHO_T}yes" >&6
12289 else
12290 # FIXME - insert some real tests, host_os isn't really good enough
12291 case $host_os in
12292 darwin*)
12293 if test -n "$STRIP" ; then
12294 striplib="$STRIP -x"
12295 old_striplib="$STRIP -S"
12296 echo "$as_me:$LINENO: result: yes" >&5
12297 echo "${ECHO_T}yes" >&6
12298 else
12299 echo "$as_me:$LINENO: result: no" >&5
12300 echo "${ECHO_T}no" >&6
12301 fi
12302 ;;
12303 *)
12304 echo "$as_me:$LINENO: result: no" >&5
12305 echo "${ECHO_T}no" >&6
12306 ;;
12307 esac
12308 fi
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321 # Report which library types will actually be built
12322 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12323 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12324 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12325 echo "${ECHO_T}$can_build_shared" >&6
12326
12327 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12328 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12329 test "$can_build_shared" = "no" && enable_shared=no
12330
12331 # On AIX, shared libraries and static libraries use the same namespace, and
12332 # are all built from PIC.
12333 case $host_os in
12334 aix3*)
12335 test "$enable_shared" = yes && enable_static=no
12336 if test -n "$RANLIB"; then
12337 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12338 postinstall_cmds='$RANLIB $lib'
12339 fi
12340 ;;
12341
12342 aix[4-9]*)
12343 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12344 test "$enable_shared" = yes && enable_static=no
12345 fi
12346 ;;
12347 esac
12348 echo "$as_me:$LINENO: result: $enable_shared" >&5
12349 echo "${ECHO_T}$enable_shared" >&6
12350
12351 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12352 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12353 # Make sure either enable_shared or enable_static is yes.
12354 test "$enable_shared" = yes || enable_static=yes
12355 echo "$as_me:$LINENO: result: $enable_static" >&5
12356 echo "${ECHO_T}$enable_static" >&6
12357
12358
12359
12360
12361 fi
12362 ac_ext=c
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12367
12368 CC="$lt_save_CC"
12369
12370
12371 ac_ext=cc
12372 ac_cpp='$CXXCPP $CPPFLAGS'
12373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12376
12377 archive_cmds_need_lc_CXX=no
12378 allow_undefined_flag_CXX=
12379 always_export_symbols_CXX=no
12380 archive_expsym_cmds_CXX=
12381 compiler_needs_object_CXX=no
12382 export_dynamic_flag_spec_CXX=
12383 hardcode_direct_CXX=no
12384 hardcode_direct_absolute_CXX=no
12385 hardcode_libdir_flag_spec_CXX=
12386 hardcode_libdir_flag_spec_ld_CXX=
12387 hardcode_libdir_separator_CXX=
12388 hardcode_minus_L_CXX=no
12389 hardcode_shlibpath_var_CXX=unsupported
12390 hardcode_automatic_CXX=no
12391 inherit_rpath_CXX=no
12392 module_cmds_CXX=
12393 module_expsym_cmds_CXX=
12394 link_all_deplibs_CXX=unknown
12395 old_archive_cmds_CXX=$old_archive_cmds
12396 no_undefined_flag_CXX=
12397 whole_archive_flag_spec_CXX=
12398 enable_shared_with_static_runtimes_CXX=no
12399
12400 # Source file extension for C++ test sources.
12401 ac_ext=cpp
12402
12403 # Object file extension for compiled C++ test sources.
12404 objext=o
12405 objext_CXX=$objext
12406
12407 # No sense in running all these tests if we already determined that
12408 # the CXX compiler isn't working. Some variables (like enable_shared)
12409 # are currently assumed to apply to all compilers on this platform,
12410 # and will be corrupted by setting them based on a non-working compiler.
12411 if test "$_lt_caught_CXX_error" != yes; then
12412 # Code to be used in simple compile tests
12413 lt_simple_compile_test_code="int some_variable = 0;"
12414
12415 # Code to be used in simple link tests
12416 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12417
12418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12419
12420
12421
12422
12423
12424
12425 # If no C compiler was specified, use CC.
12426 LTCC=${LTCC-"$CC"}
12427
12428 # If no C compiler flags were specified, use CFLAGS.
12429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12430
12431 # Allow CC to be a program name with arguments.
12432 compiler=$CC
12433
12434
12435 # save warnings/boilerplate of simple test code
12436 ac_outfile=conftest.$ac_objext
12437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12439 _lt_compiler_boilerplate=`cat conftest.err`
12440 $RM conftest*
12441
12442 ac_outfile=conftest.$ac_objext
12443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12445 _lt_linker_boilerplate=`cat conftest.err`
12446 $RM conftest*
12447
12448
12449 # Allow CC to be a program name with arguments.
12450 lt_save_CC=$CC
12451 lt_save_LD=$LD
12452 lt_save_GCC=$GCC
12453 GCC=$GXX
12454 lt_save_with_gnu_ld=$with_gnu_ld
12455 lt_save_path_LD=$lt_cv_path_LD
12456 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12457 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12458 else
12459 $as_unset lt_cv_prog_gnu_ld
12460 fi
12461 if test -n "${lt_cv_path_LDCXX+set}"; then
12462 lt_cv_path_LD=$lt_cv_path_LDCXX
12463 else
12464 $as_unset lt_cv_path_LD
12465 fi
12466 test -z "${LDCXX+set}" || LD=$LDCXX
12467 CC=${CXX-"c++"}
12468 compiler=$CC
12469 compiler_CXX=$CC
12470 for cc_temp in $compiler""; do
12471 case $cc_temp in
12472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12474 \-*) ;;
12475 *) break;;
12476 esac
12477 done
12478 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12479
12480
12481 if test -n "$compiler"; then
12482 # We don't want -fno-exception when compiling C++ code, so set the
12483 # no_builtin_flag separately
12484 if test "$GXX" = yes; then
12485 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12486 else
12487 lt_prog_compiler_no_builtin_flag_CXX=
12488 fi
12489
12490 if test "$GXX" = yes; then
12491 # Set up default GNU C++ configuration
12492
12493
12494
12495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12496 if test "${with_gnu_ld+set}" = set; then
12497 withval="$with_gnu_ld"
12498 test "$withval" = no || with_gnu_ld=yes
12499 else
12500 with_gnu_ld=no
12501 fi;
12502 ac_prog=ld
12503 if test "$GCC" = yes; then
12504 # Check if gcc -print-prog-name=ld gives a path.
12505 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12506 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12507 case $host in
12508 *-*-mingw*)
12509 # gcc leaves a trailing carriage return which upsets mingw
12510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12511 *)
12512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12513 esac
12514 case $ac_prog in
12515 # Accept absolute paths.
12516 [\\/]* | ?:[\\/]*)
12517 re_direlt='/[^/][^/]*/\.\./'
12518 # Canonicalize the pathname of ld
12519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12522 done
12523 test -z "$LD" && LD="$ac_prog"
12524 ;;
12525 "")
12526 # If it fails, then pretend we aren't using GCC.
12527 ac_prog=ld
12528 ;;
12529 *)
12530 # If it is relative, then search for the first ld in PATH.
12531 with_gnu_ld=unknown
12532 ;;
12533 esac
12534 elif test "$with_gnu_ld" = yes; then
12535 echo "$as_me:$LINENO: checking for GNU ld" >&5
12536 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12537 else
12538 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12539 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12540 fi
12541 if test "${lt_cv_path_LD+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544 if test -z "$LD"; then
12545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12546 for ac_dir in $PATH; do
12547 IFS="$lt_save_ifs"
12548 test -z "$ac_dir" && ac_dir=.
12549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12550 lt_cv_path_LD="$ac_dir/$ac_prog"
12551 # Check to see if the program is GNU ld. I'd rather use --version,
12552 # but apparently some variants of GNU ld only accept -v.
12553 # Break only if it was the GNU/non-GNU ld that we prefer.
12554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12555 *GNU* | *'with BFD'*)
12556 test "$with_gnu_ld" != no && break
12557 ;;
12558 *)
12559 test "$with_gnu_ld" != yes && break
12560 ;;
12561 esac
12562 fi
12563 done
12564 IFS="$lt_save_ifs"
12565 else
12566 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12567 fi
12568 fi
12569
12570 LD="$lt_cv_path_LD"
12571 if test -n "$LD"; then
12572 echo "$as_me:$LINENO: result: $LD" >&5
12573 echo "${ECHO_T}$LD" >&6
12574 else
12575 echo "$as_me:$LINENO: result: no" >&5
12576 echo "${ECHO_T}no" >&6
12577 fi
12578 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12579 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12580 { (exit 1); exit 1; }; }
12581 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12582 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12583 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12587 case `$LD -v 2>&1 </dev/null` in
12588 *GNU* | *'with BFD'*)
12589 lt_cv_prog_gnu_ld=yes
12590 ;;
12591 *)
12592 lt_cv_prog_gnu_ld=no
12593 ;;
12594 esac
12595 fi
12596 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12597 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12598 with_gnu_ld=$lt_cv_prog_gnu_ld
12599
12600
12601
12602
12603
12604
12605
12606 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12607 # archiving commands below assume that GNU ld is being used.
12608 if test "$with_gnu_ld" = yes; then
12609 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610 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'
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614
12615 # If archive_cmds runs LD, not CC, wlarc should be empty
12616 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12617 # investigate it a little bit more. (MM)
12618 wlarc='${wl}'
12619
12620 # ancient GNU ld didn't support --whole-archive et. al.
12621 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12622 $GREP 'no-whole-archive' > /dev/null; then
12623 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12624 else
12625 whole_archive_flag_spec_CXX=
12626 fi
12627 else
12628 with_gnu_ld=no
12629 wlarc=
12630
12631 # A generic and very simple default shared library creation
12632 # command for GNU C++ for the case where it uses the native
12633 # linker, instead of GNU ld. If possible, this setting should
12634 # overridden to take advantage of the native linker features on
12635 # the platform it is being used on.
12636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12637 fi
12638
12639 # Commands to make compiler produce verbose output that lists
12640 # what "hidden" libraries, object files and flags are used when
12641 # linking a shared library.
12642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12643
12644 else
12645 GXX=no
12646 with_gnu_ld=no
12647 wlarc=
12648 fi
12649
12650 # PORTME: fill in a description of your system's C++ link characteristics
12651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12653 ld_shlibs_CXX=yes
12654 case $host_os in
12655 aix3*)
12656 # FIXME: insert proper C++ library support
12657 ld_shlibs_CXX=no
12658 ;;
12659 aix[4-9]*)
12660 if test "$host_cpu" = ia64; then
12661 # On IA64, the linker does run time linking by default, so we don't
12662 # have to do anything special.
12663 aix_use_runtimelinking=no
12664 exp_sym_flag='-Bexport'
12665 no_entry_flag=""
12666 else
12667 aix_use_runtimelinking=no
12668
12669 # Test if we are trying to use run time linking or normal
12670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12671 # need to do runtime linking.
12672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12673 for ld_flag in $LDFLAGS; do
12674 case $ld_flag in
12675 *-brtl*)
12676 aix_use_runtimelinking=yes
12677 break
12678 ;;
12679 esac
12680 done
12681 ;;
12682 esac
12683
12684 exp_sym_flag='-bexport'
12685 no_entry_flag='-bnoentry'
12686 fi
12687
12688 # When large executables or shared objects are built, AIX ld can
12689 # have problems creating the table of contents. If linking a library
12690 # or program results in "error TOC overflow" add -mminimal-toc to
12691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12693
12694 archive_cmds_CXX=''
12695 hardcode_direct_CXX=yes
12696 hardcode_direct_absolute_CXX=yes
12697 hardcode_libdir_separator_CXX=':'
12698 link_all_deplibs_CXX=yes
12699 file_list_spec_CXX='${wl}-f,'
12700
12701 if test "$GXX" = yes; then
12702 case $host_os in aix4.[012]|aix4.[012].*)
12703 # We only want to do this on AIX 4.2 and lower, the check
12704 # below for broken collect2 doesn't work under 4.3+
12705 collect2name=`${CC} -print-prog-name=collect2`
12706 if test -f "$collect2name" &&
12707 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12708 then
12709 # We have reworked collect2
12710 :
12711 else
12712 # We have old collect2
12713 hardcode_direct_CXX=unsupported
12714 # It fails to find uninstalled libraries when the uninstalled
12715 # path is not listed in the libpath. Setting hardcode_minus_L
12716 # to unsupported forces relinking
12717 hardcode_minus_L_CXX=yes
12718 hardcode_libdir_flag_spec_CXX='-L$libdir'
12719 hardcode_libdir_separator_CXX=
12720 fi
12721 esac
12722 shared_flag='-shared'
12723 if test "$aix_use_runtimelinking" = yes; then
12724 shared_flag="$shared_flag "'${wl}-G'
12725 fi
12726 else
12727 # not using gcc
12728 if test "$host_cpu" = ia64; then
12729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12730 # chokes on -Wl,-G. The following line is correct:
12731 shared_flag='-G'
12732 else
12733 if test "$aix_use_runtimelinking" = yes; then
12734 shared_flag='${wl}-G'
12735 else
12736 shared_flag='${wl}-bM:SRE'
12737 fi
12738 fi
12739 fi
12740
12741 # It seems that -bexpall does not export symbols beginning with
12742 # underscore (_), so it is better to generate a list of symbols to
12743 # export.
12744 always_export_symbols_CXX=yes
12745 if test "$aix_use_runtimelinking" = yes; then
12746 # Warning - without using the other runtime loading flags (-brtl),
12747 # -berok will link without error, but may produce a broken library.
12748 allow_undefined_flag_CXX='-berok'
12749 # Determine the default libpath from the value encoded in an empty
12750 # executable.
12751 if test x$gcc_no_link = xyes; then
12752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12754 { (exit 1); exit 1; }; }
12755 fi
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762
12763 int
12764 main ()
12765 {
12766
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_cxx_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793
12794 lt_aix_libpath_sed='
12795 /Import File Strings/,/^$/ {
12796 /^0/ {
12797 s/^0 *\(.*\)$/\1/
12798 p
12799 }
12800 }'
12801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12802 # Check for a 64-bit object if we didn't find anything.
12803 if test -z "$aix_libpath"; then
12804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805 fi
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 fi
12811 rm -f conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12814
12815 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12816
12817 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"
12818 else
12819 if test "$host_cpu" = ia64; then
12820 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12821 allow_undefined_flag_CXX="-z nodefs"
12822 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"
12823 else
12824 # Determine the default libpath from the value encoded in an
12825 # empty executable.
12826 if test x$gcc_no_link = xyes; then
12827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12829 { (exit 1); exit 1; }; }
12830 fi
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h. */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837
12838 int
12839 main ()
12840 {
12841
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_cxx_werror_flag"
12856 || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868
12869 lt_aix_libpath_sed='
12870 /Import File Strings/,/^$/ {
12871 /^0/ {
12872 s/^0 *\(.*\)$/\1/
12873 p
12874 }
12875 }'
12876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12877 # Check for a 64-bit object if we didn't find anything.
12878 if test -z "$aix_libpath"; then
12879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12880 fi
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 fi
12886 rm -f conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12889
12890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12891 # Warning - without using the other run time loading flags,
12892 # -berok will link without error, but may produce a broken library.
12893 no_undefined_flag_CXX=' ${wl}-bernotok'
12894 allow_undefined_flag_CXX=' ${wl}-berok'
12895 # Exported symbols can be pulled into shared objects from archives
12896 whole_archive_flag_spec_CXX='$convenience'
12897 archive_cmds_need_lc_CXX=yes
12898 # This is similar to how AIX traditionally builds its shared
12899 # libraries.
12900 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'
12901 fi
12902 fi
12903 ;;
12904
12905 beos*)
12906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12907 allow_undefined_flag_CXX=unsupported
12908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12909 # support --undefined. This deserves some investigation. FIXME
12910 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911 else
12912 ld_shlibs_CXX=no
12913 fi
12914 ;;
12915
12916 chorus*)
12917 case $cc_basename in
12918 *)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 esac
12923 ;;
12924
12925 cygwin* | mingw* | pw32*)
12926 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12927 # as there is no search path for DLLs.
12928 hardcode_libdir_flag_spec_CXX='-L$libdir'
12929 allow_undefined_flag_CXX=unsupported
12930 always_export_symbols_CXX=no
12931 enable_shared_with_static_runtimes_CXX=yes
12932
12933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12934 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'
12935 # If the export-symbols file already is a .def file (1st line
12936 # is EXPORTS), use it as is; otherwise, prepend...
12937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12938 cp $export_symbols $output_objdir/$soname.def;
12939 else
12940 echo EXPORTS > $output_objdir/$soname.def;
12941 cat $export_symbols >> $output_objdir/$soname.def;
12942 fi~
12943 $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'
12944 else
12945 ld_shlibs_CXX=no
12946 fi
12947 ;;
12948 darwin* | rhapsody*)
12949 case $host_os in
12950 rhapsody* | darwin1.[012])
12951 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12952 ;;
12953 *) # Darwin 1.3 on
12954 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12955 10.[012])
12956 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12957 ;;
12958 10.*)
12959 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12960 ;;
12961 esac
12962 ;;
12963 esac
12964 archive_cmds_need_lc_CXX=no
12965 hardcode_direct_CXX=no
12966 hardcode_automatic_CXX=yes
12967 hardcode_shlibpath_var_CXX=unsupported
12968 whole_archive_flag_spec_CXX=''
12969 link_all_deplibs_CXX=yes
12970
12971 if test "$GXX" = yes ; then
12972 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975 lt_cv_apple_cc_single_mod=no
12976 if test -z "${LT_MULTI_MODULE}"; then
12977 # By default we will add the -single_module flag. You can override
12978 # by either setting the environment variable LT_MULTI_MODULE
12979 # non-empty at configure time, or by adding -multi-module to the
12980 # link flags.
12981 echo "int foo(void){return 1;}" > conftest.c
12982 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12983 -dynamiclib ${wl}-single_module conftest.c
12984 if test -f libconftest.dylib; then
12985 lt_cv_apple_cc_single_mod=yes
12986 rm libconftest.dylib
12987 fi
12988 rm conftest.$ac_ext
12989 fi
12990 fi
12991
12992 output_verbose_link_cmd=echo
12993 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
12994 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12995 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}'
12996 else
12997 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'
12998 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}'
12999 fi
13000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13001 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}'
13002 else
13003 case $cc_basename in
13004 xlc*)
13005 output_verbose_link_cmd=echo
13006 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'
13007 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13008 # Don't fix this by using the ld -exported_symbols_list flag,
13009 # it doesn't exist in older darwin lds
13010 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}'
13011 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}'
13012 ;;
13013 *)
13014 ld_shlibs_CXX=no
13015 ;;
13016 esac
13017 fi
13018 ;;
13019
13020 dgux*)
13021 case $cc_basename in
13022 ec++*)
13023 # FIXME: insert proper C++ library support
13024 ld_shlibs_CXX=no
13025 ;;
13026 ghcx*)
13027 # Green Hills C++ Compiler
13028 # FIXME: insert proper C++ library support
13029 ld_shlibs_CXX=no
13030 ;;
13031 *)
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13034 ;;
13035 esac
13036 ;;
13037
13038 freebsd[12]*)
13039 # C++ shared libraries reported to be fairly broken before
13040 # switch to ELF
13041 ld_shlibs_CXX=no
13042 ;;
13043
13044 freebsd-elf*)
13045 archive_cmds_need_lc_CXX=no
13046 ;;
13047
13048 freebsd* | dragonfly*)
13049 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13050 # conventions
13051 ld_shlibs_CXX=yes
13052 ;;
13053
13054 gnu*)
13055 ;;
13056
13057 hpux9*)
13058 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13059 hardcode_libdir_separator_CXX=:
13060 export_dynamic_flag_spec_CXX='${wl}-E'
13061 hardcode_direct_CXX=yes
13062 hardcode_minus_L_CXX=yes # Not in the search PATH,
13063 # but as the default
13064 # location of the library.
13065
13066 case $cc_basename in
13067 CC*)
13068 # FIXME: insert proper C++ library support
13069 ld_shlibs_CXX=no
13070 ;;
13071 aCC*)
13072 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'
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13076 #
13077 # There doesn't appear to be a way to prevent this compiler from
13078 # explicitly linking system object files so we need to strip them
13079 # from the output so that they don't get included in the library
13080 # dependencies.
13081 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'
13082 ;;
13083 *)
13084 if test "$GXX" = yes; then
13085 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'
13086 else
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 fi
13090 ;;
13091 esac
13092 ;;
13093
13094 hpux10*|hpux11*)
13095 if test $with_gnu_ld = no; then
13096 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13097 hardcode_libdir_separator_CXX=:
13098
13099 case $host_cpu in
13100 hppa*64*|ia64*)
13101 ;;
13102 *)
13103 export_dynamic_flag_spec_CXX='${wl}-E'
13104 ;;
13105 esac
13106 fi
13107 case $host_cpu in
13108 hppa*64*|ia64*)
13109 hardcode_direct_CXX=no
13110 hardcode_shlibpath_var_CXX=no
13111 ;;
13112 *)
13113 hardcode_direct_CXX=yes
13114 hardcode_direct_absolute_CXX=yes
13115 hardcode_minus_L_CXX=yes # Not in the search PATH,
13116 # but as the default
13117 # location of the library.
13118 ;;
13119 esac
13120
13121 case $cc_basename in
13122 CC*)
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 ;;
13126 aCC*)
13127 case $host_cpu in
13128 hppa*64*)
13129 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13130 ;;
13131 ia64*)
13132 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133 ;;
13134 *)
13135 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13136 ;;
13137 esac
13138 # Commands to make compiler produce verbose output that lists
13139 # what "hidden" libraries, object files and flags are used when
13140 # linking a shared library.
13141 #
13142 # There doesn't appear to be a way to prevent this compiler from
13143 # explicitly linking system object files so we need to strip them
13144 # from the output so that they don't get included in the library
13145 # dependencies.
13146 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'
13147 ;;
13148 *)
13149 if test "$GXX" = yes; then
13150 if test $with_gnu_ld = no; then
13151 case $host_cpu in
13152 hppa*64*)
13153 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13154 ;;
13155 ia64*)
13156 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157 ;;
13158 *)
13159 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'
13160 ;;
13161 esac
13162 fi
13163 else
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 fi
13167 ;;
13168 esac
13169 ;;
13170
13171 interix[3-9]*)
13172 hardcode_direct_CXX=no
13173 hardcode_shlibpath_var_CXX=no
13174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175 export_dynamic_flag_spec_CXX='${wl}-E'
13176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13177 # Instead, shared libraries are loaded at an image base (0x10000000 by
13178 # default) and relocated if they conflict, which is a slow very memory
13179 # consuming and fragmenting process. To avoid this, we pick a random,
13180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13182 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'
13183 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'
13184 ;;
13185 irix5* | irix6*)
13186 case $cc_basename in
13187 CC*)
13188 # SGI C++
13189 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'
13190
13191 # Archives containing C++ object files must be created using
13192 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13193 # necessary to make sure instantiated templates are included
13194 # in the archive.
13195 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13196 ;;
13197 *)
13198 if test "$GXX" = yes; then
13199 if test "$with_gnu_ld" = no; then
13200 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'
13201 else
13202 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'
13203 fi
13204 fi
13205 link_all_deplibs_CXX=yes
13206 ;;
13207 esac
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13209 hardcode_libdir_separator_CXX=:
13210 inherit_rpath_CXX=yes
13211 ;;
13212
13213 linux* | k*bsd*-gnu)
13214 case $cc_basename in
13215 KCC*)
13216 # Kuck and Associates, Inc. (KAI) C++ Compiler
13217
13218 # KCC will only create a shared library if the output file
13219 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13220 # to its proper name (with version) after linking.
13221 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'
13222 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'
13223 # Commands to make compiler produce verbose output that lists
13224 # what "hidden" libraries, object files and flags are used when
13225 # linking a shared library.
13226 #
13227 # There doesn't appear to be a way to prevent this compiler from
13228 # explicitly linking system object files so we need to strip them
13229 # from the output so that they don't get included in the library
13230 # dependencies.
13231 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'
13232
13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235
13236 # Archives containing C++ object files must be created using
13237 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13238 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13239 ;;
13240 icpc* | ecpc* )
13241 # Intel C++
13242 with_gnu_ld=yes
13243 # version 8.0 and above of icpc choke on multiply defined symbols
13244 # if we add $predep_objects and $postdep_objects, however 7.1 and
13245 # earlier do not add the objects themselves.
13246 case `$CC -V 2>&1` in
13247 *"Version 7."*)
13248 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249 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'
13250 ;;
13251 *) # Version 8.0 or newer
13252 tmp_idyn=
13253 case $host_cpu in
13254 ia64*) tmp_idyn=' -i_dynamic';;
13255 esac
13256 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257 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'
13258 ;;
13259 esac
13260 archive_cmds_need_lc_CXX=no
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13263 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13264 ;;
13265 pgCC*)
13266 # Portland Group C++ compiler
13267 case `$CC -V` in
13268 *pgCC\ [1-5]*)
13269 prelink_cmds_CXX='tpldir=Template.dir~
13270 rm -rf $tpldir~
13271 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13272 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13273 old_archive_cmds_CXX='tpldir=Template.dir~
13274 rm -rf $tpldir~
13275 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13276 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13277 $RANLIB $oldlib'
13278 archive_cmds_CXX='tpldir=Template.dir~
13279 rm -rf $tpldir~
13280 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13281 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13282 archive_expsym_cmds_CXX='tpldir=Template.dir~
13283 rm -rf $tpldir~
13284 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13285 $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'
13286 ;;
13287 *) # Version 6 will use weak symbols
13288 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13289 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'
13290 ;;
13291 esac
13292
13293 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13295 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'
13296 ;;
13297 cxx*)
13298 # Compaq C++
13299 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300 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'
13301
13302 runpath_var=LD_RUN_PATH
13303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13304 hardcode_libdir_separator_CXX=:
13305
13306 # Commands to make compiler produce verbose output that lists
13307 # what "hidden" libraries, object files and flags are used when
13308 # linking a shared library.
13309 #
13310 # There doesn't appear to be a way to prevent this compiler from
13311 # explicitly linking system object files so we need to strip them
13312 # from the output so that they don't get included in the library
13313 # dependencies.
13314 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'
13315 ;;
13316 *)
13317 case `$CC -V 2>&1 | sed 5q` in
13318 *Sun\ C*)
13319 # Sun C++ 5.9
13320 no_undefined_flag_CXX=' -zdefs'
13321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13322 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'
13323 hardcode_libdir_flag_spec_CXX='-R$libdir'
13324 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'
13325 compiler_needs_object_CXX=yes
13326
13327 # Not sure whether something based on
13328 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13329 # would be better.
13330 output_verbose_link_cmd='echo'
13331
13332 # Archives containing C++ object files must be created using
13333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13334 # necessary to make sure instantiated templates are included
13335 # in the archive.
13336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13337 ;;
13338 esac
13339 ;;
13340 esac
13341 ;;
13342
13343 lynxos*)
13344 # FIXME: insert proper C++ library support
13345 ld_shlibs_CXX=no
13346 ;;
13347
13348 m88k*)
13349 # FIXME: insert proper C++ library support
13350 ld_shlibs_CXX=no
13351 ;;
13352
13353 mvs*)
13354 case $cc_basename in
13355 cxx*)
13356 # FIXME: insert proper C++ library support
13357 ld_shlibs_CXX=no
13358 ;;
13359 *)
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 ;;
13363 esac
13364 ;;
13365
13366 netbsd*)
13367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13368 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13369 wlarc=
13370 hardcode_libdir_flag_spec_CXX='-R$libdir'
13371 hardcode_direct_CXX=yes
13372 hardcode_shlibpath_var_CXX=no
13373 fi
13374 # Workaround some broken pre-1.5 toolchains
13375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13376 ;;
13377
13378 *nto* | *qnx*)
13379 ld_shlibs_CXX=yes
13380 ;;
13381
13382 openbsd2*)
13383 # C++ shared libraries are fairly broken
13384 ld_shlibs_CXX=no
13385 ;;
13386
13387 openbsd*)
13388 hardcode_direct_CXX=yes
13389 hardcode_shlibpath_var_CXX=no
13390 hardcode_direct_absolute_CXX=yes
13391 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13394 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13395 export_dynamic_flag_spec_CXX='${wl}-E'
13396 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13397 fi
13398 output_verbose_link_cmd=echo
13399 ;;
13400
13401 osf3* | osf4* | osf5*)
13402 case $cc_basename in
13403 KCC*)
13404 # Kuck and Associates, Inc. (KAI) C++ Compiler
13405
13406 # KCC will only create a shared library if the output file
13407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13408 # to its proper name (with version) after linking.
13409 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'
13410
13411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13412 hardcode_libdir_separator_CXX=:
13413
13414 # Archives containing C++ object files must be created using
13415 # the KAI C++ compiler.
13416 case $host in
13417 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13418 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13419 esac
13420 ;;
13421 RCC*)
13422 # Rational C++ 2.4.1
13423 # FIXME: insert proper C++ library support
13424 ld_shlibs_CXX=no
13425 ;;
13426 cxx*)
13427 case $host in
13428 osf3*)
13429 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13430 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'
13431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13432 ;;
13433 *)
13434 allow_undefined_flag_CXX=' -expect_unresolved \*'
13435 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'
13436 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13437 echo "-hidden">> $lib.exp~
13438 $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~
13439 $RM $lib.exp'
13440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13441 ;;
13442 esac
13443
13444 hardcode_libdir_separator_CXX=:
13445
13446 # Commands to make compiler produce verbose output that lists
13447 # what "hidden" libraries, object files and flags are used when
13448 # linking a shared library.
13449 #
13450 # There doesn't appear to be a way to prevent this compiler from
13451 # explicitly linking system object files so we need to strip them
13452 # from the output so that they don't get included in the library
13453 # dependencies.
13454 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'
13455 ;;
13456 *)
13457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13459 case $host in
13460 osf3*)
13461 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'
13462 ;;
13463 *)
13464 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'
13465 ;;
13466 esac
13467
13468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13469 hardcode_libdir_separator_CXX=:
13470
13471 # Commands to make compiler produce verbose output that lists
13472 # what "hidden" libraries, object files and flags are used when
13473 # linking a shared library.
13474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13475
13476 else
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 fi
13480 ;;
13481 esac
13482 ;;
13483
13484 psos*)
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13487 ;;
13488
13489 sunos4*)
13490 case $cc_basename in
13491 CC*)
13492 # Sun C++ 4.x
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13495 ;;
13496 lcc*)
13497 # Lucid
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13500 ;;
13501 *)
13502 # FIXME: insert proper C++ library support
13503 ld_shlibs_CXX=no
13504 ;;
13505 esac
13506 ;;
13507
13508 solaris*)
13509 case $cc_basename in
13510 CC*)
13511 # Sun C++ 4.2, 5.x and Centerline C++
13512 archive_cmds_need_lc_CXX=yes
13513 no_undefined_flag_CXX=' -zdefs'
13514 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13515 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13516 $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'
13517
13518 hardcode_libdir_flag_spec_CXX='-R$libdir'
13519 hardcode_shlibpath_var_CXX=no
13520 case $host_os in
13521 solaris2.[0-5] | solaris2.[0-5].*) ;;
13522 *)
13523 # The compiler driver will combine and reorder linker options,
13524 # but understands `-z linker_flag'.
13525 # Supported since Solaris 2.6 (maybe 2.5.1?)
13526 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13527 ;;
13528 esac
13529 link_all_deplibs_CXX=yes
13530
13531 output_verbose_link_cmd='echo'
13532
13533 # Archives containing C++ object files must be created using
13534 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13535 # necessary to make sure instantiated templates are included
13536 # in the archive.
13537 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13538 ;;
13539 gcx*)
13540 # Green Hills C++ Compiler
13541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13542
13543 # The C++ compiler must be used to create the archive.
13544 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13545 ;;
13546 *)
13547 # GNU C++ compiler with Solaris linker
13548 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13549 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13550 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13551 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13554
13555 # Commands to make compiler produce verbose output that lists
13556 # what "hidden" libraries, object files and flags are used when
13557 # linking a shared library.
13558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13559 else
13560 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13561 # platform.
13562 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13563 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13564 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13565
13566 # Commands to make compiler produce verbose output that lists
13567 # what "hidden" libraries, object files and flags are used when
13568 # linking a shared library.
13569 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13570 fi
13571
13572 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13573 case $host_os in
13574 solaris2.[0-5] | solaris2.[0-5].*) ;;
13575 *)
13576 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13577 ;;
13578 esac
13579 fi
13580 ;;
13581 esac
13582 ;;
13583
13584 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13585 no_undefined_flag_CXX='${wl}-z,text'
13586 archive_cmds_need_lc_CXX=no
13587 hardcode_shlibpath_var_CXX=no
13588 runpath_var='LD_RUN_PATH'
13589
13590 case $cc_basename in
13591 CC*)
13592 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 ;;
13595 *)
13596 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13597 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 ;;
13599 esac
13600 ;;
13601
13602 sysv5* | sco3.2v5* | sco5v6*)
13603 # Note: We can NOT use -z defs as we might desire, because we do not
13604 # link with -lc, and that would cause any symbols used from libc to
13605 # always be unresolved, which means just about no library would
13606 # ever link correctly. If we're not using GNU ld we use -z text
13607 # though, which does catch some bad symbols but isn't as heavy-handed
13608 # as -z defs.
13609 no_undefined_flag_CXX='${wl}-z,text'
13610 allow_undefined_flag_CXX='${wl}-z,nodefs'
13611 archive_cmds_need_lc_CXX=no
13612 hardcode_shlibpath_var_CXX=no
13613 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13614 hardcode_libdir_separator_CXX=':'
13615 link_all_deplibs_CXX=yes
13616 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13617 runpath_var='LD_RUN_PATH'
13618
13619 case $cc_basename in
13620 CC*)
13621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623 ;;
13624 *)
13625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627 ;;
13628 esac
13629 ;;
13630
13631 tandem*)
13632 case $cc_basename in
13633 NCC*)
13634 # NonStop-UX NCC 3.20
13635 # FIXME: insert proper C++ library support
13636 ld_shlibs_CXX=no
13637 ;;
13638 *)
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13641 ;;
13642 esac
13643 ;;
13644
13645 vxworks*)
13646 # FIXME: insert proper C++ library support
13647 ld_shlibs_CXX=no
13648 ;;
13649
13650 *)
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13653 ;;
13654 esac
13655
13656 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13657 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13658 test "$ld_shlibs_CXX" = no && can_build_shared=no
13659
13660 GCC_CXX="$GXX"
13661 LD_CXX="$LD"
13662
13663 ## CAVEAT EMPTOR:
13664 ## There is no encapsulation within the following macros, do not change
13665 ## the running order or otherwise move them around unless you know exactly
13666 ## what you are doing...
13667 # Dependencies to place before and after the object being linked:
13668 predep_objects_CXX=
13669 postdep_objects_CXX=
13670 predeps_CXX=
13671 postdeps_CXX=
13672 compiler_lib_search_path_CXX=
13673
13674 cat > conftest.$ac_ext <<_LT_EOF
13675 class Foo
13676 {
13677 public:
13678 Foo (void) { a = 0; }
13679 private:
13680 int a;
13681 };
13682 _LT_EOF
13683
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; then
13689 # Parse the compiler output and extract the necessary
13690 # objects, libraries and library flags.
13691
13692 # Sentinel used to keep track of whether or not we are before
13693 # the conftest object file.
13694 pre_test_object_deps_done=no
13695
13696 # The `*' in the case matches for architectures that use `case' in
13697 # $output_verbose_cmd can trigger glob expansion during the loop
13698 # eval without this substitution.
13699 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13700
13701 for p in `eval $output_verbose_link_cmd`; do
13702 case $p in
13703
13704 -L* | -R* | -l*)
13705 # Some compilers place space between "-{L,R}" and the path.
13706 # Remove the space.
13707 if test $p = "-L" ||
13708 test $p = "-R"; then
13709 prev=$p
13710 continue
13711 else
13712 prev=
13713 fi
13714
13715 if test "$pre_test_object_deps_done" = no; then
13716 case $p in
13717 -L* | -R*)
13718 # Internal compiler library paths should come after those
13719 # provided the user. The postdeps already come after the
13720 # user supplied libs so there is no need to process them.
13721 if test -z "$compiler_lib_search_path_CXX"; then
13722 compiler_lib_search_path_CXX="${prev}${p}"
13723 else
13724 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13725 fi
13726 ;;
13727 # The "-l" case would never come before the object being
13728 # linked, so don't bother handling this case.
13729 esac
13730 else
13731 if test -z "$postdeps_CXX"; then
13732 postdeps_CXX="${prev}${p}"
13733 else
13734 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13735 fi
13736 fi
13737 ;;
13738
13739 *.$objext)
13740 # This assumes that the test object file only shows up
13741 # once in the compiler output.
13742 if test "$p" = "conftest.$objext"; then
13743 pre_test_object_deps_done=yes
13744 continue
13745 fi
13746
13747 if test "$pre_test_object_deps_done" = no; then
13748 if test -z "$predep_objects_CXX"; then
13749 predep_objects_CXX="$p"
13750 else
13751 predep_objects_CXX="$predep_objects_CXX $p"
13752 fi
13753 else
13754 if test -z "$postdep_objects_CXX"; then
13755 postdep_objects_CXX="$p"
13756 else
13757 postdep_objects_CXX="$postdep_objects_CXX $p"
13758 fi
13759 fi
13760 ;;
13761
13762 *) ;; # Ignore the rest.
13763
13764 esac
13765 done
13766
13767 # Clean up.
13768 rm -f a.out a.exe
13769 else
13770 echo "libtool.m4: error: problem compiling CXX test program"
13771 fi
13772
13773 $RM -f confest.$objext
13774
13775 # PORTME: override above test on systems where it is broken
13776 case $host_os in
13777 interix[3-9]*)
13778 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13779 # hack all around it, let's just trust "g++" to DTRT.
13780 predep_objects_CXX=
13781 postdep_objects_CXX=
13782 postdeps_CXX=
13783 ;;
13784
13785 linux*)
13786 case `$CC -V 2>&1 | sed 5q` in
13787 *Sun\ C*)
13788 # Sun C++ 5.9
13789
13790 # The more standards-conforming stlport4 library is
13791 # incompatible with the Cstd library. Avoid specifying
13792 # it if it's in CXXFLAGS. Ignore libCrun as
13793 # -library=stlport4 depends on it.
13794 case " $CXX $CXXFLAGS " in
13795 *" -library=stlport4 "*)
13796 solaris_use_stlport4=yes
13797 ;;
13798 esac
13799
13800 if test "$solaris_use_stlport4" != yes; then
13801 postdeps_CXX='-library=Cstd -library=Crun'
13802 fi
13803 ;;
13804 esac
13805 ;;
13806
13807 solaris*)
13808 case $cc_basename in
13809 CC*)
13810 # The more standards-conforming stlport4 library is
13811 # incompatible with the Cstd library. Avoid specifying
13812 # it if it's in CXXFLAGS. Ignore libCrun as
13813 # -library=stlport4 depends on it.
13814 case " $CXX $CXXFLAGS " in
13815 *" -library=stlport4 "*)
13816 solaris_use_stlport4=yes
13817 ;;
13818 esac
13819
13820 # Adding this requires a known-good setup of shared libraries for
13821 # Sun compiler versions before 5.6, else PIC objects from an old
13822 # archive will be linked into the output, leading to subtle bugs.
13823 if test "$solaris_use_stlport4" != yes; then
13824 postdeps_CXX='-library=Cstd -library=Crun'
13825 fi
13826 ;;
13827 esac
13828 ;;
13829 esac
13830
13831
13832 case " $postdeps_CXX " in
13833 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13834 esac
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861 lt_prog_compiler_wl_CXX=
13862 lt_prog_compiler_pic_CXX=
13863 lt_prog_compiler_static_CXX=
13864
13865 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13866 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13867
13868 # C++ specific cases for pic, static, wl, etc.
13869 if test "$GXX" = yes; then
13870 lt_prog_compiler_wl_CXX='-Wl,'
13871 lt_prog_compiler_static_CXX='-static'
13872
13873 case $host_os in
13874 aix*)
13875 # All AIX code is PIC.
13876 if test "$host_cpu" = ia64; then
13877 # AIX 5 now supports IA64 processor
13878 lt_prog_compiler_static_CXX='-Bstatic'
13879 fi
13880 ;;
13881 amigaos*)
13882 if test "$host_cpu" = m68k; then
13883 # FIXME: we need at least 68020 code to build shared libraries, but
13884 # adding the `-m68020' flag to GCC prevents building anything better,
13885 # like `-m68040'.
13886 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13887 fi
13888 ;;
13889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13890 # PIC is the default for these OSes.
13891 ;;
13892 mingw* | cygwin* | os2* | pw32*)
13893 # This hack is so that the source file can tell whether it is being
13894 # built for inclusion in a dll (and should export symbols for example).
13895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13896 # (--disable-auto-import) libraries
13897 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13898 ;;
13899 darwin* | rhapsody*)
13900 # PIC is the default on this platform
13901 # Common symbols not allowed in MH_DYLIB files
13902 lt_prog_compiler_pic_CXX='-fno-common'
13903 ;;
13904 *djgpp*)
13905 # DJGPP does not support shared libraries at all
13906 lt_prog_compiler_pic_CXX=
13907 ;;
13908 interix[3-9]*)
13909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13910 # Instead, we relocate shared libraries at runtime.
13911 ;;
13912 sysv4*MP*)
13913 if test -d /usr/nec; then
13914 lt_prog_compiler_pic_CXX=-Kconform_pic
13915 fi
13916 ;;
13917 hpux*)
13918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13919 # not for PA HP-UX.
13920 case $host_cpu in
13921 hppa*64*|ia64*)
13922 ;;
13923 *)
13924 lt_prog_compiler_pic_CXX='-fPIC'
13925 ;;
13926 esac
13927 ;;
13928 *qnx* | *nto*)
13929 # QNX uses GNU C++, but need to define -shared option too, otherwise
13930 # it will coredump.
13931 lt_prog_compiler_pic_CXX='-fPIC -shared'
13932 ;;
13933 *)
13934 lt_prog_compiler_pic_CXX='-fPIC'
13935 ;;
13936 esac
13937 else
13938 case $host_os in
13939 aix[4-9]*)
13940 # All AIX code is PIC.
13941 if test "$host_cpu" = ia64; then
13942 # AIX 5 now supports IA64 processor
13943 lt_prog_compiler_static_CXX='-Bstatic'
13944 else
13945 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13946 fi
13947 ;;
13948 chorus*)
13949 case $cc_basename in
13950 cxch68*)
13951 # Green Hills C++ Compiler
13952 # _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"
13953 ;;
13954 esac
13955 ;;
13956 darwin*)
13957 # PIC is the default on this platform
13958 # Common symbols not allowed in MH_DYLIB files
13959 case $cc_basename in
13960 xlc*)
13961 lt_prog_compiler_pic_CXX='-qnocommon'
13962 lt_prog_compiler_wl_CXX='-Wl,'
13963 ;;
13964 esac
13965 ;;
13966 dgux*)
13967 case $cc_basename in
13968 ec++*)
13969 lt_prog_compiler_pic_CXX='-KPIC'
13970 ;;
13971 ghcx*)
13972 # Green Hills C++ Compiler
13973 lt_prog_compiler_pic_CXX='-pic'
13974 ;;
13975 *)
13976 ;;
13977 esac
13978 ;;
13979 freebsd* | dragonfly*)
13980 # FreeBSD uses GNU C++
13981 ;;
13982 hpux9* | hpux10* | hpux11*)
13983 case $cc_basename in
13984 CC*)
13985 lt_prog_compiler_wl_CXX='-Wl,'
13986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13987 if test "$host_cpu" != ia64; then
13988 lt_prog_compiler_pic_CXX='+Z'
13989 fi
13990 ;;
13991 aCC*)
13992 lt_prog_compiler_wl_CXX='-Wl,'
13993 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13994 case $host_cpu in
13995 hppa*64*|ia64*)
13996 # +Z the default
13997 ;;
13998 *)
13999 lt_prog_compiler_pic_CXX='+Z'
14000 ;;
14001 esac
14002 ;;
14003 *)
14004 ;;
14005 esac
14006 ;;
14007 interix*)
14008 # This is c89, which is MS Visual C++ (no shared libs)
14009 # Anyone wants to do a port?
14010 ;;
14011 irix5* | irix6* | nonstopux*)
14012 case $cc_basename in
14013 CC*)
14014 lt_prog_compiler_wl_CXX='-Wl,'
14015 lt_prog_compiler_static_CXX='-non_shared'
14016 # CC pic flag -KPIC is the default.
14017 ;;
14018 *)
14019 ;;
14020 esac
14021 ;;
14022 linux* | k*bsd*-gnu)
14023 case $cc_basename in
14024 KCC*)
14025 # KAI C++ Compiler
14026 lt_prog_compiler_wl_CXX='--backend -Wl,'
14027 lt_prog_compiler_pic_CXX='-fPIC'
14028 ;;
14029 icpc* | ecpc* )
14030 # Intel C++
14031 lt_prog_compiler_wl_CXX='-Wl,'
14032 lt_prog_compiler_pic_CXX='-KPIC'
14033 lt_prog_compiler_static_CXX='-static'
14034 ;;
14035 pgCC*)
14036 # Portland Group C++ compiler
14037 lt_prog_compiler_wl_CXX='-Wl,'
14038 lt_prog_compiler_pic_CXX='-fpic'
14039 lt_prog_compiler_static_CXX='-Bstatic'
14040 ;;
14041 cxx*)
14042 # Compaq C++
14043 # Make sure the PIC flag is empty. It appears that all Alpha
14044 # Linux and Compaq Tru64 Unix objects are PIC.
14045 lt_prog_compiler_pic_CXX=
14046 lt_prog_compiler_static_CXX='-non_shared'
14047 ;;
14048 *)
14049 case `$CC -V 2>&1 | sed 5q` in
14050 *Sun\ C*)
14051 # Sun C++ 5.9
14052 lt_prog_compiler_pic_CXX='-KPIC'
14053 lt_prog_compiler_static_CXX='-Bstatic'
14054 lt_prog_compiler_wl_CXX='-Qoption ld '
14055 ;;
14056 esac
14057 ;;
14058 esac
14059 ;;
14060 lynxos*)
14061 ;;
14062 m88k*)
14063 ;;
14064 mvs*)
14065 case $cc_basename in
14066 cxx*)
14067 lt_prog_compiler_pic_CXX='-W c,exportall'
14068 ;;
14069 *)
14070 ;;
14071 esac
14072 ;;
14073 netbsd*)
14074 ;;
14075 *qnx* | *nto*)
14076 # QNX uses GNU C++, but need to define -shared option too, otherwise
14077 # it will coredump.
14078 lt_prog_compiler_pic_CXX='-fPIC -shared'
14079 ;;
14080 osf3* | osf4* | osf5*)
14081 case $cc_basename in
14082 KCC*)
14083 lt_prog_compiler_wl_CXX='--backend -Wl,'
14084 ;;
14085 RCC*)
14086 # Rational C++ 2.4.1
14087 lt_prog_compiler_pic_CXX='-pic'
14088 ;;
14089 cxx*)
14090 # Digital/Compaq C++
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 # Make sure the PIC flag is empty. It appears that all Alpha
14093 # Linux and Compaq Tru64 Unix objects are PIC.
14094 lt_prog_compiler_pic_CXX=
14095 lt_prog_compiler_static_CXX='-non_shared'
14096 ;;
14097 *)
14098 ;;
14099 esac
14100 ;;
14101 psos*)
14102 ;;
14103 solaris*)
14104 case $cc_basename in
14105 CC*)
14106 # Sun C++ 4.2, 5.x and Centerline C++
14107 lt_prog_compiler_pic_CXX='-KPIC'
14108 lt_prog_compiler_static_CXX='-Bstatic'
14109 lt_prog_compiler_wl_CXX='-Qoption ld '
14110 ;;
14111 gcx*)
14112 # Green Hills C++ Compiler
14113 lt_prog_compiler_pic_CXX='-PIC'
14114 ;;
14115 *)
14116 ;;
14117 esac
14118 ;;
14119 sunos4*)
14120 case $cc_basename in
14121 CC*)
14122 # Sun C++ 4.x
14123 lt_prog_compiler_pic_CXX='-pic'
14124 lt_prog_compiler_static_CXX='-Bstatic'
14125 ;;
14126 lcc*)
14127 # Lucid
14128 lt_prog_compiler_pic_CXX='-pic'
14129 ;;
14130 *)
14131 ;;
14132 esac
14133 ;;
14134 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14135 case $cc_basename in
14136 CC*)
14137 lt_prog_compiler_wl_CXX='-Wl,'
14138 lt_prog_compiler_pic_CXX='-KPIC'
14139 lt_prog_compiler_static_CXX='-Bstatic'
14140 ;;
14141 esac
14142 ;;
14143 tandem*)
14144 case $cc_basename in
14145 NCC*)
14146 # NonStop-UX NCC 3.20
14147 lt_prog_compiler_pic_CXX='-KPIC'
14148 ;;
14149 *)
14150 ;;
14151 esac
14152 ;;
14153 vxworks*)
14154 ;;
14155 *)
14156 lt_prog_compiler_can_build_shared_CXX=no
14157 ;;
14158 esac
14159 fi
14160
14161 case $host_os in
14162 # For platforms which do not support PIC, -DPIC is meaningless:
14163 *djgpp*)
14164 lt_prog_compiler_pic_CXX=
14165 ;;
14166 *)
14167 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14168 ;;
14169 esac
14170 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14171 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14172
14173
14174
14175 #
14176 # Check to make sure the PIC flag actually works.
14177 #
14178 if test -n "$lt_prog_compiler_pic_CXX"; then
14179 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14181 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 lt_prog_compiler_pic_works_CXX=no
14185 ac_outfile=conftest.$ac_objext
14186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14187 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14188 # Insert the option either (1) after the last *FLAGS variable, or
14189 # (2) before a word containing "conftest.", or (3) at the end.
14190 # Note that $ac_compile itself does not contain backslashes and begins
14191 # with a dollar sign (not a hyphen), so the echo should work correctly.
14192 # The option is referenced via a variable to avoid confusing sed.
14193 lt_compile=`echo "$ac_compile" | $SED \
14194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196 -e 's:$: $lt_compiler_flag:'`
14197 (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
14198 (eval "$lt_compile" 2>conftest.err)
14199 ac_status=$?
14200 cat conftest.err >&5
14201 echo "$as_me:14201: \$? = $ac_status" >&5
14202 if (exit $ac_status) && test -s "$ac_outfile"; then
14203 # The compiler can only warn and ignore the option if not recognized
14204 # So say no if there are warnings other than the usual output.
14205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14208 lt_prog_compiler_pic_works_CXX=yes
14209 fi
14210 fi
14211 $RM conftest*
14212
14213 fi
14214 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14215 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14216
14217 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14218 case $lt_prog_compiler_pic_CXX in
14219 "" | " "*) ;;
14220 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14221 esac
14222 else
14223 lt_prog_compiler_pic_CXX=
14224 lt_prog_compiler_can_build_shared_CXX=no
14225 fi
14226
14227 fi
14228
14229
14230
14231 #
14232 # Check to make sure the static flag actually works.
14233 #
14234 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14235 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14236 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14237 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 lt_prog_compiler_static_works_CXX=no
14241 save_LDFLAGS="$LDFLAGS"
14242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14245 # The linker can only warn and ignore the option if not recognized
14246 # So say no if there are warnings
14247 if test -s conftest.err; then
14248 # Append any errors to the config.log.
14249 cat conftest.err 1>&5
14250 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14252 if diff conftest.exp conftest.er2 >/dev/null; then
14253 lt_prog_compiler_static_works_CXX=yes
14254 fi
14255 else
14256 lt_prog_compiler_static_works_CXX=yes
14257 fi
14258 fi
14259 $RM conftest*
14260 LDFLAGS="$save_LDFLAGS"
14261
14262 fi
14263 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14264 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14265
14266 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14267 :
14268 else
14269 lt_prog_compiler_static_CXX=
14270 fi
14271
14272
14273
14274
14275 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14276 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14277 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280 lt_cv_prog_compiler_c_o_CXX=no
14281 $RM -r conftest 2>/dev/null
14282 mkdir conftest
14283 cd conftest
14284 mkdir out
14285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14286
14287 lt_compiler_flag="-o out/conftest2.$ac_objext"
14288 # Insert the option either (1) after the last *FLAGS variable, or
14289 # (2) before a word containing "conftest.", or (3) at the end.
14290 # Note that $ac_compile itself does not contain backslashes and begins
14291 # with a dollar sign (not a hyphen), so the echo should work correctly.
14292 lt_compile=`echo "$ac_compile" | $SED \
14293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14295 -e 's:$: $lt_compiler_flag:'`
14296 (eval echo "\"\$as_me:14296: $lt_compile\"" >&5)
14297 (eval "$lt_compile" 2>out/conftest.err)
14298 ac_status=$?
14299 cat out/conftest.err >&5
14300 echo "$as_me:14300: \$? = $ac_status" >&5
14301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14302 then
14303 # The compiler can only warn and ignore the option if not recognized
14304 # So say no if there are warnings
14305 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14308 lt_cv_prog_compiler_c_o_CXX=yes
14309 fi
14310 fi
14311 chmod u+w . 2>&5
14312 $RM conftest*
14313 # SGI C++ compiler will create directory out/ii_files/ for
14314 # template instantiation
14315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14316 $RM out/* && rmdir out
14317 cd ..
14318 $RM -r conftest
14319 $RM conftest*
14320
14321 fi
14322 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14323 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14324
14325
14326
14327 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14328 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14329 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 lt_cv_prog_compiler_c_o_CXX=no
14333 $RM -r conftest 2>/dev/null
14334 mkdir conftest
14335 cd conftest
14336 mkdir out
14337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14338
14339 lt_compiler_flag="-o out/conftest2.$ac_objext"
14340 # Insert the option either (1) after the last *FLAGS variable, or
14341 # (2) before a word containing "conftest.", or (3) at the end.
14342 # Note that $ac_compile itself does not contain backslashes and begins
14343 # with a dollar sign (not a hyphen), so the echo should work correctly.
14344 lt_compile=`echo "$ac_compile" | $SED \
14345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14347 -e 's:$: $lt_compiler_flag:'`
14348 (eval echo "\"\$as_me:14348: $lt_compile\"" >&5)
14349 (eval "$lt_compile" 2>out/conftest.err)
14350 ac_status=$?
14351 cat out/conftest.err >&5
14352 echo "$as_me:14352: \$? = $ac_status" >&5
14353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14354 then
14355 # The compiler can only warn and ignore the option if not recognized
14356 # So say no if there are warnings
14357 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14360 lt_cv_prog_compiler_c_o_CXX=yes
14361 fi
14362 fi
14363 chmod u+w . 2>&5
14364 $RM conftest*
14365 # SGI C++ compiler will create directory out/ii_files/ for
14366 # template instantiation
14367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14368 $RM out/* && rmdir out
14369 cd ..
14370 $RM -r conftest
14371 $RM conftest*
14372
14373 fi
14374 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14376
14377
14378
14379
14380 hard_links="nottested"
14381 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14382 # do not overwrite the value of need_locks provided by the user
14383 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14384 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14385 hard_links=yes
14386 $RM conftest*
14387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14388 touch conftest.a
14389 ln conftest.a conftest.b 2>&5 || hard_links=no
14390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14391 echo "$as_me:$LINENO: result: $hard_links" >&5
14392 echo "${ECHO_T}$hard_links" >&6
14393 if test "$hard_links" = no; then
14394 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14395 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14396 need_locks=warn
14397 fi
14398 else
14399 need_locks=no
14400 fi
14401
14402
14403
14404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14406
14407 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14408 case $host_os in
14409 aix[4-9]*)
14410 # If we're using GNU nm, then we don't want the "-C" option.
14411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14413 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'
14414 else
14415 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'
14416 fi
14417 ;;
14418 pw32*)
14419 export_symbols_cmds_CXX="$ltdll_cmds"
14420 ;;
14421 cygwin* | mingw*)
14422 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'
14423 ;;
14424 *)
14425 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14426 ;;
14427 esac
14428
14429 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14430 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14431 test "$ld_shlibs_CXX" = no && can_build_shared=no
14432
14433 with_gnu_ld_CXX=$with_gnu_ld
14434
14435
14436
14437
14438
14439
14440 #
14441 # Do we need to explicitly link libc?
14442 #
14443 case "x$archive_cmds_need_lc_CXX" in
14444 x|xyes)
14445 # Assume -lc should be added
14446 archive_cmds_need_lc_CXX=yes
14447
14448 if test "$enable_shared" = yes && test "$GCC" = yes; then
14449 case $archive_cmds_CXX in
14450 *'~'*)
14451 # FIXME: we may have to deal with multi-command sequences.
14452 ;;
14453 '$CC '*)
14454 # Test whether the compiler implicitly links with -lc since on some
14455 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14456 # to ld, don't add -lc before -lgcc.
14457 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14458 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14459 $RM conftest*
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } 2>conftest.err; then
14467 soname=conftest
14468 lib=conftest
14469 libobjs=conftest.$ac_objext
14470 deplibs=
14471 wl=$lt_prog_compiler_wl_CXX
14472 pic_flag=$lt_prog_compiler_pic_CXX
14473 compiler_flags=-v
14474 linker_flags=-v
14475 verstring=
14476 output_objdir=.
14477 libname=conftest
14478 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14479 allow_undefined_flag_CXX=
14480 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14481 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }
14485 then
14486 archive_cmds_need_lc_CXX=no
14487 else
14488 archive_cmds_need_lc_CXX=yes
14489 fi
14490 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14491 else
14492 cat conftest.err 1>&5
14493 fi
14494 $RM conftest*
14495 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14496 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14497 ;;
14498 esac
14499 fi
14500 ;;
14501 esac
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14567 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14568 withGCC=$GXX
14569 library_names_spec=
14570 libname_spec='lib$name'
14571 soname_spec=
14572 shrext_cmds=".so"
14573 postinstall_cmds=
14574 postuninstall_cmds=
14575 finish_cmds=
14576 finish_eval=
14577 shlibpath_var=
14578 shlibpath_overrides_runpath=unknown
14579 version_type=none
14580 dynamic_linker="$host_os ld.so"
14581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14582 need_lib_prefix=unknown
14583 hardcode_into_libs=no
14584
14585 # when you set need_version to no, make sure it does not cause -set_version
14586 # flags to be left without arguments
14587 need_version=unknown
14588
14589 case $host_os in
14590 aix3*)
14591 version_type=linux
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14593 shlibpath_var=LIBPATH
14594
14595 # AIX 3 has no versioning support, so we append a major version to the name.
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 ;;
14598
14599 aix[4-9]*)
14600 version_type=linux
14601 need_lib_prefix=no
14602 need_version=no
14603 hardcode_into_libs=yes
14604 if test "$host_cpu" = ia64; then
14605 # AIX 5 supports IA64
14606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 else
14609 # With GCC up to 2.95.x, collect2 would create an import file
14610 # for dependence libraries. The import file would start with
14611 # the line `#! .'. This would cause the generated library to
14612 # depend on `.', always an invalid library. This was fixed in
14613 # development snapshots of GCC prior to 3.0.
14614 case $host_os in
14615 aix4 | aix4.[01] | aix4.[01].*)
14616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14617 echo ' yes '
14618 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14619 :
14620 else
14621 can_build_shared=no
14622 fi
14623 ;;
14624 esac
14625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14626 # soname into executable. Probably we can add versioning support to
14627 # collect2, so additional links can be useful in future.
14628 if test "$aix_use_runtimelinking" = yes; then
14629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14630 # instead of lib<name>.a to let people know that these are not
14631 # typical AIX shared libraries.
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633 else
14634 # We preserve .a as extension for shared libraries through AIX4.2
14635 # and later when we are not doing run time linking.
14636 library_names_spec='${libname}${release}.a $libname.a'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 fi
14639 shlibpath_var=LIBPATH
14640 fi
14641 ;;
14642
14643 amigaos*)
14644 if test "$host_cpu" = m68k; then
14645 library_names_spec='$libname.ixlibrary $libname.a'
14646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14647 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'
14648 else
14649 dynamic_linker=no
14650 fi
14651 ;;
14652
14653 beos*)
14654 library_names_spec='${libname}${shared_ext}'
14655 dynamic_linker="$host_os ld.so"
14656 shlibpath_var=LIBRARY_PATH
14657 ;;
14658
14659 bsdi[45]*)
14660 version_type=linux
14661 need_version=no
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14668 # the default ld.so.conf also contains /usr/contrib/lib and
14669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14670 # libtool to hard-code these into programs
14671 ;;
14672
14673 cygwin* | mingw* | pw32*)
14674 version_type=windows
14675 shrext_cmds=".dll"
14676 need_version=no
14677 need_lib_prefix=no
14678
14679 case $withGCC,$host_os in
14680 yes,cygwin* | yes,mingw* | yes,pw32*)
14681 library_names_spec='$libname.dll.a'
14682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14683 postinstall_cmds='base_file=`basename \${file}`~
14684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14685 dldir=$destdir/`dirname \$dlpath`~
14686 test -d \$dldir || mkdir -p \$dldir~
14687 $install_prog $dir/$dlname \$dldir/$dlname~
14688 chmod a+x \$dldir/$dlname~
14689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14691 fi'
14692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14693 dlpath=$dir/\$dldll~
14694 $RM \$dlpath'
14695 shlibpath_overrides_runpath=yes
14696
14697 case $host_os in
14698 cygwin*)
14699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14702 ;;
14703 mingw*)
14704 # MinGW DLLs use traditional 'lib' prefix
14705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14706 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14707 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14708 # It is most probably a Windows format PATH printed by
14709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14710 # path with ; separators, and with drive letters. We can handle the
14711 # drive letters (cygwin fileutils understands them), so leave them,
14712 # especially as we might pass files found there to a mingw objdump,
14713 # which wouldn't understand a cygwinified path. Ahh.
14714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14715 else
14716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14717 fi
14718 ;;
14719 pw32*)
14720 # pw32 DLLs use 'pw' prefix rather than 'lib'
14721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14722 ;;
14723 esac
14724 ;;
14725
14726 *)
14727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14728 ;;
14729 esac
14730 dynamic_linker='Win32 ld.exe'
14731 # FIXME: first we should search . and the directory the executable is in
14732 shlibpath_var=PATH
14733 ;;
14734
14735 darwin* | rhapsody*)
14736 dynamic_linker="$host_os dyld"
14737 version_type=darwin
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14741 soname_spec='${libname}${release}${major}$shared_ext'
14742 shlibpath_overrides_runpath=yes
14743 shlibpath_var=DYLD_LIBRARY_PATH
14744 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14745
14746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14747 ;;
14748
14749 dgux*)
14750 version_type=linux
14751 need_lib_prefix=no
14752 need_version=no
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 ;;
14757
14758 freebsd1*)
14759 dynamic_linker=no
14760 ;;
14761
14762 freebsd* | dragonfly*)
14763 # DragonFly does not have aout. When/if they implement a new
14764 # versioning mechanism, adjust this.
14765 if test -x /usr/bin/objformat; then
14766 objformat=`/usr/bin/objformat`
14767 else
14768 case $host_os in
14769 freebsd[123]*) objformat=aout ;;
14770 *) objformat=elf ;;
14771 esac
14772 fi
14773 version_type=freebsd-$objformat
14774 case $version_type in
14775 freebsd-elf*)
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14777 need_version=no
14778 need_lib_prefix=no
14779 ;;
14780 freebsd-*)
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14782 need_version=yes
14783 ;;
14784 esac
14785 shlibpath_var=LD_LIBRARY_PATH
14786 case $host_os in
14787 freebsd2*)
14788 shlibpath_overrides_runpath=yes
14789 ;;
14790 freebsd3.[01]* | freebsdelf3.[01]*)
14791 shlibpath_overrides_runpath=yes
14792 hardcode_into_libs=yes
14793 ;;
14794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14796 shlibpath_overrides_runpath=no
14797 hardcode_into_libs=yes
14798 ;;
14799 *) # from 4.6 on, and DragonFly
14800 shlibpath_overrides_runpath=yes
14801 hardcode_into_libs=yes
14802 ;;
14803 esac
14804 ;;
14805
14806 gnu*)
14807 version_type=linux
14808 need_lib_prefix=no
14809 need_version=no
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 hardcode_into_libs=yes
14814 ;;
14815
14816 hpux9* | hpux10* | hpux11*)
14817 # Give a soname corresponding to the major version so that dld.sl refuses to
14818 # link against other versions.
14819 version_type=sunos
14820 need_lib_prefix=no
14821 need_version=no
14822 case $host_cpu in
14823 ia64*)
14824 shrext_cmds='.so'
14825 hardcode_into_libs=yes
14826 dynamic_linker="$host_os dld.so"
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 if test "X$HPUX_IA64_MODE" = X32; then
14832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14833 else
14834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14835 fi
14836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14837 ;;
14838 hppa*64*)
14839 shrext_cmds='.sl'
14840 hardcode_into_libs=yes
14841 dynamic_linker="$host_os dld.sl"
14842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14848 ;;
14849 *)
14850 shrext_cmds='.sl'
14851 dynamic_linker="$host_os dld.sl"
14852 shlibpath_var=SHLIB_PATH
14853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 ;;
14857 esac
14858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14859 postinstall_cmds='chmod 555 $lib'
14860 ;;
14861
14862 interix[3-9]*)
14863 version_type=linux
14864 need_lib_prefix=no
14865 need_version=no
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=no
14871 hardcode_into_libs=yes
14872 ;;
14873
14874 irix5* | irix6* | nonstopux*)
14875 case $host_os in
14876 nonstopux*) version_type=nonstopux ;;
14877 *)
14878 if test "$lt_cv_prog_gnu_ld" = yes; then
14879 version_type=linux
14880 else
14881 version_type=irix
14882 fi ;;
14883 esac
14884 need_lib_prefix=no
14885 need_version=no
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14888 case $host_os in
14889 irix5* | nonstopux*)
14890 libsuff= shlibsuff=
14891 ;;
14892 *)
14893 case $LD in # libtool.m4 will add one of these switches to LD
14894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14895 libsuff= shlibsuff= libmagic=32-bit;;
14896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14897 libsuff=32 shlibsuff=N32 libmagic=N32;;
14898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14900 *) libsuff= shlibsuff= libmagic=never-match;;
14901 esac
14902 ;;
14903 esac
14904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14905 shlibpath_overrides_runpath=no
14906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14908 hardcode_into_libs=yes
14909 ;;
14910
14911 # No shared lib support for Linux oldld, aout, or coff.
14912 linux*oldld* | linux*aout* | linux*coff*)
14913 dynamic_linker=no
14914 ;;
14915
14916 # This must be Linux ELF.
14917 linux* | k*bsd*-gnu)
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=no
14926 # Some binutils ld are patched to set DT_RUNPATH
14927 save_LDFLAGS=$LDFLAGS
14928 save_libdir=$libdir
14929 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14930 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14931 if test x$gcc_no_link = xyes; then
14932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14934 { (exit 1); exit 1; }; }
14935 fi
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942
14943 int
14944 main ()
14945 {
14946
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_cxx_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
14974 shlibpath_overrides_runpath=yes
14975 fi
14976
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 fi
14982 rm -f conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LDFLAGS=$save_LDFLAGS
14985 libdir=$save_libdir
14986
14987 # This implies no fast_install, which is unacceptable.
14988 # Some rework will be needed to allow for fast_install
14989 # before this can be enabled.
14990 hardcode_into_libs=yes
14991
14992 # Append ld.so.conf contents to the search path
14993 if test -f /etc/ld.so.conf; then
14994 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' ' '`
14995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14996 fi
14997
14998 # We used to test for /lib/ld.so.1 and disable shared libraries on
14999 # powerpc, because MkLinux only supported shared libraries with the
15000 # GNU dynamic linker. Since this was broken with cross compilers,
15001 # most powerpc-linux boxes support dynamic linking these days and
15002 # people can always --disable-shared, the test was removed, and we
15003 # assume the GNU/Linux dynamic linker is in use.
15004 dynamic_linker='GNU/Linux ld.so'
15005 ;;
15006
15007 netbsd*)
15008 version_type=sunos
15009 need_lib_prefix=no
15010 need_version=no
15011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15014 dynamic_linker='NetBSD (a.out) ld.so'
15015 else
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 dynamic_linker='NetBSD ld.elf_so'
15019 fi
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=yes
15022 hardcode_into_libs=yes
15023 ;;
15024
15025 newsos6)
15026 version_type=linux
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes
15030 ;;
15031
15032 *nto* | *qnx*)
15033 version_type=qnx
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=no
15040 hardcode_into_libs=yes
15041 dynamic_linker='ldqnx.so'
15042 ;;
15043
15044 openbsd*)
15045 version_type=sunos
15046 sys_lib_dlsearch_path_spec="/usr/lib"
15047 need_lib_prefix=no
15048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15049 case $host_os in
15050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15051 *) need_version=no ;;
15052 esac
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15055 shlibpath_var=LD_LIBRARY_PATH
15056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15057 case $host_os in
15058 openbsd2.[89] | openbsd2.[89].*)
15059 shlibpath_overrides_runpath=no
15060 ;;
15061 *)
15062 shlibpath_overrides_runpath=yes
15063 ;;
15064 esac
15065 else
15066 shlibpath_overrides_runpath=yes
15067 fi
15068 ;;
15069
15070 os2*)
15071 libname_spec='$name'
15072 shrext_cmds=".dll"
15073 need_lib_prefix=no
15074 library_names_spec='$libname${shared_ext} $libname.a'
15075 dynamic_linker='OS/2 ld.exe'
15076 shlibpath_var=LIBPATH
15077 ;;
15078
15079 osf3* | osf4* | osf5*)
15080 version_type=osf
15081 need_lib_prefix=no
15082 need_version=no
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15088 ;;
15089
15090 rdos*)
15091 dynamic_linker=no
15092 ;;
15093
15094 solaris*)
15095 version_type=linux
15096 need_lib_prefix=no
15097 need_version=no
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15103 # ldd complains unless libraries are executable
15104 postinstall_cmds='chmod +x $lib'
15105 ;;
15106
15107 sunos4*)
15108 version_type=sunos
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=yes
15113 if test "$with_gnu_ld" = yes; then
15114 need_lib_prefix=no
15115 fi
15116 need_version=yes
15117 ;;
15118
15119 sysv4 | sysv4.3*)
15120 version_type=linux
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 case $host_vendor in
15125 sni)
15126 shlibpath_overrides_runpath=no
15127 need_lib_prefix=no
15128 runpath_var=LD_RUN_PATH
15129 ;;
15130 siemens)
15131 need_lib_prefix=no
15132 ;;
15133 motorola)
15134 need_lib_prefix=no
15135 need_version=no
15136 shlibpath_overrides_runpath=no
15137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15138 ;;
15139 esac
15140 ;;
15141
15142 sysv4*MP*)
15143 if test -d /usr/nec ;then
15144 version_type=linux
15145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15146 soname_spec='$libname${shared_ext}.$major'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 fi
15149 ;;
15150
15151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15152 version_type=freebsd-elf
15153 need_lib_prefix=no
15154 need_version=no
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 shlibpath_var=LD_LIBRARY_PATH
15158 shlibpath_overrides_runpath=yes
15159 hardcode_into_libs=yes
15160 if test "$with_gnu_ld" = yes; then
15161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15162 else
15163 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15164 case $host_os in
15165 sco3.2v5*)
15166 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15167 ;;
15168 esac
15169 fi
15170 sys_lib_dlsearch_path_spec='/usr/lib'
15171 ;;
15172
15173 tpf*)
15174 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15175 version_type=linux
15176 need_lib_prefix=no
15177 need_version=no
15178 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=no
15181 hardcode_into_libs=yes
15182 ;;
15183
15184 uts4*)
15185 version_type=linux
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 ;;
15190
15191 *)
15192 dynamic_linker=no
15193 ;;
15194 esac
15195 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15196 echo "${ECHO_T}$dynamic_linker" >&6
15197 test "$dynamic_linker" = no && can_build_shared=no
15198
15199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15200 if test "$GCC" = yes; then
15201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15202 fi
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15240 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15241 hardcode_action_CXX=
15242 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15243 test -n "$runpath_var_CXX" ||
15244 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15245
15246 # We can hardcode non-existent directories.
15247 if test "$hardcode_direct_CXX" != no &&
15248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15249 # have to relink, otherwise we might link with an installed library
15250 # when we should be linking with a yet-to-be-installed one
15251 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15252 test "$hardcode_minus_L_CXX" != no; then
15253 # Linking always hardcodes the temporary library directory.
15254 hardcode_action_CXX=relink
15255 else
15256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15257 hardcode_action_CXX=immediate
15258 fi
15259 else
15260 # We cannot hardcode anything, or else we can only hardcode existing
15261 # directories.
15262 hardcode_action_CXX=unsupported
15263 fi
15264 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15265 echo "${ECHO_T}$hardcode_action_CXX" >&6
15266
15267 if test "$hardcode_action_CXX" = relink ||
15268 test "$inherit_rpath_CXX" = yes; then
15269 # Fast installation is not supported
15270 enable_fast_install=no
15271 elif test "$shlibpath_overrides_runpath" = yes ||
15272 test "$enable_shared" = no; then
15273 # Fast installation is not necessary
15274 enable_fast_install=needless
15275 fi
15276
15277
15278
15279
15280
15281
15282
15283 fi # test -n "$compiler"
15284
15285 CC=$lt_save_CC
15286 LDCXX=$LD
15287 LD=$lt_save_LD
15288 GCC=$lt_save_GCC
15289 with_gnu_ld=$lt_save_with_gnu_ld
15290 lt_cv_path_LDCXX=$lt_cv_path_LD
15291 lt_cv_path_LD=$lt_save_path_LD
15292 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15293 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15294 fi # test "$_lt_caught_CXX_error" != yes
15295
15296 ac_ext=c
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314 ac_config_commands="$ac_config_commands libtool"
15315
15316
15317
15318
15319 # Only expand once:
15320
15321
15322
15323 for ac_prog in gcj
15324 do
15325 # Extract the first word of "$ac_prog", so it can be a program name with args.
15326 set dummy $ac_prog; ac_word=$2
15327 echo "$as_me:$LINENO: checking for $ac_word" >&5
15328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15329 if test "${ac_cv_prog_GCJ+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332 if test -n "$GCJ"; then
15333 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15334 else
15335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15336 for as_dir in $PATH
15337 do
15338 IFS=$as_save_IFS
15339 test -z "$as_dir" && as_dir=.
15340 for ac_exec_ext in '' $ac_executable_extensions; do
15341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15342 ac_cv_prog_GCJ="$ac_prog"
15343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15344 break 2
15345 fi
15346 done
15347 done
15348
15349 fi
15350 fi
15351 GCJ=$ac_cv_prog_GCJ
15352 if test -n "$GCJ"; then
15353 echo "$as_me:$LINENO: result: $GCJ" >&5
15354 echo "${ECHO_T}$GCJ" >&6
15355 else
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15358 fi
15359
15360 test -n "$GCJ" && break
15361 done
15362 test -n "$GCJ" || GCJ="gcj"
15363
15364 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15365 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15366 { (exit 1); exit 1; }; }
15367 if test "x${GCJFLAGS-unset}" = xunset; then
15368 GCJFLAGS="-g -O2"
15369 fi
15370
15371
15372 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15373
15374 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15375 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15376 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15380 # We make a subdir and do the tests there. Otherwise we can end up
15381 # making bogus files that we don't know about and never remove. For
15382 # instance it was reported that on HP-UX the gcc test will end up
15383 # making a dummy file named `D' -- because `-MD' means `put the output
15384 # in D'.
15385 mkdir conftest.dir
15386 # Copy depcomp to subdir because otherwise we won't find it if we're
15387 # using a relative directory.
15388 cp "$am_depcomp" conftest.dir
15389 cd conftest.dir
15390 # We will build objects and dependencies in a subdirectory because
15391 # it helps to detect inapplicable dependency modes. For instance
15392 # both Tru64's cc and ICC support -MD to output dependencies as a
15393 # side effect of compilation, but ICC will put the dependencies in
15394 # the current directory while Tru64 will put them in the object
15395 # directory.
15396 mkdir sub
15397
15398 am_cv_GCJ_dependencies_compiler_type=none
15399 if test "$am_compiler_list" = ""; then
15400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15401 fi
15402 for depmode in $am_compiler_list; do
15403 # Setup a source with many dependencies, because some compilers
15404 # like to wrap large dependency lists on column 80 (with \), and
15405 # we should not choose a depcomp mode which is confused by this.
15406 #
15407 # We need to recreate these files for each test, as the compiler may
15408 # overwrite some of them when testing with obscure command lines.
15409 # This happens at least with the AIX C compiler.
15410 : > sub/conftest.c
15411 for i in 1 2 3 4 5 6; do
15412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15414 # Solaris 8's {/usr,}/bin/sh.
15415 touch sub/conftst$i.h
15416 done
15417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15418
15419 case $depmode in
15420 nosideeffect)
15421 # after this tag, mechanisms are not by side-effect, so they'll
15422 # only be used when explicitly requested
15423 if test "x$enable_dependency_tracking" = xyes; then
15424 continue
15425 else
15426 break
15427 fi
15428 ;;
15429 none) break ;;
15430 esac
15431 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15432 # mode. It turns out that the SunPro C++ compiler does not properly
15433 # handle `-M -o', and we need to detect this.
15434 if depmode=$depmode \
15435 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15436 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15437 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15438 >/dev/null 2>conftest.err &&
15439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15440 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15442 # icc doesn't choke on unknown options, it will just issue warnings
15443 # or remarks (even with -Werror). So we grep stderr for any message
15444 # that says an option was ignored or not supported.
15445 # When given -MP, icc 7.0 and 7.1 complain thusly:
15446 # icc: Command line warning: ignoring option '-M'; no argument required
15447 # The diagnosis changed in icc 8.0:
15448 # icc: Command line remark: option '-MP' not supported
15449 if (grep 'ignoring option' conftest.err ||
15450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15451 am_cv_GCJ_dependencies_compiler_type=$depmode
15452 break
15453 fi
15454 fi
15455 done
15456
15457 cd ..
15458 rm -rf conftest.dir
15459 else
15460 am_cv_GCJ_dependencies_compiler_type=none
15461 fi
15462
15463 fi
15464 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15465 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15466 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15467
15468
15469
15470 if
15471 test "x$enable_dependency_tracking" != xno \
15472 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15473 am__fastdepGCJ_TRUE=
15474 am__fastdepGCJ_FALSE='#'
15475 else
15476 am__fastdepGCJ_TRUE='#'
15477 am__fastdepGCJ_FALSE=
15478 fi
15479
15480
15481
15482 for ac_prog in gcj
15483 do
15484 # Extract the first word of "$ac_prog", so it can be a program name with args.
15485 set dummy $ac_prog; ac_word=$2
15486 echo "$as_me:$LINENO: checking for $ac_word" >&5
15487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15488 if test "${ac_cv_prog_GCJ+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491 if test -n "$GCJ"; then
15492 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15493 else
15494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15495 for as_dir in $PATH
15496 do
15497 IFS=$as_save_IFS
15498 test -z "$as_dir" && as_dir=.
15499 for ac_exec_ext in '' $ac_executable_extensions; do
15500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15501 ac_cv_prog_GCJ="$ac_prog"
15502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 break 2
15504 fi
15505 done
15506 done
15507
15508 fi
15509 fi
15510 GCJ=$ac_cv_prog_GCJ
15511 if test -n "$GCJ"; then
15512 echo "$as_me:$LINENO: result: $GCJ" >&5
15513 echo "${ECHO_T}$GCJ" >&6
15514 else
15515 echo "$as_me:$LINENO: result: no" >&5
15516 echo "${ECHO_T}no" >&6
15517 fi
15518
15519 test -n "$GCJ" && break
15520 done
15521 test -n "$GCJ" || GCJ="gcj"
15522
15523 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15524 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15525 { (exit 1); exit 1; }; }
15526 if test "x${GCJFLAGS-unset}" = xunset; then
15527 GCJFLAGS="-g -O2"
15528 fi
15529
15530
15531 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15532
15533 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15534 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15535 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15539 # We make a subdir and do the tests there. Otherwise we can end up
15540 # making bogus files that we don't know about and never remove. For
15541 # instance it was reported that on HP-UX the gcc test will end up
15542 # making a dummy file named `D' -- because `-MD' means `put the output
15543 # in D'.
15544 mkdir conftest.dir
15545 # Copy depcomp to subdir because otherwise we won't find it if we're
15546 # using a relative directory.
15547 cp "$am_depcomp" conftest.dir
15548 cd conftest.dir
15549 # We will build objects and dependencies in a subdirectory because
15550 # it helps to detect inapplicable dependency modes. For instance
15551 # both Tru64's cc and ICC support -MD to output dependencies as a
15552 # side effect of compilation, but ICC will put the dependencies in
15553 # the current directory while Tru64 will put them in the object
15554 # directory.
15555 mkdir sub
15556
15557 am_cv_GCJ_dependencies_compiler_type=none
15558 if test "$am_compiler_list" = ""; then
15559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15560 fi
15561 for depmode in $am_compiler_list; do
15562 # Setup a source with many dependencies, because some compilers
15563 # like to wrap large dependency lists on column 80 (with \), and
15564 # we should not choose a depcomp mode which is confused by this.
15565 #
15566 # We need to recreate these files for each test, as the compiler may
15567 # overwrite some of them when testing with obscure command lines.
15568 # This happens at least with the AIX C compiler.
15569 : > sub/conftest.c
15570 for i in 1 2 3 4 5 6; do
15571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15573 # Solaris 8's {/usr,}/bin/sh.
15574 touch sub/conftst$i.h
15575 done
15576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15577
15578 case $depmode in
15579 nosideeffect)
15580 # after this tag, mechanisms are not by side-effect, so they'll
15581 # only be used when explicitly requested
15582 if test "x$enable_dependency_tracking" = xyes; then
15583 continue
15584 else
15585 break
15586 fi
15587 ;;
15588 none) break ;;
15589 esac
15590 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15591 # mode. It turns out that the SunPro C++ compiler does not properly
15592 # handle `-M -o', and we need to detect this.
15593 if depmode=$depmode \
15594 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15596 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15597 >/dev/null 2>conftest.err &&
15598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15599 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15601 # icc doesn't choke on unknown options, it will just issue warnings
15602 # or remarks (even with -Werror). So we grep stderr for any message
15603 # that says an option was ignored or not supported.
15604 # When given -MP, icc 7.0 and 7.1 complain thusly:
15605 # icc: Command line warning: ignoring option '-M'; no argument required
15606 # The diagnosis changed in icc 8.0:
15607 # icc: Command line remark: option '-MP' not supported
15608 if (grep 'ignoring option' conftest.err ||
15609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15610 am_cv_GCJ_dependencies_compiler_type=$depmode
15611 break
15612 fi
15613 fi
15614 done
15615
15616 cd ..
15617 rm -rf conftest.dir
15618 else
15619 am_cv_GCJ_dependencies_compiler_type=none
15620 fi
15621
15622 fi
15623 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15624 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15625 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15626
15627
15628
15629 if
15630 test "x$enable_dependency_tracking" != xno \
15631 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15632 am__fastdepGCJ_TRUE=
15633 am__fastdepGCJ_FALSE='#'
15634 else
15635 am__fastdepGCJ_TRUE='#'
15636 am__fastdepGCJ_FALSE=
15637 fi
15638
15639
15640
15641
15642
15643
15644 # Source file extension for Java test sources.
15645 ac_ext=c
15646
15647 # Object file extension for compiled Java test sources.
15648 objext=o
15649 objext_GCJ=$objext
15650
15651 # Code to be used in simple compile tests
15652 lt_simple_compile_test_code="int some_variable = 0;"
15653
15654 # Code to be used in simple link tests
15655 lt_simple_link_test_code='int main(){return(0);}'
15656
15657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15658
15659
15660
15661
15662
15663
15664 # If no C compiler was specified, use CC.
15665 LTCC=${LTCC-"$CC"}
15666
15667 # If no C compiler flags were specified, use CFLAGS.
15668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15669
15670 # Allow CC to be a program name with arguments.
15671 compiler=$CC
15672
15673
15674 # save warnings/boilerplate of simple test code
15675 ac_outfile=conftest.$ac_objext
15676 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15678 _lt_compiler_boilerplate=`cat conftest.err`
15679 $RM conftest*
15680
15681 ac_outfile=conftest.$ac_objext
15682 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15684 _lt_linker_boilerplate=`cat conftest.err`
15685 $RM conftest*
15686
15687
15688 # Allow CC to be a program name with arguments.
15689 compiler=$CC
15690 compiler_GCJ=$CC
15691 for cc_temp in $compiler""; do
15692 case $cc_temp in
15693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15695 \-*) ;;
15696 *) break;;
15697 esac
15698 done
15699 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15700
15701
15702 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15703 archive_cmds_need_lc_GCJ=no
15704
15705 old_archive_cmds_GCJ=$old_archive_cmds
15706
15707 ## CAVEAT EMPTOR:
15708 ## There is no encapsulation within the following macros, do not change
15709 ## the running order or otherwise move them around unless you know exactly
15710 ## what you are doing...
15711 if test -n "$compiler"; then
15712
15713 lt_prog_compiler_no_builtin_flag_GCJ=
15714
15715 if test "$GCC" = yes; then
15716 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15717
15718 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15719 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15720 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 lt_cv_prog_compiler_rtti_exceptions=no
15724 ac_outfile=conftest.$ac_objext
15725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726 lt_compiler_flag="-fno-rtti -fno-exceptions"
15727 # Insert the option either (1) after the last *FLAGS variable, or
15728 # (2) before a word containing "conftest.", or (3) at the end.
15729 # Note that $ac_compile itself does not contain backslashes and begins
15730 # with a dollar sign (not a hyphen), so the echo should work correctly.
15731 # The option is referenced via a variable to avoid confusing sed.
15732 lt_compile=`echo "$ac_compile" | $SED \
15733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735 -e 's:$: $lt_compiler_flag:'`
15736 (eval echo "\"\$as_me:15736: $lt_compile\"" >&5)
15737 (eval "$lt_compile" 2>conftest.err)
15738 ac_status=$?
15739 cat conftest.err >&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 if (exit $ac_status) && test -s "$ac_outfile"; then
15742 # The compiler can only warn and ignore the option if not recognized
15743 # So say no if there are warnings other than the usual output.
15744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15747 lt_cv_prog_compiler_rtti_exceptions=yes
15748 fi
15749 fi
15750 $RM conftest*
15751
15752 fi
15753 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15754 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15755
15756 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15757 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15758 else
15759 :
15760 fi
15761
15762 fi
15763
15764
15765
15766 lt_prog_compiler_wl_GCJ=
15767 lt_prog_compiler_pic_GCJ=
15768 lt_prog_compiler_static_GCJ=
15769
15770 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15771 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15772
15773 if test "$GCC" = yes; then
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 lt_prog_compiler_static_GCJ='-static'
15776
15777 case $host_os in
15778 aix*)
15779 # All AIX code is PIC.
15780 if test "$host_cpu" = ia64; then
15781 # AIX 5 now supports IA64 processor
15782 lt_prog_compiler_static_GCJ='-Bstatic'
15783 fi
15784 ;;
15785
15786 amigaos*)
15787 if test "$host_cpu" = m68k; then
15788 # FIXME: we need at least 68020 code to build shared libraries, but
15789 # adding the `-m68020' flag to GCC prevents building anything better,
15790 # like `-m68040'.
15791 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15792 fi
15793 ;;
15794
15795 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15796 # PIC is the default for these OSes.
15797 ;;
15798
15799 mingw* | cygwin* | pw32* | os2*)
15800 # This hack is so that the source file can tell whether it is being
15801 # built for inclusion in a dll (and should export symbols for example).
15802 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15803 # (--disable-auto-import) libraries
15804
15805 ;;
15806
15807 darwin* | rhapsody*)
15808 # PIC is the default on this platform
15809 # Common symbols not allowed in MH_DYLIB files
15810 lt_prog_compiler_pic_GCJ='-fno-common'
15811 ;;
15812
15813 hpux*)
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15816 case $host_cpu in
15817 hppa*64*|ia64*)
15818 # +Z the default
15819 ;;
15820 *)
15821 lt_prog_compiler_pic_GCJ='-fPIC'
15822 ;;
15823 esac
15824 ;;
15825
15826 interix[3-9]*)
15827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15828 # Instead, we relocate shared libraries at runtime.
15829 ;;
15830
15831 msdosdjgpp*)
15832 # Just because we use GCC doesn't mean we suddenly get shared libraries
15833 # on systems that don't support them.
15834 lt_prog_compiler_can_build_shared_GCJ=no
15835 enable_shared=no
15836 ;;
15837
15838 *nto* | *qnx*)
15839 # QNX uses GNU C++, but need to define -shared option too, otherwise
15840 # it will coredump.
15841 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15842 ;;
15843
15844 sysv4*MP*)
15845 if test -d /usr/nec; then
15846 lt_prog_compiler_pic_GCJ=-Kconform_pic
15847 fi
15848 ;;
15849
15850 *)
15851 lt_prog_compiler_pic_GCJ='-fPIC'
15852 ;;
15853 esac
15854 else
15855 # PORTME Check for flag to pass linker flags through the system compiler.
15856 case $host_os in
15857 aix*)
15858 lt_prog_compiler_wl_GCJ='-Wl,'
15859 if test "$host_cpu" = ia64; then
15860 # AIX 5 now supports IA64 processor
15861 lt_prog_compiler_static_GCJ='-Bstatic'
15862 else
15863 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15864 fi
15865 ;;
15866 darwin*)
15867 # PIC is the default on this platform
15868 # Common symbols not allowed in MH_DYLIB files
15869 case $cc_basename in
15870 xlc*)
15871 lt_prog_compiler_pic_GCJ='-qnocommon'
15872 lt_prog_compiler_wl_GCJ='-Wl,'
15873 ;;
15874 esac
15875 ;;
15876
15877 mingw* | cygwin* | pw32* | os2*)
15878 # This hack is so that the source file can tell whether it is being
15879 # built for inclusion in a dll (and should export symbols for example).
15880
15881 ;;
15882
15883 hpux9* | hpux10* | hpux11*)
15884 lt_prog_compiler_wl_GCJ='-Wl,'
15885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15886 # not for PA HP-UX.
15887 case $host_cpu in
15888 hppa*64*|ia64*)
15889 # +Z the default
15890 ;;
15891 *)
15892 lt_prog_compiler_pic_GCJ='+Z'
15893 ;;
15894 esac
15895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15896 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15897 ;;
15898
15899 irix5* | irix6* | nonstopux*)
15900 lt_prog_compiler_wl_GCJ='-Wl,'
15901 # PIC (with -KPIC) is the default.
15902 lt_prog_compiler_static_GCJ='-non_shared'
15903 ;;
15904
15905 linux* | k*bsd*-gnu)
15906 case $cc_basename in
15907 icc* | ecc*)
15908 lt_prog_compiler_wl_GCJ='-Wl,'
15909 lt_prog_compiler_pic_GCJ='-KPIC'
15910 lt_prog_compiler_static_GCJ='-static'
15911 ;;
15912 pgcc* | pgf77* | pgf90* | pgf95*)
15913 # Portland Group compilers (*not* the Pentium gcc compiler,
15914 # which looks to be a dead project)
15915 lt_prog_compiler_wl_GCJ='-Wl,'
15916 lt_prog_compiler_pic_GCJ='-fpic'
15917 lt_prog_compiler_static_GCJ='-Bstatic'
15918 ;;
15919 ccc*)
15920 lt_prog_compiler_wl_GCJ='-Wl,'
15921 # All Alpha code is PIC.
15922 lt_prog_compiler_static_GCJ='-non_shared'
15923 ;;
15924 *)
15925 case `$CC -V 2>&1 | sed 5q` in
15926 *Sun\ C*)
15927 # Sun C 5.9
15928 lt_prog_compiler_pic_GCJ='-KPIC'
15929 lt_prog_compiler_static_GCJ='-Bstatic'
15930 lt_prog_compiler_wl_GCJ='-Wl,'
15931 ;;
15932 *Sun\ F*)
15933 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15934 lt_prog_compiler_pic_GCJ='-KPIC'
15935 lt_prog_compiler_static_GCJ='-Bstatic'
15936 lt_prog_compiler_wl_GCJ=''
15937 ;;
15938 esac
15939 ;;
15940 esac
15941 ;;
15942
15943 newsos6)
15944 lt_prog_compiler_pic_GCJ='-KPIC'
15945 lt_prog_compiler_static_GCJ='-Bstatic'
15946 ;;
15947
15948 *nto* | *qnx*)
15949 # QNX uses GNU C++, but need to define -shared option too, otherwise
15950 # it will coredump.
15951 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15952 ;;
15953
15954 osf3* | osf4* | osf5*)
15955 lt_prog_compiler_wl_GCJ='-Wl,'
15956 # All OSF/1 code is PIC.
15957 lt_prog_compiler_static_GCJ='-non_shared'
15958 ;;
15959
15960 rdos*)
15961 lt_prog_compiler_static_GCJ='-non_shared'
15962 ;;
15963
15964 solaris*)
15965 lt_prog_compiler_pic_GCJ='-KPIC'
15966 lt_prog_compiler_static_GCJ='-Bstatic'
15967 case $cc_basename in
15968 f77* | f90* | f95*)
15969 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15970 *)
15971 lt_prog_compiler_wl_GCJ='-Wl,';;
15972 esac
15973 ;;
15974
15975 sunos4*)
15976 lt_prog_compiler_wl_GCJ='-Qoption ld '
15977 lt_prog_compiler_pic_GCJ='-PIC'
15978 lt_prog_compiler_static_GCJ='-Bstatic'
15979 ;;
15980
15981 sysv4 | sysv4.2uw2* | sysv4.3*)
15982 lt_prog_compiler_wl_GCJ='-Wl,'
15983 lt_prog_compiler_pic_GCJ='-KPIC'
15984 lt_prog_compiler_static_GCJ='-Bstatic'
15985 ;;
15986
15987 sysv4*MP*)
15988 if test -d /usr/nec ;then
15989 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15990 lt_prog_compiler_static_GCJ='-Bstatic'
15991 fi
15992 ;;
15993
15994 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15995 lt_prog_compiler_wl_GCJ='-Wl,'
15996 lt_prog_compiler_pic_GCJ='-KPIC'
15997 lt_prog_compiler_static_GCJ='-Bstatic'
15998 ;;
15999
16000 unicos*)
16001 lt_prog_compiler_wl_GCJ='-Wl,'
16002 lt_prog_compiler_can_build_shared_GCJ=no
16003 ;;
16004
16005 uts4*)
16006 lt_prog_compiler_pic_GCJ='-pic'
16007 lt_prog_compiler_static_GCJ='-Bstatic'
16008 ;;
16009
16010 *)
16011 lt_prog_compiler_can_build_shared_GCJ=no
16012 ;;
16013 esac
16014 fi
16015
16016 case $host_os in
16017 # For platforms which do not support PIC, -DPIC is meaningless:
16018 *djgpp*)
16019 lt_prog_compiler_pic_GCJ=
16020 ;;
16021 *)
16022 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16023 ;;
16024 esac
16025 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16026 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16027
16028
16029
16030 #
16031 # Check to make sure the PIC flag actually works.
16032 #
16033 if test -n "$lt_prog_compiler_pic_GCJ"; then
16034 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16035 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16036 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 lt_prog_compiler_pic_works_GCJ=no
16040 ac_outfile=conftest.$ac_objext
16041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16042 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16043 # Insert the option either (1) after the last *FLAGS variable, or
16044 # (2) before a word containing "conftest.", or (3) at the end.
16045 # Note that $ac_compile itself does not contain backslashes and begins
16046 # with a dollar sign (not a hyphen), so the echo should work correctly.
16047 # The option is referenced via a variable to avoid confusing sed.
16048 lt_compile=`echo "$ac_compile" | $SED \
16049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16051 -e 's:$: $lt_compiler_flag:'`
16052 (eval echo "\"\$as_me:16052: $lt_compile\"" >&5)
16053 (eval "$lt_compile" 2>conftest.err)
16054 ac_status=$?
16055 cat conftest.err >&5
16056 echo "$as_me:16056: \$? = $ac_status" >&5
16057 if (exit $ac_status) && test -s "$ac_outfile"; then
16058 # The compiler can only warn and ignore the option if not recognized
16059 # So say no if there are warnings other than the usual output.
16060 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16063 lt_prog_compiler_pic_works_GCJ=yes
16064 fi
16065 fi
16066 $RM conftest*
16067
16068 fi
16069 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16070 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16071
16072 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16073 case $lt_prog_compiler_pic_GCJ in
16074 "" | " "*) ;;
16075 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16076 esac
16077 else
16078 lt_prog_compiler_pic_GCJ=
16079 lt_prog_compiler_can_build_shared_GCJ=no
16080 fi
16081
16082 fi
16083
16084
16085
16086 #
16087 # Check to make sure the static flag actually works.
16088 #
16089 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16090 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16091 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16092 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095 lt_prog_compiler_static_works_GCJ=no
16096 save_LDFLAGS="$LDFLAGS"
16097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16098 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16100 # The linker can only warn and ignore the option if not recognized
16101 # So say no if there are warnings
16102 if test -s conftest.err; then
16103 # Append any errors to the config.log.
16104 cat conftest.err 1>&5
16105 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16107 if diff conftest.exp conftest.er2 >/dev/null; then
16108 lt_prog_compiler_static_works_GCJ=yes
16109 fi
16110 else
16111 lt_prog_compiler_static_works_GCJ=yes
16112 fi
16113 fi
16114 $RM conftest*
16115 LDFLAGS="$save_LDFLAGS"
16116
16117 fi
16118 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16119 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16120
16121 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16122 :
16123 else
16124 lt_prog_compiler_static_GCJ=
16125 fi
16126
16127
16128
16129
16130 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16131 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16132 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 lt_cv_prog_compiler_c_o_GCJ=no
16136 $RM -r conftest 2>/dev/null
16137 mkdir conftest
16138 cd conftest
16139 mkdir out
16140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16141
16142 lt_compiler_flag="-o out/conftest2.$ac_objext"
16143 # Insert the option either (1) after the last *FLAGS variable, or
16144 # (2) before a word containing "conftest.", or (3) at the end.
16145 # Note that $ac_compile itself does not contain backslashes and begins
16146 # with a dollar sign (not a hyphen), so the echo should work correctly.
16147 lt_compile=`echo "$ac_compile" | $SED \
16148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16150 -e 's:$: $lt_compiler_flag:'`
16151 (eval echo "\"\$as_me:16151: $lt_compile\"" >&5)
16152 (eval "$lt_compile" 2>out/conftest.err)
16153 ac_status=$?
16154 cat out/conftest.err >&5
16155 echo "$as_me:16155: \$? = $ac_status" >&5
16156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16157 then
16158 # The compiler can only warn and ignore the option if not recognized
16159 # So say no if there are warnings
16160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16163 lt_cv_prog_compiler_c_o_GCJ=yes
16164 fi
16165 fi
16166 chmod u+w . 2>&5
16167 $RM conftest*
16168 # SGI C++ compiler will create directory out/ii_files/ for
16169 # template instantiation
16170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16171 $RM out/* && rmdir out
16172 cd ..
16173 $RM -r conftest
16174 $RM conftest*
16175
16176 fi
16177 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16178 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16179
16180
16181
16182 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16184 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 lt_cv_prog_compiler_c_o_GCJ=no
16188 $RM -r conftest 2>/dev/null
16189 mkdir conftest
16190 cd conftest
16191 mkdir out
16192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16193
16194 lt_compiler_flag="-o out/conftest2.$ac_objext"
16195 # Insert the option either (1) after the last *FLAGS variable, or
16196 # (2) before a word containing "conftest.", or (3) at the end.
16197 # Note that $ac_compile itself does not contain backslashes and begins
16198 # with a dollar sign (not a hyphen), so the echo should work correctly.
16199 lt_compile=`echo "$ac_compile" | $SED \
16200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16202 -e 's:$: $lt_compiler_flag:'`
16203 (eval echo "\"\$as_me:16203: $lt_compile\"" >&5)
16204 (eval "$lt_compile" 2>out/conftest.err)
16205 ac_status=$?
16206 cat out/conftest.err >&5
16207 echo "$as_me:16207: \$? = $ac_status" >&5
16208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16209 then
16210 # The compiler can only warn and ignore the option if not recognized
16211 # So say no if there are warnings
16212 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16215 lt_cv_prog_compiler_c_o_GCJ=yes
16216 fi
16217 fi
16218 chmod u+w . 2>&5
16219 $RM conftest*
16220 # SGI C++ compiler will create directory out/ii_files/ for
16221 # template instantiation
16222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16223 $RM out/* && rmdir out
16224 cd ..
16225 $RM -r conftest
16226 $RM conftest*
16227
16228 fi
16229 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16230 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16231
16232
16233
16234
16235 hard_links="nottested"
16236 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16237 # do not overwrite the value of need_locks provided by the user
16238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16240 hard_links=yes
16241 $RM conftest*
16242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16243 touch conftest.a
16244 ln conftest.a conftest.b 2>&5 || hard_links=no
16245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16246 echo "$as_me:$LINENO: result: $hard_links" >&5
16247 echo "${ECHO_T}$hard_links" >&6
16248 if test "$hard_links" = no; then
16249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16251 need_locks=warn
16252 fi
16253 else
16254 need_locks=no
16255 fi
16256
16257
16258
16259 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16260 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16261
16262 runpath_var=
16263 allow_undefined_flag_GCJ=
16264 always_export_symbols_GCJ=no
16265 archive_cmds_GCJ=
16266 archive_expsym_cmds_GCJ=
16267 compiler_needs_object_GCJ=no
16268 enable_shared_with_static_runtimes_GCJ=no
16269 export_dynamic_flag_spec_GCJ=
16270 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16271 hardcode_automatic_GCJ=no
16272 hardcode_direct_GCJ=no
16273 hardcode_direct_absolute_GCJ=no
16274 hardcode_libdir_flag_spec_GCJ=
16275 hardcode_libdir_flag_spec_ld_GCJ=
16276 hardcode_libdir_separator_GCJ=
16277 hardcode_minus_L_GCJ=no
16278 hardcode_shlibpath_var_GCJ=unsupported
16279 inherit_rpath_GCJ=no
16280 link_all_deplibs_GCJ=unknown
16281 module_cmds_GCJ=
16282 module_expsym_cmds_GCJ=
16283 old_archive_from_new_cmds_GCJ=
16284 old_archive_from_expsyms_cmds_GCJ=
16285 thread_safe_flag_spec_GCJ=
16286 whole_archive_flag_spec_GCJ=
16287 # include_expsyms should be a list of space-separated symbols to be *always*
16288 # included in the symbol list
16289 include_expsyms_GCJ=
16290 # exclude_expsyms can be an extended regexp of symbols to exclude
16291 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16292 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16293 # as well as any symbol that contains `d'.
16294 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16295 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16296 # platforms (ab)use it in PIC code, but their linkers get confused if
16297 # the symbol is explicitly referenced. Since portable code cannot
16298 # rely on this symbol name, it's probably fine to never include it in
16299 # preloaded symbol tables.
16300 extract_expsyms_cmds=
16301
16302 case $host_os in
16303 cygwin* | mingw* | pw32*)
16304 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16305 # When not using gcc, we currently assume that we are using
16306 # Microsoft Visual C++.
16307 if test "$GCC" != yes; then
16308 with_gnu_ld=no
16309 fi
16310 ;;
16311 interix*)
16312 # we just hope/assume this is gcc and not c89 (= MSVC++)
16313 with_gnu_ld=yes
16314 ;;
16315 openbsd*)
16316 with_gnu_ld=no
16317 ;;
16318 esac
16319
16320 ld_shlibs_GCJ=yes
16321 if test "$with_gnu_ld" = yes; then
16322 # If archive_cmds runs LD, not CC, wlarc should be empty
16323 wlarc='${wl}'
16324
16325 # Set some defaults for GNU ld with shared library support. These
16326 # are reset later if shared libraries are not supported. Putting them
16327 # here allows them to be overridden if necessary.
16328 runpath_var=LD_RUN_PATH
16329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16330 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16331 # ancient GNU ld didn't support --whole-archive et. al.
16332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16333 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16334 else
16335 whole_archive_flag_spec_GCJ=
16336 fi
16337 supports_anon_versioning=no
16338 case `$LD -v 2>&1` in
16339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16342 *\ 2.11.*) ;; # other 2.11 versions
16343 *) supports_anon_versioning=yes ;;
16344 esac
16345
16346 # See if GNU ld supports shared libraries.
16347 case $host_os in
16348 aix[3-9]*)
16349 # On AIX/PPC, the GNU linker is very broken
16350 if test "$host_cpu" != ia64; then
16351 ld_shlibs_GCJ=no
16352 cat <<_LT_EOF 1>&2
16353
16354 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16355 *** to be unable to reliably create shared libraries on AIX.
16356 *** Therefore, libtool is disabling shared libraries support. If you
16357 *** really care for shared libraries, you may want to modify your PATH
16358 *** so that a non-GNU linker is found, and then restart.
16359
16360 _LT_EOF
16361 fi
16362 ;;
16363
16364 amigaos*)
16365 if test "$host_cpu" = m68k; then
16366 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)'
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_minus_L_GCJ=yes
16369 fi
16370
16371 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16372 # that the semantics of dynamic libraries on AmigaOS, at least up
16373 # to version 4, is to share data among multiple programs linked
16374 # with the same dynamic library. Since this doesn't match the
16375 # behavior of shared libraries on other platforms, we can't use
16376 # them.
16377 ld_shlibs_GCJ=no
16378 ;;
16379
16380 beos*)
16381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16382 allow_undefined_flag_GCJ=unsupported
16383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16384 # support --undefined. This deserves some investigation. FIXME
16385 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16386 else
16387 ld_shlibs_GCJ=no
16388 fi
16389 ;;
16390
16391 cygwin* | mingw* | pw32*)
16392 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16393 # as there is no search path for DLLs.
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 allow_undefined_flag_GCJ=unsupported
16396 always_export_symbols_GCJ=no
16397 enable_shared_with_static_runtimes_GCJ=yes
16398 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16399
16400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16402 # If the export-symbols file already is a .def file (1st line
16403 # is EXPORTS), use it as is; otherwise, prepend...
16404 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16405 cp $export_symbols $output_objdir/$soname.def;
16406 else
16407 echo EXPORTS > $output_objdir/$soname.def;
16408 cat $export_symbols >> $output_objdir/$soname.def;
16409 fi~
16410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16411 else
16412 ld_shlibs_GCJ=no
16413 fi
16414 ;;
16415
16416 interix[3-9]*)
16417 hardcode_direct_GCJ=no
16418 hardcode_shlibpath_var_GCJ=no
16419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16420 export_dynamic_flag_spec_GCJ='${wl}-E'
16421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16422 # Instead, shared libraries are loaded at an image base (0x10000000 by
16423 # default) and relocated if they conflict, which is a slow very memory
16424 # consuming and fragmenting process. To avoid this, we pick a random,
16425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16427 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'
16428 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'
16429 ;;
16430
16431 gnu* | linux* | tpf* | k*bsd*-gnu)
16432 tmp_diet=no
16433 if test "$host_os" = linux-dietlibc; then
16434 case $cc_basename in
16435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16436 esac
16437 fi
16438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16439 && test "$tmp_diet" = no
16440 then
16441 tmp_addflag=
16442 case $cc_basename,$host_cpu in
16443 pgcc*) # Portland Group C compiler
16444 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'
16445 tmp_addflag=' $pic_flag'
16446 ;;
16447 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16448 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'
16449 tmp_addflag=' $pic_flag -Mnomain' ;;
16450 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16451 tmp_addflag=' -i_dynamic' ;;
16452 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16453 tmp_addflag=' -i_dynamic -nofor_main' ;;
16454 ifc* | ifort*) # Intel Fortran compiler
16455 tmp_addflag=' -nofor_main' ;;
16456 esac
16457 case `$CC -V 2>&1 | sed 5q` in
16458 *Sun\ C*) # Sun C 5.9
16459 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'
16460 compiler_needs_object_GCJ=yes
16461 tmp_sharedflag='-G' ;;
16462 *Sun\ F*) # Sun Fortran 8.3
16463 tmp_sharedflag='-G' ;;
16464 *)
16465 tmp_sharedflag='-shared' ;;
16466 esac
16467 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16468
16469 if test "x$supports_anon_versioning" = xyes; then
16470 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16472 echo "local: *; };" >> $output_objdir/$libname.ver~
16473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16474 fi
16475 else
16476 ld_shlibs_GCJ=no
16477 fi
16478 ;;
16479
16480 netbsd*)
16481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16482 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16483 wlarc=
16484 else
16485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16486 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16487 fi
16488 ;;
16489
16490 solaris*)
16491 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16492 ld_shlibs_GCJ=no
16493 cat <<_LT_EOF 1>&2
16494
16495 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16496 *** create shared libraries on Solaris systems. Therefore, libtool
16497 *** is disabling shared libraries support. We urge you to upgrade GNU
16498 *** binutils to release 2.9.1 or newer. Another option is to modify
16499 *** your PATH or compiler configuration so that the native linker is
16500 *** used, and then restart.
16501
16502 _LT_EOF
16503 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16506 else
16507 ld_shlibs_GCJ=no
16508 fi
16509 ;;
16510
16511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16512 case `$LD -v 2>&1` in
16513 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16514 ld_shlibs_GCJ=no
16515 cat <<_LT_EOF 1>&2
16516
16517 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16518 *** reliably create shared libraries on SCO systems. Therefore, libtool
16519 *** is disabling shared libraries support. We urge you to upgrade GNU
16520 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16521 *** your PATH or compiler configuration so that the native linker is
16522 *** used, and then restart.
16523
16524 _LT_EOF
16525 ;;
16526 *)
16527 # For security reasons, it is highly recommended that you always
16528 # use absolute paths for naming shared libraries, and exclude the
16529 # DT_RUNPATH tag from executables and libraries. But doing so
16530 # requires that you compile everything twice, which is a pain.
16531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16533 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16534 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16535 else
16536 ld_shlibs_GCJ=no
16537 fi
16538 ;;
16539 esac
16540 ;;
16541
16542 sunos4*)
16543 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16544 wlarc=
16545 hardcode_direct_GCJ=yes
16546 hardcode_shlibpath_var_GCJ=no
16547 ;;
16548
16549 *)
16550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16553 else
16554 ld_shlibs_GCJ=no
16555 fi
16556 ;;
16557 esac
16558
16559 if test "$ld_shlibs_GCJ" = no; then
16560 runpath_var=
16561 hardcode_libdir_flag_spec_GCJ=
16562 export_dynamic_flag_spec_GCJ=
16563 whole_archive_flag_spec_GCJ=
16564 fi
16565 else
16566 # PORTME fill in a description of your system's linker (not GNU ld)
16567 case $host_os in
16568 aix3*)
16569 allow_undefined_flag_GCJ=unsupported
16570 always_export_symbols_GCJ=yes
16571 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'
16572 # Note: this linker hardcodes the directories in LIBPATH if there
16573 # are no directories specified by -L.
16574 hardcode_minus_L_GCJ=yes
16575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16576 # Neither direct hardcoding nor static linking is supported with a
16577 # broken collect2.
16578 hardcode_direct_GCJ=unsupported
16579 fi
16580 ;;
16581
16582 aix[4-9]*)
16583 if test "$host_cpu" = ia64; then
16584 # On IA64, the linker does run time linking by default, so we don't
16585 # have to do anything special.
16586 aix_use_runtimelinking=no
16587 exp_sym_flag='-Bexport'
16588 no_entry_flag=""
16589 else
16590 # If we're using GNU nm, then we don't want the "-C" option.
16591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16593 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'
16594 else
16595 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'
16596 fi
16597 aix_use_runtimelinking=no
16598
16599 # Test if we are trying to use run time linking or normal
16600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16601 # need to do runtime linking.
16602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16603 for ld_flag in $LDFLAGS; do
16604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16605 aix_use_runtimelinking=yes
16606 break
16607 fi
16608 done
16609 ;;
16610 esac
16611
16612 exp_sym_flag='-bexport'
16613 no_entry_flag='-bnoentry'
16614 fi
16615
16616 # When large executables or shared objects are built, AIX ld can
16617 # have problems creating the table of contents. If linking a library
16618 # or program results in "error TOC overflow" add -mminimal-toc to
16619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16621
16622 archive_cmds_GCJ=''
16623 hardcode_direct_GCJ=yes
16624 hardcode_direct_absolute_GCJ=yes
16625 hardcode_libdir_separator_GCJ=':'
16626 link_all_deplibs_GCJ=yes
16627 file_list_spec_GCJ='${wl}-f,'
16628
16629 if test "$GCC" = yes; then
16630 case $host_os in aix4.[012]|aix4.[012].*)
16631 # We only want to do this on AIX 4.2 and lower, the check
16632 # below for broken collect2 doesn't work under 4.3+
16633 collect2name=`${CC} -print-prog-name=collect2`
16634 if test -f "$collect2name" &&
16635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16636 then
16637 # We have reworked collect2
16638 :
16639 else
16640 # We have old collect2
16641 hardcode_direct_GCJ=unsupported
16642 # It fails to find uninstalled libraries when the uninstalled
16643 # path is not listed in the libpath. Setting hardcode_minus_L
16644 # to unsupported forces relinking
16645 hardcode_minus_L_GCJ=yes
16646 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647 hardcode_libdir_separator_GCJ=
16648 fi
16649 ;;
16650 esac
16651 shared_flag='-shared'
16652 if test "$aix_use_runtimelinking" = yes; then
16653 shared_flag="$shared_flag "'${wl}-G'
16654 fi
16655 else
16656 # not using gcc
16657 if test "$host_cpu" = ia64; then
16658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16659 # chokes on -Wl,-G. The following line is correct:
16660 shared_flag='-G'
16661 else
16662 if test "$aix_use_runtimelinking" = yes; then
16663 shared_flag='${wl}-G'
16664 else
16665 shared_flag='${wl}-bM:SRE'
16666 fi
16667 fi
16668 fi
16669
16670 # It seems that -bexpall does not export symbols beginning with
16671 # underscore (_), so it is better to generate a list of symbols to export.
16672 always_export_symbols_GCJ=yes
16673 if test "$aix_use_runtimelinking" = yes; then
16674 # Warning - without using the other runtime loading flags (-brtl),
16675 # -berok will link without error, but may produce a broken library.
16676 allow_undefined_flag_GCJ='-berok'
16677 # Determine the default libpath from the value encoded in an
16678 # empty executable.
16679 if test x$gcc_no_link = xyes; then
16680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16682 { (exit 1); exit 1; }; }
16683 fi
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690
16691 int
16692 main ()
16693 {
16694
16695 ;
16696 return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721
16722 lt_aix_libpath_sed='
16723 /Import File Strings/,/^$/ {
16724 /^0/ {
16725 s/^0 *\(.*\)$/\1/
16726 p
16727 }
16728 }'
16729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16730 # Check for a 64-bit object if we didn't find anything.
16731 if test -z "$aix_libpath"; then
16732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16733 fi
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 fi
16739 rm -f conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16742
16743 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16744 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"
16745 else
16746 if test "$host_cpu" = ia64; then
16747 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16748 allow_undefined_flag_GCJ="-z nodefs"
16749 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"
16750 else
16751 # Determine the default libpath from the value encoded in an
16752 # empty executable.
16753 if test x$gcc_no_link = xyes; then
16754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16756 { (exit 1); exit 1; }; }
16757 fi
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764
16765 int
16766 main ()
16767 {
16768
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775 (eval $ac_link) 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag"
16783 || test ! -s conftest.err'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest$ac_exeext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795
16796 lt_aix_libpath_sed='
16797 /Import File Strings/,/^$/ {
16798 /^0/ {
16799 s/^0 *\(.*\)$/\1/
16800 p
16801 }
16802 }'
16803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16804 # Check for a 64-bit object if we didn't find anything.
16805 if test -z "$aix_libpath"; then
16806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16807 fi
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 fi
16813 rm -f conftest.err conftest.$ac_objext \
16814 conftest$ac_exeext conftest.$ac_ext
16815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16816
16817 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16818 # Warning - without using the other run time loading flags,
16819 # -berok will link without error, but may produce a broken library.
16820 no_undefined_flag_GCJ=' ${wl}-bernotok'
16821 allow_undefined_flag_GCJ=' ${wl}-berok'
16822 # Exported symbols can be pulled into shared objects from archives
16823 whole_archive_flag_spec_GCJ='$convenience'
16824 archive_cmds_need_lc_GCJ=yes
16825 # This is similar to how AIX traditionally builds its shared libraries.
16826 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'
16827 fi
16828 fi
16829 ;;
16830
16831 amigaos*)
16832 if test "$host_cpu" = m68k; then
16833 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)'
16834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16835 hardcode_minus_L_GCJ=yes
16836 fi
16837 # see comment about different semantics on the GNU ld section
16838 ld_shlibs_GCJ=no
16839 ;;
16840
16841 bsdi[45]*)
16842 export_dynamic_flag_spec_GCJ=-rdynamic
16843 ;;
16844
16845 cygwin* | mingw* | pw32*)
16846 # When not using gcc, we currently assume that we are using
16847 # Microsoft Visual C++.
16848 # hardcode_libdir_flag_spec is actually meaningless, as there is
16849 # no search path for DLLs.
16850 hardcode_libdir_flag_spec_GCJ=' '
16851 allow_undefined_flag_GCJ=unsupported
16852 # Tell ltmain to make .lib files, not .a files.
16853 libext=lib
16854 # Tell ltmain to make .dll files, not .so files.
16855 shrext_cmds=".dll"
16856 # FIXME: Setting linknames here is a bad hack.
16857 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16858 # The linker will automatically build a .lib file if we build a DLL.
16859 old_archive_from_new_cmds_GCJ='true'
16860 # FIXME: Should let the user specify the lib program.
16861 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16862 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16863 enable_shared_with_static_runtimes_GCJ=yes
16864 ;;
16865
16866 darwin* | rhapsody*)
16867 case $host_os in
16868 rhapsody* | darwin1.[012])
16869 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16870 ;;
16871 *) # Darwin 1.3 on
16872 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16873 10.[012])
16874 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16875 ;;
16876 10.*)
16877 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16878 ;;
16879 esac
16880 ;;
16881 esac
16882 archive_cmds_need_lc_GCJ=no
16883 hardcode_direct_GCJ=no
16884 hardcode_automatic_GCJ=yes
16885 hardcode_shlibpath_var_GCJ=unsupported
16886 whole_archive_flag_spec_GCJ=''
16887 link_all_deplibs_GCJ=yes
16888 if test "$GCC" = yes ; then
16889 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892 lt_cv_apple_cc_single_mod=no
16893 if test -z "${LT_MULTI_MODULE}"; then
16894 # By default we will add the -single_module flag. You can override
16895 # by either setting the environment variable LT_MULTI_MODULE
16896 # non-empty at configure time, or by adding -multi-module to the
16897 # link flags.
16898 echo "int foo(void){return 1;}" > conftest.c
16899 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16900 -dynamiclib ${wl}-single_module conftest.c
16901 if test -f libconftest.dylib; then
16902 lt_cv_apple_cc_single_mod=yes
16903 rm libconftest.dylib
16904 fi
16905 rm conftest.$ac_ext
16906 fi
16907 fi
16908
16909 output_verbose_link_cmd=echo
16910 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16911 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16912 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}'
16913 else
16914 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16915 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}'
16916 fi
16917 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16918 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}'
16919 else
16920 case $cc_basename in
16921 xlc*)
16922 output_verbose_link_cmd=echo
16923 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16924 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16926 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}'
16927 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}'
16928 ;;
16929 *)
16930 ld_shlibs_GCJ=no
16931 ;;
16932 esac
16933 fi
16934 ;;
16935
16936 dgux*)
16937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16939 hardcode_shlibpath_var_GCJ=no
16940 ;;
16941
16942 freebsd1*)
16943 ld_shlibs_GCJ=no
16944 ;;
16945
16946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16947 # support. Future versions do this automatically, but an explicit c++rt0.o
16948 # does not break anything, and helps significantly (at the cost of a little
16949 # extra space).
16950 freebsd2.2*)
16951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16952 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16953 hardcode_direct_GCJ=yes
16954 hardcode_shlibpath_var_GCJ=no
16955 ;;
16956
16957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16958 freebsd2*)
16959 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16960 hardcode_direct_GCJ=yes
16961 hardcode_minus_L_GCJ=yes
16962 hardcode_shlibpath_var_GCJ=no
16963 ;;
16964
16965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16966 freebsd* | dragonfly*)
16967 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16969 hardcode_direct_GCJ=yes
16970 hardcode_shlibpath_var_GCJ=no
16971 ;;
16972
16973 hpux9*)
16974 if test "$GCC" = yes; then
16975 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'
16976 else
16977 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'
16978 fi
16979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16980 hardcode_libdir_separator_GCJ=:
16981 hardcode_direct_GCJ=yes
16982
16983 # hardcode_minus_L: Not really in the search PATH,
16984 # but as the default location of the library.
16985 hardcode_minus_L_GCJ=yes
16986 export_dynamic_flag_spec_GCJ='${wl}-E'
16987 ;;
16988
16989 hpux10*)
16990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16991 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992 else
16993 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16994 fi
16995 if test "$with_gnu_ld" = no; then
16996 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16997 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16998 hardcode_libdir_separator_GCJ=:
16999 hardcode_direct_GCJ=yes
17000 hardcode_direct_absolute_GCJ=yes
17001 export_dynamic_flag_spec_GCJ='${wl}-E'
17002 # hardcode_minus_L: Not really in the search PATH,
17003 # but as the default location of the library.
17004 hardcode_minus_L_GCJ=yes
17005 fi
17006 ;;
17007
17008 hpux11*)
17009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17010 case $host_cpu in
17011 hppa*64*)
17012 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 ;;
17014 ia64*)
17015 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17016 ;;
17017 *)
17018 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17019 ;;
17020 esac
17021 else
17022 case $host_cpu in
17023 hppa*64*)
17024 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 ;;
17026 ia64*)
17027 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17028 ;;
17029 *)
17030 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17031 ;;
17032 esac
17033 fi
17034 if test "$with_gnu_ld" = no; then
17035 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17036 hardcode_libdir_separator_GCJ=:
17037
17038 case $host_cpu in
17039 hppa*64*|ia64*)
17040 hardcode_direct_GCJ=no
17041 hardcode_shlibpath_var_GCJ=no
17042 ;;
17043 *)
17044 hardcode_direct_GCJ=yes
17045 hardcode_direct_absolute_GCJ=yes
17046 export_dynamic_flag_spec_GCJ='${wl}-E'
17047
17048 # hardcode_minus_L: Not really in the search PATH,
17049 # but as the default location of the library.
17050 hardcode_minus_L_GCJ=yes
17051 ;;
17052 esac
17053 fi
17054 ;;
17055
17056 irix5* | irix6* | nonstopux*)
17057 if test "$GCC" = yes; then
17058 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'
17059 # Try to use the -exported_symbol ld option, if it does not
17060 # work, assume that -exports_file does not work either and
17061 # implicitly export all symbols.
17062 save_LDFLAGS="$LDFLAGS"
17063 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17064 if test x$gcc_no_link = xyes; then
17065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17067 { (exit 1); exit 1; }; }
17068 fi
17069 cat >conftest.$ac_ext <<_ACEOF
17070 int foo(void) {}
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 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'
17095
17096 else
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 fi
17101 rm -f conftest.err conftest.$ac_objext \
17102 conftest$ac_exeext conftest.$ac_ext
17103 LDFLAGS="$save_LDFLAGS"
17104 else
17105 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'
17106 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'
17107 fi
17108 archive_cmds_need_lc_GCJ='no'
17109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17110 hardcode_libdir_separator_GCJ=:
17111 inherit_rpath_GCJ=yes
17112 link_all_deplibs_GCJ=yes
17113 ;;
17114
17115 netbsd*)
17116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17118 else
17119 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17120 fi
17121 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17122 hardcode_direct_GCJ=yes
17123 hardcode_shlibpath_var_GCJ=no
17124 ;;
17125
17126 newsos6)
17127 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_direct_GCJ=yes
17129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17130 hardcode_libdir_separator_GCJ=:
17131 hardcode_shlibpath_var_GCJ=no
17132 ;;
17133
17134 *nto* | *qnx*)
17135 ;;
17136
17137 openbsd*)
17138 hardcode_direct_GCJ=yes
17139 hardcode_shlibpath_var_GCJ=no
17140 hardcode_direct_absolute_GCJ=yes
17141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17142 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17143 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17144 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17145 export_dynamic_flag_spec_GCJ='${wl}-E'
17146 else
17147 case $host_os in
17148 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17150 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17151 ;;
17152 *)
17153 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17154 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17155 ;;
17156 esac
17157 fi
17158 ;;
17159
17160 os2*)
17161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17162 hardcode_minus_L_GCJ=yes
17163 allow_undefined_flag_GCJ=unsupported
17164 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'
17165 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17166 ;;
17167
17168 osf3*)
17169 if test "$GCC" = yes; then
17170 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17171 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'
17172 else
17173 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17174 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'
17175 fi
17176 archive_cmds_need_lc_GCJ='no'
17177 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17178 hardcode_libdir_separator_GCJ=:
17179 ;;
17180
17181 osf4* | osf5*) # as osf3* with the addition of -msym flag
17182 if test "$GCC" = yes; then
17183 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17184 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'
17185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17186 else
17187 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17188 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'
17189 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~
17190 $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'
17191
17192 # Both c and cxx compiler support -rpath directly
17193 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17194 fi
17195 archive_cmds_need_lc_GCJ='no'
17196 hardcode_libdir_separator_GCJ=:
17197 ;;
17198
17199 solaris*)
17200 no_undefined_flag_GCJ=' -z defs'
17201 if test "$GCC" = yes; then
17202 wlarc='${wl}'
17203 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17206 else
17207 case `$CC -V 2>&1` in
17208 *"Compilers 5.0"*)
17209 wlarc=''
17210 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17211 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17213 ;;
17214 *)
17215 wlarc='${wl}'
17216 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17217 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17219 ;;
17220 esac
17221 fi
17222 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17223 hardcode_shlibpath_var_GCJ=no
17224 case $host_os in
17225 solaris2.[0-5] | solaris2.[0-5].*) ;;
17226 *)
17227 # The compiler driver will combine and reorder linker options,
17228 # but understands `-z linker_flag'. GCC discards it without `$wl',
17229 # but is careful enough not to reorder.
17230 # Supported since Solaris 2.6 (maybe 2.5.1?)
17231 if test "$GCC" = yes; then
17232 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17233 else
17234 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17235 fi
17236 ;;
17237 esac
17238 link_all_deplibs_GCJ=yes
17239 ;;
17240
17241 sunos4*)
17242 if test "x$host_vendor" = xsequent; then
17243 # Use $CC to link under sequent, because it throws in some extra .o
17244 # files that make .init and .fini sections work.
17245 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17246 else
17247 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17248 fi
17249 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17250 hardcode_direct_GCJ=yes
17251 hardcode_minus_L_GCJ=yes
17252 hardcode_shlibpath_var_GCJ=no
17253 ;;
17254
17255 sysv4)
17256 case $host_vendor in
17257 sni)
17258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259 hardcode_direct_GCJ=yes # is this really true???
17260 ;;
17261 siemens)
17262 ## LD is ld it makes a PLAMLIB
17263 ## CC just makes a GrossModule.
17264 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17265 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17266 hardcode_direct_GCJ=no
17267 ;;
17268 motorola)
17269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17270 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17271 ;;
17272 esac
17273 runpath_var='LD_RUN_PATH'
17274 hardcode_shlibpath_var_GCJ=no
17275 ;;
17276
17277 sysv4.3*)
17278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279 hardcode_shlibpath_var_GCJ=no
17280 export_dynamic_flag_spec_GCJ='-Bexport'
17281 ;;
17282
17283 sysv4*MP*)
17284 if test -d /usr/nec; then
17285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17286 hardcode_shlibpath_var_GCJ=no
17287 runpath_var=LD_RUN_PATH
17288 hardcode_runpath_var=yes
17289 ld_shlibs_GCJ=yes
17290 fi
17291 ;;
17292
17293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17294 no_undefined_flag_GCJ='${wl}-z,text'
17295 archive_cmds_need_lc_GCJ=no
17296 hardcode_shlibpath_var_GCJ=no
17297 runpath_var='LD_RUN_PATH'
17298
17299 if test "$GCC" = yes; then
17300 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17301 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 else
17303 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17304 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17305 fi
17306 ;;
17307
17308 sysv5* | sco3.2v5* | sco5v6*)
17309 # Note: We can NOT use -z defs as we might desire, because we do not
17310 # link with -lc, and that would cause any symbols used from libc to
17311 # always be unresolved, which means just about no library would
17312 # ever link correctly. If we're not using GNU ld we use -z text
17313 # though, which does catch some bad symbols but isn't as heavy-handed
17314 # as -z defs.
17315 no_undefined_flag_GCJ='${wl}-z,text'
17316 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17317 archive_cmds_need_lc_GCJ=no
17318 hardcode_shlibpath_var_GCJ=no
17319 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17320 hardcode_libdir_separator_GCJ=':'
17321 link_all_deplibs_GCJ=yes
17322 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17323 runpath_var='LD_RUN_PATH'
17324
17325 if test "$GCC" = yes; then
17326 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 else
17329 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 fi
17332 ;;
17333
17334 uts4*)
17335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17337 hardcode_shlibpath_var_GCJ=no
17338 ;;
17339
17340 *)
17341 ld_shlibs_GCJ=no
17342 ;;
17343 esac
17344
17345 if test x$host_vendor = xsni; then
17346 case $host in
17347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17348 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17349 ;;
17350 esac
17351 fi
17352 fi
17353
17354 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17355 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17356 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17357
17358 with_gnu_ld_GCJ=$with_gnu_ld
17359
17360
17361
17362
17363
17364
17365 #
17366 # Do we need to explicitly link libc?
17367 #
17368 case "x$archive_cmds_need_lc_GCJ" in
17369 x|xyes)
17370 # Assume -lc should be added
17371 archive_cmds_need_lc_GCJ=yes
17372
17373 if test "$enable_shared" = yes && test "$GCC" = yes; then
17374 case $archive_cmds_GCJ in
17375 *'~'*)
17376 # FIXME: we may have to deal with multi-command sequences.
17377 ;;
17378 '$CC '*)
17379 # Test whether the compiler implicitly links with -lc since on some
17380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17381 # to ld, don't add -lc before -lgcc.
17382 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17383 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17384 $RM conftest*
17385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17386
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388 (eval $ac_compile) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } 2>conftest.err; then
17392 soname=conftest
17393 lib=conftest
17394 libobjs=conftest.$ac_objext
17395 deplibs=
17396 wl=$lt_prog_compiler_wl_GCJ
17397 pic_flag=$lt_prog_compiler_pic_GCJ
17398 compiler_flags=-v
17399 linker_flags=-v
17400 verstring=
17401 output_objdir=.
17402 libname=conftest
17403 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17404 allow_undefined_flag_GCJ=
17405 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17406 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }
17410 then
17411 archive_cmds_need_lc_GCJ=no
17412 else
17413 archive_cmds_need_lc_GCJ=yes
17414 fi
17415 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17416 else
17417 cat conftest.err 1>&5
17418 fi
17419 $RM conftest*
17420 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17421 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17422 ;;
17423 esac
17424 fi
17425 ;;
17426 esac
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17492 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17493 withGCC=$GCC
17494 library_names_spec=
17495 libname_spec='lib$name'
17496 soname_spec=
17497 shrext_cmds=".so"
17498 postinstall_cmds=
17499 postuninstall_cmds=
17500 finish_cmds=
17501 finish_eval=
17502 shlibpath_var=
17503 shlibpath_overrides_runpath=unknown
17504 version_type=none
17505 dynamic_linker="$host_os ld.so"
17506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17507 need_lib_prefix=unknown
17508 hardcode_into_libs=no
17509
17510 # when you set need_version to no, make sure it does not cause -set_version
17511 # flags to be left without arguments
17512 need_version=unknown
17513
17514 case $host_os in
17515 aix3*)
17516 version_type=linux
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17518 shlibpath_var=LIBPATH
17519
17520 # AIX 3 has no versioning support, so we append a major version to the name.
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 ;;
17523
17524 aix[4-9]*)
17525 version_type=linux
17526 need_lib_prefix=no
17527 need_version=no
17528 hardcode_into_libs=yes
17529 if test "$host_cpu" = ia64; then
17530 # AIX 5 supports IA64
17531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 else
17534 # With GCC up to 2.95.x, collect2 would create an import file
17535 # for dependence libraries. The import file would start with
17536 # the line `#! .'. This would cause the generated library to
17537 # depend on `.', always an invalid library. This was fixed in
17538 # development snapshots of GCC prior to 3.0.
17539 case $host_os in
17540 aix4 | aix4.[01] | aix4.[01].*)
17541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17542 echo ' yes '
17543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17544 :
17545 else
17546 can_build_shared=no
17547 fi
17548 ;;
17549 esac
17550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17551 # soname into executable. Probably we can add versioning support to
17552 # collect2, so additional links can be useful in future.
17553 if test "$aix_use_runtimelinking" = yes; then
17554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17555 # instead of lib<name>.a to let people know that these are not
17556 # typical AIX shared libraries.
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 else
17559 # We preserve .a as extension for shared libraries through AIX4.2
17560 # and later when we are not doing run time linking.
17561 library_names_spec='${libname}${release}.a $libname.a'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 fi
17564 shlibpath_var=LIBPATH
17565 fi
17566 ;;
17567
17568 amigaos*)
17569 if test "$host_cpu" = m68k; then
17570 library_names_spec='$libname.ixlibrary $libname.a'
17571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17572 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'
17573 else
17574 dynamic_linker=no
17575 fi
17576 ;;
17577
17578 beos*)
17579 library_names_spec='${libname}${shared_ext}'
17580 dynamic_linker="$host_os ld.so"
17581 shlibpath_var=LIBRARY_PATH
17582 ;;
17583
17584 bsdi[45]*)
17585 version_type=linux
17586 need_version=no
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17593 # the default ld.so.conf also contains /usr/contrib/lib and
17594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17595 # libtool to hard-code these into programs
17596 ;;
17597
17598 cygwin* | mingw* | pw32*)
17599 version_type=windows
17600 shrext_cmds=".dll"
17601 need_version=no
17602 need_lib_prefix=no
17603
17604 case $withGCC,$host_os in
17605 yes,cygwin* | yes,mingw* | yes,pw32*)
17606 library_names_spec='$libname.dll.a'
17607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17608 postinstall_cmds='base_file=`basename \${file}`~
17609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17610 dldir=$destdir/`dirname \$dlpath`~
17611 test -d \$dldir || mkdir -p \$dldir~
17612 $install_prog $dir/$dlname \$dldir/$dlname~
17613 chmod a+x \$dldir/$dlname~
17614 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17615 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17616 fi'
17617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17618 dlpath=$dir/\$dldll~
17619 $RM \$dlpath'
17620 shlibpath_overrides_runpath=yes
17621
17622 case $host_os in
17623 cygwin*)
17624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17626 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17627 ;;
17628 mingw*)
17629 # MinGW DLLs use traditional 'lib' prefix
17630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17631 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17632 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17633 # It is most probably a Windows format PATH printed by
17634 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17635 # path with ; separators, and with drive letters. We can handle the
17636 # drive letters (cygwin fileutils understands them), so leave them,
17637 # especially as we might pass files found there to a mingw objdump,
17638 # which wouldn't understand a cygwinified path. Ahh.
17639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17640 else
17641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17642 fi
17643 ;;
17644 pw32*)
17645 # pw32 DLLs use 'pw' prefix rather than 'lib'
17646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17647 ;;
17648 esac
17649 ;;
17650
17651 *)
17652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17653 ;;
17654 esac
17655 dynamic_linker='Win32 ld.exe'
17656 # FIXME: first we should search . and the directory the executable is in
17657 shlibpath_var=PATH
17658 ;;
17659
17660 darwin* | rhapsody*)
17661 dynamic_linker="$host_os dyld"
17662 version_type=darwin
17663 need_lib_prefix=no
17664 need_version=no
17665 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17666 soname_spec='${libname}${release}${major}$shared_ext'
17667 shlibpath_overrides_runpath=yes
17668 shlibpath_var=DYLD_LIBRARY_PATH
17669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17670
17671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17672 ;;
17673
17674 dgux*)
17675 version_type=linux
17676 need_lib_prefix=no
17677 need_version=no
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 ;;
17682
17683 freebsd1*)
17684 dynamic_linker=no
17685 ;;
17686
17687 freebsd* | dragonfly*)
17688 # DragonFly does not have aout. When/if they implement a new
17689 # versioning mechanism, adjust this.
17690 if test -x /usr/bin/objformat; then
17691 objformat=`/usr/bin/objformat`
17692 else
17693 case $host_os in
17694 freebsd[123]*) objformat=aout ;;
17695 *) objformat=elf ;;
17696 esac
17697 fi
17698 version_type=freebsd-$objformat
17699 case $version_type in
17700 freebsd-elf*)
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17702 need_version=no
17703 need_lib_prefix=no
17704 ;;
17705 freebsd-*)
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17707 need_version=yes
17708 ;;
17709 esac
17710 shlibpath_var=LD_LIBRARY_PATH
17711 case $host_os in
17712 freebsd2*)
17713 shlibpath_overrides_runpath=yes
17714 ;;
17715 freebsd3.[01]* | freebsdelf3.[01]*)
17716 shlibpath_overrides_runpath=yes
17717 hardcode_into_libs=yes
17718 ;;
17719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17721 shlibpath_overrides_runpath=no
17722 hardcode_into_libs=yes
17723 ;;
17724 *) # from 4.6 on, and DragonFly
17725 shlibpath_overrides_runpath=yes
17726 hardcode_into_libs=yes
17727 ;;
17728 esac
17729 ;;
17730
17731 gnu*)
17732 version_type=linux
17733 need_lib_prefix=no
17734 need_version=no
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 shlibpath_var=LD_LIBRARY_PATH
17738 hardcode_into_libs=yes
17739 ;;
17740
17741 hpux9* | hpux10* | hpux11*)
17742 # Give a soname corresponding to the major version so that dld.sl refuses to
17743 # link against other versions.
17744 version_type=sunos
17745 need_lib_prefix=no
17746 need_version=no
17747 case $host_cpu in
17748 ia64*)
17749 shrext_cmds='.so'
17750 hardcode_into_libs=yes
17751 dynamic_linker="$host_os dld.so"
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 if test "X$HPUX_IA64_MODE" = X32; then
17757 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17758 else
17759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17760 fi
17761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17762 ;;
17763 hppa*64*)
17764 shrext_cmds='.sl'
17765 hardcode_into_libs=yes
17766 dynamic_linker="$host_os dld.sl"
17767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17773 ;;
17774 *)
17775 shrext_cmds='.sl'
17776 dynamic_linker="$host_os dld.sl"
17777 shlibpath_var=SHLIB_PATH
17778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780 soname_spec='${libname}${release}${shared_ext}$major'
17781 ;;
17782 esac
17783 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17784 postinstall_cmds='chmod 555 $lib'
17785 ;;
17786
17787 interix[3-9]*)
17788 version_type=linux
17789 need_lib_prefix=no
17790 need_version=no
17791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=no
17796 hardcode_into_libs=yes
17797 ;;
17798
17799 irix5* | irix6* | nonstopux*)
17800 case $host_os in
17801 nonstopux*) version_type=nonstopux ;;
17802 *)
17803 if test "$lt_cv_prog_gnu_ld" = yes; then
17804 version_type=linux
17805 else
17806 version_type=irix
17807 fi ;;
17808 esac
17809 need_lib_prefix=no
17810 need_version=no
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17813 case $host_os in
17814 irix5* | nonstopux*)
17815 libsuff= shlibsuff=
17816 ;;
17817 *)
17818 case $LD in # libtool.m4 will add one of these switches to LD
17819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17820 libsuff= shlibsuff= libmagic=32-bit;;
17821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17822 libsuff=32 shlibsuff=N32 libmagic=N32;;
17823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17825 *) libsuff= shlibsuff= libmagic=never-match;;
17826 esac
17827 ;;
17828 esac
17829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17830 shlibpath_overrides_runpath=no
17831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17833 hardcode_into_libs=yes
17834 ;;
17835
17836 # No shared lib support for Linux oldld, aout, or coff.
17837 linux*oldld* | linux*aout* | linux*coff*)
17838 dynamic_linker=no
17839 ;;
17840
17841 # This must be Linux ELF.
17842 linux* | k*bsd*-gnu)
17843 version_type=linux
17844 need_lib_prefix=no
17845 need_version=no
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=no
17851 # Some binutils ld are patched to set DT_RUNPATH
17852 save_LDFLAGS=$LDFLAGS
17853 save_libdir=$libdir
17854 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17855 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17856 if test x$gcc_no_link = xyes; then
17857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17859 { (exit 1); exit 1; }; }
17860 fi
17861 cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h. */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17867
17868 int
17869 main ()
17870 {
17871
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17899 shlibpath_overrides_runpath=yes
17900 fi
17901
17902 else
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 fi
17907 rm -f conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909 LDFLAGS=$save_LDFLAGS
17910 libdir=$save_libdir
17911
17912 # This implies no fast_install, which is unacceptable.
17913 # Some rework will be needed to allow for fast_install
17914 # before this can be enabled.
17915 hardcode_into_libs=yes
17916
17917 # Append ld.so.conf contents to the search path
17918 if test -f /etc/ld.so.conf; then
17919 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' ' '`
17920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17921 fi
17922
17923 # We used to test for /lib/ld.so.1 and disable shared libraries on
17924 # powerpc, because MkLinux only supported shared libraries with the
17925 # GNU dynamic linker. Since this was broken with cross compilers,
17926 # most powerpc-linux boxes support dynamic linking these days and
17927 # people can always --disable-shared, the test was removed, and we
17928 # assume the GNU/Linux dynamic linker is in use.
17929 dynamic_linker='GNU/Linux ld.so'
17930 ;;
17931
17932 netbsd*)
17933 version_type=sunos
17934 need_lib_prefix=no
17935 need_version=no
17936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17939 dynamic_linker='NetBSD (a.out) ld.so'
17940 else
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 dynamic_linker='NetBSD ld.elf_so'
17944 fi
17945 shlibpath_var=LD_LIBRARY_PATH
17946 shlibpath_overrides_runpath=yes
17947 hardcode_into_libs=yes
17948 ;;
17949
17950 newsos6)
17951 version_type=linux
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 shlibpath_overrides_runpath=yes
17955 ;;
17956
17957 *nto* | *qnx*)
17958 version_type=qnx
17959 need_lib_prefix=no
17960 need_version=no
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=no
17965 hardcode_into_libs=yes
17966 dynamic_linker='ldqnx.so'
17967 ;;
17968
17969 openbsd*)
17970 version_type=sunos
17971 sys_lib_dlsearch_path_spec="/usr/lib"
17972 need_lib_prefix=no
17973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17974 case $host_os in
17975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17976 *) need_version=no ;;
17977 esac
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17982 case $host_os in
17983 openbsd2.[89] | openbsd2.[89].*)
17984 shlibpath_overrides_runpath=no
17985 ;;
17986 *)
17987 shlibpath_overrides_runpath=yes
17988 ;;
17989 esac
17990 else
17991 shlibpath_overrides_runpath=yes
17992 fi
17993 ;;
17994
17995 os2*)
17996 libname_spec='$name'
17997 shrext_cmds=".dll"
17998 need_lib_prefix=no
17999 library_names_spec='$libname${shared_ext} $libname.a'
18000 dynamic_linker='OS/2 ld.exe'
18001 shlibpath_var=LIBPATH
18002 ;;
18003
18004 osf3* | osf4* | osf5*)
18005 version_type=osf
18006 need_lib_prefix=no
18007 need_version=no
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18013 ;;
18014
18015 rdos*)
18016 dynamic_linker=no
18017 ;;
18018
18019 solaris*)
18020 version_type=linux
18021 need_lib_prefix=no
18022 need_version=no
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=yes
18027 hardcode_into_libs=yes
18028 # ldd complains unless libraries are executable
18029 postinstall_cmds='chmod +x $lib'
18030 ;;
18031
18032 sunos4*)
18033 version_type=sunos
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath=yes
18038 if test "$with_gnu_ld" = yes; then
18039 need_lib_prefix=no
18040 fi
18041 need_version=yes
18042 ;;
18043
18044 sysv4 | sysv4.3*)
18045 version_type=linux
18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18047 soname_spec='${libname}${release}${shared_ext}$major'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 case $host_vendor in
18050 sni)
18051 shlibpath_overrides_runpath=no
18052 need_lib_prefix=no
18053 runpath_var=LD_RUN_PATH
18054 ;;
18055 siemens)
18056 need_lib_prefix=no
18057 ;;
18058 motorola)
18059 need_lib_prefix=no
18060 need_version=no
18061 shlibpath_overrides_runpath=no
18062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18063 ;;
18064 esac
18065 ;;
18066
18067 sysv4*MP*)
18068 if test -d /usr/nec ;then
18069 version_type=linux
18070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18071 soname_spec='$libname${shared_ext}.$major'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 fi
18074 ;;
18075
18076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18077 version_type=freebsd-elf
18078 need_lib_prefix=no
18079 need_version=no
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=yes
18084 hardcode_into_libs=yes
18085 if test "$with_gnu_ld" = yes; then
18086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18087 else
18088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18089 case $host_os in
18090 sco3.2v5*)
18091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18092 ;;
18093 esac
18094 fi
18095 sys_lib_dlsearch_path_spec='/usr/lib'
18096 ;;
18097
18098 tpf*)
18099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18100 version_type=linux
18101 need_lib_prefix=no
18102 need_version=no
18103 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104 shlibpath_var=LD_LIBRARY_PATH
18105 shlibpath_overrides_runpath=no
18106 hardcode_into_libs=yes
18107 ;;
18108
18109 uts4*)
18110 version_type=linux
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 shlibpath_var=LD_LIBRARY_PATH
18114 ;;
18115
18116 *)
18117 dynamic_linker=no
18118 ;;
18119 esac
18120 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18121 echo "${ECHO_T}$dynamic_linker" >&6
18122 test "$dynamic_linker" = no && can_build_shared=no
18123
18124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18125 if test "$GCC" = yes; then
18126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18127 fi
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18166 hardcode_action_GCJ=
18167 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18168 test -n "$runpath_var_GCJ" ||
18169 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18170
18171 # We can hardcode non-existent directories.
18172 if test "$hardcode_direct_GCJ" != no &&
18173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18174 # have to relink, otherwise we might link with an installed library
18175 # when we should be linking with a yet-to-be-installed one
18176 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18177 test "$hardcode_minus_L_GCJ" != no; then
18178 # Linking always hardcodes the temporary library directory.
18179 hardcode_action_GCJ=relink
18180 else
18181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18182 hardcode_action_GCJ=immediate
18183 fi
18184 else
18185 # We cannot hardcode anything, or else we can only hardcode existing
18186 # directories.
18187 hardcode_action_GCJ=unsupported
18188 fi
18189 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18190 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18191
18192 if test "$hardcode_action_GCJ" = relink ||
18193 test "$inherit_rpath_GCJ" = yes; then
18194 # Fast installation is not supported
18195 enable_fast_install=no
18196 elif test "$shlibpath_overrides_runpath" = yes ||
18197 test "$enable_shared" = no; then
18198 # Fast installation is not necessary
18199 enable_fast_install=needless
18200 fi
18201
18202
18203
18204
18205
18206
18207
18208 fi
18209
18210 compiler_GCJ=${GCJ-gcj}
18211 ac_ext=c
18212 ac_cpp='$CPP $CPPFLAGS'
18213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18216
18217
18218 if test "x$CC" != xcc; then
18219 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18220 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18221 else
18222 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18223 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18224 fi
18225 set dummy $CC; ac_cc=`echo $2 |
18226 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18227 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h. */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236
18237 int
18238 main ()
18239 {
18240
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 # Make sure it works both with $CC and with simple cc.
18246 # We do the test twice because some compilers refuse to overwrite an
18247 # existing .o file with -o, though they will create one.
18248 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18249 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); };
18259 then
18260 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18261 if test "x$CC" != xcc; then
18262 # Test first that cc exists at all.
18263 if { ac_try='cc -c conftest.$ac_ext >&5'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18270 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); };
18280 then
18281 # cc works too.
18282 :
18283 else
18284 # cc exists but doesn't like -o.
18285 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18286 fi
18287 fi
18288 fi
18289 else
18290 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18291 fi
18292 rm -f conftest*
18293
18294 fi
18295 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18296 echo "$as_me:$LINENO: result: yes" >&5
18297 echo "${ECHO_T}yes" >&6
18298 else
18299 echo "$as_me:$LINENO: result: no" >&5
18300 echo "${ECHO_T}no" >&6
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define NO_MINUS_C_MINUS_O 1
18304 _ACEOF
18305
18306 fi
18307
18308 # FIXME: we rely on the cache variable name because
18309 # there is no other way.
18310 set dummy $CC
18311 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18312 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18313 # Losing compiler, so override with the script.
18314 # FIXME: It is wrong to rewrite CC.
18315 # But if we don't then we get into trouble of one sort or another.
18316 # A longer-term fix would be to have automake use am__CC in this case,
18317 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18318 CC="$am_aux_dir/compile $CC"
18319 fi
18320
18321
18322
18323
18324 subdirs="$subdirs classpath libltdl"
18325
18326
18327 # The -no-testsuite modules omit the test subdir.
18328
18329
18330 if test -d $srcdir/testsuite; then
18331 TESTSUBDIR_TRUE=
18332 TESTSUBDIR_FALSE='#'
18333 else
18334 TESTSUBDIR_TRUE='#'
18335 TESTSUBDIR_FALSE=
18336 fi
18337
18338
18339 # Should the runtime set system properties by examining the
18340 # environment variable GCJ_PROPERTIES?
18341 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18342 if test "${enable_getenv_properties+set}" = set; then
18343 enableval="$enable_getenv_properties"
18344
18345 fi;
18346
18347 # Whether GCJ_PROPERTIES is used depends on the target.
18348 if test -z "$enable_getenv_properties"; then
18349 enable_getenv_properties=${enable_getenv_properties_default-yes}
18350 fi
18351 if test "$enable_getenv_properties" = no; then
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define DISABLE_GETENV_PROPERTIES 1
18355 _ACEOF
18356
18357 fi
18358
18359 # Whether we should use arguments to main()
18360 if test -z "$enable_main_args"; then
18361 enable_main_args=${enable_main_args_default-yes}
18362 fi
18363 if test "$enable_main_args" = no; then
18364
18365 cat >>confdefs.h <<\_ACEOF
18366 #define DISABLE_MAIN_ARGS 1
18367 _ACEOF
18368
18369 fi
18370
18371
18372 # Should we use hashtable-based synchronization?
18373 # Currently works only for Linux X86/ia64
18374 # Typically faster and more space-efficient
18375 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18376 if test "${enable_hash_synchronization+set}" = set; then
18377 enableval="$enable_hash_synchronization"
18378
18379 fi;
18380
18381 if test -z "$enable_hash_synchronization"; then
18382 enable_hash_synchronization=$enable_hash_synchronization_default
18383 fi
18384
18385
18386 install_ecj_jar=no
18387 ECJ_BUILD_JAR=
18388 ECJ_JAR=
18389
18390 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18391 if test "${with_ecj_jar+set}" = set; then
18392 withval="$with_ecj_jar"
18393 ECJ_JAR=$withval
18394 else
18395 if test -f $multi_basedir/ecj.jar; then
18396 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18397 ECJ_JAR='$(jardir)/ecj.jar'
18398 install_ecj_jar=yes
18399 fi
18400 fi;
18401
18402
18403
18404
18405 if test "$ECJ_JAR" != ""; then
18406 BUILD_ECJ1_TRUE=
18407 BUILD_ECJ1_FALSE='#'
18408 else
18409 BUILD_ECJ1_TRUE='#'
18410 BUILD_ECJ1_FALSE=
18411 fi
18412
18413
18414
18415 if test $install_ecj_jar = yes; then
18416 INSTALL_ECJ_JAR_TRUE=
18417 INSTALL_ECJ_JAR_FALSE='#'
18418 else
18419 INSTALL_ECJ_JAR_TRUE='#'
18420 INSTALL_ECJ_JAR_FALSE=
18421 fi
18422
18423
18424
18425 # Check whether --with-java-home or --without-java-home was given.
18426 if test "${with_java_home+set}" = set; then
18427 withval="$with_java_home"
18428 JAVA_HOME="${withval}"
18429 else
18430 JAVA_HOME=""
18431 fi;
18432
18433
18434 if test ! -z "$JAVA_HOME"; then
18435 JAVA_HOME_SET_TRUE=
18436 JAVA_HOME_SET_FALSE='#'
18437 else
18438 JAVA_HOME_SET_TRUE='#'
18439 JAVA_HOME_SET_FALSE=
18440 fi
18441
18442
18443
18444 suppress_libgcj_bc=no
18445 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18446 if test "${enable_libgcj_bc+set}" = set; then
18447 enableval="$enable_libgcj_bc"
18448 if test "$enable_libgcj_bc" = "no"; then
18449 suppress_libgcj_bc=yes
18450 fi
18451 fi;
18452
18453
18454 if test "$suppress_libgcj_bc" = "yes"; then
18455 SUPPRESS_LIBGCJ_BC_TRUE=
18456 SUPPRESS_LIBGCJ_BC_FALSE='#'
18457 else
18458 SUPPRESS_LIBGCJ_BC_TRUE='#'
18459 SUPPRESS_LIBGCJ_BC_FALSE=
18460 fi
18461
18462
18463 # What is the native OS API for MinGW?
18464
18465 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18466 if test "${with_win32_nlsapi+set}" = set; then
18467 withval="$with_win32_nlsapi"
18468 case "${withval}" in
18469 ansi) with_win32_nlsapi=ansi ;;
18470 unicows) with_win32_nlsapi=unicows ;;
18471 unicode) with_win32_nlsapi=unicode ;;
18472 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18473 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18474 { (exit 1); exit 1; }; } ;;
18475 esac
18476 else
18477 with_win32_nlsapi=ansi
18478 fi;
18479
18480 case "${with_win32_nlsapi}" in
18481 unicows | unicode)
18482
18483 cat >>confdefs.h <<\_ACEOF
18484 #define MINGW_LIBGCJ_UNICODE 1
18485 _ACEOF
18486
18487 ;;
18488 esac
18489
18490 # configure.host sets slow_pthread_self if the synchronization code should
18491 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18492 if test "${slow_pthread_self}" = "yes"; then
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define SLOW_PTHREAD_SELF 1
18496 _ACEOF
18497
18498 fi
18499
18500 # Check for gc debugging. This option is handled both here and in the GC.
18501 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18502 if test "${enable_gc_debug+set}" = set; then
18503 enableval="$enable_gc_debug"
18504 if test "$enable_gc_debug" = "yes"; then
18505
18506 cat >>confdefs.h <<\_ACEOF
18507 #define LIBGCJ_GC_DEBUG 1
18508 _ACEOF
18509
18510 fi
18511 fi;
18512
18513 # See if the user has the interpreter included.
18514 # Check whether --enable-interpreter or --disable-interpreter was given.
18515 if test "${enable_interpreter+set}" = set; then
18516 enableval="$enable_interpreter"
18517 if test "$enable_interpreter" = yes; then
18518 # This can also be set in configure.host.
18519 libgcj_interpreter=yes
18520 elif test "$enable_interpreter" = no; then
18521 libgcj_interpreter=no
18522 fi
18523 fi;
18524
18525 if test "$libgcj_interpreter" = yes; then
18526
18527 cat >>confdefs.h <<\_ACEOF
18528 #define INTERPRETER 1
18529 _ACEOF
18530
18531 fi
18532 INTERPRETER="$libgcj_interpreter"
18533
18534
18535
18536 if test "$libgcj_interpreter" = yes; then
18537 INTERPRETER_TRUE=
18538 INTERPRETER_FALSE='#'
18539 else
18540 INTERPRETER_TRUE='#'
18541 INTERPRETER_FALSE=
18542 fi
18543
18544
18545 echo "$as_me:$LINENO: checking for exception model to use" >&5
18546 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18547 ac_ext=cc
18548 ac_cpp='$CXXCPP $CPPFLAGS'
18549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18552
18553 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18554 if test "${enable_sjlj_exceptions+set}" = set; then
18555 enableval="$enable_sjlj_exceptions"
18556 :
18557 else
18558 cat > conftest.$ac_ext << EOF
18559 #line 18559 "configure"
18560 struct S { ~S(); };
18561 void bar();
18562 void foo()
18563 {
18564 S s;
18565 bar();
18566 }
18567 EOF
18568 old_CXXFLAGS="$CXXFLAGS"
18569 CXXFLAGS=-S
18570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18571 (eval $ac_compile) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; then
18575 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18576 enable_sjlj_exceptions=yes
18577 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18578 enable_sjlj_exceptions=no
18579 fi
18580 fi
18581 CXXFLAGS="$old_CXXFLAGS"
18582 rm -f conftest*
18583 fi;
18584 if test x$enable_sjlj_exceptions = xyes; then
18585
18586 cat >>confdefs.h <<\_ACEOF
18587 #define SJLJ_EXCEPTIONS 1
18588 _ACEOF
18589
18590 ac_exception_model_name=sjlj
18591 elif test x$enable_sjlj_exceptions = xno; then
18592 ac_exception_model_name="call frame"
18593 else
18594 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18595 echo "$as_me: error: unable to detect exception model" >&2;}
18596 { (exit 1); exit 1; }; }
18597 fi
18598 ac_ext=c
18599 ac_cpp='$CPP $CPPFLAGS'
18600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18603
18604 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18605 echo "${ECHO_T}$ac_exception_model_name" >&6
18606
18607 # If we are non using SJLJ exceptions, and this host does not have support
18608 # for unwinding from a signal handler, enable checked dereferences and divides.
18609 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18610 CHECKREFSPEC=-fcheck-references
18611 DIVIDESPEC=-fuse-divide-subroutine
18612 EXCEPTIONSPEC=
18613 fi
18614
18615 # See if the user wants to disable java.net. This is the mildly
18616 # ugly way that we admit that target-side configuration sucks.
18617 # Check whether --enable-java-net or --disable-java-net was given.
18618 if test "${enable_java_net+set}" = set; then
18619 enableval="$enable_java_net"
18620
18621 fi;
18622
18623 # Whether java.net is built by default can depend on the target.
18624 if test -z "$enable_java_net"; then
18625 enable_java_net=${enable_java_net_default-yes}
18626 fi
18627 if test "$enable_java_net" = no; then
18628
18629 cat >>confdefs.h <<\_ACEOF
18630 #define DISABLE_JAVA_NET 1
18631 _ACEOF
18632
18633 fi
18634
18635 # See if the user wants to configure without libffi. Some
18636 # architectures don't support it, and default values are set in
18637 # configure.host.
18638
18639 # Check whether --with-libffi or --without-libffi was given.
18640 if test "${with_libffi+set}" = set; then
18641 withval="$with_libffi"
18642 :
18643 else
18644 with_libffi=${with_libffi_default-yes}
18645 fi;
18646
18647 LIBFFI=
18648 LIBFFIINCS=
18649 if test "$with_libffi" != no; then
18650
18651 cat >>confdefs.h <<\_ACEOF
18652 #define USE_LIBFFI 1
18653 _ACEOF
18654
18655 LIBFFI=../libffi/libffi_convenience.la
18656 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18657 fi
18658
18659
18660
18661 # See if the user wants to disable JVMPI support.
18662 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18663 if test "${enable_jvmpi+set}" = set; then
18664 enableval="$enable_jvmpi"
18665
18666 fi;
18667
18668 if test "$enable_jvmpi" != no; then
18669
18670 cat >>confdefs.h <<\_ACEOF
18671 #define ENABLE_JVMPI 1
18672 _ACEOF
18673
18674 fi
18675
18676 # If the target is an eCos system, use the appropriate eCos
18677 # I/O routines.
18678 # FIXME: this should not be a local option but a global target
18679 # system; at present there is no eCos target.
18680 TARGET_ECOS=${PROCESS-"no"}
18681
18682 # Check whether --with-ecos or --without-ecos was given.
18683 if test "${with_ecos+set}" = set; then
18684 withval="$with_ecos"
18685 TARGET_ECOS="$with_ecos"
18686
18687 fi;
18688
18689 case "$TARGET_ECOS" in
18690 no) case "$host" in
18691 *mingw*)
18692 PLATFORM=Win32
18693 PLATFORMNET=Win32
18694 PLATFORMH=win32.h
18695
18696 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18697 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18698 LD_PROG=`$CC --print-prog-name=ld`
18699 LD_VERSION=`$LD_PROG --version`
18700 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18701 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18702 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18703 LD_OK="ok"
18704 else
18705 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18706 LD_OK="ok"
18707 fi
18708 fi
18709 if test "x$LD_OK" != x; then
18710 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18711 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18712 else
18713 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18714 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18715 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18716 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18720 _ACEOF
18721
18722 fi
18723 ;;
18724 *)
18725 PLATFORM=Posix
18726 PLATFORMNET=Posix
18727 PLATFORMH=posix.h
18728 ;;
18729 esac
18730 ;;
18731 *)
18732 PLATFORM=Ecos
18733 PLATFORMNET=NoNet
18734
18735 cat >>confdefs.h <<\_ACEOF
18736 #define ECOS 1
18737 _ACEOF
18738
18739 PLATFORMH=posix.h
18740 ;;
18741 esac
18742
18743 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18744
18745
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h. */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18752 #include <stdint.h>
18753
18754 _ACEOF
18755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18756 $EGREP "uint32_t" >/dev/null 2>&1; then
18757
18758 cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_INT32_DEFINED 1
18760 _ACEOF
18761
18762 fi
18763 rm -f conftest*
18764
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <inttypes.h>
18772
18773 _ACEOF
18774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18775 $EGREP "uint32_t" >/dev/null 2>&1; then
18776
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_INT32_DEFINED 1
18779 _ACEOF
18780
18781 fi
18782 rm -f conftest*
18783
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 #include <sys/types.h>
18791
18792 _ACEOF
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "u_int32_t" >/dev/null 2>&1; then
18795
18796 cat >>confdefs.h <<\_ACEOF
18797 #define HAVE_BSD_INT32_DEFINED 1
18798 _ACEOF
18799
18800 fi
18801 rm -f conftest*
18802
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 #include <sys/config.h>
18810
18811 _ACEOF
18812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18813 $EGREP "u_int32_t" >/dev/null 2>&1; then
18814
18815 cat >>confdefs.h <<\_ACEOF
18816 #define HAVE_BSD_INT32_DEFINED 1
18817 _ACEOF
18818
18819 fi
18820 rm -f conftest*
18821
18822
18823
18824
18825 if test "$PLATFORM" = Win32; then
18826 USING_WIN32_PLATFORM_TRUE=
18827 USING_WIN32_PLATFORM_FALSE='#'
18828 else
18829 USING_WIN32_PLATFORM_TRUE='#'
18830 USING_WIN32_PLATFORM_FALSE=
18831 fi
18832
18833
18834
18835 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18836 USING_POSIX_PLATFORM_TRUE=
18837 USING_POSIX_PLATFORM_FALSE='#'
18838 else
18839 USING_POSIX_PLATFORM_TRUE='#'
18840 USING_POSIX_PLATFORM_FALSE=
18841 fi
18842
18843
18844 case "$host" in
18845 *-darwin*) DARWIN_CRT=true ;;
18846 *) DARWIN_CRT=false ;;
18847 esac
18848
18849
18850 if $DARWIN_CRT; then
18851 USING_DARWIN_CRT_TRUE=
18852 USING_DARWIN_CRT_FALSE='#'
18853 else
18854 USING_DARWIN_CRT_TRUE='#'
18855 USING_DARWIN_CRT_FALSE=
18856 fi
18857
18858
18859 # This may not be defined in a non-ANS conformant embedded system.
18860 # FIXME: Should these case a runtime exception in that case?
18861 cat >conftest.$ac_ext <<_ACEOF
18862 /* confdefs.h. */
18863 _ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h. */
18867 #include <time.h>
18868
18869 _ACEOF
18870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18871 $EGREP "localtime" >/dev/null 2>&1; then
18872
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE_LOCALTIME 1
18875 _ACEOF
18876
18877 fi
18878 rm -f conftest*
18879
18880
18881 # Create the subdirectory for natFile.cc, or the attempt
18882 # to create the link will fail.
18883 test -d java || mkdir java
18884 test -d java/io || mkdir java/io
18885 test -d gnu || mkdir gnu
18886 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18887
18888
18889 # Likewise for natConcreteProcess.cc.
18890 test -d java/lang || mkdir java/lang
18891 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18892
18893
18894 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18895 test -d java/net || mkdir java/net
18896 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18897
18898 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18899
18900
18901 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18902 test -d gnu/java || mkdir gnu/java
18903 test -d gnu/java/net || mkdir gnu/java/net
18904 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18905
18906 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18907
18908
18909 # Likewise for natVMPipe.cc and natVMSelector.cc.
18910 test -d gnu/java/nio || mkdir gnu/java/nio
18911 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18912
18913 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18914
18915
18916 # Likewise for natFileChannelImpl.cc
18917 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18918 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18919
18920
18921 case "${host}" in
18922 *mingw*)
18923 SYSTEMSPEC="-lgdi32 -lws2_32"
18924 if test "${with_win32_nlsapi}" = "unicows"; then
18925 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18926 fi
18927 ;;
18928 *)
18929 SYSTEMSPEC=
18930 ;;
18931 esac
18932
18933
18934
18935 # Check whether --with-system-zlib or --without-system-zlib was given.
18936 if test "${with_system_zlib+set}" = set; then
18937 withval="$with_system_zlib"
18938
18939 fi;
18940 ZLIBSPEC=
18941
18942 ZLIBTESTSPEC=
18943
18944
18945 echo "$as_me:$LINENO: checking for X" >&5
18946 echo $ECHO_N "checking for X... $ECHO_C" >&6
18947
18948
18949 # Check whether --with-x or --without-x was given.
18950 if test "${with_x+set}" = set; then
18951 withval="$with_x"
18952
18953 fi;
18954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18955 if test "x$with_x" = xno; then
18956 # The user explicitly disabled X.
18957 have_x=disabled
18958 else
18959 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18960 # Both variables are already set.
18961 have_x=yes
18962 else
18963 if test "${ac_cv_have_x+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 # One or both of the vars are not set, and there is no cached value.
18967 ac_x_includes=no ac_x_libraries=no
18968 rm -fr conftest.dir
18969 if mkdir conftest.dir; then
18970 cd conftest.dir
18971 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18972 cat >Imakefile <<'_ACEOF'
18973 acfindx:
18974 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18975 _ACEOF
18976 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18978 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18980 for ac_extension in a so sl; do
18981 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18982 test -f $ac_im_libdir/libX11.$ac_extension; then
18983 ac_im_usrlibdir=$ac_im_libdir; break
18984 fi
18985 done
18986 # Screen out bogus values from the imake configuration. They are
18987 # bogus both because they are the default anyway, and because
18988 # using them would break gcc on systems where it needs fixed includes.
18989 case $ac_im_incroot in
18990 /usr/include) ;;
18991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18992 esac
18993 case $ac_im_usrlibdir in
18994 /usr/lib | /lib) ;;
18995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18996 esac
18997 fi
18998 cd ..
18999 rm -fr conftest.dir
19000 fi
19001
19002 # Standard set of common directories for X headers.
19003 # Check X11 before X11Rn because it is often a symlink to the current release.
19004 ac_x_header_dirs='
19005 /usr/X11/include
19006 /usr/X11R6/include
19007 /usr/X11R5/include
19008 /usr/X11R4/include
19009
19010 /usr/include/X11
19011 /usr/include/X11R6
19012 /usr/include/X11R5
19013 /usr/include/X11R4
19014
19015 /usr/local/X11/include
19016 /usr/local/X11R6/include
19017 /usr/local/X11R5/include
19018 /usr/local/X11R4/include
19019
19020 /usr/local/include/X11
19021 /usr/local/include/X11R6
19022 /usr/local/include/X11R5
19023 /usr/local/include/X11R4
19024
19025 /usr/X386/include
19026 /usr/x386/include
19027 /usr/XFree86/include/X11
19028
19029 /usr/include
19030 /usr/local/include
19031 /usr/unsupported/include
19032 /usr/athena/include
19033 /usr/local/x11r5/include
19034 /usr/lpp/Xamples/include
19035
19036 /usr/openwin/include
19037 /usr/openwin/share/include'
19038
19039 if test "$ac_x_includes" = no; then
19040 # Guess where to find include files, by looking for Xlib.h.
19041 # First, try using that file with no special directory specified.
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <X11/Xlib.h>
19049 _ACEOF
19050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } >/dev/null; then
19058 if test -s conftest.err; then
19059 ac_cpp_err=$ac_c_preproc_warn_flag
19060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19061 else
19062 ac_cpp_err=
19063 fi
19064 else
19065 ac_cpp_err=yes
19066 fi
19067 if test -z "$ac_cpp_err"; then
19068 # We can compile using X headers with no special include directory.
19069 ac_x_includes=
19070 else
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 for ac_dir in $ac_x_header_dirs; do
19075 if test -r "$ac_dir/X11/Xlib.h"; then
19076 ac_x_includes=$ac_dir
19077 break
19078 fi
19079 done
19080 fi
19081 rm -f conftest.err conftest.$ac_ext
19082 fi # $ac_x_includes = no
19083
19084 if test "$ac_x_libraries" = no; then
19085 # Check for the libraries.
19086 # See if we find them without any special options.
19087 # Don't add to $LIBS permanently.
19088 ac_save_LIBS=$LIBS
19089 LIBS="-lX11 $LIBS"
19090 if test x$gcc_no_link = xyes; then
19091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19093 { (exit 1); exit 1; }; }
19094 fi
19095 cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h. */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <X11/Xlib.h>
19102 int
19103 main ()
19104 {
19105 XrmInitialize ()
19106 ;
19107 return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 LIBS=$ac_save_LIBS
19133 # We can link X programs with no special library path.
19134 ac_x_libraries=
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 LIBS=$ac_save_LIBS
19140 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19141 do
19142 # Don't even attempt the hair of trying to link an X program!
19143 for ac_extension in a so sl; do
19144 if test -r $ac_dir/libXt.$ac_extension; then
19145 ac_x_libraries=$ac_dir
19146 break 2
19147 fi
19148 done
19149 done
19150 fi
19151 rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 fi # $ac_x_libraries = no
19154
19155 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19156 # Didn't find X anywhere. Cache the known absence of X.
19157 ac_cv_have_x="have_x=no"
19158 else
19159 # Record where we found X for the cache.
19160 ac_cv_have_x="have_x=yes \
19161 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19162 fi
19163 fi
19164
19165 fi
19166 eval "$ac_cv_have_x"
19167 fi # $with_x != no
19168
19169 if test "$have_x" != yes; then
19170 echo "$as_me:$LINENO: result: $have_x" >&5
19171 echo "${ECHO_T}$have_x" >&6
19172 no_x=yes
19173 else
19174 # If each of the values was on the command line, it overrides each guess.
19175 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19176 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19177 # Update the cache value to reflect the command line values.
19178 ac_cv_have_x="have_x=yes \
19179 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19180 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19181 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19182 fi
19183
19184 if test "$no_x" = yes; then
19185 # Not all programs may use this symbol, but it does not hurt to define it.
19186
19187 cat >>confdefs.h <<\_ACEOF
19188 #define X_DISPLAY_MISSING 1
19189 _ACEOF
19190
19191 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19192 else
19193 if test -n "$x_includes"; then
19194 X_CFLAGS="$X_CFLAGS -I$x_includes"
19195 fi
19196
19197 # It would also be nice to do this for all -L options, not just this one.
19198 if test -n "$x_libraries"; then
19199 X_LIBS="$X_LIBS -L$x_libraries"
19200 # For Solaris; some versions of Sun CC require a space after -R and
19201 # others require no space. Words are not sufficient . . . .
19202 case `(uname -sr) 2>/dev/null` in
19203 "SunOS 5"*)
19204 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19205 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19206 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19207 if test x$gcc_no_link = xyes; then
19208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19210 { (exit 1); exit 1; }; }
19211 fi
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218
19219 int
19220 main ()
19221 {
19222
19223 ;
19224 return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest$ac_exeext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_R_nospace=yes
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 ac_R_nospace=no
19255 fi
19256 rm -f conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19258 if test $ac_R_nospace = yes; then
19259 echo "$as_me:$LINENO: result: no" >&5
19260 echo "${ECHO_T}no" >&6
19261 X_LIBS="$X_LIBS -R$x_libraries"
19262 else
19263 LIBS="$ac_xsave_LIBS -R $x_libraries"
19264 if test x$gcc_no_link = xyes; then
19265 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19267 { (exit 1); exit 1; }; }
19268 fi
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275
19276 int
19277 main ()
19278 {
19279
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_R_space=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_R_space=no
19312 fi
19313 rm -f conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
19315 if test $ac_R_space = yes; then
19316 echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6
19318 X_LIBS="$X_LIBS -R $x_libraries"
19319 else
19320 echo "$as_me:$LINENO: result: neither works" >&5
19321 echo "${ECHO_T}neither works" >&6
19322 fi
19323 fi
19324 LIBS=$ac_xsave_LIBS
19325 esac
19326 fi
19327
19328 # Check for system-dependent libraries X programs must link with.
19329 # Do this before checking for the system-independent R6 libraries
19330 # (-lICE), since we may need -lsocket or whatever for X linking.
19331
19332 if test "$ISC" = yes; then
19333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19334 else
19335 # Martyn Johnson says this is needed for Ultrix, if the X
19336 # libraries were built with DECnet support. And Karl Berry says
19337 # the Alpha needs dnet_stub (dnet does not exist).
19338 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19339 if test x$gcc_no_link = xyes; then
19340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19342 { (exit 1); exit 1; }; }
19343 fi
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350
19351 /* Override any gcc2 internal prototype to avoid an error. */
19352 #ifdef __cplusplus
19353 extern "C"
19354 #endif
19355 /* We use char because int might match the return type of a gcc2
19356 builtin and then its argument prototype would still apply. */
19357 char XOpenDisplay ();
19358 int
19359 main ()
19360 {
19361 XOpenDisplay ();
19362 ;
19363 return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 :
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19394 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19395 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398 ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-ldnet $LIBS"
19400 if test x$gcc_no_link = xyes; then
19401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19403 { (exit 1); exit 1; }; }
19404 fi
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411
19412 /* Override any gcc2 internal prototype to avoid an error. */
19413 #ifdef __cplusplus
19414 extern "C"
19415 #endif
19416 /* We use char because int might match the return type of a gcc2
19417 builtin and then its argument prototype would still apply. */
19418 char dnet_ntoa ();
19419 int
19420 main ()
19421 {
19422 dnet_ntoa ();
19423 ;
19424 return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19429 (eval $ac_link) 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag"
19437 || test ! -s conftest.err'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest$ac_exeext'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_lib_dnet_dnet_ntoa=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ac_cv_lib_dnet_dnet_ntoa=no
19455 fi
19456 rm -f conftest.err conftest.$ac_objext \
19457 conftest$ac_exeext conftest.$ac_ext
19458 LIBS=$ac_check_lib_save_LIBS
19459 fi
19460 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19461 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19462 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19464 fi
19465
19466 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19467 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19468 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19469 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-ldnet_stub $LIBS"
19474 if test x$gcc_no_link = xyes; then
19475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19477 { (exit 1); exit 1; }; }
19478 fi
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485
19486 /* Override any gcc2 internal prototype to avoid an error. */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 /* We use char because int might match the return type of a gcc2
19491 builtin and then its argument prototype would still apply. */
19492 char dnet_ntoa ();
19493 int
19494 main ()
19495 {
19496 dnet_ntoa ();
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503 (eval $ac_link) 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_c_werror_flag"
19511 || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest$ac_exeext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19524 else
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 ac_cv_lib_dnet_stub_dnet_ntoa=no
19529 fi
19530 rm -f conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532 LIBS=$ac_check_lib_save_LIBS
19533 fi
19534 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19535 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19536 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19537 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19538 fi
19539
19540 fi
19541 fi
19542 rm -f conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19544 LIBS="$ac_xsave_LIBS"
19545
19546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19547 # to get the SysV transport functions.
19548 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19549 # needs -lnsl.
19550 # The nsl library prevents programs from opening the X display
19551 # on Irix 5.2, according to T.E. Dickey.
19552 # The functions gethostbyname, getservbyname, and inet_addr are
19553 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19554 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19555 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19556 if test "${ac_cv_func_gethostbyname+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 if test x$gcc_no_link = xyes; then
19560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19562 { (exit 1); exit 1; }; }
19563 fi
19564 cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h. */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19572 #define gethostbyname innocuous_gethostbyname
19573
19574 /* System header to define __stub macros and hopefully few prototypes,
19575 which can conflict with char gethostbyname (); below.
19576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19577 <limits.h> exists even on freestanding compilers. */
19578
19579 #ifdef __STDC__
19580 # include <limits.h>
19581 #else
19582 # include <assert.h>
19583 #endif
19584
19585 #undef gethostbyname
19586
19587 /* Override any gcc2 internal prototype to avoid an error. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 {
19591 #endif
19592 /* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19594 char gethostbyname ();
19595 /* The GNU C library defines this for functions which it implements
19596 to always fail with ENOSYS. Some functions are actually named
19597 something starting with __ and the normal name is an alias. */
19598 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19599 choke me
19600 #else
19601 char (*f) () = gethostbyname;
19602 #endif
19603 #ifdef __cplusplus
19604 }
19605 #endif
19606
19607 int
19608 main ()
19609 {
19610 return f != gethostbyname;
19611 ;
19612 return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest$ac_exeext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_func_gethostbyname=yes
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642 ac_cv_func_gethostbyname=no
19643 fi
19644 rm -f conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 fi
19647 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19648 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19649
19650 if test $ac_cv_func_gethostbyname = no; then
19651 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19652 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19653 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656 ac_check_lib_save_LIBS=$LIBS
19657 LIBS="-lnsl $LIBS"
19658 if test x$gcc_no_link = xyes; then
19659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19661 { (exit 1); exit 1; }; }
19662 fi
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669
19670 /* Override any gcc2 internal prototype to avoid an error. */
19671 #ifdef __cplusplus
19672 extern "C"
19673 #endif
19674 /* We use char because int might match the return type of a gcc2
19675 builtin and then its argument prototype would still apply. */
19676 char gethostbyname ();
19677 int
19678 main ()
19679 {
19680 gethostbyname ();
19681 ;
19682 return 0;
19683 }
19684 _ACEOF
19685 rm -f conftest.$ac_objext conftest$ac_exeext
19686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19687 (eval $ac_link) 2>conftest.er1
19688 ac_status=$?
19689 grep -v '^ *+' conftest.er1 >conftest.err
19690 rm -f conftest.er1
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
19694 { ac_try='test -z "$ac_c_werror_flag"
19695 || test ! -s conftest.err'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; } &&
19701 { ac_try='test -s conftest$ac_exeext'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_cv_lib_nsl_gethostbyname=yes
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712 ac_cv_lib_nsl_gethostbyname=no
19713 fi
19714 rm -f conftest.err conftest.$ac_objext \
19715 conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19717 fi
19718 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19719 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19720 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19722 fi
19723
19724 if test $ac_cv_lib_nsl_gethostbyname = no; then
19725 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19726 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19727 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lbsd $LIBS"
19732 if test x$gcc_no_link = xyes; then
19733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19735 { (exit 1); exit 1; }; }
19736 fi
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h. */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743
19744 /* Override any gcc2 internal prototype to avoid an error. */
19745 #ifdef __cplusplus
19746 extern "C"
19747 #endif
19748 /* We use char because int might match the return type of a gcc2
19749 builtin and then its argument prototype would still apply. */
19750 char gethostbyname ();
19751 int
19752 main ()
19753 {
19754 gethostbyname ();
19755 ;
19756 return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19761 (eval $ac_link) 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag"
19769 || test ! -s conftest.err'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest$ac_exeext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_lib_bsd_gethostbyname=yes
19782 else
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 ac_cv_lib_bsd_gethostbyname=no
19787 fi
19788 rm -f conftest.err conftest.$ac_objext \
19789 conftest$ac_exeext conftest.$ac_ext
19790 LIBS=$ac_check_lib_save_LIBS
19791 fi
19792 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19793 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19794 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19796 fi
19797
19798 fi
19799 fi
19800
19801 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19802 # socket/setsockopt and other routines are undefined under SCO ODT
19803 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19804 # on later versions), says Simon Leinen: it contains gethostby*
19805 # variants that don't use the name server (or something). -lsocket
19806 # must be given before -lnsl if both are needed. We assume that
19807 # if connect needs -lnsl, so does gethostbyname.
19808 echo "$as_me:$LINENO: checking for connect" >&5
19809 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19810 if test "${ac_cv_func_connect+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813 if test x$gcc_no_link = xyes; then
19814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19816 { (exit 1); exit 1; }; }
19817 fi
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19826 #define connect innocuous_connect
19827
19828 /* System header to define __stub macros and hopefully few prototypes,
19829 which can conflict with char connect (); below.
19830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831 <limits.h> exists even on freestanding compilers. */
19832
19833 #ifdef __STDC__
19834 # include <limits.h>
19835 #else
19836 # include <assert.h>
19837 #endif
19838
19839 #undef connect
19840
19841 /* Override any gcc2 internal prototype to avoid an error. */
19842 #ifdef __cplusplus
19843 extern "C"
19844 {
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19848 char connect ();
19849 /* The GNU C library defines this for functions which it implements
19850 to always fail with ENOSYS. Some functions are actually named
19851 something starting with __ and the normal name is an alias. */
19852 #if defined (__stub_connect) || defined (__stub___connect)
19853 choke me
19854 #else
19855 char (*f) () = connect;
19856 #endif
19857 #ifdef __cplusplus
19858 }
19859 #endif
19860
19861 int
19862 main ()
19863 {
19864 return f != connect;
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_c_werror_flag"
19879 || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest$ac_exeext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_cv_func_connect=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_cv_func_connect=no
19897 fi
19898 rm -f conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 fi
19901 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19902 echo "${ECHO_T}$ac_cv_func_connect" >&6
19903
19904 if test $ac_cv_func_connect = no; then
19905 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19906 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19907 if test "${ac_cv_lib_socket_connect+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910 ac_check_lib_save_LIBS=$LIBS
19911 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19912 if test x$gcc_no_link = xyes; then
19913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19915 { (exit 1); exit 1; }; }
19916 fi
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923
19924 /* Override any gcc2 internal prototype to avoid an error. */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 /* We use char because int might match the return type of a gcc2
19929 builtin and then its argument prototype would still apply. */
19930 char connect ();
19931 int
19932 main ()
19933 {
19934 connect ();
19935 ;
19936 return 0;
19937 }
19938 _ACEOF
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19941 (eval $ac_link) 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag"
19949 || test ! -s conftest.err'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest$ac_exeext'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 ac_cv_lib_socket_connect=yes
19962 else
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965
19966 ac_cv_lib_socket_connect=no
19967 fi
19968 rm -f conftest.err conftest.$ac_objext \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19971 fi
19972 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19973 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19974 if test $ac_cv_lib_socket_connect = yes; then
19975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19976 fi
19977
19978 fi
19979
19980 # Guillermo Gomez says -lposix is necessary on A/UX.
19981 echo "$as_me:$LINENO: checking for remove" >&5
19982 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19983 if test "${ac_cv_func_remove+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 if test x$gcc_no_link = xyes; then
19987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19989 { (exit 1); exit 1; }; }
19990 fi
19991 cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h. */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19997 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19999 #define remove innocuous_remove
20000
20001 /* System header to define __stub macros and hopefully few prototypes,
20002 which can conflict with char remove (); below.
20003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20004 <limits.h> exists even on freestanding compilers. */
20005
20006 #ifdef __STDC__
20007 # include <limits.h>
20008 #else
20009 # include <assert.h>
20010 #endif
20011
20012 #undef remove
20013
20014 /* Override any gcc2 internal prototype to avoid an error. */
20015 #ifdef __cplusplus
20016 extern "C"
20017 {
20018 #endif
20019 /* We use char because int might match the return type of a gcc2
20020 builtin and then its argument prototype would still apply. */
20021 char remove ();
20022 /* The GNU C library defines this for functions which it implements
20023 to always fail with ENOSYS. Some functions are actually named
20024 something starting with __ and the normal name is an alias. */
20025 #if defined (__stub_remove) || defined (__stub___remove)
20026 choke me
20027 #else
20028 char (*f) () = remove;
20029 #endif
20030 #ifdef __cplusplus
20031 }
20032 #endif
20033
20034 int
20035 main ()
20036 {
20037 return f != remove;
20038 ;
20039 return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20044 (eval $ac_link) 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest$ac_exeext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_cv_func_remove=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20068
20069 ac_cv_func_remove=no
20070 fi
20071 rm -f conftest.err conftest.$ac_objext \
20072 conftest$ac_exeext conftest.$ac_ext
20073 fi
20074 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20075 echo "${ECHO_T}$ac_cv_func_remove" >&6
20076
20077 if test $ac_cv_func_remove = no; then
20078 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20079 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20080 if test "${ac_cv_lib_posix_remove+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083 ac_check_lib_save_LIBS=$LIBS
20084 LIBS="-lposix $LIBS"
20085 if test x$gcc_no_link = xyes; then
20086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20088 { (exit 1); exit 1; }; }
20089 fi
20090 cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h. */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096
20097 /* Override any gcc2 internal prototype to avoid an error. */
20098 #ifdef __cplusplus
20099 extern "C"
20100 #endif
20101 /* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20103 char remove ();
20104 int
20105 main ()
20106 {
20107 remove ();
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114 (eval $ac_link) 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_lib_posix_remove=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_cv_lib_posix_remove=no
20140 fi
20141 rm -f conftest.err conftest.$ac_objext \
20142 conftest$ac_exeext conftest.$ac_ext
20143 LIBS=$ac_check_lib_save_LIBS
20144 fi
20145 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20146 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20147 if test $ac_cv_lib_posix_remove = yes; then
20148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20149 fi
20150
20151 fi
20152
20153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20154 echo "$as_me:$LINENO: checking for shmat" >&5
20155 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20156 if test "${ac_cv_func_shmat+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 if test x$gcc_no_link = xyes; then
20160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20162 { (exit 1); exit 1; }; }
20163 fi
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h. */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20172 #define shmat innocuous_shmat
20173
20174 /* System header to define __stub macros and hopefully few prototypes,
20175 which can conflict with char shmat (); below.
20176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20177 <limits.h> exists even on freestanding compilers. */
20178
20179 #ifdef __STDC__
20180 # include <limits.h>
20181 #else
20182 # include <assert.h>
20183 #endif
20184
20185 #undef shmat
20186
20187 /* Override any gcc2 internal prototype to avoid an error. */
20188 #ifdef __cplusplus
20189 extern "C"
20190 {
20191 #endif
20192 /* We use char because int might match the return type of a gcc2
20193 builtin and then its argument prototype would still apply. */
20194 char shmat ();
20195 /* The GNU C library defines this for functions which it implements
20196 to always fail with ENOSYS. Some functions are actually named
20197 something starting with __ and the normal name is an alias. */
20198 #if defined (__stub_shmat) || defined (__stub___shmat)
20199 choke me
20200 #else
20201 char (*f) () = shmat;
20202 #endif
20203 #ifdef __cplusplus
20204 }
20205 #endif
20206
20207 int
20208 main ()
20209 {
20210 return f != shmat;
20211 ;
20212 return 0;
20213 }
20214 _ACEOF
20215 rm -f conftest.$ac_objext conftest$ac_exeext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20217 (eval $ac_link) 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag"
20225 || test ! -s conftest.err'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest$ac_exeext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 ac_cv_func_shmat=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 ac_cv_func_shmat=no
20243 fi
20244 rm -f conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246 fi
20247 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20248 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20249
20250 if test $ac_cv_func_shmat = no; then
20251 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20252 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20253 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256 ac_check_lib_save_LIBS=$LIBS
20257 LIBS="-lipc $LIBS"
20258 if test x$gcc_no_link = xyes; then
20259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20261 { (exit 1); exit 1; }; }
20262 fi
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269
20270 /* Override any gcc2 internal prototype to avoid an error. */
20271 #ifdef __cplusplus
20272 extern "C"
20273 #endif
20274 /* We use char because int might match the return type of a gcc2
20275 builtin and then its argument prototype would still apply. */
20276 char shmat ();
20277 int
20278 main ()
20279 {
20280 shmat ();
20281 ;
20282 return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext conftest$ac_exeext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag"
20295 || test ! -s conftest.err'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try='test -s conftest$ac_exeext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_lib_ipc_shmat=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312 ac_cv_lib_ipc_shmat=no
20313 fi
20314 rm -f conftest.err conftest.$ac_objext \
20315 conftest$ac_exeext conftest.$ac_ext
20316 LIBS=$ac_check_lib_save_LIBS
20317 fi
20318 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20319 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20320 if test $ac_cv_lib_ipc_shmat = yes; then
20321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20322 fi
20323
20324 fi
20325 fi
20326
20327 # Check for libraries that X11R6 Xt/Xaw programs need.
20328 ac_save_LDFLAGS=$LDFLAGS
20329 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20330 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20331 # check for ICE first), but we must link in the order -lSM -lICE or
20332 # we get undefined symbols. So assume we have SM if we have ICE.
20333 # These have to be linked with before -lX11, unlike the other
20334 # libraries we check for below, so use a different variable.
20335 # John Interrante, Karl Berry
20336 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20337 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20338 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341 ac_check_lib_save_LIBS=$LIBS
20342 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20343 if test x$gcc_no_link = xyes; then
20344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20346 { (exit 1); exit 1; }; }
20347 fi
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354
20355 /* Override any gcc2 internal prototype to avoid an error. */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 /* We use char because int might match the return type of a gcc2
20360 builtin and then its argument prototype would still apply. */
20361 char IceConnectionNumber ();
20362 int
20363 main ()
20364 {
20365 IceConnectionNumber ();
20366 ;
20367 return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20372 (eval $ac_link) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest$ac_exeext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_lib_ICE_IceConnectionNumber=yes
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ac_cv_lib_ICE_IceConnectionNumber=no
20398 fi
20399 rm -f conftest.err conftest.$ac_objext \
20400 conftest$ac_exeext conftest.$ac_ext
20401 LIBS=$ac_check_lib_save_LIBS
20402 fi
20403 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20404 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20405 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20406 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20407 fi
20408
20409 LDFLAGS=$ac_save_LDFLAGS
20410
20411 fi
20412
20413
20414 # FIXME: this should be _libs on some hosts.
20415 libsubdir=.libs
20416
20417 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20418
20419 LIBSTDCXXSPEC=
20420 # extra LD Flags which are required for targets
20421 case "${host}" in
20422 *-*-darwin[0-7].*)
20423 # For now we have to disable it on darwin[8-9] because it slows down
20424 # the linking phase. A possible bug in ld?
20425 # on Darwin -single_module speeds up loading of the dynamic libraries.
20426 extra_ldflags_libjava=-Wl,-single_module
20427 ;;
20428 *-*-darwin[9]*)
20429 extra_gij_ldflags=-Wl,-allow_stack_execute
20430 ;;
20431 arm*linux*eabi)
20432 # Some of the ARM unwinder code is actually in libstdc++. We
20433 # could in principle replicate it in libgcj, but it's better to
20434 # have a dependency on libstdc++.
20435 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20436 LIBSTDCXXSPEC=-lstdc++
20437 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20438 ;;
20439 esac
20440
20441
20442
20443
20444
20445
20446
20447 # Allow the GC to be disabled. Can be useful when debugging.
20448 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20449 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20450 # Check whether --enable-java-gc or --disable-java-gc was given.
20451 if test "${enable_java_gc+set}" = set; then
20452 enableval="$enable_java_gc"
20453 GC=$enableval
20454 else
20455 GC=boehm
20456 fi;
20457 GCLIBS=
20458 GCINCS=
20459 GCDEPS=
20460 GCSPEC=
20461 JC1GCSPEC=
20462 GCTESTSPEC=
20463 case "$GC" in
20464 boehm)
20465 echo "$as_me:$LINENO: result: boehm" >&5
20466 echo "${ECHO_T}boehm" >&6
20467 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20468 JC1GCSPEC='-fuse-boehm-gc'
20469 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20470 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20471 GCOBJS=boehm.lo
20472 GCHDR=boehm-gc.h
20473 # The POSIX thread support needs to know this.
20474
20475 cat >>confdefs.h <<\_ACEOF
20476 #define HAVE_BOEHM_GC 1
20477 _ACEOF
20478
20479 ;;
20480 no)
20481 echo "$as_me:$LINENO: result: none" >&5
20482 echo "${ECHO_T}none" >&6
20483 GCHDR=no-gc.h
20484 ;;
20485 *)
20486 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20487 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20488 { (exit 1); exit 1; }; }
20489 ;;
20490 esac
20491
20492
20493
20494
20495
20496
20497 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20498
20499
20500
20501 if test "$GC" = boehm; then
20502 USING_BOEHMGC_TRUE=
20503 USING_BOEHMGC_FALSE='#'
20504 else
20505 USING_BOEHMGC_TRUE='#'
20506 USING_BOEHMGC_FALSE=
20507 fi
20508
20509
20510
20511 if test "$GC" = no; then
20512 USING_NOGC_TRUE=
20513 USING_NOGC_FALSE='#'
20514 else
20515 USING_NOGC_TRUE='#'
20516 USING_NOGC_FALSE=
20517 fi
20518
20519
20520
20521 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20522 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20523 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20524 echo "$as_me:$LINENO: result: $THREADS" >&5
20525 echo "${ECHO_T}$THREADS" >&6
20526
20527 case "$THREADS" in
20528 no | none | single)
20529 THREADS=none
20530 ;;
20531 posix | posix95 | pthreads)
20532 THREADS=posix
20533 case "$host" in
20534 *-*-linux*)
20535
20536 cat >>confdefs.h <<\_ACEOF
20537 #define LINUX_THREADS 1
20538 _ACEOF
20539
20540 ;;
20541 esac
20542 ;;
20543 win32)
20544 ;;
20545 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20546 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20547 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20548 { (exit 1); exit 1; }; }
20549 ;;
20550 *)
20551 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20552 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20553 { (exit 1); exit 1; }; }
20554 ;;
20555 esac
20556
20557 THREADCXXFLAGS=
20558 THREADLDFLAGS=
20559 THREADLIBS=
20560 THREADINCS=
20561 THREADDEPS=
20562 THREADH=
20563 THREADSPEC=
20564 THREADSTARTFILESPEC=
20565 case "$THREADS" in
20566 posix)
20567 case "$host" in
20568 *-*-cygwin*)
20569 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20570 ;;
20571 *-*-freebsd[1234]*)
20572 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20573 # merely adds pthread_* functions) but it does have a -pthread switch
20574 # which is required at link-time to select -lc_r *instead* of -lc.
20575 THREADLDFLAGS=-pthread
20576 # Don't set THREADSPEC here as might be expected since -pthread is
20577 # not processed when found within a spec file, it must come from
20578 # the command line. For now, the user must provide the -pthread
20579 # switch to link code compiled with gcj. In future, consider adding
20580 # support for weak references to pthread_* functions ala gthr.h API.
20581 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20582 ;;
20583 *-*-freebsd*)
20584 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20585 # systems which support threads and -lpthread.
20586 THREADLDFLAGS=-pthread
20587 THREADSPEC=-lpthread
20588 ;;
20589 alpha*-dec-osf* | hppa*-hp-hpux*)
20590 THREADCXXFLAGS=-pthread
20591 # boehm-gc needs some functions from librt, so link that too.
20592 THREADLIBS='-lpthread -lrt'
20593 THREADSPEC='-lpthread -lrt'
20594 ;;
20595 *)
20596 THREADLIBS=-lpthread
20597 THREADSPEC=-lpthread
20598 ;;
20599 esac
20600 THREADH=posix-threads.h
20601 # MIT pthreads doesn't seem to have the mutexattr functions.
20602 # But for now we don't check for it. We just assume you aren't
20603 # using MIT pthreads.
20604
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20607 _ACEOF
20608
20609
20610 # If we're using the Boehm GC, then we happen to know that it
20611 # defines _REENTRANT, so we don't bother. Eww.
20612 if test "$GC" != boehm; then
20613
20614 cat >>confdefs.h <<\_ACEOF
20615 #define _REENTRANT 1
20616 _ACEOF
20617
20618 fi
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define _POSIX_PTHREAD_SEMANTICS 1
20622 _ACEOF
20623
20624 ;;
20625
20626 win32)
20627 THREADH=win32-threads.h
20628 THREADCXXFLAGS=-mthreads
20629 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20630 # But we do not want the executables created to be dependent on
20631 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20632 # exception handling contexts. The following kludge achieves this effect
20633 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20634 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20635 # A workaround is to explicitly use -mthreads while linking Java programs.
20636 # See PR libgcj/28263.
20637 #
20638 # FIXME: In Java we are able to detect thread death at the end of
20639 # Thread.run() so we should be able to clean up the exception handling
20640 # contexts ourselves.
20641 THREADSTARTFILESPEC='crtmt%O%s'
20642 ;;
20643
20644 none)
20645 THREADH=no-threads.h
20646 ;;
20647 esac
20648 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659 if test "$THREADS" = posix; then
20660 USING_POSIX_THREADS_TRUE=
20661 USING_POSIX_THREADS_FALSE='#'
20662 else
20663 USING_POSIX_THREADS_TRUE='#'
20664 USING_POSIX_THREADS_FALSE=
20665 fi
20666
20667
20668
20669 if test "$THREADS" = win32; then
20670 USING_WIN32_THREADS_TRUE=
20671 USING_WIN32_THREADS_FALSE='#'
20672 else
20673 USING_WIN32_THREADS_TRUE='#'
20674 USING_WIN32_THREADS_FALSE=
20675 fi
20676
20677
20678
20679 if test "$THREADS" = none; then
20680 USING_NO_THREADS_TRUE=
20681 USING_NO_THREADS_FALSE='#'
20682 else
20683 USING_NO_THREADS_TRUE='#'
20684 USING_NO_THREADS_FALSE=
20685 fi
20686
20687
20688
20689 if test "$use_libgcj_bc" = yes; then
20690 USE_LIBGCJ_BC_TRUE=
20691 USE_LIBGCJ_BC_FALSE='#'
20692 else
20693 USE_LIBGCJ_BC_TRUE='#'
20694 USE_LIBGCJ_BC_FALSE=
20695 fi
20696
20697
20698 if test -d sysdep; then true; else mkdir sysdep; fi
20699 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20700
20701 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20702
20703 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20704
20705
20706 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20707 if test "$use_libgcj_bc" = yes; then
20708 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20709 fi
20710
20711
20712 HASH_SYNC_SPEC=
20713 # Hash synchronization is only useful with posix threads right now.
20714 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20715 HASH_SYNC_SPEC=-fhash-synchronization
20716
20717 cat >>confdefs.h <<\_ACEOF
20718 #define JV_HASH_SYNCHRONIZATION 1
20719 _ACEOF
20720
20721 fi
20722
20723
20724
20725
20726 if test "$GCC" = yes; then
20727 USING_GCC_TRUE=
20728 USING_GCC_FALSE='#'
20729 else
20730 USING_GCC_TRUE='#'
20731 USING_GCC_FALSE=
20732 fi
20733
20734
20735 # We're in the tree with gcc, and need to include some of its headers.
20736 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20737
20738 if test "x${with_newlib}" = "xyes"; then
20739 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20740 # may not work correctly, because the compiler may not be able to
20741 # link executables.
20742
20743 # We assume newlib. This lets us hard-code the functions we know
20744 # we'll have.
20745
20746 cat >>confdefs.h <<\_ACEOF
20747 #define HAVE_MEMMOVE 1
20748 _ACEOF
20749
20750
20751 cat >>confdefs.h <<\_ACEOF
20752 #define HAVE_MEMCPY 1
20753 _ACEOF
20754
20755
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_TIME 1
20758 _ACEOF
20759
20760
20761 cat >>confdefs.h <<\_ACEOF
20762 #define HAVE_GMTIME_R 1
20763 _ACEOF
20764
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define HAVE_LOCALTIME_R 1
20768 _ACEOF
20769
20770
20771 cat >>confdefs.h <<\_ACEOF
20772 #define HAVE_USLEEP_DECL 1
20773 _ACEOF
20774
20775 # This is only for POSIX threads.
20776
20777 cat >>confdefs.h <<\_ACEOF
20778 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20779 _ACEOF
20780
20781
20782 # Assume we do not have getuid and friends.
20783
20784 cat >>confdefs.h <<\_ACEOF
20785 #define NO_GETUID 1
20786 _ACEOF
20787
20788 PLATFORMNET=NoNet
20789 else
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820 for ac_func in strerror_r select fstat open fsync sleep opendir \
20821 localtime_r getpwuid_r getcwd \
20822 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20823 nl_langinfo setlocale \
20824 inet_pton uname inet_ntoa \
20825 getrlimit sigaction ftruncate mmap \
20826 getifaddrs
20827 do
20828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20829 echo "$as_me:$LINENO: checking for $ac_func" >&5
20830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20831 if eval "test \"\${$as_ac_var+set}\" = set"; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834 if test x$gcc_no_link = xyes; then
20835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20837 { (exit 1); exit 1; }; }
20838 fi
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20847 #define $ac_func innocuous_$ac_func
20848
20849 /* System header to define __stub macros and hopefully few prototypes,
20850 which can conflict with char $ac_func (); below.
20851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20852 <limits.h> exists even on freestanding compilers. */
20853
20854 #ifdef __STDC__
20855 # include <limits.h>
20856 #else
20857 # include <assert.h>
20858 #endif
20859
20860 #undef $ac_func
20861
20862 /* Override any gcc2 internal prototype to avoid an error. */
20863 #ifdef __cplusplus
20864 extern "C"
20865 {
20866 #endif
20867 /* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869 char $ac_func ();
20870 /* The GNU C library defines this for functions which it implements
20871 to always fail with ENOSYS. Some functions are actually named
20872 something starting with __ and the normal name is an alias. */
20873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20874 choke me
20875 #else
20876 char (*f) () = $ac_func;
20877 #endif
20878 #ifdef __cplusplus
20879 }
20880 #endif
20881
20882 int
20883 main ()
20884 {
20885 return f != $ac_func;
20886 ;
20887 return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20892 (eval $ac_link) 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest$ac_exeext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 eval "$as_ac_var=yes"
20913 else
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917 eval "$as_ac_var=no"
20918 fi
20919 rm -f conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20921 fi
20922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20924 if test `eval echo '${'$as_ac_var'}'` = yes; then
20925 cat >>confdefs.h <<_ACEOF
20926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20927 _ACEOF
20928
20929 fi
20930 done
20931
20932
20933
20934 for ac_func in inet_aton inet_addr
20935 do
20936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937 echo "$as_me:$LINENO: checking for $ac_func" >&5
20938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20939 if eval "test \"\${$as_ac_var+set}\" = set"; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 if test x$gcc_no_link = xyes; then
20943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20945 { (exit 1); exit 1; }; }
20946 fi
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20955 #define $ac_func innocuous_$ac_func
20956
20957 /* System header to define __stub macros and hopefully few prototypes,
20958 which can conflict with char $ac_func (); below.
20959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20960 <limits.h> exists even on freestanding compilers. */
20961
20962 #ifdef __STDC__
20963 # include <limits.h>
20964 #else
20965 # include <assert.h>
20966 #endif
20967
20968 #undef $ac_func
20969
20970 /* Override any gcc2 internal prototype to avoid an error. */
20971 #ifdef __cplusplus
20972 extern "C"
20973 {
20974 #endif
20975 /* We use char because int might match the return type of a gcc2
20976 builtin and then its argument prototype would still apply. */
20977 char $ac_func ();
20978 /* The GNU C library defines this for functions which it implements
20979 to always fail with ENOSYS. Some functions are actually named
20980 something starting with __ and the normal name is an alias. */
20981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20982 choke me
20983 #else
20984 char (*f) () = $ac_func;
20985 #endif
20986 #ifdef __cplusplus
20987 }
20988 #endif
20989
20990 int
20991 main ()
20992 {
20993 return f != $ac_func;
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21000 (eval $ac_link) 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_c_werror_flag"
21008 || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest$ac_exeext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 eval "$as_ac_var=yes"
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 eval "$as_ac_var=no"
21026 fi
21027 rm -f conftest.err conftest.$ac_objext \
21028 conftest$ac_exeext conftest.$ac_ext
21029 fi
21030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21032 if test `eval echo '${'$as_ac_var'}'` = yes; then
21033 cat >>confdefs.h <<_ACEOF
21034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 _ACEOF
21036 break
21037 fi
21038 done
21039
21040
21041
21042
21043 for ac_header in unistd.h dlfcn.h sys/resource.h
21044 do
21045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21047 echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 fi
21052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21054 else
21055 # Is the header compilable?
21056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 $ac_includes_default
21065 #include <$ac_header>
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21069 (eval $ac_compile) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_header_compiler=yes
21090 else
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_header_compiler=no
21095 fi
21096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21098 echo "${ECHO_T}$ac_header_compiler" >&6
21099
21100 # Is the header present?
21101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 #include <$ac_header>
21110 _ACEOF
21111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev/null; then
21119 if test -s conftest.err; then
21120 ac_cpp_err=$ac_c_preproc_warn_flag
21121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21122 else
21123 ac_cpp_err=
21124 fi
21125 else
21126 ac_cpp_err=yes
21127 fi
21128 if test -z "$ac_cpp_err"; then
21129 ac_header_preproc=yes
21130 else
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ac_header_preproc=no
21135 fi
21136 rm -f conftest.err conftest.$ac_ext
21137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6
21139
21140 # So? What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142 yes:no: )
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147 ac_header_preproc=yes
21148 ;;
21149 no:yes:* )
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21162 (
21163 cat <<\_ASBOX
21164 ## ---------------------------------- ##
21165 ## Report this to the libjava lists. ##
21166 ## ---------------------------------- ##
21167 _ASBOX
21168 ) |
21169 sed "s/^/$as_me: WARNING: /" >&2
21170 ;;
21171 esac
21172 echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177 eval "$as_ac_Header=\$ac_header_preproc"
21178 fi
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21181
21182 fi
21183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21184 cat >>confdefs.h <<_ACEOF
21185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21186 _ACEOF
21187
21188 fi
21189
21190 done
21191
21192 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21193 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21194 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21195 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198 ac_check_lib_save_LIBS=$LIBS
21199 LIBS="-ldl $LIBS"
21200 if test x$gcc_no_link = xyes; then
21201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21203 { (exit 1); exit 1; }; }
21204 fi
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211
21212 /* Override any gcc2 internal prototype to avoid an error. */
21213 #ifdef __cplusplus
21214 extern "C"
21215 #endif
21216 /* We use char because int might match the return type of a gcc2
21217 builtin and then its argument prototype would still apply. */
21218 char dladdr ();
21219 int
21220 main ()
21221 {
21222 dladdr ();
21223 ;
21224 return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21229 (eval $ac_link) 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } &&
21236 { ac_try='test -z "$ac_c_werror_flag"
21237 || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest$ac_exeext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 ac_cv_lib_dl_dladdr=yes
21250 else
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_cv_lib_dl_dladdr=no
21255 fi
21256 rm -f conftest.err conftest.$ac_objext \
21257 conftest$ac_exeext conftest.$ac_ext
21258 LIBS=$ac_check_lib_save_LIBS
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21261 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21262 if test $ac_cv_lib_dl_dladdr = yes; then
21263
21264
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_DLADDR 1
21267 _ACEOF
21268
21269 else
21270
21271 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21272 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21273 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 ac_check_lib_save_LIBS=$LIBS
21277 LIBS="-ldld $LIBS"
21278 if test x$gcc_no_link = xyes; then
21279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21281 { (exit 1); exit 1; }; }
21282 fi
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289
21290 /* Override any gcc2 internal prototype to avoid an error. */
21291 #ifdef __cplusplus
21292 extern "C"
21293 #endif
21294 /* We use char because int might match the return type of a gcc2
21295 builtin and then its argument prototype would still apply. */
21296 char dladdr ();
21297 int
21298 main ()
21299 {
21300 dladdr ();
21301 ;
21302 return 0;
21303 }
21304 _ACEOF
21305 rm -f conftest.$ac_objext conftest$ac_exeext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21307 (eval $ac_link) 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_c_werror_flag"
21315 || test ! -s conftest.err'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; } &&
21321 { ac_try='test -s conftest$ac_exeext'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
21327 ac_cv_lib_dld_dladdr=yes
21328 else
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332 ac_cv_lib_dld_dladdr=no
21333 fi
21334 rm -f conftest.err conftest.$ac_objext \
21335 conftest$ac_exeext conftest.$ac_ext
21336 LIBS=$ac_check_lib_save_LIBS
21337 fi
21338 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21339 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21340 if test $ac_cv_lib_dld_dladdr = yes; then
21341
21342
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_DLADDR 1
21345 _ACEOF
21346
21347 fi
21348
21349 fi
21350
21351
21352 if test x"$cross_compiling" = x"no"; then
21353 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21354 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21355 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358 test "$cross_compiling" = yes &&
21359 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21360 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21361 { (exit 1); exit 1; }; }
21362 if test -r "/proc/self/exe"; then
21363 ac_cv_file__proc_self_exe=yes
21364 else
21365 ac_cv_file__proc_self_exe=no
21366 fi
21367 fi
21368 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21369 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21370 if test $ac_cv_file__proc_self_exe = yes; then
21371
21372 cat >>confdefs.h <<_ACEOF
21373 #define HAVE__PROC_SELF_EXE 1
21374 _ACEOF
21375
21376
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define HAVE_PROC_SELF_EXE 1
21380 _ACEOF
21381
21382 fi
21383
21384 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21385 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21386 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389 test "$cross_compiling" = yes &&
21390 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21391 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21392 { (exit 1); exit 1; }; }
21393 if test -r "/proc/self/maps"; then
21394 ac_cv_file__proc_self_maps=yes
21395 else
21396 ac_cv_file__proc_self_maps=no
21397 fi
21398 fi
21399 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21400 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21401 if test $ac_cv_file__proc_self_maps = yes; then
21402
21403 cat >>confdefs.h <<_ACEOF
21404 #define HAVE__PROC_SELF_MAPS 1
21405 _ACEOF
21406
21407
21408
21409 cat >>confdefs.h <<\_ACEOF
21410 #define HAVE_PROC_SELF_MAPS 1
21411 _ACEOF
21412
21413 fi
21414
21415 else
21416 case $host in
21417 *-linux*)
21418
21419 cat >>confdefs.h <<\_ACEOF
21420 #define HAVE_PROC_SELF_EXE 1
21421 _ACEOF
21422
21423
21424 cat >>confdefs.h <<\_ACEOF
21425 #define HAVE_PROC_SELF_MAPS 1
21426 _ACEOF
21427
21428 ;;
21429 esac
21430 fi
21431
21432
21433 if test "X$prefix" = "XNONE"; then
21434 acl_final_prefix="$ac_default_prefix"
21435 else
21436 acl_final_prefix="$prefix"
21437 fi
21438 if test "X$exec_prefix" = "XNONE"; then
21439 acl_final_exec_prefix='${prefix}'
21440 else
21441 acl_final_exec_prefix="$exec_prefix"
21442 fi
21443 acl_save_prefix="$prefix"
21444 prefix="$acl_final_prefix"
21445 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21446 prefix="$acl_save_prefix"
21447
21448
21449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21450 if test "${with_gnu_ld+set}" = set; then
21451 withval="$with_gnu_ld"
21452 test "$withval" = no || with_gnu_ld=yes
21453 else
21454 with_gnu_ld=no
21455 fi;
21456 # Prepare PATH_SEPARATOR.
21457 # The user is always right.
21458 if test "${PATH_SEPARATOR+set}" != set; then
21459 echo "#! /bin/sh" >conf$$.sh
21460 echo "exit 0" >>conf$$.sh
21461 chmod +x conf$$.sh
21462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21463 PATH_SEPARATOR=';'
21464 else
21465 PATH_SEPARATOR=:
21466 fi
21467 rm -f conf$$.sh
21468 fi
21469 ac_prog=ld
21470 if test "$GCC" = yes; then
21471 # Check if gcc -print-prog-name=ld gives a path.
21472 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21473 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21474 case $host in
21475 *-*-mingw*)
21476 # gcc leaves a trailing carriage return which upsets mingw
21477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21478 *)
21479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21480 esac
21481 case $ac_prog in
21482 # Accept absolute paths.
21483 [\\/]* | [A-Za-z]:[\\/]*)
21484 re_direlt='/[^/][^/]*/\.\./'
21485 # Canonicalize the path of ld
21486 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21488 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21489 done
21490 test -z "$LD" && LD="$ac_prog"
21491 ;;
21492 "")
21493 # If it fails, then pretend we aren't using GCC.
21494 ac_prog=ld
21495 ;;
21496 *)
21497 # If it is relative, then search for the first ld in PATH.
21498 with_gnu_ld=unknown
21499 ;;
21500 esac
21501 elif test "$with_gnu_ld" = yes; then
21502 echo "$as_me:$LINENO: checking for GNU ld" >&5
21503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21504 else
21505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21507 fi
21508 if test "${acl_cv_path_LD+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 else
21511 if test -z "$LD"; then
21512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21513 for ac_dir in $PATH; do
21514 test -z "$ac_dir" && ac_dir=.
21515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21516 acl_cv_path_LD="$ac_dir/$ac_prog"
21517 # Check to see if the program is GNU ld. I'd rather use --version,
21518 # but apparently some GNU ld's only accept -v.
21519 # Break only if it was the GNU/non-GNU ld that we prefer.
21520 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21521 test "$with_gnu_ld" != no && break
21522 else
21523 test "$with_gnu_ld" != yes && break
21524 fi
21525 fi
21526 done
21527 IFS="$ac_save_ifs"
21528 else
21529 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21530 fi
21531 fi
21532
21533 LD="$acl_cv_path_LD"
21534 if test -n "$LD"; then
21535 echo "$as_me:$LINENO: result: $LD" >&5
21536 echo "${ECHO_T}$LD" >&6
21537 else
21538 echo "$as_me:$LINENO: result: no" >&5
21539 echo "${ECHO_T}no" >&6
21540 fi
21541 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21543 { (exit 1); exit 1; }; }
21544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21546 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21550 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21551 acl_cv_prog_gnu_ld=yes
21552 else
21553 acl_cv_prog_gnu_ld=no
21554 fi
21555 fi
21556 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21557 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21558 with_gnu_ld=$acl_cv_prog_gnu_ld
21559
21560
21561
21562 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21563 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21564 if test "${acl_cv_rpath+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567
21568 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21569 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21570 . ./conftest.sh
21571 rm -f ./conftest.sh
21572 acl_cv_rpath=done
21573
21574 fi
21575 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21576 echo "${ECHO_T}$acl_cv_rpath" >&6
21577 wl="$acl_cv_wl"
21578 libext="$acl_cv_libext"
21579 shlibext="$acl_cv_shlibext"
21580 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21581 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21582 hardcode_direct="$acl_cv_hardcode_direct"
21583 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21584 # Check whether --enable-rpath or --disable-rpath was given.
21585 if test "${enable_rpath+set}" = set; then
21586 enableval="$enable_rpath"
21587 :
21588 else
21589 enable_rpath=yes
21590 fi;
21591
21592
21593
21594
21595
21596
21597
21598 use_additional=yes
21599
21600 acl_save_prefix="$prefix"
21601 prefix="$acl_final_prefix"
21602 acl_save_exec_prefix="$exec_prefix"
21603 exec_prefix="$acl_final_exec_prefix"
21604
21605 eval additional_includedir=\"$includedir\"
21606 eval additional_libdir=\"$libdir\"
21607
21608 exec_prefix="$acl_save_exec_prefix"
21609 prefix="$acl_save_prefix"
21610
21611
21612 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21613 if test "${with_libiconv_prefix+set}" = set; then
21614 withval="$with_libiconv_prefix"
21615
21616 if test "X$withval" = "Xno"; then
21617 use_additional=no
21618 else
21619 if test "X$withval" = "X"; then
21620
21621 acl_save_prefix="$prefix"
21622 prefix="$acl_final_prefix"
21623 acl_save_exec_prefix="$exec_prefix"
21624 exec_prefix="$acl_final_exec_prefix"
21625
21626 eval additional_includedir=\"$includedir\"
21627 eval additional_libdir=\"$libdir\"
21628
21629 exec_prefix="$acl_save_exec_prefix"
21630 prefix="$acl_save_prefix"
21631
21632 else
21633 additional_includedir="$withval/include"
21634 additional_libdir="$withval/lib"
21635 fi
21636 fi
21637
21638 fi;
21639 LIBICONV=
21640 LTLIBICONV=
21641 INCICONV=
21642 rpathdirs=
21643 ltrpathdirs=
21644 names_already_handled=
21645 names_next_round='iconv '
21646 while test -n "$names_next_round"; do
21647 names_this_round="$names_next_round"
21648 names_next_round=
21649 for name in $names_this_round; do
21650 already_handled=
21651 for n in $names_already_handled; do
21652 if test "$n" = "$name"; then
21653 already_handled=yes
21654 break
21655 fi
21656 done
21657 if test -z "$already_handled"; then
21658 names_already_handled="$names_already_handled $name"
21659 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21660 eval value=\"\$HAVE_LIB$uppername\"
21661 if test -n "$value"; then
21662 if test "$value" = yes; then
21663 eval value=\"\$LIB$uppername\"
21664 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21665 eval value=\"\$LTLIB$uppername\"
21666 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21667 else
21668 :
21669 fi
21670 else
21671 found_dir=
21672 found_la=
21673 found_so=
21674 found_a=
21675 if test $use_additional = yes; then
21676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21677 found_dir="$additional_libdir"
21678 found_so="$additional_libdir/lib$name.$shlibext"
21679 if test -f "$additional_libdir/lib$name.la"; then
21680 found_la="$additional_libdir/lib$name.la"
21681 fi
21682 else
21683 if test -f "$additional_libdir/lib$name.$libext"; then
21684 found_dir="$additional_libdir"
21685 found_a="$additional_libdir/lib$name.$libext"
21686 if test -f "$additional_libdir/lib$name.la"; then
21687 found_la="$additional_libdir/lib$name.la"
21688 fi
21689 fi
21690 fi
21691 fi
21692 if test "X$found_dir" = "X"; then
21693 for x in $LDFLAGS $LTLIBICONV; do
21694
21695 acl_save_prefix="$prefix"
21696 prefix="$acl_final_prefix"
21697 acl_save_exec_prefix="$exec_prefix"
21698 exec_prefix="$acl_final_exec_prefix"
21699 eval x=\"$x\"
21700 exec_prefix="$acl_save_exec_prefix"
21701 prefix="$acl_save_prefix"
21702
21703 case "$x" in
21704 -L*)
21705 dir=`echo "X$x" | sed -e 's/^X-L//'`
21706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21707 found_dir="$dir"
21708 found_so="$dir/lib$name.$shlibext"
21709 if test -f "$dir/lib$name.la"; then
21710 found_la="$dir/lib$name.la"
21711 fi
21712 else
21713 if test -f "$dir/lib$name.$libext"; then
21714 found_dir="$dir"
21715 found_a="$dir/lib$name.$libext"
21716 if test -f "$dir/lib$name.la"; then
21717 found_la="$dir/lib$name.la"
21718 fi
21719 fi
21720 fi
21721 ;;
21722 esac
21723 if test "X$found_dir" != "X"; then
21724 break
21725 fi
21726 done
21727 fi
21728 if test "X$found_dir" != "X"; then
21729 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21730 if test "X$found_so" != "X"; then
21731 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21732 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21733 else
21734 haveit=
21735 for x in $ltrpathdirs; do
21736 if test "X$x" = "X$found_dir"; then
21737 haveit=yes
21738 break
21739 fi
21740 done
21741 if test -z "$haveit"; then
21742 ltrpathdirs="$ltrpathdirs $found_dir"
21743 fi
21744 if test "$hardcode_direct" = yes; then
21745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21746 else
21747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21748 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21749 haveit=
21750 for x in $rpathdirs; do
21751 if test "X$x" = "X$found_dir"; then
21752 haveit=yes
21753 break
21754 fi
21755 done
21756 if test -z "$haveit"; then
21757 rpathdirs="$rpathdirs $found_dir"
21758 fi
21759 else
21760 haveit=
21761 for x in $LDFLAGS $LIBICONV; do
21762
21763 acl_save_prefix="$prefix"
21764 prefix="$acl_final_prefix"
21765 acl_save_exec_prefix="$exec_prefix"
21766 exec_prefix="$acl_final_exec_prefix"
21767 eval x=\"$x\"
21768 exec_prefix="$acl_save_exec_prefix"
21769 prefix="$acl_save_prefix"
21770
21771 if test "X$x" = "X-L$found_dir"; then
21772 haveit=yes
21773 break
21774 fi
21775 done
21776 if test -z "$haveit"; then
21777 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21778 fi
21779 if test "$hardcode_minus_L" != no; then
21780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21781 else
21782 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21783 fi
21784 fi
21785 fi
21786 fi
21787 else
21788 if test "X$found_a" != "X"; then
21789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21790 else
21791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21792 fi
21793 fi
21794 additional_includedir=
21795 case "$found_dir" in
21796 */lib | */lib/)
21797 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21798 additional_includedir="$basedir/include"
21799 ;;
21800 esac
21801 if test "X$additional_includedir" != "X"; then
21802 if test "X$additional_includedir" != "X/usr/include"; then
21803 haveit=
21804 if test "X$additional_includedir" = "X/usr/local/include"; then
21805 if test -n "$GCC"; then
21806 case $host_os in
21807 linux*) haveit=yes;;
21808 esac
21809 fi
21810 fi
21811 if test -z "$haveit"; then
21812 for x in $CPPFLAGS $INCICONV; do
21813
21814 acl_save_prefix="$prefix"
21815 prefix="$acl_final_prefix"
21816 acl_save_exec_prefix="$exec_prefix"
21817 exec_prefix="$acl_final_exec_prefix"
21818 eval x=\"$x\"
21819 exec_prefix="$acl_save_exec_prefix"
21820 prefix="$acl_save_prefix"
21821
21822 if test "X$x" = "X-I$additional_includedir"; then
21823 haveit=yes
21824 break
21825 fi
21826 done
21827 if test -z "$haveit"; then
21828 if test -d "$additional_includedir"; then
21829 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21830 fi
21831 fi
21832 fi
21833 fi
21834 fi
21835 if test -n "$found_la"; then
21836 save_libdir="$libdir"
21837 case "$found_la" in
21838 */* | *\\*) . "$found_la" ;;
21839 *) . "./$found_la" ;;
21840 esac
21841 libdir="$save_libdir"
21842 for dep in $dependency_libs; do
21843 case "$dep" in
21844 -L*)
21845 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21846 if test "X$additional_libdir" != "X/usr/lib"; then
21847 haveit=
21848 if test "X$additional_libdir" = "X/usr/local/lib"; then
21849 if test -n "$GCC"; then
21850 case $host_os in
21851 linux*) haveit=yes;;
21852 esac
21853 fi
21854 fi
21855 if test -z "$haveit"; then
21856 haveit=
21857 for x in $LDFLAGS $LIBICONV; do
21858
21859 acl_save_prefix="$prefix"
21860 prefix="$acl_final_prefix"
21861 acl_save_exec_prefix="$exec_prefix"
21862 exec_prefix="$acl_final_exec_prefix"
21863 eval x=\"$x\"
21864 exec_prefix="$acl_save_exec_prefix"
21865 prefix="$acl_save_prefix"
21866
21867 if test "X$x" = "X-L$additional_libdir"; then
21868 haveit=yes
21869 break
21870 fi
21871 done
21872 if test -z "$haveit"; then
21873 if test -d "$additional_libdir"; then
21874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21875 fi
21876 fi
21877 haveit=
21878 for x in $LDFLAGS $LTLIBICONV; do
21879
21880 acl_save_prefix="$prefix"
21881 prefix="$acl_final_prefix"
21882 acl_save_exec_prefix="$exec_prefix"
21883 exec_prefix="$acl_final_exec_prefix"
21884 eval x=\"$x\"
21885 exec_prefix="$acl_save_exec_prefix"
21886 prefix="$acl_save_prefix"
21887
21888 if test "X$x" = "X-L$additional_libdir"; then
21889 haveit=yes
21890 break
21891 fi
21892 done
21893 if test -z "$haveit"; then
21894 if test -d "$additional_libdir"; then
21895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21896 fi
21897 fi
21898 fi
21899 fi
21900 ;;
21901 -R*)
21902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21903 if test "$enable_rpath" != no; then
21904 haveit=
21905 for x in $rpathdirs; do
21906 if test "X$x" = "X$dir"; then
21907 haveit=yes
21908 break
21909 fi
21910 done
21911 if test -z "$haveit"; then
21912 rpathdirs="$rpathdirs $dir"
21913 fi
21914 haveit=
21915 for x in $ltrpathdirs; do
21916 if test "X$x" = "X$dir"; then
21917 haveit=yes
21918 break
21919 fi
21920 done
21921 if test -z "$haveit"; then
21922 ltrpathdirs="$ltrpathdirs $dir"
21923 fi
21924 fi
21925 ;;
21926 -l*)
21927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21928 ;;
21929 *.la)
21930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21931 ;;
21932 *)
21933 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21935 ;;
21936 esac
21937 done
21938 fi
21939 else
21940 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21942 fi
21943 fi
21944 fi
21945 done
21946 done
21947 if test "X$rpathdirs" != "X"; then
21948 if test -n "$hardcode_libdir_separator"; then
21949 alldirs=
21950 for found_dir in $rpathdirs; do
21951 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21952 done
21953 acl_save_libdir="$libdir"
21954 libdir="$alldirs"
21955 eval flag=\"$hardcode_libdir_flag_spec\"
21956 libdir="$acl_save_libdir"
21957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21958 else
21959 for found_dir in $rpathdirs; do
21960 acl_save_libdir="$libdir"
21961 libdir="$found_dir"
21962 eval flag=\"$hardcode_libdir_flag_spec\"
21963 libdir="$acl_save_libdir"
21964 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21965 done
21966 fi
21967 fi
21968 if test "X$ltrpathdirs" != "X"; then
21969 for found_dir in $ltrpathdirs; do
21970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21971 done
21972 fi
21973
21974
21975
21976
21977
21978
21979
21980 am_save_CPPFLAGS="$CPPFLAGS"
21981
21982 for element in $INCICONV; do
21983 haveit=
21984 for x in $CPPFLAGS; do
21985
21986 acl_save_prefix="$prefix"
21987 prefix="$acl_final_prefix"
21988 acl_save_exec_prefix="$exec_prefix"
21989 exec_prefix="$acl_final_exec_prefix"
21990 eval x=\"$x\"
21991 exec_prefix="$acl_save_exec_prefix"
21992 prefix="$acl_save_prefix"
21993
21994 if test "X$x" = "X$element"; then
21995 haveit=yes
21996 break
21997 fi
21998 done
21999 if test -z "$haveit"; then
22000 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22001 fi
22002 done
22003
22004
22005 echo "$as_me:$LINENO: checking for iconv" >&5
22006 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22007 if test "${am_cv_func_iconv+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010
22011 am_cv_func_iconv="no, consider installing GNU libiconv"
22012 am_cv_lib_iconv=no
22013 if test x$gcc_no_link = xyes; then
22014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22016 { (exit 1); exit 1; }; }
22017 fi
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 #include <stdlib.h>
22025 #include <iconv.h>
22026 int
22027 main ()
22028 {
22029 iconv_t cd = iconv_open("","");
22030 iconv(cd,NULL,NULL,NULL,NULL);
22031 iconv_close(cd);
22032 ;
22033 return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22038 (eval $ac_link) 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_c_werror_flag"
22046 || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 am_cv_func_iconv=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 fi
22064 rm -f conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 if test "$am_cv_func_iconv" != yes; then
22067 am_save_LIBS="$LIBS"
22068 LIBS="$LIBS $LIBICONV"
22069 if test x$gcc_no_link = xyes; then
22070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22072 { (exit 1); exit 1; }; }
22073 fi
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h. */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080 #include <stdlib.h>
22081 #include <iconv.h>
22082 int
22083 main ()
22084 {
22085 iconv_t cd = iconv_open("","");
22086 iconv(cd,NULL,NULL,NULL,NULL);
22087 iconv_close(cd);
22088 ;
22089 return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22094 (eval $ac_link) 2>conftest.er1
22095 ac_status=$?
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag"
22102 || test ! -s conftest.err'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest$ac_exeext'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; }; then
22114 am_cv_lib_iconv=yes
22115 am_cv_func_iconv=yes
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120 fi
22121 rm -f conftest.err conftest.$ac_objext \
22122 conftest$ac_exeext conftest.$ac_ext
22123 LIBS="$am_save_LIBS"
22124 fi
22125
22126 fi
22127 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22128 echo "${ECHO_T}$am_cv_func_iconv" >&6
22129 if test "$am_cv_func_iconv" = yes; then
22130
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_ICONV 1
22133 _ACEOF
22134
22135 fi
22136 if test "$am_cv_lib_iconv" = yes; then
22137 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22138 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22139 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22140 echo "${ECHO_T}$LIBICONV" >&6
22141 else
22142 CPPFLAGS="$am_save_CPPFLAGS"
22143 LIBICONV=
22144 LTLIBICONV=
22145 fi
22146
22147
22148
22149 if test "$am_cv_func_iconv" = yes; then
22150 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22151 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22152 if test "${am_cv_proto_iconv+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h. */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162
22163 #include <stdlib.h>
22164 #include <iconv.h>
22165 extern
22166 #ifdef __cplusplus
22167 "C"
22168 #endif
22169 #if defined(__STDC__) || defined(__cplusplus)
22170 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22171 #else
22172 size_t iconv();
22173 #endif
22174
22175 int
22176 main ()
22177 {
22178
22179 ;
22180 return 0;
22181 }
22182 _ACEOF
22183 rm -f conftest.$ac_objext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22185 (eval $ac_compile) 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
22192 { ac_try='test -z "$ac_c_werror_flag"
22193 || test ! -s conftest.err'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; } &&
22199 { ac_try='test -s conftest.$ac_objext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 am_cv_proto_iconv_arg1=""
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22209
22210 am_cv_proto_iconv_arg1="const"
22211 fi
22212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22213 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);"
22214 fi
22215
22216 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22217 echo "$as_me:$LINENO: result: ${ac_t:-
22218 }$am_cv_proto_iconv" >&5
22219 echo "${ECHO_T}${ac_t:-
22220 }$am_cv_proto_iconv" >&6
22221
22222 cat >>confdefs.h <<_ACEOF
22223 #define ICONV_CONST $am_cv_proto_iconv_arg1
22224 _ACEOF
22225
22226 fi
22227
22228
22229 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22230 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22231 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 if test x$gcc_no_link = xyes; then
22235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22237 { (exit 1); exit 1; }; }
22238 fi
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 #include <locale.h>
22246 int
22247 main ()
22248 {
22249 return LC_MESSAGES
22250 ;
22251 return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22256 (eval $ac_link) 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag"
22264 || test ! -s conftest.err'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; } &&
22270 { ac_try='test -s conftest$ac_exeext'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }; then
22276 am_cv_val_LC_MESSAGES=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 am_cv_val_LC_MESSAGES=no
22282 fi
22283 rm -f conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22285 fi
22286 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22287 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22288 if test $am_cv_val_LC_MESSAGES = yes; then
22289
22290 cat >>confdefs.h <<\_ACEOF
22291 #define HAVE_LC_MESSAGES 1
22292 _ACEOF
22293
22294 fi
22295
22296 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22297 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22298 if test "${ac_cv_struct_tm+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h. */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 #include <sys/types.h>
22308 #include <time.h>
22309
22310 int
22311 main ()
22312 {
22313 struct tm *tp; tp->tm_sec;
22314 ;
22315 return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -z "$ac_c_werror_flag"
22328 || test ! -s conftest.err'
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; } &&
22334 { ac_try='test -s conftest.$ac_objext'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_struct_tm=time.h
22341 else
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345 ac_cv_struct_tm=sys/time.h
22346 fi
22347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22348 fi
22349 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22350 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22351 if test $ac_cv_struct_tm = sys/time.h; then
22352
22353 cat >>confdefs.h <<\_ACEOF
22354 #define TM_IN_SYS_TIME 1
22355 _ACEOF
22356
22357 fi
22358
22359 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22360 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22361 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364 cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h. */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 #include <sys/types.h>
22371 #include <$ac_cv_struct_tm>
22372
22373
22374 int
22375 main ()
22376 {
22377 static struct tm ac_aggr;
22378 if (ac_aggr.tm_zone)
22379 return 0;
22380 ;
22381 return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -z "$ac_c_werror_flag"
22394 || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_member_struct_tm_tm_zone=yes
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <sys/types.h>
22418 #include <$ac_cv_struct_tm>
22419
22420
22421 int
22422 main ()
22423 {
22424 static struct tm ac_aggr;
22425 if (sizeof ac_aggr.tm_zone)
22426 return 0;
22427 ;
22428 return 0;
22429 }
22430 _ACEOF
22431 rm -f conftest.$ac_objext
22432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22433 (eval $ac_compile) 2>conftest.er1
22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
22440 { ac_try='test -z "$ac_c_werror_flag"
22441 || test ! -s conftest.err'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; } &&
22447 { ac_try='test -s conftest.$ac_objext'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_cv_member_struct_tm_tm_zone=yes
22454 else
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 ac_cv_member_struct_tm_tm_zone=no
22459 fi
22460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22461 fi
22462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22463 fi
22464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22465 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22466 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22467
22468 cat >>confdefs.h <<_ACEOF
22469 #define HAVE_STRUCT_TM_TM_ZONE 1
22470 _ACEOF
22471
22472
22473 fi
22474
22475 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_TM_ZONE 1
22479 _ACEOF
22480
22481 else
22482 echo "$as_me:$LINENO: checking for tzname" >&5
22483 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22484 if test "${ac_cv_var_tzname+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487 if test x$gcc_no_link = xyes; then
22488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22490 { (exit 1); exit 1; }; }
22491 fi
22492 cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h. */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 #include <time.h>
22499 #ifndef tzname /* For SGI. */
22500 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22501 #endif
22502
22503 int
22504 main ()
22505 {
22506 atoi(*tzname);
22507 ;
22508 return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22513 (eval $ac_link) 2>conftest.er1
22514 ac_status=$?
22515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_c_werror_flag"
22521 || test ! -s conftest.err'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; } &&
22527 { ac_try='test -s conftest$ac_exeext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_var_tzname=yes
22534 else
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538 ac_cv_var_tzname=no
22539 fi
22540 rm -f conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
22542 fi
22543 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22544 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22545 if test $ac_cv_var_tzname = yes; then
22546
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_TZNAME 1
22549 _ACEOF
22550
22551 fi
22552 fi
22553
22554
22555
22556 for ac_func in gethostbyname_r
22557 do
22558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22559 echo "$as_me:$LINENO: checking for $ac_func" >&5
22560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22561 if eval "test \"\${$as_ac_var+set}\" = set"; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 if test x$gcc_no_link = xyes; then
22565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22567 { (exit 1); exit 1; }; }
22568 fi
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22577 #define $ac_func innocuous_$ac_func
22578
22579 /* System header to define __stub macros and hopefully few prototypes,
22580 which can conflict with char $ac_func (); below.
22581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22582 <limits.h> exists even on freestanding compilers. */
22583
22584 #ifdef __STDC__
22585 # include <limits.h>
22586 #else
22587 # include <assert.h>
22588 #endif
22589
22590 #undef $ac_func
22591
22592 /* Override any gcc2 internal prototype to avoid an error. */
22593 #ifdef __cplusplus
22594 extern "C"
22595 {
22596 #endif
22597 /* We use char because int might match the return type of a gcc2
22598 builtin and then its argument prototype would still apply. */
22599 char $ac_func ();
22600 /* The GNU C library defines this for functions which it implements
22601 to always fail with ENOSYS. Some functions are actually named
22602 something starting with __ and the normal name is an alias. */
22603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22604 choke me
22605 #else
22606 char (*f) () = $ac_func;
22607 #endif
22608 #ifdef __cplusplus
22609 }
22610 #endif
22611
22612 int
22613 main ()
22614 {
22615 return f != $ac_func;
22616 ;
22617 return 0;
22618 }
22619 _ACEOF
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22622 (eval $ac_link) 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } &&
22629 { ac_try='test -z "$ac_c_werror_flag"
22630 || test ! -s conftest.err'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; } &&
22636 { ac_try='test -s conftest$ac_exeext'
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; }; then
22642 eval "$as_ac_var=yes"
22643 else
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22646
22647 eval "$as_ac_var=no"
22648 fi
22649 rm -f conftest.err conftest.$ac_objext \
22650 conftest$ac_exeext conftest.$ac_ext
22651 fi
22652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22654 if test `eval echo '${'$as_ac_var'}'` = yes; then
22655 cat >>confdefs.h <<_ACEOF
22656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22657 _ACEOF
22658
22659
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_GETHOSTBYNAME_R 1
22662 _ACEOF
22663
22664 # There are two different kinds of gethostbyname_r.
22665 # We look for the one that returns `int'.
22666 # Hopefully this check is robust enough.
22667 cat >conftest.$ac_ext <<_ACEOF
22668 /* confdefs.h. */
22669 _ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 #include <netdb.h>
22674
22675 _ACEOF
22676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22677 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22678
22679
22680 cat >>confdefs.h <<\_ACEOF
22681 #define GETHOSTBYNAME_R_RETURNS_INT 1
22682 _ACEOF
22683
22684 fi
22685 rm -f conftest*
22686
22687
22688 case " $GCINCS " in
22689 *" -D_REENTRANT "*) ;;
22690 *)
22691 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22692 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22693 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22695 else
22696 ac_ext=cc
22697 ac_cpp='$CXXCPP $CPPFLAGS'
22698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22701
22702 cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h. */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22708 #include <netdb.h>
22709 int
22710 main ()
22711 {
22712 gethostbyname_r("", 0, 0);
22713 ;
22714 return 0;
22715 }
22716 _ACEOF
22717 rm -f conftest.$ac_objext
22718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22719 (eval $ac_compile) 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } &&
22726 { ac_try='test -z "$ac_cxx_werror_flag"
22727 || test ! -s conftest.err'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; } &&
22733 { ac_try='test -s conftest.$ac_objext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22736 ac_status=$?
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 libjava_cv_gethostbyname_r_needs_reentrant=no
22740 else
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 CPPFLAGS_SAVE="$CPPFLAGS"
22745 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h. */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 #include <netdb.h>
22753 int
22754 main ()
22755 {
22756 gethostbyname_r("", 0, 0);
22757 ;
22758 return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext
22762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22763 (eval $ac_compile) 2>conftest.er1
22764 ac_status=$?
22765 grep -v '^ *+' conftest.er1 >conftest.err
22766 rm -f conftest.er1
22767 cat conftest.err >&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } &&
22770 { ac_try='test -z "$ac_cxx_werror_flag"
22771 || test ! -s conftest.err'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; } &&
22777 { ac_try='test -s conftest.$ac_objext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 libjava_cv_gethostbyname_r_needs_reentrant=yes
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 libjava_cv_gethostbyname_r_needs_reentrant=fail
22789 fi
22790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22791 CPPFLAGS="$CPPFLAGS_SAVE"
22792
22793 fi
22794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 ac_ext=c
22796 ac_cpp='$CPP $CPPFLAGS'
22797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22800
22801
22802 fi
22803 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22804 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22805 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22806
22807 cat >>confdefs.h <<\_ACEOF
22808 #define _REENTRANT 1
22809 _ACEOF
22810
22811 fi
22812 ;;
22813 esac
22814
22815 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22816 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22817 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820 cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h. */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826
22827 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22828 # define _REENTRANT 1
22829 #endif
22830 #include <netdb.h>
22831 int
22832 main ()
22833 {
22834 struct hostent_data data;
22835 ;
22836 return 0;
22837 }
22838 _ACEOF
22839 rm -f conftest.$ac_objext
22840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22841 (eval $ac_compile) 2>conftest.er1
22842 ac_status=$?
22843 grep -v '^ *+' conftest.er1 >conftest.err
22844 rm -f conftest.er1
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } &&
22848 { ac_try='test -z "$ac_c_werror_flag"
22849 || test ! -s conftest.err'
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; } &&
22855 { ac_try='test -s conftest.$ac_objext'
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; }; then
22861 libjava_cv_struct_hostent_data=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 libjava_cv_struct_hostent_data=no
22867 fi
22868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22869 fi
22870 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22871 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22872 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22873
22874 cat >>confdefs.h <<\_ACEOF
22875 #define HAVE_STRUCT_HOSTENT_DATA 1
22876 _ACEOF
22877
22878 fi
22879
22880 fi
22881 done
22882
22883
22884 # FIXME: libjava source code expects to find a prototype for
22885 # gethostbyaddr_r in netdb.h. The outer check ensures that
22886 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22887 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22888 # linkage check is enough, yet C++ code requires proper prototypes.)
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 #include <netdb.h>
22896
22897 _ACEOF
22898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22899 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22900
22901
22902 for ac_func in gethostbyaddr_r
22903 do
22904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22905 echo "$as_me:$LINENO: checking for $ac_func" >&5
22906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22907 if eval "test \"\${$as_ac_var+set}\" = set"; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910 if test x$gcc_no_link = xyes; then
22911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22913 { (exit 1); exit 1; }; }
22914 fi
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22923 #define $ac_func innocuous_$ac_func
22924
22925 /* System header to define __stub macros and hopefully few prototypes,
22926 which can conflict with char $ac_func (); below.
22927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22928 <limits.h> exists even on freestanding compilers. */
22929
22930 #ifdef __STDC__
22931 # include <limits.h>
22932 #else
22933 # include <assert.h>
22934 #endif
22935
22936 #undef $ac_func
22937
22938 /* Override any gcc2 internal prototype to avoid an error. */
22939 #ifdef __cplusplus
22940 extern "C"
22941 {
22942 #endif
22943 /* We use char because int might match the return type of a gcc2
22944 builtin and then its argument prototype would still apply. */
22945 char $ac_func ();
22946 /* The GNU C library defines this for functions which it implements
22947 to always fail with ENOSYS. Some functions are actually named
22948 something starting with __ and the normal name is an alias. */
22949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22950 choke me
22951 #else
22952 char (*f) () = $ac_func;
22953 #endif
22954 #ifdef __cplusplus
22955 }
22956 #endif
22957
22958 int
22959 main ()
22960 {
22961 return f != $ac_func;
22962 ;
22963 return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968 (eval $ac_link) 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } &&
22975 { ac_try='test -z "$ac_c_werror_flag"
22976 || test ! -s conftest.err'
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; } &&
22982 { ac_try='test -s conftest$ac_exeext'
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22985 ac_status=$?
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; }; then
22988 eval "$as_ac_var=yes"
22989 else
22990 echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 eval "$as_ac_var=no"
22994 fi
22995 rm -f conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 fi
22998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23000 if test `eval echo '${'$as_ac_var'}'` = yes; then
23001 cat >>confdefs.h <<_ACEOF
23002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23003 _ACEOF
23004
23005
23006 cat >>confdefs.h <<\_ACEOF
23007 #define HAVE_GETHOSTBYADDR_R 1
23008 _ACEOF
23009
23010 # There are two different kinds of gethostbyaddr_r.
23011 # We look for the one that returns `int'.
23012 # Hopefully this check is robust enough.
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h. */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 #include <netdb.h>
23020
23021 _ACEOF
23022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23023 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23024
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define GETHOSTBYADDR_R_RETURNS_INT 1
23028 _ACEOF
23029
23030 fi
23031 rm -f conftest*
23032
23033 fi
23034 done
23035
23036 fi
23037 rm -f conftest*
23038
23039
23040
23041 for ac_func in gethostname
23042 do
23043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23044 echo "$as_me:$LINENO: checking for $ac_func" >&5
23045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23046 if eval "test \"\${$as_ac_var+set}\" = set"; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049 if test x$gcc_no_link = xyes; then
23050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23052 { (exit 1); exit 1; }; }
23053 fi
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h. */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23062 #define $ac_func innocuous_$ac_func
23063
23064 /* System header to define __stub macros and hopefully few prototypes,
23065 which can conflict with char $ac_func (); below.
23066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23067 <limits.h> exists even on freestanding compilers. */
23068
23069 #ifdef __STDC__
23070 # include <limits.h>
23071 #else
23072 # include <assert.h>
23073 #endif
23074
23075 #undef $ac_func
23076
23077 /* Override any gcc2 internal prototype to avoid an error. */
23078 #ifdef __cplusplus
23079 extern "C"
23080 {
23081 #endif
23082 /* We use char because int might match the return type of a gcc2
23083 builtin and then its argument prototype would still apply. */
23084 char $ac_func ();
23085 /* The GNU C library defines this for functions which it implements
23086 to always fail with ENOSYS. Some functions are actually named
23087 something starting with __ and the normal name is an alias. */
23088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23089 choke me
23090 #else
23091 char (*f) () = $ac_func;
23092 #endif
23093 #ifdef __cplusplus
23094 }
23095 #endif
23096
23097 int
23098 main ()
23099 {
23100 return f != $ac_func;
23101 ;
23102 return 0;
23103 }
23104 _ACEOF
23105 rm -f conftest.$ac_objext conftest$ac_exeext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107 (eval $ac_link) 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } &&
23114 { ac_try='test -z "$ac_c_werror_flag"
23115 || test ! -s conftest.err'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; } &&
23121 { ac_try='test -s conftest$ac_exeext'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; }; then
23127 eval "$as_ac_var=yes"
23128 else
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23131
23132 eval "$as_ac_var=no"
23133 fi
23134 rm -f conftest.err conftest.$ac_objext \
23135 conftest$ac_exeext conftest.$ac_ext
23136 fi
23137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23139 if test `eval echo '${'$as_ac_var'}'` = yes; then
23140 cat >>confdefs.h <<_ACEOF
23141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23142 _ACEOF
23143
23144
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_GETHOSTNAME 1
23147 _ACEOF
23148
23149 cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h. */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #include <unistd.h>
23156
23157 _ACEOF
23158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23159 $EGREP "gethostname" >/dev/null 2>&1; then
23160
23161
23162 cat >>confdefs.h <<\_ACEOF
23163 #define HAVE_GETHOSTNAME_DECL 1
23164 _ACEOF
23165
23166 fi
23167 rm -f conftest*
23168
23169 fi
23170 done
23171
23172
23173
23174 for ac_func in usleep
23175 do
23176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23177 echo "$as_me:$LINENO: checking for $ac_func" >&5
23178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23179 if eval "test \"\${$as_ac_var+set}\" = set"; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182 if test x$gcc_no_link = xyes; then
23183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23185 { (exit 1); exit 1; }; }
23186 fi
23187 cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h. */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23195 #define $ac_func innocuous_$ac_func
23196
23197 /* System header to define __stub macros and hopefully few prototypes,
23198 which can conflict with char $ac_func (); below.
23199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23200 <limits.h> exists even on freestanding compilers. */
23201
23202 #ifdef __STDC__
23203 # include <limits.h>
23204 #else
23205 # include <assert.h>
23206 #endif
23207
23208 #undef $ac_func
23209
23210 /* Override any gcc2 internal prototype to avoid an error. */
23211 #ifdef __cplusplus
23212 extern "C"
23213 {
23214 #endif
23215 /* We use char because int might match the return type of a gcc2
23216 builtin and then its argument prototype would still apply. */
23217 char $ac_func ();
23218 /* The GNU C library defines this for functions which it implements
23219 to always fail with ENOSYS. Some functions are actually named
23220 something starting with __ and the normal name is an alias. */
23221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23222 choke me
23223 #else
23224 char (*f) () = $ac_func;
23225 #endif
23226 #ifdef __cplusplus
23227 }
23228 #endif
23229
23230 int
23231 main ()
23232 {
23233 return f != $ac_func;
23234 ;
23235 return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23240 (eval $ac_link) 2>conftest.er1
23241 ac_status=$?
23242 grep -v '^ *+' conftest.er1 >conftest.err
23243 rm -f conftest.er1
23244 cat conftest.err >&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -z "$ac_c_werror_flag"
23248 || test ! -s conftest.err'
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23251 ac_status=$?
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try='test -s conftest$ac_exeext'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23257 ac_status=$?
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; }; then
23260 eval "$as_ac_var=yes"
23261 else
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 eval "$as_ac_var=no"
23266 fi
23267 rm -f conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
23269 fi
23270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23272 if test `eval echo '${'$as_ac_var'}'` = yes; then
23273 cat >>confdefs.h <<_ACEOF
23274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23275 _ACEOF
23276
23277 cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h. */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 #include <unistd.h>
23284
23285 _ACEOF
23286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23287 $EGREP "usleep" >/dev/null 2>&1; then
23288
23289
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_USLEEP_DECL 1
23292 _ACEOF
23293
23294 fi
23295 rm -f conftest*
23296
23297 fi
23298 done
23299
23300
23301 # Look for these functions in the thread library, but only bother
23302 # if using POSIX threads.
23303 if test "$THREADS" = posix; then
23304 save_LIBS="$LIBS"
23305 LIBS="$LIBS $THREADLIBS"
23306
23307 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23308 # Solaris 7 the name librt is preferred.
23309
23310 for ac_func in sched_yield
23311 do
23312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23313 echo "$as_me:$LINENO: checking for $ac_func" >&5
23314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23315 if eval "test \"\${$as_ac_var+set}\" = set"; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318 if test x$gcc_no_link = xyes; then
23319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23321 { (exit 1); exit 1; }; }
23322 fi
23323 cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h. */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23331 #define $ac_func innocuous_$ac_func
23332
23333 /* System header to define __stub macros and hopefully few prototypes,
23334 which can conflict with char $ac_func (); below.
23335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23336 <limits.h> exists even on freestanding compilers. */
23337
23338 #ifdef __STDC__
23339 # include <limits.h>
23340 #else
23341 # include <assert.h>
23342 #endif
23343
23344 #undef $ac_func
23345
23346 /* Override any gcc2 internal prototype to avoid an error. */
23347 #ifdef __cplusplus
23348 extern "C"
23349 {
23350 #endif
23351 /* We use char because int might match the return type of a gcc2
23352 builtin and then its argument prototype would still apply. */
23353 char $ac_func ();
23354 /* The GNU C library defines this for functions which it implements
23355 to always fail with ENOSYS. Some functions are actually named
23356 something starting with __ and the normal name is an alias. */
23357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23358 choke me
23359 #else
23360 char (*f) () = $ac_func;
23361 #endif
23362 #ifdef __cplusplus
23363 }
23364 #endif
23365
23366 int
23367 main ()
23368 {
23369 return f != $ac_func;
23370 ;
23371 return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext conftest$ac_exeext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23376 (eval $ac_link) 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
23383 { ac_try='test -z "$ac_c_werror_flag"
23384 || test ! -s conftest.err'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest$ac_exeext'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 eval "$as_ac_var=yes"
23397 else
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 eval "$as_ac_var=no"
23402 fi
23403 rm -f conftest.err conftest.$ac_objext \
23404 conftest$ac_exeext conftest.$ac_ext
23405 fi
23406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23408 if test `eval echo '${'$as_ac_var'}'` = yes; then
23409 cat >>confdefs.h <<_ACEOF
23410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23411 _ACEOF
23412
23413 else
23414
23415 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23416 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23417 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420 ac_check_lib_save_LIBS=$LIBS
23421 LIBS="-lrt $LIBS"
23422 if test x$gcc_no_link = xyes; then
23423 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23425 { (exit 1); exit 1; }; }
23426 fi
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h. */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433
23434 /* Override any gcc2 internal prototype to avoid an error. */
23435 #ifdef __cplusplus
23436 extern "C"
23437 #endif
23438 /* We use char because int might match the return type of a gcc2
23439 builtin and then its argument prototype would still apply. */
23440 char sched_yield ();
23441 int
23442 main ()
23443 {
23444 sched_yield ();
23445 ;
23446 return 0;
23447 }
23448 _ACEOF
23449 rm -f conftest.$ac_objext conftest$ac_exeext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23451 (eval $ac_link) 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
23458 { ac_try='test -z "$ac_c_werror_flag"
23459 || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest$ac_exeext'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_lib_rt_sched_yield=yes
23472 else
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 ac_cv_lib_rt_sched_yield=no
23477 fi
23478 rm -f conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23481 fi
23482 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23483 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23484 if test $ac_cv_lib_rt_sched_yield = yes; then
23485
23486 cat >>confdefs.h <<\_ACEOF
23487 #define HAVE_SCHED_YIELD 1
23488 _ACEOF
23489
23490 THREADLIBS="$THREADLIBS -lrt"
23491 THREADSPEC="$THREADSPEC -lrt"
23492 else
23493
23494 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23495 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23496 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499 ac_check_lib_save_LIBS=$LIBS
23500 LIBS="-lposix4 $LIBS"
23501 if test x$gcc_no_link = xyes; then
23502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23504 { (exit 1); exit 1; }; }
23505 fi
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512
23513 /* Override any gcc2 internal prototype to avoid an error. */
23514 #ifdef __cplusplus
23515 extern "C"
23516 #endif
23517 /* We use char because int might match the return type of a gcc2
23518 builtin and then its argument prototype would still apply. */
23519 char sched_yield ();
23520 int
23521 main ()
23522 {
23523 sched_yield ();
23524 ;
23525 return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530 (eval $ac_link) 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } &&
23537 { ac_try='test -z "$ac_c_werror_flag"
23538 || test ! -s conftest.err'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; } &&
23544 { ac_try='test -s conftest$ac_exeext'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ac_cv_lib_posix4_sched_yield=yes
23551 else
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ac_cv_lib_posix4_sched_yield=no
23556 fi
23557 rm -f conftest.err conftest.$ac_objext \
23558 conftest$ac_exeext conftest.$ac_ext
23559 LIBS=$ac_check_lib_save_LIBS
23560 fi
23561 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23562 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23563 if test $ac_cv_lib_posix4_sched_yield = yes; then
23564
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_SCHED_YIELD 1
23567 _ACEOF
23568
23569 THREADLIBS="$THREADLIBS -lposix4"
23570 THREADSPEC="$THREADSPEC -lposix4"
23571 fi
23572
23573 fi
23574
23575 fi
23576 done
23577
23578
23579 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23580 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23581 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 else
23584 ac_check_lib_save_LIBS=$LIBS
23585 LIBS="-lrt $LIBS"
23586 if test x$gcc_no_link = xyes; then
23587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23589 { (exit 1); exit 1; }; }
23590 fi
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597
23598 /* Override any gcc2 internal prototype to avoid an error. */
23599 #ifdef __cplusplus
23600 extern "C"
23601 #endif
23602 /* We use char because int might match the return type of a gcc2
23603 builtin and then its argument prototype would still apply. */
23604 char clock_gettime ();
23605 int
23606 main ()
23607 {
23608 clock_gettime ();
23609 ;
23610 return 0;
23611 }
23612 _ACEOF
23613 rm -f conftest.$ac_objext conftest$ac_exeext
23614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23615 (eval $ac_link) 2>conftest.er1
23616 ac_status=$?
23617 grep -v '^ *+' conftest.er1 >conftest.err
23618 rm -f conftest.er1
23619 cat conftest.err >&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } &&
23622 { ac_try='test -z "$ac_c_werror_flag"
23623 || test ! -s conftest.err'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; } &&
23629 { ac_try='test -s conftest$ac_exeext'
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; }; then
23635 ac_cv_lib_rt_clock_gettime=yes
23636 else
23637 echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23639
23640 ac_cv_lib_rt_clock_gettime=no
23641 fi
23642 rm -f conftest.err conftest.$ac_objext \
23643 conftest$ac_exeext conftest.$ac_ext
23644 LIBS=$ac_check_lib_save_LIBS
23645 fi
23646 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23647 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23648 if test $ac_cv_lib_rt_clock_gettime = yes; then
23649
23650
23651 cat >>confdefs.h <<\_ACEOF
23652 #define HAVE_CLOCK_GETTIME 1
23653 _ACEOF
23654
23655 case "$THREADSPEC" in
23656 *-lrt*) ;;
23657 *)
23658 THREADSPEC="$THREADSPEC -lrt"
23659 THREADLIBS="$THREADLIBS -lrt"
23660 ;;
23661 esac
23662 fi
23663
23664
23665 LIBS="$save_LIBS"
23666
23667 # We can save a little space at runtime if the mutex has m_count
23668 # or __m_count. This is a nice hack for Linux.
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h. */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 #include <pthread.h>
23676 int
23677 main ()
23678 {
23679
23680 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23681
23682 ;
23683 return 0;
23684 }
23685 _ACEOF
23686 rm -f conftest.$ac_objext
23687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23688 (eval $ac_compile) 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
23695 { ac_try='test -z "$ac_c_werror_flag"
23696 || test ! -s conftest.err'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; } &&
23702 { ac_try='test -s conftest.$ac_objext'
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23705 ac_status=$?
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; }; then
23708
23709 cat >>confdefs.h <<\_ACEOF
23710 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23711 _ACEOF
23712
23713 else
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h. */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 #include <pthread.h>
23725 int
23726 main ()
23727 {
23728
23729 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23730
23731 ;
23732 return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23737 (eval $ac_compile) 2>conftest.er1
23738 ac_status=$?
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } &&
23744 { ac_try='test -z "$ac_c_werror_flag"
23745 || test ! -s conftest.err'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; } &&
23751 { ac_try='test -s conftest.$ac_objext'
23752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23754 ac_status=$?
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; }; then
23757
23758 cat >>confdefs.h <<\_ACEOF
23759 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23760 _ACEOF
23761
23762 else
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 fi
23767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23768 fi
23769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23770 fi
23771
23772 # We require a way to get the time.
23773 time_found=no
23774
23775
23776
23777 for ac_func in gettimeofday time ftime
23778 do
23779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23780 echo "$as_me:$LINENO: checking for $ac_func" >&5
23781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23782 if eval "test \"\${$as_ac_var+set}\" = set"; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785 if test x$gcc_no_link = xyes; then
23786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23788 { (exit 1); exit 1; }; }
23789 fi
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23798 #define $ac_func innocuous_$ac_func
23799
23800 /* System header to define __stub macros and hopefully few prototypes,
23801 which can conflict with char $ac_func (); below.
23802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23803 <limits.h> exists even on freestanding compilers. */
23804
23805 #ifdef __STDC__
23806 # include <limits.h>
23807 #else
23808 # include <assert.h>
23809 #endif
23810
23811 #undef $ac_func
23812
23813 /* Override any gcc2 internal prototype to avoid an error. */
23814 #ifdef __cplusplus
23815 extern "C"
23816 {
23817 #endif
23818 /* We use char because int might match the return type of a gcc2
23819 builtin and then its argument prototype would still apply. */
23820 char $ac_func ();
23821 /* The GNU C library defines this for functions which it implements
23822 to always fail with ENOSYS. Some functions are actually named
23823 something starting with __ and the normal name is an alias. */
23824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23825 choke me
23826 #else
23827 char (*f) () = $ac_func;
23828 #endif
23829 #ifdef __cplusplus
23830 }
23831 #endif
23832
23833 int
23834 main ()
23835 {
23836 return f != $ac_func;
23837 ;
23838 return 0;
23839 }
23840 _ACEOF
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23843 (eval $ac_link) 2>conftest.er1
23844 ac_status=$?
23845 grep -v '^ *+' conftest.er1 >conftest.err
23846 rm -f conftest.er1
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
23850 { ac_try='test -z "$ac_c_werror_flag"
23851 || test ! -s conftest.err'
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest$ac_exeext'
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 eval "$as_ac_var=yes"
23864 else
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23867
23868 eval "$as_ac_var=no"
23869 fi
23870 rm -f conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
23872 fi
23873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23875 if test `eval echo '${'$as_ac_var'}'` = yes; then
23876 cat >>confdefs.h <<_ACEOF
23877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23878 _ACEOF
23879 time_found=yes
23880 fi
23881 done
23882
23883 if test "$time_found" = no; then
23884 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23885 echo "$as_me: error: no function found to get the time" >&2;}
23886 { (exit 1); exit 1; }; }
23887 fi
23888
23889
23890 for ac_func in memmove
23891 do
23892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23893 echo "$as_me:$LINENO: checking for $ac_func" >&5
23894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23895 if eval "test \"\${$as_ac_var+set}\" = set"; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898 if test x$gcc_no_link = xyes; then
23899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23901 { (exit 1); exit 1; }; }
23902 fi
23903 cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h. */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23911 #define $ac_func innocuous_$ac_func
23912
23913 /* System header to define __stub macros and hopefully few prototypes,
23914 which can conflict with char $ac_func (); below.
23915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23916 <limits.h> exists even on freestanding compilers. */
23917
23918 #ifdef __STDC__
23919 # include <limits.h>
23920 #else
23921 # include <assert.h>
23922 #endif
23923
23924 #undef $ac_func
23925
23926 /* Override any gcc2 internal prototype to avoid an error. */
23927 #ifdef __cplusplus
23928 extern "C"
23929 {
23930 #endif
23931 /* We use char because int might match the return type of a gcc2
23932 builtin and then its argument prototype would still apply. */
23933 char $ac_func ();
23934 /* The GNU C library defines this for functions which it implements
23935 to always fail with ENOSYS. Some functions are actually named
23936 something starting with __ and the normal name is an alias. */
23937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23938 choke me
23939 #else
23940 char (*f) () = $ac_func;
23941 #endif
23942 #ifdef __cplusplus
23943 }
23944 #endif
23945
23946 int
23947 main ()
23948 {
23949 return f != $ac_func;
23950 ;
23951 return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956 (eval $ac_link) 2>conftest.er1
23957 ac_status=$?
23958 grep -v '^ *+' conftest.er1 >conftest.err
23959 rm -f conftest.er1
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
23963 { ac_try='test -z "$ac_c_werror_flag"
23964 || test ! -s conftest.err'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 eval "$as_ac_var=yes"
23977 else
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981 eval "$as_ac_var=no"
23982 fi
23983 rm -f conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
23985 fi
23986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23988 if test `eval echo '${'$as_ac_var'}'` = yes; then
23989 cat >>confdefs.h <<_ACEOF
23990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23991 _ACEOF
23992
23993 fi
23994 done
23995
23996
23997 # We require memcpy.
23998 memcpy_found=no
23999
24000 for ac_func in memcpy
24001 do
24002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24003 echo "$as_me:$LINENO: checking for $ac_func" >&5
24004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24005 if eval "test \"\${$as_ac_var+set}\" = set"; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 else
24008 if test x$gcc_no_link = xyes; then
24009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24011 { (exit 1); exit 1; }; }
24012 fi
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h. */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24021 #define $ac_func innocuous_$ac_func
24022
24023 /* System header to define __stub macros and hopefully few prototypes,
24024 which can conflict with char $ac_func (); below.
24025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24026 <limits.h> exists even on freestanding compilers. */
24027
24028 #ifdef __STDC__
24029 # include <limits.h>
24030 #else
24031 # include <assert.h>
24032 #endif
24033
24034 #undef $ac_func
24035
24036 /* Override any gcc2 internal prototype to avoid an error. */
24037 #ifdef __cplusplus
24038 extern "C"
24039 {
24040 #endif
24041 /* We use char because int might match the return type of a gcc2
24042 builtin and then its argument prototype would still apply. */
24043 char $ac_func ();
24044 /* The GNU C library defines this for functions which it implements
24045 to always fail with ENOSYS. Some functions are actually named
24046 something starting with __ and the normal name is an alias. */
24047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24048 choke me
24049 #else
24050 char (*f) () = $ac_func;
24051 #endif
24052 #ifdef __cplusplus
24053 }
24054 #endif
24055
24056 int
24057 main ()
24058 {
24059 return f != $ac_func;
24060 ;
24061 return 0;
24062 }
24063 _ACEOF
24064 rm -f conftest.$ac_objext conftest$ac_exeext
24065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24066 (eval $ac_link) 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } &&
24073 { ac_try='test -z "$ac_c_werror_flag"
24074 || test ! -s conftest.err'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24077 ac_status=$?
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; } &&
24080 { ac_try='test -s conftest$ac_exeext'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; }; then
24086 eval "$as_ac_var=yes"
24087 else
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091 eval "$as_ac_var=no"
24092 fi
24093 rm -f conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
24095 fi
24096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24098 if test `eval echo '${'$as_ac_var'}'` = yes; then
24099 cat >>confdefs.h <<_ACEOF
24100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24101 _ACEOF
24102 memcpy_found=yes
24103 fi
24104 done
24105
24106 if test "$memcpy_found" = no; then
24107 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24108 echo "$as_me: error: memcpy is required" >&2;}
24109 { (exit 1); exit 1; }; }
24110 fi
24111 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24112 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24113 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24114 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 else
24117 ac_check_lib_save_LIBS=$LIBS
24118 LIBS="-ldl $LIBS"
24119 if test x$gcc_no_link = xyes; then
24120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24122 { (exit 1); exit 1; }; }
24123 fi
24124 cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h. */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130
24131 /* Override any gcc2 internal prototype to avoid an error. */
24132 #ifdef __cplusplus
24133 extern "C"
24134 #endif
24135 /* We use char because int might match the return type of a gcc2
24136 builtin and then its argument prototype would still apply. */
24137 char dlopen ();
24138 int
24139 main ()
24140 {
24141 dlopen ();
24142 ;
24143 return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest.$ac_objext conftest$ac_exeext
24147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148 (eval $ac_link) 2>conftest.er1
24149 ac_status=$?
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } &&
24155 { ac_try='test -z "$ac_c_werror_flag"
24156 || test ! -s conftest.err'
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; } &&
24162 { ac_try='test -s conftest$ac_exeext'
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168 ac_cv_lib_dl_dlopen=yes
24169 else
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173 ac_cv_lib_dl_dlopen=no
24174 fi
24175 rm -f conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
24177 LIBS=$ac_check_lib_save_LIBS
24178 fi
24179 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24180 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24181 if test $ac_cv_lib_dl_dlopen = yes; then
24182
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define HAVE_DLOPEN 1
24186 _ACEOF
24187
24188 else
24189
24190 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24191 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24192 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195 ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-ldld $LIBS"
24197 if test x$gcc_no_link = xyes; then
24198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24200 { (exit 1); exit 1; }; }
24201 fi
24202 cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h. */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24208
24209 /* Override any gcc2 internal prototype to avoid an error. */
24210 #ifdef __cplusplus
24211 extern "C"
24212 #endif
24213 /* We use char because int might match the return type of a gcc2
24214 builtin and then its argument prototype would still apply. */
24215 char dlopen ();
24216 int
24217 main ()
24218 {
24219 dlopen ();
24220 ;
24221 return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226 (eval $ac_link) 2>conftest.er1
24227 ac_status=$?
24228 grep -v '^ *+' conftest.er1 >conftest.err
24229 rm -f conftest.er1
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } &&
24233 { ac_try='test -z "$ac_c_werror_flag"
24234 || test ! -s conftest.err'
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; } &&
24240 { ac_try='test -s conftest$ac_exeext'
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; }; then
24246 ac_cv_lib_dld_dlopen=yes
24247 else
24248 echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ac_cv_lib_dld_dlopen=no
24252 fi
24253 rm -f conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
24255 LIBS=$ac_check_lib_save_LIBS
24256 fi
24257 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24258 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24259 if test $ac_cv_lib_dld_dlopen = yes; then
24260
24261
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_DLOPEN 1
24264 _ACEOF
24265
24266 fi
24267
24268 fi
24269
24270
24271 # Some library-finding code we stole from Tcl.
24272 #--------------------------------------------------------------------
24273 # Check for the existence of the -lsocket and -lnsl libraries.
24274 # The order here is important, so that they end up in the right
24275 # order in the command line generated by make. Here are some
24276 # special considerations:
24277 # 1. Use "connect" and "accept" to check for -lsocket, and
24278 # "gethostbyname" to check for -lnsl.
24279 # 2. Use each function name only once: can't redo a check because
24280 # autoconf caches the results of the last check and won't redo it.
24281 # 3. Use -lnsl and -lsocket only if they supply procedures that
24282 # aren't already present in the normal libraries. This is because
24283 # IRIX 5.2 has libraries, but they aren't needed and they're
24284 # bogus: they goof up name resolution if used.
24285 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24286 # To get around this problem, check for both libraries together
24287 # if -lsocket doesn't work by itself.
24288 #--------------------------------------------------------------------
24289
24290 echo "$as_me:$LINENO: checking for socket libraries" >&5
24291 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24292 if test "${gcj_cv_lib_sockets+set}" = set; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295 gcj_cv_lib_sockets=
24296 gcj_checkBoth=0
24297 unset ac_cv_func_connect
24298 echo "$as_me:$LINENO: checking for connect" >&5
24299 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24300 if test "${ac_cv_func_connect+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303 if test x$gcc_no_link = xyes; then
24304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24306 { (exit 1); exit 1; }; }
24307 fi
24308 cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h. */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24316 #define connect innocuous_connect
24317
24318 /* System header to define __stub macros and hopefully few prototypes,
24319 which can conflict with char connect (); below.
24320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24321 <limits.h> exists even on freestanding compilers. */
24322
24323 #ifdef __STDC__
24324 # include <limits.h>
24325 #else
24326 # include <assert.h>
24327 #endif
24328
24329 #undef connect
24330
24331 /* Override any gcc2 internal prototype to avoid an error. */
24332 #ifdef __cplusplus
24333 extern "C"
24334 {
24335 #endif
24336 /* We use char because int might match the return type of a gcc2
24337 builtin and then its argument prototype would still apply. */
24338 char connect ();
24339 /* The GNU C library defines this for functions which it implements
24340 to always fail with ENOSYS. Some functions are actually named
24341 something starting with __ and the normal name is an alias. */
24342 #if defined (__stub_connect) || defined (__stub___connect)
24343 choke me
24344 #else
24345 char (*f) () = connect;
24346 #endif
24347 #ifdef __cplusplus
24348 }
24349 #endif
24350
24351 int
24352 main ()
24353 {
24354 return f != connect;
24355 ;
24356 return 0;
24357 }
24358 _ACEOF
24359 rm -f conftest.$ac_objext conftest$ac_exeext
24360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24361 (eval $ac_link) 2>conftest.er1
24362 ac_status=$?
24363 grep -v '^ *+' conftest.er1 >conftest.err
24364 rm -f conftest.er1
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } &&
24368 { ac_try='test -z "$ac_c_werror_flag"
24369 || test ! -s conftest.err'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; } &&
24375 { ac_try='test -s conftest$ac_exeext'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; }; then
24381 ac_cv_func_connect=yes
24382 else
24383 echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386 ac_cv_func_connect=no
24387 fi
24388 rm -f conftest.err conftest.$ac_objext \
24389 conftest$ac_exeext conftest.$ac_ext
24390 fi
24391 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24392 echo "${ECHO_T}$ac_cv_func_connect" >&6
24393 if test $ac_cv_func_connect = yes; then
24394 gcj_checkSocket=0
24395 else
24396 gcj_checkSocket=1
24397 fi
24398
24399 if test "$gcj_checkSocket" = 1; then
24400 unset ac_cv_func_connect
24401 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24402 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24403 if test "${ac_cv_lib_socket_main+set}" = set; then
24404 echo $ECHO_N "(cached) $ECHO_C" >&6
24405 else
24406 ac_check_lib_save_LIBS=$LIBS
24407 LIBS="-lsocket $LIBS"
24408 if test x$gcc_no_link = xyes; then
24409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24411 { (exit 1); exit 1; }; }
24412 fi
24413 cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h. */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419
24420
24421 int
24422 main ()
24423 {
24424 main ();
24425 ;
24426 return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24431 (eval $ac_link) 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try='test -z "$ac_c_werror_flag"
24439 || test ! -s conftest.err'
24440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; } &&
24445 { ac_try='test -s conftest$ac_exeext'
24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; }; then
24451 ac_cv_lib_socket_main=yes
24452 else
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456 ac_cv_lib_socket_main=no
24457 fi
24458 rm -f conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
24460 LIBS=$ac_check_lib_save_LIBS
24461 fi
24462 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24463 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24464 if test $ac_cv_lib_socket_main = yes; then
24465 gcj_cv_lib_sockets="-lsocket"
24466 else
24467 gcj_checkBoth=1
24468 fi
24469
24470 fi
24471 if test "$gcj_checkBoth" = 1; then
24472 gcj_oldLibs=$LIBS
24473 LIBS="$LIBS -lsocket -lnsl"
24474 unset ac_cv_func_accept
24475 echo "$as_me:$LINENO: checking for accept" >&5
24476 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24477 if test "${ac_cv_func_accept+set}" = set; then
24478 echo $ECHO_N "(cached) $ECHO_C" >&6
24479 else
24480 if test x$gcc_no_link = xyes; then
24481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24483 { (exit 1); exit 1; }; }
24484 fi
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24493 #define accept innocuous_accept
24494
24495 /* System header to define __stub macros and hopefully few prototypes,
24496 which can conflict with char accept (); below.
24497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24498 <limits.h> exists even on freestanding compilers. */
24499
24500 #ifdef __STDC__
24501 # include <limits.h>
24502 #else
24503 # include <assert.h>
24504 #endif
24505
24506 #undef accept
24507
24508 /* Override any gcc2 internal prototype to avoid an error. */
24509 #ifdef __cplusplus
24510 extern "C"
24511 {
24512 #endif
24513 /* We use char because int might match the return type of a gcc2
24514 builtin and then its argument prototype would still apply. */
24515 char accept ();
24516 /* The GNU C library defines this for functions which it implements
24517 to always fail with ENOSYS. Some functions are actually named
24518 something starting with __ and the normal name is an alias. */
24519 #if defined (__stub_accept) || defined (__stub___accept)
24520 choke me
24521 #else
24522 char (*f) () = accept;
24523 #endif
24524 #ifdef __cplusplus
24525 }
24526 #endif
24527
24528 int
24529 main ()
24530 {
24531 return f != accept;
24532 ;
24533 return 0;
24534 }
24535 _ACEOF
24536 rm -f conftest.$ac_objext conftest$ac_exeext
24537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24538 (eval $ac_link) 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } &&
24545 { ac_try='test -z "$ac_c_werror_flag"
24546 || test ! -s conftest.err'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; } &&
24552 { ac_try='test -s conftest$ac_exeext'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 ac_cv_func_accept=yes
24559 else
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24562
24563 ac_cv_func_accept=no
24564 fi
24565 rm -f conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567 fi
24568 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24569 echo "${ECHO_T}$ac_cv_func_accept" >&6
24570 if test $ac_cv_func_accept = yes; then
24571 gcj_checkNsl=0
24572 gcj_cv_lib_sockets="-lsocket -lnsl"
24573 fi
24574
24575 unset ac_cv_func_accept
24576 LIBS=$gcj_oldLibs
24577 fi
24578 unset ac_cv_func_gethostbyname
24579 gcj_oldLibs=$LIBS
24580 LIBS="$LIBS $gcj_cv_lib_sockets"
24581 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24582 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24583 if test "${ac_cv_func_gethostbyname+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24586 if test x$gcc_no_link = xyes; then
24587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24589 { (exit 1); exit 1; }; }
24590 fi
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h. */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24599 #define gethostbyname innocuous_gethostbyname
24600
24601 /* System header to define __stub macros and hopefully few prototypes,
24602 which can conflict with char gethostbyname (); below.
24603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24604 <limits.h> exists even on freestanding compilers. */
24605
24606 #ifdef __STDC__
24607 # include <limits.h>
24608 #else
24609 # include <assert.h>
24610 #endif
24611
24612 #undef gethostbyname
24613
24614 /* Override any gcc2 internal prototype to avoid an error. */
24615 #ifdef __cplusplus
24616 extern "C"
24617 {
24618 #endif
24619 /* We use char because int might match the return type of a gcc2
24620 builtin and then its argument prototype would still apply. */
24621 char gethostbyname ();
24622 /* The GNU C library defines this for functions which it implements
24623 to always fail with ENOSYS. Some functions are actually named
24624 something starting with __ and the normal name is an alias. */
24625 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24626 choke me
24627 #else
24628 char (*f) () = gethostbyname;
24629 #endif
24630 #ifdef __cplusplus
24631 }
24632 #endif
24633
24634 int
24635 main ()
24636 {
24637 return f != gethostbyname;
24638 ;
24639 return 0;
24640 }
24641 _ACEOF
24642 rm -f conftest.$ac_objext conftest$ac_exeext
24643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24644 (eval $ac_link) 2>conftest.er1
24645 ac_status=$?
24646 grep -v '^ *+' conftest.er1 >conftest.err
24647 rm -f conftest.er1
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
24651 { ac_try='test -z "$ac_c_werror_flag"
24652 || test ! -s conftest.err'
24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; } &&
24658 { ac_try='test -s conftest$ac_exeext'
24659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; }; then
24664 ac_cv_func_gethostbyname=yes
24665 else
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669 ac_cv_func_gethostbyname=no
24670 fi
24671 rm -f conftest.err conftest.$ac_objext \
24672 conftest$ac_exeext conftest.$ac_ext
24673 fi
24674 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24675 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24676 if test $ac_cv_func_gethostbyname = yes; then
24677 :
24678 else
24679 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24680 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24681 if test "${ac_cv_lib_nsl_main+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684 ac_check_lib_save_LIBS=$LIBS
24685 LIBS="-lnsl $LIBS"
24686 if test x$gcc_no_link = xyes; then
24687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24689 { (exit 1); exit 1; }; }
24690 fi
24691 cat >conftest.$ac_ext <<_ACEOF
24692 /* confdefs.h. */
24693 _ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24697
24698
24699 int
24700 main ()
24701 {
24702 main ();
24703 ;
24704 return 0;
24705 }
24706 _ACEOF
24707 rm -f conftest.$ac_objext conftest$ac_exeext
24708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24709 (eval $ac_link) 2>conftest.er1
24710 ac_status=$?
24711 grep -v '^ *+' conftest.er1 >conftest.err
24712 rm -f conftest.er1
24713 cat conftest.err >&5
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } &&
24716 { ac_try='test -z "$ac_c_werror_flag"
24717 || test ! -s conftest.err'
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; } &&
24723 { ac_try='test -s conftest$ac_exeext'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; }; then
24729 ac_cv_lib_nsl_main=yes
24730 else
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 ac_cv_lib_nsl_main=no
24735 fi
24736 rm -f conftest.err conftest.$ac_objext \
24737 conftest$ac_exeext conftest.$ac_ext
24738 LIBS=$ac_check_lib_save_LIBS
24739 fi
24740 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24741 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24742 if test $ac_cv_lib_nsl_main = yes; then
24743 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24744 fi
24745
24746 fi
24747
24748 unset ac_cv_func_gethostbyname
24749 LIBS=$gcj_oldLIBS
24750
24751 fi
24752 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24753 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24754 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24755
24756 if test "$with_system_zlib" = yes; then
24757 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24758 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24759 if test "${ac_cv_lib_z_deflate+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762 ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lz $LIBS"
24764 if test x$gcc_no_link = xyes; then
24765 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24767 { (exit 1); exit 1; }; }
24768 fi
24769 cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h. */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h. */
24775
24776 /* Override any gcc2 internal prototype to avoid an error. */
24777 #ifdef __cplusplus
24778 extern "C"
24779 #endif
24780 /* We use char because int might match the return type of a gcc2
24781 builtin and then its argument prototype would still apply. */
24782 char deflate ();
24783 int
24784 main ()
24785 {
24786 deflate ();
24787 ;
24788 return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793 (eval $ac_link) 2>conftest.er1
24794 ac_status=$?
24795 grep -v '^ *+' conftest.er1 >conftest.err
24796 rm -f conftest.er1
24797 cat conftest.err >&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag"
24801 || test ! -s conftest.err'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_lib_z_deflate=yes
24814 else
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 ac_cv_lib_z_deflate=no
24819 fi
24820 rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822 LIBS=$ac_check_lib_save_LIBS
24823 fi
24824 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24825 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24826 if test $ac_cv_lib_z_deflate = yes; then
24827 ZLIBSPEC=-lz
24828 else
24829 ZLIBSPEC=
24830 fi
24831
24832 fi
24833
24834 # Test for Gtk stuff, if asked for.
24835 if test "$use_gtk_awt" = yes; then
24836
24837 succeeded=no
24838
24839 if test -z "$PKG_CONFIG"; then
24840 # Extract the first word of "pkg-config", so it can be a program name with args.
24841 set dummy pkg-config; ac_word=$2
24842 echo "$as_me:$LINENO: checking for $ac_word" >&5
24843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24844 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847 case $PKG_CONFIG in
24848 [\\/]* | ?:[\\/]*)
24849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24850 ;;
24851 *)
24852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24853 for as_dir in $PATH
24854 do
24855 IFS=$as_save_IFS
24856 test -z "$as_dir" && as_dir=.
24857 for ac_exec_ext in '' $ac_executable_extensions; do
24858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24861 break 2
24862 fi
24863 done
24864 done
24865
24866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24867 ;;
24868 esac
24869 fi
24870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24871
24872 if test -n "$PKG_CONFIG"; then
24873 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24874 echo "${ECHO_T}$PKG_CONFIG" >&6
24875 else
24876 echo "$as_me:$LINENO: result: no" >&5
24877 echo "${ECHO_T}no" >&6
24878 fi
24879
24880 fi
24881
24882 if test "$PKG_CONFIG" = "no" ; then
24883 echo "*** The pkg-config script could not be found. Make sure it is"
24884 echo "*** in your path, or set the PKG_CONFIG environment variable"
24885 echo "*** to the full path to pkg-config."
24886 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24887 else
24888 PKG_CONFIG_MIN_VERSION=0.9.0
24889 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24890 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24891 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24892
24893 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24894 echo "$as_me:$LINENO: result: yes" >&5
24895 echo "${ECHO_T}yes" >&6
24896 succeeded=yes
24897
24898 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24899 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24900 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24901 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24902 echo "${ECHO_T}$GTK_CFLAGS" >&6
24903
24904 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24905 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24906 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24907 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24908 echo "${ECHO_T}$GTK_LIBS" >&6
24909 else
24910 GTK_CFLAGS=""
24911 GTK_LIBS=""
24912 ## If we have a custom action on failure, don't print errors, but
24913 ## do set a variable so people can do so.
24914 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24915 echo $GTK_PKG_ERRORS
24916 fi
24917
24918
24919
24920 else
24921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24923 fi
24924 fi
24925
24926 if test $succeeded = yes; then
24927 :
24928 else
24929 { { 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
24930 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;}
24931 { (exit 1); exit 1; }; }
24932 fi
24933
24934
24935
24936
24937
24938 succeeded=no
24939
24940 if test -z "$PKG_CONFIG"; then
24941 # Extract the first word of "pkg-config", so it can be a program name with args.
24942 set dummy pkg-config; ac_word=$2
24943 echo "$as_me:$LINENO: checking for $ac_word" >&5
24944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24945 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948 case $PKG_CONFIG in
24949 [\\/]* | ?:[\\/]*)
24950 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24951 ;;
24952 *)
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24955 do
24956 IFS=$as_save_IFS
24957 test -z "$as_dir" && as_dir=.
24958 for ac_exec_ext in '' $ac_executable_extensions; do
24959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24960 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24962 break 2
24963 fi
24964 done
24965 done
24966
24967 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24968 ;;
24969 esac
24970 fi
24971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24972
24973 if test -n "$PKG_CONFIG"; then
24974 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24975 echo "${ECHO_T}$PKG_CONFIG" >&6
24976 else
24977 echo "$as_me:$LINENO: result: no" >&5
24978 echo "${ECHO_T}no" >&6
24979 fi
24980
24981 fi
24982
24983 if test "$PKG_CONFIG" = "no" ; then
24984 echo "*** The pkg-config script could not be found. Make sure it is"
24985 echo "*** in your path, or set the PKG_CONFIG environment variable"
24986 echo "*** to the full path to pkg-config."
24987 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24988 else
24989 PKG_CONFIG_MIN_VERSION=0.9.0
24990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24991 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
24992 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
24993
24994 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
24995 echo "$as_me:$LINENO: result: yes" >&5
24996 echo "${ECHO_T}yes" >&6
24997 succeeded=yes
24998
24999 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25000 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25001 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25002 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25003 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25004
25005 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25006 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25007 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25008 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25009 echo "${ECHO_T}$GLIB_LIBS" >&6
25010 else
25011 GLIB_CFLAGS=""
25012 GLIB_LIBS=""
25013 ## If we have a custom action on failure, don't print errors, but
25014 ## do set a variable so people can do so.
25015 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25016 echo $GLIB_PKG_ERRORS
25017 fi
25018
25019
25020
25021 else
25022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25024 fi
25025 fi
25026
25027 if test $succeeded = yes; then
25028 :
25029 else
25030 { { 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
25031 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;}
25032 { (exit 1); exit 1; }; }
25033 fi
25034
25035
25036
25037
25038
25039 succeeded=no
25040
25041 if test -z "$PKG_CONFIG"; then
25042 # Extract the first word of "pkg-config", so it can be a program name with args.
25043 set dummy pkg-config; ac_word=$2
25044 echo "$as_me:$LINENO: checking for $ac_word" >&5
25045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25046 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25047 echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049 case $PKG_CONFIG in
25050 [\\/]* | ?:[\\/]*)
25051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25052 ;;
25053 *)
25054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25055 for as_dir in $PATH
25056 do
25057 IFS=$as_save_IFS
25058 test -z "$as_dir" && as_dir=.
25059 for ac_exec_ext in '' $ac_executable_extensions; do
25060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25063 break 2
25064 fi
25065 done
25066 done
25067
25068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25069 ;;
25070 esac
25071 fi
25072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25073
25074 if test -n "$PKG_CONFIG"; then
25075 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25076 echo "${ECHO_T}$PKG_CONFIG" >&6
25077 else
25078 echo "$as_me:$LINENO: result: no" >&5
25079 echo "${ECHO_T}no" >&6
25080 fi
25081
25082 fi
25083
25084 if test "$PKG_CONFIG" = "no" ; then
25085 echo "*** The pkg-config script could not be found. Make sure it is"
25086 echo "*** in your path, or set the PKG_CONFIG environment variable"
25087 echo "*** to the full path to pkg-config."
25088 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25089 else
25090 PKG_CONFIG_MIN_VERSION=0.9.0
25091 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25092 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25093 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25094
25095 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25096 echo "$as_me:$LINENO: result: yes" >&5
25097 echo "${ECHO_T}yes" >&6
25098 succeeded=yes
25099
25100 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25101 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25102 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25103 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25104 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25105
25106 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25107 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25108 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25109 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25110 echo "${ECHO_T}$LIBART_LIBS" >&6
25111 else
25112 LIBART_CFLAGS=""
25113 LIBART_LIBS=""
25114 ## If we have a custom action on failure, don't print errors, but
25115 ## do set a variable so people can do so.
25116 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25117 echo $LIBART_PKG_ERRORS
25118 fi
25119
25120
25121
25122 else
25123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25125 fi
25126 fi
25127
25128 if test $succeeded = yes; then
25129 :
25130 else
25131 { { 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
25132 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;}
25133 { (exit 1); exit 1; }; }
25134 fi
25135
25136
25137
25138
25139 # We require the XTest Extension to support java.awt.Robot.
25140 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25141 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25142 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 else
25145 ac_check_lib_save_LIBS=$LIBS
25146 LIBS="-lXtst ${X_LIBS} $LIBS"
25147 if test x$gcc_no_link = xyes; then
25148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25150 { (exit 1); exit 1; }; }
25151 fi
25152 cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h. */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158
25159 /* Override any gcc2 internal prototype to avoid an error. */
25160 #ifdef __cplusplus
25161 extern "C"
25162 #endif
25163 /* We use char because int might match the return type of a gcc2
25164 builtin and then its argument prototype would still apply. */
25165 char XTestQueryExtension ();
25166 int
25167 main ()
25168 {
25169 XTestQueryExtension ();
25170 ;
25171 return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest.$ac_objext conftest$ac_exeext
25175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25176 (eval $ac_link) 2>conftest.er1
25177 ac_status=$?
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } &&
25183 { ac_try='test -z "$ac_c_werror_flag"
25184 || test ! -s conftest.err'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; } &&
25190 { ac_try='test -s conftest$ac_exeext'
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; }; then
25196 ac_cv_lib_Xtst_XTestQueryExtension=yes
25197 else
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201 ac_cv_lib_Xtst_XTestQueryExtension=no
25202 fi
25203 rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25205 LIBS=$ac_check_lib_save_LIBS
25206 fi
25207 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25208 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25209 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25210 true
25211 else
25212 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25213 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25214 { (exit 1); exit 1; }; }
25215 fi
25216
25217 fi
25218
25219 # On Solaris, and maybe other architectures, the Boehm collector
25220 # requires -ldl.
25221 if test "$GC" = boehm; then
25222 case "${host}" in
25223 mips-sgi-irix6*)
25224 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25225 # libgcj.spec is used, so override here
25226 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25227 ;;
25228 *)
25229 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25230 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25231 if test "${ac_cv_lib_dl_main+set}" = set; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234 ac_check_lib_save_LIBS=$LIBS
25235 LIBS="-ldl $LIBS"
25236 if test x$gcc_no_link = xyes; then
25237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25239 { (exit 1); exit 1; }; }
25240 fi
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h. */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h. */
25247
25248
25249 int
25250 main ()
25251 {
25252 main ();
25253 ;
25254 return 0;
25255 }
25256 _ACEOF
25257 rm -f conftest.$ac_objext conftest$ac_exeext
25258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25259 (eval $ac_link) 2>conftest.er1
25260 ac_status=$?
25261 grep -v '^ *+' conftest.er1 >conftest.err
25262 rm -f conftest.er1
25263 cat conftest.err >&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } &&
25266 { ac_try='test -z "$ac_c_werror_flag"
25267 || test ! -s conftest.err'
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; } &&
25273 { ac_try='test -s conftest$ac_exeext'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_lib_dl_main=yes
25280 else
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284 ac_cv_lib_dl_main=no
25285 fi
25286 rm -f conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
25288 LIBS=$ac_check_lib_save_LIBS
25289 fi
25290 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25291 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25292 if test $ac_cv_lib_dl_main = yes; then
25293 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25294 fi
25295
25296 ;;
25297 esac
25298 fi
25299 fi
25300
25301 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25302 case $build in
25303 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25304 *) CLASSPATH_SEPARATOR=':' ;;
25305 esac
25306
25307
25308 # We must search the source tree for java.lang, since we still don't
25309 # have libgcj.jar nor java/lang/*.class
25310 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25311 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25312
25313 # Since some classes depend on this one, we need its source available
25314 # before we can do any GCJ compilation test :-(
25315 if test ! -f gnu/classpath/Configuration.java; then
25316 test -d gnu || mkdir gnu
25317 test -d gnu/classpath || mkdir gnu/classpath
25318 # Note that it is not crucial that all the values here be correct.
25319 sed -e "s,@prefix@,$prefix," \
25320 -e "s,@VERSION@,$VERSION," \
25321 -e "s,@LIBDEBUG@,false," \
25322 -e "s,@INIT_LOAD_LIBRARY@,false," \
25323 -e "s,@@,$LIBGCJDEBUG," \
25324 -e "s,@default_toolkit@,$TOOLKIT," \
25325 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25326 -e "s,@GTK_CAIRO_ENABLED@,false," \
25327 -e "s,@ECJ_JAR@,," \
25328 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25329 > gnu/classpath/Configuration.java
25330 # We do not want to redirect the output of the grep below to /dev/null,
25331 # but we add /dev/null to the input list so that grep will print the
25332 # filename of Configuration.java in case it finds any matches.
25333 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25334 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25335 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25336 { (exit 1); exit 1; }; }
25337 fi
25338 fi
25339
25340
25341 for ac_prog in gcj
25342 do
25343 # Extract the first word of "$ac_prog", so it can be a program name with args.
25344 set dummy $ac_prog; ac_word=$2
25345 echo "$as_me:$LINENO: checking for $ac_word" >&5
25346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25347 if test "${ac_cv_prog_GCJ+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350 if test -n "$GCJ"; then
25351 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25352 else
25353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25354 for as_dir in $PATH
25355 do
25356 IFS=$as_save_IFS
25357 test -z "$as_dir" && as_dir=.
25358 for ac_exec_ext in '' $ac_executable_extensions; do
25359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25360 ac_cv_prog_GCJ="$ac_prog"
25361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25362 break 2
25363 fi
25364 done
25365 done
25366
25367 fi
25368 fi
25369 GCJ=$ac_cv_prog_GCJ
25370 if test -n "$GCJ"; then
25371 echo "$as_me:$LINENO: result: $GCJ" >&5
25372 echo "${ECHO_T}$GCJ" >&6
25373 else
25374 echo "$as_me:$LINENO: result: no" >&5
25375 echo "${ECHO_T}no" >&6
25376 fi
25377
25378 test -n "$GCJ" && break
25379 done
25380 test -n "$GCJ" || GCJ="gcj"
25381
25382 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25383 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25384 { (exit 1); exit 1; }; }
25385 if test "x${GCJFLAGS-unset}" = xunset; then
25386 GCJFLAGS="-g -O2"
25387 fi
25388
25389
25390 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25391
25392 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25393 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25394 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25398 # We make a subdir and do the tests there. Otherwise we can end up
25399 # making bogus files that we don't know about and never remove. For
25400 # instance it was reported that on HP-UX the gcc test will end up
25401 # making a dummy file named `D' -- because `-MD' means `put the output
25402 # in D'.
25403 mkdir conftest.dir
25404 # Copy depcomp to subdir because otherwise we won't find it if we're
25405 # using a relative directory.
25406 cp "$am_depcomp" conftest.dir
25407 cd conftest.dir
25408 # We will build objects and dependencies in a subdirectory because
25409 # it helps to detect inapplicable dependency modes. For instance
25410 # both Tru64's cc and ICC support -MD to output dependencies as a
25411 # side effect of compilation, but ICC will put the dependencies in
25412 # the current directory while Tru64 will put them in the object
25413 # directory.
25414 mkdir sub
25415
25416 am_cv_GCJ_dependencies_compiler_type=none
25417 if test "$am_compiler_list" = ""; then
25418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25419 fi
25420 for depmode in $am_compiler_list; do
25421 # Setup a source with many dependencies, because some compilers
25422 # like to wrap large dependency lists on column 80 (with \), and
25423 # we should not choose a depcomp mode which is confused by this.
25424 #
25425 # We need to recreate these files for each test, as the compiler may
25426 # overwrite some of them when testing with obscure command lines.
25427 # This happens at least with the AIX C compiler.
25428 : > sub/conftest.c
25429 for i in 1 2 3 4 5 6; do
25430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25432 # Solaris 8's {/usr,}/bin/sh.
25433 touch sub/conftst$i.h
25434 done
25435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25436
25437 case $depmode in
25438 nosideeffect)
25439 # after this tag, mechanisms are not by side-effect, so they'll
25440 # only be used when explicitly requested
25441 if test "x$enable_dependency_tracking" = xyes; then
25442 continue
25443 else
25444 break
25445 fi
25446 ;;
25447 none) break ;;
25448 esac
25449 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25450 # mode. It turns out that the SunPro C++ compiler does not properly
25451 # handle `-M -o', and we need to detect this.
25452 if depmode=$depmode \
25453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25456 >/dev/null 2>conftest.err &&
25457 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25459 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25460 # icc doesn't choke on unknown options, it will just issue warnings
25461 # or remarks (even with -Werror). So we grep stderr for any message
25462 # that says an option was ignored or not supported.
25463 # When given -MP, icc 7.0 and 7.1 complain thusly:
25464 # icc: Command line warning: ignoring option '-M'; no argument required
25465 # The diagnosis changed in icc 8.0:
25466 # icc: Command line remark: option '-MP' not supported
25467 if (grep 'ignoring option' conftest.err ||
25468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25469 am_cv_GCJ_dependencies_compiler_type=$depmode
25470 break
25471 fi
25472 fi
25473 done
25474
25475 cd ..
25476 rm -rf conftest.dir
25477 else
25478 am_cv_GCJ_dependencies_compiler_type=none
25479 fi
25480
25481 fi
25482 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25483 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25484 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25485
25486
25487
25488 if
25489 test "x$enable_dependency_tracking" != xno \
25490 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25491 am__fastdepGCJ_TRUE=
25492 am__fastdepGCJ_FALSE='#'
25493 else
25494 am__fastdepGCJ_TRUE='#'
25495 am__fastdepGCJ_FALSE=
25496 fi
25497
25498
25499
25500
25501 # Now remove it.
25502 rm -f gnu/classpath/Configuration.java
25503
25504 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25505
25506 echo "$as_me:$LINENO: checking for void *" >&5
25507 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25508 if test "${ac_cv_type_void_p+set}" = set; then
25509 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 else
25511 cat >conftest.$ac_ext <<_ACEOF
25512 /* confdefs.h. */
25513 _ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h. */
25517 $ac_includes_default
25518 int
25519 main ()
25520 {
25521 if ((void * *) 0)
25522 return 0;
25523 if (sizeof (void *))
25524 return 0;
25525 ;
25526 return 0;
25527 }
25528 _ACEOF
25529 rm -f conftest.$ac_objext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25531 (eval $ac_compile) 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } &&
25538 { ac_try='test -z "$ac_c_werror_flag"
25539 || test ! -s conftest.err'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; } &&
25545 { ac_try='test -s conftest.$ac_objext'
25546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; }; then
25551 ac_cv_type_void_p=yes
25552 else
25553 echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25555
25556 ac_cv_type_void_p=no
25557 fi
25558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25559 fi
25560 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25561 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25562
25563 echo "$as_me:$LINENO: checking size of void *" >&5
25564 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25565 if test "${ac_cv_sizeof_void_p+set}" = set; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568 if test "$ac_cv_type_void_p" = yes; then
25569 # The cast to unsigned long works around a bug in the HP C Compiler
25570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25572 # This bug is HP SR number 8606223364.
25573 if test "$cross_compiling" = yes; then
25574 # Depending upon the size, compute the lo and hi bounds.
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h. */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25582 int
25583 main ()
25584 {
25585 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25586 test_array [0] = 0
25587
25588 ;
25589 return 0;
25590 }
25591 _ACEOF
25592 rm -f conftest.$ac_objext
25593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25594 (eval $ac_compile) 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } &&
25601 { ac_try='test -z "$ac_c_werror_flag"
25602 || test ! -s conftest.err'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; } &&
25608 { ac_try='test -s conftest.$ac_objext'
25609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25610 (eval $ac_try) 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_lo=0 ac_mid=0
25615 while :; do
25616 cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h. */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 $ac_includes_default
25623 int
25624 main ()
25625 {
25626 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25627 test_array [0] = 0
25628
25629 ;
25630 return 0;
25631 }
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25635 (eval $ac_compile) 2>conftest.er1
25636 ac_status=$?
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } &&
25642 { ac_try='test -z "$ac_c_werror_flag"
25643 || test ! -s conftest.err'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest.$ac_objext'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_hi=$ac_mid; break
25656 else
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660 ac_lo=`expr $ac_mid + 1`
25661 if test $ac_lo -le $ac_mid; then
25662 ac_lo= ac_hi=
25663 break
25664 fi
25665 ac_mid=`expr 2 '*' $ac_mid + 1`
25666 fi
25667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25668 done
25669 else
25670 echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25672
25673 cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h. */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 $ac_includes_default
25680 int
25681 main ()
25682 {
25683 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25684 test_array [0] = 0
25685
25686 ;
25687 return 0;
25688 }
25689 _ACEOF
25690 rm -f conftest.$ac_objext
25691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25692 (eval $ac_compile) 2>conftest.er1
25693 ac_status=$?
25694 grep -v '^ *+' conftest.er1 >conftest.err
25695 rm -f conftest.er1
25696 cat conftest.err >&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
25699 { ac_try='test -z "$ac_c_werror_flag"
25700 || test ! -s conftest.err'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest.$ac_objext'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 ac_hi=-1 ac_mid=-1
25713 while :; do
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h. */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 $ac_includes_default
25721 int
25722 main ()
25723 {
25724 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25725 test_array [0] = 0
25726
25727 ;
25728 return 0;
25729 }
25730 _ACEOF
25731 rm -f conftest.$ac_objext
25732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25733 (eval $ac_compile) 2>conftest.er1
25734 ac_status=$?
25735 grep -v '^ *+' conftest.er1 >conftest.err
25736 rm -f conftest.er1
25737 cat conftest.err >&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } &&
25740 { ac_try='test -z "$ac_c_werror_flag"
25741 || test ! -s conftest.err'
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; } &&
25747 { ac_try='test -s conftest.$ac_objext'
25748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; }; then
25753 ac_lo=$ac_mid; break
25754 else
25755 echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758 ac_hi=`expr '(' $ac_mid ')' - 1`
25759 if test $ac_mid -le $ac_hi; then
25760 ac_lo= ac_hi=
25761 break
25762 fi
25763 ac_mid=`expr 2 '*' $ac_mid`
25764 fi
25765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25766 done
25767 else
25768 echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771 ac_lo= ac_hi=
25772 fi
25773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774 fi
25775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25776 # Binary search between lo and hi bounds.
25777 while test "x$ac_lo" != "x$ac_hi"; do
25778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25779 cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h. */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 $ac_includes_default
25786 int
25787 main ()
25788 {
25789 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25790 test_array [0] = 0
25791
25792 ;
25793 return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798 (eval $ac_compile) 2>conftest.er1
25799 ac_status=$?
25800 grep -v '^ *+' conftest.er1 >conftest.err
25801 rm -f conftest.er1
25802 cat conftest.err >&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } &&
25805 { ac_try='test -z "$ac_c_werror_flag"
25806 || test ! -s conftest.err'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; } &&
25812 { ac_try='test -s conftest.$ac_objext'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 ac_hi=$ac_mid
25819 else
25820 echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 ac_lo=`expr '(' $ac_mid ')' + 1`
25824 fi
25825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25826 done
25827 case $ac_lo in
25828 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25829 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25830 See \`config.log' for more details." >&5
25831 echo "$as_me: error: cannot compute sizeof (void *), 77
25832 See \`config.log' for more details." >&2;}
25833 { (exit 1); exit 1; }; } ;;
25834 esac
25835 else
25836 if test "$cross_compiling" = yes; then
25837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25838 See \`config.log' for more details." >&5
25839 echo "$as_me: error: cannot run test program while cross compiling
25840 See \`config.log' for more details." >&2;}
25841 { (exit 1); exit 1; }; }
25842 else
25843 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h. */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 $ac_includes_default
25850 long longval () { return (long) (sizeof (void *)); }
25851 unsigned long ulongval () { return (long) (sizeof (void *)); }
25852 #include <stdio.h>
25853 #include <stdlib.h>
25854 int
25855 main ()
25856 {
25857
25858 FILE *f = fopen ("conftest.val", "w");
25859 if (! f)
25860 exit (1);
25861 if (((long) (sizeof (void *))) < 0)
25862 {
25863 long i = longval ();
25864 if (i != ((long) (sizeof (void *))))
25865 exit (1);
25866 fprintf (f, "%ld\n", i);
25867 }
25868 else
25869 {
25870 unsigned long i = ulongval ();
25871 if (i != ((long) (sizeof (void *))))
25872 exit (1);
25873 fprintf (f, "%lu\n", i);
25874 }
25875 exit (ferror (f) || fclose (f) != 0);
25876
25877 ;
25878 return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883 (eval $ac_link) 2>&5
25884 ac_status=$?
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 ac_cv_sizeof_void_p=`cat conftest.val`
25893 else
25894 echo "$as_me: program exited with status $ac_status" >&5
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898 ( exit $ac_status )
25899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25900 See \`config.log' for more details." >&5
25901 echo "$as_me: error: cannot compute sizeof (void *), 77
25902 See \`config.log' for more details." >&2;}
25903 { (exit 1); exit 1; }; }
25904 fi
25905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25906 fi
25907 fi
25908 rm -f conftest.val
25909 else
25910 ac_cv_sizeof_void_p=0
25911 fi
25912 fi
25913 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25914 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25915 cat >>confdefs.h <<_ACEOF
25916 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25917 _ACEOF
25918
25919
25920
25921 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25922 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25923 if test "${ac_cv_c_bigendian+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25925 else
25926 # See if sys/param.h defines the BYTE_ORDER macro.
25927 cat >conftest.$ac_ext <<_ACEOF
25928 /* confdefs.h. */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25933 #include <sys/types.h>
25934 #include <sys/param.h>
25935
25936 int
25937 main ()
25938 {
25939 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25940 bogus endian macros
25941 #endif
25942
25943 ;
25944 return 0;
25945 }
25946 _ACEOF
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949 (eval $ac_compile) 2>conftest.er1
25950 ac_status=$?
25951 grep -v '^ *+' conftest.er1 >conftest.err
25952 rm -f conftest.er1
25953 cat conftest.err >&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -z "$ac_c_werror_flag"
25957 || test ! -s conftest.err'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest.$ac_objext'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 # It does; now see whether it defined to BIG_ENDIAN or not.
25970 cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h. */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 #include <sys/types.h>
25977 #include <sys/param.h>
25978
25979 int
25980 main ()
25981 {
25982 #if BYTE_ORDER != BIG_ENDIAN
25983 not big endian
25984 #endif
25985
25986 ;
25987 return 0;
25988 }
25989 _ACEOF
25990 rm -f conftest.$ac_objext
25991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25992 (eval $ac_compile) 2>conftest.er1
25993 ac_status=$?
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } &&
25999 { ac_try='test -z "$ac_c_werror_flag"
26000 || test ! -s conftest.err'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; } &&
26006 { ac_try='test -s conftest.$ac_objext'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012 ac_cv_c_bigendian=yes
26013 else
26014 echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_cv_c_bigendian=no
26018 fi
26019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26020 else
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024 # It does not; compile a test program.
26025 if test "$cross_compiling" = yes; then
26026 # try to guess the endianness by grepping values into an object file
26027 ac_cv_c_bigendian=unknown
26028 cat >conftest.$ac_ext <<_ACEOF
26029 /* confdefs.h. */
26030 _ACEOF
26031 cat confdefs.h >>conftest.$ac_ext
26032 cat >>conftest.$ac_ext <<_ACEOF
26033 /* end confdefs.h. */
26034 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26035 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26036 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26037 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26038 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26039 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26040 int
26041 main ()
26042 {
26043 _ascii (); _ebcdic ();
26044 ;
26045 return 0;
26046 }
26047 _ACEOF
26048 rm -f conftest.$ac_objext
26049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26050 (eval $ac_compile) 2>conftest.er1
26051 ac_status=$?
26052 grep -v '^ *+' conftest.er1 >conftest.err
26053 rm -f conftest.er1
26054 cat conftest.err >&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); } &&
26057 { ac_try='test -z "$ac_c_werror_flag"
26058 || test ! -s conftest.err'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; } &&
26064 { ac_try='test -s conftest.$ac_objext'
26065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066 (eval $ac_try) 2>&5
26067 ac_status=$?
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); }; }; then
26070 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26071 ac_cv_c_bigendian=yes
26072 fi
26073 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26074 if test "$ac_cv_c_bigendian" = unknown; then
26075 ac_cv_c_bigendian=no
26076 else
26077 # finding both strings is unlikely to happen, but who knows?
26078 ac_cv_c_bigendian=unknown
26079 fi
26080 fi
26081 else
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 fi
26086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26087 else
26088 cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h. */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 int
26095 main ()
26096 {
26097 /* Are we little or big endian? From Harbison&Steele. */
26098 union
26099 {
26100 long l;
26101 char c[sizeof (long)];
26102 } u;
26103 u.l = 1;
26104 exit (u.c[sizeof (long) - 1] == 1);
26105 }
26106 _ACEOF
26107 rm -f conftest$ac_exeext
26108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26109 (eval $ac_link) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 ac_cv_c_bigendian=no
26119 else
26120 echo "$as_me: program exited with status $ac_status" >&5
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124 ( exit $ac_status )
26125 ac_cv_c_bigendian=yes
26126 fi
26127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26128 fi
26129 fi
26130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26131 fi
26132 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26133 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26134 case $ac_cv_c_bigendian in
26135 yes)
26136
26137 cat >>confdefs.h <<\_ACEOF
26138 #define WORDS_BIGENDIAN 1
26139 _ACEOF
26140 ;;
26141 no)
26142 ;;
26143 *)
26144 { { echo "$as_me:$LINENO: error: unknown endianness
26145 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26146 echo "$as_me: error: unknown endianness
26147 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26148 { (exit 1); exit 1; }; } ;;
26149 esac
26150
26151
26152 ZLIBS=
26153 SYS_ZLIBS=
26154 ZINCS=
26155
26156 if test -z "$ZLIBSPEC"; then
26157 # Use zlib from the GCC tree.
26158 ZINCS='-I$(top_srcdir)/../zlib'
26159 ZLIBS=../zlib/libzgcj_convenience.la
26160 else
26161 # System's zlib.
26162 SYS_ZLIBS="$ZLIBSPEC"
26163 fi
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175 if test "$NATIVE" = yes; then
26176 NATIVE_TRUE=
26177 NATIVE_FALSE='#'
26178 else
26179 NATIVE_TRUE='#'
26180 NATIVE_FALSE=
26181 fi
26182
26183
26184
26185 if test "$enable_shared" = yes; then
26186 ENABLE_SHARED_TRUE=
26187 ENABLE_SHARED_FALSE='#'
26188 else
26189 ENABLE_SHARED_TRUE='#'
26190 ENABLE_SHARED_FALSE=
26191 fi
26192
26193
26194
26195 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26196 NEEDS_DATA_START_TRUE=
26197 NEEDS_DATA_START_FALSE='#'
26198 else
26199 NEEDS_DATA_START_TRUE='#'
26200 NEEDS_DATA_START_FALSE=
26201 fi
26202
26203
26204
26205 # Process the option "--enable-version-specific-runtime-libs"
26206 # Calculate toolexeclibdir
26207 case ${version_specific_libs} in
26208 yes)
26209 # Need the gcc compiler version to know where to install libraries
26210 # and header files if --enable-version-specific-runtime-libs option
26211 # is selected.
26212 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26213 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26214 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26215 toolexeclibdir=$toolexecmainlibdir
26216 ;;
26217 no)
26218 if test -n "$with_cross_host" &&
26219 test x"$with_cross_host" != x"no"; then
26220 # Install a library built with a cross compiler in tooldir, not libdir.
26221 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26222 toolexecmainlibdir='$(toolexecdir)/lib'
26223 else
26224 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26225 toolexecmainlibdir='$(libdir)'
26226 fi
26227 multi_os_directory=`$CC -print-multi-os-directory`
26228 case $multi_os_directory in
26229 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26230 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26231 esac
26232 ;;
26233 esac
26234
26235
26236
26237
26238 # Determine gcj and libgcj version number.
26239 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26240 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26241 GCJVERSION=$gcjversion
26242
26243
26244 cat >>confdefs.h <<_ACEOF
26245 #define GCJVERSION "$GCJVERSION"
26246 _ACEOF
26247
26248
26249 # Determine where the standard .db file and GNU Classpath JNI
26250 # libraries are found.
26251 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26252 multi_os_directory=`$CC -print-multi-os-directory`
26253 case $multi_os_directory in
26254 .)
26255 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26256 ;;
26257 *)
26258 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26259 ;;
26260 esac
26261
26262
26263
26264 cat >>confdefs.h <<\_ACEOF
26265 #define JV_VERSION "1.5.0"
26266 _ACEOF
26267
26268
26269 cat >>confdefs.h <<\_ACEOF
26270 #define JV_API_VERSION "1.5"
26271 _ACEOF
26272
26273
26274
26275 case "${with_gxx_include_dir}" in
26276 yes)
26277 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26278 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26279 { (exit 1); exit 1; }; }
26280 ;;
26281 no | "")
26282 case "${enable_version_specific_runtime_libs}" in
26283 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26284 *)
26285 libstdcxx_incdir='c++/$(gcc_version)'
26286 gxx_include_dir='include/$(libstdcxx_incdir)'
26287 if test -n "$with_cross_host" &&
26288 test x"$with_cross_host" != x"no"; then
26289 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26290 else
26291 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26292 fi;;
26293 esac ;;
26294 *) gxx_include_dir=${with_gxx_include_dir} ;;
26295 esac
26296
26297
26298
26299
26300 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26301 # On that system, sys/ioctl.h will not include sys/filio.h unless
26302 # BSD_COMP is defined; just including sys/filio.h is simpler.
26303 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26304 # for now. If you change this, you also must update natFile.cc.
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26329 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26330 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26331 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26332 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26333 do
26334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336 echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 fi
26341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26343 else
26344 # Is the header compilable?
26345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h. */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 $ac_includes_default
26354 #include <$ac_header>
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26358 (eval $ac_compile) 2>conftest.er1
26359 ac_status=$?
26360 grep -v '^ *+' conftest.er1 >conftest.err
26361 rm -f conftest.er1
26362 cat conftest.err >&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); } &&
26365 { ac_try='test -z "$ac_c_werror_flag"
26366 || test ! -s conftest.err'
26367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); }; } &&
26372 { ac_try='test -s conftest.$ac_objext'
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; }; then
26378 ac_header_compiler=yes
26379 else
26380 echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383 ac_header_compiler=no
26384 fi
26385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387 echo "${ECHO_T}$ac_header_compiler" >&6
26388
26389 # Is the header present?
26390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h. */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26398 #include <$ac_header>
26399 _ACEOF
26400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26402 ac_status=$?
26403 grep -v '^ *+' conftest.er1 >conftest.err
26404 rm -f conftest.er1
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } >/dev/null; then
26408 if test -s conftest.err; then
26409 ac_cpp_err=$ac_c_preproc_warn_flag
26410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26411 else
26412 ac_cpp_err=
26413 fi
26414 else
26415 ac_cpp_err=yes
26416 fi
26417 if test -z "$ac_cpp_err"; then
26418 ac_header_preproc=yes
26419 else
26420 echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423 ac_header_preproc=no
26424 fi
26425 rm -f conftest.err conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26427 echo "${ECHO_T}$ac_header_preproc" >&6
26428
26429 # So? What about this header?
26430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26431 yes:no: )
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26436 ac_header_preproc=yes
26437 ;;
26438 no:yes:* )
26439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26451 (
26452 cat <<\_ASBOX
26453 ## ---------------------------------- ##
26454 ## Report this to the libjava lists. ##
26455 ## ---------------------------------- ##
26456 _ASBOX
26457 ) |
26458 sed "s/^/$as_me: WARNING: /" >&2
26459 ;;
26460 esac
26461 echo "$as_me:$LINENO: checking for $ac_header" >&5
26462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26465 else
26466 eval "$as_ac_Header=\$ac_header_preproc"
26467 fi
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26470
26471 fi
26472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26473 cat >>confdefs.h <<_ACEOF
26474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26475 _ACEOF
26476
26477 fi
26478
26479 done
26480
26481
26482 for ac_header in inttypes.h
26483 do
26484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26486 echo "$as_me:$LINENO: checking for $ac_header" >&5
26487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26489 echo $ECHO_N "(cached) $ECHO_C" >&6
26490 fi
26491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26493 else
26494 # Is the header compilable?
26495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26497 cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h. */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 $ac_includes_default
26504 #include <$ac_header>
26505 _ACEOF
26506 rm -f conftest.$ac_objext
26507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26508 (eval $ac_compile) 2>conftest.er1
26509 ac_status=$?
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } &&
26515 { ac_try='test -z "$ac_c_werror_flag"
26516 || test ! -s conftest.err'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } &&
26522 { ac_try='test -s conftest.$ac_objext'
26523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524 (eval $ac_try) 2>&5
26525 ac_status=$?
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); }; }; then
26528 ac_header_compiler=yes
26529 else
26530 echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 ac_header_compiler=no
26534 fi
26535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26537 echo "${ECHO_T}$ac_header_compiler" >&6
26538
26539 # Is the header present?
26540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26542 cat >conftest.$ac_ext <<_ACEOF
26543 /* confdefs.h. */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26548 #include <$ac_header>
26549 _ACEOF
26550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26552 ac_status=$?
26553 grep -v '^ *+' conftest.er1 >conftest.err
26554 rm -f conftest.er1
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } >/dev/null; then
26558 if test -s conftest.err; then
26559 ac_cpp_err=$ac_c_preproc_warn_flag
26560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26561 else
26562 ac_cpp_err=
26563 fi
26564 else
26565 ac_cpp_err=yes
26566 fi
26567 if test -z "$ac_cpp_err"; then
26568 ac_header_preproc=yes
26569 else
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573 ac_header_preproc=no
26574 fi
26575 rm -f conftest.err conftest.$ac_ext
26576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26577 echo "${ECHO_T}$ac_header_preproc" >&6
26578
26579 # So? What about this header?
26580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26581 yes:no: )
26582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26586 ac_header_preproc=yes
26587 ;;
26588 no:yes:* )
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26601 (
26602 cat <<\_ASBOX
26603 ## ---------------------------------- ##
26604 ## Report this to the libjava lists. ##
26605 ## ---------------------------------- ##
26606 _ASBOX
26607 ) |
26608 sed "s/^/$as_me: WARNING: /" >&2
26609 ;;
26610 esac
26611 echo "$as_me:$LINENO: checking for $ac_header" >&5
26612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 else
26616 eval "$as_ac_Header=\$ac_header_preproc"
26617 fi
26618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26620
26621 fi
26622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26623 cat >>confdefs.h <<_ACEOF
26624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26625 _ACEOF
26626
26627
26628 cat >>confdefs.h <<\_ACEOF
26629 #define HAVE_INTTYPES_H 1
26630 _ACEOF
26631
26632
26633 cat >>confdefs.h <<\_ACEOF
26634 #define JV_HAVE_INTTYPES_H 1
26635 _ACEOF
26636
26637
26638 fi
26639
26640 done
26641
26642
26643 echo "$as_me:$LINENO: checking for ssize_t" >&5
26644 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26645 if test "${ac_cv_type_ssize_t+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 else
26648 cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h. */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 $ac_includes_default
26655 int
26656 main ()
26657 {
26658 if ((ssize_t *) 0)
26659 return 0;
26660 if (sizeof (ssize_t))
26661 return 0;
26662 ;
26663 return 0;
26664 }
26665 _ACEOF
26666 rm -f conftest.$ac_objext
26667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26668 (eval $ac_compile) 2>conftest.er1
26669 ac_status=$?
26670 grep -v '^ *+' conftest.er1 >conftest.err
26671 rm -f conftest.er1
26672 cat conftest.err >&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); } &&
26675 { ac_try='test -z "$ac_c_werror_flag"
26676 || test ! -s conftest.err'
26677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; } &&
26682 { ac_try='test -s conftest.$ac_objext'
26683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26684 (eval $ac_try) 2>&5
26685 ac_status=$?
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); }; }; then
26688 ac_cv_type_ssize_t=yes
26689 else
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26692
26693 ac_cv_type_ssize_t=no
26694 fi
26695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26696 fi
26697 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26698 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26699 if test $ac_cv_type_ssize_t = yes; then
26700 :
26701 else
26702
26703 cat >>confdefs.h <<_ACEOF
26704 #define ssize_t int
26705 _ACEOF
26706
26707 fi
26708
26709 echo "$as_me:$LINENO: checking for magic_t" >&5
26710 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26711 if test "${ac_cv_type_magic_t+set}" = set; then
26712 echo $ECHO_N "(cached) $ECHO_C" >&6
26713 else
26714 cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h. */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26720
26721 #ifdef HAVE_MAGIC_H
26722 #include <magic.h>
26723 #endif
26724
26725 int
26726 main ()
26727 {
26728 if ((magic_t *) 0)
26729 return 0;
26730 if (sizeof (magic_t))
26731 return 0;
26732 ;
26733 return 0;
26734 }
26735 _ACEOF
26736 rm -f conftest.$ac_objext
26737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26738 (eval $ac_compile) 2>conftest.er1
26739 ac_status=$?
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
26745 { ac_try='test -z "$ac_c_werror_flag"
26746 || test ! -s conftest.err'
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; } &&
26752 { ac_try='test -s conftest.$ac_objext'
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; }; then
26758 ac_cv_type_magic_t=yes
26759 else
26760 echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26762
26763 ac_cv_type_magic_t=no
26764 fi
26765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26766 fi
26767 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26768 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26769 if test $ac_cv_type_magic_t = yes; then
26770
26771
26772 cat >>confdefs.h <<\_ACEOF
26773 #define HAVE_MAGIC_T 1
26774 _ACEOF
26775
26776 fi
26777
26778
26779 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26780 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26781 cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h. */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h. */
26787 #include <sys/types.h>
26788 #if STDC_HEADERS
26789 #include <stdlib.h>
26790 #include <stddef.h>
26791 #endif
26792 #if HAVE_NETINET_IN_H
26793 #include <netinet/in.h>
26794 #endif
26795 int
26796 main ()
26797 {
26798 in_addr_t foo;
26799 ;
26800 return 0;
26801 }
26802 _ACEOF
26803 rm -f conftest.$ac_objext
26804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26805 (eval $ac_compile) 2>conftest.er1
26806 ac_status=$?
26807 grep -v '^ *+' conftest.er1 >conftest.err
26808 rm -f conftest.er1
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } &&
26812 { ac_try='test -z "$ac_c_werror_flag"
26813 || test ! -s conftest.err'
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; } &&
26819 { ac_try='test -s conftest.$ac_objext'
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825
26826 cat >>confdefs.h <<\_ACEOF
26827 #define HAVE_IN_ADDR_T 1
26828 _ACEOF
26829
26830 echo "$as_me:$LINENO: result: yes" >&5
26831 echo "${ECHO_T}yes" >&6
26832 else
26833 echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26835
26836 echo "$as_me:$LINENO: result: no" >&5
26837 echo "${ECHO_T}no" >&6
26838 fi
26839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26840
26841 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26842 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26843 cat >conftest.$ac_ext <<_ACEOF
26844 /* confdefs.h. */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26849 #include <netinet/in.h>
26850 int
26851 main ()
26852 {
26853 struct ip_mreq mreq;
26854 ;
26855 return 0;
26856 }
26857 _ACEOF
26858 rm -f conftest.$ac_objext
26859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26860 (eval $ac_compile) 2>conftest.er1
26861 ac_status=$?
26862 grep -v '^ *+' conftest.er1 >conftest.err
26863 rm -f conftest.er1
26864 cat conftest.err >&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); } &&
26867 { ac_try='test -z "$ac_c_werror_flag"
26868 || test ! -s conftest.err'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; } &&
26874 { ac_try='test -s conftest.$ac_objext'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26877 ac_status=$?
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880
26881 cat >>confdefs.h <<\_ACEOF
26882 #define HAVE_STRUCT_IP_MREQ 1
26883 _ACEOF
26884
26885 echo "$as_me:$LINENO: result: yes" >&5
26886 echo "${ECHO_T}yes" >&6
26887 else
26888 echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26890
26891 echo "$as_me:$LINENO: result: no" >&5
26892 echo "${ECHO_T}no" >&6
26893 fi
26894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26895
26896 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26897 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26898 cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h. */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26904 #include <netinet/in.h>
26905 int
26906 main ()
26907 {
26908 struct ipv6_mreq mreq6;
26909 ;
26910 return 0;
26911 }
26912 _ACEOF
26913 rm -f conftest.$ac_objext
26914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26915 (eval $ac_compile) 2>conftest.er1
26916 ac_status=$?
26917 grep -v '^ *+' conftest.er1 >conftest.err
26918 rm -f conftest.er1
26919 cat conftest.err >&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
26922 { ac_try='test -z "$ac_c_werror_flag"
26923 || test ! -s conftest.err'
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; } &&
26929 { ac_try='test -s conftest.$ac_objext'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935
26936 cat >>confdefs.h <<\_ACEOF
26937 #define HAVE_STRUCT_IPV6_MREQ 1
26938 _ACEOF
26939
26940 echo "$as_me:$LINENO: result: yes" >&5
26941 echo "${ECHO_T}yes" >&6
26942 else
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 echo "$as_me:$LINENO: result: no" >&5
26947 echo "${ECHO_T}no" >&6
26948 fi
26949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26950
26951 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26952 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26953 cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h. */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26959 #include <netinet/in.h>
26960 int
26961 main ()
26962 {
26963 struct sockaddr_in6 addr6;
26964 ;
26965 return 0;
26966 }
26967 _ACEOF
26968 rm -f conftest.$ac_objext
26969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26970 (eval $ac_compile) 2>conftest.er1
26971 ac_status=$?
26972 grep -v '^ *+' conftest.er1 >conftest.err
26973 rm -f conftest.er1
26974 cat conftest.err >&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } &&
26977 { ac_try='test -z "$ac_c_werror_flag"
26978 || test ! -s conftest.err'
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest.$ac_objext'
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26990
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_INET6 1
26993 _ACEOF
26994
26995 echo "$as_me:$LINENO: result: yes" >&5
26996 echo "${ECHO_T}yes" >&6
26997 else
26998 echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27000
27001 echo "$as_me:$LINENO: result: no" >&5
27002 echo "${ECHO_T}no" >&6
27003 fi
27004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27005
27006 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27007 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27008 cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h. */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27014 #define _POSIX_PII_SOCKET
27015 #include <sys/types.h>
27016 #include <sys/socket.h>
27017 int
27018 main ()
27019 {
27020 socklen_t x = 5;
27021 ;
27022 return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27027 (eval $ac_compile) 2>conftest.er1
27028 ac_status=$?
27029 grep -v '^ *+' conftest.er1 >conftest.err
27030 rm -f conftest.er1
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
27034 { ac_try='test -z "$ac_c_werror_flag"
27035 || test ! -s conftest.err'
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; } &&
27041 { ac_try='test -s conftest.$ac_objext'
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
27047
27048 cat >>confdefs.h <<\_ACEOF
27049 #define HAVE_SOCKLEN_T 1
27050 _ACEOF
27051
27052 echo "$as_me:$LINENO: result: yes" >&5
27053 echo "${ECHO_T}yes" >&6
27054 else
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058 echo "$as_me:$LINENO: result: no" >&5
27059 echo "${ECHO_T}no" >&6
27060 fi
27061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27062
27063 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27064 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h. */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27071 #include <time.h>
27072 int
27073 main ()
27074 {
27075 struct tm tim; tim.tm_gmtoff = 0;
27076 ;
27077 return 0;
27078 }
27079 _ACEOF
27080 rm -f conftest.$ac_objext
27081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27082 (eval $ac_compile) 2>conftest.er1
27083 ac_status=$?
27084 grep -v '^ *+' conftest.er1 >conftest.err
27085 rm -f conftest.er1
27086 cat conftest.err >&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); } &&
27089 { ac_try='test -z "$ac_c_werror_flag"
27090 || test ! -s conftest.err'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; } &&
27096 { ac_try='test -s conftest.$ac_objext'
27097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098 (eval $ac_try) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
27102
27103 cat >>confdefs.h <<\_ACEOF
27104 #define STRUCT_TM_HAS_GMTOFF 1
27105 _ACEOF
27106
27107 echo "$as_me:$LINENO: result: yes" >&5
27108 echo "${ECHO_T}yes" >&6
27109 else
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113 echo "$as_me:$LINENO: result: no" >&5
27114 echo "${ECHO_T}no" >&6
27115 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27116 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27117 cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h. */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h. */
27123 #include <time.h>
27124 int
27125 main ()
27126 {
27127 void i(){long z2 = 2*timezone;}
27128 ;
27129 return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134 (eval $ac_compile) 2>conftest.er1
27135 ac_status=$?
27136 grep -v '^ *+' conftest.er1 >conftest.err
27137 rm -f conftest.er1
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } &&
27141 { ac_try='test -z "$ac_c_werror_flag"
27142 || test ! -s conftest.err'
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; } &&
27148 { ac_try='test -s conftest.$ac_objext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27151 ac_status=$?
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154
27155 cat >>confdefs.h <<\_ACEOF
27156 #define HAVE_TIMEZONE 1
27157 _ACEOF
27158
27159 echo "$as_me:$LINENO: result: yes" >&5
27160 echo "${ECHO_T}yes" >&6
27161 else
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165 echo "$as_me:$LINENO: result: no" >&5
27166 echo "${ECHO_T}no" >&6
27167 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27168 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27169 cat >conftest.$ac_ext <<_ACEOF
27170 /* confdefs.h. */
27171 _ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h. */
27175 #include <time.h>
27176 int
27177 main ()
27178 {
27179 long z2 = _timezone;
27180 ;
27181 return 0;
27182 }
27183 _ACEOF
27184 rm -f conftest.$ac_objext
27185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27186 (eval $ac_compile) 2>conftest.er1
27187 ac_status=$?
27188 grep -v '^ *+' conftest.er1 >conftest.err
27189 rm -f conftest.er1
27190 cat conftest.err >&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } &&
27193 { ac_try='test -z "$ac_c_werror_flag"
27194 || test ! -s conftest.err'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; } &&
27200 { ac_try='test -s conftest.$ac_objext'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
27206
27207 cat >>confdefs.h <<\_ACEOF
27208 #define HAVE_UNDERSCORE_TIMEZONE 1
27209 _ACEOF
27210
27211 echo "$as_me:$LINENO: result: yes" >&5
27212 echo "${ECHO_T}yes" >&6
27213 else
27214 echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27216
27217 echo "$as_me:$LINENO: result: no" >&5
27218 echo "${ECHO_T}no" >&6
27219 fi
27220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27221 fi
27222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27223 fi
27224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27225
27226 for ac_prog in perl
27227 do
27228 # Extract the first word of "$ac_prog", so it can be a program name with args.
27229 set dummy $ac_prog; ac_word=$2
27230 echo "$as_me:$LINENO: checking for $ac_word" >&5
27231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27232 if test "${ac_cv_prog_PERL+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235 if test -n "$PERL"; then
27236 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27237 else
27238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27239 for as_dir in $PATH
27240 do
27241 IFS=$as_save_IFS
27242 test -z "$as_dir" && as_dir=.
27243 for ac_exec_ext in '' $ac_executable_extensions; do
27244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27245 ac_cv_prog_PERL="$ac_prog"
27246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27247 break 2
27248 fi
27249 done
27250 done
27251
27252 fi
27253 fi
27254 PERL=$ac_cv_prog_PERL
27255 if test -n "$PERL"; then
27256 echo "$as_me:$LINENO: result: $PERL" >&5
27257 echo "${ECHO_T}$PERL" >&6
27258 else
27259 echo "$as_me:$LINENO: result: no" >&5
27260 echo "${ECHO_T}no" >&6
27261 fi
27262
27263 test -n "$PERL" && break
27264 done
27265 test -n "$PERL" || PERL="false"
27266
27267
27268 SYSDEP_SOURCES=
27269 SIGNAL_HANDLER_AUX=
27270
27271 case "${host}" in
27272 i?86-*-linux*)
27273 SIGNAL_HANDLER=include/i386-signal.h
27274 ;;
27275 sparc*-sun-solaris*)
27276 SIGNAL_HANDLER=include/sparc-signal.h
27277 ;;
27278 # ia64-*)
27279 # SYSDEP_SOURCES=sysdep/ia64.c
27280 # test -d sysdep || mkdir sysdep
27281 # ;;
27282 hppa*-*-linux*)
27283 SIGNAL_HANDLER=include/pa-signal.h
27284 ;;
27285 hppa*-hp-hpux*)
27286 SIGNAL_HANDLER=include/hppa-signal.h
27287 ;;
27288 ia64-*-linux*)
27289 SIGNAL_HANDLER=include/dwarf2-signal.h
27290 ;;
27291 powerpc*-*-linux*)
27292 SIGNAL_HANDLER=include/powerpc-signal.h
27293 ;;
27294 alpha*-*-linux*)
27295 SIGNAL_HANDLER=include/dwarf2-signal.h
27296 ;;
27297 s390*-*-linux*)
27298 SIGNAL_HANDLER=include/s390-signal.h
27299 ;;
27300 x86_64*-*-linux*)
27301 SIGNAL_HANDLER=include/x86_64-signal.h
27302 SIGNAL_HANDLER_AUX=include/i386-signal.h
27303 ;;
27304 sparc*-*-linux*)
27305 SIGNAL_HANDLER=include/dwarf2-signal.h
27306 ;;
27307 sh*-*-linux*)
27308 SIGNAL_HANDLER=include/sh-signal.h
27309 ;;
27310 *mingw*)
27311 SIGNAL_HANDLER=include/win32-signal.h
27312 ;;
27313 mips*-*-linux*)
27314 SIGNAL_HANDLER=include/mips-signal.h
27315 ;;
27316 m68*-*-linux*)
27317 SIGNAL_HANDLER=include/dwarf2-signal.h
27318 ;;
27319 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27320 SIGNAL_HANDLER=include/darwin-signal.h
27321 ;;
27322 *)
27323 SIGNAL_HANDLER=include/default-signal.h
27324 ;;
27325 esac
27326
27327 # If we're using sjlj exceptions, forget what we just learned.
27328 if test "$enable_sjlj_exceptions" = yes; then
27329 SIGNAL_HANDLER=include/default-signal.h
27330 SIGNAL_HANDLER_AUX=
27331 fi
27332
27333
27334
27335 if test -z "$SIGNAL_HANDLER_AUX"; then
27336 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27337 fi
27338
27339 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27340
27341
27342 if test "${multilib}" = "yes"; then
27343 multilib_arg="--enable-multilib"
27344 else
27345 multilib_arg=
27346 fi
27347
27348 # See if we support thread-local storage.
27349
27350 # Check whether --enable-tls or --disable-tls was given.
27351 if test "${enable_tls+set}" = set; then
27352 enableval="$enable_tls"
27353
27354 case "$enableval" in
27355 yes|no) ;;
27356 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27357 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27358 { (exit 1); exit 1; }; } ;;
27359 esac
27360
27361 else
27362 enable_tls=yes
27363 fi;
27364
27365 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27366 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27367 if test "${gcc_cv_have_tls+set}" = set; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 else
27370
27371 if test "$cross_compiling" = yes; then
27372 if test x$gcc_no_link = xyes; then
27373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27375 { (exit 1); exit 1; }; }
27376 fi
27377 cat >conftest.$ac_ext <<_ACEOF
27378 __thread int a; int b; int main() { return a = b; }
27379 _ACEOF
27380 rm -f conftest.$ac_objext conftest$ac_exeext
27381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27382 (eval $ac_link) 2>conftest.er1
27383 ac_status=$?
27384 grep -v '^ *+' conftest.er1 >conftest.err
27385 rm -f conftest.er1
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } &&
27389 { ac_try='test -z "$ac_c_werror_flag"
27390 || test ! -s conftest.err'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27393 ac_status=$?
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest$ac_exeext'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27399 ac_status=$?
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; }; then
27402 gcc_cv_have_tls=yes
27403 else
27404 echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27406
27407 gcc_cv_have_tls=no
27408 fi
27409 rm -f conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
27411
27412
27413 else
27414 cat >conftest.$ac_ext <<_ACEOF
27415 __thread int a; int b; int main() { return a = b; }
27416 _ACEOF
27417 rm -f conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27425 ac_status=$?
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
27428 chktls_save_LDFLAGS="$LDFLAGS"
27429 LDFLAGS="-static $LDFLAGS"
27430 if test x$gcc_no_link = xyes; then
27431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27433 { (exit 1); exit 1; }; }
27434 fi
27435 cat >conftest.$ac_ext <<_ACEOF
27436 int main() { return 0; }
27437 _ACEOF
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27440 (eval $ac_link) 2>conftest.er1
27441 ac_status=$?
27442 grep -v '^ *+' conftest.er1 >conftest.err
27443 rm -f conftest.er1
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag"
27448 || test ! -s conftest.err'
27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450 (eval $ac_try) 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest$ac_exeext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 if test "$cross_compiling" = yes; then
27461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27462 See \`config.log' for more details." >&5
27463 echo "$as_me: error: cannot run test program while cross compiling
27464 See \`config.log' for more details." >&2;}
27465 { (exit 1); exit 1; }; }
27466 else
27467 cat >conftest.$ac_ext <<_ACEOF
27468 __thread int a; int b; int main() { return a = b; }
27469 _ACEOF
27470 rm -f conftest$ac_exeext
27471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27472 (eval $ac_link) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
27481 gcc_cv_have_tls=yes
27482 else
27483 echo "$as_me: program exited with status $ac_status" >&5
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487 ( exit $ac_status )
27488 gcc_cv_have_tls=no
27489 fi
27490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27491 fi
27492 else
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27495
27496 gcc_cv_have_tls=yes
27497 fi
27498 rm -f conftest.err conftest.$ac_objext \
27499 conftest$ac_exeext conftest.$ac_ext
27500 LDFLAGS="$chktls_save_LDFLAGS"
27501 if test $gcc_cv_have_tls = yes; then
27502 chktls_save_CFLAGS="$CFLAGS"
27503 thread_CFLAGS=failed
27504 for flag in '' '-pthread' '-lpthread'; do
27505 CFLAGS="$flag $chktls_save_CFLAGS"
27506 if test x$gcc_no_link = xyes; then
27507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27509 { (exit 1); exit 1; }; }
27510 fi
27511 cat >conftest.$ac_ext <<_ACEOF
27512 /* confdefs.h. */
27513 _ACEOF
27514 cat confdefs.h >>conftest.$ac_ext
27515 cat >>conftest.$ac_ext <<_ACEOF
27516 /* end confdefs.h. */
27517 #include <pthread.h>
27518 void *g(void *d) { return NULL; }
27519 int
27520 main ()
27521 {
27522 pthread_t t; pthread_create(&t,NULL,g,NULL);
27523 ;
27524 return 0;
27525 }
27526 _ACEOF
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529 (eval $ac_link) 2>conftest.er1
27530 ac_status=$?
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -z "$ac_c_werror_flag"
27537 || test ! -s conftest.err'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; } &&
27543 { ac_try='test -s conftest$ac_exeext'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; }; then
27549 thread_CFLAGS="$flag"
27550 else
27551 echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27553
27554 fi
27555 rm -f conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
27557 if test "X$thread_CFLAGS" != Xfailed; then
27558 break
27559 fi
27560 done
27561 CFLAGS="$chktls_save_CFLAGS"
27562 if test "X$thread_CFLAGS" != Xfailed; then
27563 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27564 if test "$cross_compiling" = yes; then
27565 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27566 See \`config.log' for more details." >&5
27567 echo "$as_me: error: cannot run test program while cross compiling
27568 See \`config.log' for more details." >&2;}
27569 { (exit 1); exit 1; }; }
27570 else
27571 cat >conftest.$ac_ext <<_ACEOF
27572 /* confdefs.h. */
27573 _ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27577 #include <pthread.h>
27578 __thread int a;
27579 static int *a_in_other_thread;
27580 static void *
27581 thread_func (void *arg)
27582 {
27583 a_in_other_thread = &a;
27584 return (void *)0;
27585 }
27586 int
27587 main ()
27588 {
27589 pthread_t thread;
27590 void *thread_retval;
27591 int *a_in_main_thread;
27592 if (pthread_create (&thread, (pthread_attr_t *)0,
27593 thread_func, (void *)0))
27594 return 0;
27595 a_in_main_thread = &a;
27596 if (pthread_join (thread, &thread_retval))
27597 return 0;
27598 return (a_in_other_thread == a_in_main_thread);
27599 ;
27600 return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest$ac_exeext
27604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27605 (eval $ac_link) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; }; then
27614 gcc_cv_have_tls=yes
27615 else
27616 echo "$as_me: program exited with status $ac_status" >&5
27617 echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27619
27620 ( exit $ac_status )
27621 gcc_cv_have_tls=no
27622 fi
27623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27624 fi
27625 CFLAGS="$chktls_save_CFLAGS"
27626 fi
27627 fi
27628 else
27629 echo "$as_me: program exited with status $ac_status" >&5
27630 echo "$as_me: failed program was:" >&5
27631 sed 's/^/| /' conftest.$ac_ext >&5
27632
27633 ( exit $ac_status )
27634 gcc_cv_have_tls=no
27635 fi
27636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27637 fi
27638 fi
27639 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27640 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27641 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27642
27643 cat >>confdefs.h <<\_ACEOF
27644 #define HAVE_TLS 1
27645 _ACEOF
27646
27647 fi
27648
27649 # For _Unwind_GetIPInfo.
27650
27651
27652
27653 ac_ext=cc
27654 ac_cpp='$CXXCPP $CPPFLAGS'
27655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27658
27659 ac_save_CXXFLAGS="$CXXFLAGS"
27660 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27661 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27662 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27663 if test "${gcc_cv_getipinfo+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666
27667 if test x$gcc_no_link = xyes; then
27668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27670 { (exit 1); exit 1; }; }
27671 fi
27672 cat >conftest.$ac_ext <<_ACEOF
27673 /* confdefs.h. */
27674 _ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27678 extern "C" { extern void _Unwind_GetIPInfo(); }
27679 int
27680 main ()
27681 {
27682 _Unwind_GetIPInfo();
27683 ;
27684 return 0;
27685 }
27686 _ACEOF
27687 rm -f conftest.$ac_objext conftest$ac_exeext
27688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27689 (eval $ac_link) 2>conftest.er1
27690 ac_status=$?
27691 grep -v '^ *+' conftest.er1 >conftest.err
27692 rm -f conftest.er1
27693 cat conftest.err >&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } &&
27696 { ac_try='test -z "$ac_cxx_werror_flag"
27697 || test ! -s conftest.err'
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; } &&
27703 { ac_try='test -s conftest$ac_exeext'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
27709 gcc_cv_getipinfo=yes
27710 else
27711 echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 gcc_cv_getipinfo=no
27715 fi
27716 rm -f conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
27718
27719 fi
27720
27721 if test $gcc_cv_getipinfo = yes; then
27722
27723 cat >>confdefs.h <<\_ACEOF
27724 #define HAVE_GETIPINFO 1
27725 _ACEOF
27726
27727 fi
27728 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27729 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27730 CXXFLAGS="$ac_save_CXXFLAGS"
27731 ac_ext=c
27732 ac_cpp='$CPP $CPPFLAGS'
27733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27736
27737
27738
27739 # See if linker supports anonymous version scripts.
27740 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27741 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27742 if test "${libjava_cv_anon_version_script+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27746 libjava_cv_anon_version_script=no
27747 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27748 echo '{ global: globalsymb*; local: *; };' > conftest.map
27749 if test x$gcc_no_link = xyes; then
27750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27752 { (exit 1); exit 1; }; }
27753 fi
27754 cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h. */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27760 void globalsymbol (void) {} void localsymbol (void) {}
27761 int
27762 main ()
27763 {
27764
27765 ;
27766 return 0;
27767 }
27768 _ACEOF
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27771 (eval $ac_link) 2>conftest.er1
27772 ac_status=$?
27773 grep -v '^ *+' conftest.er1 >conftest.err
27774 rm -f conftest.er1
27775 cat conftest.err >&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } &&
27778 { ac_try='test -z "$ac_c_werror_flag"
27779 || test ! -s conftest.err'
27780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27781 (eval $ac_try) 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; } &&
27785 { ac_try='test -s conftest$ac_exeext'
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; }; then
27791 libjava_cv_anon_version_script=yes
27792 else
27793 echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27795
27796 fi
27797 rm -f conftest.err conftest.$ac_objext \
27798 conftest$ac_exeext conftest.$ac_ext
27799 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27800
27801 fi
27802 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27803 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27804
27805
27806 if test "$libjava_cv_anon_version_script" = yes; then
27807 ANONVERSCRIPT_TRUE=
27808 ANONVERSCRIPT_FALSE='#'
27809 else
27810 ANONVERSCRIPT_TRUE='#'
27811 ANONVERSCRIPT_FALSE=
27812 fi
27813
27814
27815 # Check if linker supports static linking on a per library basis
27816 LD_START_STATIC_SPEC=
27817 LD_FINISH_STATIC_SPEC=
27818 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27819 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27820 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27821 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27822 fi
27823 fi
27824
27825
27826
27827 here=`${PWDCMD-pwd}`
27828
27829
27830 # We get this from the environment.
27831
27832
27833 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27834
27835
27836 if test ${multilib} = yes; then
27837 multilib_arg="--enable-multilib"
27838 else
27839 multilib_arg=
27840 fi
27841
27842 ac_config_files="$ac_config_files scripts/jar"
27843
27844 cat >confcache <<\_ACEOF
27845 # This file is a shell script that caches the results of configure
27846 # tests run on this system so they can be shared between configure
27847 # scripts and configure runs, see configure's option --config-cache.
27848 # It is not useful on other systems. If it contains results you don't
27849 # want to keep, you may remove or edit it.
27850 #
27851 # config.status only pays attention to the cache file if you give it
27852 # the --recheck option to rerun configure.
27853 #
27854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27856 # following values.
27857
27858 _ACEOF
27859
27860 # The following way of writing the cache mishandles newlines in values,
27861 # but we know of no workaround that is simple, portable, and efficient.
27862 # So, don't put newlines in cache variables' values.
27863 # Ultrix sh set writes to stderr and can't be redirected directly,
27864 # and sets the high bit in the cache file unless we assign to the vars.
27865 {
27866 (set) 2>&1 |
27867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27868 *ac_space=\ *)
27869 # `set' does not quote correctly, so add quotes (double-quote
27870 # substitution turns \\\\ into \\, and sed turns \\ into \).
27871 sed -n \
27872 "s/'/'\\\\''/g;
27873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27874 ;;
27875 *)
27876 # `set' quotes correctly as required by POSIX, so do not add quotes.
27877 sed -n \
27878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27879 ;;
27880 esac;
27881 } |
27882 sed '
27883 t clear
27884 : clear
27885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27886 t end
27887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27888 : end' >>confcache
27889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27890 if test -w $cache_file; then
27891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27892 cat confcache >$cache_file
27893 else
27894 echo "not updating unwritable cache $cache_file"
27895 fi
27896 fi
27897 rm -f confcache
27898
27899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27900 # Let make expand exec_prefix.
27901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27902
27903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27905 # trailing colons and then remove the whole line if VPATH becomes empty
27906 # (actually we leave an empty line to preserve line numbers).
27907 if test "x$srcdir" = x.; then
27908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27909 s/:*\$(srcdir):*/:/;
27910 s/:*\${srcdir}:*/:/;
27911 s/:*@srcdir@:*/:/;
27912 s/^\([^=]*=[ ]*\):*/\1/;
27913 s/:*$//;
27914 s/^[^=]*=[ ]*$//;
27915 }'
27916 fi
27917
27918 DEFS=-DHAVE_CONFIG_H
27919
27920 ac_libobjs=
27921 ac_ltlibobjs=
27922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27923 # 1. Remove the extension, and $U if already installed.
27924 ac_i=`echo "$ac_i" |
27925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27926 # 2. Add them.
27927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27929 done
27930 LIBOBJS=$ac_libobjs
27931
27932 LTLIBOBJS=$ac_ltlibobjs
27933
27934
27935 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27936 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27937 Usually this means the macro was only invoked conditionally." >&5
27938 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27939 Usually this means the macro was only invoked conditionally." >&2;}
27940 { (exit 1); exit 1; }; }
27941 fi
27942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27943 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27944 Usually this means the macro was only invoked conditionally." >&5
27945 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27946 Usually this means the macro was only invoked conditionally." >&2;}
27947 { (exit 1); exit 1; }; }
27948 fi
27949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27950 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27951 Usually this means the macro was only invoked conditionally." >&5
27952 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27953 Usually this means the macro was only invoked conditionally." >&2;}
27954 { (exit 1); exit 1; }; }
27955 fi
27956 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27957 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27958 Usually this means the macro was only invoked conditionally." >&5
27959 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27960 Usually this means the macro was only invoked conditionally." >&2;}
27961 { (exit 1); exit 1; }; }
27962 fi
27963 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27964 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27965 Usually this means the macro was only invoked conditionally." >&5
27966 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27967 Usually this means the macro was only invoked conditionally." >&2;}
27968 { (exit 1); exit 1; }; }
27969 fi
27970 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
27971 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
27972 Usually this means the macro was only invoked conditionally." >&5
27973 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
27974 Usually this means the macro was only invoked conditionally." >&2;}
27975 { (exit 1); exit 1; }; }
27976 fi
27977 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
27978 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
27979 Usually this means the macro was only invoked conditionally." >&5
27980 echo "$as_me: error: conditional \"X_AWT\" was never defined.
27981 Usually this means the macro was only invoked conditionally." >&2;}
27982 { (exit 1); exit 1; }; }
27983 fi
27984 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27985 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27986 Usually this means the macro was only invoked conditionally." >&5
27987 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27988 Usually this means the macro was only invoked conditionally." >&2;}
27989 { (exit 1); exit 1; }; }
27990 fi
27991 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27992 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27993 Usually this means the macro was only invoked conditionally." >&5
27994 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27995 Usually this means the macro was only invoked conditionally." >&2;}
27996 { (exit 1); exit 1; }; }
27997 fi
27998 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
27999 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28000 Usually this means the macro was only invoked conditionally." >&5
28001 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28002 Usually this means the macro was only invoked conditionally." >&2;}
28003 { (exit 1); exit 1; }; }
28004 fi
28005 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28006 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28007 Usually this means the macro was only invoked conditionally." >&5
28008 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28009 Usually this means the macro was only invoked conditionally." >&2;}
28010 { (exit 1); exit 1; }; }
28011 fi
28012 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28013 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28014 Usually this means the macro was only invoked conditionally." >&5
28015 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28016 Usually this means the macro was only invoked conditionally." >&2;}
28017 { (exit 1); exit 1; }; }
28018 fi
28019 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28020 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28021 Usually this means the macro was only invoked conditionally." >&5
28022 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28023 Usually this means the macro was only invoked conditionally." >&2;}
28024 { (exit 1); exit 1; }; }
28025 fi
28026 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28027 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28028 Usually this means the macro was only invoked conditionally." >&5
28029 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28030 Usually this means the macro was only invoked conditionally." >&2;}
28031 { (exit 1); exit 1; }; }
28032 fi
28033 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28034 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28035 Usually this means the macro was only invoked conditionally." >&5
28036 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28037 Usually this means the macro was only invoked conditionally." >&2;}
28038 { (exit 1); exit 1; }; }
28039 fi
28040 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28041 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28042 Usually this means the macro was only invoked conditionally." >&5
28043 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28044 Usually this means the macro was only invoked conditionally." >&2;}
28045 { (exit 1); exit 1; }; }
28046 fi
28047 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28048 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28049 Usually this means the macro was only invoked conditionally." >&5
28050 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28051 Usually this means the macro was only invoked conditionally." >&2;}
28052 { (exit 1); exit 1; }; }
28053 fi
28054 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28055 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28056 Usually this means the macro was only invoked conditionally." >&5
28057 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28058 Usually this means the macro was only invoked conditionally." >&2;}
28059 { (exit 1); exit 1; }; }
28060 fi
28061 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28062 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28063 Usually this means the macro was only invoked conditionally." >&5
28064 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28065 Usually this means the macro was only invoked conditionally." >&2;}
28066 { (exit 1); exit 1; }; }
28067 fi
28068 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28069 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28070 Usually this means the macro was only invoked conditionally." >&5
28071 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28072 Usually this means the macro was only invoked conditionally." >&2;}
28073 { (exit 1); exit 1; }; }
28074 fi
28075 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28076 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28077 Usually this means the macro was only invoked conditionally." >&5
28078 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28079 Usually this means the macro was only invoked conditionally." >&2;}
28080 { (exit 1); exit 1; }; }
28081 fi
28082 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28083 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28084 Usually this means the macro was only invoked conditionally." >&5
28085 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28086 Usually this means the macro was only invoked conditionally." >&2;}
28087 { (exit 1); exit 1; }; }
28088 fi
28089 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28090 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28091 Usually this means the macro was only invoked conditionally." >&5
28092 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28093 Usually this means the macro was only invoked conditionally." >&2;}
28094 { (exit 1); exit 1; }; }
28095 fi
28096 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28097 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28098 Usually this means the macro was only invoked conditionally." >&5
28099 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28100 Usually this means the macro was only invoked conditionally." >&2;}
28101 { (exit 1); exit 1; }; }
28102 fi
28103 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28104 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28105 Usually this means the macro was only invoked conditionally." >&5
28106 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28107 Usually this means the macro was only invoked conditionally." >&2;}
28108 { (exit 1); exit 1; }; }
28109 fi
28110 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28112 Usually this means the macro was only invoked conditionally." >&5
28113 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28114 Usually this means the macro was only invoked conditionally." >&2;}
28115 { (exit 1); exit 1; }; }
28116 fi
28117 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28118 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28119 Usually this means the macro was only invoked conditionally." >&5
28120 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28121 Usually this means the macro was only invoked conditionally." >&2;}
28122 { (exit 1); exit 1; }; }
28123 fi
28124 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28125 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28126 Usually this means the macro was only invoked conditionally." >&5
28127 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28128 Usually this means the macro was only invoked conditionally." >&2;}
28129 { (exit 1); exit 1; }; }
28130 fi
28131 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28132 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28133 Usually this means the macro was only invoked conditionally." >&5
28134 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28135 Usually this means the macro was only invoked conditionally." >&2;}
28136 { (exit 1); exit 1; }; }
28137 fi
28138 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28139 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28140 Usually this means the macro was only invoked conditionally." >&5
28141 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28142 Usually this means the macro was only invoked conditionally." >&2;}
28143 { (exit 1); exit 1; }; }
28144 fi
28145
28146 : ${CONFIG_STATUS=./config.status}
28147 ac_clean_files_save=$ac_clean_files
28148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28151 cat >$CONFIG_STATUS <<_ACEOF
28152 #! $SHELL
28153 # Generated by $as_me.
28154 # Run this file to recreate the current configuration.
28155 # Compiler output produced by configure, useful for debugging
28156 # configure, is in config.log if it exists.
28157
28158 debug=false
28159 ac_cs_recheck=false
28160 ac_cs_silent=false
28161 SHELL=\${CONFIG_SHELL-$SHELL}
28162 _ACEOF
28163
28164 cat >>$CONFIG_STATUS <<\_ACEOF
28165 ## --------------------- ##
28166 ## M4sh Initialization. ##
28167 ## --------------------- ##
28168
28169 # Be Bourne compatible
28170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28171 emulate sh
28172 NULLCMD=:
28173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28174 # is contrary to our usage. Disable this feature.
28175 alias -g '${1+"$@"}'='"$@"'
28176 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28177 set -o posix
28178 fi
28179 DUALCASE=1; export DUALCASE # for MKS sh
28180
28181 # Support unset when possible.
28182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28183 as_unset=unset
28184 else
28185 as_unset=false
28186 fi
28187
28188
28189 # Work around bugs in pre-3.0 UWIN ksh.
28190 $as_unset ENV MAIL MAILPATH
28191 PS1='$ '
28192 PS2='> '
28193 PS4='+ '
28194
28195 # NLS nuisances.
28196 for as_var in \
28197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28199 LC_TELEPHONE LC_TIME
28200 do
28201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28202 eval $as_var=C; export $as_var
28203 else
28204 $as_unset $as_var
28205 fi
28206 done
28207
28208 # Required to use basename.
28209 if expr a : '\(a\)' >/dev/null 2>&1; then
28210 as_expr=expr
28211 else
28212 as_expr=false
28213 fi
28214
28215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28216 as_basename=basename
28217 else
28218 as_basename=false
28219 fi
28220
28221
28222 # Name of the executable.
28223 as_me=`$as_basename "$0" ||
28224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28225 X"$0" : 'X\(//\)$' \| \
28226 X"$0" : 'X\(/\)$' \| \
28227 . : '\(.\)' 2>/dev/null ||
28228 echo X/"$0" |
28229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28230 /^X\/\(\/\/\)$/{ s//\1/; q; }
28231 /^X\/\(\/\).*/{ s//\1/; q; }
28232 s/.*/./; q'`
28233
28234
28235 # PATH needs CR, and LINENO needs CR and PATH.
28236 # Avoid depending upon Character Ranges.
28237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28240 as_cr_digits='0123456789'
28241 as_cr_alnum=$as_cr_Letters$as_cr_digits
28242
28243 # The user is always right.
28244 if test "${PATH_SEPARATOR+set}" != set; then
28245 echo "#! /bin/sh" >conf$$.sh
28246 echo "exit 0" >>conf$$.sh
28247 chmod +x conf$$.sh
28248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28249 PATH_SEPARATOR=';'
28250 else
28251 PATH_SEPARATOR=:
28252 fi
28253 rm -f conf$$.sh
28254 fi
28255
28256
28257 as_lineno_1=$LINENO
28258 as_lineno_2=$LINENO
28259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28260 test "x$as_lineno_1" != "x$as_lineno_2" &&
28261 test "x$as_lineno_3" = "x$as_lineno_2" || {
28262 # Find who we are. Look in the path if we contain no path at all
28263 # relative or not.
28264 case $0 in
28265 *[\\/]* ) as_myself=$0 ;;
28266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28267 for as_dir in $PATH
28268 do
28269 IFS=$as_save_IFS
28270 test -z "$as_dir" && as_dir=.
28271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28272 done
28273
28274 ;;
28275 esac
28276 # We did not find ourselves, most probably we were run as `sh COMMAND'
28277 # in which case we are not to be found in the path.
28278 if test "x$as_myself" = x; then
28279 as_myself=$0
28280 fi
28281 if test ! -f "$as_myself"; then
28282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28284 { (exit 1); exit 1; }; }
28285 fi
28286 case $CONFIG_SHELL in
28287 '')
28288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28290 do
28291 IFS=$as_save_IFS
28292 test -z "$as_dir" && as_dir=.
28293 for as_base in sh bash ksh sh5; do
28294 case $as_dir in
28295 /*)
28296 if ("$as_dir/$as_base" -c '
28297 as_lineno_1=$LINENO
28298 as_lineno_2=$LINENO
28299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28300 test "x$as_lineno_1" != "x$as_lineno_2" &&
28301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28304 CONFIG_SHELL=$as_dir/$as_base
28305 export CONFIG_SHELL
28306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28307 fi;;
28308 esac
28309 done
28310 done
28311 ;;
28312 esac
28313
28314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28315 # uniformly replaced by the line number. The first 'sed' inserts a
28316 # line-number line before each line; the second 'sed' does the real
28317 # work. The second script uses 'N' to pair each line-number line
28318 # with the numbered line, and appends trailing '-' during
28319 # substitution so that $LINENO is not a special case at line end.
28320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28322 sed '=' <$as_myself |
28323 sed '
28324 N
28325 s,$,-,
28326 : loop
28327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28328 t loop
28329 s,-$,,
28330 s,^['$as_cr_digits']*\n,,
28331 ' >$as_me.lineno &&
28332 chmod +x $as_me.lineno ||
28333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28335 { (exit 1); exit 1; }; }
28336
28337 # Don't try to exec as it changes $[0], causing all sort of problems
28338 # (the dirname of $[0] is not the place where we might find the
28339 # original and so on. Autoconf is especially sensible to this).
28340 . ./$as_me.lineno
28341 # Exit status is that of the last command.
28342 exit
28343 }
28344
28345
28346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28347 *c*,-n*) ECHO_N= ECHO_C='
28348 ' ECHO_T=' ' ;;
28349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28351 esac
28352
28353 if expr a : '\(a\)' >/dev/null 2>&1; then
28354 as_expr=expr
28355 else
28356 as_expr=false
28357 fi
28358
28359 rm -f conf$$ conf$$.exe conf$$.file
28360 echo >conf$$.file
28361 if ln -s conf$$.file conf$$ 2>/dev/null; then
28362 # We could just check for DJGPP; but this test a) works b) is more generic
28363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28364 if test -f conf$$.exe; then
28365 # Don't use ln at all; we don't have any links
28366 as_ln_s='cp -p'
28367 else
28368 as_ln_s='ln -s'
28369 fi
28370 elif ln conf$$.file conf$$ 2>/dev/null; then
28371 as_ln_s=ln
28372 else
28373 as_ln_s='cp -p'
28374 fi
28375 rm -f conf$$ conf$$.exe conf$$.file
28376
28377 if mkdir -p . 2>/dev/null; then
28378 as_mkdir_p=:
28379 else
28380 test -d ./-p && rmdir ./-p
28381 as_mkdir_p=false
28382 fi
28383
28384 as_executable_p="test -f"
28385
28386 # Sed expression to map a string onto a valid CPP name.
28387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28388
28389 # Sed expression to map a string onto a valid variable name.
28390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28391
28392
28393 # IFS
28394 # We need space, tab and new line, in precisely that order.
28395 as_nl='
28396 '
28397 IFS=" $as_nl"
28398
28399 # CDPATH.
28400 $as_unset CDPATH
28401
28402 exec 6>&1
28403
28404 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28405 # report actual input values of CONFIG_FILES etc. instead of their
28406 # values after options handling. Logging --version etc. is OK.
28407 exec 5>>config.log
28408 {
28409 echo
28410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28411 ## Running $as_me. ##
28412 _ASBOX
28413 } >&5
28414 cat >&5 <<_CSEOF
28415
28416 This file was extended by libjava $as_me version-unused, which was
28417 generated by GNU Autoconf 2.59. Invocation command line was
28418
28419 CONFIG_FILES = $CONFIG_FILES
28420 CONFIG_HEADERS = $CONFIG_HEADERS
28421 CONFIG_LINKS = $CONFIG_LINKS
28422 CONFIG_COMMANDS = $CONFIG_COMMANDS
28423 $ $0 $@
28424
28425 _CSEOF
28426 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28427 echo >&5
28428 _ACEOF
28429
28430 # Files that config.status was made for.
28431 if test -n "$ac_config_files"; then
28432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28433 fi
28434
28435 if test -n "$ac_config_headers"; then
28436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28437 fi
28438
28439 if test -n "$ac_config_links"; then
28440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28441 fi
28442
28443 if test -n "$ac_config_commands"; then
28444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28445 fi
28446
28447 cat >>$CONFIG_STATUS <<\_ACEOF
28448
28449 ac_cs_usage="\
28450 \`$as_me' instantiates files from templates according to the
28451 current configuration.
28452
28453 Usage: $0 [OPTIONS] [FILE]...
28454
28455 -h, --help print this help, then exit
28456 -V, --version print version number, then exit
28457 -q, --quiet do not print progress messages
28458 -d, --debug don't remove temporary files
28459 --recheck update $as_me by reconfiguring in the same conditions
28460 --file=FILE[:TEMPLATE]
28461 instantiate the configuration file FILE
28462 --header=FILE[:TEMPLATE]
28463 instantiate the configuration header FILE
28464
28465 Configuration files:
28466 $config_files
28467
28468 Configuration headers:
28469 $config_headers
28470
28471 Configuration links:
28472 $config_links
28473
28474 Configuration commands:
28475 $config_commands
28476
28477 Report bugs to <bug-autoconf@gnu.org>."
28478 _ACEOF
28479
28480 cat >>$CONFIG_STATUS <<_ACEOF
28481 ac_cs_version="\\
28482 libjava config.status version-unused
28483 configured by $0, generated by GNU Autoconf 2.59,
28484 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28485
28486 Copyright (C) 2003 Free Software Foundation, Inc.
28487 This config.status script is free software; the Free Software Foundation
28488 gives unlimited permission to copy, distribute and modify it."
28489 srcdir=$srcdir
28490 INSTALL="$INSTALL"
28491 _ACEOF
28492
28493 cat >>$CONFIG_STATUS <<\_ACEOF
28494 # If no file are specified by the user, then we need to provide default
28495 # value. By we need to know if files were specified by the user.
28496 ac_need_defaults=:
28497 while test $# != 0
28498 do
28499 case $1 in
28500 --*=*)
28501 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28502 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28503 ac_shift=:
28504 ;;
28505 -*)
28506 ac_option=$1
28507 ac_optarg=$2
28508 ac_shift=shift
28509 ;;
28510 *) # This is not an option, so the user has probably given explicit
28511 # arguments.
28512 ac_option=$1
28513 ac_need_defaults=false;;
28514 esac
28515
28516 case $ac_option in
28517 # Handling of the options.
28518 _ACEOF
28519 cat >>$CONFIG_STATUS <<\_ACEOF
28520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28521 ac_cs_recheck=: ;;
28522 --version | --vers* | -V )
28523 echo "$ac_cs_version"; exit 0 ;;
28524 --he | --h)
28525 # Conflict between --help and --header
28526 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28527 Try \`$0 --help' for more information." >&5
28528 echo "$as_me: error: ambiguous option: $1
28529 Try \`$0 --help' for more information." >&2;}
28530 { (exit 1); exit 1; }; };;
28531 --help | --hel | -h )
28532 echo "$ac_cs_usage"; exit 0 ;;
28533 --debug | --d* | -d )
28534 debug=: ;;
28535 --file | --fil | --fi | --f )
28536 $ac_shift
28537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28538 ac_need_defaults=false;;
28539 --header | --heade | --head | --hea )
28540 $ac_shift
28541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28542 ac_need_defaults=false;;
28543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28545 ac_cs_silent=: ;;
28546
28547 # This is an error.
28548 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28549 Try \`$0 --help' for more information." >&5
28550 echo "$as_me: error: unrecognized option: $1
28551 Try \`$0 --help' for more information." >&2;}
28552 { (exit 1); exit 1; }; } ;;
28553
28554 *) ac_config_targets="$ac_config_targets $1" ;;
28555
28556 esac
28557 shift
28558 done
28559
28560 ac_configure_extra_args=
28561
28562 if $ac_cs_silent; then
28563 exec 6>/dev/null
28564 ac_configure_extra_args="$ac_configure_extra_args --silent"
28565 fi
28566
28567 _ACEOF
28568 cat >>$CONFIG_STATUS <<_ACEOF
28569 if \$ac_cs_recheck; then
28570 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28571 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28572 fi
28573
28574 _ACEOF
28575
28576 cat >>$CONFIG_STATUS <<_ACEOF
28577 #
28578 # INIT-COMMANDS section.
28579 #
28580
28581
28582 srcdir="$srcdir"
28583 host="$host"
28584 target="$target"
28585 with_multisubdir="$with_multisubdir"
28586 with_multisrctop="$with_multisrctop"
28587 with_target_subdir="$with_target_subdir"
28588 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28589 multi_basedir="$multi_basedir"
28590 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28591 CC="$CC"
28592 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28593
28594
28595 # The HP-UX ksh and POSIX shell print the target directory to stdout
28596 # if CDPATH is set.
28597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28598
28599 sed_quote_subst='$sed_quote_subst'
28600 double_quote_subst='$double_quote_subst'
28601 delay_variable_subst='$delay_variable_subst'
28602 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28603 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28604 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28605 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28606 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28607 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28608 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28609 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28610 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28611 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28612 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28613 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28614 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28615 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28616 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28617 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28618 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28619 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28620 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28621 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28622 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28623 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28624 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28625 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28626 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28627 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28628 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28629 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28630 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28631 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28632 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28633 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28634 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28635 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28636 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28637 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28638 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28639 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28640 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28641 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28642 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28643 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28645 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"`'
28646 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28647 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28648 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28649 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28650 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28651 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28652 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28653 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28654 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28655 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28656 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28657 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28658 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28659 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28660 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28661 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28662 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28663 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28664 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28665 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28666 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28667 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28668 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28669 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28670 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28671 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28672 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28673 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28674 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28675 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28676 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28677 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28678 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28679 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28680 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28681 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28682 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28683 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28684 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28685 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28686 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28687 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28688 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28689 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28690 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28691 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28692 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28693 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28694 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28695 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28696 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28697 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28698 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28699 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28700 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28701 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28702 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28703 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28704 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28705 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28706 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28707 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28708 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28709 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28710 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28711 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28712 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28713 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28714 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28715 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28716 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28717 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28718 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28719 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28720 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28721 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28722 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28723 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28724 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28725 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28726 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28727 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28728 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28729 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28730 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28731 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28732 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28733 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28734 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28735 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28736 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28737 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28738 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28739 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28740 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28741 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28742 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28743 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28744 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28745 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28746 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28747 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28748 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28749 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28750 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28751 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28752 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28753 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28754 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28755 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28756 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28757 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28758 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28759 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28760 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28761 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28762 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28763 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28764 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28765 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28766 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28767 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28768 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28769 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28770 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28771 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28772 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28773 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28774 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28775 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28776 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28777 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28778 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28779 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28780 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28781 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28782 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28783 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28784 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28785 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28786 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28787 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28788 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28789 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28790 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28791 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28792 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28793 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28794 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28795 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28796 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28797 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28798 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28799 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28800 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28801 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28802 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28803 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28804 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28805 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28806 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28807 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28808 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28809 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28810
28811 LTCC='$LTCC'
28812 LTCFLAGS='$LTCFLAGS'
28813 compiler='$compiler_DEFAULT'
28814
28815 # Quote evaled strings.
28816 for var in SED \
28817 GREP \
28818 EGREP \
28819 FGREP \
28820 LD \
28821 NM \
28822 LN_S \
28823 lt_SP2NL \
28824 lt_NL2SP \
28825 reload_flag \
28826 deplibs_check_method \
28827 file_magic_cmd \
28828 AR \
28829 AR_FLAGS \
28830 STRIP \
28831 RANLIB \
28832 CC \
28833 CFLAGS \
28834 compiler \
28835 lt_cv_sys_global_symbol_pipe \
28836 lt_cv_sys_global_symbol_to_cdecl \
28837 lt_cv_sys_global_symbol_to_c_name_address \
28838 SHELL \
28839 ECHO \
28840 lt_prog_compiler_no_builtin_flag \
28841 lt_prog_compiler_wl \
28842 lt_prog_compiler_pic \
28843 lt_prog_compiler_static \
28844 lt_cv_prog_compiler_c_o \
28845 need_locks \
28846 shrext_cmds \
28847 export_dynamic_flag_spec \
28848 whole_archive_flag_spec \
28849 compiler_needs_object \
28850 with_gnu_ld \
28851 allow_undefined_flag \
28852 no_undefined_flag \
28853 hardcode_libdir_flag_spec \
28854 hardcode_libdir_flag_spec_ld \
28855 hardcode_libdir_separator \
28856 fix_srcfile_path \
28857 exclude_expsyms \
28858 include_expsyms \
28859 file_list_spec \
28860 variables_saved_for_relink \
28861 libname_spec \
28862 library_names_spec \
28863 soname_spec \
28864 finish_eval \
28865 old_striplib \
28866 striplib \
28867 predep_objects \
28868 postdep_objects \
28869 predeps \
28870 postdeps \
28871 compiler_lib_search_path \
28872 LD_CXX \
28873 LD_GCJ \
28874 compiler_CXX \
28875 compiler_GCJ \
28876 lt_prog_compiler_no_builtin_flag_CXX \
28877 lt_prog_compiler_no_builtin_flag_GCJ \
28878 lt_prog_compiler_wl_CXX \
28879 lt_prog_compiler_wl_GCJ \
28880 lt_prog_compiler_pic_CXX \
28881 lt_prog_compiler_pic_GCJ \
28882 lt_prog_compiler_static_CXX \
28883 lt_prog_compiler_static_GCJ \
28884 lt_cv_prog_compiler_c_o_CXX \
28885 lt_cv_prog_compiler_c_o_GCJ \
28886 export_dynamic_flag_spec_CXX \
28887 export_dynamic_flag_spec_GCJ \
28888 whole_archive_flag_spec_CXX \
28889 whole_archive_flag_spec_GCJ \
28890 compiler_needs_object_CXX \
28891 compiler_needs_object_GCJ \
28892 with_gnu_ld_CXX \
28893 with_gnu_ld_GCJ \
28894 allow_undefined_flag_CXX \
28895 allow_undefined_flag_GCJ \
28896 no_undefined_flag_CXX \
28897 no_undefined_flag_GCJ \
28898 hardcode_libdir_flag_spec_CXX \
28899 hardcode_libdir_flag_spec_GCJ \
28900 hardcode_libdir_flag_spec_ld_CXX \
28901 hardcode_libdir_flag_spec_ld_GCJ \
28902 hardcode_libdir_separator_CXX \
28903 hardcode_libdir_separator_GCJ \
28904 fix_srcfile_path_CXX \
28905 fix_srcfile_path_GCJ \
28906 exclude_expsyms_CXX \
28907 exclude_expsyms_GCJ \
28908 include_expsyms_CXX \
28909 include_expsyms_GCJ \
28910 file_list_spec_CXX \
28911 file_list_spec_GCJ \
28912 predep_objects_CXX \
28913 predep_objects_GCJ \
28914 postdep_objects_CXX \
28915 postdep_objects_GCJ \
28916 predeps_CXX \
28917 predeps_GCJ \
28918 postdeps_CXX \
28919 postdeps_GCJ \
28920 compiler_lib_search_path_CXX \
28921 compiler_lib_search_path_GCJ; do
28922 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28923 *[\\\\\\\`\\"\\\$]*)
28924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28925 ;;
28926 *)
28927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28928 ;;
28929 esac
28930 done
28931
28932 # Double-quote double-evaled strings.
28933 for var in reload_cmds \
28934 old_postinstall_cmds \
28935 old_postuninstall_cmds \
28936 old_archive_cmds \
28937 extract_expsyms_cmds \
28938 old_archive_from_new_cmds \
28939 old_archive_from_expsyms_cmds \
28940 archive_cmds \
28941 archive_expsym_cmds \
28942 module_cmds \
28943 module_expsym_cmds \
28944 export_symbols_cmds \
28945 prelink_cmds \
28946 postinstall_cmds \
28947 postuninstall_cmds \
28948 finish_cmds \
28949 sys_lib_search_path_spec \
28950 sys_lib_dlsearch_path_spec \
28951 old_archive_cmds_CXX \
28952 old_archive_cmds_GCJ \
28953 old_archive_from_new_cmds_CXX \
28954 old_archive_from_new_cmds_GCJ \
28955 old_archive_from_expsyms_cmds_CXX \
28956 old_archive_from_expsyms_cmds_GCJ \
28957 archive_cmds_CXX \
28958 archive_cmds_GCJ \
28959 archive_expsym_cmds_CXX \
28960 archive_expsym_cmds_GCJ \
28961 module_cmds_CXX \
28962 module_cmds_GCJ \
28963 module_expsym_cmds_CXX \
28964 module_expsym_cmds_GCJ \
28965 export_symbols_cmds_CXX \
28966 export_symbols_cmds_GCJ \
28967 prelink_cmds_CXX \
28968 prelink_cmds_GCJ; do
28969 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28970 *[\\\\\\\`\\"\\\$]*)
28971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28972 ;;
28973 *)
28974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28975 ;;
28976 esac
28977 done
28978
28979 # Fix-up fallback echo if it was mangled by the above quoting rules.
28980 case \$lt_ECHO in
28981 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28982 ;;
28983 esac
28984
28985 ac_aux_dir='$ac_aux_dir'
28986 xsi_shell='$xsi_shell'
28987 lt_shell_append='$lt_shell_append'
28988
28989 # See if we are running on zsh, and set the options which allow our
28990 # commands through without removal of \ escapes INIT.
28991 if test -n "\${ZSH_VERSION+set}" ; then
28992 setopt NO_GLOB_SUBST
28993 fi
28994
28995
28996 PACKAGE='$PACKAGE'
28997 VERSION='$VERSION'
28998 TIMESTAMP='$TIMESTAMP'
28999 RM='$RM'
29000 ofile='$ofile'
29001
29002
29003
29004
29005
29006
29007
29008
29009 _ACEOF
29010
29011
29012
29013 cat >>$CONFIG_STATUS <<\_ACEOF
29014 for ac_config_target in $ac_config_targets
29015 do
29016 case "$ac_config_target" in
29017 # Handling of arguments.
29018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29019 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29020 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29021 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29022 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29023 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29024 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29025 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29026 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29027 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29028 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29029 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29030 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29031 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29032 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29033 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29034 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29035 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29036 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29037 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29038 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29039 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29040 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29041 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29042 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29043 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29044 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29045 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29046 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29047 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29050 { (exit 1); exit 1; }; };;
29051 esac
29052 done
29053
29054 # If the user did not use the arguments to specify the items to instantiate,
29055 # then the envvar interface is used. Set only those that are not.
29056 # We use the long form for the default assignment because of an extremely
29057 # bizarre bug on SunOS 4.1.3.
29058 if $ac_need_defaults; then
29059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29061 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29063 fi
29064
29065 # Have a temporary directory for convenience. Make it in the build tree
29066 # simply because there is no reason to put it here, and in addition,
29067 # creating and moving files from /tmp can sometimes cause problems.
29068 # Create a temporary directory, and hook for its removal unless debugging.
29069 $debug ||
29070 {
29071 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29072 trap '{ (exit 1); exit 1; }' 1 2 13 15
29073 }
29074
29075 # Create a (secure) tmp directory for tmp files.
29076
29077 {
29078 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29079 test -n "$tmp" && test -d "$tmp"
29080 } ||
29081 {
29082 tmp=./confstat$$-$RANDOM
29083 (umask 077 && mkdir $tmp)
29084 } ||
29085 {
29086 echo "$me: cannot create a temporary directory in ." >&2
29087 { (exit 1); exit 1; }
29088 }
29089
29090 _ACEOF
29091
29092 cat >>$CONFIG_STATUS <<_ACEOF
29093
29094 #
29095 # CONFIG_FILES section.
29096 #
29097
29098 # No need to generate the scripts if there are no CONFIG_FILES.
29099 # This happens for instance when ./config.status config.h
29100 if test -n "\$CONFIG_FILES"; then
29101 # Protect against being on the right side of a sed subst in config.status.
29102 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29103 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29104 s,@SHELL@,$SHELL,;t t
29105 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29106 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29107 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29108 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29109 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29110 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29111 s,@exec_prefix@,$exec_prefix,;t t
29112 s,@prefix@,$prefix,;t t
29113 s,@program_transform_name@,$program_transform_name,;t t
29114 s,@bindir@,$bindir,;t t
29115 s,@sbindir@,$sbindir,;t t
29116 s,@libexecdir@,$libexecdir,;t t
29117 s,@datadir@,$datadir,;t t
29118 s,@sysconfdir@,$sysconfdir,;t t
29119 s,@sharedstatedir@,$sharedstatedir,;t t
29120 s,@localstatedir@,$localstatedir,;t t
29121 s,@libdir@,$libdir,;t t
29122 s,@includedir@,$includedir,;t t
29123 s,@oldincludedir@,$oldincludedir,;t t
29124 s,@infodir@,$infodir,;t t
29125 s,@mandir@,$mandir,;t t
29126 s,@build_alias@,$build_alias,;t t
29127 s,@host_alias@,$host_alias,;t t
29128 s,@target_alias@,$target_alias,;t t
29129 s,@DEFS@,$DEFS,;t t
29130 s,@ECHO_C@,$ECHO_C,;t t
29131 s,@ECHO_N@,$ECHO_N,;t t
29132 s,@ECHO_T@,$ECHO_T,;t t
29133 s,@LIBS@,$LIBS,;t t
29134 s,@build@,$build,;t t
29135 s,@build_cpu@,$build_cpu,;t t
29136 s,@build_vendor@,$build_vendor,;t t
29137 s,@build_os@,$build_os,;t t
29138 s,@build_libsubdir@,$build_libsubdir,;t t
29139 s,@build_subdir@,$build_subdir,;t t
29140 s,@host_subdir@,$host_subdir,;t t
29141 s,@target_subdir@,$target_subdir,;t t
29142 s,@multi_basedir@,$multi_basedir,;t t
29143 s,@host@,$host,;t t
29144 s,@host_cpu@,$host_cpu,;t t
29145 s,@host_vendor@,$host_vendor,;t t
29146 s,@host_os@,$host_os,;t t
29147 s,@target@,$target,;t t
29148 s,@target_cpu@,$target_cpu,;t t
29149 s,@target_vendor@,$target_vendor,;t t
29150 s,@target_os@,$target_os,;t t
29151 s,@target_noncanonical@,$target_noncanonical,;t t
29152 s,@LN_S@,$LN_S,;t t
29153 s,@mkinstalldirs@,$mkinstalldirs,;t t
29154 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29155 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29156 s,@CC@,$CC,;t t
29157 s,@ac_ct_CC@,$ac_ct_CC,;t t
29158 s,@EXEEXT@,$EXEEXT,;t t
29159 s,@OBJEXT@,$OBJEXT,;t t
29160 s,@CXX@,$CXX,;t t
29161 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29162 s,@CFLAGS@,$CFLAGS,;t t
29163 s,@CXXFLAGS@,$CXXFLAGS,;t t
29164 s,@LDFLAGS@,$LDFLAGS,;t t
29165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29168 s,@CYGPATH_W@,$CYGPATH_W,;t t
29169 s,@PACKAGE@,$PACKAGE,;t t
29170 s,@VERSION@,$VERSION,;t t
29171 s,@ACLOCAL@,$ACLOCAL,;t t
29172 s,@AUTOCONF@,$AUTOCONF,;t t
29173 s,@AUTOMAKE@,$AUTOMAKE,;t t
29174 s,@AUTOHEADER@,$AUTOHEADER,;t t
29175 s,@MAKEINFO@,$MAKEINFO,;t t
29176 s,@install_sh@,$install_sh,;t t
29177 s,@STRIP@,$STRIP,;t t
29178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29180 s,@mkdir_p@,$mkdir_p,;t t
29181 s,@AWK@,$AWK,;t t
29182 s,@SET_MAKE@,$SET_MAKE,;t t
29183 s,@am__leading_dot@,$am__leading_dot,;t t
29184 s,@AMTAR@,$AMTAR,;t t
29185 s,@am__tar@,$am__tar,;t t
29186 s,@am__untar@,$am__untar,;t t
29187 s,@DEPDIR@,$DEPDIR,;t t
29188 s,@am__include@,$am__include,;t t
29189 s,@am__quote@,$am__quote,;t t
29190 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29191 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29192 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29193 s,@CCDEPMODE@,$CCDEPMODE,;t t
29194 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29195 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29196 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29197 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29198 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29199 s,@AS@,$AS,;t t
29200 s,@ac_ct_AS@,$ac_ct_AS,;t t
29201 s,@LD@,$LD,;t t
29202 s,@ac_ct_LD@,$ac_ct_LD,;t t
29203 s,@AR@,$AR,;t t
29204 s,@ac_ct_AR@,$ac_ct_AR,;t t
29205 s,@RANLIB@,$RANLIB,;t t
29206 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29207 s,@JAR@,$JAR,;t t
29208 s,@ZIP@,$ZIP,;t t
29209 s,@UNZIP@,$UNZIP,;t t
29210 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29211 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29212 s,@MAINT@,$MAINT,;t t
29213 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29214 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29215 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29216 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29217 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29218 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29219 s,@TOOLKIT@,$TOOLKIT,;t t
29220 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29221 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29222 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29223 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29224 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29225 s,@GCJH@,$GCJH,;t t
29226 s,@host_exeext@,$host_exeext,;t t
29227 s,@INCLTDL@,$INCLTDL,;t t
29228 s,@LIBLTDL@,$LIBLTDL,;t t
29229 s,@DIRLTDL@,$DIRLTDL,;t t
29230 s,@LIBTOOL@,$LIBTOOL,;t t
29231 s,@SED@,$SED,;t t
29232 s,@EGREP@,$EGREP,;t t
29233 s,@FGREP@,$FGREP,;t t
29234 s,@GREP@,$GREP,;t t
29235 s,@DUMPBIN@,$DUMPBIN,;t t
29236 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29237 s,@NM@,$NM,;t t
29238 s,@lt_ECHO@,$lt_ECHO,;t t
29239 s,@CPP@,$CPP,;t t
29240 s,@CPPFLAGS@,$CPPFLAGS,;t t
29241 s,@CXXCPP@,$CXXCPP,;t t
29242 s,@GCJ@,$GCJ,;t t
29243 s,@GCJFLAGS@,$GCJFLAGS,;t t
29244 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29245 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29246 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29247 s,@subdirs@,$subdirs,;t t
29248 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29249 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29250 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29251 s,@ECJ_JAR@,$ECJ_JAR,;t t
29252 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29253 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29254 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29255 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29256 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29257 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29258 s,@JAVA_HOME@,$JAVA_HOME,;t t
29259 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29260 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29261 s,@INTERPRETER@,$INTERPRETER,;t t
29262 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29263 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29264 s,@LIBFFI@,$LIBFFI,;t t
29265 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29266 s,@PLATFORM@,$PLATFORM,;t t
29267 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29268 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29269 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29270 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29271 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29272 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29273 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29274 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29275 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29276 s,@X_CFLAGS@,$X_CFLAGS,;t t
29277 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29278 s,@X_LIBS@,$X_LIBS,;t t
29279 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29280 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29281 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29282 s,@extra_ldflags@,$extra_ldflags,;t t
29283 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29284 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29285 s,@GCLIBS@,$GCLIBS,;t t
29286 s,@GCINCS@,$GCINCS,;t t
29287 s,@GCDEPS@,$GCDEPS,;t t
29288 s,@GCSPEC@,$GCSPEC,;t t
29289 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29290 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29291 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29292 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29293 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29294 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29295 s,@THREADLIBS@,$THREADLIBS,;t t
29296 s,@THREADINCS@,$THREADINCS,;t t
29297 s,@THREADDEPS@,$THREADDEPS,;t t
29298 s,@THREADSPEC@,$THREADSPEC,;t t
29299 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29300 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29301 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29302 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29303 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29304 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29305 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29306 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29307 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29308 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29309 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29310 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29311 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29312 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29313 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29314 s,@LIBICONV@,$LIBICONV,;t t
29315 s,@LTLIBICONV@,$LTLIBICONV,;t t
29316 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29317 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29318 s,@GTK_LIBS@,$GTK_LIBS,;t t
29319 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29320 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29321 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29322 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29323 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29324 s,@ZLIBS@,$ZLIBS,;t t
29325 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29326 s,@ZINCS@,$ZINCS,;t t
29327 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29328 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29329 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29330 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29331 s,@IEEESPEC@,$IEEESPEC,;t t
29332 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29333 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29334 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29335 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29336 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29337 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29338 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29339 s,@toolexecdir@,$toolexecdir,;t t
29340 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29341 s,@toolexeclibdir@,$toolexeclibdir,;t t
29342 s,@GCJVERSION@,$GCJVERSION,;t t
29343 s,@dbexecdir@,$dbexecdir,;t t
29344 s,@gxx_include_dir@,$gxx_include_dir,;t t
29345 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29346 s,@PERL@,$PERL,;t t
29347 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29348 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29349 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29350 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29351 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29352 s,@here@,$here,;t t
29353 s,@LIBOBJS@,$LIBOBJS,;t t
29354 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29355 CEOF
29356
29357 _ACEOF
29358
29359 cat >>$CONFIG_STATUS <<\_ACEOF
29360 # Split the substitutions into bite-sized pieces for seds with
29361 # small command number limits, like on Digital OSF/1 and HP-UX.
29362 ac_max_sed_lines=48
29363 ac_sed_frag=1 # Number of current file.
29364 ac_beg=1 # First line for current file.
29365 ac_end=$ac_max_sed_lines # Line after last line for current file.
29366 ac_more_lines=:
29367 ac_sed_cmds=
29368 while $ac_more_lines; do
29369 if test $ac_beg -gt 1; then
29370 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29371 else
29372 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29373 fi
29374 if test ! -s $tmp/subs.frag; then
29375 ac_more_lines=false
29376 else
29377 # The purpose of the label and of the branching condition is to
29378 # speed up the sed processing (if there are no `@' at all, there
29379 # is no need to browse any of the substitutions).
29380 # These are the two extra sed commands mentioned above.
29381 (echo ':t
29382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29383 if test -z "$ac_sed_cmds"; then
29384 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29385 else
29386 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29387 fi
29388 ac_sed_frag=`expr $ac_sed_frag + 1`
29389 ac_beg=$ac_end
29390 ac_end=`expr $ac_end + $ac_max_sed_lines`
29391 fi
29392 done
29393 if test -z "$ac_sed_cmds"; then
29394 ac_sed_cmds=cat
29395 fi
29396 fi # test -n "$CONFIG_FILES"
29397
29398 _ACEOF
29399 cat >>$CONFIG_STATUS <<\_ACEOF
29400 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29402 case $ac_file in
29403 - | *:- | *:-:* ) # input from stdin
29404 cat >$tmp/stdin
29405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29409 * ) ac_file_in=$ac_file.in ;;
29410 esac
29411
29412 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29415 X"$ac_file" : 'X\(//\)[^/]' \| \
29416 X"$ac_file" : 'X\(//\)$' \| \
29417 X"$ac_file" : 'X\(/\)' \| \
29418 . : '\(.\)' 2>/dev/null ||
29419 echo X"$ac_file" |
29420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29422 /^X\(\/\/\)$/{ s//\1/; q; }
29423 /^X\(\/\).*/{ s//\1/; q; }
29424 s/.*/./; q'`
29425 { if $as_mkdir_p; then
29426 mkdir -p "$ac_dir"
29427 else
29428 as_dir="$ac_dir"
29429 as_dirs=
29430 while test ! -d "$as_dir"; do
29431 as_dirs="$as_dir $as_dirs"
29432 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29434 X"$as_dir" : 'X\(//\)[^/]' \| \
29435 X"$as_dir" : 'X\(//\)$' \| \
29436 X"$as_dir" : 'X\(/\)' \| \
29437 . : '\(.\)' 2>/dev/null ||
29438 echo X"$as_dir" |
29439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29441 /^X\(\/\/\)$/{ s//\1/; q; }
29442 /^X\(\/\).*/{ s//\1/; q; }
29443 s/.*/./; q'`
29444 done
29445 test ! -n "$as_dirs" || mkdir $as_dirs
29446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29448 { (exit 1); exit 1; }; }; }
29449
29450 ac_builddir=.
29451
29452 if test "$ac_dir" != .; then
29453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29454 # A "../" for each directory in $ac_dir_suffix.
29455 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29456 else
29457 ac_dir_suffix= ac_top_builddir=
29458 fi
29459
29460 case $srcdir in
29461 .) # No --srcdir option. We are building in place.
29462 ac_srcdir=.
29463 if test -z "$ac_top_builddir"; then
29464 ac_top_srcdir=.
29465 else
29466 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29467 fi ;;
29468 [\\/]* | ?:[\\/]* ) # Absolute path.
29469 ac_srcdir=$srcdir$ac_dir_suffix;
29470 ac_top_srcdir=$srcdir ;;
29471 *) # Relative path.
29472 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29473 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29474 esac
29475
29476 # Do not use `cd foo && pwd` to compute absolute paths, because
29477 # the directories may not exist.
29478 case `pwd` in
29479 .) ac_abs_builddir="$ac_dir";;
29480 *)
29481 case "$ac_dir" in
29482 .) ac_abs_builddir=`pwd`;;
29483 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29484 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29485 esac;;
29486 esac
29487 case $ac_abs_builddir in
29488 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29489 *)
29490 case ${ac_top_builddir}. in
29491 .) ac_abs_top_builddir=$ac_abs_builddir;;
29492 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29493 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29494 esac;;
29495 esac
29496 case $ac_abs_builddir in
29497 .) ac_abs_srcdir=$ac_srcdir;;
29498 *)
29499 case $ac_srcdir in
29500 .) ac_abs_srcdir=$ac_abs_builddir;;
29501 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29502 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29503 esac;;
29504 esac
29505 case $ac_abs_builddir in
29506 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29507 *)
29508 case $ac_top_srcdir in
29509 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29510 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29511 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29512 esac;;
29513 esac
29514
29515
29516 case $INSTALL in
29517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29518 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29519 esac
29520
29521 if test x"$ac_file" != x-; then
29522 { echo "$as_me:$LINENO: creating $ac_file" >&5
29523 echo "$as_me: creating $ac_file" >&6;}
29524 rm -f "$ac_file"
29525 fi
29526 # Let's still pretend it is `configure' which instantiates (i.e., don't
29527 # use $as_me), people would be surprised to read:
29528 # /* config.h. Generated by config.status. */
29529 if test x"$ac_file" = x-; then
29530 configure_input=
29531 else
29532 configure_input="$ac_file. "
29533 fi
29534 configure_input=$configure_input"Generated from `echo $ac_file_in |
29535 sed 's,.*/,,'` by configure."
29536
29537 # First look for the input files in the build tree, otherwise in the
29538 # src tree.
29539 ac_file_inputs=`IFS=:
29540 for f in $ac_file_in; do
29541 case $f in
29542 -) echo $tmp/stdin ;;
29543 [\\/$]*)
29544 # Absolute (can't be DOS-style, as IFS=:)
29545 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29546 echo "$as_me: error: cannot find input file: $f" >&2;}
29547 { (exit 1); exit 1; }; }
29548 echo "$f";;
29549 *) # Relative
29550 if test -f "$f"; then
29551 # Build tree
29552 echo "$f"
29553 elif test -f "$srcdir/$f"; then
29554 # Source tree
29555 echo "$srcdir/$f"
29556 else
29557 # /dev/null tree
29558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29559 echo "$as_me: error: cannot find input file: $f" >&2;}
29560 { (exit 1); exit 1; }; }
29561 fi;;
29562 esac
29563 done` || { (exit 1); exit 1; }
29564 _ACEOF
29565 cat >>$CONFIG_STATUS <<_ACEOF
29566 sed "$ac_vpsub
29567 $extrasub
29568 _ACEOF
29569 cat >>$CONFIG_STATUS <<\_ACEOF
29570 :t
29571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29572 s,@configure_input@,$configure_input,;t t
29573 s,@srcdir@,$ac_srcdir,;t t
29574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29575 s,@top_srcdir@,$ac_top_srcdir,;t t
29576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29577 s,@builddir@,$ac_builddir,;t t
29578 s,@abs_builddir@,$ac_abs_builddir,;t t
29579 s,@top_builddir@,$ac_top_builddir,;t t
29580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29581 s,@INSTALL@,$ac_INSTALL,;t t
29582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29583 rm -f $tmp/stdin
29584 if test x"$ac_file" != x-; then
29585 mv $tmp/out $ac_file
29586 else
29587 cat $tmp/out
29588 rm -f $tmp/out
29589 fi
29590
29591 # Run the commands associated with the file.
29592 case $ac_file in
29593 scripts/jar ) chmod +x scripts/jar ;;
29594 esac
29595 done
29596 _ACEOF
29597 cat >>$CONFIG_STATUS <<\_ACEOF
29598
29599 #
29600 # CONFIG_HEADER section.
29601 #
29602
29603 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29604 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29605 #
29606 # ac_d sets the value in "#define NAME VALUE" lines.
29607 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29608 ac_dB='[ ].*$,\1#\2'
29609 ac_dC=' '
29610 ac_dD=',;t'
29611 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29612 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29613 ac_uB='$,\1#\2define\3'
29614 ac_uC=' '
29615 ac_uD=',;t'
29616
29617 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29618 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29619 case $ac_file in
29620 - | *:- | *:-:* ) # input from stdin
29621 cat >$tmp/stdin
29622 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29624 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29626 * ) ac_file_in=$ac_file.in ;;
29627 esac
29628
29629 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29630 echo "$as_me: creating $ac_file" >&6;}
29631
29632 # First look for the input files in the build tree, otherwise in the
29633 # src tree.
29634 ac_file_inputs=`IFS=:
29635 for f in $ac_file_in; do
29636 case $f in
29637 -) echo $tmp/stdin ;;
29638 [\\/$]*)
29639 # Absolute (can't be DOS-style, as IFS=:)
29640 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29641 echo "$as_me: error: cannot find input file: $f" >&2;}
29642 { (exit 1); exit 1; }; }
29643 # Do quote $f, to prevent DOS paths from being IFS'd.
29644 echo "$f";;
29645 *) # Relative
29646 if test -f "$f"; then
29647 # Build tree
29648 echo "$f"
29649 elif test -f "$srcdir/$f"; then
29650 # Source tree
29651 echo "$srcdir/$f"
29652 else
29653 # /dev/null tree
29654 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29655 echo "$as_me: error: cannot find input file: $f" >&2;}
29656 { (exit 1); exit 1; }; }
29657 fi;;
29658 esac
29659 done` || { (exit 1); exit 1; }
29660 # Remove the trailing spaces.
29661 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29662
29663 _ACEOF
29664
29665 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29666 # `conftest.undefs', that substitutes the proper values into
29667 # config.h.in to produce config.h. The first handles `#define'
29668 # templates, and the second `#undef' templates.
29669 # And first: Protect against being on the right side of a sed subst in
29670 # config.status. Protect against being in an unquoted here document
29671 # in config.status.
29672 rm -f conftest.defines conftest.undefs
29673 # Using a here document instead of a string reduces the quoting nightmare.
29674 # Putting comments in sed scripts is not portable.
29675 #
29676 # `end' is used to avoid that the second main sed command (meant for
29677 # 0-ary CPP macros) applies to n-ary macro definitions.
29678 # See the Autoconf documentation for `clear'.
29679 cat >confdef2sed.sed <<\_ACEOF
29680 s/[\\&,]/\\&/g
29681 s,[\\$`],\\&,g
29682 t clear
29683 : clear
29684 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29685 t end
29686 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29687 : end
29688 _ACEOF
29689 # If some macros were called several times there might be several times
29690 # the same #defines, which is useless. Nevertheless, we may not want to
29691 # sort them, since we want the *last* AC-DEFINE to be honored.
29692 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29693 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29694 rm -f confdef2sed.sed
29695
29696 # This sed command replaces #undef with comments. This is necessary, for
29697 # example, in the case of _POSIX_SOURCE, which is predefined and required
29698 # on some systems where configure will not decide to define it.
29699 cat >>conftest.undefs <<\_ACEOF
29700 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29701 _ACEOF
29702
29703 # Break up conftest.defines because some shells have a limit on the size
29704 # of here documents, and old seds have small limits too (100 cmds).
29705 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29706 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29707 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29708 echo ' :' >>$CONFIG_STATUS
29709 rm -f conftest.tail
29710 while grep . conftest.defines >/dev/null
29711 do
29712 # Write a limited-size here document to $tmp/defines.sed.
29713 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29714 # Speed up: don't consider the non `#define' lines.
29715 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29716 # Work around the forget-to-reset-the-flag bug.
29717 echo 't clr' >>$CONFIG_STATUS
29718 echo ': clr' >>$CONFIG_STATUS
29719 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29720 echo 'CEOF
29721 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29722 rm -f $tmp/in
29723 mv $tmp/out $tmp/in
29724 ' >>$CONFIG_STATUS
29725 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29726 rm -f conftest.defines
29727 mv conftest.tail conftest.defines
29728 done
29729 rm -f conftest.defines
29730 echo ' fi # grep' >>$CONFIG_STATUS
29731 echo >>$CONFIG_STATUS
29732
29733 # Break up conftest.undefs because some shells have a limit on the size
29734 # of here documents, and old seds have small limits too (100 cmds).
29735 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29736 rm -f conftest.tail
29737 while grep . conftest.undefs >/dev/null
29738 do
29739 # Write a limited-size here document to $tmp/undefs.sed.
29740 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29741 # Speed up: don't consider the non `#undef'
29742 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29743 # Work around the forget-to-reset-the-flag bug.
29744 echo 't clr' >>$CONFIG_STATUS
29745 echo ': clr' >>$CONFIG_STATUS
29746 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29747 echo 'CEOF
29748 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29749 rm -f $tmp/in
29750 mv $tmp/out $tmp/in
29751 ' >>$CONFIG_STATUS
29752 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29753 rm -f conftest.undefs
29754 mv conftest.tail conftest.undefs
29755 done
29756 rm -f conftest.undefs
29757
29758 cat >>$CONFIG_STATUS <<\_ACEOF
29759 # Let's still pretend it is `configure' which instantiates (i.e., don't
29760 # use $as_me), people would be surprised to read:
29761 # /* config.h. Generated by config.status. */
29762 if test x"$ac_file" = x-; then
29763 echo "/* Generated by configure. */" >$tmp/config.h
29764 else
29765 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29766 fi
29767 cat $tmp/in >>$tmp/config.h
29768 rm -f $tmp/in
29769 if test x"$ac_file" != x-; then
29770 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29771 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29772 echo "$as_me: $ac_file is unchanged" >&6;}
29773 else
29774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29776 X"$ac_file" : 'X\(//\)[^/]' \| \
29777 X"$ac_file" : 'X\(//\)$' \| \
29778 X"$ac_file" : 'X\(/\)' \| \
29779 . : '\(.\)' 2>/dev/null ||
29780 echo X"$ac_file" |
29781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29783 /^X\(\/\/\)$/{ s//\1/; q; }
29784 /^X\(\/\).*/{ s//\1/; q; }
29785 s/.*/./; q'`
29786 { if $as_mkdir_p; then
29787 mkdir -p "$ac_dir"
29788 else
29789 as_dir="$ac_dir"
29790 as_dirs=
29791 while test ! -d "$as_dir"; do
29792 as_dirs="$as_dir $as_dirs"
29793 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29795 X"$as_dir" : 'X\(//\)[^/]' \| \
29796 X"$as_dir" : 'X\(//\)$' \| \
29797 X"$as_dir" : 'X\(/\)' \| \
29798 . : '\(.\)' 2>/dev/null ||
29799 echo X"$as_dir" |
29800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29802 /^X\(\/\/\)$/{ s//\1/; q; }
29803 /^X\(\/\).*/{ s//\1/; q; }
29804 s/.*/./; q'`
29805 done
29806 test ! -n "$as_dirs" || mkdir $as_dirs
29807 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29808 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29809 { (exit 1); exit 1; }; }; }
29810
29811 rm -f $ac_file
29812 mv $tmp/config.h $ac_file
29813 fi
29814 else
29815 cat $tmp/config.h
29816 rm -f $tmp/config.h
29817 fi
29818 # Compute $ac_file's index in $config_headers.
29819 _am_stamp_count=1
29820 for _am_header in $config_headers :; do
29821 case $_am_header in
29822 $ac_file | $ac_file:* )
29823 break ;;
29824 * )
29825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29826 esac
29827 done
29828 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29829 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29830 X$ac_file : 'X\(//\)[^/]' \| \
29831 X$ac_file : 'X\(//\)$' \| \
29832 X$ac_file : 'X\(/\)' \| \
29833 . : '\(.\)' 2>/dev/null ||
29834 echo X$ac_file |
29835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29837 /^X\(\/\/\)$/{ s//\1/; q; }
29838 /^X\(\/\).*/{ s//\1/; q; }
29839 s/.*/./; q'`/stamp-h$_am_stamp_count
29840 done
29841 _ACEOF
29842 cat >>$CONFIG_STATUS <<\_ACEOF
29843
29844 #
29845 # CONFIG_LINKS section.
29846 #
29847
29848 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29849 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29850 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29851
29852 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29853 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29854
29855 if test ! -r $srcdir/$ac_source; then
29856 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29857 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29858 { (exit 1); exit 1; }; }
29859 fi
29860 rm -f $ac_dest
29861
29862 # Make relative symlinks.
29863 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29864 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29865 X"$ac_dest" : 'X\(//\)[^/]' \| \
29866 X"$ac_dest" : 'X\(//\)$' \| \
29867 X"$ac_dest" : 'X\(/\)' \| \
29868 . : '\(.\)' 2>/dev/null ||
29869 echo X"$ac_dest" |
29870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29872 /^X\(\/\/\)$/{ s//\1/; q; }
29873 /^X\(\/\).*/{ s//\1/; q; }
29874 s/.*/./; q'`
29875 { if $as_mkdir_p; then
29876 mkdir -p "$ac_dest_dir"
29877 else
29878 as_dir="$ac_dest_dir"
29879 as_dirs=
29880 while test ! -d "$as_dir"; do
29881 as_dirs="$as_dir $as_dirs"
29882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29884 X"$as_dir" : 'X\(//\)[^/]' \| \
29885 X"$as_dir" : 'X\(//\)$' \| \
29886 X"$as_dir" : 'X\(/\)' \| \
29887 . : '\(.\)' 2>/dev/null ||
29888 echo X"$as_dir" |
29889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29891 /^X\(\/\/\)$/{ s//\1/; q; }
29892 /^X\(\/\).*/{ s//\1/; q; }
29893 s/.*/./; q'`
29894 done
29895 test ! -n "$as_dirs" || mkdir $as_dirs
29896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29897 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29898 { (exit 1); exit 1; }; }; }
29899
29900 ac_builddir=.
29901
29902 if test "$ac_dest_dir" != .; then
29903 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29904 # A "../" for each directory in $ac_dir_suffix.
29905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29906 else
29907 ac_dir_suffix= ac_top_builddir=
29908 fi
29909
29910 case $srcdir in
29911 .) # No --srcdir option. We are building in place.
29912 ac_srcdir=.
29913 if test -z "$ac_top_builddir"; then
29914 ac_top_srcdir=.
29915 else
29916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29917 fi ;;
29918 [\\/]* | ?:[\\/]* ) # Absolute path.
29919 ac_srcdir=$srcdir$ac_dir_suffix;
29920 ac_top_srcdir=$srcdir ;;
29921 *) # Relative path.
29922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29924 esac
29925
29926 # Do not use `cd foo && pwd` to compute absolute paths, because
29927 # the directories may not exist.
29928 case `pwd` in
29929 .) ac_abs_builddir="$ac_dest_dir";;
29930 *)
29931 case "$ac_dest_dir" in
29932 .) ac_abs_builddir=`pwd`;;
29933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29934 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29935 esac;;
29936 esac
29937 case $ac_abs_builddir in
29938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29939 *)
29940 case ${ac_top_builddir}. in
29941 .) ac_abs_top_builddir=$ac_abs_builddir;;
29942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29944 esac;;
29945 esac
29946 case $ac_abs_builddir in
29947 .) ac_abs_srcdir=$ac_srcdir;;
29948 *)
29949 case $ac_srcdir in
29950 .) ac_abs_srcdir=$ac_abs_builddir;;
29951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29953 esac;;
29954 esac
29955 case $ac_abs_builddir in
29956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29957 *)
29958 case $ac_top_srcdir in
29959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29962 esac;;
29963 esac
29964
29965
29966 case $srcdir in
29967 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29968 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29969 esac
29970
29971 # Try a symlink, then a hard link, then a copy.
29972 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29973 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29974 cp -p $srcdir/$ac_source $ac_dest ||
29975 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29976 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29977 { (exit 1); exit 1; }; }
29978 done
29979 _ACEOF
29980 cat >>$CONFIG_STATUS <<\_ACEOF
29981
29982 #
29983 # CONFIG_COMMANDS section.
29984 #
29985 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29986 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29987 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29988 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29989 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29990 X"$ac_dest" : 'X\(//\)[^/]' \| \
29991 X"$ac_dest" : 'X\(//\)$' \| \
29992 X"$ac_dest" : 'X\(/\)' \| \
29993 . : '\(.\)' 2>/dev/null ||
29994 echo X"$ac_dest" |
29995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29997 /^X\(\/\/\)$/{ s//\1/; q; }
29998 /^X\(\/\).*/{ s//\1/; q; }
29999 s/.*/./; q'`
30000 { if $as_mkdir_p; then
30001 mkdir -p "$ac_dir"
30002 else
30003 as_dir="$ac_dir"
30004 as_dirs=
30005 while test ! -d "$as_dir"; do
30006 as_dirs="$as_dir $as_dirs"
30007 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30009 X"$as_dir" : 'X\(//\)[^/]' \| \
30010 X"$as_dir" : 'X\(//\)$' \| \
30011 X"$as_dir" : 'X\(/\)' \| \
30012 . : '\(.\)' 2>/dev/null ||
30013 echo X"$as_dir" |
30014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30016 /^X\(\/\/\)$/{ s//\1/; q; }
30017 /^X\(\/\).*/{ s//\1/; q; }
30018 s/.*/./; q'`
30019 done
30020 test ! -n "$as_dirs" || mkdir $as_dirs
30021 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30022 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30023 { (exit 1); exit 1; }; }; }
30024
30025 ac_builddir=.
30026
30027 if test "$ac_dir" != .; then
30028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30029 # A "../" for each directory in $ac_dir_suffix.
30030 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30031 else
30032 ac_dir_suffix= ac_top_builddir=
30033 fi
30034
30035 case $srcdir in
30036 .) # No --srcdir option. We are building in place.
30037 ac_srcdir=.
30038 if test -z "$ac_top_builddir"; then
30039 ac_top_srcdir=.
30040 else
30041 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30042 fi ;;
30043 [\\/]* | ?:[\\/]* ) # Absolute path.
30044 ac_srcdir=$srcdir$ac_dir_suffix;
30045 ac_top_srcdir=$srcdir ;;
30046 *) # Relative path.
30047 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30048 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30049 esac
30050
30051 # Do not use `cd foo && pwd` to compute absolute paths, because
30052 # the directories may not exist.
30053 case `pwd` in
30054 .) ac_abs_builddir="$ac_dir";;
30055 *)
30056 case "$ac_dir" in
30057 .) ac_abs_builddir=`pwd`;;
30058 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30059 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30060 esac;;
30061 esac
30062 case $ac_abs_builddir in
30063 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30064 *)
30065 case ${ac_top_builddir}. in
30066 .) ac_abs_top_builddir=$ac_abs_builddir;;
30067 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30068 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30069 esac;;
30070 esac
30071 case $ac_abs_builddir in
30072 .) ac_abs_srcdir=$ac_srcdir;;
30073 *)
30074 case $ac_srcdir in
30075 .) ac_abs_srcdir=$ac_abs_builddir;;
30076 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30077 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30078 esac;;
30079 esac
30080 case $ac_abs_builddir in
30081 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30082 *)
30083 case $ac_top_srcdir in
30084 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30085 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30086 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30087 esac;;
30088 esac
30089
30090
30091 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30092 echo "$as_me: executing $ac_dest commands" >&6;}
30093 case $ac_dest in
30094 default-1 )
30095 # Only add multilib support code if we just rebuilt the top-level
30096 # Makefile.
30097 case " $CONFIG_FILES " in
30098 *" Makefile "*)
30099 ac_file=Makefile . ${multi_basedir}/config-ml.in
30100 ;;
30101 esac ;;
30102 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30103 # Strip MF so we end up with the name of the file.
30104 mf=`echo "$mf" | sed -e 's/:.*$//'`
30105 # Check whether this is an Automake generated Makefile or not.
30106 # We used to match only the files named `Makefile.in', but
30107 # some people rename them; so instead we look at the file content.
30108 # Grep'ing the first line is not enough: some people post-process
30109 # each Makefile.in and add a new line on top of each file to say so.
30110 # So let's grep whole file.
30111 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30112 dirpart=`(dirname "$mf") 2>/dev/null ||
30113 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30114 X"$mf" : 'X\(//\)[^/]' \| \
30115 X"$mf" : 'X\(//\)$' \| \
30116 X"$mf" : 'X\(/\)' \| \
30117 . : '\(.\)' 2>/dev/null ||
30118 echo X"$mf" |
30119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30121 /^X\(\/\/\)$/{ s//\1/; q; }
30122 /^X\(\/\).*/{ s//\1/; q; }
30123 s/.*/./; q'`
30124 else
30125 continue
30126 fi
30127 # Extract the definition of DEPDIR, am__include, and am__quote
30128 # from the Makefile without running `make'.
30129 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30130 test -z "$DEPDIR" && continue
30131 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30132 test -z "am__include" && continue
30133 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30134 # When using ansi2knr, U may be empty or an underscore; expand it
30135 U=`sed -n 's/^U = //p' < "$mf"`
30136 # Find all dependency output files, they are included files with
30137 # $(DEPDIR) in their names. We invoke sed twice because it is the
30138 # simplest approach to changing $(DEPDIR) to its actual value in the
30139 # expansion.
30140 for file in `sed -n "
30141 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30142 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30143 # Make sure the directory exists.
30144 test -f "$dirpart/$file" && continue
30145 fdir=`(dirname "$file") 2>/dev/null ||
30146 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30147 X"$file" : 'X\(//\)[^/]' \| \
30148 X"$file" : 'X\(//\)$' \| \
30149 X"$file" : 'X\(/\)' \| \
30150 . : '\(.\)' 2>/dev/null ||
30151 echo X"$file" |
30152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30154 /^X\(\/\/\)$/{ s//\1/; q; }
30155 /^X\(\/\).*/{ s//\1/; q; }
30156 s/.*/./; q'`
30157 { if $as_mkdir_p; then
30158 mkdir -p $dirpart/$fdir
30159 else
30160 as_dir=$dirpart/$fdir
30161 as_dirs=
30162 while test ! -d "$as_dir"; do
30163 as_dirs="$as_dir $as_dirs"
30164 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30166 X"$as_dir" : 'X\(//\)[^/]' \| \
30167 X"$as_dir" : 'X\(//\)$' \| \
30168 X"$as_dir" : 'X\(/\)' \| \
30169 . : '\(.\)' 2>/dev/null ||
30170 echo X"$as_dir" |
30171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30173 /^X\(\/\/\)$/{ s//\1/; q; }
30174 /^X\(\/\).*/{ s//\1/; q; }
30175 s/.*/./; q'`
30176 done
30177 test ! -n "$as_dirs" || mkdir $as_dirs
30178 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30179 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30180 { (exit 1); exit 1; }; }; }
30181
30182 # echo "creating $dirpart/$file"
30183 echo '# dummy' > "$dirpart/$file"
30184 done
30185 done
30186 ;;
30187 libtool )
30188
30189 # See if we are running on zsh, and set the options which allow our
30190 # commands through without removal of \ escapes.
30191 if test -n "${ZSH_VERSION+set}" ; then
30192 setopt NO_GLOB_SUBST
30193 fi
30194
30195 cfgfile="${ofile}T"
30196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30197 $RM "$cfgfile"
30198
30199 cat <<_LT_EOF >> "$cfgfile"
30200 #! $SHELL
30201
30202 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30203 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30206 #
30207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30208 # 2006, 2007 Free Software Foundation, Inc.
30209 #
30210 # This file is part of GNU Libtool:
30211 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30212 #
30213 # This program is free software; you can redistribute it and/or modify
30214 # it under the terms of the GNU General Public License as published by
30215 # the Free Software Foundation; either version 2 of the License, or
30216 # (at your option) any later version.
30217 #
30218 # This program is distributed in the hope that it will be useful, but
30219 # WITHOUT ANY WARRANTY; without even the implied warranty of
30220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30221 # General Public License for more details.
30222 #
30223 # You should have received a copy of the GNU General Public License
30224 # along with this program; if not, a copy can be downloaded from
30225 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30226 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30227 # MA 02110-1301, USA.
30228 #
30229 # As a special exception to the GNU General Public License, if you
30230 # distribute this file as part of a program that contains a
30231 # configuration script generated by Autoconf, you may include it under
30232 # the same distribution terms that you use for the rest of that program.
30233
30234
30235 # The names of the tagged configurations supported by this script.
30236 available_tags="CXX GCJ "
30237
30238 # ### BEGIN LIBTOOL CONFIG
30239
30240 # Which release of libtool.m4 was used?
30241 macro_version=$macro_version
30242 macro_revision=$macro_revision
30243
30244 # Whether or not to build shared libraries.
30245 build_libtool_libs=$enable_shared
30246
30247 # Whether or not to build static libraries.
30248 build_old_libs=$enable_static
30249
30250 # What type of objects to build.
30251 pic_mode=$pic_mode
30252
30253 # Whether or not to optimize for fast installation.
30254 fast_install=$enable_fast_install
30255
30256 # The host system.
30257 host_alias=$host_alias
30258 host=$host
30259 host_os=$host_os
30260
30261 # The build system.
30262 build_alias=$build_alias
30263 build=$build
30264 build_os=$build_os
30265
30266 # A sed program that does not truncate output.
30267 SED=$lt_SED
30268
30269 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30270 Xsed="\$SED -e 1s/^X//"
30271
30272 # A grep program that handles long lines.
30273 GREP=$lt_GREP
30274
30275 # An ERE matcher.
30276 EGREP=$lt_EGREP
30277
30278 # A literal string matcher.
30279 FGREP=$lt_FGREP
30280
30281 # A BSD- or MS-compatible name lister.
30282 NM=$lt_NM
30283
30284 # Whether we need soft or hard links.
30285 LN_S=$lt_LN_S
30286
30287 # What is the maximum length of a command?
30288 max_cmd_len=$max_cmd_len
30289
30290 # Object file suffix (normally "o").
30291 objext=$ac_objext
30292
30293 # Executable file suffix (normally "").
30294 exeext=$exeext
30295
30296 # whether the shell understands "unset".
30297 lt_unset=$lt_unset
30298
30299 # turn spaces into newlines.
30300 SP2NL=$lt_lt_SP2NL
30301
30302 # turn newlines into spaces.
30303 NL2SP=$lt_lt_NL2SP
30304
30305 # How to create reloadable object files.
30306 reload_flag=$lt_reload_flag
30307 reload_cmds=$lt_reload_cmds
30308
30309 # Method to check whether dependent libraries are shared objects.
30310 deplibs_check_method=$lt_deplibs_check_method
30311
30312 # Command to use when deplibs_check_method == "file_magic".
30313 file_magic_cmd=$lt_file_magic_cmd
30314
30315 # The archiver.
30316 AR=$lt_AR
30317 AR_FLAGS=$lt_AR_FLAGS
30318
30319 # A symbol stripping program.
30320 STRIP=$lt_STRIP
30321
30322 # Commands used to install an old-style archive.
30323 RANLIB=$lt_RANLIB
30324 old_postinstall_cmds=$lt_old_postinstall_cmds
30325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30326
30327 # A C compiler.
30328 LTCC=$lt_CC
30329
30330 # LTCC compiler flags.
30331 LTCFLAGS=$lt_CFLAGS
30332
30333 # Take the output of nm and produce a listing of raw symbols and C names.
30334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30335
30336 # Transform the output of nm in a proper C declaration.
30337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30338
30339 # Transform the output of nm in a C name address pair.
30340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30341
30342 # The name of the directory that contains temporary libtool files.
30343 objdir=$objdir
30344
30345 # Shell to use when invoking shell scripts.
30346 SHELL=$lt_SHELL
30347
30348 # An echo program that does not interpret backslashes.
30349 ECHO=$lt_ECHO
30350
30351 # Used to examine libraries when file_magic_cmd begins with "file".
30352 MAGIC_CMD=$MAGIC_CMD
30353
30354 # Must we lock files when doing compilation?
30355 need_locks=$lt_need_locks
30356
30357 # Old archive suffix (normally "a").
30358 libext=$libext
30359
30360 # Shared library suffix (normally ".so").
30361 shrext_cmds=$lt_shrext_cmds
30362
30363 # The commands to extract the exported symbol list from a shared archive.
30364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30365
30366 # Variables whose values should be saved in libtool wrapper scripts and
30367 # restored at link time.
30368 variables_saved_for_relink=$lt_variables_saved_for_relink
30369
30370 # Do we need the "lib" prefix for modules?
30371 need_lib_prefix=$need_lib_prefix
30372
30373 # Do we need a version for libraries?
30374 need_version=$need_version
30375
30376 # Library versioning type.
30377 version_type=$version_type
30378
30379 # Shared library runtime path variable.
30380 runpath_var=$runpath_var
30381
30382 # Shared library path variable.
30383 shlibpath_var=$shlibpath_var
30384
30385 # Is shlibpath searched before the hard-coded library search path?
30386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30387
30388 # Format of library name prefix.
30389 libname_spec=$lt_libname_spec
30390
30391 # List of archive names. First name is the real one, the rest are links.
30392 # The last name is the one that the linker finds with -lNAME
30393 library_names_spec=$lt_library_names_spec
30394
30395 # The coded name of the library, if different from the real name.
30396 soname_spec=$lt_soname_spec
30397
30398 # Command to use after installation of a shared archive.
30399 postinstall_cmds=$lt_postinstall_cmds
30400
30401 # Command to use after uninstallation of a shared archive.
30402 postuninstall_cmds=$lt_postuninstall_cmds
30403
30404 # Commands used to finish a libtool library installation in a directory.
30405 finish_cmds=$lt_finish_cmds
30406
30407 # As "finish_cmds", except a single script fragment to be evaled but
30408 # not shown.
30409 finish_eval=$lt_finish_eval
30410
30411 # Whether we should hardcode library paths into libraries.
30412 hardcode_into_libs=$hardcode_into_libs
30413
30414 # Compile-time system search path for libraries.
30415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30416
30417 # Run-time system search path for libraries.
30418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30419
30420 # Whether dlopen is supported.
30421 dlopen_support=$enable_dlopen
30422
30423 # Whether dlopen of programs is supported.
30424 dlopen_self=$enable_dlopen_self
30425
30426 # Whether dlopen of statically linked programs is supported.
30427 dlopen_self_static=$enable_dlopen_self_static
30428
30429 # Commands to strip libraries.
30430 old_striplib=$lt_old_striplib
30431 striplib=$lt_striplib
30432
30433
30434 # The linker used to build libraries.
30435 LD=$lt_LD
30436
30437 # Commands used to build an old-style archive.
30438 old_archive_cmds=$lt_old_archive_cmds
30439
30440 # A language specific compiler.
30441 CC=$lt_compiler
30442
30443 # Is the compiler the GNU compiler?
30444 with_gcc=$GCC
30445
30446 # Compiler flag to turn off builtin functions.
30447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30448
30449 # How to pass a linker flag through the compiler.
30450 wl=$lt_lt_prog_compiler_wl
30451
30452 # Additional compiler flags for building library objects.
30453 pic_flag=$lt_lt_prog_compiler_pic
30454
30455 # Compiler flag to prevent dynamic linking.
30456 link_static_flag=$lt_lt_prog_compiler_static
30457
30458 # Does compiler simultaneously support -c and -o options?
30459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30460
30461 # Whether or not to add -lc for building shared libraries.
30462 build_libtool_need_lc=$archive_cmds_need_lc
30463
30464 # Whether or not to disallow shared libs when runtime libs are static.
30465 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30466
30467 # Compiler flag to allow reflexive dlopens.
30468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30469
30470 # Compiler flag to generate shared objects directly from archives.
30471 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30472
30473 # Whether the compiler copes with passing no objects directly.
30474 compiler_needs_object=$lt_compiler_needs_object
30475
30476 # Create an old-style archive from a shared archive.
30477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30478
30479 # Create a temporary old-style archive to link instead of a shared archive.
30480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30481
30482 # Commands used to build a shared archive.
30483 archive_cmds=$lt_archive_cmds
30484 archive_expsym_cmds=$lt_archive_expsym_cmds
30485
30486 # Commands used to build a loadable module if different from building
30487 # a shared archive.
30488 module_cmds=$lt_module_cmds
30489 module_expsym_cmds=$lt_module_expsym_cmds
30490
30491 # Whether we are building with GNU ld or not.
30492 with_gnu_ld=$lt_with_gnu_ld
30493
30494 # Flag that allows shared libraries with undefined symbols to be built.
30495 allow_undefined_flag=$lt_allow_undefined_flag
30496
30497 # Flag that enforces no undefined symbols.
30498 no_undefined_flag=$lt_no_undefined_flag
30499
30500 # Flag to hardcode \$libdir into a binary during linking.
30501 # This must work even if \$libdir does not exist
30502 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30503
30504 # If ld is used when linking, flag to hardcode \$libdir into a binary
30505 # during linking. This must work even if \$libdir does not exist.
30506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30507
30508 # Whether we need a single "-rpath" flag with a separated argument.
30509 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30510
30511 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30512 # DIR into the resulting binary.
30513 hardcode_direct=$hardcode_direct
30514
30515 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30516 # DIR into the resulting binary and the resulting library dependency is
30517 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30518 # library is relocated.
30519 hardcode_direct_absolute=$hardcode_direct_absolute
30520
30521 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30522 # into the resulting binary.
30523 hardcode_minus_L=$hardcode_minus_L
30524
30525 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30526 # into the resulting binary.
30527 hardcode_shlibpath_var=$hardcode_shlibpath_var
30528
30529 # Set to "yes" if building a shared library automatically hardcodes DIR
30530 # into the library and all subsequent libraries and executables linked
30531 # against it.
30532 hardcode_automatic=$hardcode_automatic
30533
30534 # Set to yes if linker adds runtime paths of dependent libraries
30535 # to runtime path list.
30536 inherit_rpath=$inherit_rpath
30537
30538 # Whether libtool must link a program against all its dependency libraries.
30539 link_all_deplibs=$link_all_deplibs
30540
30541 # Fix the shell variable \$srcfile for the compiler.
30542 fix_srcfile_path=$lt_fix_srcfile_path
30543
30544 # Set to "yes" if exported symbols are required.
30545 always_export_symbols=$always_export_symbols
30546
30547 # The commands to list exported symbols.
30548 export_symbols_cmds=$lt_export_symbols_cmds
30549
30550 # Symbols that should not be listed in the preloaded symbols.
30551 exclude_expsyms=$lt_exclude_expsyms
30552
30553 # Symbols that must always be exported.
30554 include_expsyms=$lt_include_expsyms
30555
30556 # Commands necessary for linking programs (against libraries) with templates.
30557 prelink_cmds=$lt_prelink_cmds
30558
30559 # Specify filename containing input files.
30560 file_list_spec=$lt_file_list_spec
30561
30562 # How to hardcode a shared library path into an executable.
30563 hardcode_action=$hardcode_action
30564
30565 # Dependencies to place before and after the objects being linked to
30566 # create a shared library.
30567 predep_objects=$lt_predep_objects
30568 postdep_objects=$lt_postdep_objects
30569 predeps=$lt_predeps
30570 postdeps=$lt_postdeps
30571
30572 # The library search path used internally by the compiler when linking
30573 # a shared library.
30574 compiler_lib_search_path=$lt_compiler_lib_search_path
30575
30576 # ### END LIBTOOL CONFIG
30577
30578 _LT_EOF
30579
30580 case $host_os in
30581 aix3*)
30582 cat <<\_LT_EOF >> "$cfgfile"
30583 # AIX sometimes has problems with the GCC collect2 program. For some
30584 # reason, if we set the COLLECT_NAMES environment variable, the problems
30585 # vanish in a puff of smoke.
30586 if test "X${COLLECT_NAMES+set}" != Xset; then
30587 COLLECT_NAMES=
30588 export COLLECT_NAMES
30589 fi
30590 _LT_EOF
30591 ;;
30592 esac
30593
30594
30595 ltmain="$ac_aux_dir/ltmain.sh"
30596
30597
30598 # We use sed instead of cat because bash on DJGPP gets confused if
30599 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30600 # text mode, it properly converts lines to CR/LF. This bash problem
30601 # is reportedly fixed, but why not run on old versions too?
30602 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30603 || (rm -f "$cfgfile"; exit 1)
30604
30605 case $xsi_shell in
30606 yes)
30607 cat << \_LT_EOF >> "$cfgfile"
30608 # func_dirname file append nondir_replacement
30609 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30610 # otherwise set result to NONDIR_REPLACEMENT.
30611 func_dirname ()
30612 {
30613 case ${1} in
30614 */*) func_dirname_result="${1%/*}${2}" ;;
30615 * ) func_dirname_result="${3}" ;;
30616 esac
30617 }
30618
30619 # func_basename file
30620 func_basename ()
30621 {
30622 func_basename_result="${1##*/}"
30623 }
30624
30625 # func_stripname prefix suffix name
30626 # strip PREFIX and SUFFIX off of NAME.
30627 # PREFIX and SUFFIX must not contain globbing or regex special
30628 # characters, hashes, percent signs, but SUFFIX may contain a leading
30629 # dot (in which case that matches only a dot).
30630 func_stripname ()
30631 {
30632 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30633 # positional parameters, so assign one to ordinary parameter first.
30634 func_stripname_result=${3}
30635 func_stripname_result=${func_stripname_result#"${1}"}
30636 func_stripname_result=${func_stripname_result%"${2}"}
30637 }
30638
30639 # func_opt_split
30640 func_opt_split ()
30641 {
30642 func_opt_split_opt=${1%%=*}
30643 func_opt_split_arg=${1#*=}
30644 }
30645
30646 # func_lo2o object
30647 func_lo2o ()
30648 {
30649 case ${1} in
30650 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30651 *) func_lo2o_result=${1} ;;
30652 esac
30653 }
30654 _LT_EOF
30655 ;;
30656 *) # Bourne compatible functions.
30657 cat << \_LT_EOF >> "$cfgfile"
30658 # func_dirname file append nondir_replacement
30659 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30660 # otherwise set result to NONDIR_REPLACEMENT.
30661 func_dirname ()
30662 {
30663 # Extract subdirectory from the argument.
30664 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30665 if test "X$func_dirname_result" = "X${1}"; then
30666 func_dirname_result="${3}"
30667 else
30668 func_dirname_result="$func_dirname_result${2}"
30669 fi
30670 }
30671
30672 # func_basename file
30673 func_basename ()
30674 {
30675 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30676 }
30677
30678 # func_stripname prefix suffix name
30679 # strip PREFIX and SUFFIX off of NAME.
30680 # PREFIX and SUFFIX must not contain globbing or regex special
30681 # characters, hashes, percent signs, but SUFFIX may contain a leading
30682 # dot (in which case that matches only a dot).
30683 # func_strip_suffix prefix name
30684 func_stripname ()
30685 {
30686 case ${2} in
30687 .*) func_stripname_result=`$ECHO "X${3}" \
30688 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30689 *) func_stripname_result=`$ECHO "X${3}" \
30690 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30691 esac
30692 }
30693
30694 # sed scripts:
30695 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30696 my_sed_long_arg='1s/^-[^=]*=//'
30697
30698 # func_opt_split
30699 func_opt_split ()
30700 {
30701 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30702 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30703 }
30704
30705 # func_lo2o object
30706 func_lo2o ()
30707 {
30708 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30709 }
30710 _LT_EOF
30711 esac
30712
30713 case $lt_shell_append in
30714 yes)
30715 cat << \_LT_EOF >> "$cfgfile"
30716
30717 # func_append var value
30718 # Append VALUE to the end of shell variable VAR.
30719 func_append ()
30720 {
30721 eval "$1+=\$2"
30722 }
30723 _LT_EOF
30724 ;;
30725 *)
30726 cat << \_LT_EOF >> "$cfgfile"
30727
30728 # func_append var value
30729 # Append VALUE to the end of shell variable VAR.
30730 func_append ()
30731 {
30732 eval "$1=\$$1\$2"
30733 }
30734 _LT_EOF
30735 ;;
30736 esac
30737
30738
30739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30740 || (rm -f "$cfgfile"; exit 1)
30741
30742 mv -f "$cfgfile" "$ofile" ||
30743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30744 chmod +x "$ofile"
30745
30746
30747 cat <<_LT_EOF >> "$ofile"
30748
30749 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30750
30751 # The linker used to build libraries.
30752 LD=$lt_LD_CXX
30753
30754 # Commands used to build an old-style archive.
30755 old_archive_cmds=$lt_old_archive_cmds_CXX
30756
30757 # A language specific compiler.
30758 CC=$lt_compiler_CXX
30759
30760 # Is the compiler the GNU compiler?
30761 with_gcc=$GCC_CXX
30762
30763 # Compiler flag to turn off builtin functions.
30764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30765
30766 # How to pass a linker flag through the compiler.
30767 wl=$lt_lt_prog_compiler_wl_CXX
30768
30769 # Additional compiler flags for building library objects.
30770 pic_flag=$lt_lt_prog_compiler_pic_CXX
30771
30772 # Compiler flag to prevent dynamic linking.
30773 link_static_flag=$lt_lt_prog_compiler_static_CXX
30774
30775 # Does compiler simultaneously support -c and -o options?
30776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30777
30778 # Whether or not to add -lc for building shared libraries.
30779 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30780
30781 # Whether or not to disallow shared libs when runtime libs are static.
30782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30783
30784 # Compiler flag to allow reflexive dlopens.
30785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30786
30787 # Compiler flag to generate shared objects directly from archives.
30788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30789
30790 # Whether the compiler copes with passing no objects directly.
30791 compiler_needs_object=$lt_compiler_needs_object_CXX
30792
30793 # Create an old-style archive from a shared archive.
30794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30795
30796 # Create a temporary old-style archive to link instead of a shared archive.
30797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30798
30799 # Commands used to build a shared archive.
30800 archive_cmds=$lt_archive_cmds_CXX
30801 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30802
30803 # Commands used to build a loadable module if different from building
30804 # a shared archive.
30805 module_cmds=$lt_module_cmds_CXX
30806 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30807
30808 # Whether we are building with GNU ld or not.
30809 with_gnu_ld=$lt_with_gnu_ld_CXX
30810
30811 # Flag that allows shared libraries with undefined symbols to be built.
30812 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30813
30814 # Flag that enforces no undefined symbols.
30815 no_undefined_flag=$lt_no_undefined_flag_CXX
30816
30817 # Flag to hardcode \$libdir into a binary during linking.
30818 # This must work even if \$libdir does not exist
30819 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30820
30821 # If ld is used when linking, flag to hardcode \$libdir into a binary
30822 # during linking. This must work even if \$libdir does not exist.
30823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30824
30825 # Whether we need a single "-rpath" flag with a separated argument.
30826 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30827
30828 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30829 # DIR into the resulting binary.
30830 hardcode_direct=$hardcode_direct_CXX
30831
30832 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30833 # DIR into the resulting binary and the resulting library dependency is
30834 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30835 # library is relocated.
30836 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30837
30838 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30839 # into the resulting binary.
30840 hardcode_minus_L=$hardcode_minus_L_CXX
30841
30842 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30843 # into the resulting binary.
30844 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30845
30846 # Set to "yes" if building a shared library automatically hardcodes DIR
30847 # into the library and all subsequent libraries and executables linked
30848 # against it.
30849 hardcode_automatic=$hardcode_automatic_CXX
30850
30851 # Set to yes if linker adds runtime paths of dependent libraries
30852 # to runtime path list.
30853 inherit_rpath=$inherit_rpath_CXX
30854
30855 # Whether libtool must link a program against all its dependency libraries.
30856 link_all_deplibs=$link_all_deplibs_CXX
30857
30858 # Fix the shell variable \$srcfile for the compiler.
30859 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30860
30861 # Set to "yes" if exported symbols are required.
30862 always_export_symbols=$always_export_symbols_CXX
30863
30864 # The commands to list exported symbols.
30865 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30866
30867 # Symbols that should not be listed in the preloaded symbols.
30868 exclude_expsyms=$lt_exclude_expsyms_CXX
30869
30870 # Symbols that must always be exported.
30871 include_expsyms=$lt_include_expsyms_CXX
30872
30873 # Commands necessary for linking programs (against libraries) with templates.
30874 prelink_cmds=$lt_prelink_cmds_CXX
30875
30876 # Specify filename containing input files.
30877 file_list_spec=$lt_file_list_spec_CXX
30878
30879 # How to hardcode a shared library path into an executable.
30880 hardcode_action=$hardcode_action_CXX
30881
30882 # Dependencies to place before and after the objects being linked to
30883 # create a shared library.
30884 predep_objects=$lt_predep_objects_CXX
30885 postdep_objects=$lt_postdep_objects_CXX
30886 predeps=$lt_predeps_CXX
30887 postdeps=$lt_postdeps_CXX
30888
30889 # The library search path used internally by the compiler when linking
30890 # a shared library.
30891 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30892
30893 # ### END LIBTOOL TAG CONFIG: CXX
30894 _LT_EOF
30895
30896
30897 cat <<_LT_EOF >> "$ofile"
30898
30899 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30900
30901 # The linker used to build libraries.
30902 LD=$lt_LD_GCJ
30903
30904 # Commands used to build an old-style archive.
30905 old_archive_cmds=$lt_old_archive_cmds_GCJ
30906
30907 # A language specific compiler.
30908 CC=$lt_compiler_GCJ
30909
30910 # Is the compiler the GNU compiler?
30911 with_gcc=$GCC_GCJ
30912
30913 # Compiler flag to turn off builtin functions.
30914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30915
30916 # How to pass a linker flag through the compiler.
30917 wl=$lt_lt_prog_compiler_wl_GCJ
30918
30919 # Additional compiler flags for building library objects.
30920 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30921
30922 # Compiler flag to prevent dynamic linking.
30923 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30924
30925 # Does compiler simultaneously support -c and -o options?
30926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30927
30928 # Whether or not to add -lc for building shared libraries.
30929 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30930
30931 # Whether or not to disallow shared libs when runtime libs are static.
30932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30933
30934 # Compiler flag to allow reflexive dlopens.
30935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30936
30937 # Compiler flag to generate shared objects directly from archives.
30938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30939
30940 # Whether the compiler copes with passing no objects directly.
30941 compiler_needs_object=$lt_compiler_needs_object_GCJ
30942
30943 # Create an old-style archive from a shared archive.
30944 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30945
30946 # Create a temporary old-style archive to link instead of a shared archive.
30947 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30948
30949 # Commands used to build a shared archive.
30950 archive_cmds=$lt_archive_cmds_GCJ
30951 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30952
30953 # Commands used to build a loadable module if different from building
30954 # a shared archive.
30955 module_cmds=$lt_module_cmds_GCJ
30956 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30957
30958 # Whether we are building with GNU ld or not.
30959 with_gnu_ld=$lt_with_gnu_ld_GCJ
30960
30961 # Flag that allows shared libraries with undefined symbols to be built.
30962 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30963
30964 # Flag that enforces no undefined symbols.
30965 no_undefined_flag=$lt_no_undefined_flag_GCJ
30966
30967 # Flag to hardcode \$libdir into a binary during linking.
30968 # This must work even if \$libdir does not exist
30969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30970
30971 # If ld is used when linking, flag to hardcode \$libdir into a binary
30972 # during linking. This must work even if \$libdir does not exist.
30973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30974
30975 # Whether we need a single "-rpath" flag with a separated argument.
30976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30977
30978 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30979 # DIR into the resulting binary.
30980 hardcode_direct=$hardcode_direct_GCJ
30981
30982 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30983 # DIR into the resulting binary and the resulting library dependency is
30984 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30985 # library is relocated.
30986 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30987
30988 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30989 # into the resulting binary.
30990 hardcode_minus_L=$hardcode_minus_L_GCJ
30991
30992 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30993 # into the resulting binary.
30994 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30995
30996 # Set to "yes" if building a shared library automatically hardcodes DIR
30997 # into the library and all subsequent libraries and executables linked
30998 # against it.
30999 hardcode_automatic=$hardcode_automatic_GCJ
31000
31001 # Set to yes if linker adds runtime paths of dependent libraries
31002 # to runtime path list.
31003 inherit_rpath=$inherit_rpath_GCJ
31004
31005 # Whether libtool must link a program against all its dependency libraries.
31006 link_all_deplibs=$link_all_deplibs_GCJ
31007
31008 # Fix the shell variable \$srcfile for the compiler.
31009 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31010
31011 # Set to "yes" if exported symbols are required.
31012 always_export_symbols=$always_export_symbols_GCJ
31013
31014 # The commands to list exported symbols.
31015 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31016
31017 # Symbols that should not be listed in the preloaded symbols.
31018 exclude_expsyms=$lt_exclude_expsyms_GCJ
31019
31020 # Symbols that must always be exported.
31021 include_expsyms=$lt_include_expsyms_GCJ
31022
31023 # Commands necessary for linking programs (against libraries) with templates.
31024 prelink_cmds=$lt_prelink_cmds_GCJ
31025
31026 # Specify filename containing input files.
31027 file_list_spec=$lt_file_list_spec_GCJ
31028
31029 # How to hardcode a shared library path into an executable.
31030 hardcode_action=$hardcode_action_GCJ
31031
31032 # Dependencies to place before and after the objects being linked to
31033 # create a shared library.
31034 predep_objects=$lt_predep_objects_GCJ
31035 postdep_objects=$lt_postdep_objects_GCJ
31036 predeps=$lt_predeps_GCJ
31037 postdeps=$lt_postdeps_GCJ
31038
31039 # The library search path used internally by the compiler when linking
31040 # a shared library.
31041 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31042
31043 # ### END LIBTOOL TAG CONFIG: GCJ
31044 _LT_EOF
31045
31046 ;;
31047 esac
31048 done
31049 _ACEOF
31050
31051 cat >>$CONFIG_STATUS <<\_ACEOF
31052
31053 { (exit 0); exit 0; }
31054 _ACEOF
31055 chmod +x $CONFIG_STATUS
31056 ac_clean_files=$ac_clean_files_save
31057
31058
31059 # configure is writing to config.log, and then calls config.status.
31060 # config.status does its own redirection, appending to config.log.
31061 # Unfortunately, on DOS this fails, as config.log is still kept open
31062 # by configure, so config.status won't be able to write to it; its
31063 # output is simply discarded. So we exec the FD to /dev/null,
31064 # effectively closing config.log, so it can be properly (re)opened and
31065 # appended to by config.status. When coming back to configure, we
31066 # need to make the FD available again.
31067 if test "$no_create" != yes; then
31068 ac_cs_success=:
31069 ac_config_status_args=
31070 test "$silent" = yes &&
31071 ac_config_status_args="$ac_config_status_args --quiet"
31072 exec 5>/dev/null
31073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31074 exec 5>>config.log
31075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31076 # would make configure fail if this is the last instruction.
31077 $ac_cs_success || { (exit 1); exit 1; }
31078 fi
31079
31080 #
31081 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31082 #
31083 if test "$no_recursion" != yes; then
31084
31085 # Remove --cache-file and --srcdir arguments so they do not pile up.
31086 ac_sub_configure_args=
31087 ac_prev=
31088 eval "set x $ac_configure_args"
31089 shift
31090 for ac_arg
31091 do
31092 if test -n "$ac_prev"; then
31093 ac_prev=
31094 continue
31095 fi
31096 case $ac_arg in
31097 -cache-file | --cache-file | --cache-fil | --cache-fi \
31098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31099 ac_prev=cache_file ;;
31100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31102 | --c=*)
31103 ;;
31104 --config-cache | -C)
31105 ;;
31106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31107 ac_prev=srcdir ;;
31108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31109 ;;
31110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31111 ac_prev=prefix ;;
31112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31113 ;;
31114 *)
31115 case $ac_arg in
31116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31117 esac
31118 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31119 esac
31120 done
31121
31122 # Always prepend --prefix to ensure using the same prefix
31123 # in subdir configurations.
31124 ac_arg="--prefix=$prefix"
31125 case $ac_arg in
31126 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31127 esac
31128 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31129
31130 ac_popdir=`pwd`
31131 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31132
31133 # Do not complain, so a configure script can configure whichever
31134 # parts of a large source tree are present.
31135 test -d "$srcdir/$ac_dir" || continue
31136
31137 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31138 echo "$as_me: configuring in $ac_dir" >&6;}
31139 { if $as_mkdir_p; then
31140 mkdir -p "$ac_dir"
31141 else
31142 as_dir="$ac_dir"
31143 as_dirs=
31144 while test ! -d "$as_dir"; do
31145 as_dirs="$as_dir $as_dirs"
31146 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31148 X"$as_dir" : 'X\(//\)[^/]' \| \
31149 X"$as_dir" : 'X\(//\)$' \| \
31150 X"$as_dir" : 'X\(/\)' \| \
31151 . : '\(.\)' 2>/dev/null ||
31152 echo X"$as_dir" |
31153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31155 /^X\(\/\/\)$/{ s//\1/; q; }
31156 /^X\(\/\).*/{ s//\1/; q; }
31157 s/.*/./; q'`
31158 done
31159 test ! -n "$as_dirs" || mkdir $as_dirs
31160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31161 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31162 { (exit 1); exit 1; }; }; }
31163
31164 ac_builddir=.
31165
31166 if test "$ac_dir" != .; then
31167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31168 # A "../" for each directory in $ac_dir_suffix.
31169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31170 else
31171 ac_dir_suffix= ac_top_builddir=
31172 fi
31173
31174 case $srcdir in
31175 .) # No --srcdir option. We are building in place.
31176 ac_srcdir=.
31177 if test -z "$ac_top_builddir"; then
31178 ac_top_srcdir=.
31179 else
31180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31181 fi ;;
31182 [\\/]* | ?:[\\/]* ) # Absolute path.
31183 ac_srcdir=$srcdir$ac_dir_suffix;
31184 ac_top_srcdir=$srcdir ;;
31185 *) # Relative path.
31186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31188 esac
31189
31190 # Do not use `cd foo && pwd` to compute absolute paths, because
31191 # the directories may not exist.
31192 case `pwd` in
31193 .) ac_abs_builddir="$ac_dir";;
31194 *)
31195 case "$ac_dir" in
31196 .) ac_abs_builddir=`pwd`;;
31197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31198 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31199 esac;;
31200 esac
31201 case $ac_abs_builddir in
31202 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31203 *)
31204 case ${ac_top_builddir}. in
31205 .) ac_abs_top_builddir=$ac_abs_builddir;;
31206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31208 esac;;
31209 esac
31210 case $ac_abs_builddir in
31211 .) ac_abs_srcdir=$ac_srcdir;;
31212 *)
31213 case $ac_srcdir in
31214 .) ac_abs_srcdir=$ac_abs_builddir;;
31215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31217 esac;;
31218 esac
31219 case $ac_abs_builddir in
31220 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31221 *)
31222 case $ac_top_srcdir in
31223 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31226 esac;;
31227 esac
31228
31229
31230 cd "$ac_dir"
31231
31232 # Check for guested configure; otherwise get Cygnus style configure.
31233 if test -f "$ac_srcdir/configure.gnu"; then
31234 ac_sub_configure=$ac_srcdir/configure.gnu
31235 elif test -f "$ac_srcdir/configure"; then
31236 ac_sub_configure=$ac_srcdir/configure
31237 elif test -f "$ac_srcdir/configure.in"; then
31238 # This should be Cygnus configure.
31239 ac_sub_configure=$ac_aux_dir/configure
31240 else
31241 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31242 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31243 ac_sub_configure=
31244 fi
31245
31246 # The recursion is here.
31247 if test -n "$ac_sub_configure"; then
31248 # Make the cache file name correct relative to the subdirectory.
31249 case $cache_file in
31250 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31251 *) # Relative path.
31252 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31253 esac
31254
31255 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31256 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31257 # The eval makes quoting arguments work.
31258 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31259 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31260 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31261 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31262 { (exit 1); exit 1; }; }
31263 fi
31264
31265 cd "$ac_popdir"
31266 done
31267 fi
31268