]>
Commit | Line | Data |
---|---|---|
ee9dd372 | 1 | #! /bin/sh |
ee9dd372 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ade710a5 | 3 | # Generated by GNU Autoconf 2.59 for libjava version-unused. |
ee9dd372 | 4 | # |
ade710a5 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
ee9dd372 TT |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
ed698112 NN |
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+"$@"}'='"$@"' | |
ade710a5 TF |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
ed698112 NN |
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. | |
ade710a5 | 33 | $as_unset ENV MAIL MAILPATH |
ed698112 NN |
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 | |
ade710a5 | 47 | $as_unset $as_var |
ed698112 NN |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
ade710a5 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
ed698112 NN |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
ade710a5 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
ed698112 NN |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
ade710a5 | 66 | as_me=`$as_basename "$0" || |
ed698112 NN |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
ade710a5 TF |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 71 | echo X/"$0" | |
ade710a5 TF |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
ed698112 NN |
76 | |
77 | ||
ade710a5 TF |
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 | |
ed698112 | 85 | |
ade710a5 TF |
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 | |
02809848 PB |
97 | fi |
98 | ||
02809848 | 99 | |
ade710a5 TF |
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 | |
02809848 | 116 | |
ade710a5 TF |
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 | '') | |
ed698112 | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ade710a5 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ed698112 NN |
132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
ade710a5 TF |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
ed698112 | 137 | /*) |
ade710a5 | 138 | if ("$as_dir/$as_base" -c ' |
02809848 PB |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
ade710a5 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
02809848 | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
ade710a5 TF |
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 | |
ed698112 NN |
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 | |
ade710a5 TF |
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. | |
ed698112 | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ade710a5 TF |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
ed698112 NN |
165 | sed ' |
166 | N | |
ade710a5 TF |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
ed698112 | 170 | t loop |
ade710a5 TF |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
ed698112 | 173 | ' >$as_me.lineno && |
ade710a5 | 174 | chmod +x $as_me.lineno || |
ed698112 NN |
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 | |
ade710a5 TF |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
ed698112 NN |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
ade710a5 TF |
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= ;; | |
ed698112 NN |
192 | esac |
193 | ||
ade710a5 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
ed698112 NN |
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 | |
ade710a5 TF |
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 | |
ed698112 | 207 | as_ln_s='cp -p' |
ade710a5 TF |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
ed698112 NN |
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 | |
ade710a5 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
ed698112 NN |
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 | ||
ade710a5 | 225 | as_executable_p="test -f" |
ed698112 NN |
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 | ||
ade710a5 TF |
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 | |
ed698112 NN |
242 | |
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
ee9dd372 | 248 | |
ade710a5 TF |
249 | exec 6>&1 |
250 | ||
ed698112 NN |
251 | # |
252 | # Initializations. | |
253 | # | |
ee9dd372 | 254 | ac_default_prefix=/usr/local |
ed698112 NN |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
ade710a5 TF |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
ed698112 | 267 | # Identity of this package. |
e3f92d3b MK |
268 | PACKAGE_NAME='libjava' |
269 | PACKAGE_TARNAME='libjava' | |
270 | PACKAGE_VERSION='version-unused' | |
271 | PACKAGE_STRING='libjava version-unused' | |
272 | PACKAGE_BUGREPORT='' | |
ed698112 NN |
273 | |
274 | ac_unique_file="java/lang/System.java" | |
ade710a5 | 275 | ac_subdirs_all="$ac_subdirs_all classpath libltdl" |
ed698112 NN |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
ade710a5 TF |
304 | #else |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
ed698112 NN |
308 | #endif |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
312 | ||
97b8365c | 313 | 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 libgcj_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 BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS 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 INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP 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 LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava 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 LIBMAGIC PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ 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 dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS' |
ed698112 | 314 | ac_subst_files='' |
ee9dd372 TT |
315 | |
316 | # Initialize some variables set by options. | |
ed698112 NN |
317 | ac_init_help= |
318 | ac_init_version=false | |
ee9dd372 TT |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
ed698112 | 321 | cache_file=/dev/null |
ee9dd372 | 322 | exec_prefix=NONE |
ee9dd372 | 323 | no_create= |
ee9dd372 TT |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
ee9dd372 TT |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
ed698112 NN |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ee9dd372 TT |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
ade710a5 | 344 | datadir='${prefix}/share' |
ee9dd372 TT |
345 | sysconfdir='${prefix}/etc' |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
ade710a5 | 348 | libdir='${exec_prefix}/lib' |
ee9dd372 TT |
349 | includedir='${prefix}/include' |
350 | oldincludedir='/usr/include' | |
ade710a5 TF |
351 | infodir='${prefix}/info' |
352 | mandir='${prefix}/man' | |
ee9dd372 | 353 | |
ee9dd372 TT |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
ee9dd372 TT |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
ade710a5 | 359 | eval "$ac_prev=\$ac_option" |
ee9dd372 TT |
360 | ac_prev= |
361 | continue | |
362 | fi | |
363 | ||
ade710a5 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ee9dd372 TT |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
ade710a5 | 368 | case $ac_option in |
ee9dd372 TT |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ed698112 | 373 | bindir=$ac_optarg ;; |
ee9dd372 TT |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
ed698112 | 376 | ac_prev=build_alias ;; |
ee9dd372 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ed698112 | 378 | build_alias=$ac_optarg ;; |
ee9dd372 TT |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ed698112 NN |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
ee9dd372 | 389 | |
ade710a5 | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
ee9dd372 | 391 | ac_prev=datadir ;; |
ade710a5 TF |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
393 | | --da=*) | |
ed698112 | 394 | datadir=$ac_optarg ;; |
ee9dd372 TT |
395 | |
396 | -disable-* | --disable-*) | |
ed698112 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ee9dd372 | 398 | # Reject names that are not valid shell variable names. |
ed698112 NN |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
ade710a5 | 403 | eval "enable_$ac_feature=no" ;; |
ee9dd372 TT |
404 | |
405 | -enable-* | --enable-*) | |
ed698112 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ee9dd372 | 407 | # Reject names that are not valid shell variable names. |
ed698112 NN |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
ade710a5 TF |
412 | case $ac_option in |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
414 | *) ac_optarg=yes ;; | |
415 | esac | |
416 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
ee9dd372 TT |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
ed698112 | 425 | exec_prefix=$ac_optarg ;; |
ee9dd372 TT |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
ed698112 NN |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
ee9dd372 TT |
437 | |
438 | -host | --host | --hos | --ho) | |
ed698112 | 439 | ac_prev=host_alias ;; |
ee9dd372 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
ed698112 | 441 | host_alias=$ac_optarg ;; |
ee9dd372 TT |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ed698112 | 448 | includedir=$ac_optarg ;; |
ee9dd372 TT |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ed698112 | 453 | infodir=$ac_optarg ;; |
ee9dd372 TT |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ed698112 | 458 | libdir=$ac_optarg ;; |
ee9dd372 TT |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
ed698112 | 465 | libexecdir=$ac_optarg ;; |
ee9dd372 TT |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
ade710a5 TF |
468 | | --localstate | --localstat | --localsta | --localst \ |
469 | | --locals | --local | --loca | --loc | --lo) | |
ee9dd372 TT |
470 | ac_prev=localstatedir ;; |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
ade710a5 TF |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ed698112 | 474 | localstatedir=$ac_optarg ;; |
ee9dd372 TT |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ed698112 | 479 | mandir=$ac_optarg ;; |
ee9dd372 TT |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ed698112 | 486 | | --no-cr | --no-c | -n) |
ee9dd372 TT |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ed698112 | 500 | oldincludedir=$ac_optarg ;; |
ee9dd372 TT |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ed698112 | 505 | prefix=$ac_optarg ;; |
ee9dd372 TT |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ed698112 | 512 | program_prefix=$ac_optarg ;; |
ee9dd372 TT |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ed698112 | 519 | program_suffix=$ac_optarg ;; |
ee9dd372 TT |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ed698112 | 536 | program_transform_name=$ac_optarg ;; |
ee9dd372 TT |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
ed698112 | 546 | sbindir=$ac_optarg ;; |
ee9dd372 TT |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
ed698112 | 557 | sharedstatedir=$ac_optarg ;; |
ee9dd372 TT |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
ed698112 | 562 | site=$ac_optarg ;; |
ee9dd372 TT |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ed698112 | 567 | srcdir=$ac_optarg ;; |
ee9dd372 TT |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ed698112 | 574 | sysconfdir=$ac_optarg ;; |
ee9dd372 TT |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ed698112 | 577 | ac_prev=target_alias ;; |
ee9dd372 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ed698112 | 579 | target_alias=$ac_optarg ;; |
ee9dd372 TT |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
ed698112 NN |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
ee9dd372 TT |
586 | |
587 | -with-* | --with-*) | |
ed698112 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ee9dd372 | 589 | # Reject names that are not valid shell variable names. |
ed698112 NN |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
ee9dd372 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ade710a5 TF |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
596 | *) ac_optarg=yes ;; | |
597 | esac | |
598 | eval "with_$ac_package='$ac_optarg'" ;; | |
ee9dd372 TT |
599 | |
600 | -without-* | --without-*) | |
ed698112 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ee9dd372 | 602 | # Reject names that are not valid shell variable names. |
ed698112 NN |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
ade710a5 | 607 | eval "with_$ac_package=no" ;; |
ee9dd372 TT |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ed698112 | 618 | x_includes=$ac_optarg ;; |
ee9dd372 TT |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ed698112 | 625 | x_libraries=$ac_optarg ;; |
ee9dd372 | 626 | |
ed698112 NN |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
ee9dd372 TT |
630 | ;; |
631 | ||
ed698112 NN |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
ade710a5 TF |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
639 | eval "$ac_envvar='$ac_optarg'" | |
ed698112 NN |
640 | export $ac_envvar ;; |
641 | ||
ee9dd372 | 642 | *) |
ed698112 NN |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ee9dd372 TT |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
ed698112 NN |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
ee9dd372 | 657 | fi |
ee9dd372 | 658 | |
ade710a5 TF |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
ee9dd372 | 661 | do |
ade710a5 | 662 | eval ac_val=$`echo $ac_var` |
ed698112 | 663 | case $ac_val in |
ade710a5 TF |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
666 | { (exit 1); exit 1; }; };; | |
667 | esac | |
668 | done | |
669 | ||
670 | # Be sure to have absolute paths. | |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
672 | localstatedir libdir includedir oldincludedir infodir mandir | |
673 | do | |
674 | eval ac_val=$`echo $ac_var` | |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
678 | { (exit 1); exit 1; }; };; | |
ee9dd372 TT |
679 | esac |
680 | done | |
681 | ||
ed698112 NN |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
684 | # FIXME: To remove some day. | |
685 | build=$build_alias | |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
689 | # FIXME: To remove some day. | |
690 | if test "x$host_alias" != x; then | |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
ee9dd372 | 699 | |
ed698112 NN |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
702 | ||
703 | test "$silent" = yes && exec 6>/dev/null | |
ee9dd372 | 704 | |
ee9dd372 TT |
705 | |
706 | # Find the source files, if location was not specified. | |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
ade710a5 TF |
709 | # Try the directory containing this script, then its parent. |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
ed698112 NN |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
712 | X"$0" : 'X\(//\)[^/]' \| \ | |
713 | X"$0" : 'X\(//\)$' \| \ | |
ade710a5 TF |
714 | X"$0" : 'X\(/\)' \| \ |
715 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 716 | echo X"$0" | |
ade710a5 TF |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
ee9dd372 | 722 | srcdir=$ac_confdir |
ade710a5 | 723 | if test ! -r $srcdir/$ac_unique_file; then |
ee9dd372 TT |
724 | srcdir=.. |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
ade710a5 TF |
729 | if test ! -r $srcdir/$ac_unique_file; then |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
732 | { (exit 1); exit 1; }; } | |
733 | else | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
ed698112 | 735 | { (exit 1); exit 1; }; } |
ade710a5 | 736 | fi |
ee9dd372 | 737 | fi |
ade710a5 TF |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
ed698112 | 740 | { (exit 1); exit 1; }; } |
ade710a5 TF |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CXXCPP_set=${CXXCPP+set} | |
755 | ac_env_CXXCPP_value=$CXXCPP | |
756 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
757 | ac_cv_env_CXXCPP_value=$CXXCPP | |
758 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
759 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
760 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
761 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
762 | ac_env_CPP_set=${CPP+set} | |
763 | ac_env_CPP_value=$CPP | |
764 | ac_cv_env_CPP_set=${CPP+set} | |
765 | ac_cv_env_CPP_value=$CPP | |
ed698112 NN |
766 | |
767 | # | |
768 | # Report the --help message. | |
769 | # | |
770 | if test "$ac_init_help" = "long"; then | |
771 | # Omit some internal or obsolete options to make the list less imposing. | |
772 | # This message is too long to be a string in the A/UX 3.1 sh. | |
773 | cat <<_ACEOF | |
e3f92d3b | 774 | \`configure' configures libjava version-unused to adapt to many kinds of systems. |
ed698112 NN |
775 | |
776 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
777 | ||
778 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
779 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
780 | ||
781 | Defaults for the options are specified in brackets. | |
782 | ||
783 | Configuration: | |
784 | -h, --help display this help and exit | |
785 | --help=short display options specific to this package | |
786 | --help=recursive display the short help of all the included packages | |
787 | -V, --version display version information and exit | |
788 | -q, --quiet, --silent do not print \`checking...' messages | |
789 | --cache-file=FILE cache test results in FILE [disabled] | |
790 | -C, --config-cache alias for \`--cache-file=config.cache' | |
791 | -n, --no-create do not create output files | |
792 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
793 | ||
ade710a5 TF |
794 | _ACEOF |
795 | ||
796 | cat <<_ACEOF | |
ed698112 NN |
797 | Installation directories: |
798 | --prefix=PREFIX install architecture-independent files in PREFIX | |
799 | [$ac_default_prefix] | |
800 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
801 | [PREFIX] | |
802 | ||
803 | By default, \`make install' will install all the files in | |
804 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
805 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
806 | for instance \`--prefix=\$HOME'. | |
807 | ||
808 | For better control, use the options below. | |
809 | ||
810 | Fine tuning of the installation directories: | |
811 | --bindir=DIR user executables [EPREFIX/bin] | |
812 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
813 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ade710a5 | 814 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
ed698112 NN |
815 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
816 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
817 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
818 | --libdir=DIR object code libraries [EPREFIX/lib] | |
819 | --includedir=DIR C header files [PREFIX/include] | |
820 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
ade710a5 TF |
821 | --infodir=DIR info documentation [PREFIX/info] |
822 | --mandir=DIR man documentation [PREFIX/man] | |
ed698112 NN |
823 | _ACEOF |
824 | ||
825 | cat <<\_ACEOF | |
826 | ||
827 | Program names: | |
828 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
829 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
830 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
831 | ||
832 | X features: | |
833 | --x-includes=DIR X include files are in DIR | |
834 | --x-libraries=DIR X library files are in DIR | |
835 | ||
836 | System types: | |
837 | --build=BUILD configure for building on BUILD [guessed] | |
838 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
839 | --target=TARGET configure for building compilers for TARGET [HOST] | |
840 | _ACEOF | |
841 | fi | |
842 | ||
843 | if test -n "$ac_init_help"; then | |
e3f92d3b MK |
844 | case $ac_init_help in |
845 | short | recursive ) echo "Configuration of libjava version-unused:";; | |
846 | esac | |
ed698112 NN |
847 | cat <<\_ACEOF |
848 | ||
849 | Optional Features: | |
850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
852 | --enable-version-specific-runtime-libs | |
aed6152d NN |
853 | specify that runtime libraries should be installed |
854 | in a compiler-specific directory | |
ed698112 | 855 | --enable-multilib build many library versions (default) |
648e8d6d | 856 | --enable-plugin build gcjwebplugin web browser plugin |
ac1ed908 | 857 | --enable-gconf-peer compile GConf native peers for util.preferences |
97b8365c TT |
858 | --enable-java-maintainer-mode |
859 | allow rebuilding of .class and .h files | |
e3f92d3b MK |
860 | --disable-dependency-tracking speeds up one-time build |
861 | --enable-dependency-tracking do not reject slow dependency extractors | |
862 | --enable-maintainer-mode enable make rules and dependencies not useful | |
863 | (and sometimes confusing) to the casual installer | |
b0fa81ee TT |
864 | --enable-libgcj-debug enable runtime debugging code |
865 | --enable-java-awt list of AWT peer implementations to be built | |
ed698112 NN |
866 | --enable-shared=PKGS build shared libraries default=yes |
867 | --enable-static=PKGS build static libraries default=yes | |
868 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
869 | --disable-libtool-lock avoid locking (might break parallel builds) | |
870 | --disable-getenv-properties | |
871 | don't set system properties from GCJ_PROPERTIES | |
872 | --enable-hash-synchronization | |
873 | use global hash table for monitor locks | |
48d0dd75 | 874 | --enable-gc-debug include full support for pointer backtracing etc. |
ed698112 | 875 | --enable-interpreter enable interpreter |
aed6152d NN |
876 | --enable-sjlj-exceptions |
877 | force use of builtin_setjmp for exceptions | |
ed698112 NN |
878 | --disable-java-net disable java.net |
879 | --disable-jvmpi disable JVMPI support | |
aed6152d | 880 | --enable-java-gc=TYPE choose garbage collector (default is boehm) |
5b7a26f6 | 881 | --disable-rpath do not hardcode runtime library paths |
2fb31455 | 882 | --enable-tls Use thread-local storage [default=yes] |
ed698112 NN |
883 | |
884 | Optional Packages: | |
885 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
886 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 887 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
ed698112 | 888 | --with-target-subdir=SUBDIR |
aed6152d NN |
889 | configure in a subdirectory |
890 | --with-cross-host=HOST configure with a cross compiler from HOST | |
891 | --with-newlib configure with newlib | |
97b8365c | 892 | --with-escher=ABS.PATH specify path to escher dir or JAR for X peers |
ed698112 NN |
893 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
894 | --with-pic try to use only PIC/non-PIC objects default=use both | |
97b8365c | 895 | --with-ecj-jar=FILE use preinstalled ecj jar |
c33b7bf0 TF |
896 | --with-java-home=DIRECTORY |
897 | value of java.home system property | |
aed6152d NN |
898 | --with-win32-nlsapi=ansi or unicows or unicode |
899 | native MinGW libgcj Win32 OS API (default is ansi) | |
ed698112 NN |
900 | --without-libffi don't use libffi |
901 | --with-ecos enable runtime eCos target support | |
902 | --with-system-zlib use installed libz | |
903 | --with-x use the X Window System | |
5b7a26f6 KC |
904 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
905 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
ed698112 NN |
906 | |
907 | Some influential environment variables: | |
908 | CC C compiler command | |
909 | CFLAGS C compiler flags | |
910 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
911 | nonstandard directory <lib dir> | |
ade710a5 TF |
912 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
913 | headers in a nonstandard directory <include dir> | |
ed698112 NN |
914 | CXX C++ compiler command |
915 | CXXFLAGS C++ compiler flags | |
916 | CXXCPP C++ preprocessor | |
917 | CPP C preprocessor | |
918 | ||
919 | Use these variables to override the choices made by `configure' or to help | |
920 | it to find libraries and programs with nonstandard names/locations. | |
921 | ||
922 | _ACEOF | |
923 | fi | |
924 | ||
925 | if test "$ac_init_help" = "recursive"; then | |
926 | # If there are subdirs, report their specific --help. | |
ade710a5 | 927 | ac_popdir=`pwd` |
ed698112 NN |
928 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
929 | test -d $ac_dir || continue | |
930 | ac_builddir=. | |
931 | ||
ade710a5 | 932 | if test "$ac_dir" != .; then |
ed698112 | 933 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ade710a5 TF |
934 | # A "../" for each directory in $ac_dir_suffix. |
935 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
936 | else | |
937 | ac_dir_suffix= ac_top_builddir= | |
938 | fi | |
ed698112 NN |
939 | |
940 | case $srcdir in | |
ade710a5 | 941 | .) # No --srcdir option. We are building in place. |
ed698112 | 942 | ac_srcdir=. |
ade710a5 TF |
943 | if test -z "$ac_top_builddir"; then |
944 | ac_top_srcdir=. | |
945 | else | |
946 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
947 | fi ;; | |
948 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
ed698112 | 949 | ac_srcdir=$srcdir$ac_dir_suffix; |
ade710a5 TF |
950 | ac_top_srcdir=$srcdir ;; |
951 | *) # Relative path. | |
952 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
953 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
954 | esac | |
955 | ||
956 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
957 | # the directories may not exist. | |
958 | case `pwd` in | |
959 | .) ac_abs_builddir="$ac_dir";; | |
960 | *) | |
961 | case "$ac_dir" in | |
962 | .) ac_abs_builddir=`pwd`;; | |
963 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
964 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
965 | esac;; | |
966 | esac | |
967 | case $ac_abs_builddir in | |
968 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
969 | *) | |
970 | case ${ac_top_builddir}. in | |
971 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
972 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
973 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
974 | esac;; | |
975 | esac | |
976 | case $ac_abs_builddir in | |
977 | .) ac_abs_srcdir=$ac_srcdir;; | |
978 | *) | |
979 | case $ac_srcdir in | |
980 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
981 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
982 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
983 | esac;; | |
984 | esac | |
985 | case $ac_abs_builddir in | |
986 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
987 | *) | |
988 | case $ac_top_srcdir in | |
989 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
990 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
991 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
992 | esac;; | |
ed698112 NN |
993 | esac |
994 | ||
ade710a5 TF |
995 | cd $ac_dir |
996 | # Check for guested configure; otherwise get Cygnus style configure. | |
ed698112 | 997 | if test -f $ac_srcdir/configure.gnu; then |
ade710a5 | 998 | echo |
ed698112 NN |
999 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1000 | elif test -f $ac_srcdir/configure; then | |
ade710a5 | 1001 | echo |
ed698112 | 1002 | $SHELL $ac_srcdir/configure --help=recursive |
ade710a5 TF |
1003 | elif test -f $ac_srcdir/configure.ac || |
1004 | test -f $ac_srcdir/configure.in; then | |
1005 | echo | |
1006 | $ac_configure --help | |
ed698112 NN |
1007 | else |
1008 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
ade710a5 TF |
1009 | fi |
1010 | cd $ac_popdir | |
ed698112 NN |
1011 | done |
1012 | fi | |
1013 | ||
ade710a5 | 1014 | test -n "$ac_init_help" && exit 0 |
ed698112 NN |
1015 | if $ac_init_version; then |
1016 | cat <<\_ACEOF | |
e3f92d3b | 1017 | libjava configure version-unused |
ade710a5 | 1018 | generated by GNU Autoconf 2.59 |
ed698112 | 1019 | |
ade710a5 | 1020 | Copyright (C) 2003 Free Software Foundation, Inc. |
ed698112 NN |
1021 | This configure script is free software; the Free Software Foundation |
1022 | gives unlimited permission to copy, distribute and modify it. | |
1023 | _ACEOF | |
ade710a5 | 1024 | exit 0 |
ed698112 | 1025 | fi |
ade710a5 TF |
1026 | exec 5>config.log |
1027 | cat >&5 <<_ACEOF | |
ed698112 NN |
1028 | This file contains any messages produced by compilers while |
1029 | running configure, to aid debugging if configure makes a mistake. | |
1030 | ||
e3f92d3b | 1031 | It was created by libjava $as_me version-unused, which was |
ade710a5 | 1032 | generated by GNU Autoconf 2.59. Invocation command line was |
ed698112 NN |
1033 | |
1034 | $ $0 $@ | |
1035 | ||
1036 | _ACEOF | |
1037 | { | |
1038 | cat <<_ASUNAME | |
1039 | ## --------- ## | |
1040 | ## Platform. ## | |
1041 | ## --------- ## | |
1042 | ||
1043 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1044 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1045 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1046 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1047 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1048 | ||
1049 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1050 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1051 | ||
1052 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1053 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1054 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
ade710a5 | 1055 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
ed698112 NN |
1056 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1057 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1058 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1059 | ||
1060 | _ASUNAME | |
1061 | ||
1062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1063 | for as_dir in $PATH | |
1064 | do | |
1065 | IFS=$as_save_IFS | |
1066 | test -z "$as_dir" && as_dir=. | |
1067 | echo "PATH: $as_dir" | |
1068 | done | |
1069 | ||
1070 | } >&5 | |
1071 | ||
1072 | cat >&5 <<_ACEOF | |
1073 | ||
1074 | ||
1075 | ## ----------- ## | |
1076 | ## Core tests. ## | |
1077 | ## ----------- ## | |
1078 | ||
1079 | _ACEOF | |
1080 | ||
1081 | ||
1082 | # Keep a trace of the command line. | |
1083 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1084 | # Strip out --silent because we don't want to record it for future runs. | |
1085 | # Also quote any args containing shell meta-characters. | |
1086 | # Make two passes to allow for proper duplicate-argument suppression. | |
1087 | ac_configure_args= | |
1088 | ac_configure_args0= | |
1089 | ac_configure_args1= | |
1090 | ac_sep= | |
1091 | ac_must_keep_next=false | |
1092 | for ac_pass in 1 2 | |
1093 | do | |
1094 | for ac_arg | |
1095 | do | |
1096 | case $ac_arg in | |
1097 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1098 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1099 | | -silent | --silent | --silen | --sile | --sil) | |
1100 | continue ;; | |
ade710a5 | 1101 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
ed698112 NN |
1102 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1103 | esac | |
1104 | case $ac_pass in | |
1105 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1106 | 2) | |
1107 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1108 | if test $ac_must_keep_next = true; then | |
1109 | ac_must_keep_next=false # Got value, back to normal. | |
1110 | else | |
1111 | case $ac_arg in | |
1112 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1113 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1114 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1115 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1116 | case "$ac_configure_args0 " in | |
1117 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1118 | esac | |
1119 | ;; | |
1120 | -* ) ac_must_keep_next=true ;; | |
1121 | esac | |
1122 | fi | |
1123 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1124 | # Get rid of the leading space. | |
1125 | ac_sep=" " | |
1126 | ;; | |
1127 | esac | |
1128 | done | |
1129 | done | |
1130 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1131 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1132 | ||
1133 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1134 | # config.log. We remove comments because anyway the quotes in there | |
1135 | # would cause problems or look ugly. | |
ade710a5 TF |
1136 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1137 | # such as our DU 5.0 friend, will then `close' the trap. | |
ed698112 NN |
1138 | trap 'exit_status=$? |
1139 | # Save into config.log some information that might help in debugging. | |
1140 | { | |
1141 | echo | |
1142 | ||
1143 | cat <<\_ASBOX | |
1144 | ## ---------------- ## | |
1145 | ## Cache variables. ## | |
1146 | ## ---------------- ## | |
1147 | _ASBOX | |
1148 | echo | |
1149 | # The following way of writing the cache mishandles newlines in values, | |
ade710a5 | 1150 | { |
ed698112 | 1151 | (set) 2>&1 | |
ade710a5 TF |
1152 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1153 | *ac_space=\ *) | |
ed698112 | 1154 | sed -n \ |
ade710a5 TF |
1155 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1156 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1157 | ;; | |
ed698112 | 1158 | *) |
ade710a5 TF |
1159 | sed -n \ |
1160 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
ed698112 | 1161 | ;; |
ade710a5 TF |
1162 | esac; |
1163 | } | |
ed698112 NN |
1164 | echo |
1165 | ||
1166 | cat <<\_ASBOX | |
1167 | ## ----------------- ## | |
1168 | ## Output variables. ## | |
1169 | ## ----------------- ## | |
1170 | _ASBOX | |
1171 | echo | |
1172 | for ac_var in $ac_subst_vars | |
1173 | do | |
ade710a5 TF |
1174 | eval ac_val=$`echo $ac_var` |
1175 | echo "$ac_var='"'"'$ac_val'"'"'" | |
ed698112 NN |
1176 | done | sort |
1177 | echo | |
1178 | ||
1179 | if test -n "$ac_subst_files"; then | |
1180 | cat <<\_ASBOX | |
ade710a5 TF |
1181 | ## ------------- ## |
1182 | ## Output files. ## | |
1183 | ## ------------- ## | |
ed698112 NN |
1184 | _ASBOX |
1185 | echo | |
1186 | for ac_var in $ac_subst_files | |
1187 | do | |
ade710a5 TF |
1188 | eval ac_val=$`echo $ac_var` |
1189 | echo "$ac_var='"'"'$ac_val'"'"'" | |
ed698112 NN |
1190 | done | sort |
1191 | echo | |
1192 | fi | |
1193 | ||
1194 | if test -s confdefs.h; then | |
1195 | cat <<\_ASBOX | |
1196 | ## ----------- ## | |
1197 | ## confdefs.h. ## | |
1198 | ## ----------- ## | |
1199 | _ASBOX | |
1200 | echo | |
ade710a5 | 1201 | sed "/^$/d" confdefs.h | sort |
ed698112 NN |
1202 | echo |
1203 | fi | |
1204 | test "$ac_signal" != 0 && | |
1205 | echo "$as_me: caught signal $ac_signal" | |
1206 | echo "$as_me: exit $exit_status" | |
1207 | } >&5 | |
ade710a5 TF |
1208 | rm -f core *.core && |
1209 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
ed698112 | 1210 | exit $exit_status |
ade710a5 | 1211 | ' 0 |
ed698112 NN |
1212 | for ac_signal in 1 2 13 15; do |
1213 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1214 | done | |
1215 | ac_signal=0 | |
1216 | ||
1217 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
ade710a5 TF |
1218 | rm -rf conftest* confdefs.h |
1219 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1220 | echo >confdefs.h | |
ed698112 NN |
1221 | |
1222 | # Predefined preprocessor variables. | |
1223 | ||
1224 | cat >>confdefs.h <<_ACEOF | |
1225 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1226 | _ACEOF | |
1227 | ||
1228 | ||
1229 | cat >>confdefs.h <<_ACEOF | |
1230 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1231 | _ACEOF | |
1232 | ||
1233 | ||
1234 | cat >>confdefs.h <<_ACEOF | |
1235 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1236 | _ACEOF | |
1237 | ||
ee9dd372 | 1238 | |
ed698112 NN |
1239 | cat >>confdefs.h <<_ACEOF |
1240 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1241 | _ACEOF | |
1242 | ||
1243 | ||
1244 | cat >>confdefs.h <<_ACEOF | |
1245 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1246 | _ACEOF | |
1247 | ||
1248 | ||
1249 | # Let the site file select an alternate cache file if it wants to. | |
ee9dd372 | 1250 | # Prefer explicitly selected file to automatically selected ones. |
ade710a5 TF |
1251 | if test -z "$CONFIG_SITE"; then |
1252 | if test "x$prefix" != xNONE; then | |
1253 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1254 | else | |
1255 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1256 | fi | |
ee9dd372 | 1257 | fi |
ade710a5 | 1258 | for ac_site_file in $CONFIG_SITE; do |
ee9dd372 | 1259 | if test -r "$ac_site_file"; then |
ed698112 NN |
1260 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1261 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1262 | sed 's/^/| /' "$ac_site_file" >&5 | |
ee9dd372 TT |
1263 | . "$ac_site_file" |
1264 | fi | |
1265 | done | |
1266 | ||
1267 | if test -r "$cache_file"; then | |
ed698112 NN |
1268 | # Some versions of bash will fail to source /dev/null (special |
1269 | # files actually), so we avoid doing that. | |
1270 | if test -f "$cache_file"; then | |
1271 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1272 | echo "$as_me: loading cache $cache_file" >&6;} | |
1273 | case $cache_file in | |
1274 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1275 | *) . ./$cache_file;; | |
1276 | esac | |
1277 | fi | |
ee9dd372 | 1278 | else |
ed698112 NN |
1279 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1280 | echo "$as_me: creating cache $cache_file" >&6;} | |
1281 | >$cache_file | |
1282 | fi | |
1283 | ||
1284 | # Check that the precious variables saved in the cache have kept the same | |
1285 | # value. | |
1286 | ac_cache_corrupted=false | |
ade710a5 TF |
1287 | for ac_var in `(set) 2>&1 | |
1288 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
ed698112 NN |
1289 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1290 | eval ac_new_set=\$ac_env_${ac_var}_set | |
ade710a5 TF |
1291 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1292 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
ed698112 NN |
1293 | case $ac_old_set,$ac_new_set in |
1294 | set,) | |
1295 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1296 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1297 | ac_cache_corrupted=: ;; | |
1298 | ,set) | |
1299 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1300 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1301 | ac_cache_corrupted=: ;; | |
1302 | ,);; | |
1303 | *) | |
1304 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1305 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1306 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1307 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1308 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1309 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1310 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1311 | ac_cache_corrupted=: | |
1312 | fi;; | |
1313 | esac | |
1314 | # Pass precious variables to config.status. | |
1315 | if test "$ac_new_set" = set; then | |
1316 | case $ac_new_val in | |
ade710a5 TF |
1317 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1318 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
ed698112 NN |
1319 | *) ac_arg=$ac_var=$ac_new_val ;; |
1320 | esac | |
1321 | case " $ac_configure_args " in | |
1322 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1323 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1324 | esac | |
1325 | fi | |
1326 | done | |
1327 | if $ac_cache_corrupted; then | |
1328 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1329 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1330 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1331 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1332 | { (exit 1); exit 1; }; } | |
ee9dd372 TT |
1333 | fi |
1334 | ||
ade710a5 TF |
1335 | ac_ext=c |
1336 | ac_cpp='$CPP $CPPFLAGS' | |
1337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1340 | ||
ed698112 NN |
1341 | |
1342 | ||
1343 | ||
1344 | ||
1345 | ||
1346 | ||
1347 | ||
1348 | ||
1349 | ||
e3f92d3b MK |
1350 | |
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
ed698112 NN |
1360 | |
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
fe3dac3d TT |
1368 | |
1369 | ||
7f7ba9bf | 1370 | ac_aux_dir= |
e3f92d3b | 1371 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
7f7ba9bf TT |
1372 | if test -f $ac_dir/install-sh; then |
1373 | ac_aux_dir=$ac_dir | |
1374 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1375 | break | |
1376 | elif test -f $ac_dir/install.sh; then | |
1377 | ac_aux_dir=$ac_dir | |
1378 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1379 | break | |
ed698112 NN |
1380 | elif test -f $ac_dir/shtool; then |
1381 | ac_aux_dir=$ac_dir | |
1382 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1383 | break | |
7f7ba9bf TT |
1384 | fi |
1385 | done | |
1386 | if test -z "$ac_aux_dir"; then | |
e3f92d3b MK |
1387 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1388 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
ed698112 | 1389 | { (exit 1); exit 1; }; } |
7f7ba9bf | 1390 | fi |
ed698112 NN |
1391 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1392 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1393 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
7f7ba9bf | 1394 | |
ed698112 NN |
1395 | # Make sure we can run config.sub. |
1396 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1397 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1398 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1399 | { (exit 1); exit 1; }; } | |
1400 | ||
ade710a5 TF |
1401 | echo "$as_me:$LINENO: checking build system type" >&5 |
1402 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
ed698112 NN |
1403 | if test "${ac_cv_build+set}" = set; then |
1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1405 | else | |
ade710a5 TF |
1406 | ac_cv_build_alias=$build_alias |
1407 | test -z "$ac_cv_build_alias" && | |
1408 | ac_cv_build_alias=`$ac_config_guess` | |
1409 | test -z "$ac_cv_build_alias" && | |
ed698112 NN |
1410 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1411 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1412 | { (exit 1); exit 1; }; } | |
ade710a5 TF |
1413 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1415 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
ed698112 NN |
1416 | { (exit 1); exit 1; }; } |
1417 | ||
1418 | fi | |
ade710a5 TF |
1419 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1420 | echo "${ECHO_T}$ac_cv_build" >&6 | |
ed698112 | 1421 | build=$ac_cv_build |
ade710a5 TF |
1422 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1423 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1424 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ed698112 NN |
1425 | |
1426 | ||
215c351a PB |
1427 | case ${build_alias} in |
1428 | "") build_noncanonical=${build} ;; | |
1429 | *) build_noncanonical=${build_alias} ;; | |
1430 | esac | |
1431 | ||
1432 | case ${host_alias} in | |
1433 | "") host_noncanonical=${build_noncanonical} ;; | |
1434 | *) host_noncanonical=${host_alias} ;; | |
1435 | esac | |
1436 | ||
1437 | case ${target_alias} in | |
1438 | "") target_noncanonical=${host_noncanonical} ;; | |
1439 | *) target_noncanonical=${target_alias} ;; | |
1440 | esac | |
1441 | ||
57255173 PB |
1442 | |
1443 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
1444 | # have matching libraries, they should use host libraries: Makefile.tpl | |
1445 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
1446 | # However, they still use the build modules, because the corresponding | |
1447 | # host modules (e.g. bison) are only built for the host when bootstrap | |
1448 | # finishes. So: | |
1449 | # - build_subdir is where we find build modules, and never changes. | |
1450 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
1451 | ||
1452 | # Prefix 'build-' so this never conflicts with target_subdir. | |
215c351a | 1453 | build_subdir="build-${build_noncanonical}" |
57255173 PB |
1454 | |
1455 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. | |
1456 | if test "${with_build_libsubdir+set}" = set; then | |
1457 | withval="$with_build_libsubdir" | |
1458 | build_libsubdir="$withval" | |
1459 | else | |
1460 | build_libsubdir="$build_subdir" | |
1461 | fi; | |
215c351a PB |
1462 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1463 | if ( test $srcdir = . && test -d gcc ) \ | |
1464 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1465 | host_subdir="host-${host_noncanonical}" | |
1466 | else | |
1467 | host_subdir=. | |
1468 | fi | |
1469 | # No prefix. | |
1470 | target_subdir=${target_noncanonical} | |
1471 | ||
1472 | ||
1473 | # We use these options to decide which functions to include. | |
1474 | ||
ade710a5 | 1475 | # Check whether --with-target-subdir or --without-target-subdir was given. |
215c351a | 1476 | if test "${with_target_subdir+set}" = set; then |
ade710a5 | 1477 | withval="$with_target_subdir" |
215c351a | 1478 | |
ade710a5 | 1479 | fi; |
215c351a PB |
1480 | |
1481 | # We may get other options which we don't document: | |
1482 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1483 | ||
1484 | # When building with srcdir == objdir, links to the source files will | |
1485 | # be created in directories within the target_subdir. We have to | |
1486 | # adjust toplevel_srcdir accordingly, so that configure finds | |
1487 | # install-sh and other auxiliary files that live in the top-level | |
1488 | # source directory. | |
1489 | if test "${srcdir}" = "."; then | |
1490 | if test -z "${with_target_subdir}"; then | |
1491 | toprel=".." | |
1492 | else | |
1493 | if test "${with_target_subdir}" != "."; then | |
1494 | toprel="${with_multisrctop}../.." | |
1495 | else | |
1496 | toprel="${with_multisrctop}.." | |
1497 | fi | |
1498 | fi | |
1499 | else | |
1500 | toprel=".." | |
1501 | fi | |
1502 | ||
1503 | libgcj_basedir=$srcdir/$toprel/./libjava | |
1504 | ||
1505 | ||
ade710a5 TF |
1506 | echo "$as_me:$LINENO: checking host system type" >&5 |
1507 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
ed698112 NN |
1508 | if test "${ac_cv_host+set}" = set; then |
1509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1510 | else | |
ade710a5 TF |
1511 | ac_cv_host_alias=$host_alias |
1512 | test -z "$ac_cv_host_alias" && | |
1513 | ac_cv_host_alias=$ac_cv_build_alias | |
1514 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1515 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1516 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
ed698112 NN |
1517 | { (exit 1); exit 1; }; } |
1518 | ||
1519 | fi | |
ade710a5 TF |
1520 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1521 | echo "${ECHO_T}$ac_cv_host" >&6 | |
ed698112 | 1522 | host=$ac_cv_host |
ade710a5 TF |
1523 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1524 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1525 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1526 | ||
1527 | ||
1528 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1529 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
ed698112 NN |
1530 | if test "${ac_cv_target+set}" = set; then |
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1532 | else | |
ade710a5 TF |
1533 | ac_cv_target_alias=$target_alias |
1534 | test "x$ac_cv_target_alias" = "x" && | |
1535 | ac_cv_target_alias=$ac_cv_host_alias | |
1536 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1537 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1538 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
ed698112 NN |
1539 | { (exit 1); exit 1; }; } |
1540 | ||
1541 | fi | |
ade710a5 TF |
1542 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1543 | echo "${ECHO_T}$ac_cv_target" >&6 | |
ed698112 | 1544 | target=$ac_cv_target |
ade710a5 TF |
1545 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1546 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1547 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
7f7ba9bf | 1548 | |
7f7ba9bf TT |
1549 | |
1550 | # The aliases save the names the user supplied, while $host etc. | |
1551 | # will get canonicalized. | |
ed698112 | 1552 | test -n "$target_alias" && |
7f7ba9bf TT |
1553 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1554 | NONENONEs,x,x, && | |
1555 | program_prefix=${target_alias}- | |
bc03b358 NN |
1556 | case ${build_alias} in |
1557 | "") build_noncanonical=${build} ;; | |
1558 | *) build_noncanonical=${build_alias} ;; | |
1559 | esac | |
1560 | ||
bc03b358 NN |
1561 | case ${target_alias} in |
1562 | "") target_noncanonical=${host_noncanonical} ;; | |
1563 | *) target_noncanonical=${target_alias} ;; | |
1564 | esac | |
1565 | ||
1566 | ||
60557047 MK |
1567 | |
1568 | ||
bc03b358 NN |
1569 | # This works around the fact that libtool configuration may change LD |
1570 | # for this particular configuration, but some shells, instead of | |
1571 | # keeping the changes in LD private, export them just because LD is | |
1572 | # exported. | |
1573 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1574 | ||
ade710a5 TF |
1575 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1576 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
ed698112 NN |
1577 | LN_S=$as_ln_s |
1578 | if test "$LN_S" = "ln -s"; then | |
ade710a5 TF |
1579 | echo "$as_me:$LINENO: result: yes" >&5 |
1580 | echo "${ECHO_T}yes" >&6 | |
bc03b358 | 1581 | else |
ade710a5 TF |
1582 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1583 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bc03b358 NN |
1584 | fi |
1585 | ||
1586 | ||
1587 | # This works around an automake problem. | |
1588 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" | |
1589 | ||
1590 | ||
ed698112 | 1591 | |
ade710a5 | 1592 | # Check whether --with-cross-host or --without-cross-host was given. |
bc03b358 | 1593 | if test "${with_cross_host+set}" = set; then |
ade710a5 | 1594 | withval="$with_cross_host" |
ed698112 | 1595 | |
ade710a5 | 1596 | fi; |
bc03b358 NN |
1597 | |
1598 | ||
ade710a5 | 1599 | # Check whether --with-newlib or --without-newlib was given. |
bc03b358 | 1600 | if test "${with_newlib+set}" = set; then |
ade710a5 | 1601 | withval="$with_newlib" |
bc03b358 | 1602 | |
ade710a5 | 1603 | fi; |
bc03b358 | 1604 | |
ade710a5 | 1605 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. |
bc03b358 | 1606 | if test "${enable_version_specific_runtime_libs+set}" = set; then |
ade710a5 TF |
1607 | enableval="$enable_version_specific_runtime_libs" |
1608 | case "$enableval" in | |
bc03b358 NN |
1609 | yes) version_specific_libs=yes ;; |
1610 | no) version_specific_libs=no ;; | |
ed698112 NN |
1611 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 |
1612 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1613 | { (exit 1); exit 1; }; };; | |
bc03b358 NN |
1614 | esac |
1615 | else | |
1616 | version_specific_libs=no | |
1617 | ||
ade710a5 | 1618 | fi; |
bc03b358 | 1619 | |
aed6152d | 1620 | # Default to --enable-multilib |
ade710a5 | 1621 | # Check whether --enable-multilib or --disable-multilib was given. |
bc03b358 | 1622 | if test "${enable_multilib+set}" = set; then |
ade710a5 TF |
1623 | enableval="$enable_multilib" |
1624 | case "${enableval}" in | |
bc03b358 NN |
1625 | yes) multilib=yes ;; |
1626 | no) multilib=no ;; | |
ed698112 NN |
1627 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5 |
1628 | echo "$as_me: error: bad value ${enableval} for multilib option" >&2;} | |
1629 | { (exit 1); exit 1; }; } ;; | |
bc03b358 NN |
1630 | esac |
1631 | else | |
1632 | multilib=yes | |
ade710a5 | 1633 | fi; |
648e8d6d TF |
1634 | # Check whether --enable-plugin or --disable-plugin was given. |
1635 | if test "${enable_plugin+set}" = set; then | |
1636 | enableval="$enable_plugin" | |
1637 | case "$enableval" in | |
1638 | yes) plugin_enabled=yes ;; | |
1639 | no) plugin_enabled=no ;; | |
1640 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5 | |
1641 | echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;} | |
1642 | { (exit 1); exit 1; }; };; | |
1643 | esac | |
1644 | else | |
1645 | plugin_enabled=no | |
1646 | ||
1647 | fi; | |
1648 | ||
ac1ed908 MW |
1649 | # Check whether --enable-gconf-peer or --disable-gconf-peer was given. |
1650 | if test "${enable_gconf_peer+set}" = set; then | |
1651 | enableval="$enable_gconf_peer" | |
1652 | case "$enableval" in | |
1653 | yes) gconf_enabled=yes ;; | |
1654 | no) gconf_enabled=no ;; | |
1655 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5 | |
1656 | echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;} | |
1657 | { (exit 1); exit 1; }; };; | |
1658 | esac | |
1659 | else | |
1660 | gconf_enabled=no | |
1661 | ||
1662 | fi; | |
1663 | ||
97b8365c TT |
1664 | # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given. |
1665 | if test "${enable_java_maintainer_mode+set}" = set; then | |
1666 | enableval="$enable_java_maintainer_mode" | |
1667 | ||
1668 | fi; | |
1669 | ||
1670 | ||
1671 | if test "$enable_java_maintainer_mode" = yes; then | |
1672 | JAVA_MAINTAINER_MODE_TRUE= | |
1673 | JAVA_MAINTAINER_MODE_FALSE='#' | |
1674 | else | |
1675 | JAVA_MAINTAINER_MODE_TRUE='#' | |
1676 | JAVA_MAINTAINER_MODE_FALSE= | |
1677 | fi | |
1678 | ||
1679 | ||
aed6152d | 1680 | # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
bc03b358 | 1681 | |
ee9dd372 | 1682 | |
ed698112 NN |
1683 | # (1) We use an abnormal CXX (without library references), so we |
1684 | # must cache it under a different name. | |
1685 | # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or | |
1686 | # the non-multilib-adjusted value will be used in multilibs. | |
1687 | # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves. | |
1688 | # (4) As another side effect, automake doesn't automatically include them | |
1689 | # in Makefile.in. | |
1690 | # (5) For libstdc++-v3, -fno-builtin must be present here so that a | |
1691 | # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and | |
1692 | # used in later tests. This may not be necessary in libjava; I don't know. | |
1693 | ||
1694 | ||
ed698112 NN |
1695 | save_CXXFLAGS="$CXXFLAGS" |
1696 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
1697 | ac_ext=c | |
1698 | ac_cpp='$CPP $CPPFLAGS' | |
1699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1702 | if test -n "$ac_tool_prefix"; then | |
1703 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1704 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ade710a5 TF |
1705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1707 | if test "${ac_cv_prog_CC+set}" = set; then |
1708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1709 | else | |
1710 | if test -n "$CC"; then | |
1711 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1712 | else | |
1713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1714 | for as_dir in $PATH | |
1715 | do | |
1716 | IFS=$as_save_IFS | |
1717 | test -z "$as_dir" && as_dir=. | |
1718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1720 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1722 | break 2 | |
1723 | fi | |
1724 | done | |
1725 | done | |
ee9dd372 | 1726 | |
ed698112 NN |
1727 | fi |
1728 | fi | |
1729 | CC=$ac_cv_prog_CC | |
1730 | if test -n "$CC"; then | |
ade710a5 TF |
1731 | echo "$as_me:$LINENO: result: $CC" >&5 |
1732 | echo "${ECHO_T}$CC" >&6 | |
ed698112 | 1733 | else |
ade710a5 TF |
1734 | echo "$as_me:$LINENO: result: no" >&5 |
1735 | echo "${ECHO_T}no" >&6 | |
ed698112 | 1736 | fi |
54ce7452 | 1737 | |
ed698112 NN |
1738 | fi |
1739 | if test -z "$ac_cv_prog_CC"; then | |
1740 | ac_ct_CC=$CC | |
1741 | # Extract the first word of "gcc", so it can be a program name with args. | |
ee9dd372 | 1742 | set dummy gcc; ac_word=$2 |
ade710a5 TF |
1743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1745 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1747 | else | |
1748 | if test -n "$ac_ct_CC"; then | |
1749 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1750 | else | |
1751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1752 | for as_dir in $PATH | |
1753 | do | |
1754 | IFS=$as_save_IFS | |
1755 | test -z "$as_dir" && as_dir=. | |
1756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1758 | ac_cv_prog_ac_ct_CC="gcc" |
1759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1760 | break 2 | |
1761 | fi | |
1762 | done | |
1763 | done | |
1764 | ||
1765 | fi | |
1766 | fi | |
1767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1768 | if test -n "$ac_ct_CC"; then | |
ade710a5 TF |
1769 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1770 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
ed698112 | 1771 | else |
ade710a5 TF |
1772 | echo "$as_me:$LINENO: result: no" >&5 |
1773 | echo "${ECHO_T}no" >&6 | |
ed698112 NN |
1774 | fi |
1775 | ||
ade710a5 | 1776 | CC=$ac_ct_CC |
ed698112 NN |
1777 | else |
1778 | CC="$ac_cv_prog_CC" | |
1779 | fi | |
1780 | ||
1781 | if test -z "$CC"; then | |
ade710a5 TF |
1782 | if test -n "$ac_tool_prefix"; then |
1783 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ed698112 | 1784 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ade710a5 TF |
1785 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1787 | if test "${ac_cv_prog_CC+set}" = set; then |
1788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 TT |
1789 | else |
1790 | if test -n "$CC"; then | |
1791 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1792 | else | |
ed698112 NN |
1793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1794 | for as_dir in $PATH | |
1795 | do | |
1796 | IFS=$as_save_IFS | |
1797 | test -z "$as_dir" && as_dir=. | |
1798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1800 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1802 | break 2 | |
1803 | fi | |
1804 | done | |
1805 | done | |
1806 | ||
ee9dd372 TT |
1807 | fi |
1808 | fi | |
ed698112 | 1809 | CC=$ac_cv_prog_CC |
ee9dd372 | 1810 | if test -n "$CC"; then |
ade710a5 TF |
1811 | echo "$as_me:$LINENO: result: $CC" >&5 |
1812 | echo "${ECHO_T}$CC" >&6 | |
ed698112 | 1813 | else |
ade710a5 TF |
1814 | echo "$as_me:$LINENO: result: no" >&5 |
1815 | echo "${ECHO_T}no" >&6 | |
ed698112 NN |
1816 | fi |
1817 | ||
ade710a5 TF |
1818 | fi |
1819 | if test -z "$ac_cv_prog_CC"; then | |
1820 | ac_ct_CC=$CC | |
1821 | # Extract the first word of "cc", so it can be a program name with args. | |
1822 | set dummy cc; ac_word=$2 | |
1823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1825 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1827 | else | |
1828 | if test -n "$ac_ct_CC"; then | |
1829 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1830 | else | |
1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1832 | for as_dir in $PATH | |
1833 | do | |
1834 | IFS=$as_save_IFS | |
1835 | test -z "$as_dir" && as_dir=. | |
1836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1838 | ac_cv_prog_ac_ct_CC="cc" | |
1839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1840 | break 2 | |
02809848 | 1841 | fi |
ade710a5 TF |
1842 | done |
1843 | done | |
1844 | ||
1845 | fi | |
1846 | fi | |
1847 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1848 | if test -n "$ac_ct_CC"; then | |
1849 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1850 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1851 | else | |
1852 | echo "$as_me:$LINENO: result: no" >&5 | |
1853 | echo "${ECHO_T}no" >&6 | |
1854 | fi | |
1855 | ||
1856 | CC=$ac_ct_CC | |
1857 | else | |
1858 | CC="$ac_cv_prog_CC" | |
1859 | fi | |
1860 | ||
ed698112 | 1861 | fi |
ee9dd372 TT |
1862 | if test -z "$CC"; then |
1863 | # Extract the first word of "cc", so it can be a program name with args. | |
1864 | set dummy cc; ac_word=$2 | |
ade710a5 TF |
1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1867 | if test "${ac_cv_prog_CC+set}" = set; then |
1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 TT |
1869 | else |
1870 | if test -n "$CC"; then | |
1871 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1872 | else | |
ee9dd372 | 1873 | ac_prog_rejected=no |
ed698112 NN |
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1875 | for as_dir in $PATH | |
1876 | do | |
1877 | IFS=$as_save_IFS | |
1878 | test -z "$as_dir" && as_dir=. | |
1879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1881 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1882 | ac_prog_rejected=yes | |
1883 | continue | |
1884 | fi | |
1885 | ac_cv_prog_CC="cc" | |
1886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1887 | break 2 | |
1888 | fi | |
1889 | done | |
1890 | done | |
1891 | ||
ee9dd372 TT |
1892 | if test $ac_prog_rejected = yes; then |
1893 | # We found a bogon in the path, so make sure we never use it. | |
1894 | set dummy $ac_cv_prog_CC | |
1895 | shift | |
ed698112 | 1896 | if test $# != 0; then |
ee9dd372 TT |
1897 | # We chose a different compiler from the bogus one. |
1898 | # However, it has the same basename, so the bogon will be chosen | |
1899 | # first if we set CC to just the basename; use the full file name. | |
1900 | shift | |
ed698112 | 1901 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ee9dd372 TT |
1902 | fi |
1903 | fi | |
1904 | fi | |
1905 | fi | |
ed698112 | 1906 | CC=$ac_cv_prog_CC |
ee9dd372 | 1907 | if test -n "$CC"; then |
ade710a5 TF |
1908 | echo "$as_me:$LINENO: result: $CC" >&5 |
1909 | echo "${ECHO_T}$CC" >&6 | |
ee9dd372 | 1910 | else |
ade710a5 TF |
1911 | echo "$as_me:$LINENO: result: no" >&5 |
1912 | echo "${ECHO_T}no" >&6 | |
ee9dd372 TT |
1913 | fi |
1914 | ||
ed698112 NN |
1915 | fi |
1916 | if test -z "$CC"; then | |
1917 | if test -n "$ac_tool_prefix"; then | |
ade710a5 | 1918 | for ac_prog in cl |
ed698112 NN |
1919 | do |
1920 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1921 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ade710a5 TF |
1922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1924 | if test "${ac_cv_prog_CC+set}" = set; then |
1925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
158a8e6b AO |
1926 | else |
1927 | if test -n "$CC"; then | |
1928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1929 | else | |
ed698112 NN |
1930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1931 | for as_dir in $PATH | |
1932 | do | |
1933 | IFS=$as_save_IFS | |
1934 | test -z "$as_dir" && as_dir=. | |
1935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1937 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1939 | break 2 | |
1940 | fi | |
1941 | done | |
1942 | done | |
1943 | ||
158a8e6b AO |
1944 | fi |
1945 | fi | |
ed698112 | 1946 | CC=$ac_cv_prog_CC |
158a8e6b | 1947 | if test -n "$CC"; then |
ade710a5 TF |
1948 | echo "$as_me:$LINENO: result: $CC" >&5 |
1949 | echo "${ECHO_T}$CC" >&6 | |
158a8e6b | 1950 | else |
ade710a5 TF |
1951 | echo "$as_me:$LINENO: result: no" >&5 |
1952 | echo "${ECHO_T}no" >&6 | |
158a8e6b | 1953 | fi |
ed698112 NN |
1954 | |
1955 | test -n "$CC" && break | |
1956 | done | |
1957 | fi | |
1958 | if test -z "$CC"; then | |
1959 | ac_ct_CC=$CC | |
ade710a5 | 1960 | for ac_prog in cl |
ed698112 NN |
1961 | do |
1962 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1963 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
1964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
1966 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1968 | else | |
1969 | if test -n "$ac_ct_CC"; then | |
1970 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1971 | else | |
1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1973 | for as_dir in $PATH | |
1974 | do | |
1975 | IFS=$as_save_IFS | |
1976 | test -z "$as_dir" && as_dir=. | |
1977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 1978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
1979 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1981 | break 2 | |
158a8e6b | 1982 | fi |
ed698112 NN |
1983 | done |
1984 | done | |
1985 | ||
1986 | fi | |
1987 | fi | |
1988 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1989 | if test -n "$ac_ct_CC"; then | |
ade710a5 TF |
1990 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1991 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
ed698112 | 1992 | else |
ade710a5 TF |
1993 | echo "$as_me:$LINENO: result: no" >&5 |
1994 | echo "${ECHO_T}no" >&6 | |
ee9dd372 TT |
1995 | fi |
1996 | ||
ed698112 NN |
1997 | test -n "$ac_ct_CC" && break |
1998 | done | |
1999 | ||
ade710a5 | 2000 | CC=$ac_ct_CC |
ed698112 NN |
2001 | fi |
2002 | ||
2003 | fi | |
2004 | ||
2005 | ||
2006 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2007 | See \`config.log' for more details." >&5 | |
2008 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2009 | See \`config.log' for more details." >&2;} | |
2010 | { (exit 1); exit 1; }; } | |
2011 | ||
2012 | # Provide some information about the compiler. | |
ade710a5 TF |
2013 | echo "$as_me:$LINENO:" \ |
2014 | "checking for C compiler version" >&5 | |
ed698112 | 2015 | ac_compiler=`set X $ac_compile; echo $2` |
ade710a5 TF |
2016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2017 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
ed698112 NN |
2018 | ac_status=$? |
2019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2020 | (exit $ac_status); } | |
ade710a5 TF |
2021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2022 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
ed698112 NN |
2023 | ac_status=$? |
2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2025 | (exit $ac_status); } | |
ade710a5 TF |
2026 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2027 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
ed698112 NN |
2028 | ac_status=$? |
2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2030 | (exit $ac_status); } | |
2031 | ||
2032 | cat >conftest.$ac_ext <<_ACEOF | |
2033 | /* confdefs.h. */ | |
2034 | _ACEOF | |
2035 | cat confdefs.h >>conftest.$ac_ext | |
2036 | cat >>conftest.$ac_ext <<_ACEOF | |
2037 | /* end confdefs.h. */ | |
2038 | ||
2039 | int | |
2040 | main () | |
2041 | { | |
2042 | ||
2043 | ; | |
2044 | return 0; | |
2045 | } | |
2046 | _ACEOF | |
2047 | # FIXME: Cleanup? | |
2048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2049 | (eval $ac_link) 2>&5 | |
2050 | ac_status=$? | |
2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2052 | (exit $ac_status); }; then | |
2053 | gcc_no_link=no | |
2054 | else | |
2055 | gcc_no_link=yes | |
2056 | fi | |
2057 | ||
2058 | if test x$gcc_no_link = xyes; then | |
2059 | # Setting cross_compile will disable run tests; it will | |
2060 | # also disable AC_CHECK_FILE but that's generally | |
2061 | # correct if we can't link. | |
2062 | cross_compiling=yes | |
2063 | EXEEXT= | |
2064 | else | |
ade710a5 | 2065 | cat >conftest.$ac_ext <<_ACEOF |
ed698112 NN |
2066 | /* confdefs.h. */ |
2067 | _ACEOF | |
2068 | cat confdefs.h >>conftest.$ac_ext | |
2069 | cat >>conftest.$ac_ext <<_ACEOF | |
2070 | /* end confdefs.h. */ | |
2071 | ||
2072 | int | |
2073 | main () | |
2074 | { | |
158a8e6b | 2075 | |
ed698112 NN |
2076 | ; |
2077 | return 0; | |
2078 | } | |
2079 | _ACEOF | |
2080 | ac_clean_files_save=$ac_clean_files | |
ade710a5 | 2081 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ed698112 NN |
2082 | # Try to create an executable without -o first, disregard a.out. |
2083 | # It will help us diagnose broken compilers, and finding out an intuition | |
2084 | # of exeext. | |
ade710a5 TF |
2085 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2086 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ed698112 NN |
2087 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2088 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2089 | (eval $ac_link_default) 2>&5 | |
2090 | ac_status=$? | |
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2092 | (exit $ac_status); }; then | |
ade710a5 TF |
2093 | # Find the output, starting from the most likely. This scheme is |
2094 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2095 | # resort. | |
2096 | ||
2097 | # Be careful to initialize this variable, since it used to be cached. | |
2098 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2099 | ac_cv_exeext= | |
2100 | # b.out is created by i960 compilers. | |
2101 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
ed698112 NN |
2102 | do |
2103 | test -f "$ac_file" || continue | |
2104 | case $ac_file in | |
ade710a5 TF |
2105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2106 | ;; | |
2107 | conftest.$ac_ext ) | |
2108 | # This is the source file. | |
2109 | ;; | |
2110 | [ab].out ) | |
2111 | # We found the default executable, but exeext='' is most | |
2112 | # certainly right. | |
2113 | break;; | |
2114 | *.* ) | |
2115 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2116 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2117 | # but it would be cool to find out if it's true. Does anybody | |
2118 | # maintain Libtool? --akim. | |
2119 | export ac_cv_exeext | |
2120 | break;; | |
2121 | * ) | |
2122 | break;; | |
ed698112 NN |
2123 | esac |
2124 | done | |
ee9dd372 | 2125 | else |
ed698112 NN |
2126 | echo "$as_me: failed program was:" >&5 |
2127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2128 | ||
2129 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2130 | See \`config.log' for more details." >&5 | |
2131 | echo "$as_me: error: C compiler cannot create executables | |
2132 | See \`config.log' for more details." >&2;} | |
2133 | { (exit 77); exit 77; }; } | |
2134 | fi | |
2135 | ||
ade710a5 TF |
2136 | ac_exeext=$ac_cv_exeext |
2137 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2138 | echo "${ECHO_T}$ac_file" >&6 | |
2139 | ||
2140 | # Check the compiler produces executables we can run. If not, either | |
ed698112 | 2141 | # the compiler is broken, or we cross compile. |
ade710a5 TF |
2142 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2143 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
ed698112 NN |
2144 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2145 | # If not cross compiling, check that we can run a simple program. | |
2146 | if test "$cross_compiling" != yes; then | |
2147 | if { ac_try='./$ac_file' | |
2148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2149 | (eval $ac_try) 2>&5 | |
2150 | ac_status=$? | |
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2152 | (exit $ac_status); }; }; then | |
2153 | cross_compiling=no | |
2154 | else | |
2155 | if test "$cross_compiling" = maybe; then | |
2156 | cross_compiling=yes | |
2157 | else | |
2158 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2159 | If you meant to cross compile, use \`--host'. | |
2160 | See \`config.log' for more details." >&5 | |
2161 | echo "$as_me: error: cannot run C compiled programs. | |
2162 | If you meant to cross compile, use \`--host'. | |
2163 | See \`config.log' for more details." >&2;} | |
2164 | { (exit 1); exit 1; }; } | |
2165 | fi | |
2166 | fi | |
2167 | fi | |
ade710a5 TF |
2168 | echo "$as_me:$LINENO: result: yes" >&5 |
2169 | echo "${ECHO_T}yes" >&6 | |
ed698112 | 2170 | |
ade710a5 TF |
2171 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2172 | ac_clean_files=$ac_clean_files_save | |
2173 | # Check the compiler produces executables we can run. If not, either | |
2174 | # the compiler is broken, or we cross compile. | |
2175 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2176 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2177 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2178 | echo "${ECHO_T}$cross_compiling" >&6 | |
02809848 | 2179 | |
ade710a5 TF |
2180 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2181 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ed698112 NN |
2183 | (eval $ac_link) 2>&5 |
2184 | ac_status=$? | |
2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2186 | (exit $ac_status); }; then | |
ade710a5 TF |
2187 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2188 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2189 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2190 | # `rm'. | |
2191 | for ac_file in conftest.exe conftest conftest.*; do | |
2192 | test -f "$ac_file" || continue | |
2193 | case $ac_file in | |
2194 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2195 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2196 | export ac_cv_exeext | |
2197 | break;; | |
2198 | * ) break;; | |
2199 | esac | |
2200 | done | |
ee9dd372 | 2201 | else |
ed698112 NN |
2202 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2203 | See \`config.log' for more details." >&5 | |
2204 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2205 | See \`config.log' for more details." >&2;} | |
2206 | { (exit 1); exit 1; }; } | |
ee9dd372 | 2207 | fi |
ed698112 | 2208 | |
ade710a5 TF |
2209 | rm -f conftest$ac_cv_exeext |
2210 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2211 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
ed698112 | 2212 | |
ade710a5 | 2213 | rm -f conftest.$ac_ext |
ed698112 NN |
2214 | EXEEXT=$ac_cv_exeext |
2215 | ac_exeext=$EXEEXT | |
ade710a5 TF |
2216 | fi |
2217 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2218 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
ed698112 NN |
2219 | if test "${ac_cv_objext+set}" = set; then |
2220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2221 | else | |
ade710a5 TF |
2222 | cat >conftest.$ac_ext <<_ACEOF |
2223 | /* confdefs.h. */ | |
2224 | _ACEOF | |
2225 | cat confdefs.h >>conftest.$ac_ext | |
2226 | cat >>conftest.$ac_ext <<_ACEOF | |
2227 | /* end confdefs.h. */ | |
2228 | ||
2229 | int | |
2230 | main () | |
2231 | { | |
2232 | ||
2233 | ; | |
2234 | return 0; | |
2235 | } | |
2236 | _ACEOF | |
2237 | rm -f conftest.o conftest.obj | |
ed698112 NN |
2238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2239 | (eval $ac_compile) 2>&5 | |
2240 | ac_status=$? | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); }; then | |
ade710a5 | 2243 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
ed698112 | 2244 | case $ac_file in |
ade710a5 | 2245 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
ed698112 NN |
2246 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2247 | break;; | |
2248 | esac | |
2249 | done | |
158a8e6b | 2250 | else |
ed698112 NN |
2251 | echo "$as_me: failed program was:" >&5 |
2252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2253 | ||
2254 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2255 | See \`config.log' for more details." >&5 | |
2256 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2257 | See \`config.log' for more details." >&2;} | |
2258 | { (exit 1); exit 1; }; } | |
158a8e6b AO |
2259 | fi |
2260 | ||
ade710a5 | 2261 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ed698112 | 2262 | fi |
ade710a5 TF |
2263 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2264 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
ed698112 NN |
2265 | OBJEXT=$ac_cv_objext |
2266 | ac_objext=$OBJEXT | |
ade710a5 TF |
2267 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2268 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
ed698112 NN |
2269 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2271 | else | |
2272 | cat >conftest.$ac_ext <<_ACEOF | |
2273 | /* confdefs.h. */ | |
2274 | _ACEOF | |
2275 | cat confdefs.h >>conftest.$ac_ext | |
2276 | cat >>conftest.$ac_ext <<_ACEOF | |
2277 | /* end confdefs.h. */ | |
2278 | ||
2279 | int | |
2280 | main () | |
2281 | { | |
2282 | #ifndef __GNUC__ | |
2283 | choke me | |
2284 | #endif | |
2285 | ||
2286 | ; | |
2287 | return 0; | |
2288 | } | |
2289 | _ACEOF | |
2290 | rm -f conftest.$ac_objext | |
2291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2292 | (eval $ac_compile) 2>conftest.er1 | |
2293 | ac_status=$? | |
2294 | grep -v '^ *+' conftest.er1 >conftest.err | |
2295 | rm -f conftest.er1 | |
2296 | cat conftest.err >&5 | |
2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2298 | (exit $ac_status); } && | |
ade710a5 TF |
2299 | { ac_try='test -z "$ac_c_werror_flag" |
2300 | || test ! -s conftest.err' | |
ed698112 NN |
2301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2302 | (eval $ac_try) 2>&5 | |
2303 | ac_status=$? | |
2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2305 | (exit $ac_status); }; } && | |
2306 | { ac_try='test -s conftest.$ac_objext' | |
2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2308 | (eval $ac_try) 2>&5 | |
2309 | ac_status=$? | |
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2311 | (exit $ac_status); }; }; then | |
2312 | ac_compiler_gnu=yes | |
2313 | else | |
2314 | echo "$as_me: failed program was:" >&5 | |
2315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2316 | ||
ade710a5 | 2317 | ac_compiler_gnu=no |
ed698112 NN |
2318 | fi |
2319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2320 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2321 | ||
2322 | fi | |
ade710a5 TF |
2323 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2324 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
ed698112 NN |
2325 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2326 | ac_test_CFLAGS=${CFLAGS+set} | |
2327 | ac_save_CFLAGS=$CFLAGS | |
ade710a5 TF |
2328 | CFLAGS="-g" |
2329 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2330 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
ed698112 NN |
2331 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2333 | else | |
ade710a5 | 2334 | cat >conftest.$ac_ext <<_ACEOF |
ed698112 NN |
2335 | /* confdefs.h. */ |
2336 | _ACEOF | |
2337 | cat confdefs.h >>conftest.$ac_ext | |
2338 | cat >>conftest.$ac_ext <<_ACEOF | |
2339 | /* end confdefs.h. */ | |
2340 | ||
2341 | int | |
2342 | main () | |
2343 | { | |
2344 | ||
2345 | ; | |
2346 | return 0; | |
2347 | } | |
2348 | _ACEOF | |
2349 | rm -f conftest.$ac_objext | |
2350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2351 | (eval $ac_compile) 2>conftest.er1 | |
2352 | ac_status=$? | |
2353 | grep -v '^ *+' conftest.er1 >conftest.err | |
2354 | rm -f conftest.er1 | |
2355 | cat conftest.err >&5 | |
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 | (exit $ac_status); } && | |
ade710a5 TF |
2358 | { ac_try='test -z "$ac_c_werror_flag" |
2359 | || test ! -s conftest.err' | |
ed698112 NN |
2360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2361 | (eval $ac_try) 2>&5 | |
2362 | ac_status=$? | |
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2364 | (exit $ac_status); }; } && | |
2365 | { ac_try='test -s conftest.$ac_objext' | |
2366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2367 | (eval $ac_try) 2>&5 | |
2368 | ac_status=$? | |
2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2370 | (exit $ac_status); }; }; then | |
ee9dd372 TT |
2371 | ac_cv_prog_cc_g=yes |
2372 | else | |
ed698112 NN |
2373 | echo "$as_me: failed program was:" >&5 |
2374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ee9dd372 | 2375 | |
ade710a5 TF |
2376 | ac_cv_prog_cc_g=no |
2377 | fi | |
2378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2379 | fi | |
2380 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2381 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2382 | if test "$ac_test_CFLAGS" = set; then | |
2383 | CFLAGS=$ac_save_CFLAGS | |
2384 | elif test $ac_cv_prog_cc_g = yes; then | |
2385 | if test "$GCC" = yes; then | |
2386 | CFLAGS="-g -O2" | |
2387 | else | |
2388 | CFLAGS="-g" | |
2389 | fi | |
2390 | else | |
2391 | if test "$GCC" = yes; then | |
2392 | CFLAGS="-O2" | |
2393 | else | |
2394 | CFLAGS= | |
2395 | fi | |
2396 | fi | |
2397 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2398 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2399 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2401 | else | |
2402 | ac_cv_prog_cc_stdc=no | |
2403 | ac_save_CC=$CC | |
2404 | cat >conftest.$ac_ext <<_ACEOF | |
ed698112 NN |
2405 | /* confdefs.h. */ |
2406 | _ACEOF | |
2407 | cat confdefs.h >>conftest.$ac_ext | |
2408 | cat >>conftest.$ac_ext <<_ACEOF | |
2409 | /* end confdefs.h. */ | |
ade710a5 TF |
2410 | #include <stdarg.h> |
2411 | #include <stdio.h> | |
2412 | #include <sys/types.h> | |
2413 | #include <sys/stat.h> | |
2414 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2415 | struct buf { int x; }; | |
2416 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2417 | static char *e (p, i) | |
2418 | char **p; | |
2419 | int i; | |
2420 | { | |
2421 | return p[i]; | |
2422 | } | |
2423 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2424 | { | |
2425 | char *s; | |
2426 | va_list v; | |
2427 | va_start (v,p); | |
2428 | s = g (p, va_arg (v,int)); | |
2429 | va_end (v); | |
2430 | return s; | |
2431 | } | |
ee9dd372 | 2432 | |
ade710a5 TF |
2433 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2434 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2435 | These don't provoke an error unfortunately, instead are silently treated | |
2436 | as 'x'. The following induces an error, until -std1 is added to get | |
2437 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2438 | array size at least. It's necessary to write '\x00'==0 to get something | |
2439 | that's true only with -std1. */ | |
2440 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2441 | ||
2442 | int test (int i, double x); | |
2443 | struct s1 {int (*f) (int a);}; | |
2444 | struct s2 {int (*f) (double a);}; | |
2445 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2446 | int argc; | |
2447 | char **argv; | |
ed698112 NN |
2448 | int |
2449 | main () | |
2450 | { | |
ade710a5 | 2451 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ed698112 NN |
2452 | ; |
2453 | return 0; | |
2454 | } | |
2455 | _ACEOF | |
ade710a5 TF |
2456 | # Don't try gcc -ansi; that turns off useful extensions and |
2457 | # breaks some systems' header files. | |
2458 | # AIX -qlanglvl=ansi | |
2459 | # Ultrix and OSF/1 -std1 | |
2460 | # HP-UX 10.20 and later -Ae | |
2461 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2462 | # SVR4 -Xc -D__EXTENSIONS__ | |
2463 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2464 | do | |
2465 | CC="$ac_save_CC $ac_arg" | |
2466 | rm -f conftest.$ac_objext | |
ed698112 NN |
2467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2468 | (eval $ac_compile) 2>conftest.er1 | |
2469 | ac_status=$? | |
2470 | grep -v '^ *+' conftest.er1 >conftest.err | |
2471 | rm -f conftest.er1 | |
2472 | cat conftest.err >&5 | |
2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2474 | (exit $ac_status); } && | |
ade710a5 TF |
2475 | { ac_try='test -z "$ac_c_werror_flag" |
2476 | || test ! -s conftest.err' | |
ed698112 NN |
2477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2478 | (eval $ac_try) 2>&5 | |
2479 | ac_status=$? | |
2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2481 | (exit $ac_status); }; } && | |
2482 | { ac_try='test -s conftest.$ac_objext' | |
2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2484 | (eval $ac_try) 2>&5 | |
2485 | ac_status=$? | |
2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2487 | (exit $ac_status); }; }; then | |
ade710a5 TF |
2488 | ac_cv_prog_cc_stdc=$ac_arg |
2489 | break | |
ed698112 NN |
2490 | else |
2491 | echo "$as_me: failed program was:" >&5 | |
2492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2493 | ||
ade710a5 TF |
2494 | fi |
2495 | rm -f conftest.err conftest.$ac_objext | |
2496 | done | |
2497 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2498 | CC=$ac_save_CC | |
e2ea015c | 2499 | |
ade710a5 TF |
2500 | fi |
2501 | ||
2502 | case "x$ac_cv_prog_cc_stdc" in | |
2503 | x|xno) | |
2504 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2505 | echo "${ECHO_T}none needed" >&6 ;; | |
2506 | *) | |
2507 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2508 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2509 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2510 | esac | |
02809848 | 2511 | |
ade710a5 TF |
2512 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2513 | # in C++ we need to declare it. In case someone uses the same compiler | |
2514 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2515 | # the declaration of exit, since it's the most demanding environment. | |
2516 | cat >conftest.$ac_ext <<_ACEOF | |
2517 | #ifndef __cplusplus | |
2518 | choke me | |
2519 | #endif | |
2520 | _ACEOF | |
2521 | rm -f conftest.$ac_objext | |
2522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2523 | (eval $ac_compile) 2>conftest.er1 | |
2524 | ac_status=$? | |
2525 | grep -v '^ *+' conftest.er1 >conftest.err | |
2526 | rm -f conftest.er1 | |
2527 | cat conftest.err >&5 | |
2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2529 | (exit $ac_status); } && | |
2530 | { ac_try='test -z "$ac_c_werror_flag" | |
2531 | || test ! -s conftest.err' | |
2532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2533 | (eval $ac_try) 2>&5 | |
2534 | ac_status=$? | |
2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2536 | (exit $ac_status); }; } && | |
2537 | { ac_try='test -s conftest.$ac_objext' | |
2538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2539 | (eval $ac_try) 2>&5 | |
2540 | ac_status=$? | |
2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2542 | (exit $ac_status); }; }; then | |
2543 | for ac_declaration in \ | |
2544 | '' \ | |
2545 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2546 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2547 | 'extern "C" void exit (int) throw ();' \ | |
2548 | 'extern "C" void exit (int);' \ | |
2549 | 'void exit (int);' | |
2550 | do | |
2551 | cat >conftest.$ac_ext <<_ACEOF | |
2552 | /* confdefs.h. */ | |
2553 | _ACEOF | |
2554 | cat confdefs.h >>conftest.$ac_ext | |
2555 | cat >>conftest.$ac_ext <<_ACEOF | |
2556 | /* end confdefs.h. */ | |
2557 | $ac_declaration | |
2558 | #include <stdlib.h> | |
2559 | int | |
2560 | main () | |
2561 | { | |
2562 | exit (42); | |
ed698112 NN |
2563 | ; |
2564 | return 0; | |
2565 | } | |
2566 | _ACEOF | |
2567 | rm -f conftest.$ac_objext | |
2568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2569 | (eval $ac_compile) 2>conftest.er1 | |
2570 | ac_status=$? | |
2571 | grep -v '^ *+' conftest.er1 >conftest.err | |
2572 | rm -f conftest.er1 | |
2573 | cat conftest.err >&5 | |
2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2575 | (exit $ac_status); } && | |
ade710a5 TF |
2576 | { ac_try='test -z "$ac_c_werror_flag" |
2577 | || test ! -s conftest.err' | |
ed698112 NN |
2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2579 | (eval $ac_try) 2>&5 | |
2580 | ac_status=$? | |
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2582 | (exit $ac_status); }; } && | |
2583 | { ac_try='test -s conftest.$ac_objext' | |
2584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2585 | (eval $ac_try) 2>&5 | |
2586 | ac_status=$? | |
2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2588 | (exit $ac_status); }; }; then | |
ade710a5 | 2589 | : |
ee9dd372 | 2590 | else |
ed698112 NN |
2591 | echo "$as_me: failed program was:" >&5 |
2592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2593 | ||
ade710a5 | 2594 | continue |
02809848 | 2595 | fi |
02809848 | 2596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ade710a5 | 2597 | cat >conftest.$ac_ext <<_ACEOF |
ed698112 NN |
2598 | /* confdefs.h. */ |
2599 | _ACEOF | |
2600 | cat confdefs.h >>conftest.$ac_ext | |
2601 | cat >>conftest.$ac_ext <<_ACEOF | |
2602 | /* end confdefs.h. */ | |
ade710a5 | 2603 | $ac_declaration |
ed698112 NN |
2604 | int |
2605 | main () | |
2606 | { | |
ade710a5 | 2607 | exit (42); |
ed698112 NN |
2608 | ; |
2609 | return 0; | |
2610 | } | |
2611 | _ACEOF | |
ade710a5 | 2612 | rm -f conftest.$ac_objext |
ed698112 NN |
2613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2614 | (eval $ac_compile) 2>conftest.er1 | |
2615 | ac_status=$? | |
2616 | grep -v '^ *+' conftest.er1 >conftest.err | |
2617 | rm -f conftest.er1 | |
2618 | cat conftest.err >&5 | |
2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2620 | (exit $ac_status); } && | |
ade710a5 TF |
2621 | { ac_try='test -z "$ac_c_werror_flag" |
2622 | || test ! -s conftest.err' | |
ed698112 NN |
2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2624 | (eval $ac_try) 2>&5 | |
2625 | ac_status=$? | |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2627 | (exit $ac_status); }; } && | |
2628 | { ac_try='test -s conftest.$ac_objext' | |
2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2630 | (eval $ac_try) 2>&5 | |
2631 | ac_status=$? | |
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2633 | (exit $ac_status); }; }; then | |
ade710a5 | 2634 | break |
ed698112 NN |
2635 | else |
2636 | echo "$as_me: failed program was:" >&5 | |
2637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2638 | ||
ee9dd372 | 2639 | fi |
ade710a5 | 2640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ed698112 | 2641 | done |
ade710a5 TF |
2642 | rm -f conftest* |
2643 | if test -n "$ac_declaration"; then | |
2644 | echo '#ifdef __cplusplus' >>confdefs.h | |
2645 | echo $ac_declaration >>confdefs.h | |
2646 | echo '#endif' >>confdefs.h | |
ee9dd372 | 2647 | fi |
ed698112 | 2648 | |
ade710a5 TF |
2649 | else |
2650 | echo "$as_me: failed program was:" >&5 | |
2651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ed698112 | 2652 | |
ade710a5 TF |
2653 | fi |
2654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ed698112 NN |
2655 | ac_ext=c |
2656 | ac_cpp='$CPP $CPPFLAGS' | |
2657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ee9dd372 | 2660 | |
ade710a5 | 2661 | ac_ext=cc |
ed698112 NN |
2662 | ac_cpp='$CXXCPP $CPPFLAGS' |
2663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
ade710a5 TF |
2666 | if test -n "$ac_tool_prefix"; then |
2667 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
ed698112 NN |
2668 | do |
2669 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2670 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ade710a5 TF |
2671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
97b8365c | 2673 | if test "${ac_cv_prog_CXX+set}" = set; then |
ed698112 NN |
2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2675 | else | |
2676 | if test -n "$CXX"; then | |
97b8365c | 2677 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
ed698112 NN |
2678 | else |
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2680 | for as_dir in $PATH | |
2681 | do | |
2682 | IFS=$as_save_IFS | |
2683 | test -z "$as_dir" && as_dir=. | |
2684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 2685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
97b8365c | 2686 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
ed698112 NN |
2687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2688 | break 2 | |
2689 | fi | |
2690 | done | |
ee9dd372 | 2691 | done |
158a8e6b | 2692 | |
ed698112 NN |
2693 | fi |
2694 | fi | |
97b8365c | 2695 | CXX=$ac_cv_prog_CXX |
ed698112 | 2696 | if test -n "$CXX"; then |
ade710a5 TF |
2697 | echo "$as_me:$LINENO: result: $CXX" >&5 |
2698 | echo "${ECHO_T}$CXX" >&6 | |
ed698112 | 2699 | else |
ade710a5 TF |
2700 | echo "$as_me:$LINENO: result: no" >&5 |
2701 | echo "${ECHO_T}no" >&6 | |
ed698112 | 2702 | fi |
ee9dd372 | 2703 | |
ed698112 NN |
2704 | test -n "$CXX" && break |
2705 | done | |
2706 | fi | |
2707 | if test -z "$CXX"; then | |
2708 | ac_ct_CXX=$CXX | |
ade710a5 | 2709 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
ed698112 NN |
2710 | do |
2711 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2712 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
2713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
2715 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 2717 | else |
ed698112 NN |
2718 | if test -n "$ac_ct_CXX"; then |
2719 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
ee9dd372 | 2720 | else |
ed698112 NN |
2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2722 | for as_dir in $PATH | |
2723 | do | |
2724 | IFS=$as_save_IFS | |
2725 | test -z "$as_dir" && as_dir=. | |
2726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 2727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
2728 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2730 | break 2 | |
2731 | fi | |
2732 | done | |
2733 | done | |
2734 | ||
2735 | fi | |
ee9dd372 | 2736 | fi |
ed698112 NN |
2737 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2738 | if test -n "$ac_ct_CXX"; then | |
ade710a5 TF |
2739 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2740 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
ed698112 | 2741 | else |
ade710a5 TF |
2742 | echo "$as_me:$LINENO: result: no" >&5 |
2743 | echo "${ECHO_T}no" >&6 | |
ee9dd372 TT |
2744 | fi |
2745 | ||
ed698112 NN |
2746 | test -n "$ac_ct_CXX" && break |
2747 | done | |
ade710a5 | 2748 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
ed698112 | 2749 | |
ade710a5 | 2750 | CXX=$ac_ct_CXX |
ed698112 NN |
2751 | fi |
2752 | ||
ade710a5 | 2753 | |
ed698112 | 2754 | # Provide some information about the compiler. |
ade710a5 TF |
2755 | echo "$as_me:$LINENO:" \ |
2756 | "checking for C++ compiler version" >&5 | |
ed698112 | 2757 | ac_compiler=`set X $ac_compile; echo $2` |
ade710a5 TF |
2758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2759 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
ed698112 NN |
2760 | ac_status=$? |
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2762 | (exit $ac_status); } | |
ade710a5 TF |
2763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2764 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
ed698112 NN |
2765 | ac_status=$? |
2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2767 | (exit $ac_status); } | |
ade710a5 TF |
2768 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2769 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
ed698112 NN |
2770 | ac_status=$? |
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2772 | (exit $ac_status); } | |
2773 | ||
ade710a5 TF |
2774 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2775 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
ed698112 NN |
2776 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2778 | else | |
2779 | cat >conftest.$ac_ext <<_ACEOF | |
2780 | /* confdefs.h. */ | |
2781 | _ACEOF | |
2782 | cat confdefs.h >>conftest.$ac_ext | |
2783 | cat >>conftest.$ac_ext <<_ACEOF | |
2784 | /* end confdefs.h. */ | |
ee9dd372 | 2785 | |
ed698112 NN |
2786 | int |
2787 | main () | |
2788 | { | |
2789 | #ifndef __GNUC__ | |
2790 | choke me | |
2791 | #endif | |
2792 | ||
2793 | ; | |
2794 | return 0; | |
2795 | } | |
2796 | _ACEOF | |
2797 | rm -f conftest.$ac_objext | |
2798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2799 | (eval $ac_compile) 2>conftest.er1 | |
2800 | ac_status=$? | |
2801 | grep -v '^ *+' conftest.er1 >conftest.err | |
2802 | rm -f conftest.er1 | |
2803 | cat conftest.err >&5 | |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2805 | (exit $ac_status); } && | |
ade710a5 TF |
2806 | { ac_try='test -z "$ac_cxx_werror_flag" |
2807 | || test ! -s conftest.err' | |
ed698112 NN |
2808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2809 | (eval $ac_try) 2>&5 | |
2810 | ac_status=$? | |
2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2812 | (exit $ac_status); }; } && | |
2813 | { ac_try='test -s conftest.$ac_objext' | |
2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2815 | (eval $ac_try) 2>&5 | |
2816 | ac_status=$? | |
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2818 | (exit $ac_status); }; }; then | |
2819 | ac_compiler_gnu=yes | |
2820 | else | |
2821 | echo "$as_me: failed program was:" >&5 | |
2822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2823 | ||
ade710a5 | 2824 | ac_compiler_gnu=no |
ed698112 NN |
2825 | fi |
2826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2827 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2828 | ||
2829 | fi | |
ade710a5 TF |
2830 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2831 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
ed698112 NN |
2832 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
2833 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2834 | ac_save_CXXFLAGS=$CXXFLAGS | |
ade710a5 TF |
2835 | CXXFLAGS="-g" |
2836 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2837 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
ed698112 NN |
2838 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2840 | else | |
ade710a5 | 2841 | cat >conftest.$ac_ext <<_ACEOF |
ed698112 NN |
2842 | /* confdefs.h. */ |
2843 | _ACEOF | |
2844 | cat confdefs.h >>conftest.$ac_ext | |
2845 | cat >>conftest.$ac_ext <<_ACEOF | |
2846 | /* end confdefs.h. */ | |
2847 | ||
2848 | int | |
2849 | main () | |
2850 | { | |
2851 | ||
2852 | ; | |
2853 | return 0; | |
2854 | } | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2858 | (eval $ac_compile) 2>conftest.er1 | |
2859 | ac_status=$? | |
2860 | grep -v '^ *+' conftest.er1 >conftest.err | |
2861 | rm -f conftest.er1 | |
2862 | cat conftest.err >&5 | |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2864 | (exit $ac_status); } && | |
ade710a5 TF |
2865 | { ac_try='test -z "$ac_cxx_werror_flag" |
2866 | || test ! -s conftest.err' | |
ed698112 NN |
2867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2868 | (eval $ac_try) 2>&5 | |
2869 | ac_status=$? | |
2870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2871 | (exit $ac_status); }; } && | |
2872 | { ac_try='test -s conftest.$ac_objext' | |
2873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2874 | (eval $ac_try) 2>&5 | |
2875 | ac_status=$? | |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2877 | (exit $ac_status); }; }; then | |
ee9dd372 TT |
2878 | ac_cv_prog_cxx_g=yes |
2879 | else | |
ed698112 NN |
2880 | echo "$as_me: failed program was:" >&5 |
2881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ee9dd372 | 2882 | |
ade710a5 TF |
2883 | ac_cv_prog_cxx_g=no |
2884 | fi | |
2885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2886 | fi | |
2887 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2888 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2889 | if test "$ac_test_CXXFLAGS" = set; then | |
2890 | CXXFLAGS=$ac_save_CXXFLAGS | |
2891 | elif test $ac_cv_prog_cxx_g = yes; then | |
2892 | if test "$GXX" = yes; then | |
2893 | CXXFLAGS="-g -O2" | |
2894 | else | |
2895 | CXXFLAGS="-g" | |
2896 | fi | |
2897 | else | |
2898 | if test "$GXX" = yes; then | |
2899 | CXXFLAGS="-O2" | |
2900 | else | |
2901 | CXXFLAGS= | |
2902 | fi | |
2903 | fi | |
2904 | for ac_declaration in \ | |
2905 | '' \ | |
2906 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2907 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2908 | 'extern "C" void exit (int) throw ();' \ | |
2909 | 'extern "C" void exit (int);' \ | |
2910 | 'void exit (int);' | |
2911 | do | |
2912 | cat >conftest.$ac_ext <<_ACEOF | |
ed698112 NN |
2913 | /* confdefs.h. */ |
2914 | _ACEOF | |
2915 | cat confdefs.h >>conftest.$ac_ext | |
2916 | cat >>conftest.$ac_ext <<_ACEOF | |
2917 | /* end confdefs.h. */ | |
ade710a5 TF |
2918 | $ac_declaration |
2919 | #include <stdlib.h> | |
ed698112 NN |
2920 | int |
2921 | main () | |
2922 | { | |
ade710a5 | 2923 | exit (42); |
ed698112 NN |
2924 | ; |
2925 | return 0; | |
2926 | } | |
2927 | _ACEOF | |
2928 | rm -f conftest.$ac_objext | |
2929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2930 | (eval $ac_compile) 2>conftest.er1 | |
2931 | ac_status=$? | |
2932 | grep -v '^ *+' conftest.er1 >conftest.err | |
2933 | rm -f conftest.er1 | |
2934 | cat conftest.err >&5 | |
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2936 | (exit $ac_status); } && | |
ade710a5 TF |
2937 | { ac_try='test -z "$ac_cxx_werror_flag" |
2938 | || test ! -s conftest.err' | |
ed698112 NN |
2939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2940 | (eval $ac_try) 2>&5 | |
2941 | ac_status=$? | |
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2943 | (exit $ac_status); }; } && | |
2944 | { ac_try='test -s conftest.$ac_objext' | |
2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2946 | (eval $ac_try) 2>&5 | |
2947 | ac_status=$? | |
2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2949 | (exit $ac_status); }; }; then | |
2950 | : | |
2951 | else | |
2952 | echo "$as_me: failed program was:" >&5 | |
2953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2954 | ||
ade710a5 TF |
2955 | continue |
2956 | fi | |
2957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2958 | cat >conftest.$ac_ext <<_ACEOF | |
ed698112 NN |
2959 | /* confdefs.h. */ |
2960 | _ACEOF | |
2961 | cat confdefs.h >>conftest.$ac_ext | |
2962 | cat >>conftest.$ac_ext <<_ACEOF | |
2963 | /* end confdefs.h. */ | |
ade710a5 | 2964 | $ac_declaration |
ed698112 NN |
2965 | int |
2966 | main () | |
2967 | { | |
ade710a5 | 2968 | exit (42); |
ed698112 NN |
2969 | ; |
2970 | return 0; | |
2971 | } | |
2972 | _ACEOF | |
2973 | rm -f conftest.$ac_objext | |
2974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2975 | (eval $ac_compile) 2>conftest.er1 | |
2976 | ac_status=$? | |
2977 | grep -v '^ *+' conftest.er1 >conftest.err | |
2978 | rm -f conftest.er1 | |
2979 | cat conftest.err >&5 | |
2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2981 | (exit $ac_status); } && | |
ade710a5 TF |
2982 | { ac_try='test -z "$ac_cxx_werror_flag" |
2983 | || test ! -s conftest.err' | |
ed698112 NN |
2984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2985 | (eval $ac_try) 2>&5 | |
2986 | ac_status=$? | |
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2988 | (exit $ac_status); }; } && | |
2989 | { ac_try='test -s conftest.$ac_objext' | |
2990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2991 | (eval $ac_try) 2>&5 | |
2992 | ac_status=$? | |
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2994 | (exit $ac_status); }; }; then | |
ade710a5 | 2995 | break |
e2ea015c | 2996 | else |
ed698112 NN |
2997 | echo "$as_me: failed program was:" >&5 |
2998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2999 | ||
02809848 | 3000 | fi |
ed698112 | 3001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ade710a5 TF |
3002 | done |
3003 | rm -f conftest* | |
3004 | if test -n "$ac_declaration"; then | |
3005 | echo '#ifdef __cplusplus' >>confdefs.h | |
3006 | echo $ac_declaration >>confdefs.h | |
3007 | echo '#endif' >>confdefs.h | |
158a8e6b AO |
3008 | fi |
3009 | ||
ed698112 NN |
3010 | ac_ext=c |
3011 | ac_cpp='$CPP $CPPFLAGS' | |
3012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3015 | ||
3016 | CXXFLAGS="$save_CXXFLAGS" | |
3017 | ||
3018 | ||
3019 | ||
3020 | ||
158a8e6b | 3021 | |
e3f92d3b | 3022 | am__api_version="1.9" |
36609570 NN |
3023 | # Find a good install program. We prefer a C program (faster), |
3024 | # so one script is as good as another. But avoid the broken or | |
3025 | # incompatible versions: | |
3026 | # SysV /etc/install, /usr/sbin/install | |
3027 | # SunOS /usr/etc/install | |
3028 | # IRIX /sbin/install | |
3029 | # AIX /bin/install | |
ed698112 | 3030 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
36609570 NN |
3031 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3032 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3033 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ed698112 | 3034 | # OS/2's system install, which has a completely different semantic |
36609570 | 3035 | # ./install, which can be erroneously created by make from ./install.sh. |
ade710a5 TF |
3036 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3037 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
36609570 | 3038 | if test -z "$INSTALL"; then |
ed698112 NN |
3039 | if test "${ac_cv_path_install+set}" = set; then |
3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36609570 | 3041 | else |
ed698112 NN |
3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3043 | for as_dir in $PATH | |
3044 | do | |
3045 | IFS=$as_save_IFS | |
3046 | test -z "$as_dir" && as_dir=. | |
3047 | # Account for people who put trailing slashes in PATH elements. | |
3048 | case $as_dir/ in | |
3049 | ./ | .// | /cC/* | \ | |
3050 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3051 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3052 | /usr/ucb/* ) ;; | |
3053 | *) | |
3054 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3055 | # Don't use installbsd from OSF since it installs stuff as root | |
3056 | # by default. | |
3057 | for ac_prog in ginstall scoinst install; do | |
3058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3059 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
36609570 | 3060 | if test $ac_prog = install && |
ed698112 | 3061 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
36609570 NN |
3062 | # AIX install. It has an incompatible calling convention. |
3063 | : | |
ed698112 NN |
3064 | elif test $ac_prog = install && |
3065 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3066 | # program-specific install script used by HP pwplus--don't use. | |
3067 | : | |
36609570 | 3068 | else |
ed698112 NN |
3069 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3070 | break 3 | |
36609570 NN |
3071 | fi |
3072 | fi | |
3073 | done | |
ed698112 NN |
3074 | done |
3075 | ;; | |
3076 | esac | |
3077 | done | |
3078 | ||
36609570 NN |
3079 | |
3080 | fi | |
3081 | if test "${ac_cv_path_install+set}" = set; then | |
ed698112 | 3082 | INSTALL=$ac_cv_path_install |
36609570 | 3083 | else |
ade710a5 TF |
3084 | # As a last resort, use the slow shell script. We don't cache a |
3085 | # path for INSTALL within a source directory, because that will | |
36609570 | 3086 | # break other packages using the cache if that directory is |
ade710a5 | 3087 | # removed, or if the path is relative. |
ed698112 | 3088 | INSTALL=$ac_install_sh |
36609570 NN |
3089 | fi |
3090 | fi | |
ade710a5 TF |
3091 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3092 | echo "${ECHO_T}$INSTALL" >&6 | |
36609570 NN |
3093 | |
3094 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3095 | # It thinks the first close brace ends the variable substitution. | |
3096 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3097 | ||
ed698112 | 3098 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
36609570 NN |
3099 | |
3100 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3101 | ||
ade710a5 TF |
3102 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
3103 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
36609570 NN |
3104 | # Just in case |
3105 | sleep 1 | |
e3f92d3b | 3106 | echo timestamp > conftest.file |
36609570 NN |
3107 | # Do `set' in a subshell so we don't clobber the current shell's |
3108 | # arguments. Must try -L first in case configure is actually a | |
3109 | # symlink; some systems play weird games with the mod time of symlinks | |
3110 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3111 | # directory). | |
3112 | if ( | |
e3f92d3b | 3113 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
36609570 NN |
3114 | if test "$*" = "X"; then |
3115 | # -L didn't work. | |
e3f92d3b | 3116 | set X `ls -t $srcdir/configure conftest.file` |
36609570 | 3117 | fi |
e3f92d3b MK |
3118 | rm -f conftest.file |
3119 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3120 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
36609570 NN |
3121 | |
3122 | # If neither matched, then we have a broken ls. This can happen | |
3123 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3124 | # broken ls alias from the environment. This has actually | |
3125 | # happened. Such a system could not be considered "sane". | |
ed698112 NN |
3126 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
3127 | alias in your environment" >&5 | |
3128 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
3129 | alias in your environment" >&2;} | |
3130 | { (exit 1); exit 1; }; } | |
36609570 NN |
3131 | fi |
3132 | ||
e3f92d3b | 3133 | test "$2" = conftest.file |
36609570 NN |
3134 | ) |
3135 | then | |
3136 | # Ok. | |
3137 | : | |
3138 | else | |
ed698112 NN |
3139 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
3140 | Check your system clock" >&5 | |
3141 | echo "$as_me: error: newly created file is older than distributed files! | |
3142 | Check your system clock" >&2;} | |
3143 | { (exit 1); exit 1; }; } | |
36609570 | 3144 | fi |
ade710a5 TF |
3145 | echo "$as_me:$LINENO: result: yes" >&5 |
3146 | echo "${ECHO_T}yes" >&6 | |
36609570 | 3147 | test "$program_prefix" != NONE && |
ade710a5 | 3148 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
36609570 NN |
3149 | # Use a double $ so make ignores it. |
3150 | test "$program_suffix" != NONE && | |
ade710a5 | 3151 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
ed698112 NN |
3152 | # Double any \ or $. echo might interpret backslashes. |
3153 | # By default was `s,x,x', remove it if useless. | |
3154 | cat <<\_ACEOF >conftest.sed | |
3155 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3156 | _ACEOF | |
3157 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
ade710a5 | 3158 | rm conftest.sed |
ed698112 | 3159 | |
e3f92d3b MK |
3160 | # expand $ac_aux_dir to an absolute path |
3161 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3162 | ||
3163 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
3164 | # Use eval to expand $SHELL | |
3165 | if eval "$MISSING --run true"; then | |
3166 | am_missing_run="$MISSING --run " | |
3167 | else | |
3168 | am_missing_run= | |
3169 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
3170 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3171 | fi | |
3172 | ||
3173 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
3174 | # We used to keeping the `.' as first argument, in order to | |
3175 | # allow $(mkdir_p) to be used without argument. As in | |
3176 | # $(mkdir_p) $(somedir) | |
3177 | # where $(somedir) is conditionally defined. However this is wrong | |
3178 | # for two reasons: | |
3179 | # 1. if the package is installed by a user who cannot write `.' | |
3180 | # make install will fail, | |
3181 | # 2. the above comment should most certainly read | |
3182 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
3183 | # so it does not work when $(somedir) is undefined and | |
3184 | # $(DESTDIR) is not. | |
3185 | # To support the latter case, we have to write | |
3186 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
3187 | # so the `.' trick is pointless. | |
3188 | mkdir_p='mkdir -p --' | |
3189 | else | |
3190 | # On NextStep and OpenStep, the `mkdir' command does not | |
3191 | # recognize any option. It will interpret all options as | |
3192 | # directories to create, and then abort because `.' already | |
3193 | # exists. | |
3194 | for d in ./-p ./--version; | |
3195 | do | |
3196 | test -d $d && rmdir $d | |
3197 | done | |
3198 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
3199 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
3200 | mkdir_p='$(mkinstalldirs)' | |
3201 | else | |
3202 | mkdir_p='$(install_sh) -d' | |
3203 | fi | |
3204 | fi | |
3205 | ||
3206 | for ac_prog in gawk mawk nawk awk | |
3207 | do | |
3208 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3209 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
3210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e3f92d3b MK |
3212 | if test "${ac_cv_prog_AWK+set}" = set; then |
3213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3214 | else | |
3215 | if test -n "$AWK"; then | |
3216 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3217 | else | |
3218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3219 | for as_dir in $PATH | |
3220 | do | |
3221 | IFS=$as_save_IFS | |
3222 | test -z "$as_dir" && as_dir=. | |
3223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e3f92d3b MK |
3225 | ac_cv_prog_AWK="$ac_prog" |
3226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3227 | break 2 | |
3228 | fi | |
3229 | done | |
3230 | done | |
3231 | ||
3232 | fi | |
3233 | fi | |
3234 | AWK=$ac_cv_prog_AWK | |
3235 | if test -n "$AWK"; then | |
ade710a5 TF |
3236 | echo "$as_me:$LINENO: result: $AWK" >&5 |
3237 | echo "${ECHO_T}$AWK" >&6 | |
e3f92d3b | 3238 | else |
ade710a5 TF |
3239 | echo "$as_me:$LINENO: result: no" >&5 |
3240 | echo "${ECHO_T}no" >&6 | |
e3f92d3b MK |
3241 | fi |
3242 | ||
3243 | test -n "$AWK" && break | |
3244 | done | |
3245 | ||
ade710a5 TF |
3246 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3247 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ed698112 | 3248 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ade710a5 | 3249 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
ed698112 NN |
3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3251 | else | |
3252 | cat >conftest.make <<\_ACEOF | |
36609570 | 3253 | all: |
ade710a5 | 3254 | @echo 'ac_maketemp="$(MAKE)"' |
ed698112 | 3255 | _ACEOF |
36609570 | 3256 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ed698112 | 3257 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
ade710a5 | 3258 | if test -n "$ac_maketemp"; then |
36609570 NN |
3259 | eval ac_cv_prog_make_${ac_make}_set=yes |
3260 | else | |
3261 | eval ac_cv_prog_make_${ac_make}_set=no | |
3262 | fi | |
ed698112 | 3263 | rm -f conftest.make |
36609570 NN |
3264 | fi |
3265 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ade710a5 TF |
3266 | echo "$as_me:$LINENO: result: yes" >&5 |
3267 | echo "${ECHO_T}yes" >&6 | |
36609570 NN |
3268 | SET_MAKE= |
3269 | else | |
ade710a5 TF |
3270 | echo "$as_me:$LINENO: result: no" >&5 |
3271 | echo "${ECHO_T}no" >&6 | |
36609570 NN |
3272 | SET_MAKE="MAKE=${MAKE-make}" |
3273 | fi | |
3274 | ||
e3f92d3b MK |
3275 | rm -rf .tst 2>/dev/null |
3276 | mkdir .tst 2>/dev/null | |
3277 | if test -d .tst; then | |
3278 | am__leading_dot=. | |
3279 | else | |
3280 | am__leading_dot=_ | |
3281 | fi | |
3282 | rmdir .tst 2>/dev/null | |
3283 | ||
3284 | DEPDIR="${am__leading_dot}deps" | |
3285 | ||
ade710a5 | 3286 | ac_config_commands="$ac_config_commands depfiles" |
e3f92d3b MK |
3287 | |
3288 | ||
3289 | am_make=${MAKE-make} | |
3290 | cat > confinc << 'END' | |
3291 | am__doit: | |
3292 | @echo done | |
3293 | .PHONY: am__doit | |
3294 | END | |
3295 | # If we don't find an include directive, just comment out the code. | |
ade710a5 TF |
3296 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3297 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
e3f92d3b MK |
3298 | am__include="#" |
3299 | am__quote= | |
3300 | _am_result=none | |
3301 | # First try GNU make style include. | |
3302 | echo "include confinc" > confmf | |
3303 | # We grep out `Entering directory' and `Leaving directory' | |
3304 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3305 | # In particular we don't look at `^make:' because GNU make might | |
3306 | # be invoked under some other name (usually "gmake"), in which | |
3307 | # case it prints its new name instead of `make'. | |
3308 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3309 | am__include=include | |
3310 | am__quote= | |
3311 | _am_result=GNU | |
3312 | fi | |
3313 | # Now try BSD make style include. | |
3314 | if test "$am__include" = "#"; then | |
3315 | echo '.include "confinc"' > confmf | |
3316 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3317 | am__include=.include | |
3318 | am__quote="\"" | |
3319 | _am_result=BSD | |
3320 | fi | |
3321 | fi | |
3322 | ||
3323 | ||
ade710a5 TF |
3324 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3325 | echo "${ECHO_T}$_am_result" >&6 | |
e3f92d3b MK |
3326 | rm -f confinc confmf |
3327 | ||
ade710a5 | 3328 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
e3f92d3b | 3329 | if test "${enable_dependency_tracking+set}" = set; then |
ade710a5 | 3330 | enableval="$enable_dependency_tracking" |
e3f92d3b | 3331 | |
ade710a5 | 3332 | fi; |
e3f92d3b MK |
3333 | if test "x$enable_dependency_tracking" != xno; then |
3334 | am_depcomp="$ac_aux_dir/depcomp" | |
3335 | AMDEPBACKSLASH='\' | |
3336 | fi | |
3337 | ||
3338 | ||
3339 | if test "x$enable_dependency_tracking" != xno; then | |
3340 | AMDEP_TRUE= | |
3341 | AMDEP_FALSE='#' | |
3342 | else | |
3343 | AMDEP_TRUE='#' | |
3344 | AMDEP_FALSE= | |
3345 | fi | |
158a8e6b | 3346 | |
9d577a61 | 3347 | |
9d577a61 | 3348 | |
e3f92d3b MK |
3349 | # test to see if srcdir already configured |
3350 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3351 | test -f $srcdir/config.status; then | |
ed698112 NN |
3352 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
3353 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3354 | { (exit 1); exit 1; }; } | |
9d577a61 | 3355 | fi |
ed698112 | 3356 | |
e3f92d3b MK |
3357 | # test whether we have cygpath |
3358 | if test -z "$CYGPATH_W"; then | |
3359 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3360 | CYGPATH_W='cygpath -w' | |
3361 | else | |
3362 | CYGPATH_W=echo | |
3363 | fi | |
3364 | fi | |
3365 | ||
3366 | ||
3367 | # Define the identity of the package. | |
3368 | PACKAGE='libjava' | |
3369 | VERSION='version-unused' | |
3370 | ||
3371 | ||
ed698112 | 3372 | cat >>confdefs.h <<_ACEOF |
158a8e6b | 3373 | #define PACKAGE "$PACKAGE" |
ed698112 | 3374 | _ACEOF |
158a8e6b | 3375 | |
ed698112 NN |
3376 | |
3377 | cat >>confdefs.h <<_ACEOF | |
158a8e6b | 3378 | #define VERSION "$VERSION" |
ed698112 | 3379 | _ACEOF |
158a8e6b | 3380 | |
e3f92d3b MK |
3381 | # Some tools Automake needs. |
3382 | ||
3383 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3384 | ||
3385 | ||
3386 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
158a8e6b | 3387 | |
8107bcf9 | 3388 | |
e3f92d3b MK |
3389 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
3390 | ||
3391 | ||
3392 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3393 | ||
3394 | ||
3395 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3396 | ||
3397 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
3398 | ||
3399 | # Installed binaries are usually stripped using `strip' when the user | |
3400 | # run `make install-strip'. However `strip' might not be the right | |
3401 | # tool to use in cross-compilation environments, therefore Automake | |
3402 | # will honor the `STRIP' environment variable to overrule this program. | |
3403 | if test "$cross_compiling" != no; then | |
3404 | if test -n "$ac_tool_prefix"; then | |
3405 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3406 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
ade710a5 TF |
3407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e3f92d3b MK |
3409 | if test "${ac_cv_prog_STRIP+set}" = set; then |
3410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3411 | else | |
3412 | if test -n "$STRIP"; then | |
3413 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3414 | else | |
3415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3416 | for as_dir in $PATH | |
3417 | do | |
3418 | IFS=$as_save_IFS | |
3419 | test -z "$as_dir" && as_dir=. | |
3420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e3f92d3b MK |
3422 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3424 | break 2 | |
3425 | fi | |
3426 | done | |
3427 | done | |
3428 | ||
3429 | fi | |
3430 | fi | |
3431 | STRIP=$ac_cv_prog_STRIP | |
3432 | if test -n "$STRIP"; then | |
ade710a5 TF |
3433 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3434 | echo "${ECHO_T}$STRIP" >&6 | |
ee9dd372 | 3435 | else |
ade710a5 TF |
3436 | echo "$as_me:$LINENO: result: no" >&5 |
3437 | echo "${ECHO_T}no" >&6 | |
158a8e6b AO |
3438 | fi |
3439 | ||
e3f92d3b MK |
3440 | fi |
3441 | if test -z "$ac_cv_prog_STRIP"; then | |
3442 | ac_ct_STRIP=$STRIP | |
3443 | # Extract the first word of "strip", so it can be a program name with args. | |
3444 | set dummy strip; ac_word=$2 | |
ade710a5 TF |
3445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e3f92d3b MK |
3447 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3449 | else | |
3450 | if test -n "$ac_ct_STRIP"; then | |
3451 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9d577a61 | 3452 | else |
e3f92d3b MK |
3453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3454 | for as_dir in $PATH | |
3455 | do | |
3456 | IFS=$as_save_IFS | |
3457 | test -z "$as_dir" && as_dir=. | |
3458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e3f92d3b MK |
3460 | ac_cv_prog_ac_ct_STRIP="strip" |
3461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3462 | break 2 | |
3463 | fi | |
3464 | done | |
3465 | done | |
3466 | ||
ade710a5 | 3467 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
e3f92d3b MK |
3468 | fi |
3469 | fi | |
3470 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3471 | if test -n "$ac_ct_STRIP"; then | |
ade710a5 TF |
3472 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
3473 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
e3f92d3b | 3474 | else |
ade710a5 TF |
3475 | echo "$as_me:$LINENO: result: no" >&5 |
3476 | echo "${ECHO_T}no" >&6 | |
158a8e6b AO |
3477 | fi |
3478 | ||
ade710a5 | 3479 | STRIP=$ac_ct_STRIP |
158a8e6b | 3480 | else |
e3f92d3b | 3481 | STRIP="$ac_cv_prog_STRIP" |
9d577a61 | 3482 | fi |
158a8e6b | 3483 | |
e3f92d3b MK |
3484 | fi |
3485 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
3486 | ||
3487 | # We need awk for the "check" target. The system "awk" is bad on | |
3488 | # some platforms. | |
3489 | # Always define AMTAR for backward compatibility. | |
3490 | ||
3491 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3492 | ||
3493 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3494 | ||
3495 | ||
3496 | ||
3497 | ||
3498 | depcc="$CC" am_compiler_list= | |
3499 | ||
ade710a5 TF |
3500 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3501 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
e3f92d3b MK |
3502 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3504 | else | |
3505 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3506 | # We make a subdir and do the tests there. Otherwise we can end up | |
3507 | # making bogus files that we don't know about and never remove. For | |
3508 | # instance it was reported that on HP-UX the gcc test will end up | |
3509 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3510 | # in D'. | |
3511 | mkdir conftest.dir | |
3512 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3513 | # using a relative directory. | |
3514 | cp "$am_depcomp" conftest.dir | |
3515 | cd conftest.dir | |
3516 | # We will build objects and dependencies in a subdirectory because | |
3517 | # it helps to detect inapplicable dependency modes. For instance | |
3518 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3519 | # side effect of compilation, but ICC will put the dependencies in | |
3520 | # the current directory while Tru64 will put them in the object | |
3521 | # directory. | |
3522 | mkdir sub | |
3523 | ||
3524 | am_cv_CC_dependencies_compiler_type=none | |
3525 | if test "$am_compiler_list" = ""; then | |
3526 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3527 | fi | |
3528 | for depmode in $am_compiler_list; do | |
3529 | # Setup a source with many dependencies, because some compilers | |
3530 | # like to wrap large dependency lists on column 80 (with \), and | |
3531 | # we should not choose a depcomp mode which is confused by this. | |
3532 | # | |
3533 | # We need to recreate these files for each test, as the compiler may | |
3534 | # overwrite some of them when testing with obscure command lines. | |
3535 | # This happens at least with the AIX C compiler. | |
3536 | : > sub/conftest.c | |
3537 | for i in 1 2 3 4 5 6; do | |
3538 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3539 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3540 | # Solaris 8's {/usr,}/bin/sh. | |
3541 | touch sub/conftst$i.h | |
3542 | done | |
3543 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3544 | ||
3545 | case $depmode in | |
3546 | nosideeffect) | |
3547 | # after this tag, mechanisms are not by side-effect, so they'll | |
3548 | # only be used when explicitly requested | |
3549 | if test "x$enable_dependency_tracking" = xyes; then | |
3550 | continue | |
3551 | else | |
3552 | break | |
3553 | fi | |
3554 | ;; | |
3555 | none) break ;; | |
3556 | esac | |
3557 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3558 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3559 | # handle `-M -o', and we need to detect this. | |
3560 | if depmode=$depmode \ | |
3561 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3562 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3563 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3564 | >/dev/null 2>conftest.err && | |
3565 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3566 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3567 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3568 | # icc doesn't choke on unknown options, it will just issue warnings | |
3569 | # or remarks (even with -Werror). So we grep stderr for any message | |
3570 | # that says an option was ignored or not supported. | |
3571 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3572 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3573 | # The diagnosis changed in icc 8.0: | |
3574 | # icc: Command line remark: option '-MP' not supported | |
3575 | if (grep 'ignoring option' conftest.err || | |
3576 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3577 | am_cv_CC_dependencies_compiler_type=$depmode | |
3578 | break | |
3579 | fi | |
3580 | fi | |
3581 | done | |
3582 | ||
3583 | cd .. | |
3584 | rm -rf conftest.dir | |
3585 | else | |
3586 | am_cv_CC_dependencies_compiler_type=none | |
3587 | fi | |
3588 | ||
3589 | fi | |
ade710a5 TF |
3590 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3591 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
e3f92d3b MK |
3592 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3593 | ||
3594 | ||
3595 | ||
3596 | if | |
3597 | test "x$enable_dependency_tracking" != xno \ | |
3598 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3599 | am__fastdepCC_TRUE= | |
3600 | am__fastdepCC_FALSE='#' | |
3601 | else | |
3602 | am__fastdepCC_TRUE='#' | |
3603 | am__fastdepCC_FALSE= | |
3604 | fi | |
3605 | ||
3606 | ||
3607 | depcc="$CXX" am_compiler_list= | |
3608 | ||
ade710a5 TF |
3609 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3610 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
e3f92d3b MK |
3611 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
158a8e6b | 3613 | else |
e3f92d3b MK |
3614 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3615 | # We make a subdir and do the tests there. Otherwise we can end up | |
3616 | # making bogus files that we don't know about and never remove. For | |
3617 | # instance it was reported that on HP-UX the gcc test will end up | |
3618 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3619 | # in D'. | |
3620 | mkdir conftest.dir | |
3621 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3622 | # using a relative directory. | |
3623 | cp "$am_depcomp" conftest.dir | |
3624 | cd conftest.dir | |
3625 | # We will build objects and dependencies in a subdirectory because | |
3626 | # it helps to detect inapplicable dependency modes. For instance | |
3627 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3628 | # side effect of compilation, but ICC will put the dependencies in | |
3629 | # the current directory while Tru64 will put them in the object | |
3630 | # directory. | |
3631 | mkdir sub | |
3632 | ||
3633 | am_cv_CXX_dependencies_compiler_type=none | |
3634 | if test "$am_compiler_list" = ""; then | |
3635 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3636 | fi | |
3637 | for depmode in $am_compiler_list; do | |
3638 | # Setup a source with many dependencies, because some compilers | |
3639 | # like to wrap large dependency lists on column 80 (with \), and | |
3640 | # we should not choose a depcomp mode which is confused by this. | |
3641 | # | |
3642 | # We need to recreate these files for each test, as the compiler may | |
3643 | # overwrite some of them when testing with obscure command lines. | |
3644 | # This happens at least with the AIX C compiler. | |
3645 | : > sub/conftest.c | |
3646 | for i in 1 2 3 4 5 6; do | |
3647 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3648 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3649 | # Solaris 8's {/usr,}/bin/sh. | |
3650 | touch sub/conftst$i.h | |
3651 | done | |
3652 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3653 | ||
3654 | case $depmode in | |
3655 | nosideeffect) | |
3656 | # after this tag, mechanisms are not by side-effect, so they'll | |
3657 | # only be used when explicitly requested | |
3658 | if test "x$enable_dependency_tracking" = xyes; then | |
3659 | continue | |
3660 | else | |
3661 | break | |
3662 | fi | |
3663 | ;; | |
3664 | none) break ;; | |
3665 | esac | |
3666 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3667 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3668 | # handle `-M -o', and we need to detect this. | |
3669 | if depmode=$depmode \ | |
3670 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3671 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3672 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3673 | >/dev/null 2>conftest.err && | |
3674 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3675 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3676 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3677 | # icc doesn't choke on unknown options, it will just issue warnings | |
3678 | # or remarks (even with -Werror). So we grep stderr for any message | |
3679 | # that says an option was ignored or not supported. | |
3680 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3681 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3682 | # The diagnosis changed in icc 8.0: | |
3683 | # icc: Command line remark: option '-MP' not supported | |
3684 | if (grep 'ignoring option' conftest.err || | |
3685 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3686 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3687 | break | |
3688 | fi | |
3689 | fi | |
3690 | done | |
3691 | ||
3692 | cd .. | |
3693 | rm -rf conftest.dir | |
3694 | else | |
3695 | am_cv_CXX_dependencies_compiler_type=none | |
8107bcf9 PB |
3696 | fi |
3697 | ||
e3f92d3b | 3698 | fi |
ade710a5 TF |
3699 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3700 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
e3f92d3b MK |
3701 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
3702 | ||
3703 | ||
3704 | ||
3705 | if | |
3706 | test "x$enable_dependency_tracking" != xno \ | |
3707 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3708 | am__fastdepCXX_TRUE= | |
3709 | am__fastdepCXX_FALSE='#' | |
9d577a61 | 3710 | else |
e3f92d3b MK |
3711 | am__fastdepCXX_TRUE='#' |
3712 | am__fastdepCXX_FALSE= | |
158a8e6b AO |
3713 | fi |
3714 | ||
3715 | ||
ee9dd372 | 3716 | |
e3f92d3b | 3717 | |
ed698112 NN |
3718 | if test -n "$ac_tool_prefix"; then |
3719 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
ee9dd372 | 3720 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
ade710a5 TF |
3721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3723 | if test "${ac_cv_prog_AS+set}" = set; then |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 TT |
3725 | else |
3726 | if test -n "$AS"; then | |
3727 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3728 | else | |
ed698112 NN |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3730 | for as_dir in $PATH | |
3731 | do | |
3732 | IFS=$as_save_IFS | |
3733 | test -z "$as_dir" && as_dir=. | |
3734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
3736 | ac_cv_prog_AS="${ac_tool_prefix}as" |
3737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3738 | break 2 | |
3739 | fi | |
3740 | done | |
3741 | done | |
3742 | ||
ee9dd372 TT |
3743 | fi |
3744 | fi | |
ed698112 | 3745 | AS=$ac_cv_prog_AS |
ee9dd372 | 3746 | if test -n "$AS"; then |
ade710a5 TF |
3747 | echo "$as_me:$LINENO: result: $AS" >&5 |
3748 | echo "${ECHO_T}$AS" >&6 | |
ee9dd372 | 3749 | else |
ade710a5 TF |
3750 | echo "$as_me:$LINENO: result: no" >&5 |
3751 | echo "${ECHO_T}no" >&6 | |
ed698112 NN |
3752 | fi |
3753 | ||
ee9dd372 | 3754 | fi |
ed698112 NN |
3755 | if test -z "$ac_cv_prog_AS"; then |
3756 | ac_ct_AS=$AS | |
3757 | # Extract the first word of "as", so it can be a program name with args. | |
3758 | set dummy as; ac_word=$2 | |
ade710a5 TF |
3759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3761 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3763 | else | |
3764 | if test -n "$ac_ct_AS"; then | |
3765 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3766 | else | |
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3768 | for as_dir in $PATH | |
3769 | do | |
3770 | IFS=$as_save_IFS | |
3771 | test -z "$as_dir" && as_dir=. | |
3772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
3774 | ac_cv_prog_ac_ct_AS="as" |
3775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3776 | break 2 | |
3777 | fi | |
3778 | done | |
3779 | done | |
ee9dd372 | 3780 | |
ed698112 NN |
3781 | fi |
3782 | fi | |
3783 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3784 | if test -n "$ac_ct_AS"; then | |
ade710a5 TF |
3785 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
3786 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
ed698112 | 3787 | else |
ade710a5 TF |
3788 | echo "$as_me:$LINENO: result: no" >&5 |
3789 | echo "${ECHO_T}no" >&6 | |
ed698112 | 3790 | fi |
ee9dd372 | 3791 | |
ade710a5 | 3792 | AS=$ac_ct_AS |
ed698112 NN |
3793 | else |
3794 | AS="$ac_cv_prog_AS" | |
3795 | fi | |
ee9dd372 | 3796 | |
d6c122f7 DD |
3797 | if test -n "$ac_tool_prefix"; then |
3798 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. | |
3799 | set dummy ${ac_tool_prefix}ld; ac_word=$2 | |
ade710a5 TF |
3800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d6c122f7 DD |
3802 | if test "${ac_cv_prog_LD+set}" = set; then |
3803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3804 | else | |
3805 | if test -n "$LD"; then | |
3806 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3807 | else | |
3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3809 | for as_dir in $PATH | |
3810 | do | |
3811 | IFS=$as_save_IFS | |
3812 | test -z "$as_dir" && as_dir=. | |
3813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d6c122f7 DD |
3815 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
3816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3817 | break 2 | |
3818 | fi | |
3819 | done | |
3820 | done | |
3821 | ||
3822 | fi | |
3823 | fi | |
3824 | LD=$ac_cv_prog_LD | |
3825 | if test -n "$LD"; then | |
ade710a5 TF |
3826 | echo "$as_me:$LINENO: result: $LD" >&5 |
3827 | echo "${ECHO_T}$LD" >&6 | |
d6c122f7 | 3828 | else |
ade710a5 TF |
3829 | echo "$as_me:$LINENO: result: no" >&5 |
3830 | echo "${ECHO_T}no" >&6 | |
d6c122f7 DD |
3831 | fi |
3832 | ||
3833 | fi | |
3834 | if test -z "$ac_cv_prog_LD"; then | |
3835 | ac_ct_LD=$LD | |
3836 | # Extract the first word of "ld", so it can be a program name with args. | |
3837 | set dummy ld; ac_word=$2 | |
ade710a5 TF |
3838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d6c122f7 DD |
3840 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
3841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3842 | else | |
3843 | if test -n "$ac_ct_LD"; then | |
3844 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. | |
3845 | else | |
3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3847 | for as_dir in $PATH | |
3848 | do | |
3849 | IFS=$as_save_IFS | |
3850 | test -z "$as_dir" && as_dir=. | |
3851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d6c122f7 DD |
3853 | ac_cv_prog_ac_ct_LD="ld" |
3854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3855 | break 2 | |
3856 | fi | |
3857 | done | |
3858 | done | |
3859 | ||
3860 | fi | |
3861 | fi | |
3862 | ac_ct_LD=$ac_cv_prog_ac_ct_LD | |
3863 | if test -n "$ac_ct_LD"; then | |
ade710a5 TF |
3864 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
3865 | echo "${ECHO_T}$ac_ct_LD" >&6 | |
d6c122f7 | 3866 | else |
ade710a5 TF |
3867 | echo "$as_me:$LINENO: result: no" >&5 |
3868 | echo "${ECHO_T}no" >&6 | |
d6c122f7 DD |
3869 | fi |
3870 | ||
ade710a5 | 3871 | LD=$ac_ct_LD |
d6c122f7 DD |
3872 | else |
3873 | LD="$ac_cv_prog_LD" | |
3874 | fi | |
3875 | ||
ed698112 NN |
3876 | if test -n "$ac_tool_prefix"; then |
3877 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
ee9dd372 | 3878 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
ade710a5 TF |
3879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3881 | if test "${ac_cv_prog_AR+set}" = set; then |
3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 TT |
3883 | else |
3884 | if test -n "$AR"; then | |
3885 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3886 | else | |
ed698112 NN |
3887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3888 | for as_dir in $PATH | |
3889 | do | |
3890 | IFS=$as_save_IFS | |
3891 | test -z "$as_dir" && as_dir=. | |
3892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
3894 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
3895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3896 | break 2 | |
3897 | fi | |
3898 | done | |
3899 | done | |
3900 | ||
ee9dd372 TT |
3901 | fi |
3902 | fi | |
ed698112 | 3903 | AR=$ac_cv_prog_AR |
ee9dd372 | 3904 | if test -n "$AR"; then |
ade710a5 TF |
3905 | echo "$as_me:$LINENO: result: $AR" >&5 |
3906 | echo "${ECHO_T}$AR" >&6 | |
ee9dd372 | 3907 | else |
ade710a5 TF |
3908 | echo "$as_me:$LINENO: result: no" >&5 |
3909 | echo "${ECHO_T}no" >&6 | |
ed698112 NN |
3910 | fi |
3911 | ||
ee9dd372 | 3912 | fi |
ed698112 NN |
3913 | if test -z "$ac_cv_prog_AR"; then |
3914 | ac_ct_AR=$AR | |
3915 | # Extract the first word of "ar", so it can be a program name with args. | |
3916 | set dummy ar; ac_word=$2 | |
ade710a5 TF |
3917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3919 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3921 | else | |
3922 | if test -n "$ac_ct_AR"; then | |
3923 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3924 | else | |
3925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3926 | for as_dir in $PATH | |
3927 | do | |
3928 | IFS=$as_save_IFS | |
3929 | test -z "$as_dir" && as_dir=. | |
3930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
3932 | ac_cv_prog_ac_ct_AR="ar" |
3933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3934 | break 2 | |
3935 | fi | |
3936 | done | |
3937 | done | |
ee9dd372 | 3938 | |
ed698112 NN |
3939 | fi |
3940 | fi | |
3941 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3942 | if test -n "$ac_ct_AR"; then | |
ade710a5 TF |
3943 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
3944 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
ed698112 | 3945 | else |
ade710a5 TF |
3946 | echo "$as_me:$LINENO: result: no" >&5 |
3947 | echo "${ECHO_T}no" >&6 | |
ed698112 | 3948 | fi |
ee9dd372 | 3949 | |
ade710a5 | 3950 | AR=$ac_ct_AR |
ed698112 NN |
3951 | else |
3952 | AR="$ac_cv_prog_AR" | |
3953 | fi | |
ee9dd372 | 3954 | |
ed698112 NN |
3955 | if test -n "$ac_tool_prefix"; then |
3956 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ee9dd372 | 3957 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
ade710a5 TF |
3958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3960 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 TT |
3962 | else |
3963 | if test -n "$RANLIB"; then | |
3964 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3965 | else | |
ed698112 NN |
3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3967 | for as_dir in $PATH | |
3968 | do | |
3969 | IFS=$as_save_IFS | |
3970 | test -z "$as_dir" && as_dir=. | |
3971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 3972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
3973 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3975 | break 2 | |
3976 | fi | |
3977 | done | |
3978 | done | |
3979 | ||
ee9dd372 TT |
3980 | fi |
3981 | fi | |
ed698112 | 3982 | RANLIB=$ac_cv_prog_RANLIB |
ee9dd372 | 3983 | if test -n "$RANLIB"; then |
ade710a5 TF |
3984 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3985 | echo "${ECHO_T}$RANLIB" >&6 | |
ee9dd372 | 3986 | else |
ade710a5 TF |
3987 | echo "$as_me:$LINENO: result: no" >&5 |
3988 | echo "${ECHO_T}no" >&6 | |
ee9dd372 TT |
3989 | fi |
3990 | ||
ed698112 | 3991 | fi |
ee9dd372 | 3992 | if test -z "$ac_cv_prog_RANLIB"; then |
ed698112 | 3993 | ac_ct_RANLIB=$RANLIB |
ee9dd372 TT |
3994 | # Extract the first word of "ranlib", so it can be a program name with args. |
3995 | set dummy ranlib; ac_word=$2 | |
ade710a5 TF |
3996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
3998 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 4000 | else |
ed698112 NN |
4001 | if test -n "$ac_ct_RANLIB"; then |
4002 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ee9dd372 | 4003 | else |
ed698112 NN |
4004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4005 | for as_dir in $PATH | |
4006 | do | |
4007 | IFS=$as_save_IFS | |
4008 | test -z "$as_dir" && as_dir=. | |
4009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
4011 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4013 | break 2 | |
4014 | fi | |
4015 | done | |
4016 | done | |
4017 | ||
ade710a5 | 4018 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
ee9dd372 TT |
4019 | fi |
4020 | fi | |
ed698112 NN |
4021 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4022 | if test -n "$ac_ct_RANLIB"; then | |
ade710a5 TF |
4023 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4024 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ee9dd372 | 4025 | else |
ade710a5 TF |
4026 | echo "$as_me:$LINENO: result: no" >&5 |
4027 | echo "${ECHO_T}no" >&6 | |
ee9dd372 TT |
4028 | fi |
4029 | ||
ade710a5 | 4030 | RANLIB=$ac_ct_RANLIB |
ee9dd372 | 4031 | else |
ed698112 | 4032 | RANLIB="$ac_cv_prog_RANLIB" |
ee9dd372 TT |
4033 | fi |
4034 | ||
02809848 PB |
4035 | for ac_prog in gawk mawk nawk awk |
4036 | do | |
4037 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4038 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
4039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
02809848 PB |
4041 | if test "${ac_cv_prog_AWK+set}" = set; then |
4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4043 | else | |
4044 | if test -n "$AWK"; then | |
4045 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4046 | else | |
4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4048 | for as_dir in $PATH | |
4049 | do | |
4050 | IFS=$as_save_IFS | |
4051 | test -z "$as_dir" && as_dir=. | |
4052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
02809848 PB |
4054 | ac_cv_prog_AWK="$ac_prog" |
4055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4056 | break 2 | |
4057 | fi | |
4058 | done | |
4059 | done | |
02809848 PB |
4060 | |
4061 | fi | |
4062 | fi | |
4063 | AWK=$ac_cv_prog_AWK | |
4064 | if test -n "$AWK"; then | |
ade710a5 TF |
4065 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4066 | echo "${ECHO_T}$AWK" >&6 | |
02809848 | 4067 | else |
ade710a5 TF |
4068 | echo "$as_me:$LINENO: result: no" >&5 |
4069 | echo "${ECHO_T}no" >&6 | |
02809848 PB |
4070 | fi |
4071 | ||
02809848 PB |
4072 | test -n "$AWK" && break |
4073 | done | |
4074 | ||
97b8365c | 4075 | for ac_prog in jar fastjar gjar |
76c6ea0c TT |
4076 | do |
4077 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4078 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
4079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
76c6ea0c TT |
4081 | if test "${ac_cv_prog_JAR+set}" = set; then |
4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4083 | else | |
4084 | if test -n "$JAR"; then | |
4085 | ac_cv_prog_JAR="$JAR" # Let the user override the test. | |
4086 | else | |
4087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4088 | for as_dir in $PATH | |
4089 | do | |
4090 | IFS=$as_save_IFS | |
4091 | test -z "$as_dir" && as_dir=. | |
4092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
76c6ea0c TT |
4094 | ac_cv_prog_JAR="$ac_prog" |
4095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4096 | break 2 | |
4097 | fi | |
4098 | done | |
4099 | done | |
4100 | ||
4101 | fi | |
4102 | fi | |
4103 | JAR=$ac_cv_prog_JAR | |
4104 | if test -n "$JAR"; then | |
ade710a5 TF |
4105 | echo "$as_me:$LINENO: result: $JAR" >&5 |
4106 | echo "${ECHO_T}$JAR" >&6 | |
76c6ea0c | 4107 | else |
ade710a5 TF |
4108 | echo "$as_me:$LINENO: result: no" >&5 |
4109 | echo "${ECHO_T}no" >&6 | |
76c6ea0c TT |
4110 | fi |
4111 | ||
4112 | test -n "$JAR" && break | |
4113 | done | |
02809848 | 4114 | test -n "$JAR" || JAR="no" |
ee9dd372 | 4115 | |
02809848 PB |
4116 | # Extract the first word of "zip", so it can be a program name with args. |
4117 | set dummy zip; ac_word=$2 | |
ade710a5 TF |
4118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
02809848 PB |
4120 | if test "${ac_cv_path_ZIP+set}" = set; then |
4121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4122 | else | |
4123 | case $ZIP in | |
4124 | [\\/]* | ?:[\\/]*) | |
4125 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | |
4126 | ;; | |
4127 | *) | |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4129 | for as_dir in $PATH | |
4130 | do | |
4131 | IFS=$as_save_IFS | |
4132 | test -z "$as_dir" && as_dir=. | |
4133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
02809848 PB |
4135 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
4136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4137 | break 2 | |
4138 | fi | |
4139 | done | |
4140 | done | |
02809848 PB |
4141 | |
4142 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no" | |
4143 | ;; | |
4144 | esac | |
4145 | fi | |
4146 | ZIP=$ac_cv_path_ZIP | |
ade710a5 | 4147 | |
02809848 | 4148 | if test -n "$ZIP"; then |
ade710a5 TF |
4149 | echo "$as_me:$LINENO: result: $ZIP" >&5 |
4150 | echo "${ECHO_T}$ZIP" >&6 | |
02809848 | 4151 | else |
ade710a5 TF |
4152 | echo "$as_me:$LINENO: result: no" >&5 |
4153 | echo "${ECHO_T}no" >&6 | |
02809848 PB |
4154 | fi |
4155 | ||
02809848 PB |
4156 | # Extract the first word of "unzip", so it can be a program name with args. |
4157 | set dummy unzip; ac_word=$2 | |
ade710a5 TF |
4158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
02809848 PB |
4160 | if test "${ac_cv_path_UNZIP+set}" = set; then |
4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4162 | else | |
4163 | case $UNZIP in | |
4164 | [\\/]* | ?:[\\/]*) | |
4165 | ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. | |
4166 | ;; | |
4167 | *) | |
4168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4169 | for as_dir in $PATH | |
4170 | do | |
4171 | IFS=$as_save_IFS | |
4172 | test -z "$as_dir" && as_dir=. | |
4173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
02809848 PB |
4175 | ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" |
4176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4177 | break 2 | |
4178 | fi | |
4179 | done | |
4180 | done | |
02809848 PB |
4181 | |
4182 | test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip" | |
4183 | ;; | |
4184 | esac | |
4185 | fi | |
4186 | UNZIP=$ac_cv_path_UNZIP | |
ade710a5 | 4187 | |
02809848 | 4188 | if test -n "$UNZIP"; then |
ade710a5 TF |
4189 | echo "$as_me:$LINENO: result: $UNZIP" >&5 |
4190 | echo "${ECHO_T}$UNZIP" >&6 | |
02809848 | 4191 | else |
ade710a5 TF |
4192 | echo "$as_me:$LINENO: result: no" >&5 |
4193 | echo "${ECHO_T}no" >&6 | |
02809848 PB |
4194 | fi |
4195 | ||
4196 | ||
4197 | ||
02809848 PB |
4198 | if test "$JAR" = no; then |
4199 | BASH_JAR_TRUE= | |
4200 | BASH_JAR_FALSE='#' | |
4201 | else | |
4202 | BASH_JAR_TRUE='#' | |
4203 | BASH_JAR_FALSE= | |
4204 | fi | |
4205 | ||
4206 | if test "$ZIP" = no; then | |
4207 | if test "$JAR" = no; then | |
4208 | { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5 | |
4209 | echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;} | |
4210 | { (exit 1); exit 1; }; } | |
4211 | fi | |
4212 | else | |
4213 | # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava | |
4214 | JAR=`pwd`/scripts/jar | |
4215 | fi | |
4216 | ||
4217 | # Find a good install program. We prefer a C program (faster), | |
4218 | # so one script is as good as another. But avoid the broken or | |
ee9dd372 TT |
4219 | # incompatible versions: |
4220 | # SysV /etc/install, /usr/sbin/install | |
4221 | # SunOS /usr/etc/install | |
4222 | # IRIX /sbin/install | |
4223 | # AIX /bin/install | |
ed698112 | 4224 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
ee9dd372 TT |
4225 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4226 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4227 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ed698112 | 4228 | # OS/2's system install, which has a completely different semantic |
ee9dd372 | 4229 | # ./install, which can be erroneously created by make from ./install.sh. |
ade710a5 TF |
4230 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4231 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ee9dd372 | 4232 | if test -z "$INSTALL"; then |
ed698112 NN |
4233 | if test "${ac_cv_path_install+set}" = set; then |
4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 4235 | else |
ed698112 NN |
4236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4237 | for as_dir in $PATH | |
4238 | do | |
4239 | IFS=$as_save_IFS | |
4240 | test -z "$as_dir" && as_dir=. | |
4241 | # Account for people who put trailing slashes in PATH elements. | |
4242 | case $as_dir/ in | |
4243 | ./ | .// | /cC/* | \ | |
4244 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4245 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4246 | /usr/ucb/* ) ;; | |
4247 | *) | |
4248 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4249 | # Don't use installbsd from OSF since it installs stuff as root | |
4250 | # by default. | |
4251 | for ac_prog in ginstall scoinst install; do | |
4252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 4253 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
ee9dd372 | 4254 | if test $ac_prog = install && |
ed698112 | 4255 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
ee9dd372 TT |
4256 | # AIX install. It has an incompatible calling convention. |
4257 | : | |
ed698112 NN |
4258 | elif test $ac_prog = install && |
4259 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4260 | # program-specific install script used by HP pwplus--don't use. | |
4261 | : | |
ee9dd372 | 4262 | else |
ed698112 NN |
4263 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4264 | break 3 | |
ee9dd372 TT |
4265 | fi |
4266 | fi | |
4267 | done | |
ed698112 NN |
4268 | done |
4269 | ;; | |
4270 | esac | |
4271 | done | |
4272 | ||
ee9dd372 TT |
4273 | |
4274 | fi | |
4275 | if test "${ac_cv_path_install+set}" = set; then | |
ed698112 | 4276 | INSTALL=$ac_cv_path_install |
ee9dd372 | 4277 | else |
ade710a5 TF |
4278 | # As a last resort, use the slow shell script. We don't cache a |
4279 | # path for INSTALL within a source directory, because that will | |
ee9dd372 | 4280 | # break other packages using the cache if that directory is |
ade710a5 | 4281 | # removed, or if the path is relative. |
ed698112 | 4282 | INSTALL=$ac_install_sh |
ee9dd372 TT |
4283 | fi |
4284 | fi | |
ade710a5 TF |
4285 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4286 | echo "${ECHO_T}$INSTALL" >&6 | |
ee9dd372 TT |
4287 | |
4288 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4289 | # It thinks the first close brace ends the variable substitution. | |
4290 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4291 | ||
ed698112 | 4292 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a3ffcff3 | 4293 | |
ee9dd372 TT |
4294 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4295 | ||
4296 | ||
ade710a5 TF |
4297 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4298 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
4299 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
ee9dd372 | 4300 | if test "${enable_maintainer_mode+set}" = set; then |
ade710a5 TF |
4301 | enableval="$enable_maintainer_mode" |
4302 | USE_MAINTAINER_MODE=$enableval | |
ee9dd372 TT |
4303 | else |
4304 | USE_MAINTAINER_MODE=no | |
ade710a5 TF |
4305 | fi; |
4306 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4307 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
ee9dd372 | 4308 | |
ee9dd372 TT |
4309 | |
4310 | if test $USE_MAINTAINER_MODE = yes; then | |
4311 | MAINTAINER_MODE_TRUE= | |
4312 | MAINTAINER_MODE_FALSE='#' | |
4313 | else | |
4314 | MAINTAINER_MODE_TRUE='#' | |
4315 | MAINTAINER_MODE_FALSE= | |
4316 | fi | |
e3f92d3b | 4317 | |
ee9dd372 | 4318 | MAINT=$MAINTAINER_MODE_TRUE |
36609570 | 4319 | |
0659e0e3 | 4320 | |
ee9dd372 | 4321 | |
ee9dd372 | 4322 | |
ee9dd372 TT |
4323 | |
4324 | # configure.host sets the following important variables | |
4325 | # libgcj_cflags - host specific C compiler flags | |
4326 | # libgcj_cxxflags - host specific C++ compiler flags | |
4327 | # libgcj_javaflags - host specific Java compiler flags | |
4328 | ||
4329 | libgcj_cflags= | |
4330 | libgcj_cxxflags= | |
4331 | libgcj_javaflags= | |
4332 | ||
2ee7cd3e | 4333 | . ${srcdir}/configure.host |
ee9dd372 | 4334 | |
ee9dd372 TT |
4335 | LIBGCJ_CFLAGS="${libgcj_cflags}" |
4336 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}" | |
4337 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}" | |
36739040 TT |
4338 | LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}" |
4339 | ||
ee9dd372 TT |
4340 | |
4341 | ||
4342 | ||
4343 | ||
16dab3e2 TF |
4344 | # Only use libltdl for non-newlib builds. |
4345 | if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then | |
ade710a5 TF |
4346 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
4347 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16dab3e2 TF |
4348 | library_names_spec= |
4349 | libname_spec='lib$name' | |
4350 | soname_spec= | |
4351 | shrext=".so" | |
4352 | postinstall_cmds= | |
4353 | postuninstall_cmds= | |
4354 | finish_cmds= | |
4355 | finish_eval= | |
4356 | shlibpath_var= | |
4357 | shlibpath_overrides_runpath=unknown | |
4358 | version_type=none | |
4359 | dynamic_linker="$host_os ld.so" | |
4360 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
4361 | if test "$GCC" = yes; then | |
ab408bac | 4362 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"` |
16dab3e2 TF |
4363 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
4364 | # if the path contains ";" then we assume it to be the separator | |
4365 | # otherwise default to the standard path separator (i.e. ":") - it is | |
4366 | # assumed that no part of a normal pathname contains ";" but that should | |
4367 | # okay in the real world where ";" in dirpaths is itself problematic. | |
ab408bac | 4368 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
16dab3e2 | 4369 | else |
ab408bac | 4370 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
16dab3e2 TF |
4371 | fi |
4372 | else | |
4373 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
4374 | fi | |
4375 | need_lib_prefix=unknown | |
4376 | hardcode_into_libs=no | |
4377 | ||
4378 | # when you set need_version to no, make sure it does not cause -set_version | |
4379 | # flags to be left without arguments | |
4380 | need_version=unknown | |
4381 | ||
4382 | case $host_os in | |
4383 | aix3*) | |
4384 | version_type=linux | |
4385 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
4386 | shlibpath_var=LIBPATH | |
4387 | ||
4388 | # AIX 3 has no versioning support, so we append a major version to the name. | |
4389 | soname_spec='${libname}${release}${shared_ext}$major' | |
4390 | ;; | |
4391 | ||
4392 | aix4* | aix5*) | |
4393 | version_type=linux | |
4394 | need_lib_prefix=no | |
4395 | need_version=no | |
4396 | hardcode_into_libs=yes | |
4397 | if test "$host_cpu" = ia64; then | |
4398 | # AIX 5 supports IA64 | |
4399 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
4400 | shlibpath_var=LD_LIBRARY_PATH | |
4401 | else | |
4402 | # With GCC up to 2.95.x, collect2 would create an import file | |
4403 | # for dependence libraries. The import file would start with | |
4404 | # the line `#! .'. This would cause the generated library to | |
4405 | # depend on `.', always an invalid library. This was fixed in | |
4406 | # development snapshots of GCC prior to 3.0. | |
4407 | case $host_os in | |
4408 | aix4 | aix4.[01] | aix4.[01].*) | |
4409 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
4410 | echo ' yes ' | |
4411 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
4412 | : | |
4413 | else | |
4414 | can_build_shared=no | |
4415 | fi | |
4416 | ;; | |
4417 | esac | |
4418 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
4419 | # soname into executable. Probably we can add versioning support to | |
4420 | # collect2, so additional links can be useful in future. | |
4421 | if test "$aix_use_runtimelinking" = yes; then | |
4422 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
4423 | # instead of lib<name>.a to let people know that these are not | |
4424 | # typical AIX shared libraries. | |
4425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4426 | else | |
4427 | # We preserve .a as extension for shared libraries through AIX4.2 | |
4428 | # and later when we are not doing run time linking. | |
4429 | library_names_spec='${libname}${release}.a $libname.a' | |
4430 | soname_spec='${libname}${release}${shared_ext}$major' | |
4431 | fi | |
4432 | shlibpath_var=LIBPATH | |
4433 | fi | |
4434 | ;; | |
4435 | ||
4436 | amigaos*) | |
4437 | library_names_spec='$libname.ixlibrary $libname.a' | |
4438 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
4439 | 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' | |
4440 | ;; | |
4441 | ||
4442 | beos*) | |
4443 | library_names_spec='${libname}${shared_ext}' | |
4444 | dynamic_linker="$host_os ld.so" | |
4445 | shlibpath_var=LIBRARY_PATH | |
4446 | ;; | |
4447 | ||
4448 | bsdi4*) | |
4449 | version_type=linux | |
4450 | need_version=no | |
4451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4452 | soname_spec='${libname}${release}${shared_ext}$major' | |
4453 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
4454 | shlibpath_var=LD_LIBRARY_PATH | |
4455 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
4456 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
4457 | # the default ld.so.conf also contains /usr/contrib/lib and | |
4458 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
4459 | # libtool to hard-code these into programs | |
4460 | ;; | |
4461 | ||
4462 | cygwin* | mingw* | pw32*) | |
4463 | version_type=windows | |
4464 | shrext=".dll" | |
4465 | need_version=no | |
4466 | need_lib_prefix=no | |
4467 | ||
4468 | case $GCC,$host_os in | |
4469 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
4470 | library_names_spec='$libname.dll.a' | |
4471 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
4472 | postinstall_cmds='base_file=`basename \${file}`~ | |
4473 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
4474 | dldir=$destdir/`dirname \$dlpath`~ | |
4475 | test -d \$dldir || mkdir -p \$dldir~ | |
4476 | $install_prog $dir/$dlname \$dldir/$dlname' | |
4477 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
4478 | dlpath=$dir/\$dldll~ | |
4479 | $rm \$dlpath' | |
4480 | shlibpath_overrides_runpath=yes | |
4481 | ||
4482 | case $host_os in | |
4483 | cygwin*) | |
4484 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
ab408bac | 4485 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
16dab3e2 TF |
4486 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
4487 | ;; | |
4488 | mingw*) | |
4489 | # MinGW DLLs use traditional 'lib' prefix | |
ab408bac JJ |
4490 | soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
4491 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"` | |
16dab3e2 TF |
4492 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
4493 | # It is most probably a Windows format PATH printed by | |
4494 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
4495 | # path with ; separators, and with drive letters. We can handle the | |
4496 | # drive letters (cygwin fileutils understands them), so leave them, | |
4497 | # especially as we might pass files found there to a mingw objdump, | |
4498 | # which wouldn't understand a cygwinified path. Ahh. | |
ab408bac | 4499 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
16dab3e2 | 4500 | else |
ab408bac | 4501 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
16dab3e2 TF |
4502 | fi |
4503 | ;; | |
4504 | pw32*) | |
4505 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
ab408bac | 4506 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}' |
16dab3e2 TF |
4507 | ;; |
4508 | esac | |
4509 | ;; | |
4510 | ||
4511 | *) | |
ab408bac | 4512 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
16dab3e2 TF |
4513 | ;; |
4514 | esac | |
4515 | dynamic_linker='Win32 ld.exe' | |
4516 | # FIXME: first we should search . and the directory the executable is in | |
4517 | shlibpath_var=PATH | |
4518 | ;; | |
4519 | ||
4520 | darwin* | rhapsody*) | |
4521 | dynamic_linker="$host_os dyld" | |
4522 | version_type=darwin | |
4523 | need_lib_prefix=no | |
4524 | need_version=no | |
4525 | # FIXME: Relying on posixy $() will cause problems for | |
4526 | # cross-compilation, but unfortunately the echo tests do not | |
4527 | # yet detect zsh echo's removal of \ escapes. | |
4528 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
4529 | soname_spec='${libname}${release}${major}$shared_ext' | |
4530 | shlibpath_overrides_runpath=yes | |
4531 | shlibpath_var=DYLD_LIBRARY_PATH | |
4532 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
4533 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
4534 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | |
4535 | 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"` | |
4536 | fi | |
4537 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
4538 | ;; | |
4539 | ||
4540 | dgux*) | |
4541 | version_type=linux | |
4542 | need_lib_prefix=no | |
4543 | need_version=no | |
4544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
4545 | soname_spec='${libname}${release}${shared_ext}$major' | |
4546 | shlibpath_var=LD_LIBRARY_PATH | |
4547 | ;; | |
4548 | ||
4549 | freebsd1*) | |
4550 | dynamic_linker=no | |
4551 | ;; | |
4552 | ||
4553 | freebsd*) | |
4554 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
4555 | version_type=freebsd-$objformat | |
4556 | case $version_type in | |
4557 | freebsd-elf*) | |
4558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
4559 | need_version=no | |
4560 | need_lib_prefix=no | |
4561 | ;; | |
4562 | freebsd-*) | |
4563 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
4564 | need_version=yes | |
4565 | ;; | |
4566 | esac | |
4567 | shlibpath_var=LD_LIBRARY_PATH | |
4568 | case $host_os in | |
4569 | freebsd2*) | |
4570 | shlibpath_overrides_runpath=yes | |
4571 | ;; | |
4572 | freebsd3.01* | freebsdelf3.01*) | |
4573 | shlibpath_overrides_runpath=yes | |
4574 | hardcode_into_libs=yes | |
4575 | ;; | |
4576 | *) # from 3.2 on | |
4577 | shlibpath_overrides_runpath=no | |
4578 | hardcode_into_libs=yes | |
4579 | ;; | |
4580 | esac | |
4581 | ;; | |
ee9dd372 | 4582 | |
16dab3e2 TF |
4583 | gnu*) |
4584 | version_type=linux | |
4585 | need_lib_prefix=no | |
4586 | need_version=no | |
4587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
4588 | soname_spec='${libname}${release}${shared_ext}$major' | |
4589 | shlibpath_var=LD_LIBRARY_PATH | |
4590 | hardcode_into_libs=yes | |
4591 | ;; | |
4592 | ||
4593 | hpux9* | hpux10* | hpux11*) | |
4594 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
4595 | # link against other versions. | |
4596 | version_type=sunos | |
4597 | need_lib_prefix=no | |
4598 | need_version=no | |
4599 | case "$host_cpu" in | |
4600 | ia64*) | |
4601 | shrext='.so' | |
4602 | hardcode_into_libs=yes | |
4603 | dynamic_linker="$host_os dld.so" | |
4604 | shlibpath_var=LD_LIBRARY_PATH | |
4605 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
4606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4607 | soname_spec='${libname}${release}${shared_ext}$major' | |
4608 | if test "X$HPUX_IA64_MODE" = X32; then | |
4609 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
4610 | else | |
4611 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
4612 | fi | |
4613 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
4614 | ;; | |
4615 | hppa*64*) | |
4616 | shrext='.sl' | |
4617 | hardcode_into_libs=yes | |
4618 | dynamic_linker="$host_os dld.sl" | |
4619 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
4620 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
4621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4622 | soname_spec='${libname}${release}${shared_ext}$major' | |
4623 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
4624 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
4625 | ;; | |
4626 | *) | |
4627 | shrext='.sl' | |
4628 | dynamic_linker="$host_os dld.sl" | |
4629 | shlibpath_var=SHLIB_PATH | |
4630 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
4631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4632 | soname_spec='${libname}${release}${shared_ext}$major' | |
4633 | ;; | |
4634 | esac | |
4635 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
4636 | postinstall_cmds='chmod 555 $lib' | |
4637 | ;; | |
4638 | ||
4639 | irix5* | irix6* | nonstopux*) | |
4640 | case $host_os in | |
4641 | nonstopux*) version_type=nonstopux ;; | |
4642 | *) | |
4643 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4644 | version_type=linux | |
4645 | else | |
4646 | version_type=irix | |
4647 | fi ;; | |
4648 | esac | |
4649 | need_lib_prefix=no | |
4650 | need_version=no | |
4651 | soname_spec='${libname}${release}${shared_ext}$major' | |
4652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
4653 | case $host_os in | |
4654 | irix5* | nonstopux*) | |
4655 | libsuff= shlibsuff= | |
4656 | ;; | |
4657 | *) | |
4658 | case $LD in # libtool.m4 will add one of these switches to LD | |
4659 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
4660 | libsuff= shlibsuff= libmagic=32-bit;; | |
4661 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
4662 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
4663 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
4664 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
4665 | *) libsuff= shlibsuff= libmagic=never-match;; | |
4666 | esac | |
4667 | ;; | |
4668 | esac | |
4669 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
4670 | shlibpath_overrides_runpath=no | |
4671 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
4672 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
4673 | hardcode_into_libs=yes | |
4674 | ;; | |
4675 | ||
4676 | # No shared lib support for Linux oldld, aout, or coff. | |
4677 | linux*oldld* | linux*aout* | linux*coff*) | |
4678 | dynamic_linker=no | |
4679 | ;; | |
4680 | ||
4681 | # This must be Linux ELF. | |
94ba45df | 4682 | linux*|k*bsd*-gnu) |
16dab3e2 TF |
4683 | version_type=linux |
4684 | need_lib_prefix=no | |
4685 | need_version=no | |
4686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4687 | soname_spec='${libname}${release}${shared_ext}$major' | |
4688 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
4689 | shlibpath_var=LD_LIBRARY_PATH | |
4690 | shlibpath_overrides_runpath=no | |
4691 | # This implies no fast_install, which is unacceptable. | |
4692 | # Some rework will be needed to allow for fast_install | |
4693 | # before this can be enabled. | |
4694 | hardcode_into_libs=yes | |
4695 | ||
4696 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
4697 | # powerpc, because MkLinux only supported shared libraries with the | |
4698 | # GNU dynamic linker. Since this was broken with cross compilers, | |
4699 | # most powerpc-linux boxes support dynamic linking these days and | |
4700 | # people can always --disable-shared, the test was removed, and we | |
4701 | # assume the GNU/Linux dynamic linker is in use. | |
4702 | dynamic_linker='GNU/Linux ld.so' | |
4703 | ;; | |
4704 | ||
4705 | netbsd*) | |
4706 | version_type=sunos | |
4707 | need_lib_prefix=no | |
4708 | need_version=no | |
4709 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
4710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
4711 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
4712 | dynamic_linker='NetBSD (a.out) ld.so' | |
4713 | else | |
4714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | |
4715 | soname_spec='${libname}${release}${shared_ext}$major' | |
4716 | dynamic_linker='NetBSD ld.elf_so' | |
4717 | fi | |
4718 | shlibpath_var=LD_LIBRARY_PATH | |
4719 | shlibpath_overrides_runpath=yes | |
4720 | hardcode_into_libs=yes | |
4721 | ;; | |
4722 | ||
4723 | newsos6) | |
4724 | version_type=linux | |
4725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4726 | shlibpath_var=LD_LIBRARY_PATH | |
4727 | shlibpath_overrides_runpath=yes | |
4728 | ;; | |
4729 | ||
4730 | nto-qnx) | |
4731 | version_type=linux | |
4732 | need_lib_prefix=no | |
4733 | need_version=no | |
4734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4735 | soname_spec='${libname}${release}${shared_ext}$major' | |
4736 | shlibpath_var=LD_LIBRARY_PATH | |
4737 | shlibpath_overrides_runpath=yes | |
4738 | ;; | |
4739 | ||
4740 | openbsd*) | |
4741 | version_type=sunos | |
4742 | need_lib_prefix=no | |
4743 | need_version=no | |
4744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
4745 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
4746 | shlibpath_var=LD_LIBRARY_PATH | |
4747 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4748 | case $host_os in | |
4749 | openbsd2.[89] | openbsd2.[89].*) | |
4750 | shlibpath_overrides_runpath=no | |
4751 | ;; | |
4752 | *) | |
4753 | shlibpath_overrides_runpath=yes | |
4754 | ;; | |
4755 | esac | |
4756 | else | |
4757 | shlibpath_overrides_runpath=yes | |
4758 | fi | |
4759 | ;; | |
4760 | ||
4761 | os2*) | |
4762 | libname_spec='$name' | |
4763 | shrext=".dll" | |
4764 | need_lib_prefix=no | |
4765 | library_names_spec='$libname${shared_ext} $libname.a' | |
4766 | dynamic_linker='OS/2 ld.exe' | |
4767 | shlibpath_var=LIBPATH | |
4768 | ;; | |
4769 | ||
4770 | osf3* | osf4* | osf5*) | |
4771 | version_type=osf | |
4772 | need_lib_prefix=no | |
4773 | need_version=no | |
4774 | soname_spec='${libname}${release}${shared_ext}$major' | |
4775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4776 | shlibpath_var=LD_LIBRARY_PATH | |
4777 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
4778 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
4779 | ;; | |
4780 | ||
4781 | sco3.2v5*) | |
4782 | version_type=osf | |
4783 | soname_spec='${libname}${release}${shared_ext}$major' | |
4784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4785 | shlibpath_var=LD_LIBRARY_PATH | |
4786 | ;; | |
4787 | ||
4788 | solaris*) | |
4789 | version_type=linux | |
4790 | need_lib_prefix=no | |
4791 | need_version=no | |
4792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4793 | soname_spec='${libname}${release}${shared_ext}$major' | |
4794 | shlibpath_var=LD_LIBRARY_PATH | |
4795 | shlibpath_overrides_runpath=yes | |
4796 | hardcode_into_libs=yes | |
4797 | # ldd complains unless libraries are executable | |
4798 | postinstall_cmds='chmod +x $lib' | |
4799 | ;; | |
4800 | ||
4801 | sunos4*) | |
4802 | version_type=sunos | |
4803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
4804 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
4805 | shlibpath_var=LD_LIBRARY_PATH | |
4806 | shlibpath_overrides_runpath=yes | |
4807 | if test "$with_gnu_ld" = yes; then | |
4808 | need_lib_prefix=no | |
4809 | fi | |
4810 | need_version=yes | |
4811 | ;; | |
4812 | ||
4813 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4814 | version_type=linux | |
4815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4816 | soname_spec='${libname}${release}${shared_ext}$major' | |
4817 | shlibpath_var=LD_LIBRARY_PATH | |
4818 | case $host_vendor in | |
4819 | sni) | |
4820 | shlibpath_overrides_runpath=no | |
4821 | need_lib_prefix=no | |
4822 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
4823 | runpath_var=LD_RUN_PATH | |
4824 | ;; | |
4825 | siemens) | |
4826 | need_lib_prefix=no | |
4827 | ;; | |
4828 | motorola) | |
4829 | need_lib_prefix=no | |
4830 | need_version=no | |
4831 | shlibpath_overrides_runpath=no | |
4832 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
4833 | ;; | |
4834 | esac | |
4835 | ;; | |
4836 | ||
4837 | sysv4*MP*) | |
4838 | if test -d /usr/nec ;then | |
4839 | version_type=linux | |
4840 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
4841 | soname_spec='$libname${shared_ext}.$major' | |
4842 | shlibpath_var=LD_LIBRARY_PATH | |
4843 | fi | |
4844 | ;; | |
4845 | ||
4846 | uts4*) | |
4847 | version_type=linux | |
4848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
4849 | soname_spec='${libname}${release}${shared_ext}$major' | |
4850 | shlibpath_var=LD_LIBRARY_PATH | |
4851 | ;; | |
4852 | ||
4853 | *) | |
4854 | dynamic_linker=no | |
4855 | ;; | |
4856 | esac | |
ade710a5 TF |
4857 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
4858 | echo "${ECHO_T}$dynamic_linker" >&6 | |
16dab3e2 TF |
4859 | test "$dynamic_linker" = no && can_build_shared=no |
4860 | ||
4861 | ||
ade710a5 TF |
4862 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
4863 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | |
16dab3e2 TF |
4864 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
4865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4866 | else | |
4867 | libltdl_cv_shlibpath_var="$shlibpath_var" | |
4868 | fi | |
ade710a5 TF |
4869 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
4870 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | |
16dab3e2 TF |
4871 | if test -n "$libltdl_cv_shlibpath_var"; then |
4872 | ||
4873 | cat >>confdefs.h <<_ACEOF | |
4874 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | |
4875 | _ACEOF | |
4876 | ||
4877 | fi | |
4878 | ||
4879 | fi | |
4880 | ||
ade710a5 | 4881 | ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h" |
ee9dd372 | 4882 | |
b0fa81ee TT |
4883 | |
4884 | # See if the user has requested runtime debugging. | |
4885 | LIBGCJDEBUG="disable" | |
4886 | ||
ade710a5 | 4887 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given. |
b0fa81ee | 4888 | if test "${enable_libgcj_debug+set}" = set; then |
ade710a5 TF |
4889 | enableval="$enable_libgcj_debug" |
4890 | if test "$enable_libgcj_debug" = yes; then | |
b0fa81ee TT |
4891 | |
4892 | cat >>confdefs.h <<\_ACEOF | |
4893 | #define DEBUG 1 | |
4894 | _ACEOF | |
4895 | ||
4896 | LIBGCJDEBUG="enable" | |
4897 | fi | |
ade710a5 | 4898 | fi; |
b0fa81ee | 4899 | |
97b8365c TT |
4900 | |
4901 | # Check whether --with-escher or --without-escher was given. | |
4902 | if test "${with_escher+set}" = set; then | |
4903 | withval="$with_escher" | |
4904 | ||
4905 | fi; | |
4906 | case "$with_escher" in | |
4907 | "") | |
4908 | use_escher=false | |
4909 | ;; | |
4910 | "no") | |
4911 | use_escher=false | |
4912 | ;; | |
4913 | "yes") | |
4914 | { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5 | |
4915 | echo "$as_me: error: Please supply an absolute path to Escher library" >&2;} | |
4916 | { (exit 1); exit 1; }; } | |
4917 | ;; | |
4918 | *) | |
4919 | use_escher=true | |
4920 | ;; | |
4921 | esac | |
4922 | ||
b0fa81ee | 4923 | # Determine which AWT peer libraries to build |
ade710a5 | 4924 | # Check whether --enable-java-awt or --disable-java-awt was given. |
b0fa81ee | 4925 | if test "${enable_java_awt+set}" = set; then |
ade710a5 | 4926 | enableval="$enable_java_awt" |
b0fa81ee | 4927 | |
ade710a5 | 4928 | fi; |
b0fa81ee TT |
4929 | |
4930 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`" | |
4931 | use_xlib_awt="" | |
4932 | use_gtk_awt="" | |
ab3fa9d3 | 4933 | use_qt_awt="" |
97b8365c | 4934 | use_x_awt="" |
b0fa81ee TT |
4935 | # The default toolkit to use is the first one specified. |
4936 | TOOLKIT= | |
4937 | ||
4938 | ||
4939 | for peer in $peerlibs ; do | |
4940 | case $peer in | |
4941 | xlib) | |
4942 | if test "$no_x" = yes; then | |
4943 | echo "*** xlib peers requested but no X library available" 1>&2 | |
4944 | exit 1 | |
4945 | else | |
9365047a TT |
4946 | use_xlib_awt="yes" |
4947 | if test -z "$TOOLKIT"; then | |
4948 | TOOLKIT=gnu.awt.xlib.XToolkit | |
4949 | fi | |
b0fa81ee TT |
4950 | fi |
4951 | ;; | |
4952 | gtk) | |
4953 | if test "$no_x" = yes; then | |
ab3fa9d3 | 4954 | echo "*** gtk peers requested but no X library available" 1>&2 |
b0fa81ee TT |
4955 | exit 1 |
4956 | else | |
4957 | use_gtk_awt=yes | |
4958 | if test -z "$TOOLKIT"; then | |
4959 | TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit | |
4960 | fi | |
4961 | fi | |
4962 | ;; | |
ab3fa9d3 TT |
4963 | qt) |
4964 | if test "$no_x" = yes; then | |
4965 | # Perhaps we should admit the possibility of embedded Qt. | |
4966 | echo "*** Qt peers requested but no X library available" 1>&2 | |
4967 | exit 1 | |
4968 | else | |
4969 | use_qt_awt=yes | |
4970 | if test -z "$TOOLKIT"; then | |
4971 | TOOLKIT=gnu.java.awt.peer.qt.QtToolkit | |
4972 | fi | |
4973 | fi | |
4974 | ;; | |
97b8365c TT |
4975 | x) |
4976 | use_x_awt=yes | |
4977 | if test -z "$TOOLKIT"; then | |
4978 | TOOLKIT=gnu.java.awt.peer.x.XToolkit | |
4979 | fi | |
4980 | ;; | |
b0fa81ee TT |
4981 | no) |
4982 | use_xlib_awt= | |
4983 | use_gtk_awt= | |
ab3fa9d3 | 4984 | use_qt_awt= |
97b8365c | 4985 | use_x_awt= |
b0fa81ee TT |
4986 | break |
4987 | ;; | |
4988 | *) | |
4989 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2 | |
4990 | exit 1 | |
4991 | esac | |
4992 | done | |
4993 | ||
4994 | ||
4995 | ||
4996 | if test "$use_xlib_awt" = yes; then | |
4997 | XLIB_AWT_TRUE= | |
4998 | XLIB_AWT_FALSE='#' | |
4999 | else | |
5000 | XLIB_AWT_TRUE='#' | |
5001 | XLIB_AWT_FALSE= | |
5002 | fi | |
5003 | ||
5004 | ||
97b8365c TT |
5005 | |
5006 | if test "$use_x_awt" = yes; then | |
5007 | X_AWT_TRUE= | |
5008 | X_AWT_FALSE='#' | |
5009 | else | |
5010 | X_AWT_TRUE='#' | |
5011 | X_AWT_FALSE= | |
5012 | fi | |
5013 | ||
5014 | ||
5015 | ||
5016 | cat >>confdefs.h <<_ACEOF | |
5017 | #define AWT_TOOLKIT "$TOOLKIT" | |
5018 | _ACEOF | |
5019 | ||
5020 | ||
5021 | ||
5022 | cat >>confdefs.h <<_ACEOF | |
5023 | #define LIBGCJ_PREFIX "$prefix" | |
5024 | _ACEOF | |
5025 | ||
5026 | ||
9365047a TT |
5027 | # Create standard.omit based on decisions we just made. |
5028 | cp $srcdir/standard.omit.in standard.omit | |
5029 | if test "$use_xlib_awt" != yes; then | |
5030 | echo gnu/awt/xlib >> standard.omit | |
5031 | echo gnu/gcj/xlib >> standard.omit | |
5032 | fi | |
97b8365c TT |
5033 | if test "$use_x_awt" != yes; then |
5034 | echo gnu/java/awt/peer/x >> standard.omit | |
5035 | fi | |
b0fa81ee TT |
5036 | |
5037 | if test -z "${with_multisubdir}"; then | |
5038 | builddotdot=. | |
5039 | else | |
5040 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'` | |
5041 | fi | |
5042 | ||
5043 | NATIVE=yes | |
5044 | ||
97b8365c | 5045 | # Which gcj and host gcj (for ecjx) do we use? |
b0fa81ee | 5046 | which_gcj=default |
97b8365c TT |
5047 | host_exeext=${ac_exeext} |
5048 | GCJ_FOR_ECJX= | |
b0fa81ee TT |
5049 | built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`" |
5050 | if test -n "${with_cross_host}"; then | |
5051 | # We are being configured with a cross compiler. We can't | |
5052 | # use ac_exeext, because that is for the target platform. | |
5053 | NATIVE=no | |
5054 | cross_host_exeext= | |
97b8365c | 5055 | GCJ_FOR_ECJX="${with_cross_host}-gcj" |
b0fa81ee TT |
5056 | case "${with_cross_host}" in |
5057 | *mingw* | *cygwin*) | |
5058 | cross_host_exeext=.exe | |
5059 | ;; | |
5060 | esac | |
97b8365c | 5061 | host_exeext=${cross_host_exeext} |
b0fa81ee TT |
5062 | if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then |
5063 | if test x"$build_noncanonical" = x"$with_cross_host"; then | |
5064 | # Ordinary cross (host!=target and host=build) | |
5065 | which_gcj=built | |
5066 | else | |
5067 | # Canadian cross (host!=target and host!=build) | |
5068 | which_gcj=cross | |
5069 | fi | |
5070 | else | |
5071 | which_gcj=cross | |
5072 | fi | |
5073 | else | |
5074 | # We are being configured with a native or crossed-native compiler | |
5075 | if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then | |
5076 | if test x"$build" = x"$host"; then | |
5077 | # True native build (host=target and host=build) | |
5078 | which_gcj=built | |
5079 | else | |
5080 | # Crossed-native build (host=target and host!=build) | |
5081 | which_gcj=cross | |
5082 | fi | |
5083 | else | |
5084 | which_gcj=path | |
5085 | fi | |
5086 | fi | |
5087 | case "${which_gcj}" in | |
5088 | built) | |
5089 | GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/" | |
5090 | GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh' | |
b0fa81ee TT |
5091 | ;; |
5092 | cross) | |
5093 | if test "x${with_newlib}" = "xyes"; then | |
5094 | # FIXME (comment): Why is this needed? | |
5095 | GCC_UNWIND_INCLUDE= | |
5096 | GCJ="${target_noncanonical}-gcj" | |
5097 | else | |
54076f8b | 5098 | GCJ="$built_gcc_dir/gcj -B$built_gcc_dir/" |
b0fa81ee | 5099 | fi |
54076f8b | 5100 | GCJH="$built_gcc_dir/gcjh" |
b0fa81ee TT |
5101 | ;; |
5102 | path) | |
5103 | GCJ="gcj -B`${PWDCMD-pwd}`/" | |
b0fa81ee TT |
5104 | GCJH=gcjh |
5105 | ;; | |
5106 | esac | |
5107 | ||
5108 | ||
5109 | ||
97b8365c TT |
5110 | |
5111 | ||
b0fa81ee TT |
5112 | # Create it, so that compile/link tests don't fail |
5113 | test -f libgcj.spec || touch libgcj.spec | |
5114 | ||
5115 | ||
5116 | ||
5117 | # Set up to configure Classpath. | |
5118 | # FIXME: no supported way to pass args in autoconf. | |
648e8d6d | 5119 | ac_configure_args="$ac_configure_args --with-fastjar=$JAR" |
97b8365c TT |
5120 | # Disable tool wrappers to avoid ltdl.h configure check. |
5121 | ac_configure_args="$ac_configure_args --disable-tool-wrappers" | |
b0fa81ee TT |
5122 | ac_configure_args="$ac_configure_args --disable-load-library" |
5123 | ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug" | |
5124 | ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT" | |
5125 | dir1=`cd $srcdir && pwd` | |
5126 | dir2=`pwd` | |
5127 | ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2" | |
5128 | ac_configure_args="$ac_configure_args --disable-core-jni" | |
5129 | ac_configure_args="$ac_configure_args --disable-examples" | |
5130 | ac_configure_args="$ac_configure_args --with-glibj=build" | |
648e8d6d TF |
5131 | if test "$plugin_enabled" != yes; then |
5132 | ac_configure_args="$ac_configure_args --disable-plugin" | |
5133 | fi | |
ac1ed908 MW |
5134 | if test "$gconf_enabled" != yes; then |
5135 | ac_configure_args="$ac_configure_args --disable-gconf-peer" | |
5136 | ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory" | |
5137 | fi | |
b0fa81ee | 5138 | if test "$use_gtk_awt" != yes; then |
97b8365c | 5139 | ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin" |
b0fa81ee | 5140 | fi |
ab3fa9d3 TT |
5141 | if test "$use_qt_awt" != yes; then |
5142 | ac_configure_args="$ac_configure_args --disable-qt-peer" | |
e0f7b260 TT |
5143 | else |
5144 | # We need this as qt is disabled by default in classpath. | |
5145 | ac_configure_args="$ac_configure_args --enable-qt-peer" | |
ab3fa9d3 | 5146 | fi |
97b8365c TT |
5147 | if test "$use_x_awt" != yes; then |
5148 | ac_configure_args="$ac_configure_args --without-escher" | |
5149 | else | |
5150 | # We need this as escher is disabled by default in classpath. | |
5151 | if test "$use_escher" != true; then | |
5152 | { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5 | |
5153 | echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;} | |
5154 | { (exit 1); exit 1; }; } | |
5155 | else | |
5156 | ac_configure_args="$ac_configure_args --with-escher=$with_escher" | |
5157 | fi | |
5158 | fi | |
5159 | # -Werror causes unavoidable problems in code using alsa. | |
5160 | ac_configure_args="$ac_configure_args --disable-Werror" | |
b0fa81ee | 5161 | |
d6f6aaf6 | 5162 | # Only use libltdl for non-newlib builds. |
2d29f3a1 | 5163 | if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then |
52a11cbf | 5164 | case $enable_ltdl_convenience in |
ed698112 NN |
5165 | no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 |
5166 | echo "$as_me: error: this package needs a convenience libltdl" >&2;} | |
5167 | { (exit 1); exit 1; }; } ;; | |
7af85558 TT |
5168 | "") enable_ltdl_convenience=yes |
5169 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
5170 | esac | |
6d0860ee AO |
5171 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la |
5172 | INCLTDL='-I${top_srcdir}/''libltdl' | |
7af85558 | 5173 | |
ed698112 | 5174 | |
7af85558 | 5175 | DIRLTDL=libltdl |
ed698112 NN |
5176 | |
5177 | cat >>confdefs.h <<\_ACEOF | |
7af85558 | 5178 | #define USE_LTDL 1 |
ed698112 | 5179 | _ACEOF |
7af85558 TT |
5180 | |
5181 | # Sigh. Libtool's macro doesn't do the right thing. | |
5182 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL" | |
7f7ba9bf | 5183 | # FIXME: this is a hack. |
1e6347d8 | 5184 | sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`" |
f1eba847 | 5185 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir" |
7af85558 TT |
5186 | fi |
5187 | ||
5188 | ||
5189 | ||
ade710a5 | 5190 | # Check whether --enable-shared or --disable-shared was given. |
a3ffcff3 | 5191 | if test "${enable_shared+set}" = set; then |
ade710a5 TF |
5192 | enableval="$enable_shared" |
5193 | p=${PACKAGE-default} | |
52a11cbf | 5194 | case $enableval in |
a3ffcff3 TT |
5195 | yes) enable_shared=yes ;; |
5196 | no) enable_shared=no ;; | |
5197 | *) | |
5198 | enable_shared=no | |
5199 | # Look at the argument we got. We use all the common list separators. | |
5200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5201 | for pkg in $enableval; do | |
5202 | if test "X$pkg" = "X$p"; then | |
5203 | enable_shared=yes | |
5204 | fi | |
5205 | done | |
5206 | IFS="$ac_save_ifs" | |
5207 | ;; | |
5208 | esac | |
5209 | else | |
5210 | enable_shared=yes | |
ade710a5 TF |
5211 | fi; |
5212 | # Check whether --enable-static or --disable-static was given. | |
a3ffcff3 | 5213 | if test "${enable_static+set}" = set; then |
ade710a5 TF |
5214 | enableval="$enable_static" |
5215 | p=${PACKAGE-default} | |
52a11cbf | 5216 | case $enableval in |
a3ffcff3 TT |
5217 | yes) enable_static=yes ;; |
5218 | no) enable_static=no ;; | |
5219 | *) | |
5220 | enable_static=no | |
5221 | # Look at the argument we got. We use all the common list separators. | |
5222 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5223 | for pkg in $enableval; do | |
5224 | if test "X$pkg" = "X$p"; then | |
5225 | enable_static=yes | |
5226 | fi | |
5227 | done | |
5228 | IFS="$ac_save_ifs" | |
5229 | ;; | |
5230 | esac | |
5231 | else | |
5232 | enable_static=yes | |
ade710a5 TF |
5233 | fi; |
5234 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
01b02b11 | 5235 | if test "${enable_fast_install+set}" = set; then |
ade710a5 TF |
5236 | enableval="$enable_fast_install" |
5237 | p=${PACKAGE-default} | |
52a11cbf | 5238 | case $enableval in |
01b02b11 TT |
5239 | yes) enable_fast_install=yes ;; |
5240 | no) enable_fast_install=no ;; | |
5241 | *) | |
5242 | enable_fast_install=no | |
5243 | # Look at the argument we got. We use all the common list separators. | |
5244 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5245 | for pkg in $enableval; do | |
5246 | if test "X$pkg" = "X$p"; then | |
5247 | enable_fast_install=yes | |
5248 | fi | |
5249 | done | |
5250 | IFS="$ac_save_ifs" | |
5251 | ;; | |
5252 | esac | |
5253 | else | |
5254 | enable_fast_install=yes | |
ade710a5 | 5255 | fi; |
02809848 | 5256 | |
ade710a5 | 5257 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
a3ffcff3 | 5258 | if test "${with_gnu_ld+set}" = set; then |
ade710a5 TF |
5259 | withval="$with_gnu_ld" |
5260 | test "$withval" = no || with_gnu_ld=yes | |
a3ffcff3 TT |
5261 | else |
5262 | with_gnu_ld=no | |
ade710a5 | 5263 | fi; |
a3ffcff3 | 5264 | ac_prog=ld |
52a11cbf | 5265 | if test "$GCC" = yes; then |
a3ffcff3 | 5266 | # Check if gcc -print-prog-name=ld gives a path. |
ade710a5 TF |
5267 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
5268 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
6d0860ee AO |
5269 | case $host in |
5270 | *-*-mingw*) | |
5271 | # gcc leaves a trailing carriage return which upsets mingw | |
5272 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5273 | *) | |
5274 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5275 | esac | |
52a11cbf | 5276 | case $ac_prog in |
01b02b11 | 5277 | # Accept absolute paths. |
7af85558 | 5278 | [\\/]* | [A-Za-z]:[\\/]*) |
01b02b11 TT |
5279 | re_direlt='/[^/][^/]*/\.\./' |
5280 | # Canonicalize the path of ld | |
5281 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5282 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5283 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5284 | done | |
5285 | test -z "$LD" && LD="$ac_prog" | |
5286 | ;; | |
a3ffcff3 TT |
5287 | "") |
5288 | # If it fails, then pretend we aren't using GCC. | |
5289 | ac_prog=ld | |
5290 | ;; | |
5291 | *) | |
5292 | # If it is relative, then search for the first ld in PATH. | |
5293 | with_gnu_ld=unknown | |
5294 | ;; | |
5295 | esac | |
5296 | elif test "$with_gnu_ld" = yes; then | |
ade710a5 TF |
5297 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
5298 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
a3ffcff3 | 5299 | else |
ade710a5 TF |
5300 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
5301 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
a3ffcff3 | 5302 | fi |
ed698112 NN |
5303 | if test "${lt_cv_path_LD+set}" = set; then |
5304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a3ffcff3 TT |
5305 | else |
5306 | if test -z "$LD"; then | |
7af85558 | 5307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
a3ffcff3 TT |
5308 | for ac_dir in $PATH; do |
5309 | test -z "$ac_dir" && ac_dir=. | |
7af85558 | 5310 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
52a11cbf | 5311 | lt_cv_path_LD="$ac_dir/$ac_prog" |
a3ffcff3 TT |
5312 | # Check to see if the program is GNU ld. I'd rather use --version, |
5313 | # but apparently some GNU ld's only accept -v. | |
5314 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
52a11cbf | 5315 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
a3ffcff3 TT |
5316 | test "$with_gnu_ld" != no && break |
5317 | else | |
01b02b11 | 5318 | test "$with_gnu_ld" != yes && break |
a3ffcff3 TT |
5319 | fi |
5320 | fi | |
5321 | done | |
5322 | IFS="$ac_save_ifs" | |
5323 | else | |
52a11cbf | 5324 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
a3ffcff3 TT |
5325 | fi |
5326 | fi | |
5327 | ||
52a11cbf | 5328 | LD="$lt_cv_path_LD" |
a3ffcff3 | 5329 | if test -n "$LD"; then |
ade710a5 TF |
5330 | echo "$as_me:$LINENO: result: $LD" >&5 |
5331 | echo "${ECHO_T}$LD" >&6 | |
a3ffcff3 | 5332 | else |
ade710a5 TF |
5333 | echo "$as_me:$LINENO: result: no" >&5 |
5334 | echo "${ECHO_T}no" >&6 | |
a3ffcff3 | 5335 | fi |
ed698112 NN |
5336 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5337 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5338 | { (exit 1); exit 1; }; } | |
ade710a5 TF |
5339 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
5340 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
ed698112 NN |
5341 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
5342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a3ffcff3 TT |
5343 | else |
5344 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5345 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
52a11cbf | 5346 | lt_cv_prog_gnu_ld=yes |
a3ffcff3 | 5347 | else |
52a11cbf | 5348 | lt_cv_prog_gnu_ld=no |
a3ffcff3 TT |
5349 | fi |
5350 | fi | |
ade710a5 TF |
5351 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5352 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
52a11cbf | 5353 | with_gnu_ld=$lt_cv_prog_gnu_ld |
6d0860ee AO |
5354 | |
5355 | ||
ade710a5 TF |
5356 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5357 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
ed698112 NN |
5358 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
5359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee AO |
5360 | else |
5361 | lt_cv_ld_reload_flag='-r' | |
5362 | fi | |
ade710a5 TF |
5363 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5364 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
6d0860ee AO |
5365 | reload_flag=$lt_cv_ld_reload_flag |
5366 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
a3ffcff3 | 5367 | |
ade710a5 TF |
5368 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
5369 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
ed698112 NN |
5370 | if test "${lt_cv_path_NM+set}" = set; then |
5371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a3ffcff3 TT |
5372 | else |
5373 | if test -n "$NM"; then | |
5374 | # Let the user override the test. | |
52a11cbf | 5375 | lt_cv_path_NM="$NM" |
a3ffcff3 | 5376 | else |
7af85558 | 5377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
01b02b11 | 5378 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
a3ffcff3 | 5379 | test -z "$ac_dir" && ac_dir=. |
6d0860ee AO |
5380 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
5381 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
a3ffcff3 TT |
5382 | # Check to see if the nm accepts a BSD-compat flag. |
5383 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5384 | # nm: unknown option "B" ignored | |
6d0860ee AO |
5385 | # Tru64's nm complains that /dev/null is an invalid object file |
5386 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
52a11cbf | 5387 | lt_cv_path_NM="$tmp_nm -B" |
01b02b11 | 5388 | break |
6d0860ee | 5389 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
52a11cbf | 5390 | lt_cv_path_NM="$tmp_nm -p" |
01b02b11 | 5391 | break |
a3ffcff3 | 5392 | else |
52a11cbf | 5393 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
01b02b11 | 5394 | continue # so that we can try to find one that supports BSD flags |
a3ffcff3 | 5395 | fi |
a3ffcff3 TT |
5396 | fi |
5397 | done | |
5398 | IFS="$ac_save_ifs" | |
52a11cbf | 5399 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
a3ffcff3 TT |
5400 | fi |
5401 | fi | |
5402 | ||
52a11cbf | 5403 | NM="$lt_cv_path_NM" |
ade710a5 TF |
5404 | echo "$as_me:$LINENO: result: $NM" >&5 |
5405 | echo "${ECHO_T}$NM" >&6 | |
a3ffcff3 | 5406 | |
ade710a5 TF |
5407 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
5408 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
ed698112 NN |
5409 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee | 5411 | else |
5f527203 | 5412 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6d0860ee AO |
5413 | lt_cv_file_magic_test_file= |
5414 | lt_cv_deplibs_check_method='unknown' | |
5415 | # Need to set the preceding variable on all platforms that support | |
5416 | # interlibrary dependencies. | |
5417 | # 'none' -- dependencies not supported. | |
5418 | # `unknown' -- same as none, but documents that we really don't know. | |
5419 | # 'pass_all' -- all dependencies passed with no checks. | |
5420 | # 'test_compile' -- check by making test program. | |
5421 | # 'file_magic [regex]' -- check by looking for files in library path | |
5422 | # which responds to the $file_magic_cmd with a given egrep regex. | |
5423 | # If you have `file' or equivalent on your system and you're not sure | |
5424 | # whether `pass_all' will *always* work, you probably want this one. | |
5425 | ||
52a11cbf RH |
5426 | case $host_os in |
5427 | aix*) | |
6d0860ee AO |
5428 | lt_cv_deplibs_check_method=pass_all |
5429 | ;; | |
5430 | ||
5431 | beos*) | |
5432 | lt_cv_deplibs_check_method=pass_all | |
5433 | ;; | |
a3ffcff3 | 5434 | |
6d0860ee | 5435 | bsdi4*) |
52a11cbf RH |
5436 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5437 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6d0860ee AO |
5438 | lt_cv_file_magic_test_file=/shlib/libc.so |
5439 | ;; | |
5440 | ||
5f527203 | 5441 | cygwin* | mingw* |pw32*) |
6d0860ee | 5442 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
5f527203 | 5443 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6d0860ee AO |
5444 | ;; |
5445 | ||
52a11cbf | 5446 | darwin* | rhapsody*) |
e44b879c | 5447 | # this will be overwritten by pass_all, but leave it in just in case |
52a11cbf | 5448 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
5ec89e89 AO |
5449 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
5450 | case "$host_os" in | |
5451 | rhapsody* | darwin1.012) | |
5452 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
5453 | ;; | |
5454 | *) # Darwin 1.3 on | |
5455 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
5456 | ;; | |
5457 | esac | |
e44b879c | 5458 | lt_cv_deplibs_check_method=pass_all |
52a11cbf RH |
5459 | ;; |
5460 | ||
f1c3e0a6 | 5461 | freebsd* | kfreebsd*-gnu) |
6d0860ee | 5462 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
52a11cbf | 5463 | case $host_cpu in |
6d0860ee AO |
5464 | i*86 ) |
5465 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5466 | # Let's accept both of them until this is cleared up. | |
52a11cbf RH |
5467 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
5468 | lt_cv_file_magic_cmd=/usr/bin/file | |
6d0860ee AO |
5469 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5470 | ;; | |
5471 | esac | |
5472 | else | |
5473 | lt_cv_deplibs_check_method=pass_all | |
5474 | fi | |
5475 | ;; | |
5476 | ||
5477 | gnu*) | |
5478 | lt_cv_deplibs_check_method=pass_all | |
5479 | ;; | |
5480 | ||
52a11cbf | 5481 | hpux10.20*|hpux11*) |
f5cc59a7 AO |
5482 | case $host_cpu in |
5483 | hppa*) | |
5484 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5485 | lt_cv_file_magic_cmd=/usr/bin/file | |
5486 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5487 | ;; | |
5488 | ia64*) | |
5489 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5490 | lt_cv_file_magic_cmd=/usr/bin/file | |
5491 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5492 | ;; | |
5493 | esac | |
6d0860ee AO |
5494 | ;; |
5495 | ||
5496 | irix5* | irix6*) | |
52a11cbf | 5497 | case $host_os in |
6d0860ee AO |
5498 | irix5*) |
5499 | # this will be overridden with pass_all, but let us keep it just in case | |
5500 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
5501 | ;; | |
5502 | *) | |
52a11cbf | 5503 | case $LD in |
6d0860ee AO |
5504 | *-32|*"-32 ") libmagic=32-bit;; |
5505 | *-n32|*"-n32 ") libmagic=N32;; | |
5506 | *-64|*"-64 ") libmagic=64-bit;; | |
5507 | *) libmagic=never-match;; | |
5508 | esac | |
5509 | # this will be overridden with pass_all, but let us keep it just in case | |
52a11cbf RH |
5510 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
5511 | ;; | |
6d0860ee AO |
5512 | esac |
5513 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
5514 | lt_cv_deplibs_check_method=pass_all | |
5515 | ;; | |
5516 | ||
5517 | # This must be Linux ELF. | |
5518 | linux-gnu*) | |
2539bffe | 5519 | lt_cv_deplibs_check_method=pass_all |
6d0860ee AO |
5520 | ;; |
5521 | ||
f1c3e0a6 | 5522 | netbsd* | knetbsd*-gnu) |
52a11cbf | 5523 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5ec89e89 | 5524 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
6d0860ee | 5525 | else |
5ec89e89 | 5526 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
6d0860ee | 5527 | fi |
52a11cbf RH |
5528 | ;; |
5529 | ||
5530 | newsos6) | |
5531 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5532 | lt_cv_file_magic_cmd=/usr/bin/file | |
5533 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6d0860ee AO |
5534 | ;; |
5535 | ||
5536 | osf3* | osf4* | osf5*) | |
5537 | # this will be overridden with pass_all, but let us keep it just in case | |
5538 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
5539 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5540 | lt_cv_deplibs_check_method=pass_all | |
5541 | ;; | |
5542 | ||
5543 | sco3.2v5*) | |
5544 | lt_cv_deplibs_check_method=pass_all | |
5545 | ;; | |
5546 | ||
5547 | solaris*) | |
5548 | lt_cv_deplibs_check_method=pass_all | |
5549 | lt_cv_file_magic_test_file=/lib/libc.so | |
5550 | ;; | |
5551 | ||
3610e0d5 TT |
5552 | sysv5uw[78]* | sysv4*uw2*) |
5553 | lt_cv_deplibs_check_method=pass_all | |
5554 | ;; | |
5555 | ||
6d0860ee | 5556 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
52a11cbf | 5557 | case $host_vendor in |
6d0860ee AO |
5558 | ncr) |
5559 | lt_cv_deplibs_check_method=pass_all | |
5560 | ;; | |
5561 | motorola) | |
52a11cbf RH |
5562 | 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]' |
5563 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6d0860ee AO |
5564 | ;; |
5565 | esac | |
5566 | ;; | |
7af85558 TT |
5567 | esac |
5568 | ||
6d0860ee | 5569 | fi |
ade710a5 TF |
5570 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5571 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6d0860ee AO |
5572 | file_magic_cmd=$lt_cv_file_magic_cmd |
5573 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5574 | ||
6d0860ee | 5575 | |
ed698112 | 5576 | |
6d0860ee AO |
5577 | |
5578 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5579 | ||
c69094e1 | 5580 | # find the maximum length of command line arguments |
ade710a5 TF |
5581 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5582 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
c69094e1 TT |
5583 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5585 | else | |
5586 | i=0 | |
5587 | teststring="ABCD" | |
5588 | ||
5589 | case $build_os in | |
5590 | msdosdjgpp*) | |
5591 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5592 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5593 | # during glob expansion). Even if it were fixed, the result of this | |
5594 | # check would be larger than it should be. | |
5595 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5596 | ;; | |
5597 | ||
5598 | cygwin* | mingw*) | |
5599 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5600 | # about 5 minutes as the teststring grows exponentially. | |
5601 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5602 | # you end up with a "frozen" computer, even though with patience | |
5603 | # the test eventually succeeds (with a max line length of 256k). | |
5604 | # Instead, let's just punt: use the minimum linelength reported by | |
5605 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5606 | lt_cv_sys_max_cmd_len=8192; | |
5607 | ;; | |
5608 | ||
5609 | amigaos*) | |
5610 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5611 | # So we just punt and use a minimum line length of 8192. | |
5612 | lt_cv_sys_max_cmd_len=8192; | |
5613 | ;; | |
5614 | ||
5615 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5616 | # This has been around since 386BSD, at least. Likely further. | |
5617 | if test -x /sbin/sysctl; then | |
5618 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5619 | elif test -x /usr/sbin/sysctl; then | |
5620 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5621 | else | |
5622 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
5623 | fi | |
5624 | # And add a safety zone | |
5625 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5626 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5627 | ;; | |
5628 | esac | |
5629 | ||
5630 | fi | |
5631 | ||
5632 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
ade710a5 TF |
5633 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5634 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
c69094e1 | 5635 | else |
ade710a5 TF |
5636 | echo "$as_me:$LINENO: result: none" >&5 |
5637 | echo "${ECHO_T}none" >&6 | |
c69094e1 TT |
5638 | fi |
5639 | ||
5640 | ||
6d0860ee | 5641 | # Only perform the check for file, if the check method requires it |
52a11cbf | 5642 | case $deplibs_check_method in |
6d0860ee | 5643 | file_magic*) |
5f527203 | 5644 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ade710a5 TF |
5645 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
5646 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
ed698112 NN |
5647 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee | 5649 | else |
52a11cbf | 5650 | case $MAGIC_CMD in |
6d0860ee | 5651 | /*) |
5f527203 | 5652 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6d0860ee AO |
5653 | ;; |
5654 | ?:/*) | |
5f527203 | 5655 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
6d0860ee AO |
5656 | ;; |
5657 | *) | |
5f527203 | 5658 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
6d0860ee AO |
5659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5660 | ac_dummy="/usr/bin:$PATH" | |
5661 | for ac_dir in $ac_dummy; do | |
5662 | test -z "$ac_dir" && ac_dir=. | |
5663 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5f527203 | 5664 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6d0860ee | 5665 | if test -n "$file_magic_test_file"; then |
52a11cbf | 5666 | case $deplibs_check_method in |
6d0860ee AO |
5667 | "file_magic "*) |
5668 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 5669 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6d0860ee AO |
5670 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5671 | egrep "$file_magic_regex" > /dev/null; then | |
5672 | : | |
5673 | else | |
5674 | cat <<EOF 1>&2 | |
5675 | ||
5676 | *** Warning: the command libtool uses to detect shared libraries, | |
5677 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5678 | *** The result is that libtool may fail to recognize shared libraries | |
5679 | *** as such. This will affect the creation of libtool libraries that | |
5680 | *** depend on shared libraries, but programs linked with such libtool | |
5681 | *** libraries will work regardless of this problem. Nevertheless, you | |
5682 | *** may want to report the problem to your system manager and/or to | |
5683 | *** bug-libtool@gnu.org | |
5684 | ||
5685 | EOF | |
5686 | fi ;; | |
5687 | esac | |
5688 | fi | |
5689 | break | |
5690 | fi | |
5691 | done | |
5692 | IFS="$ac_save_ifs" | |
5f527203 | 5693 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
6d0860ee AO |
5694 | ;; |
5695 | esac | |
5696 | fi | |
5697 | ||
5f527203 AO |
5698 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5699 | if test -n "$MAGIC_CMD"; then | |
ade710a5 TF |
5700 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5701 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6d0860ee | 5702 | else |
ade710a5 TF |
5703 | echo "$as_me:$LINENO: result: no" >&5 |
5704 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5705 | fi |
5706 | ||
5f527203 | 5707 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6d0860ee | 5708 | if test -n "$ac_tool_prefix"; then |
ade710a5 TF |
5709 | echo "$as_me:$LINENO: checking for file" >&5 |
5710 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
ed698112 NN |
5711 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee | 5713 | else |
52a11cbf | 5714 | case $MAGIC_CMD in |
6d0860ee | 5715 | /*) |
5f527203 | 5716 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6d0860ee AO |
5717 | ;; |
5718 | ?:/*) | |
5f527203 | 5719 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
6d0860ee AO |
5720 | ;; |
5721 | *) | |
5f527203 | 5722 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
6d0860ee AO |
5723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5724 | ac_dummy="/usr/bin:$PATH" | |
5725 | for ac_dir in $ac_dummy; do | |
5726 | test -z "$ac_dir" && ac_dir=. | |
5727 | if test -f $ac_dir/file; then | |
5f527203 | 5728 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6d0860ee | 5729 | if test -n "$file_magic_test_file"; then |
52a11cbf | 5730 | case $deplibs_check_method in |
6d0860ee AO |
5731 | "file_magic "*) |
5732 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 5733 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6d0860ee AO |
5734 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5735 | egrep "$file_magic_regex" > /dev/null; then | |
5736 | : | |
5737 | else | |
5738 | cat <<EOF 1>&2 | |
5739 | ||
5740 | *** Warning: the command libtool uses to detect shared libraries, | |
5741 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5742 | *** The result is that libtool may fail to recognize shared libraries | |
5743 | *** as such. This will affect the creation of libtool libraries that | |
5744 | *** depend on shared libraries, but programs linked with such libtool | |
5745 | *** libraries will work regardless of this problem. Nevertheless, you | |
5746 | *** may want to report the problem to your system manager and/or to | |
5747 | *** bug-libtool@gnu.org | |
5748 | ||
5749 | EOF | |
5750 | fi ;; | |
5751 | esac | |
5752 | fi | |
5753 | break | |
5754 | fi | |
5755 | done | |
5756 | IFS="$ac_save_ifs" | |
5f527203 | 5757 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
6d0860ee AO |
5758 | ;; |
5759 | esac | |
5760 | fi | |
5761 | ||
5f527203 AO |
5762 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5763 | if test -n "$MAGIC_CMD"; then | |
ade710a5 TF |
5764 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5765 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6d0860ee | 5766 | else |
ade710a5 TF |
5767 | echo "$as_me:$LINENO: result: no" >&5 |
5768 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5769 | fi |
5770 | ||
5771 | else | |
5f527203 | 5772 | MAGIC_CMD=: |
6d0860ee AO |
5773 | fi |
5774 | fi | |
5775 | ||
5776 | fi | |
5777 | ;; | |
5778 | esac | |
5779 | ||
ed698112 NN |
5780 | if test -n "$ac_tool_prefix"; then |
5781 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6d0860ee | 5782 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
ade710a5 TF |
5783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
5785 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee AO |
5787 | else |
5788 | if test -n "$RANLIB"; then | |
5789 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5790 | else | |
ed698112 NN |
5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5792 | for as_dir in $PATH | |
5793 | do | |
5794 | IFS=$as_save_IFS | |
5795 | test -z "$as_dir" && as_dir=. | |
5796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 5797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
5798 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5800 | break 2 | |
5801 | fi | |
5802 | done | |
5803 | done | |
5804 | ||
6d0860ee AO |
5805 | fi |
5806 | fi | |
ed698112 | 5807 | RANLIB=$ac_cv_prog_RANLIB |
6d0860ee | 5808 | if test -n "$RANLIB"; then |
ade710a5 TF |
5809 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5810 | echo "${ECHO_T}$RANLIB" >&6 | |
6d0860ee | 5811 | else |
ade710a5 TF |
5812 | echo "$as_me:$LINENO: result: no" >&5 |
5813 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5814 | fi |
5815 | ||
ed698112 | 5816 | fi |
6d0860ee | 5817 | if test -z "$ac_cv_prog_RANLIB"; then |
ed698112 | 5818 | ac_ct_RANLIB=$RANLIB |
6d0860ee AO |
5819 | # Extract the first word of "ranlib", so it can be a program name with args. |
5820 | set dummy ranlib; ac_word=$2 | |
ade710a5 TF |
5821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
5823 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee | 5825 | else |
ed698112 NN |
5826 | if test -n "$ac_ct_RANLIB"; then |
5827 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6d0860ee | 5828 | else |
ed698112 NN |
5829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5830 | for as_dir in $PATH | |
5831 | do | |
5832 | IFS=$as_save_IFS | |
5833 | test -z "$as_dir" && as_dir=. | |
5834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 5835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
5836 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5838 | break 2 | |
5839 | fi | |
5840 | done | |
5841 | done | |
5842 | ||
ade710a5 | 5843 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6d0860ee AO |
5844 | fi |
5845 | fi | |
ed698112 NN |
5846 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5847 | if test -n "$ac_ct_RANLIB"; then | |
ade710a5 TF |
5848 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5849 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6d0860ee | 5850 | else |
ade710a5 TF |
5851 | echo "$as_me:$LINENO: result: no" >&5 |
5852 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5853 | fi |
5854 | ||
ade710a5 | 5855 | RANLIB=$ac_ct_RANLIB |
6d0860ee | 5856 | else |
ed698112 | 5857 | RANLIB="$ac_cv_prog_RANLIB" |
6d0860ee AO |
5858 | fi |
5859 | ||
ed698112 NN |
5860 | if test -n "$ac_tool_prefix"; then |
5861 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6d0860ee | 5862 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
ade710a5 TF |
5863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
5865 | if test "${ac_cv_prog_STRIP+set}" = set; then |
5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee AO |
5867 | else |
5868 | if test -n "$STRIP"; then | |
5869 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5870 | else | |
ed698112 NN |
5871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5872 | for as_dir in $PATH | |
5873 | do | |
5874 | IFS=$as_save_IFS | |
5875 | test -z "$as_dir" && as_dir=. | |
5876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 5877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
5878 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5880 | break 2 | |
5881 | fi | |
5882 | done | |
5883 | done | |
5884 | ||
6d0860ee AO |
5885 | fi |
5886 | fi | |
ed698112 | 5887 | STRIP=$ac_cv_prog_STRIP |
6d0860ee | 5888 | if test -n "$STRIP"; then |
ade710a5 TF |
5889 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
5890 | echo "${ECHO_T}$STRIP" >&6 | |
6d0860ee | 5891 | else |
ade710a5 TF |
5892 | echo "$as_me:$LINENO: result: no" >&5 |
5893 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5894 | fi |
5895 | ||
ed698112 | 5896 | fi |
6d0860ee | 5897 | if test -z "$ac_cv_prog_STRIP"; then |
ed698112 | 5898 | ac_ct_STRIP=$STRIP |
6d0860ee AO |
5899 | # Extract the first word of "strip", so it can be a program name with args. |
5900 | set dummy strip; ac_word=$2 | |
ade710a5 TF |
5901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
5903 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6d0860ee | 5905 | else |
ed698112 NN |
5906 | if test -n "$ac_ct_STRIP"; then |
5907 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6d0860ee | 5908 | else |
ed698112 NN |
5909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5910 | for as_dir in $PATH | |
5911 | do | |
5912 | IFS=$as_save_IFS | |
5913 | test -z "$as_dir" && as_dir=. | |
5914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 5915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
5916 | ac_cv_prog_ac_ct_STRIP="strip" |
5917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5918 | break 2 | |
5919 | fi | |
5920 | done | |
5921 | done | |
5922 | ||
ade710a5 | 5923 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6d0860ee AO |
5924 | fi |
5925 | fi | |
ed698112 NN |
5926 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5927 | if test -n "$ac_ct_STRIP"; then | |
ade710a5 TF |
5928 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
5929 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6d0860ee | 5930 | else |
ade710a5 TF |
5931 | echo "$as_me:$LINENO: result: no" >&5 |
5932 | echo "${ECHO_T}no" >&6 | |
6d0860ee AO |
5933 | fi |
5934 | ||
ade710a5 | 5935 | STRIP=$ac_ct_STRIP |
6d0860ee | 5936 | else |
ed698112 | 5937 | STRIP="$ac_cv_prog_STRIP" |
6d0860ee AO |
5938 | fi |
5939 | ||
5940 | ||
a3ffcff3 | 5941 | # Check for any special flags to pass to ltconfig. |
01b02b11 | 5942 | libtool_flags="--cache-file=$cache_file" |
a3ffcff3 TT |
5943 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
5944 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
01b02b11 | 5945 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
52a11cbf RH |
5946 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
5947 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
ed698112 | 5948 | |
7af85558 | 5949 | |
ade710a5 | 5950 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
7af85558 | 5951 | if test "${enable_libtool_lock+set}" = set; then |
ade710a5 | 5952 | enableval="$enable_libtool_lock" |
7af85558 | 5953 | |
ade710a5 | 5954 | fi; |
7af85558 TT |
5955 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
5956 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
a3ffcff3 | 5957 | |
ed698112 | 5958 | |
ade710a5 | 5959 | # Check whether --with-pic or --without-pic was given. |
6d0860ee | 5960 | if test "${with_pic+set}" = set; then |
ade710a5 TF |
5961 | withval="$with_pic" |
5962 | pic_mode="$withval" | |
6d0860ee AO |
5963 | else |
5964 | pic_mode=default | |
ade710a5 | 5965 | fi; |
6d0860ee AO |
5966 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
5967 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
5968 | ||
a3ffcff3 TT |
5969 | # Some flags need to be propagated to the compiler or linker for good |
5970 | # libtool support. | |
52a11cbf | 5971 | case $host in |
a3ffcff3 TT |
5972 | *-*-irix6*) |
5973 | # Find out which ABI we are using. | |
97b8365c | 5974 | echo '#line 5974 "configure"' > conftest.$ac_ext |
ed698112 NN |
5975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5976 | (eval $ac_compile) 2>&5 | |
5977 | ac_status=$? | |
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5979 | (exit $ac_status); }; then | |
3343fdd2 AO |
5980 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5981 | case `/usr/bin/file conftest.$ac_objext` in | |
5982 | *32-bit*) | |
5983 | LD="${LD-ld} -melf32bsmip" | |
5984 | ;; | |
5985 | *N32*) | |
5986 | LD="${LD-ld} -melf32bmipn32" | |
5987 | ;; | |
5988 | *64-bit*) | |
5989 | LD="${LD-ld} -melf64bmip" | |
5990 | ;; | |
5991 | esac | |
5992 | else | |
52a11cbf | 5993 | case `/usr/bin/file conftest.$ac_objext` in |
a3ffcff3 TT |
5994 | *32-bit*) |
5995 | LD="${LD-ld} -32" | |
5996 | ;; | |
5997 | *N32*) | |
5998 | LD="${LD-ld} -n32" | |
5999 | ;; | |
6000 | *64-bit*) | |
6001 | LD="${LD-ld} -64" | |
6002 | ;; | |
6003 | esac | |
3343fdd2 | 6004 | fi |
a3ffcff3 TT |
6005 | fi |
6006 | rm -rf conftest* | |
6007 | ;; | |
6008 | ||
f5cc59a7 AO |
6009 | ia64-*-hpux*) |
6010 | # Find out which ABI we are using. | |
6011 | echo 'int i;' > conftest.$ac_ext | |
ed698112 NN |
6012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6013 | (eval $ac_compile) 2>&5 | |
6014 | ac_status=$? | |
6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6016 | (exit $ac_status); }; then | |
f5cc59a7 AO |
6017 | case "`/usr/bin/file conftest.o`" in |
6018 | *ELF-32*) | |
6019 | HPUX_IA64_MODE="32" | |
6020 | ;; | |
6021 | *ELF-64*) | |
6022 | HPUX_IA64_MODE="64" | |
6023 | ;; | |
6024 | esac | |
6025 | fi | |
6026 | rm -rf conftest* | |
6027 | ;; | |
6028 | ||
54d9d34a AJ |
6029 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
6030 | # Find out which ABI we are using. | |
6031 | echo 'int i;' > conftest.$ac_ext | |
ed698112 NN |
6032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6033 | (eval $ac_compile) 2>&5 | |
6034 | ac_status=$? | |
6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6036 | (exit $ac_status); }; then | |
54d9d34a AJ |
6037 | case "`/usr/bin/file conftest.o`" in |
6038 | *32-bit*) | |
6039 | case $host in | |
6040 | x86_64-*linux*) | |
6041 | LD="${LD-ld} -m elf_i386" | |
6042 | ;; | |
e517f636 | 6043 | ppc64-*linux*|powerpc64-*linux*) |
54d9d34a AJ |
6044 | LD="${LD-ld} -m elf32ppclinux" |
6045 | ;; | |
6046 | s390x-*linux*) | |
6047 | LD="${LD-ld} -m elf_s390" | |
6048 | ;; | |
6049 | sparc64-*linux*) | |
6050 | LD="${LD-ld} -m elf32_sparc" | |
6051 | ;; | |
6052 | esac | |
6053 | ;; | |
6054 | *64-bit*) | |
6055 | case $host in | |
6056 | x86_64-*linux*) | |
6057 | LD="${LD-ld} -m elf_x86_64" | |
6058 | ;; | |
6059 | ppc*-*linux*|powerpc*-*linux*) | |
6060 | LD="${LD-ld} -m elf64ppc" | |
6061 | ;; | |
6062 | s390*-*linux*) | |
6063 | LD="${LD-ld} -m elf64_s390" | |
6064 | ;; | |
6065 | sparc*-*linux*) | |
6066 | LD="${LD-ld} -m elf64_sparc" | |
6067 | ;; | |
6068 | esac | |
6069 | ;; | |
6070 | esac | |
6071 | fi | |
6072 | rm -rf conftest* | |
6073 | ;; | |
6074 | ||
a3ffcff3 TT |
6075 | *-*-sco3.2v5*) |
6076 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
01b02b11 | 6077 | SAVE_CFLAGS="$CFLAGS" |
a3ffcff3 | 6078 | CFLAGS="$CFLAGS -belf" |
ade710a5 TF |
6079 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
6080 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
ed698112 NN |
6081 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
6082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01b02b11 | 6083 | else |
ed698112 | 6084 | |
ade710a5 | 6085 | |
6d0860ee | 6086 | ac_ext=c |
6d0860ee | 6087 | ac_cpp='$CPP $CPPFLAGS' |
ed698112 NN |
6088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6091 | ||
6092 | if test x$gcc_no_link = xyes; then | |
6093 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
6094 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
6095 | { (exit 1); exit 1; }; } | |
6096 | fi | |
6097 | cat >conftest.$ac_ext <<_ACEOF | |
6098 | /* confdefs.h. */ | |
6099 | _ACEOF | |
6100 | cat confdefs.h >>conftest.$ac_ext | |
6101 | cat >>conftest.$ac_ext <<_ACEOF | |
6102 | /* end confdefs.h. */ | |
01b02b11 | 6103 | |
ed698112 NN |
6104 | int |
6105 | main () | |
6106 | { | |
01b02b11 | 6107 | |
ed698112 NN |
6108 | ; |
6109 | return 0; | |
6110 | } | |
6111 | _ACEOF | |
6112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6114 | (eval $ac_link) 2>conftest.er1 | |
6115 | ac_status=$? | |
6116 | grep -v '^ *+' conftest.er1 >conftest.err | |
6117 | rm -f conftest.er1 | |
6118 | cat conftest.err >&5 | |
6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6120 | (exit $ac_status); } && | |
ade710a5 TF |
6121 | { ac_try='test -z "$ac_c_werror_flag" |
6122 | || test ! -s conftest.err' | |
ed698112 NN |
6123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6124 | (eval $ac_try) 2>&5 | |
6125 | ac_status=$? | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6127 | (exit $ac_status); }; } && | |
6128 | { ac_try='test -s conftest$ac_exeext' | |
6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6130 | (eval $ac_try) 2>&5 | |
6131 | ac_status=$? | |
6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6133 | (exit $ac_status); }; }; then | |
01b02b11 TT |
6134 | lt_cv_cc_needs_belf=yes |
6135 | else | |
ed698112 NN |
6136 | echo "$as_me: failed program was:" >&5 |
6137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6138 | ||
ade710a5 | 6139 | lt_cv_cc_needs_belf=no |
01b02b11 | 6140 | fi |
ed698112 NN |
6141 | rm -f conftest.err conftest.$ac_objext \ |
6142 | conftest$ac_exeext conftest.$ac_ext | |
6d0860ee | 6143 | ac_ext=c |
6d0860ee | 6144 | ac_cpp='$CPP $CPPFLAGS' |
ed698112 NN |
6145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6d0860ee | 6148 | |
01b02b11 | 6149 | fi |
ade710a5 TF |
6150 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6151 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
01b02b11 TT |
6152 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6153 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6154 | CFLAGS="$SAVE_CFLAGS" | |
6155 | fi | |
a3ffcff3 TT |
6156 | ;; |
6157 | ||
a3ffcff3 TT |
6158 | |
6159 | esac | |
6160 | ||
01b02b11 TT |
6161 | |
6162 | # Save cache, so that ltconfig can load it | |
ed698112 | 6163 | cat >confcache <<\_ACEOF |
01b02b11 TT |
6164 | # This file is a shell script that caches the results of configure |
6165 | # tests run on this system so they can be shared between configure | |
ed698112 NN |
6166 | # scripts and configure runs, see configure's option --config-cache. |
6167 | # It is not useful on other systems. If it contains results you don't | |
6168 | # want to keep, you may remove or edit it. | |
01b02b11 | 6169 | # |
ed698112 NN |
6170 | # config.status only pays attention to the cache file if you give it |
6171 | # the --recheck option to rerun configure. | |
01b02b11 | 6172 | # |
ed698112 NN |
6173 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6174 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6175 | # following values. | |
6176 | ||
6177 | _ACEOF | |
6178 | ||
01b02b11 TT |
6179 | # The following way of writing the cache mishandles newlines in values, |
6180 | # but we know of no workaround that is simple, portable, and efficient. | |
ade710a5 | 6181 | # So, don't put newlines in cache variables' values. |
01b02b11 TT |
6182 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6183 | # and sets the high bit in the cache file unless we assign to the vars. | |
ade710a5 | 6184 | { |
ed698112 | 6185 | (set) 2>&1 | |
ade710a5 TF |
6186 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
6187 | *ac_space=\ *) | |
ed698112 NN |
6188 | # `set' does not quote correctly, so add quotes (double-quote |
6189 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6190 | sed -n \ | |
6191 | "s/'/'\\\\''/g; | |
6192 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ade710a5 | 6193 | ;; |
ed698112 NN |
6194 | *) |
6195 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ade710a5 TF |
6196 | sed -n \ |
6197 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
ed698112 | 6198 | ;; |
ade710a5 TF |
6199 | esac; |
6200 | } | | |
ed698112 NN |
6201 | sed ' |
6202 | t clear | |
ade710a5 | 6203 | : clear |
ed698112 NN |
6204 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6205 | t end | |
ade710a5 TF |
6206 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6207 | : end' >>confcache | |
ed698112 | 6208 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
01b02b11 | 6209 | if test -w $cache_file; then |
ade710a5 | 6210 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
ed698112 | 6211 | cat confcache >$cache_file |
01b02b11 | 6212 | else |
ade710a5 | 6213 | echo "not updating unwritable cache $cache_file" |
01b02b11 TT |
6214 | fi |
6215 | fi | |
6216 | rm -f confcache | |
6217 | ||
a3ffcff3 | 6218 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
6d0860ee | 6219 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
5f527203 | 6220 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
6d0860ee AO |
6221 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
6222 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
6223 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
6224 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
a3ffcff3 | 6225 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
6d0860ee | 6226 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
ed698112 NN |
6227 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
6228 | echo "$as_me: error: libtool configure failed" >&2;} | |
6229 | { (exit 1); exit 1; }; } | |
a3ffcff3 | 6230 | |
01b02b11 TT |
6231 | # Reload cache, that may have been modified by ltconfig |
6232 | if test -r "$cache_file"; then | |
ed698112 NN |
6233 | # Some versions of bash will fail to source /dev/null (special |
6234 | # files actually), so we avoid doing that. | |
6235 | if test -f "$cache_file"; then | |
6236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
6237 | echo "$as_me: loading cache $cache_file" >&6;} | |
6238 | case $cache_file in | |
6239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
6240 | *) . ./$cache_file;; | |
6241 | esac | |
6242 | fi | |
01b02b11 | 6243 | else |
ed698112 NN |
6244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
6245 | echo "$as_me: creating cache $cache_file" >&6;} | |
6246 | >$cache_file | |
01b02b11 TT |
6247 | fi |
6248 | ||
6249 | ||
6250 | # This can be used to rebuild libtool when needed | |
6d0860ee | 6251 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
01b02b11 TT |
6252 | |
6253 | # Always use our own libtool. | |
6254 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6255 | ||
a3ffcff3 TT |
6256 | # Redirect the config.log output again, so that the ltconfig log is not |
6257 | # clobbered by the next message. | |
6258 | exec 5>>./config.log | |
6259 | ||
ade710a5 | 6260 | ac_ext=cc |
ed698112 NN |
6261 | ac_cpp='$CXXCPP $CPPFLAGS' |
6262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
ade710a5 TF |
6265 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
6266 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
ed698112 NN |
6267 | if test -z "$CXXCPP"; then |
6268 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6270 | else | |
6271 | # Double quotes because CXXCPP needs to be expanded | |
6272 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6273 | do | |
6274 | ac_preproc_ok=false | |
6275 | for ac_cxx_preproc_warn_flag in '' yes | |
6276 | do | |
6277 | # Use a header file that comes with gcc, so configuring glibc | |
6278 | # with a fresh cross-compiler works. | |
6279 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6280 | # <limits.h> exists even on freestanding compilers. | |
6281 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6282 | # not just through cpp. "Syntax error" is here to catch this case. | |
6283 | cat >conftest.$ac_ext <<_ACEOF | |
6284 | /* confdefs.h. */ | |
6285 | _ACEOF | |
6286 | cat confdefs.h >>conftest.$ac_ext | |
6287 | cat >>conftest.$ac_ext <<_ACEOF | |
6288 | /* end confdefs.h. */ | |
6289 | #ifdef __STDC__ | |
6290 | # include <limits.h> | |
6291 | #else | |
6292 | # include <assert.h> | |
6293 | #endif | |
6294 | Syntax error | |
6295 | _ACEOF | |
6296 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6297 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6298 | ac_status=$? | |
6299 | grep -v '^ *+' conftest.er1 >conftest.err | |
6300 | rm -f conftest.er1 | |
6301 | cat conftest.err >&5 | |
6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6303 | (exit $ac_status); } >/dev/null; then | |
6304 | if test -s conftest.err; then | |
6305 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6306 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6307 | else | |
6308 | ac_cpp_err= | |
6309 | fi | |
6310 | else | |
6311 | ac_cpp_err=yes | |
6312 | fi | |
6313 | if test -z "$ac_cpp_err"; then | |
6314 | : | |
6315 | else | |
6316 | echo "$as_me: failed program was:" >&5 | |
6317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6318 | ||
6319 | # Broken: fails on valid input. | |
6320 | continue | |
6321 | fi | |
6322 | rm -f conftest.err conftest.$ac_ext | |
6323 | ||
ade710a5 | 6324 | # OK, works on sane cases. Now check whether non-existent headers |
ed698112 NN |
6325 | # can be detected and how. |
6326 | cat >conftest.$ac_ext <<_ACEOF | |
6327 | /* confdefs.h. */ | |
6328 | _ACEOF | |
6329 | cat confdefs.h >>conftest.$ac_ext | |
6330 | cat >>conftest.$ac_ext <<_ACEOF | |
6331 | /* end confdefs.h. */ | |
6332 | #include <ac_nonexistent.h> | |
6333 | _ACEOF | |
6334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6336 | ac_status=$? | |
6337 | grep -v '^ *+' conftest.er1 >conftest.err | |
6338 | rm -f conftest.er1 | |
6339 | cat conftest.err >&5 | |
6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6341 | (exit $ac_status); } >/dev/null; then | |
6342 | if test -s conftest.err; then | |
6343 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6344 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6345 | else | |
6346 | ac_cpp_err= | |
6347 | fi | |
6348 | else | |
6349 | ac_cpp_err=yes | |
6350 | fi | |
6351 | if test -z "$ac_cpp_err"; then | |
6352 | # Broken: success on invalid input. | |
6353 | continue | |
6354 | else | |
6355 | echo "$as_me: failed program was:" >&5 | |
6356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6357 | ||
6358 | # Passes both tests. | |
6359 | ac_preproc_ok=: | |
6360 | break | |
6361 | fi | |
6362 | rm -f conftest.err conftest.$ac_ext | |
6363 | ||
6364 | done | |
6365 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6366 | rm -f conftest.err conftest.$ac_ext | |
6367 | if $ac_preproc_ok; then | |
6368 | break | |
6369 | fi | |
6370 | ||
6371 | done | |
6372 | ac_cv_prog_CXXCPP=$CXXCPP | |
6373 | ||
6374 | fi | |
6375 | CXXCPP=$ac_cv_prog_CXXCPP | |
6376 | else | |
6377 | ac_cv_prog_CXXCPP=$CXXCPP | |
6378 | fi | |
ade710a5 TF |
6379 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
6380 | echo "${ECHO_T}$CXXCPP" >&6 | |
ed698112 NN |
6381 | ac_preproc_ok=false |
6382 | for ac_cxx_preproc_warn_flag in '' yes | |
6383 | do | |
6384 | # Use a header file that comes with gcc, so configuring glibc | |
6385 | # with a fresh cross-compiler works. | |
6386 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6387 | # <limits.h> exists even on freestanding compilers. | |
6388 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6389 | # not just through cpp. "Syntax error" is here to catch this case. | |
6390 | cat >conftest.$ac_ext <<_ACEOF | |
6391 | /* confdefs.h. */ | |
6392 | _ACEOF | |
6393 | cat confdefs.h >>conftest.$ac_ext | |
6394 | cat >>conftest.$ac_ext <<_ACEOF | |
6395 | /* end confdefs.h. */ | |
6396 | #ifdef __STDC__ | |
6397 | # include <limits.h> | |
6398 | #else | |
6399 | # include <assert.h> | |
6400 | #endif | |
6401 | Syntax error | |
6402 | _ACEOF | |
6403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6405 | ac_status=$? | |
6406 | grep -v '^ *+' conftest.er1 >conftest.err | |
6407 | rm -f conftest.er1 | |
6408 | cat conftest.err >&5 | |
6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6410 | (exit $ac_status); } >/dev/null; then | |
6411 | if test -s conftest.err; then | |
6412 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6413 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6414 | else | |
6415 | ac_cpp_err= | |
6416 | fi | |
6417 | else | |
6418 | ac_cpp_err=yes | |
6419 | fi | |
6420 | if test -z "$ac_cpp_err"; then | |
6421 | : | |
6422 | else | |
6423 | echo "$as_me: failed program was:" >&5 | |
6424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6425 | ||
6426 | # Broken: fails on valid input. | |
6427 | continue | |
6428 | fi | |
6429 | rm -f conftest.err conftest.$ac_ext | |
6430 | ||
ade710a5 | 6431 | # OK, works on sane cases. Now check whether non-existent headers |
ed698112 NN |
6432 | # can be detected and how. |
6433 | cat >conftest.$ac_ext <<_ACEOF | |
6434 | /* confdefs.h. */ | |
6435 | _ACEOF | |
6436 | cat confdefs.h >>conftest.$ac_ext | |
6437 | cat >>conftest.$ac_ext <<_ACEOF | |
6438 | /* end confdefs.h. */ | |
6439 | #include <ac_nonexistent.h> | |
6440 | _ACEOF | |
6441 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6442 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6443 | ac_status=$? | |
6444 | grep -v '^ *+' conftest.er1 >conftest.err | |
6445 | rm -f conftest.er1 | |
6446 | cat conftest.err >&5 | |
6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6448 | (exit $ac_status); } >/dev/null; then | |
6449 | if test -s conftest.err; then | |
6450 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6451 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6452 | else | |
6453 | ac_cpp_err= | |
6454 | fi | |
6455 | else | |
6456 | ac_cpp_err=yes | |
6457 | fi | |
6458 | if test -z "$ac_cpp_err"; then | |
6459 | # Broken: success on invalid input. | |
6460 | continue | |
6461 | else | |
6462 | echo "$as_me: failed program was:" >&5 | |
6463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6464 | ||
6465 | # Passes both tests. | |
6466 | ac_preproc_ok=: | |
6467 | break | |
6468 | fi | |
6469 | rm -f conftest.err conftest.$ac_ext | |
6470 | ||
6471 | done | |
6472 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6473 | rm -f conftest.err conftest.$ac_ext | |
6474 | if $ac_preproc_ok; then | |
6475 | : | |
6476 | else | |
6477 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
6478 | See \`config.log' for more details." >&5 | |
6479 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
6480 | See \`config.log' for more details." >&2;} | |
6481 | { (exit 1); exit 1; }; } | |
6482 | fi | |
6483 | ||
6484 | ac_ext=c | |
6485 | ac_cpp='$CPP $CPPFLAGS' | |
6486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6489 | ||
6d0860ee AO |
6490 | |
6491 | ||
6d0860ee AO |
6492 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
6493 | lt_save_CC="$CC" | |
6494 | lt_save_CFLAGS="$CFLAGS" | |
e3f92d3b MK |
6495 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ |
6496 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
6497 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
6498 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
6499 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
6500 | deplibs_check_method="$deplibs_check_method" \ | |
6501 | file_magic_cmd="$file_magic_cmd" \ | |
6502 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
6503 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
6504 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 | |
6505 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
6506 | { (exit 1); exit 1; }; } | |
6507 | CC="$lt_save_CC" | |
6508 | CFLAGS="$lt_save_CFLAGS" | |
6509 | ||
6510 | # Redirect the config.log output again, so that the ltconfig log is not | |
6511 | # clobbered by the next message. | |
6512 | exec 5>>./config.log | |
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
df3e8c70 | 6520 | for ac_prog in gcj |
e3f92d3b MK |
6521 | do |
6522 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6523 | set dummy $ac_prog; ac_word=$2 | |
ade710a5 TF |
6524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e3f92d3b MK |
6526 | if test "${ac_cv_prog_GCJ+set}" = set; then |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6528 | else | |
6529 | if test -n "$GCJ"; then | |
6530 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
6531 | else | |
6532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6533 | for as_dir in $PATH | |
6534 | do | |
6535 | IFS=$as_save_IFS | |
6536 | test -z "$as_dir" && as_dir=. | |
6537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 6538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e3f92d3b MK |
6539 | ac_cv_prog_GCJ="$ac_prog" |
6540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6541 | break 2 | |
6542 | fi | |
6543 | done | |
6544 | done | |
6545 | ||
6546 | fi | |
6547 | fi | |
6548 | GCJ=$ac_cv_prog_GCJ | |
6549 | if test -n "$GCJ"; then | |
ade710a5 TF |
6550 | echo "$as_me:$LINENO: result: $GCJ" >&5 |
6551 | echo "${ECHO_T}$GCJ" >&6 | |
e3f92d3b | 6552 | else |
ade710a5 TF |
6553 | echo "$as_me:$LINENO: result: no" >&5 |
6554 | echo "${ECHO_T}no" >&6 | |
e3f92d3b MK |
6555 | fi |
6556 | ||
6557 | test -n "$GCJ" && break | |
6558 | done | |
6559 | test -n "$GCJ" || GCJ="gcj" | |
6560 | ||
6561 | test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5 | |
6562 | echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;} | |
6563 | { (exit 1); exit 1; }; } | |
6564 | if test "x${GCJFLAGS-unset}" = xunset; then | |
6565 | GCJFLAGS="-g -O2" | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | depcc="$GCJ" am_compiler_list='gcc3 gcc' | |
6570 | ||
ade710a5 TF |
6571 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
6572 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
e3f92d3b MK |
6573 | if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then |
6574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6575 | else | |
6576 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6577 | # We make a subdir and do the tests there. Otherwise we can end up | |
6578 | # making bogus files that we don't know about and never remove. For | |
6579 | # instance it was reported that on HP-UX the gcc test will end up | |
6580 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6581 | # in D'. | |
6582 | mkdir conftest.dir | |
6583 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6584 | # using a relative directory. | |
6585 | cp "$am_depcomp" conftest.dir | |
6586 | cd conftest.dir | |
6587 | # We will build objects and dependencies in a subdirectory because | |
6588 | # it helps to detect inapplicable dependency modes. For instance | |
6589 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6590 | # side effect of compilation, but ICC will put the dependencies in | |
6591 | # the current directory while Tru64 will put them in the object | |
6592 | # directory. | |
6593 | mkdir sub | |
6594 | ||
6595 | am_cv_GCJ_dependencies_compiler_type=none | |
6596 | if test "$am_compiler_list" = ""; then | |
6597 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6598 | fi | |
6599 | for depmode in $am_compiler_list; do | |
6600 | # Setup a source with many dependencies, because some compilers | |
6601 | # like to wrap large dependency lists on column 80 (with \), and | |
6602 | # we should not choose a depcomp mode which is confused by this. | |
6603 | # | |
6604 | # We need to recreate these files for each test, as the compiler may | |
6605 | # overwrite some of them when testing with obscure command lines. | |
6606 | # This happens at least with the AIX C compiler. | |
6607 | : > sub/conftest.c | |
6608 | for i in 1 2 3 4 5 6; do | |
6609 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6610 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
6611 | # Solaris 8's {/usr,}/bin/sh. | |
6612 | touch sub/conftst$i.h | |
6613 | done | |
6614 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6615 | ||
6616 | case $depmode in | |
6617 | nosideeffect) | |
6618 | # after this tag, mechanisms are not by side-effect, so they'll | |
6619 | # only be used when explicitly requested | |
6620 | if test "x$enable_dependency_tracking" = xyes; then | |
6621 | continue | |
6622 | else | |
6623 | break | |
6624 | fi | |
6625 | ;; | |
6626 | none) break ;; | |
6627 | esac | |
6628 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
6629 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6630 | # handle `-M -o', and we need to detect this. | |
6631 | if depmode=$depmode \ | |
6632 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
6633 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6634 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
6635 | >/dev/null 2>conftest.err && | |
6636 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6637 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
6638 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6639 | # icc doesn't choke on unknown options, it will just issue warnings | |
6640 | # or remarks (even with -Werror). So we grep stderr for any message | |
6641 | # that says an option was ignored or not supported. | |
6642 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6643 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6644 | # The diagnosis changed in icc 8.0: | |
6645 | # icc: Command line remark: option '-MP' not supported | |
6646 | if (grep 'ignoring option' conftest.err || | |
6647 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6648 | am_cv_GCJ_dependencies_compiler_type=$depmode | |
6649 | break | |
6650 | fi | |
6651 | fi | |
6652 | done | |
6653 | ||
6654 | cd .. | |
6655 | rm -rf conftest.dir | |
6656 | else | |
6657 | am_cv_GCJ_dependencies_compiler_type=none | |
6658 | fi | |
6659 | ||
6660 | fi | |
ade710a5 TF |
6661 | echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5 |
6662 | echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6 | |
e3f92d3b MK |
6663 | GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type |
6664 | ||
6665 | ||
6666 | ||
6667 | if | |
6668 | test "x$enable_dependency_tracking" != xno \ | |
6669 | && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then | |
6670 | am__fastdepGCJ_TRUE= | |
6671 | am__fastdepGCJ_FALSE='#' | |
6672 | else | |
6673 | am__fastdepGCJ_TRUE='#' | |
6674 | am__fastdepGCJ_FALSE= | |
6675 | fi | |
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh" | |
6681 | lt_save_CC="$CC" | |
6682 | lt_save_CFLAGS="$CFLAGS" | |
6683 | AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
52a11cbf | 6684 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
6d0860ee AO |
6685 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
6686 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
6687 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
6688 | deplibs_check_method="$deplibs_check_method" \ | |
6689 | file_magic_cmd="$file_magic_cmd" \ | |
6690 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
e3f92d3b | 6691 | --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \ |
ed698112 NN |
6692 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 |
6693 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
6694 | { (exit 1); exit 1; }; } | |
6d0860ee AO |
6695 | CC="$lt_save_CC" |
6696 | CFLAGS="$lt_save_CFLAGS" | |
6697 | ||
6698 | # Redirect the config.log output again, so that the ltconfig log is not | |
6699 | # clobbered by the next message. | |
6700 | exec 5>>./config.log | |
6701 | ||
6d0860ee | 6702 | |
ed698112 | 6703 | |
e3f92d3b | 6704 | if test "x$CC" != xcc; then |
ade710a5 TF |
6705 | echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
6706 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 | |
e3f92d3b | 6707 | else |
ade710a5 TF |
6708 | echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
6709 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 | |
e3f92d3b MK |
6710 | fi |
6711 | set dummy $CC; ac_cc=`echo $2 | | |
6712 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
ade710a5 | 6713 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then |
e3f92d3b MK |
6714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6715 | else | |
6716 | cat >conftest.$ac_ext <<_ACEOF | |
6717 | /* confdefs.h. */ | |
6718 | _ACEOF | |
6719 | cat confdefs.h >>conftest.$ac_ext | |
6720 | cat >>conftest.$ac_ext <<_ACEOF | |
6721 | /* end confdefs.h. */ | |
6722 | ||
6723 | int | |
6724 | main () | |
6725 | { | |
6726 | ||
6727 | ; | |
6728 | return 0; | |
6729 | } | |
6730 | _ACEOF | |
6731 | # Make sure it works both with $CC and with simple cc. | |
6732 | # We do the test twice because some compilers refuse to overwrite an | |
6733 | # existing .o file with -o, though they will create one. | |
ade710a5 | 6734 | ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' |
e3f92d3b MK |
6735 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6736 | (eval $ac_try) 2>&5 | |
6737 | ac_status=$? | |
6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6739 | (exit $ac_status); } && | |
ade710a5 | 6740 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
e3f92d3b MK |
6741 | (eval $ac_try) 2>&5 |
6742 | ac_status=$? | |
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6744 | (exit $ac_status); }; | |
6745 | then | |
6746 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
6747 | if test "x$CC" != xcc; then | |
6748 | # Test first that cc exists at all. | |
6749 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6751 | (eval $ac_try) 2>&5 | |
6752 | ac_status=$? | |
6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6754 | (exit $ac_status); }; }; then | |
ade710a5 | 6755 | ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' |
e3f92d3b MK |
6756 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6757 | (eval $ac_try) 2>&5 | |
6758 | ac_status=$? | |
6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6760 | (exit $ac_status); } && | |
ade710a5 | 6761 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
e3f92d3b MK |
6762 | (eval $ac_try) 2>&5 |
6763 | ac_status=$? | |
6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6765 | (exit $ac_status); }; | |
6766 | then | |
6767 | # cc works too. | |
6768 | : | |
6769 | else | |
6770 | # cc exists but doesn't like -o. | |
6771 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6772 | fi | |
6773 | fi | |
6774 | fi | |
6775 | else | |
6776 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6777 | fi | |
6778 | rm -f conftest* | |
6779 | ||
6780 | fi | |
6781 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
ade710a5 TF |
6782 | echo "$as_me:$LINENO: result: yes" >&5 |
6783 | echo "${ECHO_T}yes" >&6 | |
e3f92d3b | 6784 | else |
ade710a5 TF |
6785 | echo "$as_me:$LINENO: result: no" >&5 |
6786 | echo "${ECHO_T}no" >&6 | |
e3f92d3b MK |
6787 | |
6788 | cat >>confdefs.h <<\_ACEOF | |
6789 | #define NO_MINUS_C_MINUS_O 1 | |
6790 | _ACEOF | |
ed698112 | 6791 | |
e3f92d3b | 6792 | fi |
ed698112 | 6793 | |
e3f92d3b MK |
6794 | # FIXME: we rely on the cache variable name because |
6795 | # there is no other way. | |
6796 | set dummy $CC | |
6797 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
6798 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
6799 | # Losing compiler, so override with the script. | |
6800 | # FIXME: It is wrong to rewrite CC. | |
6801 | # But if we don't then we get into trouble of one sort or another. | |
6802 | # A longer-term fix would be to have automake use am__CC in this case, | |
6803 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
6804 | CC="$am_aux_dir/compile $CC" | |
6805 | fi | |
ed698112 NN |
6806 | |
6807 | ||
ade710a5 TF |
6808 | |
6809 | ||
b0fa81ee | 6810 | subdirs="$subdirs classpath libltdl" |
7af85558 | 6811 | |
a3ffcff3 | 6812 | |
aed6152d | 6813 | # The -no-testsuite modules omit the test subdir. |
ee9dd372 TT |
6814 | |
6815 | ||
6816 | if test -d $srcdir/testsuite; then | |
6817 | TESTSUBDIR_TRUE= | |
6818 | TESTSUBDIR_FALSE='#' | |
6819 | else | |
6820 | TESTSUBDIR_TRUE='#' | |
6821 | TESTSUBDIR_FALSE= | |
6822 | fi | |
6823 | ||
e3f92d3b | 6824 | |
aed6152d NN |
6825 | # Should the runtime set system properties by examining the |
6826 | # environment variable GCJ_PROPERTIES? | |
ade710a5 | 6827 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given. |
ffccc6be | 6828 | if test "${enable_getenv_properties+set}" = set; then |
ade710a5 | 6829 | enableval="$enable_getenv_properties" |
ffccc6be | 6830 | |
ade710a5 | 6831 | fi; |
ffccc6be | 6832 | |
aed6152d | 6833 | # Whether GCJ_PROPERTIES is used depends on the target. |
3610e0d5 | 6834 | if test -z "$enable_getenv_properties"; then |
ffccc6be AG |
6835 | enable_getenv_properties=${enable_getenv_properties_default-yes} |
6836 | fi | |
6837 | if test "$enable_getenv_properties" = no; then | |
ed698112 NN |
6838 | |
6839 | cat >>confdefs.h <<\_ACEOF | |
ffccc6be | 6840 | #define DISABLE_GETENV_PROPERTIES 1 |
ed698112 | 6841 | _ACEOF |
ffccc6be AG |
6842 | |
6843 | fi | |
6844 | ||
aed6152d | 6845 | # Whether we should use arguments to main() |
b5ee195f AG |
6846 | if test -z "$enable_main_args"; then |
6847 | enable_main_args=${enable_main_args_default-yes} | |
6848 | fi | |
6849 | if test "$enable_main_args" = no; then | |
ed698112 NN |
6850 | |
6851 | cat >>confdefs.h <<\_ACEOF | |
b5ee195f | 6852 | #define DISABLE_MAIN_ARGS 1 |
ed698112 | 6853 | _ACEOF |
b5ee195f AG |
6854 | |
6855 | fi | |
6856 | ||
3610e0d5 | 6857 | |
aed6152d NN |
6858 | # Should we use hashtable-based synchronization? |
6859 | # Currently works only for Linux X86/ia64 | |
6860 | # Typically faster and more space-efficient | |
ade710a5 | 6861 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given. |
3610e0d5 | 6862 | if test "${enable_hash_synchronization+set}" = set; then |
ade710a5 | 6863 | enableval="$enable_hash_synchronization" |
3610e0d5 | 6864 | |
ade710a5 | 6865 | fi; |
3610e0d5 TT |
6866 | |
6867 | if test -z "$enable_hash_synchronization"; then | |
6868 | enable_hash_synchronization=$enable_hash_synchronization_default | |
6869 | fi | |
3610e0d5 | 6870 | |
c33b7bf0 | 6871 | |
97b8365c TT |
6872 | install_ecj_jar=no |
6873 | ECJ_BUILD_JAR= | |
6874 | ECJ_JAR= | |
6875 | ||
6876 | # Check whether --with-ecj-jar or --without-ecj-jar was given. | |
6877 | if test "${with_ecj_jar+set}" = set; then | |
6878 | withval="$with_ecj_jar" | |
6879 | ECJ_JAR=$withval | |
6880 | else | |
6881 | if test -f $libgcj_basedir/../ecj.jar; then | |
6882 | ECJ_BUILD_JAR=$libgcj_basedir/../ecj.jar | |
6883 | ECJ_JAR='$(jardir)/ecj.jar' | |
6884 | install_ecj_jar=yes | |
6885 | fi | |
6886 | fi; | |
6887 | ||
6888 | ||
6889 | ||
6890 | ||
6891 | if test "$ECJ_JAR" != ""; then | |
6892 | BUILD_ECJ1_TRUE= | |
6893 | BUILD_ECJ1_FALSE='#' | |
6894 | else | |
6895 | BUILD_ECJ1_TRUE='#' | |
6896 | BUILD_ECJ1_FALSE= | |
6897 | fi | |
6898 | ||
6899 | ||
6900 | ||
6901 | if test $install_ecj_jar = yes; then | |
6902 | INSTALL_ECJ_JAR_TRUE= | |
6903 | INSTALL_ECJ_JAR_FALSE='#' | |
6904 | else | |
6905 | INSTALL_ECJ_JAR_TRUE='#' | |
6906 | INSTALL_ECJ_JAR_FALSE= | |
6907 | fi | |
6908 | ||
6909 | ||
6910 | ||
ade710a5 | 6911 | # Check whether --with-java-home or --without-java-home was given. |
c33b7bf0 | 6912 | if test "${with_java_home+set}" = set; then |
ade710a5 TF |
6913 | withval="$with_java_home" |
6914 | JAVA_HOME="${withval}" | |
c33b7bf0 TF |
6915 | else |
6916 | JAVA_HOME="" | |
ade710a5 | 6917 | fi; |
c33b7bf0 TF |
6918 | |
6919 | ||
6920 | if test ! -z "$JAVA_HOME"; then | |
6921 | JAVA_HOME_SET_TRUE= | |
6922 | JAVA_HOME_SET_FALSE='#' | |
6923 | else | |
6924 | JAVA_HOME_SET_TRUE='#' | |
6925 | JAVA_HOME_SET_FALSE= | |
6926 | fi | |
6927 | ||
6928 | ||
6929 | ||
83c02e38 | 6930 | # What is the native OS API for MinGW? |
ed698112 | 6931 | |
ade710a5 | 6932 | # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given. |
83c02e38 | 6933 | if test "${with_win32_nlsapi+set}" = set; then |
ade710a5 TF |
6934 | withval="$with_win32_nlsapi" |
6935 | case "${withval}" in | |
83c02e38 ME |
6936 | ansi) with_win32_nlsapi=ansi ;; |
6937 | unicows) with_win32_nlsapi=unicows ;; | |
6938 | unicode) with_win32_nlsapi=unicode ;; | |
ed698112 NN |
6939 | *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5 |
6940 | echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;} | |
6941 | { (exit 1); exit 1; }; } ;; | |
83c02e38 ME |
6942 | esac |
6943 | else | |
6944 | with_win32_nlsapi=ansi | |
ade710a5 | 6945 | fi; |
83c02e38 ME |
6946 | |
6947 | case "${with_win32_nlsapi}" in | |
ed698112 NN |
6948 | unicows | unicode) |
6949 | ||
6950 | cat >>confdefs.h <<\_ACEOF | |
83c02e38 | 6951 | #define MINGW_LIBGCJ_UNICODE 1 |
ed698112 | 6952 | _ACEOF |
83c02e38 ME |
6953 | |
6954 | ;; | |
6955 | esac | |
6956 | ||
aed6152d NN |
6957 | # configure.host sets slow_pthread_self if the synchronization code should |
6958 | # try to avoid pthread_self calls by caching thread IDs in a hashtable. | |
45597167 | 6959 | if test "${slow_pthread_self}" = "yes"; then |
ed698112 NN |
6960 | |
6961 | cat >>confdefs.h <<\_ACEOF | |
45597167 | 6962 | #define SLOW_PTHREAD_SELF 1 |
ed698112 | 6963 | _ACEOF |
45597167 BM |
6964 | |
6965 | fi | |
6966 | ||
ed347998 | 6967 | # Check for gc debugging. This option is handled both here and in the GC. |
ade710a5 | 6968 | # Check whether --enable-gc-debug or --disable-gc-debug was given. |
ed347998 | 6969 | if test "${enable_gc_debug+set}" = set; then |
ade710a5 TF |
6970 | enableval="$enable_gc_debug" |
6971 | if test "$enable_gc_debug" = "yes"; then | |
48d0dd75 KC |
6972 | |
6973 | cat >>confdefs.h <<\_ACEOF | |
ed347998 HB |
6974 | #define LIBGCJ_GC_DEBUG 1 |
6975 | _ACEOF | |
6976 | ||
6977 | fi | |
ade710a5 | 6978 | fi; |
ed347998 | 6979 | |
aed6152d | 6980 | # See if the user has the interpreter included. |
ade710a5 | 6981 | # Check whether --enable-interpreter or --disable-interpreter was given. |
58eb6e7c | 6982 | if test "${enable_interpreter+set}" = set; then |
ade710a5 TF |
6983 | enableval="$enable_interpreter" |
6984 | if test "$enable_interpreter" = yes; then | |
b11f6430 AG |
6985 | # This can also be set in configure.host. |
6986 | libgcj_interpreter=yes | |
f7ccaa38 BM |
6987 | elif test "$enable_interpreter" = no; then |
6988 | libgcj_interpreter=no | |
b11f6430 | 6989 | fi |
ade710a5 | 6990 | fi; |
b11f6430 AG |
6991 | |
6992 | if test "$libgcj_interpreter" = yes; then | |
ed698112 NN |
6993 | |
6994 | cat >>confdefs.h <<\_ACEOF | |
58eb6e7c | 6995 | #define INTERPRETER 1 |
ed698112 | 6996 | _ACEOF |
58eb6e7c | 6997 | |
58eb6e7c | 6998 | fi |
b2ae5f70 TT |
6999 | INTERPRETER="$libgcj_interpreter" |
7000 | ||
58eb6e7c | 7001 | |
ade710a5 TF |
7002 | echo "$as_me:$LINENO: checking for exception model to use" >&5 |
7003 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
7004 | ac_ext=cc | |
52a11cbf | 7005 | ac_cpp='$CXXCPP $CPPFLAGS' |
ed698112 NN |
7006 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7007 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7008 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52a11cbf | 7009 | |
ade710a5 | 7010 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. |
3cf88fb4 | 7011 | if test "${enable_sjlj_exceptions+set}" = set; then |
ade710a5 TF |
7012 | enableval="$enable_sjlj_exceptions" |
7013 | : | |
52a11cbf RH |
7014 | else |
7015 | cat > conftest.$ac_ext << EOF | |
97b8365c | 7016 | #line 7016 "configure" |
52a11cbf RH |
7017 | struct S { ~S(); }; |
7018 | void bar(); | |
7019 | void foo() | |
7020 | { | |
7021 | S s; | |
7022 | bar(); | |
7023 | } | |
7024 | EOF | |
ed698112 | 7025 | old_CXXFLAGS="$CXXFLAGS" |
52a11cbf | 7026 | CXXFLAGS=-S |
ed698112 NN |
7027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7028 | (eval $ac_compile) 2>&5 | |
7029 | ac_status=$? | |
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7031 | (exit $ac_status); }; then | |
52a11cbf RH |
7032 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then |
7033 | enable_sjlj_exceptions=yes | |
7034 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
7035 | enable_sjlj_exceptions=no | |
3cf88fb4 TT |
7036 | fi |
7037 | fi | |
52a11cbf RH |
7038 | CXXFLAGS="$old_CXXFLAGS" |
7039 | rm -f conftest* | |
ade710a5 | 7040 | fi; |
52a11cbf | 7041 | if test x$enable_sjlj_exceptions = xyes; then |
ed698112 NN |
7042 | |
7043 | cat >>confdefs.h <<\_ACEOF | |
3cf88fb4 | 7044 | #define SJLJ_EXCEPTIONS 1 |
ed698112 | 7045 | _ACEOF |
3cf88fb4 | 7046 | |
52a11cbf RH |
7047 | ac_exception_model_name=sjlj |
7048 | elif test x$enable_sjlj_exceptions = xno; then | |
7049 | ac_exception_model_name="call frame" | |
7050 | else | |
ed698112 NN |
7051 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 |
7052 | echo "$as_me: error: unable to detect exception model" >&2;} | |
7053 | { (exit 1); exit 1; }; } | |
3cf88fb4 | 7054 | fi |
52a11cbf | 7055 | ac_ext=c |
52a11cbf | 7056 | ac_cpp='$CPP $CPPFLAGS' |
ed698112 NN |
7057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
52a11cbf | 7060 | |
ade710a5 TF |
7061 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
7062 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
3cf88fb4 | 7063 | |
ed698112 | 7064 | # If we are non using SJLJ exceptions, and this host does not have support |
605dc89b BM |
7065 | # for unwinding from a signal handler, enable checked dereferences and divides. |
7066 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then | |
7067 | CHECKREFSPEC=-fcheck-references | |
7068 | DIVIDESPEC=-fuse-divide-subroutine | |
7069 | EXCEPTIONSPEC= | |
7070 | fi | |
7071 | ||
aed6152d NN |
7072 | # See if the user wants to disable java.net. This is the mildly |
7073 | # ugly way that we admit that target-side configuration sucks. | |
ade710a5 | 7074 | # Check whether --enable-java-net or --disable-java-net was given. |
4b68fe8a | 7075 | if test "${enable_java_net+set}" = set; then |
ade710a5 | 7076 | enableval="$enable_java_net" |
4b68fe8a | 7077 | |
ade710a5 | 7078 | fi; |
4b68fe8a | 7079 | |
aed6152d | 7080 | # Whether java.net is built by default can depend on the target. |
3610e0d5 | 7081 | if test -z "$enable_java_net"; then |
4b68fe8a TT |
7082 | enable_java_net=${enable_java_net_default-yes} |
7083 | fi | |
006d4a9b | 7084 | if test "$enable_java_net" = no; then |
ed698112 NN |
7085 | |
7086 | cat >>confdefs.h <<\_ACEOF | |
4b68fe8a | 7087 | #define DISABLE_JAVA_NET 1 |
ed698112 | 7088 | _ACEOF |
4b68fe8a TT |
7089 | |
7090 | fi | |
7091 | ||
aed6152d NN |
7092 | # See if the user wants to configure without libffi. Some |
7093 | # architectures don't support it, and default values are set in | |
7094 | # configure.host. | |
ed698112 | 7095 | |
ade710a5 | 7096 | # Check whether --with-libffi or --without-libffi was given. |
c8fb9813 | 7097 | if test "${with_libffi+set}" = set; then |
ade710a5 TF |
7098 | withval="$with_libffi" |
7099 | : | |
c8fb9813 AG |
7100 | else |
7101 | with_libffi=${with_libffi_default-yes} | |
ade710a5 | 7102 | fi; |
c8fb9813 AG |
7103 | |
7104 | LIBFFI= | |
7105 | LIBFFIINCS= | |
7106 | if test "$with_libffi" != no; then | |
ed698112 NN |
7107 | |
7108 | cat >>confdefs.h <<\_ACEOF | |
c8fb9813 | 7109 | #define USE_LIBFFI 1 |
ed698112 | 7110 | _ACEOF |
c8fb9813 | 7111 | |
ce3b24a7 | 7112 | LIBFFI=../libffi/libffi_convenience.la |
a15e868a | 7113 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' |
c8fb9813 AG |
7114 | fi |
7115 | ||
7116 | ||
7117 | ||
aed6152d | 7118 | # See if the user wants to disable JVMPI support. |
ade710a5 | 7119 | # Check whether --enable-jvmpi or --disable-jvmpi was given. |
54c2f04b | 7120 | if test "${enable_jvmpi+set}" = set; then |
ade710a5 | 7121 | enableval="$enable_jvmpi" |
54c2f04b | 7122 | |
ade710a5 | 7123 | fi; |
54c2f04b AG |
7124 | |
7125 | if test "$enable_jvmpi" != no; then | |
ed698112 NN |
7126 | |
7127 | cat >>confdefs.h <<\_ACEOF | |
54c2f04b | 7128 | #define ENABLE_JVMPI 1 |
ed698112 | 7129 | _ACEOF |
54c2f04b AG |
7130 | |
7131 | fi | |
7132 | ||
aed6152d NN |
7133 | # If the target is an eCos system, use the appropriate eCos |
7134 | # I/O routines. | |
7135 | # FIXME: this should not be a local option but a global target | |
7136 | # system; at present there is no eCos target. | |
b5ee195f | 7137 | TARGET_ECOS=${PROCESS-"no"} |
ed698112 | 7138 | |
ade710a5 | 7139 | # Check whether --with-ecos or --without-ecos was given. |
ee9dd372 | 7140 | if test "${with_ecos+set}" = set; then |
ade710a5 TF |
7141 | withval="$with_ecos" |
7142 | TARGET_ECOS="$with_ecos" | |
ee9dd372 | 7143 | |
ade710a5 | 7144 | fi; |
ee9dd372 TT |
7145 | |
7146 | case "$TARGET_ECOS" in | |
54a190dd | 7147 | no) case "$host" in |
b8fe3c1e | 7148 | *mingw*) |
54a190dd | 7149 | PLATFORM=Win32 |
9b5f18b1 | 7150 | PLATFORMNET=Win32 |
65c9eafb | 7151 | PLATFORMH=win32.h |
ed698112 | 7152 | |
ade710a5 TF |
7153 | echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5 |
7154 | echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6 | |
60c7f4ef TT |
7155 | LD_PROG=`$CC --print-prog-name=ld` |
7156 | LD_VERSION=`$LD_PROG --version` | |
7157 | LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` | |
7158 | LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` | |
7159 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then | |
7160 | LD_OK="ok" | |
7161 | else | |
7162 | if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then | |
7163 | LD_OK="ok" | |
7164 | fi | |
7165 | fi | |
7166 | if test "x$LD_OK" != x; then | |
ade710a5 TF |
7167 | echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5 |
7168 | echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6 | |
60c7f4ef | 7169 | else |
ade710a5 TF |
7170 | echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5 |
7171 | echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6 | |
ed698112 NN |
7172 | { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5 |
7173 | echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;} | |
7174 | ||
7175 | cat >>confdefs.h <<\_ACEOF | |
60c7f4ef | 7176 | #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1 |
ed698112 | 7177 | _ACEOF |
60c7f4ef TT |
7178 | |
7179 | fi | |
54a190dd AM |
7180 | ;; |
7181 | *) | |
7182 | PLATFORM=Posix | |
9b5f18b1 | 7183 | PLATFORMNET=Posix |
65c9eafb | 7184 | PLATFORMH=posix.h |
54a190dd AM |
7185 | ;; |
7186 | esac | |
ee9dd372 TT |
7187 | ;; |
7188 | *) | |
54a190dd | 7189 | PLATFORM=Ecos |
9b5f18b1 | 7190 | PLATFORMNET=NoNet |
ed698112 NN |
7191 | |
7192 | cat >>confdefs.h <<\_ACEOF | |
ee9dd372 | 7193 | #define ECOS 1 |
ed698112 | 7194 | _ACEOF |
ee9dd372 | 7195 | |
65c9eafb | 7196 | PLATFORMH=posix.h |
ee9dd372 TT |
7197 | ;; |
7198 | esac | |
7199 | ||
ade710a5 | 7200 | ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH" |
d7799ba1 AM |
7201 | |
7202 | ||
ed698112 NN |
7203 | ac_ext=c |
7204 | ac_cpp='$CPP $CPPFLAGS' | |
7205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ade710a5 TF |
7208 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
7209 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
ee9dd372 TT |
7210 | # On Suns, sometimes $CPP names a directory. |
7211 | if test -n "$CPP" && test -d "$CPP"; then | |
7212 | CPP= | |
7213 | fi | |
7214 | if test -z "$CPP"; then | |
ed698112 NN |
7215 | if test "${ac_cv_prog_CPP+set}" = set; then |
7216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7217 | else | |
7218 | # Double quotes because CPP needs to be expanded | |
7219 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7220 | do | |
7221 | ac_preproc_ok=false | |
7222 | for ac_c_preproc_warn_flag in '' yes | |
7223 | do | |
7224 | # Use a header file that comes with gcc, so configuring glibc | |
7225 | # with a fresh cross-compiler works. | |
7226 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7227 | # <limits.h> exists even on freestanding compilers. | |
ee9dd372 | 7228 | # On the NeXT, cc -E runs the code through the compiler's parser, |
ed698112 NN |
7229 | # not just through cpp. "Syntax error" is here to catch this case. |
7230 | cat >conftest.$ac_ext <<_ACEOF | |
7231 | /* confdefs.h. */ | |
7232 | _ACEOF | |
7233 | cat confdefs.h >>conftest.$ac_ext | |
7234 | cat >>conftest.$ac_ext <<_ACEOF | |
7235 | /* end confdefs.h. */ | |
7236 | #ifdef __STDC__ | |
7237 | # include <limits.h> | |
7238 | #else | |
7239 | # include <assert.h> | |
7240 | #endif | |
7241 | Syntax error | |
7242 | _ACEOF | |
7243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7245 | ac_status=$? | |
7246 | grep -v '^ *+' conftest.er1 >conftest.err | |
7247 | rm -f conftest.er1 | |
7248 | cat conftest.err >&5 | |
7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7250 | (exit $ac_status); } >/dev/null; then | |
7251 | if test -s conftest.err; then | |
7252 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7254 | else | |
7255 | ac_cpp_err= | |
7256 | fi | |
ee9dd372 | 7257 | else |
ed698112 NN |
7258 | ac_cpp_err=yes |
7259 | fi | |
7260 | if test -z "$ac_cpp_err"; then | |
ee9dd372 TT |
7261 | : |
7262 | else | |
ed698112 NN |
7263 | echo "$as_me: failed program was:" >&5 |
7264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7265 | ||
7266 | # Broken: fails on valid input. | |
7267 | continue | |
7268 | fi | |
7269 | rm -f conftest.err conftest.$ac_ext | |
7270 | ||
ade710a5 | 7271 | # OK, works on sane cases. Now check whether non-existent headers |
ed698112 NN |
7272 | # can be detected and how. |
7273 | cat >conftest.$ac_ext <<_ACEOF | |
7274 | /* confdefs.h. */ | |
7275 | _ACEOF | |
7276 | cat confdefs.h >>conftest.$ac_ext | |
7277 | cat >>conftest.$ac_ext <<_ACEOF | |
7278 | /* end confdefs.h. */ | |
7279 | #include <ac_nonexistent.h> | |
7280 | _ACEOF | |
7281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7283 | ac_status=$? | |
7284 | grep -v '^ *+' conftest.er1 >conftest.err | |
7285 | rm -f conftest.er1 | |
7286 | cat conftest.err >&5 | |
7287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7288 | (exit $ac_status); } >/dev/null; then | |
7289 | if test -s conftest.err; then | |
7290 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7291 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7292 | else | |
7293 | ac_cpp_err= | |
7294 | fi | |
ee9dd372 | 7295 | else |
ed698112 | 7296 | ac_cpp_err=yes |
ee9dd372 | 7297 | fi |
ed698112 NN |
7298 | if test -z "$ac_cpp_err"; then |
7299 | # Broken: success on invalid input. | |
7300 | continue | |
7301 | else | |
7302 | echo "$as_me: failed program was:" >&5 | |
7303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7304 | ||
7305 | # Passes both tests. | |
7306 | ac_preproc_ok=: | |
7307 | break | |
ee9dd372 | 7308 | fi |
ed698112 NN |
7309 | rm -f conftest.err conftest.$ac_ext |
7310 | ||
7311 | done | |
7312 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7313 | rm -f conftest.err conftest.$ac_ext | |
7314 | if $ac_preproc_ok; then | |
7315 | break | |
ee9dd372 | 7316 | fi |
ed698112 NN |
7317 | |
7318 | done | |
7319 | ac_cv_prog_CPP=$CPP | |
7320 | ||
7321 | fi | |
7322 | CPP=$ac_cv_prog_CPP | |
7323 | else | |
7324 | ac_cv_prog_CPP=$CPP | |
7325 | fi | |
ade710a5 TF |
7326 | echo "$as_me:$LINENO: result: $CPP" >&5 |
7327 | echo "${ECHO_T}$CPP" >&6 | |
ed698112 NN |
7328 | ac_preproc_ok=false |
7329 | for ac_c_preproc_warn_flag in '' yes | |
7330 | do | |
7331 | # Use a header file that comes with gcc, so configuring glibc | |
7332 | # with a fresh cross-compiler works. | |
7333 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7334 | # <limits.h> exists even on freestanding compilers. | |
7335 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7336 | # not just through cpp. "Syntax error" is here to catch this case. | |
7337 | cat >conftest.$ac_ext <<_ACEOF | |
7338 | /* confdefs.h. */ | |
7339 | _ACEOF | |
7340 | cat confdefs.h >>conftest.$ac_ext | |
7341 | cat >>conftest.$ac_ext <<_ACEOF | |
7342 | /* end confdefs.h. */ | |
7343 | #ifdef __STDC__ | |
7344 | # include <limits.h> | |
7345 | #else | |
7346 | # include <assert.h> | |
7347 | #endif | |
7348 | Syntax error | |
7349 | _ACEOF | |
7350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7352 | ac_status=$? | |
7353 | grep -v '^ *+' conftest.er1 >conftest.err | |
7354 | rm -f conftest.er1 | |
7355 | cat conftest.err >&5 | |
7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357 | (exit $ac_status); } >/dev/null; then | |
7358 | if test -s conftest.err; then | |
7359 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7361 | else | |
7362 | ac_cpp_err= | |
7363 | fi | |
7364 | else | |
7365 | ac_cpp_err=yes | |
ee9dd372 | 7366 | fi |
ed698112 NN |
7367 | if test -z "$ac_cpp_err"; then |
7368 | : | |
7369 | else | |
7370 | echo "$as_me: failed program was:" >&5 | |
7371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7372 | ||
7373 | # Broken: fails on valid input. | |
7374 | continue | |
7375 | fi | |
7376 | rm -f conftest.err conftest.$ac_ext | |
7377 | ||
ade710a5 | 7378 | # OK, works on sane cases. Now check whether non-existent headers |
ed698112 NN |
7379 | # can be detected and how. |
7380 | cat >conftest.$ac_ext <<_ACEOF | |
7381 | /* confdefs.h. */ | |
7382 | _ACEOF | |
7383 | cat confdefs.h >>conftest.$ac_ext | |
7384 | cat >>conftest.$ac_ext <<_ACEOF | |
7385 | /* end confdefs.h. */ | |
7386 | #include <ac_nonexistent.h> | |
7387 | _ACEOF | |
7388 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7390 | ac_status=$? | |
7391 | grep -v '^ *+' conftest.er1 >conftest.err | |
7392 | rm -f conftest.er1 | |
7393 | cat conftest.err >&5 | |
7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7395 | (exit $ac_status); } >/dev/null; then | |
7396 | if test -s conftest.err; then | |
7397 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7399 | else | |
7400 | ac_cpp_err= | |
7401 | fi | |
ee9dd372 | 7402 | else |
ed698112 | 7403 | ac_cpp_err=yes |
ee9dd372 | 7404 | fi |
ed698112 NN |
7405 | if test -z "$ac_cpp_err"; then |
7406 | # Broken: success on invalid input. | |
7407 | continue | |
7408 | else | |
7409 | echo "$as_me: failed program was:" >&5 | |
7410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ee9dd372 | 7411 | |
ed698112 NN |
7412 | # Passes both tests. |
7413 | ac_preproc_ok=: | |
7414 | break | |
7415 | fi | |
7416 | rm -f conftest.err conftest.$ac_ext | |
7417 | ||
7418 | done | |
7419 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7420 | rm -f conftest.err conftest.$ac_ext | |
7421 | if $ac_preproc_ok; then | |
7422 | : | |
7423 | else | |
7424 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
7425 | See \`config.log' for more details." >&5 | |
7426 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
7427 | See \`config.log' for more details." >&2;} | |
7428 | { (exit 1); exit 1; }; } | |
7429 | fi | |
7430 | ||
7431 | ac_ext=c | |
7432 | ac_cpp='$CPP $CPPFLAGS' | |
7433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7436 | ||
7437 | ||
ade710a5 TF |
7438 | echo "$as_me:$LINENO: checking for egrep" >&5 |
7439 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
7440 | if test "${ac_cv_prog_egrep+set}" = set; then | |
ed698112 NN |
7441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7442 | else | |
ade710a5 TF |
7443 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
7444 | then ac_cv_prog_egrep='grep -E' | |
7445 | else ac_cv_prog_egrep='egrep' | |
ed698112 | 7446 | fi |
02809848 | 7447 | fi |
ade710a5 TF |
7448 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
7449 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
7450 | EGREP=$ac_cv_prog_egrep | |
ed698112 NN |
7451 | |
7452 | ||
7453 | cat >conftest.$ac_ext <<_ACEOF | |
7454 | /* confdefs.h. */ | |
7455 | _ACEOF | |
7456 | cat confdefs.h >>conftest.$ac_ext | |
7457 | cat >>conftest.$ac_ext <<_ACEOF | |
7458 | /* end confdefs.h. */ | |
0d16618c | 7459 | #include <stdint.h> |
ed698112 NN |
7460 | |
7461 | _ACEOF | |
ee9dd372 | 7462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7463 | $EGREP "uint32_t" >/dev/null 2>&1; then |
7464 | ||
7465 | cat >>confdefs.h <<\_ACEOF | |
ee9dd372 | 7466 | #define HAVE_INT32_DEFINED 1 |
ed698112 | 7467 | _ACEOF |
ee9dd372 TT |
7468 | |
7469 | fi | |
7470 | rm -f conftest* | |
7471 | ||
ed698112 NN |
7472 | cat >conftest.$ac_ext <<_ACEOF |
7473 | /* confdefs.h. */ | |
7474 | _ACEOF | |
7475 | cat confdefs.h >>conftest.$ac_ext | |
7476 | cat >>conftest.$ac_ext <<_ACEOF | |
7477 | /* end confdefs.h. */ | |
0d16618c | 7478 | #include <inttypes.h> |
ed698112 NN |
7479 | |
7480 | _ACEOF | |
ee9dd372 | 7481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7482 | $EGREP "uint32_t" >/dev/null 2>&1; then |
7483 | ||
7484 | cat >>confdefs.h <<\_ACEOF | |
ee9dd372 | 7485 | #define HAVE_INT32_DEFINED 1 |
ed698112 | 7486 | _ACEOF |
ee9dd372 TT |
7487 | |
7488 | fi | |
7489 | rm -f conftest* | |
7490 | ||
ed698112 NN |
7491 | cat >conftest.$ac_ext <<_ACEOF |
7492 | /* confdefs.h. */ | |
7493 | _ACEOF | |
7494 | cat confdefs.h >>conftest.$ac_ext | |
7495 | cat >>conftest.$ac_ext <<_ACEOF | |
7496 | /* end confdefs.h. */ | |
0d16618c | 7497 | #include <sys/types.h> |
ed698112 NN |
7498 | |
7499 | _ACEOF | |
0d16618c | 7500 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7501 | $EGREP "u_int32_t" >/dev/null 2>&1; then |
7502 | ||
7503 | cat >>confdefs.h <<\_ACEOF | |
0d16618c | 7504 | #define HAVE_BSD_INT32_DEFINED 1 |
ed698112 | 7505 | _ACEOF |
0d16618c TT |
7506 | |
7507 | fi | |
7508 | rm -f conftest* | |
7509 | ||
ed698112 NN |
7510 | cat >conftest.$ac_ext <<_ACEOF |
7511 | /* confdefs.h. */ | |
7512 | _ACEOF | |
7513 | cat confdefs.h >>conftest.$ac_ext | |
7514 | cat >>conftest.$ac_ext <<_ACEOF | |
7515 | /* end confdefs.h. */ | |
0d16618c | 7516 | #include <sys/config.h> |
ed698112 NN |
7517 | |
7518 | _ACEOF | |
0d16618c | 7519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7520 | $EGREP "u_int32_t" >/dev/null 2>&1; then |
7521 | ||
7522 | cat >>confdefs.h <<\_ACEOF | |
0d16618c | 7523 | #define HAVE_BSD_INT32_DEFINED 1 |
ed698112 | 7524 | _ACEOF |
0d16618c TT |
7525 | |
7526 | fi | |
7527 | rm -f conftest* | |
7528 | ||
7529 | ||
ee9dd372 | 7530 | |
e3f92d3b MK |
7531 | |
7532 | if test "$PLATFORM" = Win32; then | |
7533 | USING_WIN32_PLATFORM_TRUE= | |
7534 | USING_WIN32_PLATFORM_FALSE='#' | |
7535 | else | |
7536 | USING_WIN32_PLATFORM_TRUE='#' | |
7537 | USING_WIN32_PLATFORM_FALSE= | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | ||
3d5a109a | 7542 | if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then |
e3f92d3b MK |
7543 | USING_POSIX_PLATFORM_TRUE= |
7544 | USING_POSIX_PLATFORM_FALSE='#' | |
7545 | else | |
7546 | USING_POSIX_PLATFORM_TRUE='#' | |
7547 | USING_POSIX_PLATFORM_FALSE= | |
7548 | fi | |
7549 | ||
7550 | ||
f1a66265 GK |
7551 | case "$host" in |
7552 | *-darwin*) DARWIN_CRT=true ;; | |
7553 | *) DARWIN_CRT=false ;; | |
7554 | esac | |
7555 | ||
7556 | ||
7557 | if $DARWIN_CRT; then | |
7558 | USING_DARWIN_CRT_TRUE= | |
7559 | USING_DARWIN_CRT_FALSE='#' | |
7560 | else | |
7561 | USING_DARWIN_CRT_TRUE='#' | |
7562 | USING_DARWIN_CRT_FALSE= | |
7563 | fi | |
7564 | ||
7565 | ||
aed6152d NN |
7566 | # These may not be defined in a non-ANS conformant embedded system. |
7567 | # FIXME: Should these case a runtime exception in that case? | |
ed698112 NN |
7568 | cat >conftest.$ac_ext <<_ACEOF |
7569 | /* confdefs.h. */ | |
7570 | _ACEOF | |
7571 | cat confdefs.h >>conftest.$ac_ext | |
7572 | cat >>conftest.$ac_ext <<_ACEOF | |
7573 | /* end confdefs.h. */ | |
ee9dd372 | 7574 | #include <time.h> |
ed698112 NN |
7575 | |
7576 | _ACEOF | |
ee9dd372 | 7577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7578 | $EGREP "mktime" >/dev/null 2>&1; then |
7579 | ||
7580 | cat >>confdefs.h <<\_ACEOF | |
ee9dd372 | 7581 | #define HAVE_MKTIME 1 |
ed698112 | 7582 | _ACEOF |
ee9dd372 TT |
7583 | |
7584 | fi | |
7585 | rm -f conftest* | |
7586 | ||
ed698112 NN |
7587 | cat >conftest.$ac_ext <<_ACEOF |
7588 | /* confdefs.h. */ | |
7589 | _ACEOF | |
7590 | cat confdefs.h >>conftest.$ac_ext | |
7591 | cat >>conftest.$ac_ext <<_ACEOF | |
7592 | /* end confdefs.h. */ | |
ee9dd372 | 7593 | #include <time.h> |
ed698112 NN |
7594 | |
7595 | _ACEOF | |
ee9dd372 | 7596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
7597 | $EGREP "localtime" >/dev/null 2>&1; then |
7598 | ||
7599 | cat >>confdefs.h <<\_ACEOF | |
ee9dd372 | 7600 | #define HAVE_LOCALTIME 1 |
ed698112 | 7601 | _ACEOF |
ee9dd372 TT |
7602 | |
7603 | fi | |
7604 | rm -f conftest* | |
7605 | ||
7606 | ||
aed6152d NN |
7607 | # Create the subdirectory for natFile.cc, or the attempt |
7608 | # to create the link will fail. | |
ee9dd372 TT |
7609 | test -d java || mkdir java |
7610 | test -d java/io || mkdir java/io | |
213858c0 | 7611 | test -d gnu || mkdir gnu |
ade710a5 | 7612 | ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" |
ee9dd372 TT |
7613 | |
7614 | ||
97b8365c | 7615 | # Likewise for natConcreteProcess.cc. |
42962a48 | 7616 | test -d java/lang || mkdir java/lang |
ade710a5 | 7617 | ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" |
42962a48 TT |
7618 | |
7619 | ||
adefdaca | 7620 | # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc. |
9b5f18b1 | 7621 | test -d java/net || mkdir java/net |
adefdaca | 7622 | ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" |
614c0fc2 | 7623 | |
ade710a5 | 7624 | ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" |
9b5f18b1 MK |
7625 | |
7626 | ||
aed6152d | 7627 | # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc. |
4a503716 MK |
7628 | test -d gnu/java || mkdir gnu/java |
7629 | test -d gnu/java/net || mkdir gnu/java/net | |
ade710a5 | 7630 | ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" |
614c0fc2 | 7631 | |
ade710a5 | 7632 | ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" |
9b5f18b1 MK |
7633 | |
7634 | ||
aed6152d | 7635 | # Likewise for natPipeImpl.cc and natSelectorImpl.cc. |
4ba6d1c3 | 7636 | test -d gnu/java/nio || mkdir gnu/java/nio |
ade710a5 | 7637 | ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" |
614c0fc2 | 7638 | |
ade710a5 | 7639 | ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" |
4ba6d1c3 | 7640 | |
76c88fd9 | 7641 | test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels |
ade710a5 | 7642 | ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" |
76c88fd9 | 7643 | |
4ba6d1c3 | 7644 | |
4a8e624f | 7645 | case "${host}" in |
b8fe3c1e | 7646 | *mingw*) |
5b5662ee | 7647 | SYSTEMSPEC="-lgdi32 -lws2_32" |
83c02e38 ME |
7648 | if test "${with_win32_nlsapi}" = "unicows"; then |
7649 | SYSTEMSPEC="-lunicows $SYSTEMSPEC" | |
7650 | fi | |
4a8e624f AM |
7651 | ;; |
7652 | *) | |
7653 | SYSTEMSPEC= | |
7654 | ;; | |
7655 | esac | |
f994389b TT |
7656 | |
7657 | ||
1e6347d8 | 7658 | LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs" |
0f9c645e AG |
7659 | |
7660 | ||
ed698112 | 7661 | |
ade710a5 | 7662 | # Check whether --with-system-zlib or --without-system-zlib was given. |
f994389b | 7663 | if test "${with_system_zlib+set}" = set; then |
ade710a5 | 7664 | withval="$with_system_zlib" |
f994389b | 7665 | |
ade710a5 | 7666 | fi; |
f994389b TT |
7667 | ZLIBSPEC= |
7668 | ||
0f9c645e AG |
7669 | ZLIBTESTSPEC= |
7670 | ||
f994389b | 7671 | |
ade710a5 TF |
7672 | echo "$as_me:$LINENO: checking for X" >&5 |
7673 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
ed698112 | 7674 | |
02809848 | 7675 | |
ade710a5 | 7676 | # Check whether --with-x or --without-x was given. |
5aac1dac | 7677 | if test "${with_x+set}" = set; then |
ade710a5 | 7678 | withval="$with_x" |
ee9dd372 | 7679 | |
ade710a5 | 7680 | fi; |
5aac1dac TT |
7681 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7682 | if test "x$with_x" = xno; then | |
7683 | # The user explicitly disabled X. | |
7684 | have_x=disabled | |
7685 | else | |
7686 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7687 | # Both variables are already set. | |
7688 | have_x=yes | |
7689 | else | |
ed698112 NN |
7690 | if test "${ac_cv_have_x+set}" = set; then |
7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac TT |
7692 | else |
7693 | # One or both of the vars are not set, and there is no cached value. | |
ed698112 | 7694 | ac_x_includes=no ac_x_libraries=no |
ade710a5 | 7695 | rm -fr conftest.dir |
ed698112 NN |
7696 | if mkdir conftest.dir; then |
7697 | cd conftest.dir | |
5aac1dac | 7698 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
ed698112 | 7699 | cat >Imakefile <<'_ACEOF' |
5aac1dac TT |
7700 | acfindx: |
7701 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
ed698112 | 7702 | _ACEOF |
ade710a5 | 7703 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
5aac1dac TT |
7704 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7705 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7706 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7707 | for ac_extension in a so sl; do | |
7708 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ed698112 NN |
7709 | test -f $ac_im_libdir/libX11.$ac_extension; then |
7710 | ac_im_usrlibdir=$ac_im_libdir; break | |
5aac1dac TT |
7711 | fi |
7712 | done | |
7713 | # Screen out bogus values from the imake configuration. They are | |
7714 | # bogus both because they are the default anyway, and because | |
7715 | # using them would break gcc on systems where it needs fixed includes. | |
ed698112 | 7716 | case $ac_im_incroot in |
ade710a5 | 7717 | /usr/include) ;; |
ed698112 | 7718 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
5aac1dac | 7719 | esac |
ed698112 | 7720 | case $ac_im_usrlibdir in |
5aac1dac | 7721 | /usr/lib | /lib) ;; |
ed698112 | 7722 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
5aac1dac TT |
7723 | esac |
7724 | fi | |
7725 | cd .. | |
ade710a5 | 7726 | rm -fr conftest.dir |
5aac1dac | 7727 | fi |
ee9dd372 | 7728 | |
ed698112 NN |
7729 | # Standard set of common directories for X headers. |
7730 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7731 | ac_x_header_dirs=' | |
7732 | /usr/X11/include | |
7733 | /usr/X11R6/include | |
7734 | /usr/X11R5/include | |
7735 | /usr/X11R4/include | |
7736 | ||
7737 | /usr/include/X11 | |
7738 | /usr/include/X11R6 | |
7739 | /usr/include/X11R5 | |
7740 | /usr/include/X11R4 | |
7741 | ||
7742 | /usr/local/X11/include | |
7743 | /usr/local/X11R6/include | |
7744 | /usr/local/X11R5/include | |
7745 | /usr/local/X11R4/include | |
7746 | ||
7747 | /usr/local/include/X11 | |
7748 | /usr/local/include/X11R6 | |
7749 | /usr/local/include/X11R5 | |
7750 | /usr/local/include/X11R4 | |
7751 | ||
7752 | /usr/X386/include | |
7753 | /usr/x386/include | |
7754 | /usr/XFree86/include/X11 | |
7755 | ||
7756 | /usr/include | |
7757 | /usr/local/include | |
7758 | /usr/unsupported/include | |
7759 | /usr/athena/include | |
7760 | /usr/local/x11r5/include | |
7761 | /usr/lpp/Xamples/include | |
7762 | ||
7763 | /usr/openwin/include | |
7764 | /usr/openwin/share/include' | |
7765 | ||
7766 | if test "$ac_x_includes" = no; then | |
97b8365c | 7767 | # Guess where to find include files, by looking for Xlib.h. |
5aac1dac | 7768 | # First, try using that file with no special directory specified. |
ed698112 NN |
7769 | cat >conftest.$ac_ext <<_ACEOF |
7770 | /* confdefs.h. */ | |
7771 | _ACEOF | |
7772 | cat confdefs.h >>conftest.$ac_ext | |
7773 | cat >>conftest.$ac_ext <<_ACEOF | |
7774 | /* end confdefs.h. */ | |
97b8365c | 7775 | #include <X11/Xlib.h> |
ed698112 NN |
7776 | _ACEOF |
7777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7779 | ac_status=$? | |
7780 | grep -v '^ *+' conftest.er1 >conftest.err | |
7781 | rm -f conftest.er1 | |
7782 | cat conftest.err >&5 | |
7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7784 | (exit $ac_status); } >/dev/null; then | |
7785 | if test -s conftest.err; then | |
7786 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7788 | else | |
7789 | ac_cpp_err= | |
7790 | fi | |
7791 | else | |
7792 | ac_cpp_err=yes | |
7793 | fi | |
7794 | if test -z "$ac_cpp_err"; then | |
5aac1dac TT |
7795 | # We can compile using X headers with no special include directory. |
7796 | ac_x_includes= | |
7797 | else | |
ed698112 NN |
7798 | echo "$as_me: failed program was:" >&5 |
7799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7800 | ||
7801 | for ac_dir in $ac_x_header_dirs; do | |
97b8365c | 7802 | if test -r "$ac_dir/X11/Xlib.h"; then |
ed698112 NN |
7803 | ac_x_includes=$ac_dir |
7804 | break | |
7805 | fi | |
7806 | done | |
5aac1dac | 7807 | fi |
ed698112 NN |
7808 | rm -f conftest.err conftest.$ac_ext |
7809 | fi # $ac_x_includes = no | |
ee9dd372 | 7810 | |
ed698112 | 7811 | if test "$ac_x_libraries" = no; then |
5aac1dac | 7812 | # Check for the libraries. |
5aac1dac TT |
7813 | # See if we find them without any special options. |
7814 | # Don't add to $LIBS permanently. | |
ed698112 NN |
7815 | ac_save_LIBS=$LIBS |
7816 | LIBS="-lXt $LIBS" | |
7817 | if test x$gcc_no_link = xyes; then | |
7818 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7819 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7820 | { (exit 1); exit 1; }; } | |
7821 | fi | |
7822 | cat >conftest.$ac_ext <<_ACEOF | |
7823 | /* confdefs.h. */ | |
7824 | _ACEOF | |
7825 | cat confdefs.h >>conftest.$ac_ext | |
7826 | cat >>conftest.$ac_ext <<_ACEOF | |
7827 | /* end confdefs.h. */ | |
97b8365c | 7828 | #include <X11/Xlib.h> |
ed698112 NN |
7829 | int |
7830 | main () | |
7831 | { | |
97b8365c | 7832 | XrmInitialize () |
ed698112 NN |
7833 | ; |
7834 | return 0; | |
7835 | } | |
7836 | _ACEOF | |
7837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7839 | (eval $ac_link) 2>conftest.er1 | |
7840 | ac_status=$? | |
7841 | grep -v '^ *+' conftest.er1 >conftest.err | |
7842 | rm -f conftest.er1 | |
7843 | cat conftest.err >&5 | |
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7845 | (exit $ac_status); } && | |
ade710a5 TF |
7846 | { ac_try='test -z "$ac_c_werror_flag" |
7847 | || test ! -s conftest.err' | |
ed698112 NN |
7848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7849 | (eval $ac_try) 2>&5 | |
7850 | ac_status=$? | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7852 | (exit $ac_status); }; } && | |
7853 | { ac_try='test -s conftest$ac_exeext' | |
7854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7855 | (eval $ac_try) 2>&5 | |
7856 | ac_status=$? | |
7857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7858 | (exit $ac_status); }; }; then | |
7859 | LIBS=$ac_save_LIBS | |
5aac1dac TT |
7860 | # We can link X programs with no special library path. |
7861 | ac_x_libraries= | |
7862 | else | |
ed698112 NN |
7863 | echo "$as_me: failed program was:" >&5 |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
ade710a5 | 7866 | LIBS=$ac_save_LIBS |
ed698112 | 7867 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5aac1dac | 7868 | do |
ed698112 | 7869 | # Don't even attempt the hair of trying to link an X program! |
5aac1dac | 7870 | for ac_extension in a so sl; do |
ade710a5 | 7871 | if test -r $ac_dir/libXt.$ac_extension; then |
5aac1dac TT |
7872 | ac_x_libraries=$ac_dir |
7873 | break 2 | |
7874 | fi | |
7875 | done | |
7876 | done | |
7877 | fi | |
ed698112 NN |
7878 | rm -f conftest.err conftest.$ac_objext \ |
7879 | conftest$ac_exeext conftest.$ac_ext | |
7880 | fi # $ac_x_libraries = no | |
ee9dd372 | 7881 | |
ed698112 | 7882 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
5aac1dac TT |
7883 | # Didn't find X anywhere. Cache the known absence of X. |
7884 | ac_cv_have_x="have_x=no" | |
7885 | else | |
7886 | # Record where we found X for the cache. | |
7887 | ac_cv_have_x="have_x=yes \ | |
ed698112 | 7888 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
5aac1dac TT |
7889 | fi |
7890 | fi | |
ed698112 | 7891 | |
5aac1dac TT |
7892 | fi |
7893 | eval "$ac_cv_have_x" | |
7894 | fi # $with_x != no | |
ee9dd372 | 7895 | |
5aac1dac | 7896 | if test "$have_x" != yes; then |
ade710a5 TF |
7897 | echo "$as_me:$LINENO: result: $have_x" >&5 |
7898 | echo "${ECHO_T}$have_x" >&6 | |
5aac1dac TT |
7899 | no_x=yes |
7900 | else | |
7901 | # If each of the values was on the command line, it overrides each guess. | |
7902 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7903 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7904 | # Update the cache value to reflect the command line values. | |
7905 | ac_cv_have_x="have_x=yes \ | |
7906 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
ade710a5 TF |
7907 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
7908 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
5aac1dac | 7909 | fi |
f994389b | 7910 | |
5aac1dac TT |
7911 | if test "$no_x" = yes; then |
7912 | # Not all programs may use this symbol, but it does not hurt to define it. | |
ed698112 NN |
7913 | |
7914 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 7915 | #define X_DISPLAY_MISSING 1 |
ed698112 | 7916 | _ACEOF |
ee9dd372 | 7917 | |
5aac1dac TT |
7918 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7919 | else | |
7920 | if test -n "$x_includes"; then | |
7921 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
7922 | fi | |
ee9dd372 | 7923 | |
5aac1dac TT |
7924 | # It would also be nice to do this for all -L options, not just this one. |
7925 | if test -n "$x_libraries"; then | |
7926 | X_LIBS="$X_LIBS -L$x_libraries" | |
7927 | # For Solaris; some versions of Sun CC require a space after -R and | |
7928 | # others require no space. Words are not sufficient . . . . | |
ed698112 | 7929 | case `(uname -sr) 2>/dev/null` in |
5aac1dac | 7930 | "SunOS 5"*) |
ade710a5 TF |
7931 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
7932 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
ed698112 NN |
7933 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
7934 | if test x$gcc_no_link = xyes; then | |
7935 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7936 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7937 | { (exit 1); exit 1; }; } | |
7938 | fi | |
7939 | cat >conftest.$ac_ext <<_ACEOF | |
7940 | /* confdefs.h. */ | |
7941 | _ACEOF | |
7942 | cat confdefs.h >>conftest.$ac_ext | |
7943 | cat >>conftest.$ac_ext <<_ACEOF | |
7944 | /* end confdefs.h. */ | |
7f6e0fe6 | 7945 | |
ed698112 NN |
7946 | int |
7947 | main () | |
7948 | { | |
7f6e0fe6 | 7949 | |
ed698112 NN |
7950 | ; |
7951 | return 0; | |
7952 | } | |
7953 | _ACEOF | |
7954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7956 | (eval $ac_link) 2>conftest.er1 | |
7957 | ac_status=$? | |
7958 | grep -v '^ *+' conftest.er1 >conftest.err | |
7959 | rm -f conftest.er1 | |
7960 | cat conftest.err >&5 | |
7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7962 | (exit $ac_status); } && | |
ade710a5 TF |
7963 | { ac_try='test -z "$ac_c_werror_flag" |
7964 | || test ! -s conftest.err' | |
ed698112 NN |
7965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7966 | (eval $ac_try) 2>&5 | |
7967 | ac_status=$? | |
7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7969 | (exit $ac_status); }; } && | |
7970 | { ac_try='test -s conftest$ac_exeext' | |
7971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7972 | (eval $ac_try) 2>&5 | |
7973 | ac_status=$? | |
7974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7975 | (exit $ac_status); }; }; then | |
5aac1dac TT |
7976 | ac_R_nospace=yes |
7977 | else | |
ed698112 NN |
7978 | echo "$as_me: failed program was:" >&5 |
7979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7980 | ||
ade710a5 | 7981 | ac_R_nospace=no |
5aac1dac | 7982 | fi |
ed698112 NN |
7983 | rm -f conftest.err conftest.$ac_objext \ |
7984 | conftest$ac_exeext conftest.$ac_ext | |
5aac1dac | 7985 | if test $ac_R_nospace = yes; then |
ade710a5 TF |
7986 | echo "$as_me:$LINENO: result: no" >&5 |
7987 | echo "${ECHO_T}no" >&6 | |
5aac1dac TT |
7988 | X_LIBS="$X_LIBS -R$x_libraries" |
7989 | else | |
7990 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
ed698112 NN |
7991 | if test x$gcc_no_link = xyes; then |
7992 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7993 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7994 | { (exit 1); exit 1; }; } | |
7995 | fi | |
7996 | cat >conftest.$ac_ext <<_ACEOF | |
7997 | /* confdefs.h. */ | |
7998 | _ACEOF | |
7999 | cat confdefs.h >>conftest.$ac_ext | |
8000 | cat >>conftest.$ac_ext <<_ACEOF | |
8001 | /* end confdefs.h. */ | |
7f6e0fe6 | 8002 | |
ed698112 NN |
8003 | int |
8004 | main () | |
8005 | { | |
ee9dd372 | 8006 | |
ed698112 NN |
8007 | ; |
8008 | return 0; | |
8009 | } | |
8010 | _ACEOF | |
8011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8013 | (eval $ac_link) 2>conftest.er1 | |
8014 | ac_status=$? | |
8015 | grep -v '^ *+' conftest.er1 >conftest.err | |
8016 | rm -f conftest.er1 | |
8017 | cat conftest.err >&5 | |
8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8019 | (exit $ac_status); } && | |
ade710a5 TF |
8020 | { ac_try='test -z "$ac_c_werror_flag" |
8021 | || test ! -s conftest.err' | |
ed698112 NN |
8022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8023 | (eval $ac_try) 2>&5 | |
8024 | ac_status=$? | |
8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8026 | (exit $ac_status); }; } && | |
8027 | { ac_try='test -s conftest$ac_exeext' | |
8028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8029 | (eval $ac_try) 2>&5 | |
8030 | ac_status=$? | |
8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8032 | (exit $ac_status); }; }; then | |
5aac1dac TT |
8033 | ac_R_space=yes |
8034 | else | |
ed698112 NN |
8035 | echo "$as_me: failed program was:" >&5 |
8036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8037 | ||
ade710a5 | 8038 | ac_R_space=no |
5aac1dac | 8039 | fi |
ed698112 NN |
8040 | rm -f conftest.err conftest.$ac_objext \ |
8041 | conftest$ac_exeext conftest.$ac_ext | |
5aac1dac | 8042 | if test $ac_R_space = yes; then |
ade710a5 TF |
8043 | echo "$as_me:$LINENO: result: yes" >&5 |
8044 | echo "${ECHO_T}yes" >&6 | |
5aac1dac TT |
8045 | X_LIBS="$X_LIBS -R $x_libraries" |
8046 | else | |
ade710a5 TF |
8047 | echo "$as_me:$LINENO: result: neither works" >&5 |
8048 | echo "${ECHO_T}neither works" >&6 | |
5aac1dac TT |
8049 | fi |
8050 | fi | |
ed698112 | 8051 | LIBS=$ac_xsave_LIBS |
5aac1dac TT |
8052 | esac |
8053 | fi | |
ee9dd372 | 8054 | |
5aac1dac TT |
8055 | # Check for system-dependent libraries X programs must link with. |
8056 | # Do this before checking for the system-independent R6 libraries | |
8057 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
ee9dd372 | 8058 | |
5aac1dac TT |
8059 | if test "$ISC" = yes; then |
8060 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8061 | else | |
ed698112 NN |
8062 | # Martyn Johnson says this is needed for Ultrix, if the X |
8063 | # libraries were built with DECnet support. And Karl Berry says | |
5aac1dac | 8064 | # the Alpha needs dnet_stub (dnet does not exist). |
ed698112 NN |
8065 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
8066 | if test x$gcc_no_link = xyes; then | |
8067 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8068 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8069 | { (exit 1); exit 1; }; } | |
8070 | fi | |
8071 | cat >conftest.$ac_ext <<_ACEOF | |
8072 | /* confdefs.h. */ | |
8073 | _ACEOF | |
8074 | cat confdefs.h >>conftest.$ac_ext | |
8075 | cat >>conftest.$ac_ext <<_ACEOF | |
8076 | /* end confdefs.h. */ | |
8077 | ||
ade710a5 | 8078 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8079 | #ifdef __cplusplus |
8080 | extern "C" | |
8081 | #endif | |
ade710a5 TF |
8082 | /* We use char because int might match the return type of a gcc2 |
8083 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8084 | char XOpenDisplay (); |
8085 | int | |
8086 | main () | |
8087 | { | |
ade710a5 | 8088 | XOpenDisplay (); |
ed698112 NN |
8089 | ; |
8090 | return 0; | |
8091 | } | |
8092 | _ACEOF | |
8093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8095 | (eval $ac_link) 2>conftest.er1 | |
8096 | ac_status=$? | |
8097 | grep -v '^ *+' conftest.er1 >conftest.err | |
8098 | rm -f conftest.er1 | |
8099 | cat conftest.err >&5 | |
8100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8101 | (exit $ac_status); } && | |
ade710a5 TF |
8102 | { ac_try='test -z "$ac_c_werror_flag" |
8103 | || test ! -s conftest.err' | |
ed698112 NN |
8104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8105 | (eval $ac_try) 2>&5 | |
8106 | ac_status=$? | |
8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8108 | (exit $ac_status); }; } && | |
8109 | { ac_try='test -s conftest$ac_exeext' | |
8110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8111 | (eval $ac_try) 2>&5 | |
8112 | ac_status=$? | |
8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8114 | (exit $ac_status); }; }; then | |
8115 | : | |
8116 | else | |
8117 | echo "$as_me: failed program was:" >&5 | |
8118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ee9dd372 | 8119 | |
ade710a5 TF |
8120 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
8121 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
ed698112 NN |
8122 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
8123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 8124 | else |
ed698112 NN |
8125 | ac_check_lib_save_LIBS=$LIBS |
8126 | LIBS="-ldnet $LIBS" | |
8127 | if test x$gcc_no_link = xyes; then | |
8128 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8129 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8130 | { (exit 1); exit 1; }; } | |
8131 | fi | |
8132 | cat >conftest.$ac_ext <<_ACEOF | |
8133 | /* confdefs.h. */ | |
8134 | _ACEOF | |
8135 | cat confdefs.h >>conftest.$ac_ext | |
8136 | cat >>conftest.$ac_ext <<_ACEOF | |
8137 | /* end confdefs.h. */ | |
45597167 | 8138 | |
ade710a5 | 8139 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8140 | #ifdef __cplusplus |
8141 | extern "C" | |
8142 | #endif | |
ade710a5 TF |
8143 | /* We use char because int might match the return type of a gcc2 |
8144 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8145 | char dnet_ntoa (); |
8146 | int | |
8147 | main () | |
8148 | { | |
ade710a5 | 8149 | dnet_ntoa (); |
ed698112 NN |
8150 | ; |
8151 | return 0; | |
8152 | } | |
8153 | _ACEOF | |
8154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8156 | (eval $ac_link) 2>conftest.er1 | |
8157 | ac_status=$? | |
8158 | grep -v '^ *+' conftest.er1 >conftest.err | |
8159 | rm -f conftest.er1 | |
8160 | cat conftest.err >&5 | |
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8162 | (exit $ac_status); } && | |
ade710a5 TF |
8163 | { ac_try='test -z "$ac_c_werror_flag" |
8164 | || test ! -s conftest.err' | |
ed698112 NN |
8165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8166 | (eval $ac_try) 2>&5 | |
8167 | ac_status=$? | |
8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8169 | (exit $ac_status); }; } && | |
8170 | { ac_try='test -s conftest$ac_exeext' | |
8171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8172 | (eval $ac_try) 2>&5 | |
8173 | ac_status=$? | |
8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8175 | (exit $ac_status); }; }; then | |
8176 | ac_cv_lib_dnet_dnet_ntoa=yes | |
8177 | else | |
8178 | echo "$as_me: failed program was:" >&5 | |
8179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8180 | ||
ade710a5 | 8181 | ac_cv_lib_dnet_dnet_ntoa=no |
ed698112 NN |
8182 | fi |
8183 | rm -f conftest.err conftest.$ac_objext \ | |
8184 | conftest$ac_exeext conftest.$ac_ext | |
8185 | LIBS=$ac_check_lib_save_LIBS | |
8186 | fi | |
ade710a5 TF |
8187 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
8188 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
ed698112 | 8189 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
5aac1dac | 8190 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
5aac1dac | 8191 | fi |
45597167 | 8192 | |
5aac1dac | 8193 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
ade710a5 TF |
8194 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
8195 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
ed698112 NN |
8196 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
8197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 8198 | else |
ed698112 | 8199 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 8200 | LIBS="-ldnet_stub $LIBS" |
ed698112 NN |
8201 | if test x$gcc_no_link = xyes; then |
8202 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8203 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8204 | { (exit 1); exit 1; }; } | |
8205 | fi | |
8206 | cat >conftest.$ac_ext <<_ACEOF | |
8207 | /* confdefs.h. */ | |
8208 | _ACEOF | |
8209 | cat confdefs.h >>conftest.$ac_ext | |
8210 | cat >>conftest.$ac_ext <<_ACEOF | |
8211 | /* end confdefs.h. */ | |
8212 | ||
ade710a5 | 8213 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8214 | #ifdef __cplusplus |
8215 | extern "C" | |
8216 | #endif | |
ade710a5 TF |
8217 | /* We use char because int might match the return type of a gcc2 |
8218 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8219 | char dnet_ntoa (); |
8220 | int | |
8221 | main () | |
8222 | { | |
ade710a5 | 8223 | dnet_ntoa (); |
ed698112 NN |
8224 | ; |
8225 | return 0; | |
8226 | } | |
8227 | _ACEOF | |
8228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8230 | (eval $ac_link) 2>conftest.er1 | |
8231 | ac_status=$? | |
8232 | grep -v '^ *+' conftest.er1 >conftest.err | |
8233 | rm -f conftest.er1 | |
8234 | cat conftest.err >&5 | |
8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8236 | (exit $ac_status); } && | |
ade710a5 TF |
8237 | { ac_try='test -z "$ac_c_werror_flag" |
8238 | || test ! -s conftest.err' | |
ed698112 NN |
8239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8240 | (eval $ac_try) 2>&5 | |
8241 | ac_status=$? | |
8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8243 | (exit $ac_status); }; } && | |
8244 | { ac_try='test -s conftest$ac_exeext' | |
8245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8246 | (eval $ac_try) 2>&5 | |
8247 | ac_status=$? | |
8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8249 | (exit $ac_status); }; }; then | |
8250 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
8251 | else | |
8252 | echo "$as_me: failed program was:" >&5 | |
8253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8254 | ||
ade710a5 | 8255 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
ed698112 NN |
8256 | fi |
8257 | rm -f conftest.err conftest.$ac_objext \ | |
8258 | conftest$ac_exeext conftest.$ac_ext | |
8259 | LIBS=$ac_check_lib_save_LIBS | |
8260 | fi | |
ade710a5 TF |
8261 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
8262 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
ed698112 | 8263 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
5aac1dac | 8264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
cf6b8de4 TT |
8265 | fi |
8266 | ||
5aac1dac | 8267 | fi |
ed698112 NN |
8268 | fi |
8269 | rm -f conftest.err conftest.$ac_objext \ | |
8270 | conftest$ac_exeext conftest.$ac_ext | |
8271 | LIBS="$ac_xsave_LIBS" | |
cf6b8de4 | 8272 | |
5aac1dac TT |
8273 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
8274 | # to get the SysV transport functions. | |
ed698112 | 8275 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
5aac1dac TT |
8276 | # needs -lnsl. |
8277 | # The nsl library prevents programs from opening the X display | |
ed698112 NN |
8278 | # on Irix 5.2, according to T.E. Dickey. |
8279 | # The functions gethostbyname, getservbyname, and inet_addr are | |
8280 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
ade710a5 TF |
8281 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
8282 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
ed698112 NN |
8283 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
8284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8285 | else | |
8286 | if test x$gcc_no_link = xyes; then | |
8287 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8288 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8289 | { (exit 1); exit 1; }; } | |
8290 | fi | |
8291 | cat >conftest.$ac_ext <<_ACEOF | |
8292 | /* confdefs.h. */ | |
8293 | _ACEOF | |
8294 | cat confdefs.h >>conftest.$ac_ext | |
8295 | cat >>conftest.$ac_ext <<_ACEOF | |
8296 | /* end confdefs.h. */ | |
8297 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
8298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8299 | #define gethostbyname innocuous_gethostbyname | |
8300 | ||
ee9dd372 | 8301 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
8302 | which can conflict with char gethostbyname (); below. |
8303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8304 | <limits.h> exists even on freestanding compilers. */ | |
8305 | ||
8306 | #ifdef __STDC__ | |
8307 | # include <limits.h> | |
8308 | #else | |
8309 | # include <assert.h> | |
8310 | #endif | |
ee9dd372 | 8311 | |
ed698112 | 8312 | #undef gethostbyname |
ee9dd372 | 8313 | |
ade710a5 | 8314 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8315 | #ifdef __cplusplus |
8316 | extern "C" | |
ade710a5 | 8317 | { |
ed698112 | 8318 | #endif |
ade710a5 TF |
8319 | /* We use char because int might match the return type of a gcc2 |
8320 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 8321 | char gethostbyname (); |
ee9dd372 TT |
8322 | /* The GNU C library defines this for functions which it implements |
8323 | to always fail with ENOSYS. Some functions are actually named | |
8324 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 8325 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
ee9dd372 | 8326 | choke me |
ade710a5 TF |
8327 | #else |
8328 | char (*f) () = gethostbyname; | |
8329 | #endif | |
8330 | #ifdef __cplusplus | |
8331 | } | |
ee9dd372 TT |
8332 | #endif |
8333 | ||
ed698112 NN |
8334 | int |
8335 | main () | |
8336 | { | |
ade710a5 | 8337 | return f != gethostbyname; |
ed698112 NN |
8338 | ; |
8339 | return 0; | |
8340 | } | |
8341 | _ACEOF | |
8342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8344 | (eval $ac_link) 2>conftest.er1 | |
8345 | ac_status=$? | |
8346 | grep -v '^ *+' conftest.er1 >conftest.err | |
8347 | rm -f conftest.er1 | |
8348 | cat conftest.err >&5 | |
8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8350 | (exit $ac_status); } && | |
ade710a5 TF |
8351 | { ac_try='test -z "$ac_c_werror_flag" |
8352 | || test ! -s conftest.err' | |
ed698112 NN |
8353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8354 | (eval $ac_try) 2>&5 | |
8355 | ac_status=$? | |
8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8357 | (exit $ac_status); }; } && | |
8358 | { ac_try='test -s conftest$ac_exeext' | |
8359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8360 | (eval $ac_try) 2>&5 | |
8361 | ac_status=$? | |
8362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8363 | (exit $ac_status); }; }; then | |
8364 | ac_cv_func_gethostbyname=yes | |
8365 | else | |
8366 | echo "$as_me: failed program was:" >&5 | |
8367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8368 | ||
ade710a5 | 8369 | ac_cv_func_gethostbyname=no |
ed698112 NN |
8370 | fi |
8371 | rm -f conftest.err conftest.$ac_objext \ | |
8372 | conftest$ac_exeext conftest.$ac_ext | |
8373 | fi | |
ade710a5 TF |
8374 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
8375 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
ee9dd372 | 8376 | |
5aac1dac | 8377 | if test $ac_cv_func_gethostbyname = no; then |
ade710a5 TF |
8378 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
8379 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
ed698112 NN |
8380 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
8381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe5e3b97 | 8382 | else |
ed698112 | 8383 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 8384 | LIBS="-lnsl $LIBS" |
ed698112 NN |
8385 | if test x$gcc_no_link = xyes; then |
8386 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8387 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8388 | { (exit 1); exit 1; }; } | |
8389 | fi | |
8390 | cat >conftest.$ac_ext <<_ACEOF | |
8391 | /* confdefs.h. */ | |
8392 | _ACEOF | |
8393 | cat confdefs.h >>conftest.$ac_ext | |
8394 | cat >>conftest.$ac_ext <<_ACEOF | |
8395 | /* end confdefs.h. */ | |
8396 | ||
ade710a5 | 8397 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8398 | #ifdef __cplusplus |
8399 | extern "C" | |
8400 | #endif | |
ade710a5 TF |
8401 | /* We use char because int might match the return type of a gcc2 |
8402 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8403 | char gethostbyname (); |
8404 | int | |
8405 | main () | |
8406 | { | |
ade710a5 | 8407 | gethostbyname (); |
ed698112 NN |
8408 | ; |
8409 | return 0; | |
8410 | } | |
8411 | _ACEOF | |
8412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8414 | (eval $ac_link) 2>conftest.er1 | |
8415 | ac_status=$? | |
8416 | grep -v '^ *+' conftest.er1 >conftest.err | |
8417 | rm -f conftest.er1 | |
8418 | cat conftest.err >&5 | |
8419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8420 | (exit $ac_status); } && | |
ade710a5 TF |
8421 | { ac_try='test -z "$ac_c_werror_flag" |
8422 | || test ! -s conftest.err' | |
ed698112 NN |
8423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8424 | (eval $ac_try) 2>&5 | |
8425 | ac_status=$? | |
8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8427 | (exit $ac_status); }; } && | |
8428 | { ac_try='test -s conftest$ac_exeext' | |
8429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8430 | (eval $ac_try) 2>&5 | |
8431 | ac_status=$? | |
8432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8433 | (exit $ac_status); }; }; then | |
8434 | ac_cv_lib_nsl_gethostbyname=yes | |
8435 | else | |
8436 | echo "$as_me: failed program was:" >&5 | |
8437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8438 | ||
ade710a5 | 8439 | ac_cv_lib_nsl_gethostbyname=no |
ed698112 NN |
8440 | fi |
8441 | rm -f conftest.err conftest.$ac_objext \ | |
8442 | conftest$ac_exeext conftest.$ac_ext | |
8443 | LIBS=$ac_check_lib_save_LIBS | |
8444 | fi | |
ade710a5 TF |
8445 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
8446 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
ed698112 NN |
8447 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
8448 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8449 | fi | |
fe5e3b97 | 8450 | |
ed698112 | 8451 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
ade710a5 TF |
8452 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
8453 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
ed698112 NN |
8454 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
8455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe5e3b97 | 8456 | else |
ed698112 NN |
8457 | ac_check_lib_save_LIBS=$LIBS |
8458 | LIBS="-lbsd $LIBS" | |
8459 | if test x$gcc_no_link = xyes; then | |
8460 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8461 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8462 | { (exit 1); exit 1; }; } | |
fe5e3b97 | 8463 | fi |
ed698112 NN |
8464 | cat >conftest.$ac_ext <<_ACEOF |
8465 | /* confdefs.h. */ | |
8466 | _ACEOF | |
8467 | cat confdefs.h >>conftest.$ac_ext | |
8468 | cat >>conftest.$ac_ext <<_ACEOF | |
8469 | /* end confdefs.h. */ | |
fe5e3b97 | 8470 | |
ade710a5 | 8471 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8472 | #ifdef __cplusplus |
8473 | extern "C" | |
8474 | #endif | |
ade710a5 TF |
8475 | /* We use char because int might match the return type of a gcc2 |
8476 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8477 | char gethostbyname (); |
8478 | int | |
8479 | main () | |
8480 | { | |
ade710a5 | 8481 | gethostbyname (); |
ed698112 NN |
8482 | ; |
8483 | return 0; | |
8484 | } | |
8485 | _ACEOF | |
8486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8488 | (eval $ac_link) 2>conftest.er1 | |
8489 | ac_status=$? | |
8490 | grep -v '^ *+' conftest.er1 >conftest.err | |
8491 | rm -f conftest.er1 | |
8492 | cat conftest.err >&5 | |
8493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8494 | (exit $ac_status); } && | |
ade710a5 TF |
8495 | { ac_try='test -z "$ac_c_werror_flag" |
8496 | || test ! -s conftest.err' | |
ed698112 NN |
8497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8498 | (eval $ac_try) 2>&5 | |
8499 | ac_status=$? | |
8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8501 | (exit $ac_status); }; } && | |
8502 | { ac_try='test -s conftest$ac_exeext' | |
8503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8504 | (eval $ac_try) 2>&5 | |
8505 | ac_status=$? | |
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8507 | (exit $ac_status); }; }; then | |
8508 | ac_cv_lib_bsd_gethostbyname=yes | |
8509 | else | |
8510 | echo "$as_me: failed program was:" >&5 | |
8511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8512 | ||
ade710a5 | 8513 | ac_cv_lib_bsd_gethostbyname=no |
ed698112 NN |
8514 | fi |
8515 | rm -f conftest.err conftest.$ac_objext \ | |
8516 | conftest$ac_exeext conftest.$ac_ext | |
8517 | LIBS=$ac_check_lib_save_LIBS | |
8518 | fi | |
ade710a5 TF |
8519 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
8520 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
ed698112 NN |
8521 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
8522 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
fe5e3b97 | 8523 | fi |
fe5e3b97 | 8524 | |
ed698112 | 8525 | fi |
5aac1dac TT |
8526 | fi |
8527 | ||
8528 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8529 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8530 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
ed698112 NN |
8531 | # on later versions), says Simon Leinen: it contains gethostby* |
8532 | # variants that don't use the name server (or something). -lsocket | |
8533 | # must be given before -lnsl if both are needed. We assume that | |
8534 | # if connect needs -lnsl, so does gethostbyname. | |
ade710a5 TF |
8535 | echo "$as_me:$LINENO: checking for connect" >&5 |
8536 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
ed698112 NN |
8537 | if test "${ac_cv_func_connect+set}" = set; then |
8538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8539 | else | |
8540 | if test x$gcc_no_link = xyes; then | |
8541 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8542 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8543 | { (exit 1); exit 1; }; } | |
8544 | fi | |
8545 | cat >conftest.$ac_ext <<_ACEOF | |
8546 | /* confdefs.h. */ | |
8547 | _ACEOF | |
8548 | cat confdefs.h >>conftest.$ac_ext | |
8549 | cat >>conftest.$ac_ext <<_ACEOF | |
8550 | /* end confdefs.h. */ | |
8551 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | |
8552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8553 | #define connect innocuous_connect | |
8554 | ||
ee9dd372 | 8555 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
8556 | which can conflict with char connect (); below. |
8557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8558 | <limits.h> exists even on freestanding compilers. */ | |
8559 | ||
8560 | #ifdef __STDC__ | |
8561 | # include <limits.h> | |
8562 | #else | |
8563 | # include <assert.h> | |
8564 | #endif | |
ee9dd372 | 8565 | |
ed698112 | 8566 | #undef connect |
ee9dd372 | 8567 | |
ade710a5 | 8568 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8569 | #ifdef __cplusplus |
8570 | extern "C" | |
ade710a5 | 8571 | { |
ed698112 | 8572 | #endif |
ade710a5 TF |
8573 | /* We use char because int might match the return type of a gcc2 |
8574 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 8575 | char connect (); |
ee9dd372 TT |
8576 | /* The GNU C library defines this for functions which it implements |
8577 | to always fail with ENOSYS. Some functions are actually named | |
8578 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 8579 | #if defined (__stub_connect) || defined (__stub___connect) |
ee9dd372 | 8580 | choke me |
ade710a5 TF |
8581 | #else |
8582 | char (*f) () = connect; | |
8583 | #endif | |
8584 | #ifdef __cplusplus | |
8585 | } | |
ee9dd372 TT |
8586 | #endif |
8587 | ||
ed698112 NN |
8588 | int |
8589 | main () | |
8590 | { | |
ade710a5 | 8591 | return f != connect; |
ed698112 NN |
8592 | ; |
8593 | return 0; | |
8594 | } | |
8595 | _ACEOF | |
8596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8598 | (eval $ac_link) 2>conftest.er1 | |
8599 | ac_status=$? | |
8600 | grep -v '^ *+' conftest.er1 >conftest.err | |
8601 | rm -f conftest.er1 | |
8602 | cat conftest.err >&5 | |
8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8604 | (exit $ac_status); } && | |
ade710a5 TF |
8605 | { ac_try='test -z "$ac_c_werror_flag" |
8606 | || test ! -s conftest.err' | |
ed698112 NN |
8607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8608 | (eval $ac_try) 2>&5 | |
8609 | ac_status=$? | |
8610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8611 | (exit $ac_status); }; } && | |
8612 | { ac_try='test -s conftest$ac_exeext' | |
8613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8614 | (eval $ac_try) 2>&5 | |
8615 | ac_status=$? | |
8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8617 | (exit $ac_status); }; }; then | |
8618 | ac_cv_func_connect=yes | |
8619 | else | |
8620 | echo "$as_me: failed program was:" >&5 | |
8621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8622 | ||
ade710a5 | 8623 | ac_cv_func_connect=no |
ed698112 NN |
8624 | fi |
8625 | rm -f conftest.err conftest.$ac_objext \ | |
8626 | conftest$ac_exeext conftest.$ac_ext | |
8627 | fi | |
ade710a5 TF |
8628 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
8629 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
ee9dd372 | 8630 | |
5aac1dac | 8631 | if test $ac_cv_func_connect = no; then |
ade710a5 TF |
8632 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
8633 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
ed698112 NN |
8634 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
8635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 8636 | else |
ed698112 | 8637 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 8638 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
ed698112 NN |
8639 | if test x$gcc_no_link = xyes; then |
8640 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8641 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8642 | { (exit 1); exit 1; }; } | |
8643 | fi | |
8644 | cat >conftest.$ac_ext <<_ACEOF | |
8645 | /* confdefs.h. */ | |
8646 | _ACEOF | |
8647 | cat confdefs.h >>conftest.$ac_ext | |
8648 | cat >>conftest.$ac_ext <<_ACEOF | |
8649 | /* end confdefs.h. */ | |
8650 | ||
ade710a5 | 8651 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8652 | #ifdef __cplusplus |
8653 | extern "C" | |
8654 | #endif | |
ade710a5 TF |
8655 | /* We use char because int might match the return type of a gcc2 |
8656 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8657 | char connect (); |
8658 | int | |
8659 | main () | |
8660 | { | |
ade710a5 | 8661 | connect (); |
ed698112 NN |
8662 | ; |
8663 | return 0; | |
8664 | } | |
8665 | _ACEOF | |
8666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8668 | (eval $ac_link) 2>conftest.er1 | |
8669 | ac_status=$? | |
8670 | grep -v '^ *+' conftest.er1 >conftest.err | |
8671 | rm -f conftest.er1 | |
8672 | cat conftest.err >&5 | |
8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8674 | (exit $ac_status); } && | |
ade710a5 TF |
8675 | { ac_try='test -z "$ac_c_werror_flag" |
8676 | || test ! -s conftest.err' | |
ed698112 NN |
8677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8678 | (eval $ac_try) 2>&5 | |
8679 | ac_status=$? | |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8681 | (exit $ac_status); }; } && | |
8682 | { ac_try='test -s conftest$ac_exeext' | |
8683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8684 | (eval $ac_try) 2>&5 | |
8685 | ac_status=$? | |
8686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8687 | (exit $ac_status); }; }; then | |
8688 | ac_cv_lib_socket_connect=yes | |
8689 | else | |
8690 | echo "$as_me: failed program was:" >&5 | |
8691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8692 | ||
ade710a5 | 8693 | ac_cv_lib_socket_connect=no |
ed698112 NN |
8694 | fi |
8695 | rm -f conftest.err conftest.$ac_objext \ | |
8696 | conftest$ac_exeext conftest.$ac_ext | |
8697 | LIBS=$ac_check_lib_save_LIBS | |
8698 | fi | |
ade710a5 TF |
8699 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
8700 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
ed698112 | 8701 | if test $ac_cv_lib_socket_connect = yes; then |
5aac1dac | 8702 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
ee9dd372 | 8703 | fi |
ee9dd372 | 8704 | |
5aac1dac TT |
8705 | fi |
8706 | ||
ed698112 | 8707 | # Guillermo Gomez says -lposix is necessary on A/UX. |
ade710a5 TF |
8708 | echo "$as_me:$LINENO: checking for remove" >&5 |
8709 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
ed698112 NN |
8710 | if test "${ac_cv_func_remove+set}" = set; then |
8711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8712 | else | |
8713 | if test x$gcc_no_link = xyes; then | |
8714 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8715 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8716 | { (exit 1); exit 1; }; } | |
8717 | fi | |
8718 | cat >conftest.$ac_ext <<_ACEOF | |
8719 | /* confdefs.h. */ | |
8720 | _ACEOF | |
8721 | cat confdefs.h >>conftest.$ac_ext | |
8722 | cat >>conftest.$ac_ext <<_ACEOF | |
8723 | /* end confdefs.h. */ | |
8724 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. | |
8725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8726 | #define remove innocuous_remove | |
8727 | ||
ee9dd372 | 8728 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
8729 | which can conflict with char remove (); below. |
8730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8731 | <limits.h> exists even on freestanding compilers. */ | |
8732 | ||
8733 | #ifdef __STDC__ | |
8734 | # include <limits.h> | |
8735 | #else | |
8736 | # include <assert.h> | |
8737 | #endif | |
ee9dd372 | 8738 | |
ed698112 | 8739 | #undef remove |
ee9dd372 | 8740 | |
ade710a5 | 8741 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8742 | #ifdef __cplusplus |
8743 | extern "C" | |
ade710a5 | 8744 | { |
ed698112 | 8745 | #endif |
ade710a5 TF |
8746 | /* We use char because int might match the return type of a gcc2 |
8747 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 8748 | char remove (); |
ee9dd372 TT |
8749 | /* The GNU C library defines this for functions which it implements |
8750 | to always fail with ENOSYS. Some functions are actually named | |
8751 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 8752 | #if defined (__stub_remove) || defined (__stub___remove) |
ee9dd372 | 8753 | choke me |
ade710a5 TF |
8754 | #else |
8755 | char (*f) () = remove; | |
8756 | #endif | |
8757 | #ifdef __cplusplus | |
8758 | } | |
ee9dd372 TT |
8759 | #endif |
8760 | ||
ed698112 NN |
8761 | int |
8762 | main () | |
8763 | { | |
ade710a5 | 8764 | return f != remove; |
ed698112 NN |
8765 | ; |
8766 | return 0; | |
8767 | } | |
8768 | _ACEOF | |
8769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8771 | (eval $ac_link) 2>conftest.er1 | |
8772 | ac_status=$? | |
8773 | grep -v '^ *+' conftest.er1 >conftest.err | |
8774 | rm -f conftest.er1 | |
8775 | cat conftest.err >&5 | |
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8777 | (exit $ac_status); } && | |
ade710a5 TF |
8778 | { ac_try='test -z "$ac_c_werror_flag" |
8779 | || test ! -s conftest.err' | |
ed698112 NN |
8780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8781 | (eval $ac_try) 2>&5 | |
8782 | ac_status=$? | |
8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8784 | (exit $ac_status); }; } && | |
8785 | { ac_try='test -s conftest$ac_exeext' | |
8786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8787 | (eval $ac_try) 2>&5 | |
8788 | ac_status=$? | |
8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8790 | (exit $ac_status); }; }; then | |
8791 | ac_cv_func_remove=yes | |
8792 | else | |
8793 | echo "$as_me: failed program was:" >&5 | |
8794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8795 | ||
ade710a5 | 8796 | ac_cv_func_remove=no |
ed698112 NN |
8797 | fi |
8798 | rm -f conftest.err conftest.$ac_objext \ | |
8799 | conftest$ac_exeext conftest.$ac_ext | |
8800 | fi | |
ade710a5 TF |
8801 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
8802 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
ee9dd372 | 8803 | |
5aac1dac | 8804 | if test $ac_cv_func_remove = no; then |
ade710a5 TF |
8805 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
8806 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
ed698112 NN |
8807 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
8808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 8809 | else |
ed698112 | 8810 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 8811 | LIBS="-lposix $LIBS" |
ed698112 NN |
8812 | if test x$gcc_no_link = xyes; then |
8813 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8814 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8815 | { (exit 1); exit 1; }; } | |
8816 | fi | |
8817 | cat >conftest.$ac_ext <<_ACEOF | |
8818 | /* confdefs.h. */ | |
8819 | _ACEOF | |
8820 | cat confdefs.h >>conftest.$ac_ext | |
8821 | cat >>conftest.$ac_ext <<_ACEOF | |
8822 | /* end confdefs.h. */ | |
8823 | ||
ade710a5 | 8824 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8825 | #ifdef __cplusplus |
8826 | extern "C" | |
8827 | #endif | |
ade710a5 TF |
8828 | /* We use char because int might match the return type of a gcc2 |
8829 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
8830 | char remove (); |
8831 | int | |
8832 | main () | |
8833 | { | |
ade710a5 | 8834 | remove (); |
ed698112 NN |
8835 | ; |
8836 | return 0; | |
8837 | } | |
8838 | _ACEOF | |
8839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8841 | (eval $ac_link) 2>conftest.er1 | |
8842 | ac_status=$? | |
8843 | grep -v '^ *+' conftest.er1 >conftest.err | |
8844 | rm -f conftest.er1 | |
8845 | cat conftest.err >&5 | |
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8847 | (exit $ac_status); } && | |
ade710a5 TF |
8848 | { ac_try='test -z "$ac_c_werror_flag" |
8849 | || test ! -s conftest.err' | |
ed698112 NN |
8850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8851 | (eval $ac_try) 2>&5 | |
8852 | ac_status=$? | |
8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8854 | (exit $ac_status); }; } && | |
8855 | { ac_try='test -s conftest$ac_exeext' | |
8856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8857 | (eval $ac_try) 2>&5 | |
8858 | ac_status=$? | |
8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8860 | (exit $ac_status); }; }; then | |
8861 | ac_cv_lib_posix_remove=yes | |
8862 | else | |
8863 | echo "$as_me: failed program was:" >&5 | |
8864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8865 | ||
ade710a5 | 8866 | ac_cv_lib_posix_remove=no |
ed698112 NN |
8867 | fi |
8868 | rm -f conftest.err conftest.$ac_objext \ | |
8869 | conftest$ac_exeext conftest.$ac_ext | |
8870 | LIBS=$ac_check_lib_save_LIBS | |
8871 | fi | |
ade710a5 TF |
8872 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
8873 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
ed698112 | 8874 | if test $ac_cv_lib_posix_remove = yes; then |
5aac1dac | 8875 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
ee9dd372 | 8876 | fi |
ee9dd372 | 8877 | |
5aac1dac TT |
8878 | fi |
8879 | ||
8880 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
ade710a5 TF |
8881 | echo "$as_me:$LINENO: checking for shmat" >&5 |
8882 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
ed698112 NN |
8883 | if test "${ac_cv_func_shmat+set}" = set; then |
8884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8885 | else | |
8886 | if test x$gcc_no_link = xyes; then | |
8887 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8888 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8889 | { (exit 1); exit 1; }; } | |
8890 | fi | |
8891 | cat >conftest.$ac_ext <<_ACEOF | |
8892 | /* confdefs.h. */ | |
8893 | _ACEOF | |
8894 | cat confdefs.h >>conftest.$ac_ext | |
8895 | cat >>conftest.$ac_ext <<_ACEOF | |
8896 | /* end confdefs.h. */ | |
8897 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | |
8898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8899 | #define shmat innocuous_shmat | |
8900 | ||
283a159f | 8901 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
8902 | which can conflict with char shmat (); below. |
8903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8904 | <limits.h> exists even on freestanding compilers. */ | |
283a159f | 8905 | |
ed698112 NN |
8906 | #ifdef __STDC__ |
8907 | # include <limits.h> | |
8908 | #else | |
8909 | # include <assert.h> | |
8910 | #endif | |
283a159f | 8911 | |
ed698112 NN |
8912 | #undef shmat |
8913 | ||
ade710a5 | 8914 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8915 | #ifdef __cplusplus |
8916 | extern "C" | |
ade710a5 | 8917 | { |
ed698112 | 8918 | #endif |
ade710a5 TF |
8919 | /* We use char because int might match the return type of a gcc2 |
8920 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 8921 | char shmat (); |
283a159f AH |
8922 | /* The GNU C library defines this for functions which it implements |
8923 | to always fail with ENOSYS. Some functions are actually named | |
8924 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 8925 | #if defined (__stub_shmat) || defined (__stub___shmat) |
283a159f | 8926 | choke me |
ade710a5 TF |
8927 | #else |
8928 | char (*f) () = shmat; | |
8929 | #endif | |
8930 | #ifdef __cplusplus | |
8931 | } | |
283a159f AH |
8932 | #endif |
8933 | ||
ed698112 NN |
8934 | int |
8935 | main () | |
8936 | { | |
ade710a5 | 8937 | return f != shmat; |
ed698112 NN |
8938 | ; |
8939 | return 0; | |
8940 | } | |
8941 | _ACEOF | |
8942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8944 | (eval $ac_link) 2>conftest.er1 | |
8945 | ac_status=$? | |
8946 | grep -v '^ *+' conftest.er1 >conftest.err | |
8947 | rm -f conftest.er1 | |
8948 | cat conftest.err >&5 | |
8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8950 | (exit $ac_status); } && | |
ade710a5 TF |
8951 | { ac_try='test -z "$ac_c_werror_flag" |
8952 | || test ! -s conftest.err' | |
ed698112 NN |
8953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8954 | (eval $ac_try) 2>&5 | |
8955 | ac_status=$? | |
8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8957 | (exit $ac_status); }; } && | |
8958 | { ac_try='test -s conftest$ac_exeext' | |
8959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8960 | (eval $ac_try) 2>&5 | |
8961 | ac_status=$? | |
8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8963 | (exit $ac_status); }; }; then | |
8964 | ac_cv_func_shmat=yes | |
8965 | else | |
8966 | echo "$as_me: failed program was:" >&5 | |
8967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8968 | ||
ade710a5 | 8969 | ac_cv_func_shmat=no |
ed698112 NN |
8970 | fi |
8971 | rm -f conftest.err conftest.$ac_objext \ | |
8972 | conftest$ac_exeext conftest.$ac_ext | |
8973 | fi | |
ade710a5 TF |
8974 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
8975 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
283a159f | 8976 | |
5aac1dac | 8977 | if test $ac_cv_func_shmat = no; then |
ade710a5 TF |
8978 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
8979 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
ed698112 NN |
8980 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
8981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
283a159f | 8982 | else |
ed698112 | 8983 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 8984 | LIBS="-lipc $LIBS" |
ed698112 NN |
8985 | if test x$gcc_no_link = xyes; then |
8986 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8987 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8988 | { (exit 1); exit 1; }; } | |
8989 | fi | |
8990 | cat >conftest.$ac_ext <<_ACEOF | |
8991 | /* confdefs.h. */ | |
8992 | _ACEOF | |
8993 | cat confdefs.h >>conftest.$ac_ext | |
8994 | cat >>conftest.$ac_ext <<_ACEOF | |
8995 | /* end confdefs.h. */ | |
8996 | ||
ade710a5 | 8997 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
8998 | #ifdef __cplusplus |
8999 | extern "C" | |
9000 | #endif | |
ade710a5 TF |
9001 | /* We use char because int might match the return type of a gcc2 |
9002 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
9003 | char shmat (); |
9004 | int | |
9005 | main () | |
9006 | { | |
ade710a5 | 9007 | shmat (); |
ed698112 NN |
9008 | ; |
9009 | return 0; | |
9010 | } | |
9011 | _ACEOF | |
9012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9014 | (eval $ac_link) 2>conftest.er1 | |
9015 | ac_status=$? | |
9016 | grep -v '^ *+' conftest.er1 >conftest.err | |
9017 | rm -f conftest.er1 | |
9018 | cat conftest.err >&5 | |
9019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9020 | (exit $ac_status); } && | |
ade710a5 TF |
9021 | { ac_try='test -z "$ac_c_werror_flag" |
9022 | || test ! -s conftest.err' | |
ed698112 NN |
9023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9024 | (eval $ac_try) 2>&5 | |
9025 | ac_status=$? | |
9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9027 | (exit $ac_status); }; } && | |
9028 | { ac_try='test -s conftest$ac_exeext' | |
9029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9030 | (eval $ac_try) 2>&5 | |
9031 | ac_status=$? | |
9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9033 | (exit $ac_status); }; }; then | |
9034 | ac_cv_lib_ipc_shmat=yes | |
9035 | else | |
9036 | echo "$as_me: failed program was:" >&5 | |
9037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9038 | ||
ade710a5 | 9039 | ac_cv_lib_ipc_shmat=no |
ed698112 NN |
9040 | fi |
9041 | rm -f conftest.err conftest.$ac_objext \ | |
9042 | conftest$ac_exeext conftest.$ac_ext | |
9043 | LIBS=$ac_check_lib_save_LIBS | |
9044 | fi | |
ade710a5 TF |
9045 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
9046 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
ed698112 | 9047 | if test $ac_cv_lib_ipc_shmat = yes; then |
5aac1dac | 9048 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
283a159f | 9049 | fi |
5aac1dac TT |
9050 | |
9051 | fi | |
9052 | fi | |
9053 | ||
9054 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
ed698112 | 9055 | ac_save_LDFLAGS=$LDFLAGS |
5aac1dac TT |
9056 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
9057 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
9058 | # check for ICE first), but we must link in the order -lSM -lICE or | |
9059 | # we get undefined symbols. So assume we have SM if we have ICE. | |
9060 | # These have to be linked with before -lX11, unlike the other | |
9061 | # libraries we check for below, so use a different variable. | |
ed698112 | 9062 | # John Interrante, Karl Berry |
ade710a5 TF |
9063 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
9064 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
ed698112 NN |
9065 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9067 | else | |
9068 | ac_check_lib_save_LIBS=$LIBS | |
5aac1dac | 9069 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
ed698112 NN |
9070 | if test x$gcc_no_link = xyes; then |
9071 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9072 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9073 | { (exit 1); exit 1; }; } | |
9074 | fi | |
9075 | cat >conftest.$ac_ext <<_ACEOF | |
9076 | /* confdefs.h. */ | |
9077 | _ACEOF | |
9078 | cat confdefs.h >>conftest.$ac_ext | |
9079 | cat >>conftest.$ac_ext <<_ACEOF | |
9080 | /* end confdefs.h. */ | |
9081 | ||
ade710a5 | 9082 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
9083 | #ifdef __cplusplus |
9084 | extern "C" | |
9085 | #endif | |
ade710a5 TF |
9086 | /* We use char because int might match the return type of a gcc2 |
9087 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
9088 | char IceConnectionNumber (); |
9089 | int | |
9090 | main () | |
9091 | { | |
ade710a5 | 9092 | IceConnectionNumber (); |
ed698112 NN |
9093 | ; |
9094 | return 0; | |
9095 | } | |
9096 | _ACEOF | |
9097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9099 | (eval $ac_link) 2>conftest.er1 | |
9100 | ac_status=$? | |
9101 | grep -v '^ *+' conftest.er1 >conftest.err | |
9102 | rm -f conftest.er1 | |
9103 | cat conftest.err >&5 | |
9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9105 | (exit $ac_status); } && | |
ade710a5 TF |
9106 | { ac_try='test -z "$ac_c_werror_flag" |
9107 | || test ! -s conftest.err' | |
ed698112 NN |
9108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9109 | (eval $ac_try) 2>&5 | |
9110 | ac_status=$? | |
9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9112 | (exit $ac_status); }; } && | |
9113 | { ac_try='test -s conftest$ac_exeext' | |
9114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9115 | (eval $ac_try) 2>&5 | |
9116 | ac_status=$? | |
9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9118 | (exit $ac_status); }; }; then | |
9119 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
9120 | else | |
9121 | echo "$as_me: failed program was:" >&5 | |
9122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9123 | ||
ade710a5 | 9124 | ac_cv_lib_ICE_IceConnectionNumber=no |
ed698112 NN |
9125 | fi |
9126 | rm -f conftest.err conftest.$ac_objext \ | |
9127 | conftest$ac_exeext conftest.$ac_ext | |
9128 | LIBS=$ac_check_lib_save_LIBS | |
9129 | fi | |
ade710a5 TF |
9130 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
9131 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
ed698112 | 9132 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
5aac1dac | 9133 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
5aac1dac TT |
9134 | fi |
9135 | ||
ed698112 | 9136 | LDFLAGS=$ac_save_LDFLAGS |
5aac1dac TT |
9137 | |
9138 | fi | |
9139 | ||
9140 | ||
aed6152d | 9141 | # FIXME: this should be _libs on some hosts. |
5aac1dac TT |
9142 | libsubdir=.libs |
9143 | ||
c0975bc7 AP |
9144 | # extra LD Flags which are required for targets |
9145 | case "${host}" in | |
f97e8c0f | 9146 | *-*-darwin[0-7].*) |
73079360 AT |
9147 | # For now we have to disable it on darwin[8-9] because it slows down |
9148 | # the linking phase. A possible bug in ld? | |
c0975bc7 AP |
9149 | # on Darwin -single_module speeds up loading of the dynamic libraries. |
9150 | extra_ldflags_libjava=-Wl,-single_module | |
9151 | ;; | |
9152 | esac | |
9153 | ||
9154 | ||
aed6152d | 9155 | # Allow the GC to be disabled. Can be useful when debugging. |
ade710a5 TF |
9156 | echo "$as_me:$LINENO: checking for garbage collector to use" >&5 |
9157 | echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6 | |
9158 | # Check whether --enable-java-gc or --disable-java-gc was given. | |
5aac1dac | 9159 | if test "${enable_java_gc+set}" = set; then |
ade710a5 TF |
9160 | enableval="$enable_java_gc" |
9161 | GC=$enableval | |
5aac1dac TT |
9162 | else |
9163 | GC=boehm | |
ade710a5 | 9164 | fi; |
5aac1dac TT |
9165 | GCLIBS= |
9166 | GCINCS= | |
9167 | GCDEPS= | |
5aac1dac TT |
9168 | GCSPEC= |
9169 | JC1GCSPEC= | |
9170 | GCTESTSPEC= | |
9171 | case "$GC" in | |
9172 | boehm) | |
ade710a5 TF |
9173 | echo "$as_me:$LINENO: result: boehm" >&5 |
9174 | echo "${ECHO_T}boehm" >&6 | |
5aac1dac | 9175 | GCLIBS=../boehm-gc/libgcjgc_convenience.la |
5aac1dac TT |
9176 | JC1GCSPEC='-fuse-boehm-gc' |
9177 | GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs" | |
4109fe85 | 9178 | GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include' |
5aac1dac TT |
9179 | GCOBJS=boehm.lo |
9180 | GCHDR=boehm-gc.h | |
aed6152d | 9181 | # The POSIX thread support needs to know this. |
ed698112 NN |
9182 | |
9183 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9184 | #define HAVE_BOEHM_GC 1 |
ed698112 | 9185 | _ACEOF |
5aac1dac TT |
9186 | |
9187 | ;; | |
9188 | no) | |
ade710a5 TF |
9189 | echo "$as_me:$LINENO: result: none" >&5 |
9190 | echo "${ECHO_T}none" >&6 | |
5aac1dac TT |
9191 | GCHDR=no-gc.h |
9192 | ;; | |
9193 | *) | |
ed698112 NN |
9194 | { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5 |
9195 | echo "$as_me: error: unrecognized collector \"$GC\"" >&2;} | |
9196 | { (exit 1); exit 1; }; } | |
5aac1dac TT |
9197 | ;; |
9198 | esac | |
9199 | ||
9200 | ||
9201 | ||
9202 | ||
9203 | ||
9204 | ||
ade710a5 | 9205 | ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR" |
5aac1dac TT |
9206 | |
9207 | ||
9208 | ||
e3f92d3b MK |
9209 | if test "$GC" = boehm; then |
9210 | USING_BOEHMGC_TRUE= | |
9211 | USING_BOEHMGC_FALSE='#' | |
9212 | else | |
9213 | USING_BOEHMGC_TRUE='#' | |
9214 | USING_BOEHMGC_FALSE= | |
9215 | fi | |
9216 | ||
9217 | ||
9218 | ||
9219 | if test "$GC" = no; then | |
9220 | USING_NOGC_TRUE= | |
9221 | USING_NOGC_FALSE='#' | |
9222 | else | |
9223 | USING_NOGC_TRUE='#' | |
9224 | USING_NOGC_FALSE= | |
9225 | fi | |
9226 | ||
9227 | ||
9228 | ||
ade710a5 TF |
9229 | echo "$as_me:$LINENO: checking for thread model used by GCC" >&5 |
9230 | echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6 | |
5aac1dac | 9231 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
ade710a5 TF |
9232 | echo "$as_me:$LINENO: result: $THREADS" >&5 |
9233 | echo "${ECHO_T}$THREADS" >&6 | |
5aac1dac TT |
9234 | |
9235 | case "$THREADS" in | |
9236 | no | none | single) | |
9237 | THREADS=none | |
9238 | ;; | |
f3968b05 | 9239 | posix | posix95 | pthreads) |
5aac1dac TT |
9240 | THREADS=posix |
9241 | case "$host" in | |
9242 | *-*-linux*) | |
ed698112 NN |
9243 | |
9244 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9245 | #define LINUX_THREADS 1 |
ed698112 | 9246 | _ACEOF |
5aac1dac TT |
9247 | |
9248 | ;; | |
9249 | esac | |
9250 | ;; | |
9251 | win32) | |
9252 | ;; | |
9253 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
ed698112 NN |
9254 | { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5 |
9255 | echo "$as_me: error: thread package $THREADS not yet supported" >&2;} | |
9256 | { (exit 1); exit 1; }; } | |
5aac1dac TT |
9257 | ;; |
9258 | *) | |
ed698112 NN |
9259 | { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5 |
9260 | echo "$as_me: error: $THREADS is an unknown thread package" >&2;} | |
9261 | { (exit 1); exit 1; }; } | |
5aac1dac TT |
9262 | ;; |
9263 | esac | |
9264 | ||
620a329b | 9265 | THREADCXXFLAGS= |
5aac1dac TT |
9266 | THREADLDFLAGS= |
9267 | THREADLIBS= | |
9268 | THREADINCS= | |
9269 | THREADDEPS= | |
5aac1dac TT |
9270 | THREADH= |
9271 | THREADSPEC= | |
5a121897 | 9272 | THREADSTARTFILESPEC= |
5aac1dac TT |
9273 | case "$THREADS" in |
9274 | posix) | |
9275 | case "$host" in | |
9276 | *-*-cygwin*) | |
9277 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread. | |
9278 | ;; | |
5aac1dac | 9279 | *-*-freebsd[1234]*) |
5aac1dac TT |
9280 | # Before FreeBSD 5, it didn't have -lpthread (or any library which |
9281 | # merely adds pthread_* functions) but it does have a -pthread switch | |
9282 | # which is required at link-time to select -lc_r *instead* of -lc. | |
9283 | THREADLDFLAGS=-pthread | |
9284 | # Don't set THREADSPEC here as might be expected since -pthread is | |
9285 | # not processed when found within a spec file, it must come from | |
9286 | # the command line. For now, the user must provide the -pthread | |
9287 | # switch to link code compiled with gcj. In future, consider adding | |
9288 | # support for weak references to pthread_* functions ala gthr.h API. | |
56d6e6b1 | 9289 | THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}' |
5aac1dac TT |
9290 | ;; |
9291 | *-*-freebsd*) | |
04522557 NM |
9292 | # FreeBSD >=5.3 implements a model much closer to other modern UNIX |
9293 | # systems which support threads and -lpthread. | |
5aac1dac | 9294 | THREADLDFLAGS=-pthread |
04522557 | 9295 | THREADSPEC=-lpthread |
5aac1dac | 9296 | ;; |
68bfb94e | 9297 | alpha*-dec-osf* | hppa*-hp-hpux*) |
620a329b RS |
9298 | THREADCXXFLAGS=-pthread |
9299 | # boehm-gc needs some functions from librt, so link that too. | |
9300 | THREADLIBS='-lpthread -lrt' | |
9301 | THREADSPEC='-lpthread -lrt' | |
9302 | ;; | |
5aac1dac TT |
9303 | *) |
9304 | THREADLIBS=-lpthread | |
9305 | THREADSPEC=-lpthread | |
9306 | ;; | |
9307 | esac | |
5aac1dac TT |
9308 | THREADH=posix-threads.h |
9309 | # MIT pthreads doesn't seem to have the mutexattr functions. | |
9310 | # But for now we don't check for it. We just assume you aren't | |
9311 | # using MIT pthreads. | |
ed698112 NN |
9312 | |
9313 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9314 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1 |
ed698112 | 9315 | _ACEOF |
5aac1dac TT |
9316 | |
9317 | ||
9318 | # If we're using the Boehm GC, then we happen to know that it | |
9319 | # defines _REENTRANT, so we don't bother. Eww. | |
9320 | if test "$GC" != boehm; then | |
ed698112 NN |
9321 | |
9322 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9323 | #define _REENTRANT 1 |
ed698112 | 9324 | _ACEOF |
5aac1dac TT |
9325 | |
9326 | fi | |
ed698112 NN |
9327 | |
9328 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9329 | #define _POSIX_PTHREAD_SEMANTICS 1 |
ed698112 | 9330 | _ACEOF |
5aac1dac TT |
9331 | |
9332 | ;; | |
9333 | ||
9334 | win32) | |
5aac1dac | 9335 | THREADH=win32-threads.h |
5a121897 RM |
9336 | THREADCXXFLAGS=-mthreads |
9337 | # We need thread-safe exception handling so _CRT_MT should be set to 1. | |
9338 | # But we do not want the executables created to be dependent on | |
9339 | # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up | |
9340 | # exception handling contexts. The following kludge achieves this effect | |
9341 | # and causes a dummy __mingwthr_key_dtor() to be linked in from | |
9342 | # libmingw32.a. This causes a memory leak of about 24 bytes per thread. | |
9343 | # A workaround is to explicitly use -mthreads while linking Java programs. | |
9344 | # See PR libgcj/28263. | |
9345 | # | |
9346 | # FIXME: In Java we are able to detect thread death at the end of | |
9347 | # Thread.run() so we should be able to clean up the exception handling | |
9348 | # contexts ourselves. | |
9349 | THREADSTARTFILESPEC='crtmt%O%s' | |
5aac1dac | 9350 | ;; |
19367215 | 9351 | |
5aac1dac | 9352 | none) |
5aac1dac TT |
9353 | THREADH=no-threads.h |
9354 | ;; | |
9355 | esac | |
ade710a5 | 9356 | ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH" |
19367215 | 9357 | |
19367215 | 9358 | |
19367215 | 9359 | |
19367215 | 9360 | |
e4261ef7 | 9361 | |
e4261ef7 | 9362 | |
19367215 HB |
9363 | |
9364 | ||
620a329b | 9365 | |
5a121897 | 9366 | |
e3f92d3b MK |
9367 | if test "$THREADS" = posix; then |
9368 | USING_POSIX_THREADS_TRUE= | |
9369 | USING_POSIX_THREADS_FALSE='#' | |
9370 | else | |
9371 | USING_POSIX_THREADS_TRUE='#' | |
9372 | USING_POSIX_THREADS_FALSE= | |
9373 | fi | |
9374 | ||
9375 | ||
9376 | ||
9377 | if test "$THREADS" = win32; then | |
9378 | USING_WIN32_THREADS_TRUE= | |
9379 | USING_WIN32_THREADS_FALSE='#' | |
9380 | else | |
9381 | USING_WIN32_THREADS_TRUE='#' | |
9382 | USING_WIN32_THREADS_FALSE= | |
9383 | fi | |
9384 | ||
9385 | ||
9386 | ||
9387 | if test "$THREADS" = none; then | |
9388 | USING_NO_THREADS_TRUE= | |
9389 | USING_NO_THREADS_FALSE='#' | |
9390 | else | |
9391 | USING_NO_THREADS_TRUE='#' | |
9392 | USING_NO_THREADS_FALSE= | |
9393 | fi | |
9394 | ||
9395 | ||
97c074fd JJ |
9396 | |
9397 | if test "$use_libgcj_bc" = yes; then | |
9398 | USE_LIBGCJ_BC_TRUE= | |
9399 | USE_LIBGCJ_BC_FALSE='#' | |
9400 | else | |
9401 | USE_LIBGCJ_BC_TRUE='#' | |
9402 | USE_LIBGCJ_BC_FALSE= | |
9403 | fi | |
9404 | ||
9405 | ||
5aac1dac | 9406 | if test -d sysdep; then true; else mkdir sysdep; fi |
ade710a5 | 9407 | ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" |
b9f243c2 | 9408 | |
ade710a5 | 9409 | ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h" |
18744d9b | 9410 | |
ade710a5 | 9411 | ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h" |
eb2925b6 | 9412 | |
b9f243c2 | 9413 | |
97c074fd JJ |
9414 | LIBGCJ_SPEC="%{s-bc-abi:} -lgcj" |
9415 | if test "$use_libgcj_bc" = yes; then | |
9416 | LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}" | |
9417 | fi | |
9418 | ||
9419 | ||
5aac1dac TT |
9420 | HASH_SYNC_SPEC= |
9421 | # Hash synchronization is only useful with posix threads right now. | |
9422 | if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then | |
9423 | HASH_SYNC_SPEC=-fhash-synchronization | |
ed698112 NN |
9424 | |
9425 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9426 | #define JV_HASH_SYNCHRONIZATION 1 |
ed698112 | 9427 | _ACEOF |
b9f243c2 | 9428 | |
b9f243c2 AH |
9429 | fi |
9430 | ||
283a159f | 9431 | |
5aac1dac TT |
9432 | |
9433 | ||
5aac1dac TT |
9434 | if test "$GCC" = yes; then |
9435 | USING_GCC_TRUE= | |
9436 | USING_GCC_FALSE='#' | |
283a159f | 9437 | else |
5aac1dac TT |
9438 | USING_GCC_TRUE='#' |
9439 | USING_GCC_FALSE= | |
283a159f | 9440 | fi |
283a159f | 9441 | |
e3f92d3b | 9442 | |
5aac1dac TT |
9443 | # We're in the tree with gcc, and need to include some of its headers. |
9444 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc' | |
283a159f | 9445 | |
5aac1dac TT |
9446 | if test "x${with_newlib}" = "xyes"; then |
9447 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
9448 | # may not work correctly, because the compiler may not be able to | |
9449 | # link executables. | |
9450 | ||
9451 | # We assume newlib. This lets us hard-code the functions we know | |
9452 | # we'll have. | |
ed698112 NN |
9453 | |
9454 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9455 | #define HAVE_MEMMOVE 1 |
ed698112 | 9456 | _ACEOF |
9e7823cc | 9457 | |
ed698112 NN |
9458 | |
9459 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9460 | #define HAVE_MEMCPY 1 |
ed698112 | 9461 | _ACEOF |
ee9dd372 | 9462 | |
ed698112 NN |
9463 | |
9464 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9465 | #define HAVE_STRERROR 1 |
ed698112 | 9466 | _ACEOF |
860a1536 | 9467 | |
ed698112 NN |
9468 | |
9469 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9470 | #define HAVE_TIME 1 |
ed698112 | 9471 | _ACEOF |
860a1536 | 9472 | |
ed698112 NN |
9473 | |
9474 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9475 | #define HAVE_GMTIME_R 1 |
ed698112 | 9476 | _ACEOF |
5aac1dac | 9477 | |
ed698112 NN |
9478 | |
9479 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9480 | #define HAVE_LOCALTIME_R 1 |
ed698112 | 9481 | _ACEOF |
5463a4f3 | 9482 | |
ed698112 NN |
9483 | |
9484 | cat >>confdefs.h <<\_ACEOF | |
5463a4f3 | 9485 | #define HAVE_USLEEP_DECL 1 |
ed698112 | 9486 | _ACEOF |
860a1536 | 9487 | |
aed6152d | 9488 | # This is only for POSIX threads. |
ed698112 NN |
9489 | |
9490 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9491 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1 |
ed698112 | 9492 | _ACEOF |
860a1536 | 9493 | |
aed6152d NN |
9494 | # We also assume we are using gcc, which provides alloca. |
9495 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 9496 | #define HAVE_ALLOCA 1 |
ed698112 NN |
9497 | _ACEOF |
9498 | ||
5aac1dac | 9499 | |
aed6152d | 9500 | # Assume we do not have getuid and friends. |
5aac1dac | 9501 | |
ed698112 | 9502 | cat >>confdefs.h <<\_ACEOF |
5aac1dac | 9503 | #define NO_GETUID 1 |
ed698112 | 9504 | _ACEOF |
5aac1dac | 9505 | |
9b5f18b1 | 9506 | PLATFORMNET=NoNet |
5aac1dac | 9507 | else |
ed698112 NN |
9508 | |
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | ||
ed698112 | 9516 | |
ed698112 | 9517 | |
5aac1dac | 9518 | |
5aac1dac | 9519 | |
5aac1dac | 9520 | |
ed698112 | 9521 | |
ebecd56d | 9522 | |
ed698112 NN |
9523 | |
9524 | ||
9525 | ||
17c2e2c0 TT |
9526 | |
9527 | ||
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | ||
9537 | ||
a5dfac10 | 9538 | |
ade710a5 | 9539 | |
9327c475 | 9540 | |
17c2e2c0 TT |
9541 | |
9542 | ||
9543 | for ac_func in strerror ioctl select fstat open fsync sleep opendir \ | |
9544 | gmtime_r localtime_r readdir_r getpwuid_r getcwd \ | |
1e19cfd2 | 9545 | access stat lstat mkdir rename rmdir unlink utime chmod readlink \ |
17c2e2c0 TT |
9546 | nl_langinfo setlocale \ |
9547 | inet_pton uname inet_ntoa \ | |
9327c475 TT |
9548 | fork execvp pipe sigaction ftruncate mmap \ |
9549 | getifaddrs | |
ee9dd372 | 9550 | do |
ed698112 | 9551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
9552 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9554 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9556 | else | |
9557 | if test x$gcc_no_link = xyes; then | |
9558 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9559 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9560 | { (exit 1); exit 1; }; } | |
9561 | fi | |
9562 | cat >conftest.$ac_ext <<_ACEOF | |
9563 | /* confdefs.h. */ | |
9564 | _ACEOF | |
9565 | cat confdefs.h >>conftest.$ac_ext | |
9566 | cat >>conftest.$ac_ext <<_ACEOF | |
9567 | /* end confdefs.h. */ | |
9568 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9569 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9570 | #define $ac_func innocuous_$ac_func | |
9571 | ||
ee9dd372 | 9572 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
9573 | which can conflict with char $ac_func (); below. |
9574 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9575 | <limits.h> exists even on freestanding compilers. */ | |
9576 | ||
9577 | #ifdef __STDC__ | |
9578 | # include <limits.h> | |
9579 | #else | |
9580 | # include <assert.h> | |
9581 | #endif | |
ee9dd372 | 9582 | |
ed698112 | 9583 | #undef $ac_func |
ee9dd372 | 9584 | |
ade710a5 | 9585 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
9586 | #ifdef __cplusplus |
9587 | extern "C" | |
ade710a5 | 9588 | { |
ed698112 | 9589 | #endif |
ade710a5 TF |
9590 | /* We use char because int might match the return type of a gcc2 |
9591 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 9592 | char $ac_func (); |
ee9dd372 TT |
9593 | /* The GNU C library defines this for functions which it implements |
9594 | to always fail with ENOSYS. Some functions are actually named | |
9595 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 9596 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
ee9dd372 | 9597 | choke me |
ade710a5 TF |
9598 | #else |
9599 | char (*f) () = $ac_func; | |
9600 | #endif | |
9601 | #ifdef __cplusplus | |
9602 | } | |
ee9dd372 TT |
9603 | #endif |
9604 | ||
ed698112 NN |
9605 | int |
9606 | main () | |
9607 | { | |
ade710a5 | 9608 | return f != $ac_func; |
ed698112 NN |
9609 | ; |
9610 | return 0; | |
9611 | } | |
9612 | _ACEOF | |
9613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9615 | (eval $ac_link) 2>conftest.er1 | |
9616 | ac_status=$? | |
9617 | grep -v '^ *+' conftest.er1 >conftest.err | |
9618 | rm -f conftest.er1 | |
9619 | cat conftest.err >&5 | |
9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9621 | (exit $ac_status); } && | |
ade710a5 TF |
9622 | { ac_try='test -z "$ac_c_werror_flag" |
9623 | || test ! -s conftest.err' | |
ed698112 NN |
9624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9625 | (eval $ac_try) 2>&5 | |
9626 | ac_status=$? | |
9627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9628 | (exit $ac_status); }; } && | |
9629 | { ac_try='test -s conftest$ac_exeext' | |
9630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9631 | (eval $ac_try) 2>&5 | |
9632 | ac_status=$? | |
9633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9634 | (exit $ac_status); }; }; then | |
9635 | eval "$as_ac_var=yes" | |
9636 | else | |
9637 | echo "$as_me: failed program was:" >&5 | |
9638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9639 | ||
ade710a5 | 9640 | eval "$as_ac_var=no" |
ed698112 NN |
9641 | fi |
9642 | rm -f conftest.err conftest.$ac_objext \ | |
9643 | conftest$ac_exeext conftest.$ac_ext | |
9644 | fi | |
ade710a5 TF |
9645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9646 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
9647 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9648 | cat >>confdefs.h <<_ACEOF | |
9649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9650 | _ACEOF | |
ee9dd372 | 9651 | |
ee9dd372 | 9652 | fi |
5aac1dac | 9653 | done |
34c5c0e1 | 9654 | |
ed698112 NN |
9655 | |
9656 | ||
17c2e2c0 | 9657 | for ac_func in inet_aton inet_addr |
5aac1dac | 9658 | do |
ed698112 | 9659 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
9660 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9661 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9662 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9664 | else | |
9665 | if test x$gcc_no_link = xyes; then | |
9666 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9667 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9668 | { (exit 1); exit 1; }; } | |
9669 | fi | |
9670 | cat >conftest.$ac_ext <<_ACEOF | |
9671 | /* confdefs.h. */ | |
9672 | _ACEOF | |
9673 | cat confdefs.h >>conftest.$ac_ext | |
9674 | cat >>conftest.$ac_ext <<_ACEOF | |
9675 | /* end confdefs.h. */ | |
9676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9678 | #define $ac_func innocuous_$ac_func | |
5aac1dac | 9679 | |
ed698112 NN |
9680 | /* System header to define __stub macros and hopefully few prototypes, |
9681 | which can conflict with char $ac_func (); below. | |
9682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9683 | <limits.h> exists even on freestanding compilers. */ | |
5aac1dac | 9684 | |
ed698112 NN |
9685 | #ifdef __STDC__ |
9686 | # include <limits.h> | |
5aac1dac | 9687 | #else |
ed698112 | 9688 | # include <assert.h> |
5aac1dac TT |
9689 | #endif |
9690 | ||
ed698112 NN |
9691 | #undef $ac_func |
9692 | ||
ade710a5 | 9693 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
9694 | #ifdef __cplusplus |
9695 | extern "C" | |
ade710a5 | 9696 | { |
ed698112 | 9697 | #endif |
ade710a5 TF |
9698 | /* We use char because int might match the return type of a gcc2 |
9699 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
9700 | char $ac_func (); |
9701 | /* The GNU C library defines this for functions which it implements | |
9702 | to always fail with ENOSYS. Some functions are actually named | |
9703 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 9704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
ed698112 | 9705 | choke me |
ade710a5 TF |
9706 | #else |
9707 | char (*f) () = $ac_func; | |
9708 | #endif | |
9709 | #ifdef __cplusplus | |
9710 | } | |
ed698112 NN |
9711 | #endif |
9712 | ||
9713 | int | |
9714 | main () | |
9715 | { | |
ade710a5 | 9716 | return f != $ac_func; |
ed698112 NN |
9717 | ; |
9718 | return 0; | |
9719 | } | |
9720 | _ACEOF | |
9721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9723 | (eval $ac_link) 2>conftest.er1 | |
9724 | ac_status=$? | |
9725 | grep -v '^ *+' conftest.er1 >conftest.err | |
9726 | rm -f conftest.er1 | |
9727 | cat conftest.err >&5 | |
9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9729 | (exit $ac_status); } && | |
ade710a5 TF |
9730 | { ac_try='test -z "$ac_c_werror_flag" |
9731 | || test ! -s conftest.err' | |
ed698112 NN |
9732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9733 | (eval $ac_try) 2>&5 | |
9734 | ac_status=$? | |
9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9736 | (exit $ac_status); }; } && | |
9737 | { ac_try='test -s conftest$ac_exeext' | |
9738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9739 | (eval $ac_try) 2>&5 | |
9740 | ac_status=$? | |
9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9742 | (exit $ac_status); }; }; then | |
9743 | eval "$as_ac_var=yes" | |
9744 | else | |
9745 | echo "$as_me: failed program was:" >&5 | |
9746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9747 | ||
ade710a5 | 9748 | eval "$as_ac_var=no" |
ed698112 NN |
9749 | fi |
9750 | rm -f conftest.err conftest.$ac_objext \ | |
9751 | conftest$ac_exeext conftest.$ac_ext | |
9752 | fi | |
ade710a5 TF |
9753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
9755 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9756 | cat >>confdefs.h <<_ACEOF | |
9757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9758 | _ACEOF | |
17c2e2c0 | 9759 | break |
ed698112 NN |
9760 | fi |
9761 | done | |
9762 | ||
ade710a5 TF |
9763 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
9764 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
ed698112 NN |
9765 | if test "${ac_cv_header_stdc+set}" = set; then |
9766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9767 | else | |
9768 | cat >conftest.$ac_ext <<_ACEOF | |
9769 | /* confdefs.h. */ | |
9770 | _ACEOF | |
9771 | cat confdefs.h >>conftest.$ac_ext | |
9772 | cat >>conftest.$ac_ext <<_ACEOF | |
9773 | /* end confdefs.h. */ | |
9774 | #include <stdlib.h> | |
9775 | #include <stdarg.h> | |
9776 | #include <string.h> | |
9777 | #include <float.h> | |
9778 | ||
9779 | int | |
9780 | main () | |
9781 | { | |
9782 | ||
9783 | ; | |
9784 | return 0; | |
9785 | } | |
9786 | _ACEOF | |
9787 | rm -f conftest.$ac_objext | |
9788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9789 | (eval $ac_compile) 2>conftest.er1 | |
9790 | ac_status=$? | |
9791 | grep -v '^ *+' conftest.er1 >conftest.err | |
9792 | rm -f conftest.er1 | |
9793 | cat conftest.err >&5 | |
9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9795 | (exit $ac_status); } && | |
ade710a5 TF |
9796 | { ac_try='test -z "$ac_c_werror_flag" |
9797 | || test ! -s conftest.err' | |
ed698112 NN |
9798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9799 | (eval $ac_try) 2>&5 | |
9800 | ac_status=$? | |
9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9802 | (exit $ac_status); }; } && | |
9803 | { ac_try='test -s conftest.$ac_objext' | |
9804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9805 | (eval $ac_try) 2>&5 | |
9806 | ac_status=$? | |
9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9808 | (exit $ac_status); }; }; then | |
9809 | ac_cv_header_stdc=yes | |
34c5c0e1 | 9810 | else |
ed698112 NN |
9811 | echo "$as_me: failed program was:" >&5 |
9812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9813 | ||
ade710a5 | 9814 | ac_cv_header_stdc=no |
ed698112 NN |
9815 | fi |
9816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9817 | ||
9818 | if test $ac_cv_header_stdc = yes; then | |
9819 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9820 | cat >conftest.$ac_ext <<_ACEOF | |
9821 | /* confdefs.h. */ | |
9822 | _ACEOF | |
9823 | cat confdefs.h >>conftest.$ac_ext | |
9824 | cat >>conftest.$ac_ext <<_ACEOF | |
9825 | /* end confdefs.h. */ | |
9826 | #include <string.h> | |
9827 | ||
9828 | _ACEOF | |
9829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9830 | $EGREP "memchr" >/dev/null 2>&1; then | |
9831 | : | |
9832 | else | |
9833 | ac_cv_header_stdc=no | |
34c5c0e1 AO |
9834 | fi |
9835 | rm -f conftest* | |
ed698112 | 9836 | |
34c5c0e1 AO |
9837 | fi |
9838 | ||
ed698112 NN |
9839 | if test $ac_cv_header_stdc = yes; then |
9840 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9841 | cat >conftest.$ac_ext <<_ACEOF | |
9842 | /* confdefs.h. */ | |
9843 | _ACEOF | |
9844 | cat confdefs.h >>conftest.$ac_ext | |
9845 | cat >>conftest.$ac_ext <<_ACEOF | |
9846 | /* end confdefs.h. */ | |
9847 | #include <stdlib.h> | |
9848 | ||
9849 | _ACEOF | |
9850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9851 | $EGREP "free" >/dev/null 2>&1; then | |
9852 | : | |
9853 | else | |
9854 | ac_cv_header_stdc=no | |
9855 | fi | |
9856 | rm -f conftest* | |
9857 | ||
9858 | fi | |
9859 | ||
9860 | if test $ac_cv_header_stdc = yes; then | |
9861 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9862 | if test "$cross_compiling" = yes; then | |
9863 | : | |
9864 | else | |
9865 | cat >conftest.$ac_ext <<_ACEOF | |
9866 | /* confdefs.h. */ | |
9867 | _ACEOF | |
9868 | cat confdefs.h >>conftest.$ac_ext | |
9869 | cat >>conftest.$ac_ext <<_ACEOF | |
9870 | /* end confdefs.h. */ | |
9871 | #include <ctype.h> | |
9872 | #if ((' ' & 0x0FF) == 0x020) | |
9873 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9874 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9875 | #else | |
9876 | # define ISLOWER(c) \ | |
9877 | (('a' <= (c) && (c) <= 'i') \ | |
9878 | || ('j' <= (c) && (c) <= 'r') \ | |
9879 | || ('s' <= (c) && (c) <= 'z')) | |
9880 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
9881 | #endif | |
9882 | ||
9883 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9884 | int | |
9885 | main () | |
9886 | { | |
9887 | int i; | |
9888 | for (i = 0; i < 256; i++) | |
9889 | if (XOR (islower (i), ISLOWER (i)) | |
9890 | || toupper (i) != TOUPPER (i)) | |
ade710a5 TF |
9891 | exit(2); |
9892 | exit (0); | |
ed698112 NN |
9893 | } |
9894 | _ACEOF | |
9895 | rm -f conftest$ac_exeext | |
9896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9897 | (eval $ac_link) 2>&5 | |
9898 | ac_status=$? | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9902 | (eval $ac_try) 2>&5 | |
9903 | ac_status=$? | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); }; }; then | |
9906 | : | |
5aac1dac | 9907 | else |
ed698112 NN |
9908 | echo "$as_me: program exited with status $ac_status" >&5 |
9909 | echo "$as_me: failed program was:" >&5 | |
9910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9911 | ||
9912 | ( exit $ac_status ) | |
9913 | ac_cv_header_stdc=no | |
9914 | fi | |
ade710a5 | 9915 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed698112 NN |
9916 | fi |
9917 | fi | |
9918 | fi | |
ade710a5 TF |
9919 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
9920 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
ed698112 NN |
9921 | if test $ac_cv_header_stdc = yes; then |
9922 | ||
9923 | cat >>confdefs.h <<\_ACEOF | |
9924 | #define STDC_HEADERS 1 | |
9925 | _ACEOF | |
9926 | ||
9927 | fi | |
9928 | ||
9929 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
9940 | inttypes.h stdint.h unistd.h | |
9941 | do | |
9942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ade710a5 TF |
9943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 NN |
9946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9947 | else | |
9948 | cat >conftest.$ac_ext <<_ACEOF | |
9949 | /* confdefs.h. */ | |
9950 | _ACEOF | |
9951 | cat confdefs.h >>conftest.$ac_ext | |
9952 | cat >>conftest.$ac_ext <<_ACEOF | |
9953 | /* end confdefs.h. */ | |
9954 | $ac_includes_default | |
9955 | ||
9956 | #include <$ac_header> | |
9957 | _ACEOF | |
9958 | rm -f conftest.$ac_objext | |
9959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9960 | (eval $ac_compile) 2>conftest.er1 | |
9961 | ac_status=$? | |
9962 | grep -v '^ *+' conftest.er1 >conftest.err | |
9963 | rm -f conftest.er1 | |
9964 | cat conftest.err >&5 | |
9965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9966 | (exit $ac_status); } && | |
ade710a5 TF |
9967 | { ac_try='test -z "$ac_c_werror_flag" |
9968 | || test ! -s conftest.err' | |
ed698112 NN |
9969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9970 | (eval $ac_try) 2>&5 | |
9971 | ac_status=$? | |
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9973 | (exit $ac_status); }; } && | |
9974 | { ac_try='test -s conftest.$ac_objext' | |
9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9976 | (eval $ac_try) 2>&5 | |
9977 | ac_status=$? | |
9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9979 | (exit $ac_status); }; }; then | |
9980 | eval "$as_ac_Header=yes" | |
9981 | else | |
9982 | echo "$as_me: failed program was:" >&5 | |
9983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9984 | ||
ade710a5 | 9985 | eval "$as_ac_Header=no" |
ed698112 NN |
9986 | fi |
9987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9988 | fi | |
ade710a5 TF |
9989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
9991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9992 | cat >>confdefs.h <<_ACEOF | |
9993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9994 | _ACEOF | |
9995 | ||
5aac1dac | 9996 | fi |
ed698112 | 9997 | |
5aac1dac | 9998 | done |
34c5c0e1 | 9999 | |
ed698112 NN |
10000 | |
10001 | ||
10002 | ||
10003 | ||
10004 | for ac_header in execinfo.h unistd.h dlfcn.h | |
5aac1dac | 10005 | do |
ed698112 | 10006 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ade710a5 TF |
10007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10008 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 NN |
10011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10012 | fi | |
ade710a5 TF |
10013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
10015 | else |
10016 | # Is the header compilable? | |
ade710a5 TF |
10017 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10018 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
ed698112 NN |
10019 | cat >conftest.$ac_ext <<_ACEOF |
10020 | /* confdefs.h. */ | |
10021 | _ACEOF | |
10022 | cat confdefs.h >>conftest.$ac_ext | |
10023 | cat >>conftest.$ac_ext <<_ACEOF | |
10024 | /* end confdefs.h. */ | |
10025 | $ac_includes_default | |
10026 | #include <$ac_header> | |
10027 | _ACEOF | |
10028 | rm -f conftest.$ac_objext | |
10029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10030 | (eval $ac_compile) 2>conftest.er1 | |
10031 | ac_status=$? | |
10032 | grep -v '^ *+' conftest.er1 >conftest.err | |
10033 | rm -f conftest.er1 | |
10034 | cat conftest.err >&5 | |
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10036 | (exit $ac_status); } && | |
ade710a5 TF |
10037 | { ac_try='test -z "$ac_c_werror_flag" |
10038 | || test ! -s conftest.err' | |
ed698112 NN |
10039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10040 | (eval $ac_try) 2>&5 | |
10041 | ac_status=$? | |
10042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10043 | (exit $ac_status); }; } && | |
10044 | { ac_try='test -s conftest.$ac_objext' | |
10045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10046 | (eval $ac_try) 2>&5 | |
10047 | ac_status=$? | |
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10049 | (exit $ac_status); }; }; then | |
10050 | ac_header_compiler=yes | |
10051 | else | |
10052 | echo "$as_me: failed program was:" >&5 | |
10053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10054 | ||
ade710a5 | 10055 | ac_header_compiler=no |
ed698112 NN |
10056 | fi |
10057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ade710a5 TF |
10058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10059 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
ed698112 NN |
10060 | |
10061 | # Is the header present? | |
ade710a5 TF |
10062 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
ed698112 NN |
10064 | cat >conftest.$ac_ext <<_ACEOF |
10065 | /* confdefs.h. */ | |
10066 | _ACEOF | |
10067 | cat confdefs.h >>conftest.$ac_ext | |
10068 | cat >>conftest.$ac_ext <<_ACEOF | |
10069 | /* end confdefs.h. */ | |
10070 | #include <$ac_header> | |
10071 | _ACEOF | |
10072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10074 | ac_status=$? | |
10075 | grep -v '^ *+' conftest.er1 >conftest.err | |
10076 | rm -f conftest.er1 | |
10077 | cat conftest.err >&5 | |
10078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10079 | (exit $ac_status); } >/dev/null; then | |
10080 | if test -s conftest.err; then | |
10081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10083 | else | |
10084 | ac_cpp_err= | |
10085 | fi | |
34c5c0e1 | 10086 | else |
ed698112 | 10087 | ac_cpp_err=yes |
34c5c0e1 | 10088 | fi |
ed698112 NN |
10089 | if test -z "$ac_cpp_err"; then |
10090 | ac_header_preproc=yes | |
10091 | else | |
10092 | echo "$as_me: failed program was:" >&5 | |
10093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10094 | ||
10095 | ac_header_preproc=no | |
34c5c0e1 | 10096 | fi |
ed698112 | 10097 | rm -f conftest.err conftest.$ac_ext |
ade710a5 TF |
10098 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10099 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
ed698112 NN |
10100 | |
10101 | # So? What about this header? | |
10102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10103 | yes:no: ) | |
10104 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10105 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10107 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10108 | ac_header_preproc=yes | |
10109 | ;; | |
10110 | no:yes:* ) | |
10111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10115 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10116 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10118 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10121 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10122 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ade710a5 TF |
10123 | ( |
10124 | cat <<\_ASBOX | |
10125 | ## ---------------------------------- ## | |
10126 | ## Report this to the libjava lists. ## | |
10127 | ## ---------------------------------- ## | |
10128 | _ASBOX | |
10129 | ) | | |
10130 | sed "s/^/$as_me: WARNING: /" >&2 | |
ed698112 NN |
10131 | ;; |
10132 | esac | |
ade710a5 TF |
10133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 | 10136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ee9dd372 | 10137 | else |
ed698112 | 10138 | eval "$as_ac_Header=\$ac_header_preproc" |
ee9dd372 | 10139 | fi |
ade710a5 TF |
10140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
10142 | |
10143 | fi | |
10144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10145 | cat >>confdefs.h <<_ACEOF | |
10146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10147 | _ACEOF | |
10148 | ||
10149 | fi | |
10150 | ||
ee9dd372 | 10151 | done |
ed698112 | 10152 | |
2a67186a | 10153 | # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl |
ade710a5 TF |
10154 | echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5 |
10155 | echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6 | |
ed698112 NN |
10156 | if test "${ac_cv_lib_dl_dladdr+set}" = set; then |
10157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 10158 | else |
ed698112 | 10159 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 10160 | LIBS="-ldl $LIBS" |
ed698112 NN |
10161 | if test x$gcc_no_link = xyes; then |
10162 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10163 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10164 | { (exit 1); exit 1; }; } | |
10165 | fi | |
10166 | cat >conftest.$ac_ext <<_ACEOF | |
10167 | /* confdefs.h. */ | |
10168 | _ACEOF | |
10169 | cat confdefs.h >>conftest.$ac_ext | |
10170 | cat >>conftest.$ac_ext <<_ACEOF | |
10171 | /* end confdefs.h. */ | |
10172 | ||
ade710a5 | 10173 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
10174 | #ifdef __cplusplus |
10175 | extern "C" | |
10176 | #endif | |
ade710a5 TF |
10177 | /* We use char because int might match the return type of a gcc2 |
10178 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
10179 | char dladdr (); |
10180 | int | |
10181 | main () | |
10182 | { | |
ade710a5 | 10183 | dladdr (); |
ed698112 NN |
10184 | ; |
10185 | return 0; | |
10186 | } | |
10187 | _ACEOF | |
10188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10190 | (eval $ac_link) 2>conftest.er1 | |
10191 | ac_status=$? | |
10192 | grep -v '^ *+' conftest.er1 >conftest.err | |
10193 | rm -f conftest.er1 | |
10194 | cat conftest.err >&5 | |
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10196 | (exit $ac_status); } && | |
ade710a5 TF |
10197 | { ac_try='test -z "$ac_c_werror_flag" |
10198 | || test ! -s conftest.err' | |
ed698112 NN |
10199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10200 | (eval $ac_try) 2>&5 | |
10201 | ac_status=$? | |
10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10203 | (exit $ac_status); }; } && | |
10204 | { ac_try='test -s conftest$ac_exeext' | |
10205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10206 | (eval $ac_try) 2>&5 | |
10207 | ac_status=$? | |
10208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10209 | (exit $ac_status); }; }; then | |
10210 | ac_cv_lib_dl_dladdr=yes | |
10211 | else | |
10212 | echo "$as_me: failed program was:" >&5 | |
10213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10214 | ||
ade710a5 | 10215 | ac_cv_lib_dl_dladdr=no |
ed698112 NN |
10216 | fi |
10217 | rm -f conftest.err conftest.$ac_objext \ | |
10218 | conftest$ac_exeext conftest.$ac_ext | |
10219 | LIBS=$ac_check_lib_save_LIBS | |
10220 | fi | |
ade710a5 TF |
10221 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5 |
10222 | echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6 | |
ed698112 | 10223 | if test $ac_cv_lib_dl_dladdr = yes; then |
ee9dd372 | 10224 | |
ed698112 NN |
10225 | |
10226 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 10227 | #define HAVE_DLADDR 1 |
ed698112 | 10228 | _ACEOF |
ee9dd372 | 10229 | |
2a67186a AT |
10230 | else |
10231 | ||
ade710a5 TF |
10232 | echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5 |
10233 | echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6 | |
2a67186a AT |
10234 | if test "${ac_cv_lib_dld_dladdr+set}" = set; then |
10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10236 | else | |
10237 | ac_check_lib_save_LIBS=$LIBS | |
10238 | LIBS="-ldld $LIBS" | |
10239 | if test x$gcc_no_link = xyes; then | |
10240 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10241 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10242 | { (exit 1); exit 1; }; } | |
10243 | fi | |
10244 | cat >conftest.$ac_ext <<_ACEOF | |
10245 | /* confdefs.h. */ | |
10246 | _ACEOF | |
10247 | cat confdefs.h >>conftest.$ac_ext | |
10248 | cat >>conftest.$ac_ext <<_ACEOF | |
10249 | /* end confdefs.h. */ | |
10250 | ||
ade710a5 | 10251 | /* Override any gcc2 internal prototype to avoid an error. */ |
2a67186a AT |
10252 | #ifdef __cplusplus |
10253 | extern "C" | |
10254 | #endif | |
ade710a5 TF |
10255 | /* We use char because int might match the return type of a gcc2 |
10256 | builtin and then its argument prototype would still apply. */ | |
2a67186a AT |
10257 | char dladdr (); |
10258 | int | |
10259 | main () | |
10260 | { | |
ade710a5 | 10261 | dladdr (); |
2a67186a AT |
10262 | ; |
10263 | return 0; | |
10264 | } | |
10265 | _ACEOF | |
10266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10268 | (eval $ac_link) 2>conftest.er1 | |
10269 | ac_status=$? | |
10270 | grep -v '^ *+' conftest.er1 >conftest.err | |
10271 | rm -f conftest.er1 | |
10272 | cat conftest.err >&5 | |
10273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10274 | (exit $ac_status); } && | |
ade710a5 TF |
10275 | { ac_try='test -z "$ac_c_werror_flag" |
10276 | || test ! -s conftest.err' | |
2a67186a AT |
10277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10278 | (eval $ac_try) 2>&5 | |
10279 | ac_status=$? | |
10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10281 | (exit $ac_status); }; } && | |
10282 | { ac_try='test -s conftest$ac_exeext' | |
10283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10284 | (eval $ac_try) 2>&5 | |
10285 | ac_status=$? | |
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10287 | (exit $ac_status); }; }; then | |
10288 | ac_cv_lib_dld_dladdr=yes | |
10289 | else | |
10290 | echo "$as_me: failed program was:" >&5 | |
10291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10292 | ||
ade710a5 | 10293 | ac_cv_lib_dld_dladdr=no |
2a67186a AT |
10294 | fi |
10295 | rm -f conftest.err conftest.$ac_objext \ | |
10296 | conftest$ac_exeext conftest.$ac_ext | |
10297 | LIBS=$ac_check_lib_save_LIBS | |
10298 | fi | |
ade710a5 TF |
10299 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5 |
10300 | echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6 | |
2a67186a AT |
10301 | if test $ac_cv_lib_dld_dladdr = yes; then |
10302 | ||
10303 | ||
10304 | cat >>confdefs.h <<\_ACEOF | |
10305 | #define HAVE_DLADDR 1 | |
10306 | _ACEOF | |
10307 | ||
10308 | fi | |
10309 | ||
5aac1dac TT |
10310 | fi |
10311 | ||
6d1e9d18 | 10312 | |
5aac1dac | 10313 | if test x"$build" = x"$host"; then |
ade710a5 TF |
10314 | echo "$as_me:$LINENO: checking for /proc/self/exe" >&5 |
10315 | echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6 | |
ed698112 NN |
10316 | if test "${ac_cv_file__proc_self_exe+set}" = set; then |
10317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 10318 | else |
ed698112 NN |
10319 | test "$cross_compiling" = yes && |
10320 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
10321 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
10322 | { (exit 1); exit 1; }; } | |
10323 | if test -r "/proc/self/exe"; then | |
10324 | ac_cv_file__proc_self_exe=yes | |
5aac1dac | 10325 | else |
ed698112 | 10326 | ac_cv_file__proc_self_exe=no |
5aac1dac TT |
10327 | fi |
10328 | fi | |
ade710a5 TF |
10329 | echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5 |
10330 | echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6 | |
ed698112 NN |
10331 | if test $ac_cv_file__proc_self_exe = yes; then |
10332 | ||
10333 | cat >>confdefs.h <<_ACEOF | |
10334 | #define HAVE__PROC_SELF_EXE 1 | |
10335 | _ACEOF | |
10336 | ||
ee9dd372 | 10337 | |
ed698112 NN |
10338 | |
10339 | cat >>confdefs.h <<\_ACEOF | |
10340 | #define HAVE_PROC_SELF_EXE 1 | |
10341 | _ACEOF | |
5aac1dac | 10342 | |
ee9dd372 | 10343 | fi |
ee9dd372 | 10344 | |
5aac1dac TT |
10345 | else |
10346 | case $host in | |
10347 | *-linux*) | |
ed698112 NN |
10348 | |
10349 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 10350 | #define HAVE_PROC_SELF_EXE 1 |
ed698112 | 10351 | _ACEOF |
5aac1dac TT |
10352 | |
10353 | ;; | |
10354 | esac | |
10355 | fi | |
ee9dd372 | 10356 | |
ed698112 | 10357 | |
5b7a26f6 KC |
10358 | if test "X$prefix" = "XNONE"; then |
10359 | acl_final_prefix="$ac_default_prefix" | |
10360 | else | |
10361 | acl_final_prefix="$prefix" | |
10362 | fi | |
10363 | if test "X$exec_prefix" = "XNONE"; then | |
10364 | acl_final_exec_prefix='${prefix}' | |
10365 | else | |
10366 | acl_final_exec_prefix="$exec_prefix" | |
10367 | fi | |
10368 | acl_save_prefix="$prefix" | |
10369 | prefix="$acl_final_prefix" | |
10370 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
10371 | prefix="$acl_save_prefix" | |
10372 | ||
10373 | ||
ade710a5 | 10374 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
5b7a26f6 | 10375 | if test "${with_gnu_ld+set}" = set; then |
ade710a5 TF |
10376 | withval="$with_gnu_ld" |
10377 | test "$withval" = no || with_gnu_ld=yes | |
5b7a26f6 KC |
10378 | else |
10379 | with_gnu_ld=no | |
ade710a5 | 10380 | fi; |
5b7a26f6 KC |
10381 | # Prepare PATH_SEPARATOR. |
10382 | # The user is always right. | |
10383 | if test "${PATH_SEPARATOR+set}" != set; then | |
10384 | echo "#! /bin/sh" >conf$$.sh | |
10385 | echo "exit 0" >>conf$$.sh | |
10386 | chmod +x conf$$.sh | |
10387 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10388 | PATH_SEPARATOR=';' | |
10389 | else | |
10390 | PATH_SEPARATOR=: | |
10391 | fi | |
10392 | rm -f conf$$.sh | |
10393 | fi | |
10394 | ac_prog=ld | |
10395 | if test "$GCC" = yes; then | |
10396 | # Check if gcc -print-prog-name=ld gives a path. | |
ade710a5 TF |
10397 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
10398 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5b7a26f6 KC |
10399 | case $host in |
10400 | *-*-mingw*) | |
10401 | # gcc leaves a trailing carriage return which upsets mingw | |
10402 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10403 | *) | |
10404 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10405 | esac | |
10406 | case $ac_prog in | |
10407 | # Accept absolute paths. | |
10408 | [\\/]* | [A-Za-z]:[\\/]*) | |
10409 | re_direlt='/[^/][^/]*/\.\./' | |
10410 | # Canonicalize the path of ld | |
10411 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
10412 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10413 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
10414 | done | |
10415 | test -z "$LD" && LD="$ac_prog" | |
10416 | ;; | |
10417 | "") | |
10418 | # If it fails, then pretend we aren't using GCC. | |
10419 | ac_prog=ld | |
10420 | ;; | |
10421 | *) | |
10422 | # If it is relative, then search for the first ld in PATH. | |
10423 | with_gnu_ld=unknown | |
10424 | ;; | |
10425 | esac | |
10426 | elif test "$with_gnu_ld" = yes; then | |
ade710a5 TF |
10427 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10428 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5b7a26f6 | 10429 | else |
ade710a5 TF |
10430 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10431 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5b7a26f6 KC |
10432 | fi |
10433 | if test "${acl_cv_path_LD+set}" = set; then | |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10435 | else | |
10436 | if test -z "$LD"; then | |
10437 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
10438 | for ac_dir in $PATH; do | |
10439 | test -z "$ac_dir" && ac_dir=. | |
10440 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10441 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
10442 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10443 | # but apparently some GNU ld's only accept -v. | |
10444 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10445 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
10446 | test "$with_gnu_ld" != no && break | |
10447 | else | |
10448 | test "$with_gnu_ld" != yes && break | |
10449 | fi | |
10450 | fi | |
10451 | done | |
10452 | IFS="$ac_save_ifs" | |
10453 | else | |
10454 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
10455 | fi | |
10456 | fi | |
10457 | ||
10458 | LD="$acl_cv_path_LD" | |
10459 | if test -n "$LD"; then | |
ade710a5 TF |
10460 | echo "$as_me:$LINENO: result: $LD" >&5 |
10461 | echo "${ECHO_T}$LD" >&6 | |
5b7a26f6 | 10462 | else |
ade710a5 TF |
10463 | echo "$as_me:$LINENO: result: no" >&5 |
10464 | echo "${ECHO_T}no" >&6 | |
5b7a26f6 KC |
10465 | fi |
10466 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10467 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10468 | { (exit 1); exit 1; }; } | |
ade710a5 TF |
10469 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10470 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5b7a26f6 KC |
10471 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
10472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10473 | else | |
10474 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
10475 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
10476 | acl_cv_prog_gnu_ld=yes | |
10477 | else | |
10478 | acl_cv_prog_gnu_ld=no | |
10479 | fi | |
10480 | fi | |
ade710a5 TF |
10481 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
10482 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
5b7a26f6 KC |
10483 | with_gnu_ld=$acl_cv_prog_gnu_ld |
10484 | ||
10485 | ||
10486 | ||
ade710a5 TF |
10487 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
10488 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
5b7a26f6 KC |
10489 | if test "${acl_cv_rpath+set}" = set; then |
10490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10491 | else | |
10492 | ||
10493 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
10494 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
10495 | . ./conftest.sh | |
10496 | rm -f ./conftest.sh | |
10497 | acl_cv_rpath=done | |
10498 | ||
10499 | fi | |
ade710a5 TF |
10500 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
10501 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
5b7a26f6 KC |
10502 | wl="$acl_cv_wl" |
10503 | libext="$acl_cv_libext" | |
10504 | shlibext="$acl_cv_shlibext" | |
10505 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
10506 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
10507 | hardcode_direct="$acl_cv_hardcode_direct" | |
10508 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
ade710a5 | 10509 | # Check whether --enable-rpath or --disable-rpath was given. |
5b7a26f6 | 10510 | if test "${enable_rpath+set}" = set; then |
ade710a5 TF |
10511 | enableval="$enable_rpath" |
10512 | : | |
5b7a26f6 KC |
10513 | else |
10514 | enable_rpath=yes | |
ade710a5 | 10515 | fi; |
5b7a26f6 KC |
10516 | |
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | use_additional=yes | |
10524 | ||
10525 | acl_save_prefix="$prefix" | |
10526 | prefix="$acl_final_prefix" | |
10527 | acl_save_exec_prefix="$exec_prefix" | |
10528 | exec_prefix="$acl_final_exec_prefix" | |
10529 | ||
10530 | eval additional_includedir=\"$includedir\" | |
10531 | eval additional_libdir=\"$libdir\" | |
10532 | ||
10533 | exec_prefix="$acl_save_exec_prefix" | |
10534 | prefix="$acl_save_prefix" | |
ed698112 | 10535 | |
ed698112 | 10536 | |
ade710a5 | 10537 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
5aac1dac | 10538 | if test "${with_libiconv_prefix+set}" = set; then |
ade710a5 TF |
10539 | withval="$with_libiconv_prefix" |
10540 | ||
5b7a26f6 KC |
10541 | if test "X$withval" = "Xno"; then |
10542 | use_additional=no | |
10543 | else | |
10544 | if test "X$withval" = "X"; then | |
10545 | ||
10546 | acl_save_prefix="$prefix" | |
10547 | prefix="$acl_final_prefix" | |
10548 | acl_save_exec_prefix="$exec_prefix" | |
10549 | exec_prefix="$acl_final_exec_prefix" | |
10550 | ||
10551 | eval additional_includedir=\"$includedir\" | |
10552 | eval additional_libdir=\"$libdir\" | |
10553 | ||
10554 | exec_prefix="$acl_save_exec_prefix" | |
10555 | prefix="$acl_save_prefix" | |
10556 | ||
10557 | else | |
10558 | additional_includedir="$withval/include" | |
10559 | additional_libdir="$withval/lib" | |
10560 | fi | |
10561 | fi | |
5aac1dac | 10562 | |
ade710a5 | 10563 | fi; |
5b7a26f6 KC |
10564 | LIBICONV= |
10565 | LTLIBICONV= | |
10566 | INCICONV= | |
10567 | rpathdirs= | |
10568 | ltrpathdirs= | |
10569 | names_already_handled= | |
10570 | names_next_round='iconv ' | |
10571 | while test -n "$names_next_round"; do | |
10572 | names_this_round="$names_next_round" | |
10573 | names_next_round= | |
10574 | for name in $names_this_round; do | |
10575 | already_handled= | |
10576 | for n in $names_already_handled; do | |
10577 | if test "$n" = "$name"; then | |
10578 | already_handled=yes | |
10579 | break | |
10580 | fi | |
10581 | done | |
10582 | if test -z "$already_handled"; then | |
10583 | names_already_handled="$names_already_handled $name" | |
10584 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10585 | eval value=\"\$HAVE_LIB$uppername\" | |
10586 | if test -n "$value"; then | |
10587 | if test "$value" = yes; then | |
10588 | eval value=\"\$LIB$uppername\" | |
10589 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
10590 | eval value=\"\$LTLIB$uppername\" | |
10591 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
10592 | else | |
10593 | : | |
10594 | fi | |
10595 | else | |
10596 | found_dir= | |
10597 | found_la= | |
10598 | found_so= | |
10599 | found_a= | |
10600 | if test $use_additional = yes; then | |
10601 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10602 | found_dir="$additional_libdir" | |
10603 | found_so="$additional_libdir/lib$name.$shlibext" | |
10604 | if test -f "$additional_libdir/lib$name.la"; then | |
10605 | found_la="$additional_libdir/lib$name.la" | |
10606 | fi | |
10607 | else | |
10608 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10609 | found_dir="$additional_libdir" | |
10610 | found_a="$additional_libdir/lib$name.$libext" | |
10611 | if test -f "$additional_libdir/lib$name.la"; then | |
10612 | found_la="$additional_libdir/lib$name.la" | |
10613 | fi | |
10614 | fi | |
10615 | fi | |
10616 | fi | |
10617 | if test "X$found_dir" = "X"; then | |
10618 | for x in $LDFLAGS $LTLIBICONV; do | |
10619 | ||
10620 | acl_save_prefix="$prefix" | |
10621 | prefix="$acl_final_prefix" | |
10622 | acl_save_exec_prefix="$exec_prefix" | |
10623 | exec_prefix="$acl_final_exec_prefix" | |
10624 | eval x=\"$x\" | |
10625 | exec_prefix="$acl_save_exec_prefix" | |
10626 | prefix="$acl_save_prefix" | |
10627 | ||
10628 | case "$x" in | |
10629 | -L*) | |
10630 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10631 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10632 | found_dir="$dir" | |
10633 | found_so="$dir/lib$name.$shlibext" | |
10634 | if test -f "$dir/lib$name.la"; then | |
10635 | found_la="$dir/lib$name.la" | |
10636 | fi | |
10637 | else | |
10638 | if test -f "$dir/lib$name.$libext"; then | |
10639 | found_dir="$dir" | |
10640 | found_a="$dir/lib$name.$libext" | |
10641 | if test -f "$dir/lib$name.la"; then | |
10642 | found_la="$dir/lib$name.la" | |
10643 | fi | |
10644 | fi | |
10645 | fi | |
10646 | ;; | |
10647 | esac | |
10648 | if test "X$found_dir" != "X"; then | |
10649 | break | |
10650 | fi | |
10651 | done | |
10652 | fi | |
10653 | if test "X$found_dir" != "X"; then | |
10654 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
10655 | if test "X$found_so" != "X"; then | |
10656 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10657 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
10658 | else | |
10659 | haveit= | |
10660 | for x in $ltrpathdirs; do | |
10661 | if test "X$x" = "X$found_dir"; then | |
10662 | haveit=yes | |
10663 | break | |
10664 | fi | |
10665 | done | |
10666 | if test -z "$haveit"; then | |
10667 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10668 | fi | |
10669 | if test "$hardcode_direct" = yes; then | |
10670 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
10671 | else | |
10672 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10673 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
10674 | haveit= | |
10675 | for x in $rpathdirs; do | |
10676 | if test "X$x" = "X$found_dir"; then | |
10677 | haveit=yes | |
10678 | break | |
10679 | fi | |
10680 | done | |
10681 | if test -z "$haveit"; then | |
10682 | rpathdirs="$rpathdirs $found_dir" | |
10683 | fi | |
10684 | else | |
10685 | haveit= | |
10686 | for x in $LDFLAGS $LIBICONV; do | |
10687 | ||
10688 | acl_save_prefix="$prefix" | |
10689 | prefix="$acl_final_prefix" | |
10690 | acl_save_exec_prefix="$exec_prefix" | |
10691 | exec_prefix="$acl_final_exec_prefix" | |
10692 | eval x=\"$x\" | |
10693 | exec_prefix="$acl_save_exec_prefix" | |
10694 | prefix="$acl_save_prefix" | |
10695 | ||
10696 | if test "X$x" = "X-L$found_dir"; then | |
10697 | haveit=yes | |
10698 | break | |
10699 | fi | |
10700 | done | |
10701 | if test -z "$haveit"; then | |
10702 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
10703 | fi | |
10704 | if test "$hardcode_minus_L" != no; then | |
10705 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
10706 | else | |
10707 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
10708 | fi | |
10709 | fi | |
10710 | fi | |
10711 | fi | |
10712 | else | |
10713 | if test "X$found_a" != "X"; then | |
10714 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
10715 | else | |
10716 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
10717 | fi | |
10718 | fi | |
10719 | additional_includedir= | |
10720 | case "$found_dir" in | |
10721 | */lib | */lib/) | |
10722 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10723 | additional_includedir="$basedir/include" | |
10724 | ;; | |
10725 | esac | |
10726 | if test "X$additional_includedir" != "X"; then | |
10727 | if test "X$additional_includedir" != "X/usr/include"; then | |
10728 | haveit= | |
10729 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10730 | if test -n "$GCC"; then | |
10731 | case $host_os in | |
10732 | linux*) haveit=yes;; | |
10733 | esac | |
10734 | fi | |
10735 | fi | |
10736 | if test -z "$haveit"; then | |
10737 | for x in $CPPFLAGS $INCICONV; do | |
10738 | ||
10739 | acl_save_prefix="$prefix" | |
10740 | prefix="$acl_final_prefix" | |
10741 | acl_save_exec_prefix="$exec_prefix" | |
10742 | exec_prefix="$acl_final_exec_prefix" | |
10743 | eval x=\"$x\" | |
10744 | exec_prefix="$acl_save_exec_prefix" | |
10745 | prefix="$acl_save_prefix" | |
10746 | ||
10747 | if test "X$x" = "X-I$additional_includedir"; then | |
10748 | haveit=yes | |
10749 | break | |
10750 | fi | |
10751 | done | |
10752 | if test -z "$haveit"; then | |
10753 | if test -d "$additional_includedir"; then | |
10754 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
10755 | fi | |
10756 | fi | |
10757 | fi | |
10758 | fi | |
10759 | fi | |
10760 | if test -n "$found_la"; then | |
10761 | save_libdir="$libdir" | |
10762 | case "$found_la" in | |
10763 | */* | *\\*) . "$found_la" ;; | |
10764 | *) . "./$found_la" ;; | |
10765 | esac | |
10766 | libdir="$save_libdir" | |
10767 | for dep in $dependency_libs; do | |
10768 | case "$dep" in | |
10769 | -L*) | |
10770 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10771 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10772 | haveit= | |
10773 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10774 | if test -n "$GCC"; then | |
10775 | case $host_os in | |
10776 | linux*) haveit=yes;; | |
10777 | esac | |
10778 | fi | |
10779 | fi | |
10780 | if test -z "$haveit"; then | |
10781 | haveit= | |
10782 | for x in $LDFLAGS $LIBICONV; do | |
10783 | ||
10784 | acl_save_prefix="$prefix" | |
10785 | prefix="$acl_final_prefix" | |
10786 | acl_save_exec_prefix="$exec_prefix" | |
10787 | exec_prefix="$acl_final_exec_prefix" | |
10788 | eval x=\"$x\" | |
10789 | exec_prefix="$acl_save_exec_prefix" | |
10790 | prefix="$acl_save_prefix" | |
10791 | ||
10792 | if test "X$x" = "X-L$additional_libdir"; then | |
10793 | haveit=yes | |
10794 | break | |
10795 | fi | |
10796 | done | |
10797 | if test -z "$haveit"; then | |
10798 | if test -d "$additional_libdir"; then | |
10799 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
10800 | fi | |
10801 | fi | |
10802 | haveit= | |
10803 | for x in $LDFLAGS $LTLIBICONV; do | |
10804 | ||
10805 | acl_save_prefix="$prefix" | |
10806 | prefix="$acl_final_prefix" | |
10807 | acl_save_exec_prefix="$exec_prefix" | |
10808 | exec_prefix="$acl_final_exec_prefix" | |
10809 | eval x=\"$x\" | |
10810 | exec_prefix="$acl_save_exec_prefix" | |
10811 | prefix="$acl_save_prefix" | |
10812 | ||
10813 | if test "X$x" = "X-L$additional_libdir"; then | |
10814 | haveit=yes | |
10815 | break | |
10816 | fi | |
10817 | done | |
10818 | if test -z "$haveit"; then | |
10819 | if test -d "$additional_libdir"; then | |
10820 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
10821 | fi | |
10822 | fi | |
10823 | fi | |
10824 | fi | |
10825 | ;; | |
10826 | -R*) | |
10827 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10828 | if test "$enable_rpath" != no; then | |
10829 | haveit= | |
10830 | for x in $rpathdirs; do | |
10831 | if test "X$x" = "X$dir"; then | |
10832 | haveit=yes | |
10833 | break | |
10834 | fi | |
10835 | done | |
10836 | if test -z "$haveit"; then | |
10837 | rpathdirs="$rpathdirs $dir" | |
10838 | fi | |
10839 | haveit= | |
10840 | for x in $ltrpathdirs; do | |
10841 | if test "X$x" = "X$dir"; then | |
10842 | haveit=yes | |
10843 | break | |
10844 | fi | |
10845 | done | |
10846 | if test -z "$haveit"; then | |
10847 | ltrpathdirs="$ltrpathdirs $dir" | |
10848 | fi | |
10849 | fi | |
10850 | ;; | |
10851 | -l*) | |
10852 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10853 | ;; | |
10854 | *.la) | |
10855 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10856 | ;; | |
10857 | *) | |
10858 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
10859 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
10860 | ;; | |
10861 | esac | |
10862 | done | |
10863 | fi | |
10864 | else | |
10865 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
10866 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
10867 | fi | |
10868 | fi | |
10869 | fi | |
10870 | done | |
10871 | done | |
10872 | if test "X$rpathdirs" != "X"; then | |
10873 | if test -n "$hardcode_libdir_separator"; then | |
10874 | alldirs= | |
10875 | for found_dir in $rpathdirs; do | |
10876 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10877 | done | |
10878 | acl_save_libdir="$libdir" | |
10879 | libdir="$alldirs" | |
10880 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10881 | libdir="$acl_save_libdir" | |
10882 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
10883 | else | |
10884 | for found_dir in $rpathdirs; do | |
10885 | acl_save_libdir="$libdir" | |
10886 | libdir="$found_dir" | |
10887 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10888 | libdir="$acl_save_libdir" | |
10889 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
10890 | done | |
10891 | fi | |
10892 | fi | |
10893 | if test "X$ltrpathdirs" != "X"; then | |
10894 | for found_dir in $ltrpathdirs; do | |
10895 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
10896 | done | |
10897 | fi | |
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | am_save_CPPFLAGS="$CPPFLAGS" | |
10906 | ||
10907 | for element in $INCICONV; do | |
10908 | haveit= | |
10909 | for x in $CPPFLAGS; do | |
10910 | ||
10911 | acl_save_prefix="$prefix" | |
10912 | prefix="$acl_final_prefix" | |
10913 | acl_save_exec_prefix="$exec_prefix" | |
10914 | exec_prefix="$acl_final_exec_prefix" | |
10915 | eval x=\"$x\" | |
10916 | exec_prefix="$acl_save_exec_prefix" | |
10917 | prefix="$acl_save_prefix" | |
10918 | ||
10919 | if test "X$x" = "X$element"; then | |
10920 | haveit=yes | |
10921 | break | |
10922 | fi | |
10923 | done | |
10924 | if test -z "$haveit"; then | |
10925 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10926 | fi | |
10927 | done | |
10928 | ||
5aac1dac | 10929 | |
ade710a5 TF |
10930 | echo "$as_me:$LINENO: checking for iconv" >&5 |
10931 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
ed698112 NN |
10932 | if test "${am_cv_func_iconv+set}" = set; then |
10933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 10934 | else |
ed698112 | 10935 | |
5aac1dac TT |
10936 | am_cv_func_iconv="no, consider installing GNU libiconv" |
10937 | am_cv_lib_iconv=no | |
ed698112 NN |
10938 | if test x$gcc_no_link = xyes; then |
10939 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10940 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10941 | { (exit 1); exit 1; }; } | |
10942 | fi | |
10943 | cat >conftest.$ac_ext <<_ACEOF | |
10944 | /* confdefs.h. */ | |
10945 | _ACEOF | |
10946 | cat confdefs.h >>conftest.$ac_ext | |
10947 | cat >>conftest.$ac_ext <<_ACEOF | |
10948 | /* end confdefs.h. */ | |
5aac1dac TT |
10949 | #include <stdlib.h> |
10950 | #include <iconv.h> | |
ed698112 NN |
10951 | int |
10952 | main () | |
10953 | { | |
5aac1dac TT |
10954 | iconv_t cd = iconv_open("",""); |
10955 | iconv(cd,NULL,NULL,NULL,NULL); | |
10956 | iconv_close(cd); | |
ed698112 NN |
10957 | ; |
10958 | return 0; | |
10959 | } | |
10960 | _ACEOF | |
10961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10963 | (eval $ac_link) 2>conftest.er1 | |
10964 | ac_status=$? | |
10965 | grep -v '^ *+' conftest.er1 >conftest.err | |
10966 | rm -f conftest.er1 | |
10967 | cat conftest.err >&5 | |
10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10969 | (exit $ac_status); } && | |
ade710a5 TF |
10970 | { ac_try='test -z "$ac_c_werror_flag" |
10971 | || test ! -s conftest.err' | |
ed698112 NN |
10972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10973 | (eval $ac_try) 2>&5 | |
10974 | ac_status=$? | |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10976 | (exit $ac_status); }; } && | |
10977 | { ac_try='test -s conftest$ac_exeext' | |
10978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10979 | (eval $ac_try) 2>&5 | |
10980 | ac_status=$? | |
10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10982 | (exit $ac_status); }; }; then | |
5aac1dac | 10983 | am_cv_func_iconv=yes |
ee9dd372 | 10984 | else |
ed698112 NN |
10985 | echo "$as_me: failed program was:" >&5 |
10986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10987 | ||
ee9dd372 | 10988 | fi |
ed698112 NN |
10989 | rm -f conftest.err conftest.$ac_objext \ |
10990 | conftest$ac_exeext conftest.$ac_ext | |
5aac1dac TT |
10991 | if test "$am_cv_func_iconv" != yes; then |
10992 | am_save_LIBS="$LIBS" | |
5b7a26f6 | 10993 | LIBS="$LIBS $LIBICONV" |
ed698112 NN |
10994 | if test x$gcc_no_link = xyes; then |
10995 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10996 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10997 | { (exit 1); exit 1; }; } | |
10998 | fi | |
10999 | cat >conftest.$ac_ext <<_ACEOF | |
11000 | /* confdefs.h. */ | |
11001 | _ACEOF | |
11002 | cat confdefs.h >>conftest.$ac_ext | |
11003 | cat >>conftest.$ac_ext <<_ACEOF | |
11004 | /* end confdefs.h. */ | |
5aac1dac TT |
11005 | #include <stdlib.h> |
11006 | #include <iconv.h> | |
ed698112 NN |
11007 | int |
11008 | main () | |
11009 | { | |
5aac1dac TT |
11010 | iconv_t cd = iconv_open("",""); |
11011 | iconv(cd,NULL,NULL,NULL,NULL); | |
11012 | iconv_close(cd); | |
ed698112 NN |
11013 | ; |
11014 | return 0; | |
11015 | } | |
11016 | _ACEOF | |
11017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11019 | (eval $ac_link) 2>conftest.er1 | |
11020 | ac_status=$? | |
11021 | grep -v '^ *+' conftest.er1 >conftest.err | |
11022 | rm -f conftest.er1 | |
11023 | cat conftest.err >&5 | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); } && | |
ade710a5 TF |
11026 | { ac_try='test -z "$ac_c_werror_flag" |
11027 | || test ! -s conftest.err' | |
ed698112 NN |
11028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11029 | (eval $ac_try) 2>&5 | |
11030 | ac_status=$? | |
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11032 | (exit $ac_status); }; } && | |
11033 | { ac_try='test -s conftest$ac_exeext' | |
11034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11035 | (eval $ac_try) 2>&5 | |
11036 | ac_status=$? | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); }; }; then | |
5aac1dac TT |
11039 | am_cv_lib_iconv=yes |
11040 | am_cv_func_iconv=yes | |
ee9dd372 | 11041 | else |
ed698112 NN |
11042 | echo "$as_me: failed program was:" >&5 |
11043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11044 | ||
5aac1dac | 11045 | fi |
ed698112 NN |
11046 | rm -f conftest.err conftest.$ac_objext \ |
11047 | conftest$ac_exeext conftest.$ac_ext | |
5aac1dac TT |
11048 | LIBS="$am_save_LIBS" |
11049 | fi | |
4b7f154f | 11050 | |
ed698112 | 11051 | fi |
ade710a5 TF |
11052 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
11053 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
5aac1dac | 11054 | if test "$am_cv_func_iconv" = yes; then |
ed698112 NN |
11055 | |
11056 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11057 | #define HAVE_ICONV 1 |
ed698112 | 11058 | _ACEOF |
7339705d | 11059 | |
5b7a26f6 KC |
11060 | fi |
11061 | if test "$am_cv_lib_iconv" = yes; then | |
ade710a5 TF |
11062 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
11063 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
11064 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
11065 | echo "${ECHO_T}$LIBICONV" >&6 | |
5b7a26f6 KC |
11066 | else |
11067 | CPPFLAGS="$am_save_CPPFLAGS" | |
11068 | LIBICONV= | |
11069 | LTLIBICONV= | |
11070 | fi | |
11071 | ||
11072 | ||
11073 | ||
11074 | if test "$am_cv_func_iconv" = yes; then | |
ade710a5 TF |
11075 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
11076 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
ed698112 NN |
11077 | if test "${am_cv_proto_iconv+set}" = set; then |
11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4b7f154f | 11079 | else |
ed698112 NN |
11080 | |
11081 | cat >conftest.$ac_ext <<_ACEOF | |
11082 | /* confdefs.h. */ | |
11083 | _ACEOF | |
11084 | cat confdefs.h >>conftest.$ac_ext | |
11085 | cat >>conftest.$ac_ext <<_ACEOF | |
11086 | /* end confdefs.h. */ | |
4b7f154f | 11087 | |
5aac1dac TT |
11088 | #include <stdlib.h> |
11089 | #include <iconv.h> | |
11090 | extern | |
11091 | #ifdef __cplusplus | |
11092 | "C" | |
11093 | #endif | |
11094 | #if defined(__STDC__) || defined(__cplusplus) | |
11095 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
4b7f154f | 11096 | #else |
5aac1dac | 11097 | size_t iconv(); |
4b7f154f TT |
11098 | #endif |
11099 | ||
ed698112 NN |
11100 | int |
11101 | main () | |
11102 | { | |
5aac1dac | 11103 | |
ed698112 NN |
11104 | ; |
11105 | return 0; | |
11106 | } | |
11107 | _ACEOF | |
11108 | rm -f conftest.$ac_objext | |
11109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11110 | (eval $ac_compile) 2>conftest.er1 | |
11111 | ac_status=$? | |
11112 | grep -v '^ *+' conftest.er1 >conftest.err | |
11113 | rm -f conftest.er1 | |
11114 | cat conftest.err >&5 | |
11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11116 | (exit $ac_status); } && | |
ade710a5 TF |
11117 | { ac_try='test -z "$ac_c_werror_flag" |
11118 | || test ! -s conftest.err' | |
ed698112 NN |
11119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11120 | (eval $ac_try) 2>&5 | |
11121 | ac_status=$? | |
11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11123 | (exit $ac_status); }; } && | |
11124 | { ac_try='test -s conftest.$ac_objext' | |
11125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11126 | (eval $ac_try) 2>&5 | |
11127 | ac_status=$? | |
11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11129 | (exit $ac_status); }; }; then | |
5aac1dac | 11130 | am_cv_proto_iconv_arg1="" |
4b7f154f | 11131 | else |
ed698112 NN |
11132 | echo "$as_me: failed program was:" >&5 |
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11134 | ||
ade710a5 | 11135 | am_cv_proto_iconv_arg1="const" |
4b7f154f | 11136 | fi |
ed698112 | 11137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 11138 | 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);" |
4b7f154f TT |
11139 | fi |
11140 | ||
5aac1dac | 11141 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
ade710a5 | 11142 | echo "$as_me:$LINENO: result: ${ac_t:- |
ed698112 NN |
11143 | }$am_cv_proto_iconv" >&5 |
11144 | echo "${ECHO_T}${ac_t:- | |
ade710a5 | 11145 | }$am_cv_proto_iconv" >&6 |
ed698112 NN |
11146 | |
11147 | cat >>confdefs.h <<_ACEOF | |
5aac1dac | 11148 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
ed698112 | 11149 | _ACEOF |
4b7f154f | 11150 | |
5aac1dac | 11151 | fi |
ed698112 NN |
11152 | |
11153 | ||
ade710a5 TF |
11154 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
11155 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
ed698112 NN |
11156 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
11157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11158 | else | |
11159 | if test x$gcc_no_link = xyes; then | |
11160 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11161 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11162 | { (exit 1); exit 1; }; } | |
11163 | fi | |
11164 | cat >conftest.$ac_ext <<_ACEOF | |
11165 | /* confdefs.h. */ | |
11166 | _ACEOF | |
11167 | cat confdefs.h >>conftest.$ac_ext | |
11168 | cat >>conftest.$ac_ext <<_ACEOF | |
11169 | /* end confdefs.h. */ | |
5aac1dac | 11170 | #include <locale.h> |
ed698112 NN |
11171 | int |
11172 | main () | |
11173 | { | |
5aac1dac | 11174 | return LC_MESSAGES |
ed698112 NN |
11175 | ; |
11176 | return 0; | |
11177 | } | |
11178 | _ACEOF | |
11179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11181 | (eval $ac_link) 2>conftest.er1 | |
11182 | ac_status=$? | |
11183 | grep -v '^ *+' conftest.er1 >conftest.err | |
11184 | rm -f conftest.er1 | |
11185 | cat conftest.err >&5 | |
11186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11187 | (exit $ac_status); } && | |
ade710a5 TF |
11188 | { ac_try='test -z "$ac_c_werror_flag" |
11189 | || test ! -s conftest.err' | |
ed698112 NN |
11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11191 | (eval $ac_try) 2>&5 | |
11192 | ac_status=$? | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); }; } && | |
11195 | { ac_try='test -s conftest$ac_exeext' | |
11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11197 | (eval $ac_try) 2>&5 | |
11198 | ac_status=$? | |
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11200 | (exit $ac_status); }; }; then | |
5aac1dac | 11201 | am_cv_val_LC_MESSAGES=yes |
4b7f154f | 11202 | else |
ed698112 NN |
11203 | echo "$as_me: failed program was:" >&5 |
11204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11205 | ||
ade710a5 | 11206 | am_cv_val_LC_MESSAGES=no |
4b7f154f | 11207 | fi |
ed698112 NN |
11208 | rm -f conftest.err conftest.$ac_objext \ |
11209 | conftest$ac_exeext conftest.$ac_ext | |
4b7f154f | 11210 | fi |
ade710a5 TF |
11211 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
11212 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
5b7a26f6 | 11213 | if test $am_cv_val_LC_MESSAGES = yes; then |
ed698112 NN |
11214 | |
11215 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11216 | #define HAVE_LC_MESSAGES 1 |
ed698112 | 11217 | _ACEOF |
7339705d | 11218 | |
5aac1dac | 11219 | fi |
5b7a26f6 | 11220 | |
ade710a5 TF |
11221 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
11222 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
ed698112 NN |
11223 | if test "${ac_cv_struct_tm+set}" = set; then |
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11225 | else | |
11226 | cat >conftest.$ac_ext <<_ACEOF | |
11227 | /* confdefs.h. */ | |
11228 | _ACEOF | |
11229 | cat confdefs.h >>conftest.$ac_ext | |
11230 | cat >>conftest.$ac_ext <<_ACEOF | |
11231 | /* end confdefs.h. */ | |
5aac1dac TT |
11232 | #include <sys/types.h> |
11233 | #include <time.h> | |
ed698112 NN |
11234 | |
11235 | int | |
11236 | main () | |
11237 | { | |
5aac1dac | 11238 | struct tm *tp; tp->tm_sec; |
ed698112 NN |
11239 | ; |
11240 | return 0; | |
11241 | } | |
11242 | _ACEOF | |
11243 | rm -f conftest.$ac_objext | |
11244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11245 | (eval $ac_compile) 2>conftest.er1 | |
11246 | ac_status=$? | |
11247 | grep -v '^ *+' conftest.er1 >conftest.err | |
11248 | rm -f conftest.er1 | |
11249 | cat conftest.err >&5 | |
11250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11251 | (exit $ac_status); } && | |
ade710a5 TF |
11252 | { ac_try='test -z "$ac_c_werror_flag" |
11253 | || test ! -s conftest.err' | |
ed698112 NN |
11254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11255 | (eval $ac_try) 2>&5 | |
11256 | ac_status=$? | |
11257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11258 | (exit $ac_status); }; } && | |
11259 | { ac_try='test -s conftest.$ac_objext' | |
11260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11261 | (eval $ac_try) 2>&5 | |
11262 | ac_status=$? | |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | (exit $ac_status); }; }; then | |
5aac1dac | 11265 | ac_cv_struct_tm=time.h |
7339705d | 11266 | else |
ed698112 NN |
11267 | echo "$as_me: failed program was:" >&5 |
11268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11269 | ||
ade710a5 | 11270 | ac_cv_struct_tm=sys/time.h |
7339705d | 11271 | fi |
ed698112 | 11272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7339705d | 11273 | fi |
ade710a5 TF |
11274 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
11275 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
5aac1dac | 11276 | if test $ac_cv_struct_tm = sys/time.h; then |
ed698112 NN |
11277 | |
11278 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11279 | #define TM_IN_SYS_TIME 1 |
ed698112 | 11280 | _ACEOF |
4b7f154f | 11281 | |
ee9dd372 | 11282 | fi |
ee9dd372 | 11283 | |
ade710a5 TF |
11284 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
11285 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
ed698112 NN |
11286 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 11288 | else |
ed698112 NN |
11289 | cat >conftest.$ac_ext <<_ACEOF |
11290 | /* confdefs.h. */ | |
11291 | _ACEOF | |
11292 | cat confdefs.h >>conftest.$ac_ext | |
11293 | cat >>conftest.$ac_ext <<_ACEOF | |
11294 | /* end confdefs.h. */ | |
5aac1dac TT |
11295 | #include <sys/types.h> |
11296 | #include <$ac_cv_struct_tm> | |
ed698112 NN |
11297 | |
11298 | ||
11299 | int | |
11300 | main () | |
11301 | { | |
11302 | static struct tm ac_aggr; | |
11303 | if (ac_aggr.tm_zone) | |
11304 | return 0; | |
11305 | ; | |
11306 | return 0; | |
11307 | } | |
11308 | _ACEOF | |
11309 | rm -f conftest.$ac_objext | |
11310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11311 | (eval $ac_compile) 2>conftest.er1 | |
11312 | ac_status=$? | |
11313 | grep -v '^ *+' conftest.er1 >conftest.err | |
11314 | rm -f conftest.er1 | |
11315 | cat conftest.err >&5 | |
11316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11317 | (exit $ac_status); } && | |
ade710a5 TF |
11318 | { ac_try='test -z "$ac_c_werror_flag" |
11319 | || test ! -s conftest.err' | |
ed698112 NN |
11320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11321 | (eval $ac_try) 2>&5 | |
11322 | ac_status=$? | |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); }; } && | |
11325 | { ac_try='test -s conftest.$ac_objext' | |
11326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11327 | (eval $ac_try) 2>&5 | |
11328 | ac_status=$? | |
11329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11330 | (exit $ac_status); }; }; then | |
11331 | ac_cv_member_struct_tm_tm_zone=yes | |
11332 | else | |
11333 | echo "$as_me: failed program was:" >&5 | |
11334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11335 | ||
ade710a5 | 11336 | cat >conftest.$ac_ext <<_ACEOF |
ed698112 NN |
11337 | /* confdefs.h. */ |
11338 | _ACEOF | |
11339 | cat confdefs.h >>conftest.$ac_ext | |
11340 | cat >>conftest.$ac_ext <<_ACEOF | |
11341 | /* end confdefs.h. */ | |
11342 | #include <sys/types.h> | |
11343 | #include <$ac_cv_struct_tm> | |
11344 | ||
11345 | ||
11346 | int | |
11347 | main () | |
11348 | { | |
11349 | static struct tm ac_aggr; | |
11350 | if (sizeof ac_aggr.tm_zone) | |
11351 | return 0; | |
11352 | ; | |
11353 | return 0; | |
11354 | } | |
11355 | _ACEOF | |
11356 | rm -f conftest.$ac_objext | |
11357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11358 | (eval $ac_compile) 2>conftest.er1 | |
11359 | ac_status=$? | |
11360 | grep -v '^ *+' conftest.er1 >conftest.err | |
11361 | rm -f conftest.er1 | |
11362 | cat conftest.err >&5 | |
11363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11364 | (exit $ac_status); } && | |
ade710a5 TF |
11365 | { ac_try='test -z "$ac_c_werror_flag" |
11366 | || test ! -s conftest.err' | |
ed698112 NN |
11367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11368 | (eval $ac_try) 2>&5 | |
11369 | ac_status=$? | |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 | (exit $ac_status); }; } && | |
11372 | { ac_try='test -s conftest.$ac_objext' | |
11373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11374 | (eval $ac_try) 2>&5 | |
11375 | ac_status=$? | |
11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11377 | (exit $ac_status); }; }; then | |
11378 | ac_cv_member_struct_tm_tm_zone=yes | |
bc5afba4 | 11379 | else |
ed698112 NN |
11380 | echo "$as_me: failed program was:" >&5 |
11381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11382 | ||
ade710a5 | 11383 | ac_cv_member_struct_tm_tm_zone=no |
5aac1dac | 11384 | fi |
ed698112 | 11385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 11386 | fi |
ed698112 NN |
11387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11388 | fi | |
ade710a5 TF |
11389 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
11390 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
ed698112 NN |
11391 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
11392 | ||
11393 | cat >>confdefs.h <<_ACEOF | |
11394 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
11395 | _ACEOF | |
11396 | ||
11397 | ||
11398 | fi | |
11399 | ||
11400 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
5aac1dac | 11401 | |
ed698112 | 11402 | cat >>confdefs.h <<\_ACEOF |
5aac1dac | 11403 | #define HAVE_TM_ZONE 1 |
ed698112 | 11404 | _ACEOF |
5aac1dac TT |
11405 | |
11406 | else | |
ade710a5 TF |
11407 | echo "$as_me:$LINENO: checking for tzname" >&5 |
11408 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
11409 | if test "${ac_cv_var_tzname+set}" = set; then | |
02809848 PB |
11410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11411 | else | |
ade710a5 TF |
11412 | if test x$gcc_no_link = xyes; then |
11413 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11414 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11415 | { (exit 1); exit 1; }; } | |
11416 | fi | |
11417 | cat >conftest.$ac_ext <<_ACEOF | |
02809848 PB |
11418 | /* confdefs.h. */ |
11419 | _ACEOF | |
11420 | cat confdefs.h >>conftest.$ac_ext | |
11421 | cat >>conftest.$ac_ext <<_ACEOF | |
11422 | /* end confdefs.h. */ | |
11423 | #include <time.h> | |
ade710a5 TF |
11424 | #ifndef tzname /* For SGI. */ |
11425 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
11426 | #endif | |
02809848 PB |
11427 | |
11428 | int | |
11429 | main () | |
11430 | { | |
ade710a5 | 11431 | atoi(*tzname); |
02809848 PB |
11432 | ; |
11433 | return 0; | |
11434 | } | |
11435 | _ACEOF | |
ade710a5 TF |
11436 | rm -f conftest.$ac_objext conftest$ac_exeext |
11437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11438 | (eval $ac_link) 2>conftest.er1 | |
02809848 PB |
11439 | ac_status=$? |
11440 | grep -v '^ *+' conftest.er1 >conftest.err | |
11441 | rm -f conftest.er1 | |
11442 | cat conftest.err >&5 | |
11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11444 | (exit $ac_status); } && | |
ade710a5 TF |
11445 | { ac_try='test -z "$ac_c_werror_flag" |
11446 | || test ! -s conftest.err' | |
02809848 PB |
11447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11448 | (eval $ac_try) 2>&5 | |
11449 | ac_status=$? | |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 | (exit $ac_status); }; } && | |
ade710a5 | 11452 | { ac_try='test -s conftest$ac_exeext' |
02809848 PB |
11453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11454 | (eval $ac_try) 2>&5 | |
11455 | ac_status=$? | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); }; }; then | |
ade710a5 | 11458 | ac_cv_var_tzname=yes |
02809848 PB |
11459 | else |
11460 | echo "$as_me: failed program was:" >&5 | |
11461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11462 | ||
ade710a5 | 11463 | ac_cv_var_tzname=no |
02809848 | 11464 | fi |
ed698112 NN |
11465 | rm -f conftest.err conftest.$ac_objext \ |
11466 | conftest$ac_exeext conftest.$ac_ext | |
bc5afba4 | 11467 | fi |
ade710a5 TF |
11468 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
11469 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
5aac1dac | 11470 | if test $ac_cv_var_tzname = yes; then |
ed698112 NN |
11471 | |
11472 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11473 | #define HAVE_TZNAME 1 |
ed698112 | 11474 | _ACEOF |
5aac1dac TT |
11475 | |
11476 | fi | |
11477 | fi | |
11478 | ||
11479 | ||
ed698112 NN |
11480 | |
11481 | ||
11482 | for ac_func in gethostbyname_r | |
ee9dd372 | 11483 | do |
ed698112 | 11484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
11485 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11487 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
11488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11489 | else | |
11490 | if test x$gcc_no_link = xyes; then | |
11491 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11492 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11493 | { (exit 1); exit 1; }; } | |
11494 | fi | |
11495 | cat >conftest.$ac_ext <<_ACEOF | |
11496 | /* confdefs.h. */ | |
11497 | _ACEOF | |
11498 | cat confdefs.h >>conftest.$ac_ext | |
11499 | cat >>conftest.$ac_ext <<_ACEOF | |
11500 | /* end confdefs.h. */ | |
11501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11503 | #define $ac_func innocuous_$ac_func | |
11504 | ||
ee9dd372 | 11505 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
11506 | which can conflict with char $ac_func (); below. |
11507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11508 | <limits.h> exists even on freestanding compilers. */ | |
11509 | ||
11510 | #ifdef __STDC__ | |
11511 | # include <limits.h> | |
11512 | #else | |
11513 | # include <assert.h> | |
11514 | #endif | |
ee9dd372 | 11515 | |
ed698112 | 11516 | #undef $ac_func |
ee9dd372 | 11517 | |
ade710a5 | 11518 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
11519 | #ifdef __cplusplus |
11520 | extern "C" | |
ade710a5 | 11521 | { |
ed698112 | 11522 | #endif |
ade710a5 TF |
11523 | /* We use char because int might match the return type of a gcc2 |
11524 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 11525 | char $ac_func (); |
ee9dd372 TT |
11526 | /* The GNU C library defines this for functions which it implements |
11527 | to always fail with ENOSYS. Some functions are actually named | |
11528 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 11529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
ee9dd372 | 11530 | choke me |
ade710a5 TF |
11531 | #else |
11532 | char (*f) () = $ac_func; | |
11533 | #endif | |
11534 | #ifdef __cplusplus | |
11535 | } | |
ee9dd372 TT |
11536 | #endif |
11537 | ||
ed698112 NN |
11538 | int |
11539 | main () | |
11540 | { | |
ade710a5 | 11541 | return f != $ac_func; |
ed698112 NN |
11542 | ; |
11543 | return 0; | |
11544 | } | |
11545 | _ACEOF | |
11546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11548 | (eval $ac_link) 2>conftest.er1 | |
11549 | ac_status=$? | |
11550 | grep -v '^ *+' conftest.er1 >conftest.err | |
11551 | rm -f conftest.er1 | |
11552 | cat conftest.err >&5 | |
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11554 | (exit $ac_status); } && | |
ade710a5 TF |
11555 | { ac_try='test -z "$ac_c_werror_flag" |
11556 | || test ! -s conftest.err' | |
ed698112 NN |
11557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11558 | (eval $ac_try) 2>&5 | |
11559 | ac_status=$? | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11561 | (exit $ac_status); }; } && | |
11562 | { ac_try='test -s conftest$ac_exeext' | |
11563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11564 | (eval $ac_try) 2>&5 | |
11565 | ac_status=$? | |
11566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11567 | (exit $ac_status); }; }; then | |
11568 | eval "$as_ac_var=yes" | |
11569 | else | |
11570 | echo "$as_me: failed program was:" >&5 | |
11571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11572 | ||
ade710a5 | 11573 | eval "$as_ac_var=no" |
ed698112 NN |
11574 | fi |
11575 | rm -f conftest.err conftest.$ac_objext \ | |
11576 | conftest$ac_exeext conftest.$ac_ext | |
11577 | fi | |
ade710a5 TF |
11578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
11580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11581 | cat >>confdefs.h <<_ACEOF | |
11582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11583 | _ACEOF | |
11584 | ||
11585 | ||
11586 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11587 | #define HAVE_GETHOSTBYNAME_R 1 |
ed698112 | 11588 | _ACEOF |
5aac1dac TT |
11589 | |
11590 | # There are two different kinds of gethostbyname_r. | |
11591 | # We look for the one that returns `int'. | |
11592 | # Hopefully this check is robust enough. | |
ed698112 NN |
11593 | cat >conftest.$ac_ext <<_ACEOF |
11594 | /* confdefs.h. */ | |
11595 | _ACEOF | |
11596 | cat confdefs.h >>conftest.$ac_ext | |
11597 | cat >>conftest.$ac_ext <<_ACEOF | |
11598 | /* end confdefs.h. */ | |
5aac1dac | 11599 | #include <netdb.h> |
ed698112 NN |
11600 | |
11601 | _ACEOF | |
5aac1dac | 11602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
11603 | $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then |
11604 | ||
11605 | ||
11606 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11607 | #define GETHOSTBYNAME_R_RETURNS_INT 1 |
ed698112 | 11608 | _ACEOF |
5aac1dac | 11609 | |
ee9dd372 | 11610 | fi |
5aac1dac | 11611 | rm -f conftest* |
ee9dd372 | 11612 | |
ee9dd372 | 11613 | |
5aac1dac TT |
11614 | case " $GCINCS " in |
11615 | *" -D_REENTRANT "*) ;; | |
11616 | *) | |
ade710a5 TF |
11617 | echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5 |
11618 | echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6 | |
ed698112 NN |
11619 | if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then |
11620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11621 | else | |
ade710a5 | 11622 | ac_ext=cc |
ed698112 NN |
11623 | ac_cpp='$CXXCPP $CPPFLAGS' |
11624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11627 | ||
11628 | cat >conftest.$ac_ext <<_ACEOF | |
11629 | /* confdefs.h. */ | |
11630 | _ACEOF | |
11631 | cat confdefs.h >>conftest.$ac_ext | |
11632 | cat >>conftest.$ac_ext <<_ACEOF | |
11633 | /* end confdefs.h. */ | |
5aac1dac | 11634 | #include <netdb.h> |
ed698112 NN |
11635 | int |
11636 | main () | |
11637 | { | |
5aac1dac | 11638 | gethostbyname_r("", 0, 0); |
ed698112 NN |
11639 | ; |
11640 | return 0; | |
11641 | } | |
11642 | _ACEOF | |
11643 | rm -f conftest.$ac_objext | |
11644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11645 | (eval $ac_compile) 2>conftest.er1 | |
11646 | ac_status=$? | |
11647 | grep -v '^ *+' conftest.er1 >conftest.err | |
11648 | rm -f conftest.er1 | |
11649 | cat conftest.err >&5 | |
11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11651 | (exit $ac_status); } && | |
ade710a5 TF |
11652 | { ac_try='test -z "$ac_cxx_werror_flag" |
11653 | || test ! -s conftest.err' | |
ed698112 NN |
11654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11655 | (eval $ac_try) 2>&5 | |
11656 | ac_status=$? | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); }; } && | |
11659 | { ac_try='test -s conftest.$ac_objext' | |
11660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11661 | (eval $ac_try) 2>&5 | |
11662 | ac_status=$? | |
11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11664 | (exit $ac_status); }; }; then | |
5aac1dac TT |
11665 | libjava_cv_gethostbyname_r_needs_reentrant=no |
11666 | else | |
ed698112 NN |
11667 | echo "$as_me: failed program was:" >&5 |
11668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11669 | ||
ade710a5 | 11670 | CPPFLAGS_SAVE="$CPPFLAGS" |
5aac1dac | 11671 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
ed698112 NN |
11672 | cat >conftest.$ac_ext <<_ACEOF |
11673 | /* confdefs.h. */ | |
11674 | _ACEOF | |
11675 | cat confdefs.h >>conftest.$ac_ext | |
11676 | cat >>conftest.$ac_ext <<_ACEOF | |
11677 | /* end confdefs.h. */ | |
5aac1dac | 11678 | #include <netdb.h> |
ed698112 NN |
11679 | int |
11680 | main () | |
11681 | { | |
5aac1dac | 11682 | gethostbyname_r("", 0, 0); |
ed698112 NN |
11683 | ; |
11684 | return 0; | |
11685 | } | |
11686 | _ACEOF | |
11687 | rm -f conftest.$ac_objext | |
11688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11689 | (eval $ac_compile) 2>conftest.er1 | |
11690 | ac_status=$? | |
11691 | grep -v '^ *+' conftest.er1 >conftest.err | |
11692 | rm -f conftest.er1 | |
11693 | cat conftest.err >&5 | |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11695 | (exit $ac_status); } && | |
ade710a5 TF |
11696 | { ac_try='test -z "$ac_cxx_werror_flag" |
11697 | || test ! -s conftest.err' | |
ed698112 NN |
11698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11699 | (eval $ac_try) 2>&5 | |
11700 | ac_status=$? | |
11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11702 | (exit $ac_status); }; } && | |
11703 | { ac_try='test -s conftest.$ac_objext' | |
11704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11705 | (eval $ac_try) 2>&5 | |
11706 | ac_status=$? | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); }; }; then | |
5aac1dac TT |
11709 | libjava_cv_gethostbyname_r_needs_reentrant=yes |
11710 | else | |
ed698112 NN |
11711 | echo "$as_me: failed program was:" >&5 |
11712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11713 | ||
ade710a5 | 11714 | libjava_cv_gethostbyname_r_needs_reentrant=fail |
5aac1dac | 11715 | fi |
ed698112 | 11716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 11717 | CPPFLAGS="$CPPFLAGS_SAVE" |
ed698112 | 11718 | |
5aac1dac | 11719 | fi |
ed698112 | 11720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 11721 | ac_ext=c |
5aac1dac | 11722 | ac_cpp='$CPP $CPPFLAGS' |
ed698112 NN |
11723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5aac1dac | 11726 | |
5aac1dac | 11727 | |
ed698112 | 11728 | fi |
ade710a5 TF |
11729 | echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5 |
11730 | echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6 | |
5aac1dac | 11731 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then |
ed698112 NN |
11732 | |
11733 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11734 | #define _REENTRANT 1 |
ed698112 | 11735 | _ACEOF |
5aac1dac TT |
11736 | |
11737 | fi | |
11738 | ;; | |
11739 | esac | |
ee9dd372 | 11740 | |
ade710a5 TF |
11741 | echo "$as_me:$LINENO: checking for struct hostent_data" >&5 |
11742 | echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6 | |
ed698112 NN |
11743 | if test "${libjava_cv_struct_hostent_data+set}" = set; then |
11744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 11745 | else |
ed698112 NN |
11746 | cat >conftest.$ac_ext <<_ACEOF |
11747 | /* confdefs.h. */ | |
11748 | _ACEOF | |
11749 | cat confdefs.h >>conftest.$ac_ext | |
11750 | cat >>conftest.$ac_ext <<_ACEOF | |
11751 | /* end confdefs.h. */ | |
ee9dd372 | 11752 | |
5aac1dac TT |
11753 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT) |
11754 | # define _REENTRANT 1 | |
ee9dd372 | 11755 | #endif |
5aac1dac | 11756 | #include <netdb.h> |
ed698112 NN |
11757 | int |
11758 | main () | |
11759 | { | |
5aac1dac | 11760 | struct hostent_data data; |
ed698112 NN |
11761 | ; |
11762 | return 0; | |
11763 | } | |
11764 | _ACEOF | |
11765 | rm -f conftest.$ac_objext | |
11766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11767 | (eval $ac_compile) 2>conftest.er1 | |
11768 | ac_status=$? | |
11769 | grep -v '^ *+' conftest.er1 >conftest.err | |
11770 | rm -f conftest.er1 | |
11771 | cat conftest.err >&5 | |
11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11773 | (exit $ac_status); } && | |
ade710a5 TF |
11774 | { ac_try='test -z "$ac_c_werror_flag" |
11775 | || test ! -s conftest.err' | |
ed698112 NN |
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); }; } && | |
11781 | { ac_try='test -s conftest.$ac_objext' | |
11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11783 | (eval $ac_try) 2>&5 | |
11784 | ac_status=$? | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); }; }; then | |
5aac1dac | 11787 | libjava_cv_struct_hostent_data=yes |
ee9dd372 | 11788 | else |
ed698112 NN |
11789 | echo "$as_me: failed program was:" >&5 |
11790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11791 | ||
ade710a5 | 11792 | libjava_cv_struct_hostent_data=no |
ee9dd372 | 11793 | fi |
ed698112 | 11794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ee9dd372 | 11795 | fi |
ade710a5 TF |
11796 | echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5 |
11797 | echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6 | |
5aac1dac | 11798 | if test "x$libjava_cv_struct_hostent_data" = xyes; then |
ed698112 NN |
11799 | |
11800 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11801 | #define HAVE_STRUCT_HOSTENT_DATA 1 |
ed698112 | 11802 | _ACEOF |
5aac1dac TT |
11803 | |
11804 | fi | |
ed698112 | 11805 | |
ee9dd372 TT |
11806 | fi |
11807 | done | |
11808 | ||
ee9dd372 | 11809 | |
5aac1dac TT |
11810 | # FIXME: libjava source code expects to find a prototype for |
11811 | # gethostbyaddr_r in netdb.h. The outer check ensures that | |
11812 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails | |
11813 | # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C | |
11814 | # linkage check is enough, yet C++ code requires proper prototypes.) | |
ed698112 NN |
11815 | cat >conftest.$ac_ext <<_ACEOF |
11816 | /* confdefs.h. */ | |
11817 | _ACEOF | |
11818 | cat confdefs.h >>conftest.$ac_ext | |
11819 | cat >>conftest.$ac_ext <<_ACEOF | |
11820 | /* end confdefs.h. */ | |
5aac1dac | 11821 | #include <netdb.h> |
ed698112 NN |
11822 | |
11823 | _ACEOF | |
5aac1dac | 11824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
11825 | $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then |
11826 | ||
11827 | ||
11828 | for ac_func in gethostbyaddr_r | |
ee9dd372 | 11829 | do |
ed698112 | 11830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
11831 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11833 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11835 | else | |
11836 | if test x$gcc_no_link = xyes; then | |
11837 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11838 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11839 | { (exit 1); exit 1; }; } | |
11840 | fi | |
11841 | cat >conftest.$ac_ext <<_ACEOF | |
11842 | /* confdefs.h. */ | |
11843 | _ACEOF | |
11844 | cat confdefs.h >>conftest.$ac_ext | |
11845 | cat >>conftest.$ac_ext <<_ACEOF | |
11846 | /* end confdefs.h. */ | |
11847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11849 | #define $ac_func innocuous_$ac_func | |
11850 | ||
ee9dd372 | 11851 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
11852 | which can conflict with char $ac_func (); below. |
11853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11854 | <limits.h> exists even on freestanding compilers. */ | |
ee9dd372 | 11855 | |
ed698112 NN |
11856 | #ifdef __STDC__ |
11857 | # include <limits.h> | |
11858 | #else | |
11859 | # include <assert.h> | |
11860 | #endif | |
ee9dd372 | 11861 | |
ed698112 NN |
11862 | #undef $ac_func |
11863 | ||
ade710a5 | 11864 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
11865 | #ifdef __cplusplus |
11866 | extern "C" | |
ade710a5 | 11867 | { |
ed698112 | 11868 | #endif |
ade710a5 TF |
11869 | /* We use char because int might match the return type of a gcc2 |
11870 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 11871 | char $ac_func (); |
ee9dd372 TT |
11872 | /* The GNU C library defines this for functions which it implements |
11873 | to always fail with ENOSYS. Some functions are actually named | |
11874 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 11875 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
ee9dd372 | 11876 | choke me |
ade710a5 TF |
11877 | #else |
11878 | char (*f) () = $ac_func; | |
11879 | #endif | |
11880 | #ifdef __cplusplus | |
11881 | } | |
ee9dd372 TT |
11882 | #endif |
11883 | ||
ed698112 NN |
11884 | int |
11885 | main () | |
11886 | { | |
ade710a5 | 11887 | return f != $ac_func; |
ed698112 NN |
11888 | ; |
11889 | return 0; | |
11890 | } | |
11891 | _ACEOF | |
11892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11894 | (eval $ac_link) 2>conftest.er1 | |
11895 | ac_status=$? | |
11896 | grep -v '^ *+' conftest.er1 >conftest.err | |
11897 | rm -f conftest.er1 | |
11898 | cat conftest.err >&5 | |
11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11900 | (exit $ac_status); } && | |
ade710a5 TF |
11901 | { ac_try='test -z "$ac_c_werror_flag" |
11902 | || test ! -s conftest.err' | |
ed698112 NN |
11903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11904 | (eval $ac_try) 2>&5 | |
11905 | ac_status=$? | |
11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11907 | (exit $ac_status); }; } && | |
11908 | { ac_try='test -s conftest$ac_exeext' | |
11909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11910 | (eval $ac_try) 2>&5 | |
11911 | ac_status=$? | |
11912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); }; }; then | |
11914 | eval "$as_ac_var=yes" | |
11915 | else | |
11916 | echo "$as_me: failed program was:" >&5 | |
11917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11918 | ||
ade710a5 | 11919 | eval "$as_ac_var=no" |
ed698112 NN |
11920 | fi |
11921 | rm -f conftest.err conftest.$ac_objext \ | |
11922 | conftest$ac_exeext conftest.$ac_ext | |
11923 | fi | |
ade710a5 TF |
11924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11925 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
11926 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11927 | cat >>confdefs.h <<_ACEOF | |
11928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11929 | _ACEOF | |
11930 | ||
11931 | ||
11932 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11933 | #define HAVE_GETHOSTBYADDR_R 1 |
ed698112 | 11934 | _ACEOF |
ee9dd372 | 11935 | |
5aac1dac TT |
11936 | # There are two different kinds of gethostbyaddr_r. |
11937 | # We look for the one that returns `int'. | |
11938 | # Hopefully this check is robust enough. | |
ed698112 NN |
11939 | cat >conftest.$ac_ext <<_ACEOF |
11940 | /* confdefs.h. */ | |
11941 | _ACEOF | |
11942 | cat confdefs.h >>conftest.$ac_ext | |
11943 | cat >>conftest.$ac_ext <<_ACEOF | |
11944 | /* end confdefs.h. */ | |
5aac1dac | 11945 | #include <netdb.h> |
ed698112 NN |
11946 | |
11947 | _ACEOF | |
5aac1dac | 11948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
11949 | $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then |
11950 | ||
11951 | ||
11952 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 11953 | #define GETHOSTBYADDR_R_RETURNS_INT 1 |
ed698112 | 11954 | _ACEOF |
8107bcf9 | 11955 | |
5aac1dac TT |
11956 | fi |
11957 | rm -f conftest* | |
11958 | ||
8107bcf9 | 11959 | fi |
5aac1dac | 11960 | done |
8107bcf9 | 11961 | |
5aac1dac TT |
11962 | fi |
11963 | rm -f conftest* | |
8107bcf9 | 11964 | |
f994389b | 11965 | |
ed698112 NN |
11966 | |
11967 | for ac_func in gethostname | |
5aac1dac | 11968 | do |
ed698112 | 11969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
11970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
11973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11974 | else | |
11975 | if test x$gcc_no_link = xyes; then | |
11976 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11977 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11978 | { (exit 1); exit 1; }; } | |
11979 | fi | |
11980 | cat >conftest.$ac_ext <<_ACEOF | |
11981 | /* confdefs.h. */ | |
11982 | _ACEOF | |
11983 | cat confdefs.h >>conftest.$ac_ext | |
11984 | cat >>conftest.$ac_ext <<_ACEOF | |
11985 | /* end confdefs.h. */ | |
11986 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11988 | #define $ac_func innocuous_$ac_func | |
11989 | ||
f994389b | 11990 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
11991 | which can conflict with char $ac_func (); below. |
11992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11993 | <limits.h> exists even on freestanding compilers. */ | |
11994 | ||
11995 | #ifdef __STDC__ | |
11996 | # include <limits.h> | |
11997 | #else | |
11998 | # include <assert.h> | |
11999 | #endif | |
f994389b | 12000 | |
ed698112 | 12001 | #undef $ac_func |
f994389b | 12002 | |
ade710a5 | 12003 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12004 | #ifdef __cplusplus |
12005 | extern "C" | |
ade710a5 | 12006 | { |
ed698112 | 12007 | #endif |
ade710a5 TF |
12008 | /* We use char because int might match the return type of a gcc2 |
12009 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 12010 | char $ac_func (); |
f994389b TT |
12011 | /* The GNU C library defines this for functions which it implements |
12012 | to always fail with ENOSYS. Some functions are actually named | |
12013 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f994389b | 12015 | choke me |
ade710a5 TF |
12016 | #else |
12017 | char (*f) () = $ac_func; | |
12018 | #endif | |
12019 | #ifdef __cplusplus | |
12020 | } | |
f994389b TT |
12021 | #endif |
12022 | ||
ed698112 NN |
12023 | int |
12024 | main () | |
12025 | { | |
ade710a5 | 12026 | return f != $ac_func; |
ed698112 NN |
12027 | ; |
12028 | return 0; | |
12029 | } | |
12030 | _ACEOF | |
12031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12033 | (eval $ac_link) 2>conftest.er1 | |
12034 | ac_status=$? | |
12035 | grep -v '^ *+' conftest.er1 >conftest.err | |
12036 | rm -f conftest.er1 | |
12037 | cat conftest.err >&5 | |
12038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12039 | (exit $ac_status); } && | |
ade710a5 TF |
12040 | { ac_try='test -z "$ac_c_werror_flag" |
12041 | || test ! -s conftest.err' | |
ed698112 NN |
12042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12043 | (eval $ac_try) 2>&5 | |
12044 | ac_status=$? | |
12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12046 | (exit $ac_status); }; } && | |
12047 | { ac_try='test -s conftest$ac_exeext' | |
12048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12049 | (eval $ac_try) 2>&5 | |
12050 | ac_status=$? | |
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12052 | (exit $ac_status); }; }; then | |
12053 | eval "$as_ac_var=yes" | |
12054 | else | |
12055 | echo "$as_me: failed program was:" >&5 | |
12056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12057 | ||
ade710a5 | 12058 | eval "$as_ac_var=no" |
ed698112 NN |
12059 | fi |
12060 | rm -f conftest.err conftest.$ac_objext \ | |
12061 | conftest$ac_exeext conftest.$ac_ext | |
12062 | fi | |
ade710a5 TF |
12063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12064 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
12065 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12066 | cat >>confdefs.h <<_ACEOF | |
12067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12068 | _ACEOF | |
12069 | ||
12070 | ||
12071 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12072 | #define HAVE_GETHOSTNAME 1 |
ed698112 NN |
12073 | _ACEOF |
12074 | ||
12075 | cat >conftest.$ac_ext <<_ACEOF | |
12076 | /* confdefs.h. */ | |
12077 | _ACEOF | |
12078 | cat confdefs.h >>conftest.$ac_ext | |
12079 | cat >>conftest.$ac_ext <<_ACEOF | |
12080 | /* end confdefs.h. */ | |
5aac1dac | 12081 | #include <unistd.h> |
ed698112 NN |
12082 | |
12083 | _ACEOF | |
5aac1dac | 12084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
12085 | $EGREP "gethostname" >/dev/null 2>&1; then |
12086 | ||
12087 | ||
12088 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12089 | #define HAVE_GETHOSTNAME_DECL 1 |
ed698112 | 12090 | _ACEOF |
5aac1dac | 12091 | |
f994389b TT |
12092 | fi |
12093 | rm -f conftest* | |
f994389b | 12094 | |
6b3517ea RO |
12095 | fi |
12096 | done | |
12097 | ||
12098 | ||
ed698112 NN |
12099 | |
12100 | for ac_func in usleep | |
6b3517ea | 12101 | do |
ed698112 | 12102 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
12103 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12104 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12105 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
12106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12107 | else | |
12108 | if test x$gcc_no_link = xyes; then | |
12109 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12110 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12111 | { (exit 1); exit 1; }; } | |
12112 | fi | |
12113 | cat >conftest.$ac_ext <<_ACEOF | |
12114 | /* confdefs.h. */ | |
12115 | _ACEOF | |
12116 | cat confdefs.h >>conftest.$ac_ext | |
12117 | cat >>conftest.$ac_ext <<_ACEOF | |
12118 | /* end confdefs.h. */ | |
12119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12121 | #define $ac_func innocuous_$ac_func | |
12122 | ||
6b3517ea | 12123 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
12124 | which can conflict with char $ac_func (); below. |
12125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12126 | <limits.h> exists even on freestanding compilers. */ | |
6b3517ea | 12127 | |
ed698112 NN |
12128 | #ifdef __STDC__ |
12129 | # include <limits.h> | |
12130 | #else | |
12131 | # include <assert.h> | |
12132 | #endif | |
6b3517ea | 12133 | |
ed698112 NN |
12134 | #undef $ac_func |
12135 | ||
ade710a5 | 12136 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12137 | #ifdef __cplusplus |
12138 | extern "C" | |
ade710a5 | 12139 | { |
ed698112 | 12140 | #endif |
ade710a5 TF |
12141 | /* We use char because int might match the return type of a gcc2 |
12142 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
12143 | char $ac_func (); |
12144 | /* The GNU C library defines this for functions which it implements | |
12145 | to always fail with ENOSYS. Some functions are actually named | |
12146 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
6b3517ea | 12148 | choke me |
ade710a5 TF |
12149 | #else |
12150 | char (*f) () = $ac_func; | |
12151 | #endif | |
12152 | #ifdef __cplusplus | |
12153 | } | |
6b3517ea RO |
12154 | #endif |
12155 | ||
ed698112 NN |
12156 | int |
12157 | main () | |
12158 | { | |
ade710a5 | 12159 | return f != $ac_func; |
ed698112 NN |
12160 | ; |
12161 | return 0; | |
12162 | } | |
12163 | _ACEOF | |
12164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12166 | (eval $ac_link) 2>conftest.er1 | |
12167 | ac_status=$? | |
12168 | grep -v '^ *+' conftest.er1 >conftest.err | |
12169 | rm -f conftest.er1 | |
12170 | cat conftest.err >&5 | |
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12172 | (exit $ac_status); } && | |
ade710a5 TF |
12173 | { ac_try='test -z "$ac_c_werror_flag" |
12174 | || test ! -s conftest.err' | |
ed698112 NN |
12175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12176 | (eval $ac_try) 2>&5 | |
12177 | ac_status=$? | |
12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12179 | (exit $ac_status); }; } && | |
12180 | { ac_try='test -s conftest$ac_exeext' | |
12181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12182 | (eval $ac_try) 2>&5 | |
12183 | ac_status=$? | |
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12185 | (exit $ac_status); }; }; then | |
12186 | eval "$as_ac_var=yes" | |
12187 | else | |
12188 | echo "$as_me: failed program was:" >&5 | |
12189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12190 | ||
ade710a5 | 12191 | eval "$as_ac_var=no" |
ed698112 NN |
12192 | fi |
12193 | rm -f conftest.err conftest.$ac_objext \ | |
12194 | conftest$ac_exeext conftest.$ac_ext | |
12195 | fi | |
ade710a5 TF |
12196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12197 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
12198 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12199 | cat >>confdefs.h <<_ACEOF | |
12200 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12201 | _ACEOF | |
12202 | ||
12203 | cat >conftest.$ac_ext <<_ACEOF | |
12204 | /* confdefs.h. */ | |
12205 | _ACEOF | |
12206 | cat confdefs.h >>conftest.$ac_ext | |
12207 | cat >>conftest.$ac_ext <<_ACEOF | |
12208 | /* end confdefs.h. */ | |
6b3517ea | 12209 | #include <unistd.h> |
ed698112 NN |
12210 | |
12211 | _ACEOF | |
6b3517ea | 12212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 NN |
12213 | $EGREP "usleep" >/dev/null 2>&1; then |
12214 | ||
12215 | ||
12216 | cat >>confdefs.h <<\_ACEOF | |
6b3517ea | 12217 | #define HAVE_USLEEP_DECL 1 |
ed698112 | 12218 | _ACEOF |
6b3517ea RO |
12219 | |
12220 | fi | |
12221 | rm -f conftest* | |
12222 | ||
f994389b | 12223 | fi |
5aac1dac | 12224 | done |
f994389b | 12225 | |
5aac1dac TT |
12226 | |
12227 | # Look for these functions in the thread library, but only bother | |
12228 | # if using POSIX threads. | |
12229 | if test "$THREADS" = posix; then | |
12230 | save_LIBS="$LIBS" | |
12231 | LIBS="$LIBS $THREADLIBS" | |
12232 | # Some POSIX thread systems don't have pthread_mutexattr_settype. | |
12233 | # E.g., Solaris. | |
ed698112 NN |
12234 | |
12235 | ||
12236 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np | |
5aac1dac | 12237 | do |
ed698112 | 12238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
12239 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12241 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
12242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12243 | else | |
12244 | if test x$gcc_no_link = xyes; then | |
12245 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12246 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12247 | { (exit 1); exit 1; }; } | |
12248 | fi | |
12249 | cat >conftest.$ac_ext <<_ACEOF | |
12250 | /* confdefs.h. */ | |
12251 | _ACEOF | |
12252 | cat confdefs.h >>conftest.$ac_ext | |
12253 | cat >>conftest.$ac_ext <<_ACEOF | |
12254 | /* end confdefs.h. */ | |
12255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12257 | #define $ac_func innocuous_$ac_func | |
12258 | ||
f994389b | 12259 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
12260 | which can conflict with char $ac_func (); below. |
12261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12262 | <limits.h> exists even on freestanding compilers. */ | |
f994389b | 12263 | |
ed698112 NN |
12264 | #ifdef __STDC__ |
12265 | # include <limits.h> | |
12266 | #else | |
12267 | # include <assert.h> | |
12268 | #endif | |
f994389b | 12269 | |
ed698112 NN |
12270 | #undef $ac_func |
12271 | ||
ade710a5 | 12272 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12273 | #ifdef __cplusplus |
12274 | extern "C" | |
ade710a5 | 12275 | { |
ed698112 | 12276 | #endif |
ade710a5 TF |
12277 | /* We use char because int might match the return type of a gcc2 |
12278 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 12279 | char $ac_func (); |
f994389b TT |
12280 | /* The GNU C library defines this for functions which it implements |
12281 | to always fail with ENOSYS. Some functions are actually named | |
12282 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f994389b | 12284 | choke me |
ade710a5 TF |
12285 | #else |
12286 | char (*f) () = $ac_func; | |
12287 | #endif | |
12288 | #ifdef __cplusplus | |
12289 | } | |
f994389b TT |
12290 | #endif |
12291 | ||
ed698112 NN |
12292 | int |
12293 | main () | |
12294 | { | |
ade710a5 | 12295 | return f != $ac_func; |
ed698112 NN |
12296 | ; |
12297 | return 0; | |
12298 | } | |
12299 | _ACEOF | |
12300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12302 | (eval $ac_link) 2>conftest.er1 | |
12303 | ac_status=$? | |
12304 | grep -v '^ *+' conftest.er1 >conftest.err | |
12305 | rm -f conftest.er1 | |
12306 | cat conftest.err >&5 | |
12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12308 | (exit $ac_status); } && | |
ade710a5 TF |
12309 | { ac_try='test -z "$ac_c_werror_flag" |
12310 | || test ! -s conftest.err' | |
ed698112 NN |
12311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12312 | (eval $ac_try) 2>&5 | |
12313 | ac_status=$? | |
12314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12315 | (exit $ac_status); }; } && | |
12316 | { ac_try='test -s conftest$ac_exeext' | |
12317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12318 | (eval $ac_try) 2>&5 | |
12319 | ac_status=$? | |
12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12321 | (exit $ac_status); }; }; then | |
12322 | eval "$as_ac_var=yes" | |
12323 | else | |
12324 | echo "$as_me: failed program was:" >&5 | |
12325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12326 | ||
ade710a5 | 12327 | eval "$as_ac_var=no" |
ed698112 NN |
12328 | fi |
12329 | rm -f conftest.err conftest.$ac_objext \ | |
12330 | conftest$ac_exeext conftest.$ac_ext | |
12331 | fi | |
ade710a5 TF |
12332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
12334 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12335 | cat >>confdefs.h <<_ACEOF | |
12336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12337 | _ACEOF | |
f994389b | 12338 | |
5aac1dac TT |
12339 | fi |
12340 | done | |
12341 | ||
12342 | ||
12343 | # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since | |
12344 | # Solaris 7 the name librt is preferred. | |
ed698112 NN |
12345 | |
12346 | for ac_func in sched_yield | |
5aac1dac | 12347 | do |
ed698112 | 12348 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
12349 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12350 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12351 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
12352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12353 | else | |
12354 | if test x$gcc_no_link = xyes; then | |
12355 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12356 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12357 | { (exit 1); exit 1; }; } | |
12358 | fi | |
12359 | cat >conftest.$ac_ext <<_ACEOF | |
12360 | /* confdefs.h. */ | |
12361 | _ACEOF | |
12362 | cat confdefs.h >>conftest.$ac_ext | |
12363 | cat >>conftest.$ac_ext <<_ACEOF | |
12364 | /* end confdefs.h. */ | |
12365 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12367 | #define $ac_func innocuous_$ac_func | |
12368 | ||
f994389b | 12369 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
12370 | which can conflict with char $ac_func (); below. |
12371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12372 | <limits.h> exists even on freestanding compilers. */ | |
12373 | ||
12374 | #ifdef __STDC__ | |
12375 | # include <limits.h> | |
12376 | #else | |
12377 | # include <assert.h> | |
12378 | #endif | |
f994389b | 12379 | |
ed698112 | 12380 | #undef $ac_func |
f994389b | 12381 | |
ade710a5 | 12382 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12383 | #ifdef __cplusplus |
12384 | extern "C" | |
ade710a5 | 12385 | { |
ed698112 | 12386 | #endif |
ade710a5 TF |
12387 | /* We use char because int might match the return type of a gcc2 |
12388 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 12389 | char $ac_func (); |
f994389b TT |
12390 | /* The GNU C library defines this for functions which it implements |
12391 | to always fail with ENOSYS. Some functions are actually named | |
12392 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12393 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f994389b | 12394 | choke me |
ade710a5 TF |
12395 | #else |
12396 | char (*f) () = $ac_func; | |
12397 | #endif | |
12398 | #ifdef __cplusplus | |
12399 | } | |
f994389b TT |
12400 | #endif |
12401 | ||
ed698112 NN |
12402 | int |
12403 | main () | |
12404 | { | |
ade710a5 | 12405 | return f != $ac_func; |
ed698112 NN |
12406 | ; |
12407 | return 0; | |
12408 | } | |
12409 | _ACEOF | |
12410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12412 | (eval $ac_link) 2>conftest.er1 | |
12413 | ac_status=$? | |
12414 | grep -v '^ *+' conftest.er1 >conftest.err | |
12415 | rm -f conftest.er1 | |
12416 | cat conftest.err >&5 | |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12418 | (exit $ac_status); } && | |
ade710a5 TF |
12419 | { ac_try='test -z "$ac_c_werror_flag" |
12420 | || test ! -s conftest.err' | |
ed698112 NN |
12421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12422 | (eval $ac_try) 2>&5 | |
12423 | ac_status=$? | |
12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12425 | (exit $ac_status); }; } && | |
12426 | { ac_try='test -s conftest$ac_exeext' | |
12427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12428 | (eval $ac_try) 2>&5 | |
12429 | ac_status=$? | |
12430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12431 | (exit $ac_status); }; }; then | |
12432 | eval "$as_ac_var=yes" | |
12433 | else | |
12434 | echo "$as_me: failed program was:" >&5 | |
12435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12436 | ||
ade710a5 | 12437 | eval "$as_ac_var=no" |
ed698112 NN |
12438 | fi |
12439 | rm -f conftest.err conftest.$ac_objext \ | |
12440 | conftest$ac_exeext conftest.$ac_ext | |
12441 | fi | |
ade710a5 TF |
12442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12443 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
12444 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12445 | cat >>confdefs.h <<_ACEOF | |
12446 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12447 | _ACEOF | |
12448 | ||
12449 | else | |
12450 | ||
ade710a5 TF |
12451 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
12452 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 | |
ed698112 NN |
12453 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
12454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12455 | else | |
12456 | ac_check_lib_save_LIBS=$LIBS | |
5aac1dac | 12457 | LIBS="-lrt $LIBS" |
ed698112 NN |
12458 | if test x$gcc_no_link = xyes; then |
12459 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12460 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12461 | { (exit 1); exit 1; }; } | |
12462 | fi | |
12463 | cat >conftest.$ac_ext <<_ACEOF | |
12464 | /* confdefs.h. */ | |
12465 | _ACEOF | |
12466 | cat confdefs.h >>conftest.$ac_ext | |
12467 | cat >>conftest.$ac_ext <<_ACEOF | |
12468 | /* end confdefs.h. */ | |
12469 | ||
ade710a5 | 12470 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12471 | #ifdef __cplusplus |
12472 | extern "C" | |
12473 | #endif | |
ade710a5 TF |
12474 | /* We use char because int might match the return type of a gcc2 |
12475 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
12476 | char sched_yield (); |
12477 | int | |
12478 | main () | |
12479 | { | |
ade710a5 | 12480 | sched_yield (); |
ed698112 NN |
12481 | ; |
12482 | return 0; | |
12483 | } | |
12484 | _ACEOF | |
12485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12487 | (eval $ac_link) 2>conftest.er1 | |
12488 | ac_status=$? | |
12489 | grep -v '^ *+' conftest.er1 >conftest.err | |
12490 | rm -f conftest.er1 | |
12491 | cat conftest.err >&5 | |
12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12493 | (exit $ac_status); } && | |
ade710a5 TF |
12494 | { ac_try='test -z "$ac_c_werror_flag" |
12495 | || test ! -s conftest.err' | |
ed698112 NN |
12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12497 | (eval $ac_try) 2>&5 | |
12498 | ac_status=$? | |
12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12500 | (exit $ac_status); }; } && | |
12501 | { ac_try='test -s conftest$ac_exeext' | |
12502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12503 | (eval $ac_try) 2>&5 | |
12504 | ac_status=$? | |
12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12506 | (exit $ac_status); }; }; then | |
12507 | ac_cv_lib_rt_sched_yield=yes | |
12508 | else | |
12509 | echo "$as_me: failed program was:" >&5 | |
12510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12511 | ||
ade710a5 | 12512 | ac_cv_lib_rt_sched_yield=no |
ed698112 NN |
12513 | fi |
12514 | rm -f conftest.err conftest.$ac_objext \ | |
12515 | conftest$ac_exeext conftest.$ac_ext | |
12516 | LIBS=$ac_check_lib_save_LIBS | |
12517 | fi | |
ade710a5 TF |
12518 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
12519 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 | |
ed698112 NN |
12520 | if test $ac_cv_lib_rt_sched_yield = yes; then |
12521 | ||
12522 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12523 | #define HAVE_SCHED_YIELD 1 |
ed698112 | 12524 | _ACEOF |
5aac1dac TT |
12525 | |
12526 | THREADLIBS="$THREADLIBS -lrt" | |
12527 | THREADSPEC="$THREADSPEC -lrt" | |
f994389b | 12528 | else |
f994389b | 12529 | |
ade710a5 TF |
12530 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
12531 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
ed698112 NN |
12532 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then |
12533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4b7f154f | 12534 | else |
ed698112 | 12535 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 12536 | LIBS="-lposix4 $LIBS" |
ed698112 NN |
12537 | if test x$gcc_no_link = xyes; then |
12538 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12539 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12540 | { (exit 1); exit 1; }; } | |
12541 | fi | |
12542 | cat >conftest.$ac_ext <<_ACEOF | |
12543 | /* confdefs.h. */ | |
12544 | _ACEOF | |
12545 | cat confdefs.h >>conftest.$ac_ext | |
12546 | cat >>conftest.$ac_ext <<_ACEOF | |
12547 | /* end confdefs.h. */ | |
12548 | ||
ade710a5 | 12549 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12550 | #ifdef __cplusplus |
12551 | extern "C" | |
12552 | #endif | |
ade710a5 TF |
12553 | /* We use char because int might match the return type of a gcc2 |
12554 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
12555 | char sched_yield (); |
12556 | int | |
12557 | main () | |
12558 | { | |
ade710a5 | 12559 | sched_yield (); |
ed698112 NN |
12560 | ; |
12561 | return 0; | |
12562 | } | |
12563 | _ACEOF | |
12564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12566 | (eval $ac_link) 2>conftest.er1 | |
12567 | ac_status=$? | |
12568 | grep -v '^ *+' conftest.er1 >conftest.err | |
12569 | rm -f conftest.er1 | |
12570 | cat conftest.err >&5 | |
12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12572 | (exit $ac_status); } && | |
ade710a5 TF |
12573 | { ac_try='test -z "$ac_c_werror_flag" |
12574 | || test ! -s conftest.err' | |
ed698112 NN |
12575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12576 | (eval $ac_try) 2>&5 | |
12577 | ac_status=$? | |
12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12579 | (exit $ac_status); }; } && | |
12580 | { ac_try='test -s conftest$ac_exeext' | |
12581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12582 | (eval $ac_try) 2>&5 | |
12583 | ac_status=$? | |
12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); }; }; then | |
12586 | ac_cv_lib_posix4_sched_yield=yes | |
12587 | else | |
12588 | echo "$as_me: failed program was:" >&5 | |
12589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12590 | ||
ade710a5 | 12591 | ac_cv_lib_posix4_sched_yield=no |
ed698112 NN |
12592 | fi |
12593 | rm -f conftest.err conftest.$ac_objext \ | |
12594 | conftest$ac_exeext conftest.$ac_ext | |
12595 | LIBS=$ac_check_lib_save_LIBS | |
12596 | fi | |
ade710a5 TF |
12597 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 |
12598 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
ed698112 NN |
12599 | if test $ac_cv_lib_posix4_sched_yield = yes; then |
12600 | ||
12601 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12602 | #define HAVE_SCHED_YIELD 1 |
ed698112 | 12603 | _ACEOF |
5ec89e89 | 12604 | |
5aac1dac TT |
12605 | THREADLIBS="$THREADLIBS -lposix4" |
12606 | THREADSPEC="$THREADSPEC -lposix4" | |
58d2986d AO |
12607 | fi |
12608 | ||
58d2986d AO |
12609 | fi |
12610 | ||
58d2986d | 12611 | fi |
5aac1dac | 12612 | done |
58d2986d | 12613 | |
e59a1e40 | 12614 | |
ade710a5 TF |
12615 | echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
12616 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 | |
e59a1e40 TT |
12617 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
12618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12619 | else | |
12620 | ac_check_lib_save_LIBS=$LIBS | |
12621 | LIBS="-lrt $LIBS" | |
12622 | if test x$gcc_no_link = xyes; then | |
12623 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12624 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12625 | { (exit 1); exit 1; }; } | |
12626 | fi | |
12627 | cat >conftest.$ac_ext <<_ACEOF | |
12628 | /* confdefs.h. */ | |
12629 | _ACEOF | |
12630 | cat confdefs.h >>conftest.$ac_ext | |
12631 | cat >>conftest.$ac_ext <<_ACEOF | |
12632 | /* end confdefs.h. */ | |
12633 | ||
ade710a5 | 12634 | /* Override any gcc2 internal prototype to avoid an error. */ |
e59a1e40 TT |
12635 | #ifdef __cplusplus |
12636 | extern "C" | |
12637 | #endif | |
ade710a5 TF |
12638 | /* We use char because int might match the return type of a gcc2 |
12639 | builtin and then its argument prototype would still apply. */ | |
e59a1e40 TT |
12640 | char clock_gettime (); |
12641 | int | |
12642 | main () | |
12643 | { | |
ade710a5 | 12644 | clock_gettime (); |
e59a1e40 TT |
12645 | ; |
12646 | return 0; | |
12647 | } | |
12648 | _ACEOF | |
12649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12651 | (eval $ac_link) 2>conftest.er1 | |
12652 | ac_status=$? | |
12653 | grep -v '^ *+' conftest.er1 >conftest.err | |
12654 | rm -f conftest.er1 | |
12655 | cat conftest.err >&5 | |
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12657 | (exit $ac_status); } && | |
ade710a5 TF |
12658 | { ac_try='test -z "$ac_c_werror_flag" |
12659 | || test ! -s conftest.err' | |
e59a1e40 TT |
12660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12661 | (eval $ac_try) 2>&5 | |
12662 | ac_status=$? | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); }; } && | |
12665 | { ac_try='test -s conftest$ac_exeext' | |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12667 | (eval $ac_try) 2>&5 | |
12668 | ac_status=$? | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); }; }; then | |
12671 | ac_cv_lib_rt_clock_gettime=yes | |
12672 | else | |
12673 | echo "$as_me: failed program was:" >&5 | |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12675 | ||
ade710a5 | 12676 | ac_cv_lib_rt_clock_gettime=no |
e59a1e40 TT |
12677 | fi |
12678 | rm -f conftest.err conftest.$ac_objext \ | |
12679 | conftest$ac_exeext conftest.$ac_ext | |
12680 | LIBS=$ac_check_lib_save_LIBS | |
12681 | fi | |
ade710a5 TF |
12682 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
12683 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 | |
e59a1e40 TT |
12684 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
12685 | ||
12686 | ||
12687 | cat >>confdefs.h <<\_ACEOF | |
12688 | #define HAVE_CLOCK_GETTIME 1 | |
12689 | _ACEOF | |
12690 | ||
12691 | case "$THREADSPEC" in | |
12692 | *-lrt*) ;; | |
dfd8572b TT |
12693 | *) |
12694 | THREADSPEC="$THREADSPEC -lrt" | |
12695 | THREADLIBS="$THREADLIBS -lrt" | |
12696 | ;; | |
e59a1e40 TT |
12697 | esac |
12698 | fi | |
12699 | ||
12700 | ||
5aac1dac | 12701 | LIBS="$save_LIBS" |
58d2986d | 12702 | |
5aac1dac TT |
12703 | # We can save a little space at runtime if the mutex has m_count |
12704 | # or __m_count. This is a nice hack for Linux. | |
ed698112 NN |
12705 | cat >conftest.$ac_ext <<_ACEOF |
12706 | /* confdefs.h. */ | |
12707 | _ACEOF | |
12708 | cat confdefs.h >>conftest.$ac_ext | |
12709 | cat >>conftest.$ac_ext <<_ACEOF | |
12710 | /* end confdefs.h. */ | |
5aac1dac | 12711 | #include <pthread.h> |
ed698112 NN |
12712 | int |
12713 | main () | |
12714 | { | |
58d2986d | 12715 | |
5aac1dac | 12716 | extern pthread_mutex_t *mutex; int q = mutex->m_count; |
ed698112 NN |
12717 | |
12718 | ; | |
12719 | return 0; | |
12720 | } | |
12721 | _ACEOF | |
12722 | rm -f conftest.$ac_objext | |
12723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12724 | (eval $ac_compile) 2>conftest.er1 | |
12725 | ac_status=$? | |
12726 | grep -v '^ *+' conftest.er1 >conftest.err | |
12727 | rm -f conftest.er1 | |
12728 | cat conftest.err >&5 | |
12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12730 | (exit $ac_status); } && | |
ade710a5 TF |
12731 | { ac_try='test -z "$ac_c_werror_flag" |
12732 | || test ! -s conftest.err' | |
ed698112 NN |
12733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12734 | (eval $ac_try) 2>&5 | |
12735 | ac_status=$? | |
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12737 | (exit $ac_status); }; } && | |
12738 | { ac_try='test -s conftest.$ac_objext' | |
12739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12740 | (eval $ac_try) 2>&5 | |
12741 | ac_status=$? | |
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12743 | (exit $ac_status); }; }; then | |
12744 | ||
12745 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12746 | #define PTHREAD_MUTEX_HAVE_M_COUNT 1 |
ed698112 | 12747 | _ACEOF |
58d2986d | 12748 | |
5aac1dac | 12749 | else |
ed698112 NN |
12750 | echo "$as_me: failed program was:" >&5 |
12751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12752 | ||
12753 | ||
12754 | cat >conftest.$ac_ext <<_ACEOF | |
12755 | /* confdefs.h. */ | |
12756 | _ACEOF | |
12757 | cat confdefs.h >>conftest.$ac_ext | |
12758 | cat >>conftest.$ac_ext <<_ACEOF | |
12759 | /* end confdefs.h. */ | |
5aac1dac | 12760 | #include <pthread.h> |
ed698112 NN |
12761 | int |
12762 | main () | |
12763 | { | |
58d2986d | 12764 | |
5aac1dac | 12765 | extern pthread_mutex_t *mutex; int q = mutex->__m_count; |
ed698112 NN |
12766 | |
12767 | ; | |
12768 | return 0; | |
12769 | } | |
12770 | _ACEOF | |
12771 | rm -f conftest.$ac_objext | |
12772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12773 | (eval $ac_compile) 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); } && | |
ade710a5 TF |
12780 | { ac_try='test -z "$ac_c_werror_flag" |
12781 | || test ! -s conftest.err' | |
ed698112 NN |
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_objext' | |
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 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 12795 | #define PTHREAD_MUTEX_HAVE___M_COUNT 1 |
ed698112 | 12796 | _ACEOF |
58d2986d | 12797 | |
5aac1dac | 12798 | else |
ed698112 NN |
12799 | echo "$as_me: failed program was:" >&5 |
12800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12801 | ||
5aac1dac | 12802 | fi |
ed698112 | 12803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 12804 | fi |
ed698112 | 12805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 12806 | fi |
5ec89e89 | 12807 | |
5aac1dac TT |
12808 | # We require a way to get the time. |
12809 | time_found=no | |
ed698112 NN |
12810 | |
12811 | ||
12812 | ||
12813 | for ac_func in gettimeofday time ftime | |
5aac1dac | 12814 | do |
ed698112 | 12815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
12816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
12819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12820 | else | |
12821 | if test x$gcc_no_link = xyes; then | |
12822 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12823 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12824 | { (exit 1); exit 1; }; } | |
12825 | fi | |
12826 | cat >conftest.$ac_ext <<_ACEOF | |
12827 | /* confdefs.h. */ | |
12828 | _ACEOF | |
12829 | cat confdefs.h >>conftest.$ac_ext | |
12830 | cat >>conftest.$ac_ext <<_ACEOF | |
12831 | /* end confdefs.h. */ | |
12832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12834 | #define $ac_func innocuous_$ac_func | |
12835 | ||
5aac1dac | 12836 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
12837 | which can conflict with char $ac_func (); below. |
12838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12839 | <limits.h> exists even on freestanding compilers. */ | |
12840 | ||
12841 | #ifdef __STDC__ | |
12842 | # include <limits.h> | |
12843 | #else | |
12844 | # include <assert.h> | |
12845 | #endif | |
b5ee195f | 12846 | |
ed698112 | 12847 | #undef $ac_func |
5aac1dac | 12848 | |
ade710a5 | 12849 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12850 | #ifdef __cplusplus |
12851 | extern "C" | |
ade710a5 | 12852 | { |
ed698112 | 12853 | #endif |
ade710a5 TF |
12854 | /* We use char because int might match the return type of a gcc2 |
12855 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 12856 | char $ac_func (); |
5aac1dac TT |
12857 | /* The GNU C library defines this for functions which it implements |
12858 | to always fail with ENOSYS. Some functions are actually named | |
12859 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5aac1dac | 12861 | choke me |
ade710a5 TF |
12862 | #else |
12863 | char (*f) () = $ac_func; | |
12864 | #endif | |
12865 | #ifdef __cplusplus | |
12866 | } | |
5aac1dac TT |
12867 | #endif |
12868 | ||
ed698112 NN |
12869 | int |
12870 | main () | |
12871 | { | |
ade710a5 | 12872 | return f != $ac_func; |
ed698112 NN |
12873 | ; |
12874 | return 0; | |
12875 | } | |
12876 | _ACEOF | |
12877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12879 | (eval $ac_link) 2>conftest.er1 | |
12880 | ac_status=$? | |
12881 | grep -v '^ *+' conftest.er1 >conftest.err | |
12882 | rm -f conftest.er1 | |
12883 | cat conftest.err >&5 | |
12884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12885 | (exit $ac_status); } && | |
ade710a5 TF |
12886 | { ac_try='test -z "$ac_c_werror_flag" |
12887 | || test ! -s conftest.err' | |
ed698112 NN |
12888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12889 | (eval $ac_try) 2>&5 | |
12890 | ac_status=$? | |
12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12892 | (exit $ac_status); }; } && | |
12893 | { ac_try='test -s conftest$ac_exeext' | |
12894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12895 | (eval $ac_try) 2>&5 | |
12896 | ac_status=$? | |
12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12898 | (exit $ac_status); }; }; then | |
12899 | eval "$as_ac_var=yes" | |
12900 | else | |
12901 | echo "$as_me: failed program was:" >&5 | |
12902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12903 | ||
ade710a5 | 12904 | eval "$as_ac_var=no" |
ed698112 NN |
12905 | fi |
12906 | rm -f conftest.err conftest.$ac_objext \ | |
12907 | conftest$ac_exeext conftest.$ac_ext | |
12908 | fi | |
ade710a5 TF |
12909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
12911 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12912 | cat >>confdefs.h <<_ACEOF | |
12913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12914 | _ACEOF | |
5aac1dac | 12915 | time_found=yes |
f994389b | 12916 | fi |
5aac1dac | 12917 | done |
f994389b | 12918 | |
5aac1dac | 12919 | if test "$time_found" = no; then |
ed698112 NN |
12920 | { { echo "$as_me:$LINENO: error: no function found to get the time" >&5 |
12921 | echo "$as_me: error: no function found to get the time" >&2;} | |
12922 | { (exit 1); exit 1; }; } | |
5aac1dac | 12923 | fi |
f994389b | 12924 | |
ed698112 NN |
12925 | |
12926 | for ac_func in memmove | |
5aac1dac | 12927 | do |
ed698112 | 12928 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
12929 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12930 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12931 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
12932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12933 | else | |
12934 | if test x$gcc_no_link = xyes; then | |
12935 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12936 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12937 | { (exit 1); exit 1; }; } | |
12938 | fi | |
12939 | cat >conftest.$ac_ext <<_ACEOF | |
12940 | /* confdefs.h. */ | |
12941 | _ACEOF | |
12942 | cat confdefs.h >>conftest.$ac_ext | |
12943 | cat >>conftest.$ac_ext <<_ACEOF | |
12944 | /* end confdefs.h. */ | |
12945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12947 | #define $ac_func innocuous_$ac_func | |
12948 | ||
5aac1dac | 12949 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
12950 | which can conflict with char $ac_func (); below. |
12951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12952 | <limits.h> exists even on freestanding compilers. */ | |
f994389b | 12953 | |
ed698112 NN |
12954 | #ifdef __STDC__ |
12955 | # include <limits.h> | |
12956 | #else | |
12957 | # include <assert.h> | |
12958 | #endif | |
ee9dd372 | 12959 | |
ed698112 NN |
12960 | #undef $ac_func |
12961 | ||
ade710a5 | 12962 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
12963 | #ifdef __cplusplus |
12964 | extern "C" | |
ade710a5 | 12965 | { |
ed698112 | 12966 | #endif |
ade710a5 TF |
12967 | /* We use char because int might match the return type of a gcc2 |
12968 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 12969 | char $ac_func (); |
5aac1dac TT |
12970 | /* The GNU C library defines this for functions which it implements |
12971 | to always fail with ENOSYS. Some functions are actually named | |
12972 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 12973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5aac1dac | 12974 | choke me |
ade710a5 TF |
12975 | #else |
12976 | char (*f) () = $ac_func; | |
12977 | #endif | |
12978 | #ifdef __cplusplus | |
12979 | } | |
5aac1dac | 12980 | #endif |
ee9dd372 | 12981 | |
ed698112 NN |
12982 | int |
12983 | main () | |
12984 | { | |
ade710a5 | 12985 | return f != $ac_func; |
ed698112 NN |
12986 | ; |
12987 | return 0; | |
12988 | } | |
12989 | _ACEOF | |
12990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12992 | (eval $ac_link) 2>conftest.er1 | |
12993 | ac_status=$? | |
12994 | grep -v '^ *+' conftest.er1 >conftest.err | |
12995 | rm -f conftest.er1 | |
12996 | cat conftest.err >&5 | |
12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12998 | (exit $ac_status); } && | |
ade710a5 TF |
12999 | { ac_try='test -z "$ac_c_werror_flag" |
13000 | || test ! -s conftest.err' | |
ed698112 NN |
13001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13002 | (eval $ac_try) 2>&5 | |
13003 | ac_status=$? | |
13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13005 | (exit $ac_status); }; } && | |
13006 | { ac_try='test -s conftest$ac_exeext' | |
13007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13008 | (eval $ac_try) 2>&5 | |
13009 | ac_status=$? | |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13011 | (exit $ac_status); }; }; then | |
13012 | eval "$as_ac_var=yes" | |
13013 | else | |
13014 | echo "$as_me: failed program was:" >&5 | |
13015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13016 | ||
ade710a5 | 13017 | eval "$as_ac_var=no" |
ed698112 NN |
13018 | fi |
13019 | rm -f conftest.err conftest.$ac_objext \ | |
13020 | conftest$ac_exeext conftest.$ac_ext | |
13021 | fi | |
ade710a5 TF |
13022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
13023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
13024 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
13025 | cat >>confdefs.h <<_ACEOF | |
13026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13027 | _ACEOF | |
ee9dd372 | 13028 | |
ee9dd372 | 13029 | fi |
5aac1dac | 13030 | done |
ee9dd372 TT |
13031 | |
13032 | ||
5aac1dac TT |
13033 | # We require memcpy. |
13034 | memcpy_found=no | |
ed698112 NN |
13035 | |
13036 | for ac_func in memcpy | |
5aac1dac | 13037 | do |
ed698112 | 13038 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ade710a5 TF |
13039 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
13040 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13041 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
13042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13043 | else | |
13044 | if test x$gcc_no_link = xyes; then | |
13045 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13046 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13047 | { (exit 1); exit 1; }; } | |
13048 | fi | |
13049 | cat >conftest.$ac_ext <<_ACEOF | |
13050 | /* confdefs.h. */ | |
13051 | _ACEOF | |
13052 | cat confdefs.h >>conftest.$ac_ext | |
13053 | cat >>conftest.$ac_ext <<_ACEOF | |
13054 | /* end confdefs.h. */ | |
13055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13057 | #define $ac_func innocuous_$ac_func | |
13058 | ||
5aac1dac | 13059 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
13060 | which can conflict with char $ac_func (); below. |
13061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13062 | <limits.h> exists even on freestanding compilers. */ | |
13063 | ||
13064 | #ifdef __STDC__ | |
13065 | # include <limits.h> | |
13066 | #else | |
13067 | # include <assert.h> | |
13068 | #endif | |
5aac1dac | 13069 | |
ed698112 | 13070 | #undef $ac_func |
ee9dd372 | 13071 | |
ade710a5 | 13072 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13073 | #ifdef __cplusplus |
13074 | extern "C" | |
ade710a5 | 13075 | { |
ed698112 | 13076 | #endif |
ade710a5 TF |
13077 | /* We use char because int might match the return type of a gcc2 |
13078 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 13079 | char $ac_func (); |
5aac1dac TT |
13080 | /* The GNU C library defines this for functions which it implements |
13081 | to always fail with ENOSYS. Some functions are actually named | |
13082 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 13083 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5aac1dac | 13084 | choke me |
ade710a5 TF |
13085 | #else |
13086 | char (*f) () = $ac_func; | |
13087 | #endif | |
13088 | #ifdef __cplusplus | |
13089 | } | |
5aac1dac | 13090 | #endif |
ee9dd372 | 13091 | |
ed698112 NN |
13092 | int |
13093 | main () | |
13094 | { | |
ade710a5 | 13095 | return f != $ac_func; |
ed698112 NN |
13096 | ; |
13097 | return 0; | |
13098 | } | |
13099 | _ACEOF | |
13100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13102 | (eval $ac_link) 2>conftest.er1 | |
13103 | ac_status=$? | |
13104 | grep -v '^ *+' conftest.er1 >conftest.err | |
13105 | rm -f conftest.er1 | |
13106 | cat conftest.err >&5 | |
13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13108 | (exit $ac_status); } && | |
ade710a5 TF |
13109 | { ac_try='test -z "$ac_c_werror_flag" |
13110 | || test ! -s conftest.err' | |
ed698112 NN |
13111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13112 | (eval $ac_try) 2>&5 | |
13113 | ac_status=$? | |
13114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13115 | (exit $ac_status); }; } && | |
13116 | { ac_try='test -s conftest$ac_exeext' | |
13117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13118 | (eval $ac_try) 2>&5 | |
13119 | ac_status=$? | |
13120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13121 | (exit $ac_status); }; }; then | |
13122 | eval "$as_ac_var=yes" | |
13123 | else | |
13124 | echo "$as_me: failed program was:" >&5 | |
13125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13126 | ||
ade710a5 | 13127 | eval "$as_ac_var=no" |
ed698112 NN |
13128 | fi |
13129 | rm -f conftest.err conftest.$ac_objext \ | |
13130 | conftest$ac_exeext conftest.$ac_ext | |
13131 | fi | |
ade710a5 TF |
13132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
13133 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
13134 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
13135 | cat >>confdefs.h <<_ACEOF | |
13136 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13137 | _ACEOF | |
5aac1dac | 13138 | memcpy_found=yes |
dbf45a01 | 13139 | fi |
5aac1dac | 13140 | done |
dbf45a01 | 13141 | |
5aac1dac | 13142 | if test "$memcpy_found" = no; then |
ed698112 NN |
13143 | { { echo "$as_me:$LINENO: error: memcpy is required" >&5 |
13144 | echo "$as_me: error: memcpy is required" >&2;} | |
13145 | { (exit 1); exit 1; }; } | |
5aac1dac | 13146 | fi |
2a67186a | 13147 | # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl |
ade710a5 TF |
13148 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
13149 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
ed698112 NN |
13150 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
13151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 13152 | else |
ed698112 | 13153 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 13154 | LIBS="-ldl $LIBS" |
ed698112 NN |
13155 | if test x$gcc_no_link = xyes; then |
13156 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13157 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13158 | { (exit 1); exit 1; }; } | |
13159 | fi | |
13160 | cat >conftest.$ac_ext <<_ACEOF | |
13161 | /* confdefs.h. */ | |
13162 | _ACEOF | |
13163 | cat confdefs.h >>conftest.$ac_ext | |
13164 | cat >>conftest.$ac_ext <<_ACEOF | |
13165 | /* end confdefs.h. */ | |
13166 | ||
ade710a5 | 13167 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13168 | #ifdef __cplusplus |
13169 | extern "C" | |
13170 | #endif | |
ade710a5 TF |
13171 | /* We use char because int might match the return type of a gcc2 |
13172 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
13173 | char dlopen (); |
13174 | int | |
13175 | main () | |
13176 | { | |
ade710a5 | 13177 | dlopen (); |
ed698112 NN |
13178 | ; |
13179 | return 0; | |
13180 | } | |
13181 | _ACEOF | |
13182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13184 | (eval $ac_link) 2>conftest.er1 | |
13185 | ac_status=$? | |
13186 | grep -v '^ *+' conftest.er1 >conftest.err | |
13187 | rm -f conftest.er1 | |
13188 | cat conftest.err >&5 | |
13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13190 | (exit $ac_status); } && | |
ade710a5 TF |
13191 | { ac_try='test -z "$ac_c_werror_flag" |
13192 | || test ! -s conftest.err' | |
ed698112 NN |
13193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13194 | (eval $ac_try) 2>&5 | |
13195 | ac_status=$? | |
13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13197 | (exit $ac_status); }; } && | |
13198 | { ac_try='test -s conftest$ac_exeext' | |
13199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13200 | (eval $ac_try) 2>&5 | |
13201 | ac_status=$? | |
13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13203 | (exit $ac_status); }; }; then | |
13204 | ac_cv_lib_dl_dlopen=yes | |
13205 | else | |
13206 | echo "$as_me: failed program was:" >&5 | |
13207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13208 | ||
ade710a5 | 13209 | ac_cv_lib_dl_dlopen=no |
ed698112 NN |
13210 | fi |
13211 | rm -f conftest.err conftest.$ac_objext \ | |
13212 | conftest$ac_exeext conftest.$ac_ext | |
13213 | LIBS=$ac_check_lib_save_LIBS | |
13214 | fi | |
ade710a5 TF |
13215 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
13216 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
ed698112 NN |
13217 | if test $ac_cv_lib_dl_dlopen = yes; then |
13218 | ||
13219 | ||
13220 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 13221 | #define HAVE_DLOPEN 1 |
ed698112 | 13222 | _ACEOF |
1b5a2139 | 13223 | |
2a67186a AT |
13224 | else |
13225 | ||
ade710a5 TF |
13226 | echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5 |
13227 | echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6 | |
2a67186a AT |
13228 | if test "${ac_cv_lib_dld_dlopen+set}" = set; then |
13229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13230 | else | |
13231 | ac_check_lib_save_LIBS=$LIBS | |
13232 | LIBS="-ldld $LIBS" | |
13233 | if test x$gcc_no_link = xyes; then | |
13234 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13235 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13236 | { (exit 1); exit 1; }; } | |
13237 | fi | |
13238 | cat >conftest.$ac_ext <<_ACEOF | |
13239 | /* confdefs.h. */ | |
13240 | _ACEOF | |
13241 | cat confdefs.h >>conftest.$ac_ext | |
13242 | cat >>conftest.$ac_ext <<_ACEOF | |
13243 | /* end confdefs.h. */ | |
13244 | ||
ade710a5 | 13245 | /* Override any gcc2 internal prototype to avoid an error. */ |
2a67186a AT |
13246 | #ifdef __cplusplus |
13247 | extern "C" | |
13248 | #endif | |
ade710a5 TF |
13249 | /* We use char because int might match the return type of a gcc2 |
13250 | builtin and then its argument prototype would still apply. */ | |
2a67186a AT |
13251 | char dlopen (); |
13252 | int | |
13253 | main () | |
13254 | { | |
ade710a5 | 13255 | dlopen (); |
2a67186a AT |
13256 | ; |
13257 | return 0; | |
13258 | } | |
13259 | _ACEOF | |
13260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13262 | (eval $ac_link) 2>conftest.er1 | |
13263 | ac_status=$? | |
13264 | grep -v '^ *+' conftest.er1 >conftest.err | |
13265 | rm -f conftest.er1 | |
13266 | cat conftest.err >&5 | |
13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13268 | (exit $ac_status); } && | |
ade710a5 TF |
13269 | { ac_try='test -z "$ac_c_werror_flag" |
13270 | || test ! -s conftest.err' | |
2a67186a AT |
13271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13272 | (eval $ac_try) 2>&5 | |
13273 | ac_status=$? | |
13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13275 | (exit $ac_status); }; } && | |
13276 | { ac_try='test -s conftest$ac_exeext' | |
13277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13278 | (eval $ac_try) 2>&5 | |
13279 | ac_status=$? | |
13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13281 | (exit $ac_status); }; }; then | |
13282 | ac_cv_lib_dld_dlopen=yes | |
13283 | else | |
13284 | echo "$as_me: failed program was:" >&5 | |
13285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13286 | ||
ade710a5 | 13287 | ac_cv_lib_dld_dlopen=no |
2a67186a AT |
13288 | fi |
13289 | rm -f conftest.err conftest.$ac_objext \ | |
13290 | conftest$ac_exeext conftest.$ac_ext | |
13291 | LIBS=$ac_check_lib_save_LIBS | |
13292 | fi | |
ade710a5 TF |
13293 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5 |
13294 | echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6 | |
2a67186a AT |
13295 | if test $ac_cv_lib_dld_dlopen = yes; then |
13296 | ||
13297 | ||
13298 | cat >>confdefs.h <<\_ACEOF | |
13299 | #define HAVE_DLOPEN 1 | |
13300 | _ACEOF | |
13301 | ||
13302 | fi | |
13303 | ||
5aac1dac | 13304 | fi |
1b5a2139 | 13305 | |
1b5a2139 | 13306 | |
5aac1dac TT |
13307 | # Some library-finding code we stole from Tcl. |
13308 | #-------------------------------------------------------------------- | |
13309 | # Check for the existence of the -lsocket and -lnsl libraries. | |
13310 | # The order here is important, so that they end up in the right | |
13311 | # order in the command line generated by make. Here are some | |
13312 | # special considerations: | |
13313 | # 1. Use "connect" and "accept" to check for -lsocket, and | |
13314 | # "gethostbyname" to check for -lnsl. | |
13315 | # 2. Use each function name only once: can't redo a check because | |
13316 | # autoconf caches the results of the last check and won't redo it. | |
13317 | # 3. Use -lnsl and -lsocket only if they supply procedures that | |
13318 | # aren't already present in the normal libraries. This is because | |
13319 | # IRIX 5.2 has libraries, but they aren't needed and they're | |
13320 | # bogus: they goof up name resolution if used. | |
13321 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. | |
13322 | # To get around this problem, check for both libraries together | |
13323 | # if -lsocket doesn't work by itself. | |
13324 | #-------------------------------------------------------------------- | |
1b5a2139 | 13325 | |
ade710a5 TF |
13326 | echo "$as_me:$LINENO: checking for socket libraries" >&5 |
13327 | echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6 | |
ed698112 NN |
13328 | if test "${gcj_cv_lib_sockets+set}" = set; then |
13329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac TT |
13330 | else |
13331 | gcj_cv_lib_sockets= | |
13332 | gcj_checkBoth=0 | |
13333 | unset ac_cv_func_connect | |
ade710a5 TF |
13334 | echo "$as_me:$LINENO: checking for connect" >&5 |
13335 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
ed698112 NN |
13336 | if test "${ac_cv_func_connect+set}" = set; then |
13337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13338 | else | |
13339 | if test x$gcc_no_link = xyes; then | |
13340 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13341 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13342 | { (exit 1); exit 1; }; } | |
13343 | fi | |
13344 | cat >conftest.$ac_ext <<_ACEOF | |
13345 | /* confdefs.h. */ | |
13346 | _ACEOF | |
13347 | cat confdefs.h >>conftest.$ac_ext | |
13348 | cat >>conftest.$ac_ext <<_ACEOF | |
13349 | /* end confdefs.h. */ | |
13350 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | |
13351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13352 | #define connect innocuous_connect | |
13353 | ||
5aac1dac | 13354 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
13355 | which can conflict with char connect (); below. |
13356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13357 | <limits.h> exists even on freestanding compilers. */ | |
13358 | ||
13359 | #ifdef __STDC__ | |
13360 | # include <limits.h> | |
13361 | #else | |
13362 | # include <assert.h> | |
13363 | #endif | |
5aac1dac | 13364 | |
ed698112 | 13365 | #undef connect |
7bee4c4c | 13366 | |
ade710a5 | 13367 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13368 | #ifdef __cplusplus |
13369 | extern "C" | |
ade710a5 | 13370 | { |
ed698112 | 13371 | #endif |
ade710a5 TF |
13372 | /* We use char because int might match the return type of a gcc2 |
13373 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 13374 | char connect (); |
5aac1dac TT |
13375 | /* The GNU C library defines this for functions which it implements |
13376 | to always fail with ENOSYS. Some functions are actually named | |
13377 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 13378 | #if defined (__stub_connect) || defined (__stub___connect) |
5aac1dac | 13379 | choke me |
ade710a5 TF |
13380 | #else |
13381 | char (*f) () = connect; | |
13382 | #endif | |
13383 | #ifdef __cplusplus | |
13384 | } | |
5aac1dac TT |
13385 | #endif |
13386 | ||
ed698112 NN |
13387 | int |
13388 | main () | |
13389 | { | |
ade710a5 | 13390 | return f != connect; |
ed698112 NN |
13391 | ; |
13392 | return 0; | |
13393 | } | |
13394 | _ACEOF | |
13395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13397 | (eval $ac_link) 2>conftest.er1 | |
13398 | ac_status=$? | |
13399 | grep -v '^ *+' conftest.er1 >conftest.err | |
13400 | rm -f conftest.er1 | |
13401 | cat conftest.err >&5 | |
13402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13403 | (exit $ac_status); } && | |
ade710a5 TF |
13404 | { ac_try='test -z "$ac_c_werror_flag" |
13405 | || test ! -s conftest.err' | |
ed698112 NN |
13406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13407 | (eval $ac_try) 2>&5 | |
13408 | ac_status=$? | |
13409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13410 | (exit $ac_status); }; } && | |
13411 | { ac_try='test -s conftest$ac_exeext' | |
13412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13413 | (eval $ac_try) 2>&5 | |
13414 | ac_status=$? | |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13416 | (exit $ac_status); }; }; then | |
13417 | ac_cv_func_connect=yes | |
13418 | else | |
13419 | echo "$as_me: failed program was:" >&5 | |
13420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13421 | ||
ade710a5 | 13422 | ac_cv_func_connect=no |
ed698112 NN |
13423 | fi |
13424 | rm -f conftest.err conftest.$ac_objext \ | |
13425 | conftest$ac_exeext conftest.$ac_ext | |
13426 | fi | |
ade710a5 TF |
13427 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
13428 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
ed698112 | 13429 | if test $ac_cv_func_connect = yes; then |
5aac1dac TT |
13430 | gcj_checkSocket=0 |
13431 | else | |
ed698112 | 13432 | gcj_checkSocket=1 |
5aac1dac TT |
13433 | fi |
13434 | ||
13435 | if test "$gcj_checkSocket" = 1; then | |
13436 | unset ac_cv_func_connect | |
ade710a5 TF |
13437 | echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
13438 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 | |
ed698112 NN |
13439 | if test "${ac_cv_lib_socket_main+set}" = set; then |
13440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 13441 | else |
ed698112 | 13442 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 13443 | LIBS="-lsocket $LIBS" |
ed698112 NN |
13444 | if test x$gcc_no_link = xyes; then |
13445 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13446 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13447 | { (exit 1); exit 1; }; } | |
ee9dd372 | 13448 | fi |
ed698112 NN |
13449 | cat >conftest.$ac_ext <<_ACEOF |
13450 | /* confdefs.h. */ | |
13451 | _ACEOF | |
13452 | cat confdefs.h >>conftest.$ac_ext | |
13453 | cat >>conftest.$ac_ext <<_ACEOF | |
13454 | /* end confdefs.h. */ | |
5aac1dac | 13455 | |
ed698112 NN |
13456 | |
13457 | int | |
13458 | main () | |
13459 | { | |
ade710a5 | 13460 | main (); |
ed698112 NN |
13461 | ; |
13462 | return 0; | |
13463 | } | |
13464 | _ACEOF | |
13465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13467 | (eval $ac_link) 2>conftest.er1 | |
13468 | ac_status=$? | |
13469 | grep -v '^ *+' conftest.er1 >conftest.err | |
13470 | rm -f conftest.er1 | |
13471 | cat conftest.err >&5 | |
13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13473 | (exit $ac_status); } && | |
ade710a5 TF |
13474 | { ac_try='test -z "$ac_c_werror_flag" |
13475 | || test ! -s conftest.err' | |
ed698112 NN |
13476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13477 | (eval $ac_try) 2>&5 | |
13478 | ac_status=$? | |
13479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13480 | (exit $ac_status); }; } && | |
13481 | { ac_try='test -s conftest$ac_exeext' | |
13482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13483 | (eval $ac_try) 2>&5 | |
13484 | ac_status=$? | |
13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13486 | (exit $ac_status); }; }; then | |
13487 | ac_cv_lib_socket_main=yes | |
13488 | else | |
13489 | echo "$as_me: failed program was:" >&5 | |
13490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13491 | ||
ade710a5 | 13492 | ac_cv_lib_socket_main=no |
ed698112 NN |
13493 | fi |
13494 | rm -f conftest.err conftest.$ac_objext \ | |
13495 | conftest$ac_exeext conftest.$ac_ext | |
13496 | LIBS=$ac_check_lib_save_LIBS | |
13497 | fi | |
ade710a5 TF |
13498 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
13499 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 | |
ed698112 | 13500 | if test $ac_cv_lib_socket_main = yes; then |
5aac1dac | 13501 | gcj_cv_lib_sockets="-lsocket" |
ee9dd372 | 13502 | else |
ed698112 | 13503 | gcj_checkBoth=1 |
ee9dd372 | 13504 | fi |
ee9dd372 | 13505 | |
5aac1dac TT |
13506 | fi |
13507 | if test "$gcj_checkBoth" = 1; then | |
13508 | gcj_oldLibs=$LIBS | |
13509 | LIBS="$LIBS -lsocket -lnsl" | |
13510 | unset ac_cv_func_accept | |
ade710a5 TF |
13511 | echo "$as_me:$LINENO: checking for accept" >&5 |
13512 | echo $ECHO_N "checking for accept... $ECHO_C" >&6 | |
ed698112 NN |
13513 | if test "${ac_cv_func_accept+set}" = set; then |
13514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13515 | else | |
13516 | if test x$gcc_no_link = xyes; then | |
13517 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13518 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13519 | { (exit 1); exit 1; }; } | |
13520 | fi | |
13521 | cat >conftest.$ac_ext <<_ACEOF | |
13522 | /* confdefs.h. */ | |
13523 | _ACEOF | |
13524 | cat confdefs.h >>conftest.$ac_ext | |
13525 | cat >>conftest.$ac_ext <<_ACEOF | |
13526 | /* end confdefs.h. */ | |
13527 | /* Define accept to an innocuous variant, in case <limits.h> declares accept. | |
13528 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13529 | #define accept innocuous_accept | |
13530 | ||
5aac1dac | 13531 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
13532 | which can conflict with char accept (); below. |
13533 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13534 | <limits.h> exists even on freestanding compilers. */ | |
5aac1dac | 13535 | |
ed698112 NN |
13536 | #ifdef __STDC__ |
13537 | # include <limits.h> | |
13538 | #else | |
13539 | # include <assert.h> | |
13540 | #endif | |
5aac1dac | 13541 | |
ed698112 NN |
13542 | #undef accept |
13543 | ||
ade710a5 | 13544 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13545 | #ifdef __cplusplus |
13546 | extern "C" | |
ade710a5 | 13547 | { |
ed698112 | 13548 | #endif |
ade710a5 TF |
13549 | /* We use char because int might match the return type of a gcc2 |
13550 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 13551 | char accept (); |
5aac1dac TT |
13552 | /* The GNU C library defines this for functions which it implements |
13553 | to always fail with ENOSYS. Some functions are actually named | |
13554 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 13555 | #if defined (__stub_accept) || defined (__stub___accept) |
5aac1dac | 13556 | choke me |
ade710a5 TF |
13557 | #else |
13558 | char (*f) () = accept; | |
13559 | #endif | |
13560 | #ifdef __cplusplus | |
13561 | } | |
5aac1dac TT |
13562 | #endif |
13563 | ||
ed698112 NN |
13564 | int |
13565 | main () | |
13566 | { | |
ade710a5 | 13567 | return f != accept; |
ed698112 NN |
13568 | ; |
13569 | return 0; | |
13570 | } | |
13571 | _ACEOF | |
13572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13574 | (eval $ac_link) 2>conftest.er1 | |
13575 | ac_status=$? | |
13576 | grep -v '^ *+' conftest.er1 >conftest.err | |
13577 | rm -f conftest.er1 | |
13578 | cat conftest.err >&5 | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); } && | |
ade710a5 TF |
13581 | { ac_try='test -z "$ac_c_werror_flag" |
13582 | || test ! -s conftest.err' | |
ed698112 NN |
13583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13584 | (eval $ac_try) 2>&5 | |
13585 | ac_status=$? | |
13586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13587 | (exit $ac_status); }; } && | |
13588 | { ac_try='test -s conftest$ac_exeext' | |
13589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13590 | (eval $ac_try) 2>&5 | |
13591 | ac_status=$? | |
13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13593 | (exit $ac_status); }; }; then | |
13594 | ac_cv_func_accept=yes | |
13595 | else | |
13596 | echo "$as_me: failed program was:" >&5 | |
13597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13598 | ||
ade710a5 | 13599 | ac_cv_func_accept=no |
ed698112 NN |
13600 | fi |
13601 | rm -f conftest.err conftest.$ac_objext \ | |
13602 | conftest$ac_exeext conftest.$ac_ext | |
13603 | fi | |
ade710a5 TF |
13604 | echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 |
13605 | echo "${ECHO_T}$ac_cv_func_accept" >&6 | |
ed698112 | 13606 | if test $ac_cv_func_accept = yes; then |
5aac1dac TT |
13607 | gcj_checkNsl=0 |
13608 | gcj_cv_lib_sockets="-lsocket -lnsl" | |
04942eac | 13609 | fi |
04942eac | 13610 | |
5aac1dac TT |
13611 | unset ac_cv_func_accept |
13612 | LIBS=$gcj_oldLibs | |
13613 | fi | |
13614 | unset ac_cv_func_gethostbyname | |
13615 | gcj_oldLibs=$LIBS | |
13616 | LIBS="$LIBS $gcj_cv_lib_sockets" | |
ade710a5 TF |
13617 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
13618 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
ed698112 NN |
13619 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
13620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13621 | else | |
13622 | if test x$gcc_no_link = xyes; then | |
13623 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13624 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13625 | { (exit 1); exit 1; }; } | |
13626 | fi | |
13627 | cat >conftest.$ac_ext <<_ACEOF | |
13628 | /* confdefs.h. */ | |
13629 | _ACEOF | |
13630 | cat confdefs.h >>conftest.$ac_ext | |
13631 | cat >>conftest.$ac_ext <<_ACEOF | |
13632 | /* end confdefs.h. */ | |
13633 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
13634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13635 | #define gethostbyname innocuous_gethostbyname | |
13636 | ||
5aac1dac | 13637 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
13638 | which can conflict with char gethostbyname (); below. |
13639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13640 | <limits.h> exists even on freestanding compilers. */ | |
13641 | ||
13642 | #ifdef __STDC__ | |
13643 | # include <limits.h> | |
13644 | #else | |
13645 | # include <assert.h> | |
13646 | #endif | |
5aac1dac | 13647 | |
ed698112 | 13648 | #undef gethostbyname |
5aac1dac | 13649 | |
ade710a5 | 13650 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13651 | #ifdef __cplusplus |
13652 | extern "C" | |
ade710a5 | 13653 | { |
ed698112 | 13654 | #endif |
ade710a5 TF |
13655 | /* We use char because int might match the return type of a gcc2 |
13656 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 13657 | char gethostbyname (); |
5aac1dac TT |
13658 | /* The GNU C library defines this for functions which it implements |
13659 | to always fail with ENOSYS. Some functions are actually named | |
13660 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 13661 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
5aac1dac | 13662 | choke me |
ade710a5 TF |
13663 | #else |
13664 | char (*f) () = gethostbyname; | |
13665 | #endif | |
13666 | #ifdef __cplusplus | |
13667 | } | |
5aac1dac TT |
13668 | #endif |
13669 | ||
ed698112 NN |
13670 | int |
13671 | main () | |
13672 | { | |
ade710a5 | 13673 | return f != gethostbyname; |
ed698112 NN |
13674 | ; |
13675 | return 0; | |
13676 | } | |
13677 | _ACEOF | |
13678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13680 | (eval $ac_link) 2>conftest.er1 | |
13681 | ac_status=$? | |
13682 | grep -v '^ *+' conftest.er1 >conftest.err | |
13683 | rm -f conftest.er1 | |
13684 | cat conftest.err >&5 | |
13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13686 | (exit $ac_status); } && | |
ade710a5 TF |
13687 | { ac_try='test -z "$ac_c_werror_flag" |
13688 | || test ! -s conftest.err' | |
ed698112 NN |
13689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13690 | (eval $ac_try) 2>&5 | |
13691 | ac_status=$? | |
13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13693 | (exit $ac_status); }; } && | |
13694 | { ac_try='test -s conftest$ac_exeext' | |
13695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13696 | (eval $ac_try) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); }; }; then | |
13700 | ac_cv_func_gethostbyname=yes | |
13701 | else | |
13702 | echo "$as_me: failed program was:" >&5 | |
13703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13704 | ||
ade710a5 | 13705 | ac_cv_func_gethostbyname=no |
ed698112 NN |
13706 | fi |
13707 | rm -f conftest.err conftest.$ac_objext \ | |
13708 | conftest$ac_exeext conftest.$ac_ext | |
13709 | fi | |
ade710a5 TF |
13710 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
13711 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
ed698112 | 13712 | if test $ac_cv_func_gethostbyname = yes; then |
5aac1dac | 13713 | : |
ee9dd372 | 13714 | else |
ade710a5 TF |
13715 | echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
13716 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 | |
ed698112 NN |
13717 | if test "${ac_cv_lib_nsl_main+set}" = set; then |
13718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4048d336 | 13719 | else |
ed698112 | 13720 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 13721 | LIBS="-lnsl $LIBS" |
ed698112 NN |
13722 | if test x$gcc_no_link = xyes; then |
13723 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13724 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13725 | { (exit 1); exit 1; }; } | |
4048d336 | 13726 | fi |
ed698112 NN |
13727 | cat >conftest.$ac_ext <<_ACEOF |
13728 | /* confdefs.h. */ | |
13729 | _ACEOF | |
13730 | cat confdefs.h >>conftest.$ac_ext | |
13731 | cat >>conftest.$ac_ext <<_ACEOF | |
13732 | /* end confdefs.h. */ | |
5aac1dac | 13733 | |
ed698112 NN |
13734 | |
13735 | int | |
13736 | main () | |
13737 | { | |
ade710a5 | 13738 | main (); |
ed698112 NN |
13739 | ; |
13740 | return 0; | |
13741 | } | |
13742 | _ACEOF | |
13743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13745 | (eval $ac_link) 2>conftest.er1 | |
13746 | ac_status=$? | |
13747 | grep -v '^ *+' conftest.er1 >conftest.err | |
13748 | rm -f conftest.er1 | |
13749 | cat conftest.err >&5 | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); } && | |
ade710a5 TF |
13752 | { ac_try='test -z "$ac_c_werror_flag" |
13753 | || test ! -s conftest.err' | |
ed698112 NN |
13754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13755 | (eval $ac_try) 2>&5 | |
13756 | ac_status=$? | |
13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13758 | (exit $ac_status); }; } && | |
13759 | { ac_try='test -s conftest$ac_exeext' | |
13760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13761 | (eval $ac_try) 2>&5 | |
13762 | ac_status=$? | |
13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13764 | (exit $ac_status); }; }; then | |
13765 | ac_cv_lib_nsl_main=yes | |
13766 | else | |
13767 | echo "$as_me: failed program was:" >&5 | |
13768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13769 | ||
ade710a5 | 13770 | ac_cv_lib_nsl_main=no |
ed698112 NN |
13771 | fi |
13772 | rm -f conftest.err conftest.$ac_objext \ | |
13773 | conftest$ac_exeext conftest.$ac_ext | |
13774 | LIBS=$ac_check_lib_save_LIBS | |
13775 | fi | |
ade710a5 TF |
13776 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 |
13777 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 | |
ed698112 | 13778 | if test $ac_cv_lib_nsl_main = yes; then |
5aac1dac | 13779 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl" |
4048d336 AM |
13780 | fi |
13781 | ||
5aac1dac | 13782 | fi |
4048d336 | 13783 | |
5aac1dac TT |
13784 | unset ac_cv_func_gethostbyname |
13785 | LIBS=$gcj_oldLIBS | |
4048d336 | 13786 | |
ed698112 | 13787 | fi |
ade710a5 TF |
13788 | echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5 |
13789 | echo "${ECHO_T}$gcj_cv_lib_sockets" >&6 | |
5aac1dac | 13790 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets" |
ee9dd372 | 13791 | |
5aac1dac | 13792 | if test "$with_system_zlib" = yes; then |
ade710a5 TF |
13793 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
13794 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
ed698112 NN |
13795 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a3e174ea | 13797 | else |
ed698112 | 13798 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 13799 | LIBS="-lz $LIBS" |
ed698112 NN |
13800 | if test x$gcc_no_link = xyes; then |
13801 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13802 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13803 | { (exit 1); exit 1; }; } | |
13804 | fi | |
13805 | cat >conftest.$ac_ext <<_ACEOF | |
13806 | /* confdefs.h. */ | |
13807 | _ACEOF | |
13808 | cat confdefs.h >>conftest.$ac_ext | |
13809 | cat >>conftest.$ac_ext <<_ACEOF | |
13810 | /* end confdefs.h. */ | |
13811 | ||
ade710a5 | 13812 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
13813 | #ifdef __cplusplus |
13814 | extern "C" | |
13815 | #endif | |
ade710a5 TF |
13816 | /* We use char because int might match the return type of a gcc2 |
13817 | builtin and then its argument prototype would still apply. */ | |
ed698112 NN |
13818 | char deflate (); |
13819 | int | |
13820 | main () | |
13821 | { | |
ade710a5 | 13822 | deflate (); |
ed698112 NN |
13823 | ; |
13824 | return 0; | |
13825 | } | |
13826 | _ACEOF | |
13827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13829 | (eval $ac_link) 2>conftest.er1 | |
13830 | ac_status=$? | |
13831 | grep -v '^ *+' conftest.er1 >conftest.err | |
13832 | rm -f conftest.er1 | |
13833 | cat conftest.err >&5 | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); } && | |
ade710a5 TF |
13836 | { ac_try='test -z "$ac_c_werror_flag" |
13837 | || test ! -s conftest.err' | |
ed698112 NN |
13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13839 | (eval $ac_try) 2>&5 | |
13840 | ac_status=$? | |
13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13842 | (exit $ac_status); }; } && | |
13843 | { ac_try='test -s conftest$ac_exeext' | |
13844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13845 | (eval $ac_try) 2>&5 | |
13846 | ac_status=$? | |
13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13848 | (exit $ac_status); }; }; then | |
13849 | ac_cv_lib_z_deflate=yes | |
13850 | else | |
13851 | echo "$as_me: failed program was:" >&5 | |
13852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13853 | ||
ade710a5 | 13854 | ac_cv_lib_z_deflate=no |
ed698112 NN |
13855 | fi |
13856 | rm -f conftest.err conftest.$ac_objext \ | |
13857 | conftest$ac_exeext conftest.$ac_ext | |
13858 | LIBS=$ac_check_lib_save_LIBS | |
13859 | fi | |
ade710a5 TF |
13860 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
13861 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
ed698112 | 13862 | if test $ac_cv_lib_z_deflate = yes; then |
5aac1dac | 13863 | ZLIBSPEC=-lz |
a3e174ea | 13864 | else |
ed698112 | 13865 | ZLIBSPEC= |
a3e174ea | 13866 | fi |
a3e174ea | 13867 | |
5aac1dac TT |
13868 | fi |
13869 | ||
97b8365c TT |
13870 | LIBMAGIC= |
13871 | echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5 | |
13872 | echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6 | |
13873 | if test "${ac_cv_lib_magic_magic_open+set}" = set; then | |
13874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13875 | else | |
13876 | ac_check_lib_save_LIBS=$LIBS | |
13877 | LIBS="-lmagic $LIBS" | |
13878 | if test x$gcc_no_link = xyes; then | |
13879 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13880 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13881 | { (exit 1); exit 1; }; } | |
13882 | fi | |
13883 | cat >conftest.$ac_ext <<_ACEOF | |
13884 | /* confdefs.h. */ | |
13885 | _ACEOF | |
13886 | cat confdefs.h >>conftest.$ac_ext | |
13887 | cat >>conftest.$ac_ext <<_ACEOF | |
13888 | /* end confdefs.h. */ | |
13889 | ||
13890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13891 | #ifdef __cplusplus | |
13892 | extern "C" | |
13893 | #endif | |
13894 | /* We use char because int might match the return type of a gcc2 | |
13895 | builtin and then its argument prototype would still apply. */ | |
13896 | char magic_open (); | |
13897 | int | |
13898 | main () | |
13899 | { | |
13900 | magic_open (); | |
13901 | ; | |
13902 | return 0; | |
13903 | } | |
13904 | _ACEOF | |
13905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13907 | (eval $ac_link) 2>conftest.er1 | |
13908 | ac_status=$? | |
13909 | grep -v '^ *+' conftest.er1 >conftest.err | |
13910 | rm -f conftest.er1 | |
13911 | cat conftest.err >&5 | |
13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13913 | (exit $ac_status); } && | |
13914 | { ac_try='test -z "$ac_c_werror_flag" | |
13915 | || test ! -s conftest.err' | |
13916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13917 | (eval $ac_try) 2>&5 | |
13918 | ac_status=$? | |
13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13920 | (exit $ac_status); }; } && | |
13921 | { ac_try='test -s conftest$ac_exeext' | |
13922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13923 | (eval $ac_try) 2>&5 | |
13924 | ac_status=$? | |
13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13926 | (exit $ac_status); }; }; then | |
13927 | ac_cv_lib_magic_magic_open=yes | |
13928 | else | |
13929 | echo "$as_me: failed program was:" >&5 | |
13930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13931 | ||
13932 | ac_cv_lib_magic_magic_open=no | |
13933 | fi | |
13934 | rm -f conftest.err conftest.$ac_objext \ | |
13935 | conftest$ac_exeext conftest.$ac_ext | |
13936 | LIBS=$ac_check_lib_save_LIBS | |
13937 | fi | |
13938 | echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5 | |
13939 | echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6 | |
13940 | if test $ac_cv_lib_magic_magic_open = yes; then | |
13941 | ||
13942 | ||
13943 | cat >>confdefs.h <<\_ACEOF | |
13944 | #define HAVE_MAGIC_OPEN 1 | |
13945 | _ACEOF | |
13946 | ||
13947 | LIBMAGIC="-lmagic" | |
13948 | fi | |
13949 | ||
13950 | ||
13951 | ||
5aac1dac TT |
13952 | # Test for Gtk stuff, if asked for. |
13953 | if test "$use_gtk_awt" = yes; then | |
ed698112 | 13954 | |
a1ddb355 | 13955 | succeeded=no |
5aac1dac | 13956 | |
a1ddb355 MK |
13957 | if test -z "$PKG_CONFIG"; then |
13958 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29e531ff | 13959 | set dummy pkg-config; ac_word=$2 |
ade710a5 TF |
13960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
13962 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
13963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 13964 | else |
ed698112 NN |
13965 | case $PKG_CONFIG in |
13966 | [\\/]* | ?:[\\/]*) | |
29e531ff | 13967 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
5aac1dac | 13968 | ;; |
5aac1dac | 13969 | *) |
ed698112 NN |
13970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13971 | for as_dir in $PATH | |
13972 | do | |
13973 | IFS=$as_save_IFS | |
13974 | test -z "$as_dir" && as_dir=. | |
13975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 13976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
13977 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13979 | break 2 | |
13980 | fi | |
13981 | done | |
13982 | done | |
13983 | ||
29e531ff | 13984 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
5aac1dac TT |
13985 | ;; |
13986 | esac | |
13987 | fi | |
ed698112 | 13988 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
ade710a5 | 13989 | |
29e531ff | 13990 | if test -n "$PKG_CONFIG"; then |
ade710a5 TF |
13991 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
13992 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
5aac1dac | 13993 | else |
ade710a5 TF |
13994 | echo "$as_me:$LINENO: result: no" >&5 |
13995 | echo "${ECHO_T}no" >&6 | |
a3e174ea AO |
13996 | fi |
13997 | ||
29e531ff TF |
13998 | fi |
13999 | ||
a1ddb355 MK |
14000 | if test "$PKG_CONFIG" = "no" ; then |
14001 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14002 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14003 | echo "*** to the full path to pkg-config." | |
14004 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14005 | else | |
14006 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14007 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ade710a5 TF |
14008 | echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5 |
14009 | echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6 | |
5aac1dac | 14010 | |
f0faf24b | 14011 | if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then |
ade710a5 TF |
14012 | echo "$as_me:$LINENO: result: yes" >&5 |
14013 | echo "${ECHO_T}yes" >&6 | |
a1ddb355 | 14014 | succeeded=yes |
5aac1dac | 14015 | |
ade710a5 TF |
14016 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
14017 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
f0faf24b | 14018 | GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"` |
ade710a5 TF |
14019 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
14020 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
5aac1dac | 14021 | |
ade710a5 TF |
14022 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
14023 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
f0faf24b | 14024 | GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"` |
ade710a5 TF |
14025 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
14026 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
a1ddb355 MK |
14027 | else |
14028 | GTK_CFLAGS="" | |
14029 | GTK_LIBS="" | |
ed698112 | 14030 | ## If we have a custom action on failure, don't print errors, but |
a1ddb355 | 14031 | ## do set a variable so people can do so. |
f0faf24b | 14032 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"` |
a1ddb355 MK |
14033 | echo $GTK_PKG_ERRORS |
14034 | fi | |
5aac1dac | 14035 | |
ed698112 NN |
14036 | |
14037 | ||
5aac1dac | 14038 | else |
a1ddb355 MK |
14039 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
14040 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
5aac1dac TT |
14041 | fi |
14042 | fi | |
a3e174ea | 14043 | |
a1ddb355 MK |
14044 | if test $succeeded = yes; then |
14045 | : | |
14046 | else | |
ed698112 NN |
14047 | { { 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 |
14048 | 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;} | |
14049 | { (exit 1); exit 1; }; } | |
5aac1dac | 14050 | fi |
a3e174ea | 14051 | |
a3e174ea | 14052 | |
ed698112 NN |
14053 | |
14054 | ||
14055 | ||
a1ddb355 | 14056 | succeeded=no |
ccfe7e46 | 14057 | |
a1ddb355 MK |
14058 | if test -z "$PKG_CONFIG"; then |
14059 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29e531ff | 14060 | set dummy pkg-config; ac_word=$2 |
ade710a5 TF |
14061 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
14063 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
14064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 14065 | else |
ed698112 NN |
14066 | case $PKG_CONFIG in |
14067 | [\\/]* | ?:[\\/]*) | |
29e531ff | 14068 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
5aac1dac | 14069 | ;; |
5aac1dac | 14070 | *) |
ed698112 NN |
14071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14072 | for as_dir in $PATH | |
14073 | do | |
14074 | IFS=$as_save_IFS | |
14075 | test -z "$as_dir" && as_dir=. | |
14076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 14077 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
14078 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14080 | break 2 | |
14081 | fi | |
14082 | done | |
14083 | done | |
14084 | ||
29e531ff | 14085 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
5aac1dac TT |
14086 | ;; |
14087 | esac | |
14088 | fi | |
ed698112 | 14089 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
ade710a5 | 14090 | |
29e531ff | 14091 | if test -n "$PKG_CONFIG"; then |
ade710a5 TF |
14092 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
14093 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
5aac1dac | 14094 | else |
ade710a5 TF |
14095 | echo "$as_me:$LINENO: result: no" >&5 |
14096 | echo "${ECHO_T}no" >&6 | |
5aac1dac TT |
14097 | fi |
14098 | ||
29e531ff TF |
14099 | fi |
14100 | ||
1e567c43 TF |
14101 | if test "$PKG_CONFIG" = "no" ; then |
14102 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14103 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14104 | echo "*** to the full path to pkg-config." | |
14105 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14106 | else | |
14107 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14108 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ade710a5 TF |
14109 | echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5 |
14110 | echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6 | |
1e567c43 | 14111 | |
f0faf24b | 14112 | if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then |
ade710a5 TF |
14113 | echo "$as_me:$LINENO: result: yes" >&5 |
14114 | echo "${ECHO_T}yes" >&6 | |
1e567c43 TF |
14115 | succeeded=yes |
14116 | ||
ade710a5 TF |
14117 | echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5 |
14118 | echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6 | |
f0faf24b | 14119 | GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` |
ade710a5 TF |
14120 | echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5 |
14121 | echo "${ECHO_T}$GLIB_CFLAGS" >&6 | |
1e567c43 | 14122 | |
ade710a5 TF |
14123 | echo "$as_me:$LINENO: checking GLIB_LIBS" >&5 |
14124 | echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6 | |
f0faf24b | 14125 | GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` |
ade710a5 TF |
14126 | echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5 |
14127 | echo "${ECHO_T}$GLIB_LIBS" >&6 | |
1e567c43 TF |
14128 | else |
14129 | GLIB_CFLAGS="" | |
14130 | GLIB_LIBS="" | |
ed698112 | 14131 | ## If we have a custom action on failure, don't print errors, but |
1e567c43 | 14132 | ## do set a variable so people can do so. |
f0faf24b | 14133 | GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` |
1e567c43 TF |
14134 | echo $GLIB_PKG_ERRORS |
14135 | fi | |
14136 | ||
ed698112 NN |
14137 | |
14138 | ||
1e567c43 TF |
14139 | else |
14140 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14141 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14142 | fi | |
14143 | fi | |
14144 | ||
14145 | if test $succeeded = yes; then | |
14146 | : | |
14147 | else | |
ed698112 NN |
14148 | { { 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 |
14149 | 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;} | |
14150 | { (exit 1); exit 1; }; } | |
1e567c43 TF |
14151 | fi |
14152 | ||
1e567c43 | 14153 | |
ed698112 NN |
14154 | |
14155 | ||
14156 | ||
1e567c43 TF |
14157 | succeeded=no |
14158 | ||
14159 | if test -z "$PKG_CONFIG"; then | |
14160 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14161 | set dummy pkg-config; ac_word=$2 | |
ade710a5 TF |
14162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
14164 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
14165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1e567c43 | 14166 | else |
ed698112 NN |
14167 | case $PKG_CONFIG in |
14168 | [\\/]* | ?:[\\/]*) | |
1e567c43 TF |
14169 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14170 | ;; | |
1e567c43 | 14171 | *) |
ed698112 NN |
14172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14173 | for as_dir in $PATH | |
14174 | do | |
14175 | IFS=$as_save_IFS | |
14176 | test -z "$as_dir" && as_dir=. | |
14177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 14178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
14179 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14181 | break 2 | |
14182 | fi | |
14183 | done | |
14184 | done | |
14185 | ||
1e567c43 TF |
14186 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14187 | ;; | |
14188 | esac | |
14189 | fi | |
ed698112 | 14190 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
ade710a5 | 14191 | |
1e567c43 | 14192 | if test -n "$PKG_CONFIG"; then |
ade710a5 TF |
14193 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
14194 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
1e567c43 | 14195 | else |
ade710a5 TF |
14196 | echo "$as_me:$LINENO: result: no" >&5 |
14197 | echo "${ECHO_T}no" >&6 | |
1e567c43 TF |
14198 | fi |
14199 | ||
14200 | fi | |
14201 | ||
a1ddb355 MK |
14202 | if test "$PKG_CONFIG" = "no" ; then |
14203 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14204 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14205 | echo "*** to the full path to pkg-config." | |
14206 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
5aac1dac | 14207 | else |
a1ddb355 MK |
14208 | PKG_CONFIG_MIN_VERSION=0.9.0 |
14209 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ade710a5 TF |
14210 | echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5 |
14211 | echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6 | |
a3e174ea | 14212 | |
a1ddb355 | 14213 | if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then |
ade710a5 TF |
14214 | echo "$as_me:$LINENO: result: yes" >&5 |
14215 | echo "${ECHO_T}yes" >&6 | |
a1ddb355 | 14216 | succeeded=yes |
60a78ccf | 14217 | |
ade710a5 TF |
14218 | echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5 |
14219 | echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6 | |
a1ddb355 | 14220 | LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"` |
ade710a5 TF |
14221 | echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5 |
14222 | echo "${ECHO_T}$LIBART_CFLAGS" >&6 | |
5aac1dac | 14223 | |
ade710a5 TF |
14224 | echo "$as_me:$LINENO: checking LIBART_LIBS" >&5 |
14225 | echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6 | |
a1ddb355 | 14226 | LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"` |
ade710a5 TF |
14227 | echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5 |
14228 | echo "${ECHO_T}$LIBART_LIBS" >&6 | |
a1ddb355 MK |
14229 | else |
14230 | LIBART_CFLAGS="" | |
14231 | LIBART_LIBS="" | |
ed698112 | 14232 | ## If we have a custom action on failure, don't print errors, but |
a1ddb355 MK |
14233 | ## do set a variable so people can do so. |
14234 | LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"` | |
14235 | echo $LIBART_PKG_ERRORS | |
14236 | fi | |
5aac1dac | 14237 | |
ed698112 NN |
14238 | |
14239 | ||
a1ddb355 MK |
14240 | else |
14241 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14242 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
5aac1dac TT |
14243 | fi |
14244 | fi | |
14245 | ||
a1ddb355 MK |
14246 | if test $succeeded = yes; then |
14247 | : | |
5aac1dac | 14248 | else |
ed698112 NN |
14249 | { { 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 |
14250 | 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;} | |
14251 | { (exit 1); exit 1; }; } | |
5aac1dac | 14252 | fi |
ee9dd372 | 14253 | |
ed698112 NN |
14254 | |
14255 | ||
3f8dfdd4 TF |
14256 | |
14257 | # We require the XTest Extension to support java.awt.Robot. | |
ade710a5 TF |
14258 | echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5 |
14259 | echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6 | |
3f8dfdd4 TF |
14260 | if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then |
14261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14262 | else | |
14263 | ac_check_lib_save_LIBS=$LIBS | |
14264 | LIBS="-lXtst ${X_LIBS} $LIBS" | |
14265 | if test x$gcc_no_link = xyes; then | |
14266 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14267 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14268 | { (exit 1); exit 1; }; } | |
14269 | fi | |
14270 | cat >conftest.$ac_ext <<_ACEOF | |
14271 | /* confdefs.h. */ | |
14272 | _ACEOF | |
14273 | cat confdefs.h >>conftest.$ac_ext | |
14274 | cat >>conftest.$ac_ext <<_ACEOF | |
14275 | /* end confdefs.h. */ | |
14276 | ||
ade710a5 | 14277 | /* Override any gcc2 internal prototype to avoid an error. */ |
3f8dfdd4 TF |
14278 | #ifdef __cplusplus |
14279 | extern "C" | |
14280 | #endif | |
ade710a5 TF |
14281 | /* We use char because int might match the return type of a gcc2 |
14282 | builtin and then its argument prototype would still apply. */ | |
3f8dfdd4 TF |
14283 | char XTestQueryExtension (); |
14284 | int | |
14285 | main () | |
14286 | { | |
ade710a5 | 14287 | XTestQueryExtension (); |
3f8dfdd4 TF |
14288 | ; |
14289 | return 0; | |
14290 | } | |
14291 | _ACEOF | |
14292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14294 | (eval $ac_link) 2>conftest.er1 | |
14295 | ac_status=$? | |
14296 | grep -v '^ *+' conftest.er1 >conftest.err | |
14297 | rm -f conftest.er1 | |
14298 | cat conftest.err >&5 | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); } && | |
ade710a5 TF |
14301 | { ac_try='test -z "$ac_c_werror_flag" |
14302 | || test ! -s conftest.err' | |
3f8dfdd4 TF |
14303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14304 | (eval $ac_try) 2>&5 | |
14305 | ac_status=$? | |
14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14307 | (exit $ac_status); }; } && | |
14308 | { ac_try='test -s conftest$ac_exeext' | |
14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; }; then | |
14314 | ac_cv_lib_Xtst_XTestQueryExtension=yes | |
14315 | else | |
14316 | echo "$as_me: failed program was:" >&5 | |
14317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14318 | ||
ade710a5 | 14319 | ac_cv_lib_Xtst_XTestQueryExtension=no |
3f8dfdd4 TF |
14320 | fi |
14321 | rm -f conftest.err conftest.$ac_objext \ | |
14322 | conftest$ac_exeext conftest.$ac_ext | |
14323 | LIBS=$ac_check_lib_save_LIBS | |
14324 | fi | |
ade710a5 TF |
14325 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5 |
14326 | echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6 | |
3f8dfdd4 TF |
14327 | if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then |
14328 | true | |
14329 | else | |
14330 | { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5 | |
14331 | echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;} | |
14332 | { (exit 1); exit 1; }; } | |
14333 | fi | |
14334 | ||
5aac1dac TT |
14335 | fi |
14336 | ||
14337 | # On Solaris, and maybe other architectures, the Boehm collector | |
14338 | # requires -ldl. | |
14339 | if test "$GC" = boehm; then | |
ade710a5 TF |
14340 | echo "$as_me:$LINENO: checking for main in -ldl" >&5 |
14341 | echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6 | |
ed698112 NN |
14342 | if test "${ac_cv_lib_dl_main+set}" = set; then |
14343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 14344 | else |
ed698112 | 14345 | ac_check_lib_save_LIBS=$LIBS |
5aac1dac | 14346 | LIBS="-ldl $LIBS" |
ed698112 NN |
14347 | if test x$gcc_no_link = xyes; then |
14348 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14349 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14350 | { (exit 1); exit 1; }; } | |
5aac1dac | 14351 | fi |
ed698112 NN |
14352 | cat >conftest.$ac_ext <<_ACEOF |
14353 | /* confdefs.h. */ | |
14354 | _ACEOF | |
14355 | cat confdefs.h >>conftest.$ac_ext | |
14356 | cat >>conftest.$ac_ext <<_ACEOF | |
14357 | /* end confdefs.h. */ | |
5aac1dac | 14358 | |
ed698112 NN |
14359 | |
14360 | int | |
14361 | main () | |
14362 | { | |
ade710a5 | 14363 | main (); |
ed698112 NN |
14364 | ; |
14365 | return 0; | |
14366 | } | |
14367 | _ACEOF | |
14368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14370 | (eval $ac_link) 2>conftest.er1 | |
14371 | ac_status=$? | |
14372 | grep -v '^ *+' conftest.er1 >conftest.err | |
14373 | rm -f conftest.er1 | |
14374 | cat conftest.err >&5 | |
14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14376 | (exit $ac_status); } && | |
ade710a5 TF |
14377 | { ac_try='test -z "$ac_c_werror_flag" |
14378 | || test ! -s conftest.err' | |
ed698112 NN |
14379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14380 | (eval $ac_try) 2>&5 | |
14381 | ac_status=$? | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); }; } && | |
14384 | { ac_try='test -s conftest$ac_exeext' | |
14385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14386 | (eval $ac_try) 2>&5 | |
14387 | ac_status=$? | |
14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14389 | (exit $ac_status); }; }; then | |
14390 | ac_cv_lib_dl_main=yes | |
14391 | else | |
14392 | echo "$as_me: failed program was:" >&5 | |
14393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14394 | ||
ade710a5 | 14395 | ac_cv_lib_dl_main=no |
ed698112 NN |
14396 | fi |
14397 | rm -f conftest.err conftest.$ac_objext \ | |
14398 | conftest$ac_exeext conftest.$ac_ext | |
14399 | LIBS=$ac_check_lib_save_LIBS | |
14400 | fi | |
ade710a5 TF |
14401 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5 |
14402 | echo "${ECHO_T}$ac_cv_lib_dl_main" >&6 | |
ed698112 | 14403 | if test $ac_cv_lib_dl_main = yes; then |
5aac1dac | 14404 | SYSTEMSPEC="$SYSTEMSPEC -ldl" |
5aac1dac | 14405 | fi |
ee9dd372 | 14406 | |
5aac1dac | 14407 | fi |
17fdfd9f | 14408 | fi |
5aac1dac | 14409 | |
349e19d4 AL |
14410 | # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon. |
14411 | case $build in | |
14412 | *-mingw32) CLASSPATH_SEPARATOR=';' ;; | |
14413 | *) CLASSPATH_SEPARATOR=':' ;; | |
14414 | esac | |
14415 | ||
14416 | ||
5aac1dac TT |
14417 | # We must search the source tree for java.lang, since we still don't |
14418 | # have libgcj.jar nor java/lang/*.class | |
14419 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS | |
14420 | CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`" | |
14421 | ||
14422 | # Since some classes depend on this one, we need its source available | |
14423 | # before we can do any GCJ compilation test :-( | |
14424 | if test ! -f gnu/classpath/Configuration.java; then | |
14425 | test -d gnu || mkdir gnu | |
14426 | test -d gnu/classpath || mkdir gnu/classpath | |
10cbe699 TT |
14427 | # Note that it is not crucial that all the values here be correct. |
14428 | sed -e "s,@prefix@,$prefix," \ | |
14429 | -e "s,@VERSION@,$VERSION," \ | |
14430 | -e "s,@LIBDEBUG@,false," \ | |
14431 | -e "s,@INIT_LOAD_LIBRARY@,false," \ | |
14432 | -e "s,@@,$LIBGCJDEBUG," \ | |
14433 | -e "s,@default_toolkit@,$TOOLKIT," \ | |
14434 | -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \ | |
14435 | -e "s,@GTK_CAIRO_ENABLED@,false," \ | |
14436 | < $srcdir/classpath/gnu/classpath/Configuration.java.in \ | |
5aac1dac TT |
14437 | > gnu/classpath/Configuration.java |
14438 | # We do not want to redirect the output of the grep below to /dev/null, | |
14439 | # but we add /dev/null to the input list so that grep will print the | |
14440 | # filename of Configuration.java in case it finds any matches. | |
10cbe699 | 14441 | if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then |
80d8905c MK |
14442 | { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5 |
14443 | echo "$as_me: error: configure.ac is missing the substitutions above" >&2;} | |
ed698112 | 14444 | { (exit 1); exit 1; }; } |
5aac1dac TT |
14445 | fi |
14446 | fi | |
14447 | ||
ed698112 NN |
14448 | if test -n "$ac_tool_prefix"; then |
14449 | # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. | |
5aac1dac | 14450 | set dummy ${ac_tool_prefix}gcj; ac_word=$2 |
ade710a5 TF |
14451 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
14453 | if test "${ac_cv_prog_GCJ+set}" = set; then |
14454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac TT |
14455 | else |
14456 | if test -n "$GCJ"; then | |
14457 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
14458 | else | |
ed698112 NN |
14459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14460 | for as_dir in $PATH | |
14461 | do | |
14462 | IFS=$as_save_IFS | |
14463 | test -z "$as_dir" && as_dir=. | |
14464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 14465 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
14466 | ac_cv_prog_GCJ="${ac_tool_prefix}gcj" |
14467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14468 | break 2 | |
14469 | fi | |
14470 | done | |
14471 | done | |
14472 | ||
5aac1dac TT |
14473 | fi |
14474 | fi | |
ed698112 | 14475 | GCJ=$ac_cv_prog_GCJ |
5aac1dac | 14476 | if test -n "$GCJ"; then |
ade710a5 TF |
14477 | echo "$as_me:$LINENO: result: $GCJ" >&5 |
14478 | echo "${ECHO_T}$GCJ" >&6 | |
ee9dd372 | 14479 | else |
ade710a5 TF |
14480 | echo "$as_me:$LINENO: result: no" >&5 |
14481 | echo "${ECHO_T}no" >&6 | |
5aac1dac | 14482 | fi |
0659e0e3 | 14483 | |
ed698112 | 14484 | fi |
5aac1dac | 14485 | if test -z "$ac_cv_prog_GCJ"; then |
ed698112 | 14486 | ac_ct_GCJ=$GCJ |
5aac1dac TT |
14487 | # Extract the first word of "gcj", so it can be a program name with args. |
14488 | set dummy gcj; ac_word=$2 | |
ade710a5 TF |
14489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
14491 | if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then |
14492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 14493 | else |
ed698112 NN |
14494 | if test -n "$ac_ct_GCJ"; then |
14495 | ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. | |
5aac1dac | 14496 | else |
ed698112 NN |
14497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14498 | for as_dir in $PATH | |
14499 | do | |
14500 | IFS=$as_save_IFS | |
14501 | test -z "$as_dir" && as_dir=. | |
14502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 14503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
14504 | ac_cv_prog_ac_ct_GCJ="gcj" |
14505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14506 | break 2 | |
14507 | fi | |
14508 | done | |
14509 | done | |
14510 | ||
ade710a5 | 14511 | test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no" |
5aac1dac TT |
14512 | fi |
14513 | fi | |
ed698112 NN |
14514 | ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ |
14515 | if test -n "$ac_ct_GCJ"; then | |
ade710a5 TF |
14516 | echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5 |
14517 | echo "${ECHO_T}$ac_ct_GCJ" >&6 | |
0659e0e3 | 14518 | else |
ade710a5 TF |
14519 | echo "$as_me:$LINENO: result: no" >&5 |
14520 | echo "${ECHO_T}no" >&6 | |
0659e0e3 | 14521 | fi |
5aac1dac | 14522 | |
ade710a5 | 14523 | GCJ=$ac_ct_GCJ |
02809848 PB |
14524 | else |
14525 | GCJ="$ac_cv_prog_GCJ" | |
ee9dd372 | 14526 | fi |
ee9dd372 | 14527 | |
5aac1dac | 14528 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
ed698112 | 14529 | |
5aac1dac TT |
14530 | |
14531 | ||
5aac1dac | 14532 | |
b0fa81ee TT |
14533 | # Now remove it. |
14534 | rm -f gnu/classpath/Configuration.java | |
14535 | ||
5aac1dac TT |
14536 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS |
14537 | ||
ade710a5 TF |
14538 | echo "$as_me:$LINENO: checking for void *" >&5 |
14539 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
8107bc83 KC |
14540 | if test "${ac_cv_type_void_p+set}" = set; then |
14541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14542 | else | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | /* confdefs.h. */ | |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | int | |
14551 | main () | |
14552 | { | |
ade710a5 | 14553 | if ((void * *) 0) |
8107bc83 | 14554 | return 0; |
ade710a5 | 14555 | if (sizeof (void *)) |
8107bc83 KC |
14556 | return 0; |
14557 | ; | |
14558 | return 0; | |
14559 | } | |
14560 | _ACEOF | |
14561 | rm -f conftest.$ac_objext | |
14562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14563 | (eval $ac_compile) 2>conftest.er1 | |
14564 | ac_status=$? | |
14565 | grep -v '^ *+' conftest.er1 >conftest.err | |
14566 | rm -f conftest.er1 | |
14567 | cat conftest.err >&5 | |
14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14569 | (exit $ac_status); } && | |
ade710a5 TF |
14570 | { ac_try='test -z "$ac_c_werror_flag" |
14571 | || test ! -s conftest.err' | |
8107bc83 KC |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; } && | |
14577 | { ac_try='test -s conftest.$ac_objext' | |
14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14579 | (eval $ac_try) 2>&5 | |
14580 | ac_status=$? | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); }; }; then | |
14583 | ac_cv_type_void_p=yes | |
14584 | else | |
14585 | echo "$as_me: failed program was:" >&5 | |
14586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14587 | ||
ade710a5 | 14588 | ac_cv_type_void_p=no |
8107bc83 KC |
14589 | fi |
14590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14591 | fi | |
ade710a5 TF |
14592 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
14593 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
8107bc83 | 14594 | |
ade710a5 TF |
14595 | echo "$as_me:$LINENO: checking size of void *" >&5 |
14596 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
ed698112 NN |
14597 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
14598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ee9dd372 | 14599 | else |
8107bc83 | 14600 | if test "$ac_cv_type_void_p" = yes; then |
ade710a5 | 14601 | # The cast to unsigned long works around a bug in the HP C Compiler |
8107bc83 KC |
14602 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
14603 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14604 | # This bug is HP SR number 8606223364. | |
14605 | if test "$cross_compiling" = yes; then | |
14606 | # Depending upon the size, compute the lo and hi bounds. | |
14607 | cat >conftest.$ac_ext <<_ACEOF | |
ed698112 NN |
14608 | /* confdefs.h. */ |
14609 | _ACEOF | |
14610 | cat confdefs.h >>conftest.$ac_ext | |
14611 | cat >>conftest.$ac_ext <<_ACEOF | |
14612 | /* end confdefs.h. */ | |
8107bc83 KC |
14613 | $ac_includes_default |
14614 | int | |
14615 | main () | |
14616 | { | |
ade710a5 | 14617 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
8107bc83 | 14618 | test_array [0] = 0 |
5aac1dac | 14619 | |
8107bc83 KC |
14620 | ; |
14621 | return 0; | |
14622 | } | |
14623 | _ACEOF | |
14624 | rm -f conftest.$ac_objext | |
14625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14626 | (eval $ac_compile) 2>conftest.er1 | |
14627 | ac_status=$? | |
14628 | grep -v '^ *+' conftest.er1 >conftest.err | |
14629 | rm -f conftest.er1 | |
14630 | cat conftest.err >&5 | |
14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14632 | (exit $ac_status); } && | |
ade710a5 TF |
14633 | { ac_try='test -z "$ac_c_werror_flag" |
14634 | || test ! -s conftest.err' | |
8107bc83 KC |
14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14636 | (eval $ac_try) 2>&5 | |
14637 | ac_status=$? | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); }; } && | |
14640 | { ac_try='test -s conftest.$ac_objext' | |
14641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14642 | (eval $ac_try) 2>&5 | |
14643 | ac_status=$? | |
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14645 | (exit $ac_status); }; }; then | |
14646 | ac_lo=0 ac_mid=0 | |
14647 | while :; do | |
14648 | cat >conftest.$ac_ext <<_ACEOF | |
14649 | /* confdefs.h. */ | |
14650 | _ACEOF | |
14651 | cat confdefs.h >>conftest.$ac_ext | |
14652 | cat >>conftest.$ac_ext <<_ACEOF | |
14653 | /* end confdefs.h. */ | |
14654 | $ac_includes_default | |
14655 | int | |
14656 | main () | |
14657 | { | |
ade710a5 | 14658 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
8107bc83 | 14659 | test_array [0] = 0 |
5aac1dac | 14660 | |
8107bc83 KC |
14661 | ; |
14662 | return 0; | |
14663 | } | |
14664 | _ACEOF | |
14665 | rm -f conftest.$ac_objext | |
14666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14667 | (eval $ac_compile) 2>conftest.er1 | |
14668 | ac_status=$? | |
14669 | grep -v '^ *+' conftest.er1 >conftest.err | |
14670 | rm -f conftest.er1 | |
14671 | cat conftest.err >&5 | |
14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14673 | (exit $ac_status); } && | |
ade710a5 TF |
14674 | { ac_try='test -z "$ac_c_werror_flag" |
14675 | || test ! -s conftest.err' | |
8107bc83 KC |
14676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14677 | (eval $ac_try) 2>&5 | |
14678 | ac_status=$? | |
14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14680 | (exit $ac_status); }; } && | |
14681 | { ac_try='test -s conftest.$ac_objext' | |
14682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14683 | (eval $ac_try) 2>&5 | |
14684 | ac_status=$? | |
14685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14686 | (exit $ac_status); }; }; then | |
14687 | ac_hi=$ac_mid; break | |
14688 | else | |
14689 | echo "$as_me: failed program was:" >&5 | |
14690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14691 | ||
ade710a5 TF |
14692 | ac_lo=`expr $ac_mid + 1` |
14693 | if test $ac_lo -le $ac_mid; then | |
14694 | ac_lo= ac_hi= | |
14695 | break | |
14696 | fi | |
14697 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8107bc83 KC |
14698 | fi |
14699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14700 | done | |
14701 | else | |
14702 | echo "$as_me: failed program was:" >&5 | |
14703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14704 | ||
ade710a5 | 14705 | cat >conftest.$ac_ext <<_ACEOF |
8107bc83 KC |
14706 | /* confdefs.h. */ |
14707 | _ACEOF | |
14708 | cat confdefs.h >>conftest.$ac_ext | |
14709 | cat >>conftest.$ac_ext <<_ACEOF | |
14710 | /* end confdefs.h. */ | |
14711 | $ac_includes_default | |
14712 | int | |
14713 | main () | |
14714 | { | |
ade710a5 | 14715 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
8107bc83 KC |
14716 | test_array [0] = 0 |
14717 | ||
14718 | ; | |
14719 | return 0; | |
14720 | } | |
14721 | _ACEOF | |
14722 | rm -f conftest.$ac_objext | |
14723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14724 | (eval $ac_compile) 2>conftest.er1 | |
14725 | ac_status=$? | |
14726 | grep -v '^ *+' conftest.er1 >conftest.err | |
14727 | rm -f conftest.er1 | |
14728 | cat conftest.err >&5 | |
14729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14730 | (exit $ac_status); } && | |
ade710a5 TF |
14731 | { ac_try='test -z "$ac_c_werror_flag" |
14732 | || test ! -s conftest.err' | |
8107bc83 KC |
14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14734 | (eval $ac_try) 2>&5 | |
14735 | ac_status=$? | |
14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14737 | (exit $ac_status); }; } && | |
14738 | { ac_try='test -s conftest.$ac_objext' | |
14739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14740 | (eval $ac_try) 2>&5 | |
14741 | ac_status=$? | |
14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14743 | (exit $ac_status); }; }; then | |
14744 | ac_hi=-1 ac_mid=-1 | |
14745 | while :; do | |
14746 | cat >conftest.$ac_ext <<_ACEOF | |
14747 | /* confdefs.h. */ | |
14748 | _ACEOF | |
14749 | cat confdefs.h >>conftest.$ac_ext | |
14750 | cat >>conftest.$ac_ext <<_ACEOF | |
14751 | /* end confdefs.h. */ | |
14752 | $ac_includes_default | |
ed698112 NN |
14753 | int |
14754 | main () | |
14755 | { | |
ade710a5 | 14756 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
8107bc83 KC |
14757 | test_array [0] = 0 |
14758 | ||
ed698112 NN |
14759 | ; |
14760 | return 0; | |
14761 | } | |
14762 | _ACEOF | |
14763 | rm -f conftest.$ac_objext | |
14764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14765 | (eval $ac_compile) 2>conftest.er1 | |
14766 | ac_status=$? | |
14767 | grep -v '^ *+' conftest.er1 >conftest.err | |
14768 | rm -f conftest.er1 | |
14769 | cat conftest.err >&5 | |
14770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14771 | (exit $ac_status); } && | |
ade710a5 TF |
14772 | { ac_try='test -z "$ac_c_werror_flag" |
14773 | || test ! -s conftest.err' | |
ed698112 NN |
14774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); }; } && | |
14779 | { ac_try='test -s conftest.$ac_objext' | |
14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14781 | (eval $ac_try) 2>&5 | |
14782 | ac_status=$? | |
14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14784 | (exit $ac_status); }; }; then | |
8107bc83 | 14785 | ac_lo=$ac_mid; break |
ee9dd372 | 14786 | else |
ed698112 NN |
14787 | echo "$as_me: failed program was:" >&5 |
14788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14789 | ||
ade710a5 TF |
14790 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14791 | if test $ac_mid -le $ac_hi; then | |
14792 | ac_lo= ac_hi= | |
14793 | break | |
14794 | fi | |
14795 | ac_mid=`expr 2 '*' $ac_mid` | |
ee9dd372 | 14796 | fi |
ed698112 | 14797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8107bc83 KC |
14798 | done |
14799 | else | |
14800 | echo "$as_me: failed program was:" >&5 | |
14801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14802 | ||
ade710a5 | 14803 | ac_lo= ac_hi= |
8107bc83 KC |
14804 | fi |
14805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14806 | fi | |
14807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14808 | # Binary search between lo and hi bounds. | |
14809 | while test "x$ac_lo" != "x$ac_hi"; do | |
14810 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14811 | cat >conftest.$ac_ext <<_ACEOF | |
14812 | /* confdefs.h. */ | |
14813 | _ACEOF | |
14814 | cat confdefs.h >>conftest.$ac_ext | |
14815 | cat >>conftest.$ac_ext <<_ACEOF | |
14816 | /* end confdefs.h. */ | |
14817 | $ac_includes_default | |
14818 | int | |
14819 | main () | |
14820 | { | |
ade710a5 | 14821 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
8107bc83 | 14822 | test_array [0] = 0 |
5aac1dac | 14823 | |
8107bc83 KC |
14824 | ; |
14825 | return 0; | |
14826 | } | |
14827 | _ACEOF | |
14828 | rm -f conftest.$ac_objext | |
14829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14830 | (eval $ac_compile) 2>conftest.er1 | |
14831 | ac_status=$? | |
14832 | grep -v '^ *+' conftest.er1 >conftest.err | |
14833 | rm -f conftest.er1 | |
14834 | cat conftest.err >&5 | |
14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 | (exit $ac_status); } && | |
ade710a5 TF |
14837 | { ac_try='test -z "$ac_c_werror_flag" |
14838 | || test ! -s conftest.err' | |
8107bc83 KC |
14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14840 | (eval $ac_try) 2>&5 | |
14841 | ac_status=$? | |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14843 | (exit $ac_status); }; } && | |
14844 | { ac_try='test -s conftest.$ac_objext' | |
14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14846 | (eval $ac_try) 2>&5 | |
14847 | ac_status=$? | |
14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14849 | (exit $ac_status); }; }; then | |
14850 | ac_hi=$ac_mid | |
14851 | else | |
14852 | echo "$as_me: failed program was:" >&5 | |
14853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14854 | ||
ade710a5 | 14855 | ac_lo=`expr '(' $ac_mid ')' + 1` |
ee9dd372 | 14856 | fi |
8107bc83 KC |
14857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14858 | done | |
14859 | case $ac_lo in | |
14860 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
ade710a5 | 14861 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
8107bc83 | 14862 | See \`config.log' for more details." >&5 |
ade710a5 | 14863 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
8107bc83 | 14864 | See \`config.log' for more details." >&2;} |
ade710a5 | 14865 | { (exit 1); exit 1; }; } ;; |
8107bc83 | 14866 | esac |
ade710a5 TF |
14867 | else |
14868 | if test "$cross_compiling" = yes; then | |
14869 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14870 | See \`config.log' for more details." >&5 | |
14871 | echo "$as_me: error: cannot run test program while cross compiling | |
14872 | See \`config.log' for more details." >&2;} | |
14873 | { (exit 1); exit 1; }; } | |
8107bc83 KC |
14874 | else |
14875 | cat >conftest.$ac_ext <<_ACEOF | |
14876 | /* confdefs.h. */ | |
14877 | _ACEOF | |
14878 | cat confdefs.h >>conftest.$ac_ext | |
14879 | cat >>conftest.$ac_ext <<_ACEOF | |
14880 | /* end confdefs.h. */ | |
14881 | $ac_includes_default | |
ade710a5 TF |
14882 | long longval () { return (long) (sizeof (void *)); } |
14883 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
8107bc83 KC |
14884 | #include <stdio.h> |
14885 | #include <stdlib.h> | |
14886 | int | |
14887 | main () | |
14888 | { | |
14889 | ||
14890 | FILE *f = fopen ("conftest.val", "w"); | |
14891 | if (! f) | |
ade710a5 TF |
14892 | exit (1); |
14893 | if (((long) (sizeof (void *))) < 0) | |
8107bc83 | 14894 | { |
ade710a5 TF |
14895 | long i = longval (); |
14896 | if (i != ((long) (sizeof (void *)))) | |
14897 | exit (1); | |
8107bc83 KC |
14898 | fprintf (f, "%ld\n", i); |
14899 | } | |
14900 | else | |
14901 | { | |
ade710a5 TF |
14902 | unsigned long i = ulongval (); |
14903 | if (i != ((long) (sizeof (void *)))) | |
14904 | exit (1); | |
8107bc83 KC |
14905 | fprintf (f, "%lu\n", i); |
14906 | } | |
ade710a5 | 14907 | exit (ferror (f) || fclose (f) != 0); |
8107bc83 KC |
14908 | |
14909 | ; | |
14910 | return 0; | |
14911 | } | |
14912 | _ACEOF | |
14913 | rm -f conftest$ac_exeext | |
14914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14915 | (eval $ac_link) 2>&5 | |
14916 | ac_status=$? | |
14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14920 | (eval $ac_try) 2>&5 | |
14921 | ac_status=$? | |
14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14923 | (exit $ac_status); }; }; then | |
14924 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14925 | else | |
14926 | echo "$as_me: program exited with status $ac_status" >&5 | |
14927 | echo "$as_me: failed program was:" >&5 | |
14928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ee9dd372 | 14929 | |
8107bc83 | 14930 | ( exit $ac_status ) |
ade710a5 | 14931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
8107bc83 | 14932 | See \`config.log' for more details." >&5 |
ade710a5 | 14933 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
8107bc83 | 14934 | See \`config.log' for more details." >&2;} |
ade710a5 TF |
14935 | { (exit 1); exit 1; }; } |
14936 | fi | |
14937 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8107bc83 KC |
14938 | fi |
14939 | fi | |
14940 | rm -f conftest.val | |
14941 | else | |
14942 | ac_cv_sizeof_void_p=0 | |
14943 | fi | |
14944 | fi | |
ade710a5 TF |
14945 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14946 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
ed698112 | 14947 | cat >>confdefs.h <<_ACEOF |
5aac1dac | 14948 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
ed698112 | 14949 | _ACEOF |
ee9dd372 | 14950 | |
5aac1dac TT |
14951 | |
14952 | ||
ade710a5 TF |
14953 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
14954 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
44bffd9f AT |
14955 | if test "${ac_cv_c_bigendian+set}" = set; then |
14956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14957 | else | |
8107bc83 | 14958 | # See if sys/param.h defines the BYTE_ORDER macro. |
44bffd9f AT |
14959 | cat >conftest.$ac_ext <<_ACEOF |
14960 | /* confdefs.h. */ | |
14961 | _ACEOF | |
14962 | cat confdefs.h >>conftest.$ac_ext | |
14963 | cat >>conftest.$ac_ext <<_ACEOF | |
14964 | /* end confdefs.h. */ | |
14965 | #include <sys/types.h> | |
14966 | #include <sys/param.h> | |
8107bc83 | 14967 | |
44bffd9f AT |
14968 | int |
14969 | main () | |
14970 | { | |
44bffd9f AT |
14971 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14972 | bogus endian macros | |
14973 | #endif | |
8107bc83 | 14974 | |
44bffd9f AT |
14975 | ; |
14976 | return 0; | |
14977 | } | |
14978 | _ACEOF | |
14979 | rm -f conftest.$ac_objext | |
14980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14981 | (eval $ac_compile) 2>conftest.er1 | |
14982 | ac_status=$? | |
14983 | grep -v '^ *+' conftest.er1 >conftest.err | |
14984 | rm -f conftest.er1 | |
14985 | cat conftest.err >&5 | |
14986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14987 | (exit $ac_status); } && | |
ade710a5 TF |
14988 | { ac_try='test -z "$ac_c_werror_flag" |
14989 | || test ! -s conftest.err' | |
44bffd9f AT |
14990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14991 | (eval $ac_try) 2>&5 | |
14992 | ac_status=$? | |
14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14994 | (exit $ac_status); }; } && | |
14995 | { ac_try='test -s conftest.$ac_objext' | |
14996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14997 | (eval $ac_try) 2>&5 | |
14998 | ac_status=$? | |
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15000 | (exit $ac_status); }; }; then | |
15001 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15002 | cat >conftest.$ac_ext <<_ACEOF | |
15003 | /* confdefs.h. */ | |
15004 | _ACEOF | |
15005 | cat confdefs.h >>conftest.$ac_ext | |
15006 | cat >>conftest.$ac_ext <<_ACEOF | |
15007 | /* end confdefs.h. */ | |
15008 | #include <sys/types.h> | |
15009 | #include <sys/param.h> | |
8107bc83 | 15010 | |
44bffd9f AT |
15011 | int |
15012 | main () | |
15013 | { | |
44bffd9f AT |
15014 | #if BYTE_ORDER != BIG_ENDIAN |
15015 | not big endian | |
15016 | #endif | |
8107bc83 | 15017 | |
44bffd9f AT |
15018 | ; |
15019 | return 0; | |
15020 | } | |
15021 | _ACEOF | |
15022 | rm -f conftest.$ac_objext | |
15023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15024 | (eval $ac_compile) 2>conftest.er1 | |
15025 | ac_status=$? | |
15026 | grep -v '^ *+' conftest.er1 >conftest.err | |
15027 | rm -f conftest.er1 | |
15028 | cat conftest.err >&5 | |
15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15030 | (exit $ac_status); } && | |
ade710a5 TF |
15031 | { ac_try='test -z "$ac_c_werror_flag" |
15032 | || test ! -s conftest.err' | |
44bffd9f AT |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; } && | |
15038 | { ac_try='test -s conftest.$ac_objext' | |
15039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15040 | (eval $ac_try) 2>&5 | |
15041 | ac_status=$? | |
15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15043 | (exit $ac_status); }; }; then | |
15044 | ac_cv_c_bigendian=yes | |
15045 | else | |
15046 | echo "$as_me: failed program was:" >&5 | |
15047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15048 | ||
ade710a5 | 15049 | ac_cv_c_bigendian=no |
44bffd9f AT |
15050 | fi |
15051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15052 | else | |
15053 | echo "$as_me: failed program was:" >&5 | |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
ade710a5 | 15056 | # It does not; compile a test program. |
8107bc83 KC |
15057 | if test "$cross_compiling" = yes; then |
15058 | # try to guess the endianness by grepping values into an object file | |
15059 | ac_cv_c_bigendian=unknown | |
15060 | cat >conftest.$ac_ext <<_ACEOF | |
15061 | /* confdefs.h. */ | |
15062 | _ACEOF | |
15063 | cat confdefs.h >>conftest.$ac_ext | |
15064 | cat >>conftest.$ac_ext <<_ACEOF | |
15065 | /* end confdefs.h. */ | |
ade710a5 TF |
15066 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
15067 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
8107bc83 | 15068 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
ade710a5 TF |
15069 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
15070 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
8107bc83 KC |
15071 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
15072 | int | |
15073 | main () | |
15074 | { | |
15075 | _ascii (); _ebcdic (); | |
15076 | ; | |
15077 | return 0; | |
15078 | } | |
15079 | _ACEOF | |
15080 | rm -f conftest.$ac_objext | |
15081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15082 | (eval $ac_compile) 2>conftest.er1 | |
15083 | ac_status=$? | |
15084 | grep -v '^ *+' conftest.er1 >conftest.err | |
15085 | rm -f conftest.er1 | |
15086 | cat conftest.err >&5 | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); } && | |
ade710a5 TF |
15089 | { ac_try='test -z "$ac_c_werror_flag" |
15090 | || test ! -s conftest.err' | |
8107bc83 KC |
15091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15092 | (eval $ac_try) 2>&5 | |
15093 | ac_status=$? | |
15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15095 | (exit $ac_status); }; } && | |
15096 | { ac_try='test -s conftest.$ac_objext' | |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; }; then | |
15102 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
15103 | ac_cv_c_bigendian=yes | |
15104 | fi | |
15105 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15106 | if test "$ac_cv_c_bigendian" = unknown; then | |
15107 | ac_cv_c_bigendian=no | |
15108 | else | |
15109 | # finding both strings is unlikely to happen, but who knows? | |
15110 | ac_cv_c_bigendian=unknown | |
15111 | fi | |
15112 | fi | |
15113 | else | |
15114 | echo "$as_me: failed program was:" >&5 | |
15115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15116 | ||
44bffd9f AT |
15117 | fi |
15118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44bffd9f AT |
15119 | else |
15120 | cat >conftest.$ac_ext <<_ACEOF | |
15121 | /* confdefs.h. */ | |
15122 | _ACEOF | |
15123 | cat confdefs.h >>conftest.$ac_ext | |
15124 | cat >>conftest.$ac_ext <<_ACEOF | |
15125 | /* end confdefs.h. */ | |
8107bc83 KC |
15126 | int |
15127 | main () | |
15128 | { | |
44bffd9f AT |
15129 | /* Are we little or big endian? From Harbison&Steele. */ |
15130 | union | |
15131 | { | |
ade710a5 TF |
15132 | long l; |
15133 | char c[sizeof (long)]; | |
44bffd9f AT |
15134 | } u; |
15135 | u.l = 1; | |
ade710a5 | 15136 | exit (u.c[sizeof (long) - 1] == 1); |
44bffd9f AT |
15137 | } |
15138 | _ACEOF | |
15139 | rm -f conftest$ac_exeext | |
15140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15141 | (eval $ac_link) 2>&5 | |
15142 | ac_status=$? | |
15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15146 | (eval $ac_try) 2>&5 | |
15147 | ac_status=$? | |
15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15149 | (exit $ac_status); }; }; then | |
15150 | ac_cv_c_bigendian=no | |
15151 | else | |
15152 | echo "$as_me: program exited with status $ac_status" >&5 | |
15153 | echo "$as_me: failed program was:" >&5 | |
15154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15155 | ||
15156 | ( exit $ac_status ) | |
15157 | ac_cv_c_bigendian=yes | |
15158 | fi | |
ade710a5 | 15159 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
44bffd9f AT |
15160 | fi |
15161 | fi | |
8107bc83 | 15162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
44bffd9f | 15163 | fi |
ade710a5 TF |
15164 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
15165 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
8107bc83 KC |
15166 | case $ac_cv_c_bigendian in |
15167 | yes) | |
44bffd9f AT |
15168 | |
15169 | cat >>confdefs.h <<\_ACEOF | |
15170 | #define WORDS_BIGENDIAN 1 | |
15171 | _ACEOF | |
8107bc83 KC |
15172 | ;; |
15173 | no) | |
15174 | ;; | |
15175 | *) | |
15176 | { { echo "$as_me:$LINENO: error: unknown endianness | |
15177 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
15178 | echo "$as_me: error: unknown endianness | |
15179 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
15180 | { (exit 1); exit 1; }; } ;; | |
15181 | esac | |
44bffd9f AT |
15182 | |
15183 | ||
5aac1dac TT |
15184 | ZLIBS= |
15185 | SYS_ZLIBS= | |
15186 | ZINCS= | |
15187 | ||
15188 | if test -z "$ZLIBSPEC"; then | |
15189 | # Use zlib from the GCC tree. | |
15190 | ZINCS='-I$(top_srcdir)/../zlib' | |
15191 | ZLIBS=../zlib/libzgcj_convenience.la | |
15192 | else | |
15193 | # System's zlib. | |
15194 | SYS_ZLIBS="$ZLIBSPEC" | |
ee9dd372 TT |
15195 | fi |
15196 | ||
5aac1dac TT |
15197 | |
15198 | ||
15199 | ||
15200 | ||
15201 | ||
15202 | ||
15203 | ||
15204 | ||
c4ebd83d | 15205 | |
cd111813 | 15206 | |
4c86f325 | 15207 | if test "$NATIVE" = yes; then |
5aac1dac TT |
15208 | NATIVE_TRUE= |
15209 | NATIVE_FALSE='#' | |
15210 | else | |
15211 | NATIVE_TRUE='#' | |
15212 | NATIVE_FALSE= | |
ee9dd372 TT |
15213 | fi |
15214 | ||
ee9dd372 | 15215 | |
e3f92d3b | 15216 | |
97b8365c TT |
15217 | if test "$enable_shared" = yes; then |
15218 | ENABLE_SHARED_TRUE= | |
15219 | ENABLE_SHARED_FALSE='#' | |
15220 | else | |
15221 | ENABLE_SHARED_TRUE='#' | |
15222 | ENABLE_SHARED_FALSE= | |
15223 | fi | |
15224 | ||
15225 | ||
15226 | ||
5aac1dac TT |
15227 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then |
15228 | NEEDS_DATA_START_TRUE= | |
15229 | NEEDS_DATA_START_FALSE='#' | |
15230 | else | |
15231 | NEEDS_DATA_START_TRUE='#' | |
15232 | NEEDS_DATA_START_FALSE= | |
ee9dd372 TT |
15233 | fi |
15234 | ||
5aac1dac | 15235 | |
e3f92d3b | 15236 | |
f1c3e0a6 AJ |
15237 | # Process the option "--enable-version-specific-runtime-libs" |
15238 | # Calculate toolexeclibdir | |
15239 | case ${version_specific_libs} in | |
15240 | yes) | |
15241 | # Need the gcc compiler version to know where to install libraries | |
15242 | # and header files if --enable-version-specific-runtime-libs option | |
15243 | # is selected. | |
e9bbd9d7 | 15244 | includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/' |
ed2e3d33 | 15245 | toolexecdir='$(libdir)/gcc/$(target_noncanonical)' |
e9bbd9d7 | 15246 | toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
f1c3e0a6 AJ |
15247 | toolexeclibdir=$toolexecmainlibdir |
15248 | ;; | |
15249 | no) | |
15250 | if test -n "$with_cross_host" && | |
15251 | test x"$with_cross_host" != x"no"; then | |
15252 | # Install a library built with a cross compiler in tooldir, not libdir. | |
ed2e3d33 | 15253 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' |
f1c3e0a6 AJ |
15254 | toolexecmainlibdir='$(toolexecdir)/lib' |
15255 | else | |
ed2e3d33 | 15256 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' |
f1c3e0a6 AJ |
15257 | toolexecmainlibdir='$(libdir)' |
15258 | fi | |
15259 | multi_os_directory=`$CC -print-multi-os-directory` | |
15260 | case $multi_os_directory in | |
15261 | .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /. | |
15262 | *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;; | |
15263 | esac | |
15264 | ;; | |
ff8b9ca8 | 15265 | esac |
5aac1dac TT |
15266 | |
15267 | ||
15268 | ||
15269 | ||
80f06e28 TF |
15270 | # Determine where the standard .db file and GNU Classpath JNI |
15271 | # libraries are found. | |
84af16a6 JJ |
15272 | multi_os_directory=`$CC -print-multi-os-directory` |
15273 | case $multi_os_directory in | |
80f06e28 TF |
15274 | .) |
15275 | dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /. | |
80f06e28 TF |
15276 | ;; |
15277 | *) | |
15278 | dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' | |
80f06e28 | 15279 | ;; |
84af16a6 JJ |
15280 | esac |
15281 | ||
15282 | ||
5aac1dac | 15283 | # Determine gcj version number. |
5aac1dac | 15284 | gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'` |
5aac1dac TT |
15285 | GCJVERSION=$gcjversion |
15286 | ||
ed698112 NN |
15287 | |
15288 | cat >>confdefs.h <<_ACEOF | |
5aac1dac | 15289 | #define GCJVERSION "$GCJVERSION" |
ed698112 NN |
15290 | _ACEOF |
15291 | ||
15292 | ||
dafb7f3f | 15293 | |
b6121641 | 15294 | cat >>confdefs.h <<\_ACEOF |
97b8365c | 15295 | #define JV_VERSION "1.5.0" |
b6121641 TF |
15296 | _ACEOF |
15297 | ||
15298 | ||
15299 | cat >>confdefs.h <<\_ACEOF | |
97b8365c | 15300 | #define JV_API_VERSION "1.5" |
b6121641 TF |
15301 | _ACEOF |
15302 | ||
15303 | ||
15304 | ||
dafb7f3f RS |
15305 | case "${with_gxx_include_dir}" in |
15306 | yes) | |
15307 | { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5 | |
15308 | echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;} | |
15309 | { (exit 1); exit 1; }; } | |
15310 | ;; | |
15311 | no | "") | |
15312 | case "${enable_version_specific_runtime_libs}" in | |
e9bbd9d7 | 15313 | yes) gxx_include_dir='$(libsubdir)/include/c++' ;; |
dafb7f3f | 15314 | *) |
e9bbd9d7 | 15315 | libstdcxx_incdir='c++/$(gcc_version)' |
505692b0 DD |
15316 | gxx_include_dir='include/$(libstdcxx_incdir)' |
15317 | if test -n "$with_cross_host" && | |
15318 | test x"$with_cross_host" != x"no"; then | |
15319 | gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir" | |
15320 | else | |
15321 | gxx_include_dir='${prefix}/'"$gxx_include_dir" | |
15322 | fi;; | |
dafb7f3f RS |
15323 | esac ;; |
15324 | *) gxx_include_dir=${with_gxx_include_dir} ;; | |
15325 | esac | |
15326 | ||
15327 | ||
15328 | ||
15329 | ||
aed6152d NN |
15330 | # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there. |
15331 | # On that system, sys/ioctl.h will not include sys/filio.h unless | |
15332 | # BSD_COMP is defined; just including sys/filio.h is simpler. | |
17c2e2c0 TT |
15333 | # We avoid AC_HEADER_DIRENT since we really only care about dirent.h |
15334 | # for now. If you change this, you also must update natFile.cc. | |
ed698112 NN |
15335 | |
15336 | ||
15337 | ||
15338 | ||
15339 | ||
15340 | ||
15341 | ||
15342 | ||
15343 | ||
15344 | ||
15345 | ||
15346 | ||
15347 | ||
15348 | ||
15349 | ||
15350 | ||
15351 | ||
ee9dd372 TT |
15352 | |
15353 | ||
9327c475 | 15354 | |
97b8365c | 15355 | |
5920d981 | 15356 | |
ed698112 | 15357 | |
17c2e2c0 TT |
15358 | for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \ |
15359 | sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \ | |
15360 | sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \ | |
15361 | pwd.h sys/config.h stdint.h langinfo.h locale.h \ | |
97b8365c | 15362 | dirent.h sys/rw_lock.h magic.h ifaddrs.h |
5aac1dac | 15363 | do |
ed698112 | 15364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ade710a5 TF |
15365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 NN |
15369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15370 | fi | |
ade710a5 TF |
15371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
15373 | else |
15374 | # Is the header compilable? | |
ade710a5 TF |
15375 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
ed698112 NN |
15377 | cat >conftest.$ac_ext <<_ACEOF |
15378 | /* confdefs.h. */ | |
15379 | _ACEOF | |
15380 | cat confdefs.h >>conftest.$ac_ext | |
15381 | cat >>conftest.$ac_ext <<_ACEOF | |
15382 | /* end confdefs.h. */ | |
15383 | $ac_includes_default | |
15384 | #include <$ac_header> | |
15385 | _ACEOF | |
15386 | rm -f conftest.$ac_objext | |
15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15388 | (eval $ac_compile) 2>conftest.er1 | |
15389 | ac_status=$? | |
15390 | grep -v '^ *+' conftest.er1 >conftest.err | |
15391 | rm -f conftest.er1 | |
15392 | cat conftest.err >&5 | |
15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15394 | (exit $ac_status); } && | |
ade710a5 TF |
15395 | { ac_try='test -z "$ac_c_werror_flag" |
15396 | || test ! -s conftest.err' | |
ed698112 NN |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; } && | |
15402 | { ac_try='test -s conftest.$ac_objext' | |
15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15404 | (eval $ac_try) 2>&5 | |
15405 | ac_status=$? | |
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15407 | (exit $ac_status); }; }; then | |
15408 | ac_header_compiler=yes | |
15409 | else | |
15410 | echo "$as_me: failed program was:" >&5 | |
15411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15412 | ||
ade710a5 | 15413 | ac_header_compiler=no |
ed698112 NN |
15414 | fi |
15415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ade710a5 TF |
15416 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15417 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
ed698112 NN |
15418 | |
15419 | # Is the header present? | |
ade710a5 TF |
15420 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15421 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
ed698112 NN |
15422 | cat >conftest.$ac_ext <<_ACEOF |
15423 | /* confdefs.h. */ | |
15424 | _ACEOF | |
15425 | cat confdefs.h >>conftest.$ac_ext | |
15426 | cat >>conftest.$ac_ext <<_ACEOF | |
15427 | /* end confdefs.h. */ | |
15428 | #include <$ac_header> | |
15429 | _ACEOF | |
15430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15432 | ac_status=$? | |
15433 | grep -v '^ *+' conftest.er1 >conftest.err | |
15434 | rm -f conftest.er1 | |
15435 | cat conftest.err >&5 | |
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15437 | (exit $ac_status); } >/dev/null; then | |
15438 | if test -s conftest.err; then | |
15439 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15440 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15441 | else | |
15442 | ac_cpp_err= | |
15443 | fi | |
ee9dd372 | 15444 | else |
ed698112 | 15445 | ac_cpp_err=yes |
ee9dd372 | 15446 | fi |
ed698112 NN |
15447 | if test -z "$ac_cpp_err"; then |
15448 | ac_header_preproc=yes | |
15449 | else | |
15450 | echo "$as_me: failed program was:" >&5 | |
15451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15452 | ||
15453 | ac_header_preproc=no | |
ee9dd372 | 15454 | fi |
ed698112 | 15455 | rm -f conftest.err conftest.$ac_ext |
ade710a5 TF |
15456 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15457 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
ed698112 NN |
15458 | |
15459 | # So? What about this header? | |
15460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15461 | yes:no: ) | |
15462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15466 | ac_header_preproc=yes | |
15467 | ;; | |
15468 | no:yes:* ) | |
15469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ade710a5 TF |
15481 | ( |
15482 | cat <<\_ASBOX | |
15483 | ## ---------------------------------- ## | |
15484 | ## Report this to the libjava lists. ## | |
15485 | ## ---------------------------------- ## | |
15486 | _ASBOX | |
15487 | ) | | |
15488 | sed "s/^/$as_me: WARNING: /" >&2 | |
ed698112 NN |
15489 | ;; |
15490 | esac | |
ade710a5 TF |
15491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 | 15494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5aac1dac | 15495 | else |
ed698112 NN |
15496 | eval "$as_ac_Header=\$ac_header_preproc" |
15497 | fi | |
ade710a5 TF |
15498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
15500 | |
15501 | fi | |
15502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15503 | cat >>confdefs.h <<_ACEOF | |
15504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15505 | _ACEOF | |
15506 | ||
ee9dd372 | 15507 | fi |
ed698112 | 15508 | |
5aac1dac | 15509 | done |
ee9dd372 | 15510 | |
ed698112 NN |
15511 | |
15512 | for ac_header in inttypes.h | |
ee9dd372 | 15513 | do |
ed698112 | 15514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ade710a5 TF |
15515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 NN |
15519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15520 | fi | |
ade710a5 TF |
15521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
15523 | else |
15524 | # Is the header compilable? | |
ade710a5 TF |
15525 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
ed698112 NN |
15527 | cat >conftest.$ac_ext <<_ACEOF |
15528 | /* confdefs.h. */ | |
15529 | _ACEOF | |
15530 | cat confdefs.h >>conftest.$ac_ext | |
15531 | cat >>conftest.$ac_ext <<_ACEOF | |
15532 | /* end confdefs.h. */ | |
15533 | $ac_includes_default | |
15534 | #include <$ac_header> | |
15535 | _ACEOF | |
15536 | rm -f conftest.$ac_objext | |
15537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15538 | (eval $ac_compile) 2>conftest.er1 | |
15539 | ac_status=$? | |
15540 | grep -v '^ *+' conftest.er1 >conftest.err | |
15541 | rm -f conftest.er1 | |
15542 | cat conftest.err >&5 | |
15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15544 | (exit $ac_status); } && | |
ade710a5 TF |
15545 | { ac_try='test -z "$ac_c_werror_flag" |
15546 | || test ! -s conftest.err' | |
ed698112 NN |
15547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15548 | (eval $ac_try) 2>&5 | |
15549 | ac_status=$? | |
15550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15551 | (exit $ac_status); }; } && | |
15552 | { ac_try='test -s conftest.$ac_objext' | |
15553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15554 | (eval $ac_try) 2>&5 | |
15555 | ac_status=$? | |
15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15557 | (exit $ac_status); }; }; then | |
15558 | ac_header_compiler=yes | |
15559 | else | |
15560 | echo "$as_me: failed program was:" >&5 | |
15561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15562 | ||
ade710a5 | 15563 | ac_header_compiler=no |
ed698112 NN |
15564 | fi |
15565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ade710a5 TF |
15566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15567 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
ed698112 NN |
15568 | |
15569 | # Is the header present? | |
ade710a5 TF |
15570 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15571 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
ed698112 NN |
15572 | cat >conftest.$ac_ext <<_ACEOF |
15573 | /* confdefs.h. */ | |
15574 | _ACEOF | |
15575 | cat confdefs.h >>conftest.$ac_ext | |
15576 | cat >>conftest.$ac_ext <<_ACEOF | |
15577 | /* end confdefs.h. */ | |
15578 | #include <$ac_header> | |
15579 | _ACEOF | |
15580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15582 | ac_status=$? | |
15583 | grep -v '^ *+' conftest.er1 >conftest.err | |
15584 | rm -f conftest.er1 | |
15585 | cat conftest.err >&5 | |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); } >/dev/null; then | |
15588 | if test -s conftest.err; then | |
15589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15591 | else | |
15592 | ac_cpp_err= | |
15593 | fi | |
ee9dd372 | 15594 | else |
ed698112 | 15595 | ac_cpp_err=yes |
3cf88fb4 | 15596 | fi |
ed698112 NN |
15597 | if test -z "$ac_cpp_err"; then |
15598 | ac_header_preproc=yes | |
15599 | else | |
15600 | echo "$as_me: failed program was:" >&5 | |
15601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15602 | ||
15603 | ac_header_preproc=no | |
ee9dd372 | 15604 | fi |
ed698112 | 15605 | rm -f conftest.err conftest.$ac_ext |
ade710a5 TF |
15606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15607 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
ed698112 NN |
15608 | |
15609 | # So? What about this header? | |
15610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15611 | yes:no: ) | |
15612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15616 | ac_header_preproc=yes | |
15617 | ;; | |
15618 | no:yes:* ) | |
15619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ade710a5 TF |
15631 | ( |
15632 | cat <<\_ASBOX | |
15633 | ## ---------------------------------- ## | |
15634 | ## Report this to the libjava lists. ## | |
15635 | ## ---------------------------------- ## | |
15636 | _ASBOX | |
15637 | ) | | |
15638 | sed "s/^/$as_me: WARNING: /" >&2 | |
ed698112 NN |
15639 | ;; |
15640 | esac | |
ade710a5 TF |
15641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
ed698112 NN |
15644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15645 | else | |
15646 | eval "$as_ac_Header=\$ac_header_preproc" | |
15647 | fi | |
ade710a5 TF |
15648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ed698112 NN |
15650 | |
15651 | fi | |
15652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15653 | cat >>confdefs.h <<_ACEOF | |
15654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15655 | _ACEOF | |
15656 | ||
15657 | ||
15658 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 15659 | #define HAVE_INTTYPES_H 1 |
ed698112 NN |
15660 | _ACEOF |
15661 | ||
5aac1dac | 15662 | |
ed698112 | 15663 | cat >>confdefs.h <<\_ACEOF |
5aac1dac | 15664 | #define JV_HAVE_INTTYPES_H 1 |
ed698112 | 15665 | _ACEOF |
ee9dd372 | 15666 | |
2622c79d | 15667 | |
5aac1dac | 15668 | fi |
ed698112 | 15669 | |
5aac1dac TT |
15670 | done |
15671 | ||
ade710a5 TF |
15672 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
15673 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
ed698112 NN |
15674 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
15675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15676 | else | |
15677 | cat >conftest.$ac_ext <<_ACEOF | |
15678 | /* confdefs.h. */ | |
15679 | _ACEOF | |
15680 | cat confdefs.h >>conftest.$ac_ext | |
15681 | cat >>conftest.$ac_ext <<_ACEOF | |
15682 | /* end confdefs.h. */ | |
5aac1dac TT |
15683 | #include <sys/types.h> |
15684 | #include <sys/wait.h> | |
15685 | #ifndef WEXITSTATUS | |
ade710a5 | 15686 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
5aac1dac TT |
15687 | #endif |
15688 | #ifndef WIFEXITED | |
ed698112 | 15689 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
5aac1dac | 15690 | #endif |
ed698112 NN |
15691 | |
15692 | int | |
15693 | main () | |
15694 | { | |
15695 | int s; | |
15696 | wait (&s); | |
15697 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
15698 | ; | |
15699 | return 0; | |
15700 | } | |
15701 | _ACEOF | |
15702 | rm -f conftest.$ac_objext | |
15703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15704 | (eval $ac_compile) 2>conftest.er1 | |
15705 | ac_status=$? | |
15706 | grep -v '^ *+' conftest.er1 >conftest.err | |
15707 | rm -f conftest.er1 | |
15708 | cat conftest.err >&5 | |
15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15710 | (exit $ac_status); } && | |
ade710a5 TF |
15711 | { ac_try='test -z "$ac_c_werror_flag" |
15712 | || test ! -s conftest.err' | |
ed698112 NN |
15713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15714 | (eval $ac_try) 2>&5 | |
15715 | ac_status=$? | |
15716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15717 | (exit $ac_status); }; } && | |
15718 | { ac_try='test -s conftest.$ac_objext' | |
15719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15720 | (eval $ac_try) 2>&5 | |
15721 | ac_status=$? | |
15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15723 | (exit $ac_status); }; }; then | |
5aac1dac TT |
15724 | ac_cv_header_sys_wait_h=yes |
15725 | else | |
ed698112 NN |
15726 | echo "$as_me: failed program was:" >&5 |
15727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15728 | ||
ade710a5 | 15729 | ac_cv_header_sys_wait_h=no |
5aac1dac | 15730 | fi |
ed698112 | 15731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 15732 | fi |
ade710a5 TF |
15733 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
15734 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
5aac1dac | 15735 | if test $ac_cv_header_sys_wait_h = yes; then |
ed698112 NN |
15736 | |
15737 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 15738 | #define HAVE_SYS_WAIT_H 1 |
ed698112 | 15739 | _ACEOF |
2622c79d | 15740 | |
5aac1dac TT |
15741 | fi |
15742 | ||
15743 | ||
ade710a5 TF |
15744 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
15745 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
ed698112 NN |
15746 | if test "${ac_cv_type_ssize_t+set}" = set; then |
15747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aac1dac | 15748 | else |
ed698112 NN |
15749 | cat >conftest.$ac_ext <<_ACEOF |
15750 | /* confdefs.h. */ | |
15751 | _ACEOF | |
15752 | cat confdefs.h >>conftest.$ac_ext | |
15753 | cat >>conftest.$ac_ext <<_ACEOF | |
15754 | /* end confdefs.h. */ | |
15755 | $ac_includes_default | |
15756 | int | |
15757 | main () | |
15758 | { | |
ade710a5 | 15759 | if ((ssize_t *) 0) |
ed698112 | 15760 | return 0; |
ade710a5 | 15761 | if (sizeof (ssize_t)) |
ed698112 NN |
15762 | return 0; |
15763 | ; | |
15764 | return 0; | |
15765 | } | |
15766 | _ACEOF | |
15767 | rm -f conftest.$ac_objext | |
15768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15769 | (eval $ac_compile) 2>conftest.er1 | |
15770 | ac_status=$? | |
15771 | grep -v '^ *+' conftest.er1 >conftest.err | |
15772 | rm -f conftest.er1 | |
15773 | cat conftest.err >&5 | |
15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15775 | (exit $ac_status); } && | |
ade710a5 TF |
15776 | { ac_try='test -z "$ac_c_werror_flag" |
15777 | || test ! -s conftest.err' | |
ed698112 NN |
15778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15779 | (eval $ac_try) 2>&5 | |
15780 | ac_status=$? | |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15782 | (exit $ac_status); }; } && | |
15783 | { ac_try='test -s conftest.$ac_objext' | |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15788 | (exit $ac_status); }; }; then | |
15789 | ac_cv_type_ssize_t=yes | |
5aac1dac | 15790 | else |
ed698112 NN |
15791 | echo "$as_me: failed program was:" >&5 |
15792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2622c79d | 15793 | |
ade710a5 | 15794 | ac_cv_type_ssize_t=no |
5aac1dac | 15795 | fi |
ed698112 | 15796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5aac1dac | 15797 | fi |
ade710a5 TF |
15798 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
15799 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
ed698112 | 15800 | if test $ac_cv_type_ssize_t = yes; then |
5aac1dac | 15801 | : |
2622c79d | 15802 | else |
2622c79d | 15803 | |
ed698112 | 15804 | cat >>confdefs.h <<_ACEOF |
5aac1dac | 15805 | #define ssize_t int |
ed698112 | 15806 | _ACEOF |
5aac1dac TT |
15807 | |
15808 | fi | |
15809 | ||
2622c79d | 15810 | |
ade710a5 TF |
15811 | echo "$as_me:$LINENO: checking for in_addr_t" >&5 |
15812 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 | |
ed698112 NN |
15813 | cat >conftest.$ac_ext <<_ACEOF |
15814 | /* confdefs.h. */ | |
15815 | _ACEOF | |
15816 | cat confdefs.h >>conftest.$ac_ext | |
15817 | cat >>conftest.$ac_ext <<_ACEOF | |
15818 | /* end confdefs.h. */ | |
5aac1dac TT |
15819 | #include <sys/types.h> |
15820 | #if STDC_HEADERS | |
15821 | #include <stdlib.h> | |
15822 | #include <stddef.h> | |
15823 | #endif | |
15824 | #if HAVE_NETINET_IN_H | |
15825 | #include <netinet/in.h> | |
15826 | #endif | |
ed698112 NN |
15827 | int |
15828 | main () | |
15829 | { | |
5aac1dac | 15830 | in_addr_t foo; |
ed698112 NN |
15831 | ; |
15832 | return 0; | |
15833 | } | |
15834 | _ACEOF | |
15835 | rm -f conftest.$ac_objext | |
15836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15837 | (eval $ac_compile) 2>conftest.er1 | |
15838 | ac_status=$? | |
15839 | grep -v '^ *+' conftest.er1 >conftest.err | |
15840 | rm -f conftest.er1 | |
15841 | cat conftest.err >&5 | |
15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15843 | (exit $ac_status); } && | |
ade710a5 TF |
15844 | { ac_try='test -z "$ac_c_werror_flag" |
15845 | || test ! -s conftest.err' | |
ed698112 NN |
15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15847 | (eval $ac_try) 2>&5 | |
15848 | ac_status=$? | |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); }; } && | |
15851 | { ac_try='test -s conftest.$ac_objext' | |
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15853 | (eval $ac_try) 2>&5 | |
15854 | ac_status=$? | |
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15856 | (exit $ac_status); }; }; then | |
15857 | ||
15858 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 15859 | #define HAVE_IN_ADDR_T 1 |
ed698112 | 15860 | _ACEOF |
5aac1dac | 15861 | |
ade710a5 TF |
15862 | echo "$as_me:$LINENO: result: yes" >&5 |
15863 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 15864 | else |
ed698112 NN |
15865 | echo "$as_me: failed program was:" >&5 |
15866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15867 | ||
ade710a5 TF |
15868 | echo "$as_me:$LINENO: result: no" >&5 |
15869 | echo "${ECHO_T}no" >&6 | |
2622c79d | 15870 | fi |
ed698112 | 15871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 15872 | |
ade710a5 TF |
15873 | echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5 |
15874 | echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6 | |
ed698112 NN |
15875 | cat >conftest.$ac_ext <<_ACEOF |
15876 | /* confdefs.h. */ | |
15877 | _ACEOF | |
15878 | cat confdefs.h >>conftest.$ac_ext | |
15879 | cat >>conftest.$ac_ext <<_ACEOF | |
15880 | /* end confdefs.h. */ | |
5aac1dac | 15881 | #include <netinet/in.h> |
ed698112 NN |
15882 | int |
15883 | main () | |
15884 | { | |
5aac1dac | 15885 | struct ip_mreq mreq; |
ed698112 NN |
15886 | ; |
15887 | return 0; | |
15888 | } | |
15889 | _ACEOF | |
15890 | rm -f conftest.$ac_objext | |
15891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15892 | (eval $ac_compile) 2>conftest.er1 | |
15893 | ac_status=$? | |
15894 | grep -v '^ *+' conftest.er1 >conftest.err | |
15895 | rm -f conftest.er1 | |
15896 | cat conftest.err >&5 | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); } && | |
ade710a5 TF |
15899 | { ac_try='test -z "$ac_c_werror_flag" |
15900 | || test ! -s conftest.err' | |
ed698112 NN |
15901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15902 | (eval $ac_try) 2>&5 | |
15903 | ac_status=$? | |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15905 | (exit $ac_status); }; } && | |
15906 | { ac_try='test -s conftest.$ac_objext' | |
15907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15908 | (eval $ac_try) 2>&5 | |
15909 | ac_status=$? | |
15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | (exit $ac_status); }; }; then | |
15912 | ||
15913 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 15914 | #define HAVE_STRUCT_IP_MREQ 1 |
ed698112 | 15915 | _ACEOF |
5aac1dac | 15916 | |
ade710a5 TF |
15917 | echo "$as_me:$LINENO: result: yes" >&5 |
15918 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 15919 | else |
ed698112 NN |
15920 | echo "$as_me: failed program was:" >&5 |
15921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15922 | ||
ade710a5 TF |
15923 | echo "$as_me:$LINENO: result: no" >&5 |
15924 | echo "${ECHO_T}no" >&6 | |
2622c79d | 15925 | fi |
ed698112 | 15926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 15927 | |
ade710a5 TF |
15928 | echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5 |
15929 | echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6 | |
ed698112 NN |
15930 | cat >conftest.$ac_ext <<_ACEOF |
15931 | /* confdefs.h. */ | |
15932 | _ACEOF | |
15933 | cat confdefs.h >>conftest.$ac_ext | |
15934 | cat >>conftest.$ac_ext <<_ACEOF | |
15935 | /* end confdefs.h. */ | |
5aac1dac | 15936 | #include <netinet/in.h> |
ed698112 NN |
15937 | int |
15938 | main () | |
15939 | { | |
5aac1dac | 15940 | struct ipv6_mreq mreq6; |
ed698112 NN |
15941 | ; |
15942 | return 0; | |
15943 | } | |
15944 | _ACEOF | |
15945 | rm -f conftest.$ac_objext | |
15946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15947 | (eval $ac_compile) 2>conftest.er1 | |
15948 | ac_status=$? | |
15949 | grep -v '^ *+' conftest.er1 >conftest.err | |
15950 | rm -f conftest.er1 | |
15951 | cat conftest.err >&5 | |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15953 | (exit $ac_status); } && | |
ade710a5 TF |
15954 | { ac_try='test -z "$ac_c_werror_flag" |
15955 | || test ! -s conftest.err' | |
ed698112 NN |
15956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15957 | (eval $ac_try) 2>&5 | |
15958 | ac_status=$? | |
15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15960 | (exit $ac_status); }; } && | |
15961 | { ac_try='test -s conftest.$ac_objext' | |
15962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15963 | (eval $ac_try) 2>&5 | |
15964 | ac_status=$? | |
15965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15966 | (exit $ac_status); }; }; then | |
15967 | ||
15968 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 15969 | #define HAVE_STRUCT_IPV6_MREQ 1 |
ed698112 | 15970 | _ACEOF |
5aac1dac | 15971 | |
ade710a5 TF |
15972 | echo "$as_me:$LINENO: result: yes" >&5 |
15973 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 15974 | else |
ed698112 NN |
15975 | echo "$as_me: failed program was:" >&5 |
15976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15977 | ||
ade710a5 TF |
15978 | echo "$as_me:$LINENO: result: no" >&5 |
15979 | echo "${ECHO_T}no" >&6 | |
2622c79d | 15980 | fi |
ed698112 | 15981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 15982 | |
ade710a5 TF |
15983 | echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5 |
15984 | echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6 | |
ed698112 NN |
15985 | cat >conftest.$ac_ext <<_ACEOF |
15986 | /* confdefs.h. */ | |
15987 | _ACEOF | |
15988 | cat confdefs.h >>conftest.$ac_ext | |
15989 | cat >>conftest.$ac_ext <<_ACEOF | |
15990 | /* end confdefs.h. */ | |
5aac1dac | 15991 | #include <netinet/in.h> |
ed698112 NN |
15992 | int |
15993 | main () | |
15994 | { | |
5aac1dac | 15995 | struct sockaddr_in6 addr6; |
ed698112 NN |
15996 | ; |
15997 | return 0; | |
15998 | } | |
15999 | _ACEOF | |
16000 | rm -f conftest.$ac_objext | |
16001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16002 | (eval $ac_compile) 2>conftest.er1 | |
16003 | ac_status=$? | |
16004 | grep -v '^ *+' conftest.er1 >conftest.err | |
16005 | rm -f conftest.er1 | |
16006 | cat conftest.err >&5 | |
16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16008 | (exit $ac_status); } && | |
ade710a5 TF |
16009 | { ac_try='test -z "$ac_c_werror_flag" |
16010 | || test ! -s conftest.err' | |
ed698112 NN |
16011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16012 | (eval $ac_try) 2>&5 | |
16013 | ac_status=$? | |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16015 | (exit $ac_status); }; } && | |
16016 | { ac_try='test -s conftest.$ac_objext' | |
16017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16018 | (eval $ac_try) 2>&5 | |
16019 | ac_status=$? | |
16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16021 | (exit $ac_status); }; }; then | |
16022 | ||
16023 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16024 | #define HAVE_INET6 1 |
ed698112 | 16025 | _ACEOF |
5aac1dac | 16026 | |
ade710a5 TF |
16027 | echo "$as_me:$LINENO: result: yes" >&5 |
16028 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 16029 | else |
ed698112 NN |
16030 | echo "$as_me: failed program was:" >&5 |
16031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16032 | ||
ade710a5 TF |
16033 | echo "$as_me:$LINENO: result: no" >&5 |
16034 | echo "${ECHO_T}no" >&6 | |
2622c79d | 16035 | fi |
ed698112 | 16036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16037 | |
ade710a5 TF |
16038 | echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5 |
16039 | echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6 | |
ed698112 NN |
16040 | cat >conftest.$ac_ext <<_ACEOF |
16041 | /* confdefs.h. */ | |
16042 | _ACEOF | |
16043 | cat confdefs.h >>conftest.$ac_ext | |
16044 | cat >>conftest.$ac_ext <<_ACEOF | |
16045 | /* end confdefs.h. */ | |
5aac1dac TT |
16046 | #define _POSIX_PII_SOCKET |
16047 | #include <sys/types.h> | |
16048 | #include <sys/socket.h> | |
ed698112 NN |
16049 | int |
16050 | main () | |
16051 | { | |
5aac1dac | 16052 | socklen_t x = 5; |
ed698112 NN |
16053 | ; |
16054 | return 0; | |
16055 | } | |
16056 | _ACEOF | |
16057 | rm -f conftest.$ac_objext | |
16058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16059 | (eval $ac_compile) 2>conftest.er1 | |
16060 | ac_status=$? | |
16061 | grep -v '^ *+' conftest.er1 >conftest.err | |
16062 | rm -f conftest.er1 | |
16063 | cat conftest.err >&5 | |
16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16065 | (exit $ac_status); } && | |
ade710a5 TF |
16066 | { ac_try='test -z "$ac_c_werror_flag" |
16067 | || test ! -s conftest.err' | |
ed698112 NN |
16068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16069 | (eval $ac_try) 2>&5 | |
16070 | ac_status=$? | |
16071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16072 | (exit $ac_status); }; } && | |
16073 | { ac_try='test -s conftest.$ac_objext' | |
16074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16075 | (eval $ac_try) 2>&5 | |
16076 | ac_status=$? | |
16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16078 | (exit $ac_status); }; }; then | |
16079 | ||
16080 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16081 | #define HAVE_SOCKLEN_T 1 |
ed698112 | 16082 | _ACEOF |
5aac1dac | 16083 | |
ade710a5 TF |
16084 | echo "$as_me:$LINENO: result: yes" >&5 |
16085 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 16086 | else |
ed698112 NN |
16087 | echo "$as_me: failed program was:" >&5 |
16088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16089 | ||
ade710a5 TF |
16090 | echo "$as_me:$LINENO: result: no" >&5 |
16091 | echo "${ECHO_T}no" >&6 | |
2622c79d | 16092 | fi |
ed698112 | 16093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16094 | |
ade710a5 TF |
16095 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
16096 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
ed698112 NN |
16097 | cat >conftest.$ac_ext <<_ACEOF |
16098 | /* confdefs.h. */ | |
16099 | _ACEOF | |
16100 | cat confdefs.h >>conftest.$ac_ext | |
16101 | cat >>conftest.$ac_ext <<_ACEOF | |
16102 | /* end confdefs.h. */ | |
5aac1dac | 16103 | #include <time.h> |
ed698112 NN |
16104 | int |
16105 | main () | |
16106 | { | |
5aac1dac | 16107 | struct tm tim; tim.tm_gmtoff = 0; |
ed698112 NN |
16108 | ; |
16109 | return 0; | |
16110 | } | |
16111 | _ACEOF | |
16112 | rm -f conftest.$ac_objext | |
16113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16114 | (eval $ac_compile) 2>conftest.er1 | |
16115 | ac_status=$? | |
16116 | grep -v '^ *+' conftest.er1 >conftest.err | |
16117 | rm -f conftest.er1 | |
16118 | cat conftest.err >&5 | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); } && | |
ade710a5 TF |
16121 | { ac_try='test -z "$ac_c_werror_flag" |
16122 | || test ! -s conftest.err' | |
ed698112 NN |
16123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16124 | (eval $ac_try) 2>&5 | |
16125 | ac_status=$? | |
16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16127 | (exit $ac_status); }; } && | |
16128 | { ac_try='test -s conftest.$ac_objext' | |
16129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16130 | (eval $ac_try) 2>&5 | |
16131 | ac_status=$? | |
16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16133 | (exit $ac_status); }; }; then | |
16134 | ||
16135 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16136 | #define STRUCT_TM_HAS_GMTOFF 1 |
ed698112 NN |
16137 | _ACEOF |
16138 | ||
ade710a5 TF |
16139 | echo "$as_me:$LINENO: result: yes" >&5 |
16140 | echo "${ECHO_T}yes" >&6 | |
ed698112 NN |
16141 | else |
16142 | echo "$as_me: failed program was:" >&5 | |
16143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16144 | ||
ade710a5 TF |
16145 | echo "$as_me:$LINENO: result: no" >&5 |
16146 | echo "${ECHO_T}no" >&6 | |
16147 | echo "$as_me:$LINENO: checking for global timezone variable" >&5 | |
16148 | echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6 | |
ed698112 NN |
16149 | cat >conftest.$ac_ext <<_ACEOF |
16150 | /* confdefs.h. */ | |
16151 | _ACEOF | |
16152 | cat confdefs.h >>conftest.$ac_ext | |
16153 | cat >>conftest.$ac_ext <<_ACEOF | |
16154 | /* end confdefs.h. */ | |
5aac1dac | 16155 | #include <time.h> |
ed698112 NN |
16156 | int |
16157 | main () | |
16158 | { | |
5aac1dac | 16159 | void i(){long z2 = 2*timezone;} |
ed698112 NN |
16160 | ; |
16161 | return 0; | |
16162 | } | |
16163 | _ACEOF | |
16164 | rm -f conftest.$ac_objext | |
16165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16166 | (eval $ac_compile) 2>conftest.er1 | |
16167 | ac_status=$? | |
16168 | grep -v '^ *+' conftest.er1 >conftest.err | |
16169 | rm -f conftest.er1 | |
16170 | cat conftest.err >&5 | |
16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16172 | (exit $ac_status); } && | |
ade710a5 TF |
16173 | { ac_try='test -z "$ac_c_werror_flag" |
16174 | || test ! -s conftest.err' | |
ed698112 NN |
16175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16176 | (eval $ac_try) 2>&5 | |
16177 | ac_status=$? | |
16178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16179 | (exit $ac_status); }; } && | |
16180 | { ac_try='test -s conftest.$ac_objext' | |
16181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16182 | (eval $ac_try) 2>&5 | |
16183 | ac_status=$? | |
16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16185 | (exit $ac_status); }; }; then | |
16186 | ||
16187 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16188 | #define HAVE_TIMEZONE 1 |
ed698112 NN |
16189 | _ACEOF |
16190 | ||
ade710a5 TF |
16191 | echo "$as_me:$LINENO: result: yes" >&5 |
16192 | echo "${ECHO_T}yes" >&6 | |
ed698112 NN |
16193 | else |
16194 | echo "$as_me: failed program was:" >&5 | |
16195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16196 | ||
ade710a5 TF |
16197 | echo "$as_me:$LINENO: result: no" >&5 |
16198 | echo "${ECHO_T}no" >&6 | |
16199 | echo "$as_me:$LINENO: checking for global _timezone variable" >&5 | |
16200 | echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6 | |
ed698112 NN |
16201 | cat >conftest.$ac_ext <<_ACEOF |
16202 | /* confdefs.h. */ | |
16203 | _ACEOF | |
16204 | cat confdefs.h >>conftest.$ac_ext | |
16205 | cat >>conftest.$ac_ext <<_ACEOF | |
16206 | /* end confdefs.h. */ | |
5aac1dac | 16207 | #include <time.h> |
ed698112 NN |
16208 | int |
16209 | main () | |
16210 | { | |
5aac1dac | 16211 | long z2 = _timezone; |
ed698112 NN |
16212 | ; |
16213 | return 0; | |
16214 | } | |
16215 | _ACEOF | |
16216 | rm -f conftest.$ac_objext | |
16217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16218 | (eval $ac_compile) 2>conftest.er1 | |
16219 | ac_status=$? | |
16220 | grep -v '^ *+' conftest.er1 >conftest.err | |
16221 | rm -f conftest.er1 | |
16222 | cat conftest.err >&5 | |
16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16224 | (exit $ac_status); } && | |
ade710a5 TF |
16225 | { ac_try='test -z "$ac_c_werror_flag" |
16226 | || test ! -s conftest.err' | |
ed698112 NN |
16227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16228 | (eval $ac_try) 2>&5 | |
16229 | ac_status=$? | |
16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16231 | (exit $ac_status); }; } && | |
16232 | { ac_try='test -s conftest.$ac_objext' | |
16233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16234 | (eval $ac_try) 2>&5 | |
16235 | ac_status=$? | |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16237 | (exit $ac_status); }; }; then | |
16238 | ||
16239 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16240 | #define HAVE_UNDERSCORE_TIMEZONE 1 |
ed698112 | 16241 | _ACEOF |
5aac1dac | 16242 | |
ade710a5 TF |
16243 | echo "$as_me:$LINENO: result: yes" >&5 |
16244 | echo "${ECHO_T}yes" >&6 | |
2622c79d | 16245 | else |
ed698112 NN |
16246 | echo "$as_me: failed program was:" >&5 |
16247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16248 | ||
ade710a5 TF |
16249 | echo "$as_me:$LINENO: result: no" >&5 |
16250 | echo "${ECHO_T}no" >&6 | |
2622c79d | 16251 | fi |
ed698112 | 16252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16253 | fi |
ed698112 | 16254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16255 | fi |
ed698112 | 16256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16257 | |
5aac1dac TT |
16258 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
16259 | # for constant arguments. Useless! | |
ade710a5 TF |
16260 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
16261 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
ed698112 NN |
16262 | if test "${ac_cv_working_alloca_h+set}" = set; then |
16263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16264 | else | |
16265 | if test x$gcc_no_link = xyes; then | |
16266 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16267 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16268 | { (exit 1); exit 1; }; } | |
16269 | fi | |
16270 | cat >conftest.$ac_ext <<_ACEOF | |
16271 | /* confdefs.h. */ | |
16272 | _ACEOF | |
16273 | cat confdefs.h >>conftest.$ac_ext | |
16274 | cat >>conftest.$ac_ext <<_ACEOF | |
16275 | /* end confdefs.h. */ | |
5aac1dac | 16276 | #include <alloca.h> |
ed698112 NN |
16277 | int |
16278 | main () | |
16279 | { | |
16280 | char *p = (char *) alloca (2 * sizeof (int)); | |
16281 | ; | |
16282 | return 0; | |
16283 | } | |
16284 | _ACEOF | |
16285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16287 | (eval $ac_link) 2>conftest.er1 | |
16288 | ac_status=$? | |
16289 | grep -v '^ *+' conftest.er1 >conftest.err | |
16290 | rm -f conftest.er1 | |
16291 | cat conftest.err >&5 | |
16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16293 | (exit $ac_status); } && | |
ade710a5 TF |
16294 | { ac_try='test -z "$ac_c_werror_flag" |
16295 | || test ! -s conftest.err' | |
ed698112 NN |
16296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16297 | (eval $ac_try) 2>&5 | |
16298 | ac_status=$? | |
16299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16300 | (exit $ac_status); }; } && | |
16301 | { ac_try='test -s conftest$ac_exeext' | |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; }; then | |
16307 | ac_cv_working_alloca_h=yes | |
16308 | else | |
16309 | echo "$as_me: failed program was:" >&5 | |
16310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16311 | ||
ade710a5 | 16312 | ac_cv_working_alloca_h=no |
ed698112 NN |
16313 | fi |
16314 | rm -f conftest.err conftest.$ac_objext \ | |
16315 | conftest$ac_exeext conftest.$ac_ext | |
16316 | fi | |
ade710a5 TF |
16317 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
16318 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
ed698112 NN |
16319 | if test $ac_cv_working_alloca_h = yes; then |
16320 | ||
16321 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16322 | #define HAVE_ALLOCA_H 1 |
ed698112 | 16323 | _ACEOF |
2622c79d | 16324 | |
5aac1dac TT |
16325 | fi |
16326 | ||
ade710a5 TF |
16327 | echo "$as_me:$LINENO: checking for alloca" >&5 |
16328 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
ed698112 NN |
16329 | if test "${ac_cv_func_alloca_works+set}" = set; then |
16330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622c79d | 16331 | else |
ed698112 NN |
16332 | if test x$gcc_no_link = xyes; then |
16333 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16334 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16335 | { (exit 1); exit 1; }; } | |
16336 | fi | |
16337 | cat >conftest.$ac_ext <<_ACEOF | |
16338 | /* confdefs.h. */ | |
16339 | _ACEOF | |
16340 | cat confdefs.h >>conftest.$ac_ext | |
16341 | cat >>conftest.$ac_ext <<_ACEOF | |
16342 | /* end confdefs.h. */ | |
5aac1dac TT |
16343 | #ifdef __GNUC__ |
16344 | # define alloca __builtin_alloca | |
2622c79d | 16345 | #else |
5aac1dac TT |
16346 | # ifdef _MSC_VER |
16347 | # include <malloc.h> | |
16348 | # define alloca _alloca | |
16349 | # else | |
16350 | # if HAVE_ALLOCA_H | |
16351 | # include <alloca.h> | |
16352 | # else | |
16353 | # ifdef _AIX | |
16354 | #pragma alloca | |
16355 | # else | |
16356 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16357 | char *alloca (); | |
16358 | # endif | |
16359 | # endif | |
16360 | # endif | |
16361 | # endif | |
2622c79d RR |
16362 | #endif |
16363 | ||
ed698112 NN |
16364 | int |
16365 | main () | |
16366 | { | |
16367 | char *p = (char *) alloca (1); | |
16368 | ; | |
16369 | return 0; | |
16370 | } | |
16371 | _ACEOF | |
16372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16374 | (eval $ac_link) 2>conftest.er1 | |
16375 | ac_status=$? | |
16376 | grep -v '^ *+' conftest.er1 >conftest.err | |
16377 | rm -f conftest.er1 | |
16378 | cat conftest.err >&5 | |
16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16380 | (exit $ac_status); } && | |
ade710a5 TF |
16381 | { ac_try='test -z "$ac_c_werror_flag" |
16382 | || test ! -s conftest.err' | |
ed698112 NN |
16383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16384 | (eval $ac_try) 2>&5 | |
16385 | ac_status=$? | |
16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16387 | (exit $ac_status); }; } && | |
16388 | { ac_try='test -s conftest$ac_exeext' | |
16389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16390 | (eval $ac_try) 2>&5 | |
16391 | ac_status=$? | |
16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16393 | (exit $ac_status); }; }; then | |
5aac1dac | 16394 | ac_cv_func_alloca_works=yes |
2622c79d | 16395 | else |
ed698112 NN |
16396 | echo "$as_me: failed program was:" >&5 |
16397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16398 | ||
ade710a5 | 16399 | ac_cv_func_alloca_works=no |
2622c79d | 16400 | fi |
ed698112 NN |
16401 | rm -f conftest.err conftest.$ac_objext \ |
16402 | conftest$ac_exeext conftest.$ac_ext | |
2622c79d | 16403 | fi |
ade710a5 TF |
16404 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
16405 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
2622c79d | 16406 | |
5aac1dac | 16407 | if test $ac_cv_func_alloca_works = yes; then |
5aac1dac | 16408 | |
ed698112 NN |
16409 | cat >>confdefs.h <<\_ACEOF |
16410 | #define HAVE_ALLOCA 1 | |
16411 | _ACEOF | |
2622c79d | 16412 | |
ed698112 | 16413 | else |
5aac1dac | 16414 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
ed698112 NN |
16415 | # that cause trouble. Some versions do not even contain alloca or |
16416 | # contain a buggy version. If you still want to use their alloca, | |
16417 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
16418 | ||
ade710a5 | 16419 | ALLOCA=alloca.$ac_objext |
ed698112 NN |
16420 | |
16421 | cat >>confdefs.h <<\_ACEOF | |
5aac1dac | 16422 | #define C_ALLOCA 1 |
ed698112 | 16423 | _ACEOF |
5aac1dac TT |
16424 | |
16425 | ||
ade710a5 TF |
16426 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
16427 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
ed698112 NN |
16428 | if test "${ac_cv_os_cray+set}" = set; then |
16429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622c79d | 16430 | else |
ed698112 NN |
16431 | cat >conftest.$ac_ext <<_ACEOF |
16432 | /* confdefs.h. */ | |
16433 | _ACEOF | |
16434 | cat confdefs.h >>conftest.$ac_ext | |
16435 | cat >>conftest.$ac_ext <<_ACEOF | |
16436 | /* end confdefs.h. */ | |
ade710a5 | 16437 | #if defined(CRAY) && ! defined(CRAY2) |
5aac1dac TT |
16438 | webecray |
16439 | #else | |
16440 | wenotbecray | |
16441 | #endif | |
2622c79d | 16442 | |
ed698112 | 16443 | _ACEOF |
5aac1dac | 16444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ed698112 | 16445 | $EGREP "webecray" >/dev/null 2>&1; then |
5aac1dac | 16446 | ac_cv_os_cray=yes |
2622c79d | 16447 | else |
5aac1dac | 16448 | ac_cv_os_cray=no |
2622c79d RR |
16449 | fi |
16450 | rm -f conftest* | |
2622c79d | 16451 | |
2622c79d | 16452 | fi |
ade710a5 TF |
16453 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
16454 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5aac1dac | 16455 | if test $ac_cv_os_cray = yes; then |
ed698112 NN |
16456 | for ac_func in _getb67 GETB67 getb67; do |
16457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ade710a5 TF |
16458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16460 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
ed698112 NN |
16461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16462 | else | |
16463 | if test x$gcc_no_link = xyes; then | |
16464 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16465 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16466 | { (exit 1); exit 1; }; } | |
16467 | fi | |
16468 | cat >conftest.$ac_ext <<_ACEOF | |
16469 | /* confdefs.h. */ | |
16470 | _ACEOF | |
16471 | cat confdefs.h >>conftest.$ac_ext | |
16472 | cat >>conftest.$ac_ext <<_ACEOF | |
16473 | /* end confdefs.h. */ | |
16474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16476 | #define $ac_func innocuous_$ac_func | |
16477 | ||
2622c79d | 16478 | /* System header to define __stub macros and hopefully few prototypes, |
ed698112 NN |
16479 | which can conflict with char $ac_func (); below. |
16480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16481 | <limits.h> exists even on freestanding compilers. */ | |
16482 | ||
16483 | #ifdef __STDC__ | |
16484 | # include <limits.h> | |
16485 | #else | |
16486 | # include <assert.h> | |
16487 | #endif | |
2622c79d | 16488 | |
ed698112 | 16489 | #undef $ac_func |
2622c79d | 16490 | |
ade710a5 | 16491 | /* Override any gcc2 internal prototype to avoid an error. */ |
ed698112 NN |
16492 | #ifdef __cplusplus |
16493 | extern "C" | |
ade710a5 | 16494 | { |
ed698112 | 16495 | #endif |
ade710a5 TF |
16496 | /* We use char because int might match the return type of a gcc2 |
16497 | builtin and then its argument prototype would still apply. */ | |
ed698112 | 16498 | char $ac_func (); |
2622c79d RR |
16499 | /* The GNU C library defines this for functions which it implements |
16500 | to always fail with ENOSYS. Some functions are actually named | |
16501 | something starting with __ and the normal name is an alias. */ | |
ade710a5 | 16502 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2622c79d | 16503 | choke me |
ade710a5 TF |
16504 | #else |
16505 | char (*f) () = $ac_func; | |
16506 | #endif | |
16507 | #ifdef __cplusplus | |
16508 | } | |
2622c79d RR |
16509 | #endif |
16510 | ||
ed698112 NN |
16511 | int |
16512 | main () | |
16513 | { | |
ade710a5 | 16514 | return f != $ac_func; |
ed698112 NN |
16515 | ; |
16516 | return 0; | |
16517 | } | |
16518 | _ACEOF | |
16519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16521 | (eval $ac_link) 2>conftest.er1 | |
16522 | ac_status=$? | |
16523 | grep -v '^ *+' conftest.er1 >conftest.err | |
16524 | rm -f conftest.er1 | |
16525 | cat conftest.err >&5 | |
16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16527 | (exit $ac_status); } && | |
ade710a5 TF |
16528 | { ac_try='test -z "$ac_c_werror_flag" |
16529 | || test ! -s conftest.err' | |
ed698112 NN |
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16531 | (eval $ac_try) 2>&5 | |
16532 | ac_status=$? | |
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16534 | (exit $ac_status); }; } && | |
16535 | { ac_try='test -s conftest$ac_exeext' | |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; }; then | |
16541 | eval "$as_ac_var=yes" | |
16542 | else | |
16543 | echo "$as_me: failed program was:" >&5 | |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
ade710a5 | 16546 | eval "$as_ac_var=no" |
ed698112 NN |
16547 | fi |
16548 | rm -f conftest.err conftest.$ac_objext \ | |
16549 | conftest$ac_exeext conftest.$ac_ext | |
16550 | fi | |
ade710a5 TF |
16551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16552 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
ed698112 NN |
16553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16554 | ||
16555 | cat >>confdefs.h <<_ACEOF | |
5aac1dac | 16556 | #define CRAY_STACKSEG_END $ac_func |
ed698112 | 16557 | _ACEOF |
5aac1dac | 16558 | |
ed698112 | 16559 | break |
2622c79d RR |
16560 | fi |
16561 | ||
ed698112 | 16562 | done |
5aac1dac TT |
16563 | fi |
16564 | ||
ade710a5 TF |
16565 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
16566 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
ed698112 NN |
16567 | if test "${ac_cv_c_stack_direction+set}" = set; then |
16568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622c79d | 16569 | else |
5aac1dac TT |
16570 | if test "$cross_compiling" = yes; then |
16571 | ac_cv_c_stack_direction=0 | |
16572 | else | |
ed698112 NN |
16573 | cat >conftest.$ac_ext <<_ACEOF |
16574 | /* confdefs.h. */ | |
16575 | _ACEOF | |
16576 | cat confdefs.h >>conftest.$ac_ext | |
16577 | cat >>conftest.$ac_ext <<_ACEOF | |
16578 | /* end confdefs.h. */ | |
16579 | int | |
5aac1dac TT |
16580 | find_stack_direction () |
16581 | { | |
16582 | static char *addr = 0; | |
16583 | auto char dummy; | |
16584 | if (addr == 0) | |
16585 | { | |
16586 | addr = &dummy; | |
16587 | return find_stack_direction (); | |
16588 | } | |
16589 | else | |
16590 | return (&dummy > addr) ? 1 : -1; | |
16591 | } | |
ed698112 NN |
16592 | |
16593 | int | |
5aac1dac TT |
16594 | main () |
16595 | { | |
ade710a5 | 16596 | exit (find_stack_direction () < 0); |
5aac1dac | 16597 | } |
ed698112 NN |
16598 | _ACEOF |
16599 | rm -f conftest$ac_exeext | |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16601 | (eval $ac_link) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; }; then | |
5aac1dac | 16610 | ac_cv_c_stack_direction=1 |
2622c79d | 16611 | else |
ed698112 NN |
16612 | echo "$as_me: program exited with status $ac_status" >&5 |
16613 | echo "$as_me: failed program was:" >&5 | |
16614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16615 | ||
16616 | ( exit $ac_status ) | |
16617 | ac_cv_c_stack_direction=-1 | |
5aac1dac | 16618 | fi |
ade710a5 | 16619 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2622c79d | 16620 | fi |
2622c79d | 16621 | fi |
ade710a5 TF |
16622 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
16623 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5aac1dac | 16624 | |
ed698112 | 16625 | cat >>confdefs.h <<_ACEOF |
5aac1dac | 16626 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
ed698112 | 16627 | _ACEOF |
5aac1dac | 16628 | |
ed698112 NN |
16629 | |
16630 | fi | |
16631 | ||
2622c79d | 16632 | |
5aac1dac TT |
16633 | for ac_prog in perl |
16634 | do | |
ed698112 | 16635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5aac1dac | 16636 | set dummy $ac_prog; ac_word=$2 |
ade710a5 TF |
16637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ed698112 NN |
16639 | if test "${ac_cv_prog_PERL+set}" = set; then |
16640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622c79d | 16641 | else |
5aac1dac TT |
16642 | if test -n "$PERL"; then |
16643 | ac_cv_prog_PERL="$PERL" # Let the user override the test. | |
2622c79d | 16644 | else |
ed698112 NN |
16645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16646 | for as_dir in $PATH | |
16647 | do | |
16648 | IFS=$as_save_IFS | |
16649 | test -z "$as_dir" && as_dir=. | |
16650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ade710a5 | 16651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ed698112 NN |
16652 | ac_cv_prog_PERL="$ac_prog" |
16653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16654 | break 2 | |
16655 | fi | |
16656 | done | |
16657 | done | |
16658 | ||
2622c79d | 16659 | fi |
2622c79d | 16660 | fi |
ed698112 | 16661 | PERL=$ac_cv_prog_PERL |
5aac1dac | 16662 | if test -n "$PERL"; then |
ade710a5 TF |
16663 | echo "$as_me:$LINENO: result: $PERL" >&5 |
16664 | echo "${ECHO_T}$PERL" >&6 | |
2622c79d | 16665 | else |
ade710a5 TF |
16666 | echo "$as_me:$LINENO: result: no" >&5 |
16667 | echo "${ECHO_T}no" >&6 | |
2622c79d RR |
16668 | fi |
16669 | ||
ed698112 | 16670 | test -n "$PERL" && break |
5aac1dac TT |
16671 | done |
16672 | test -n "$PERL" || PERL="false" | |
2622c79d | 16673 | |
2622c79d | 16674 | |
5aac1dac | 16675 | SYSDEP_SOURCES= |
02731d29 | 16676 | SIGNAL_HANDLER_AUX= |
2622c79d | 16677 | |
5aac1dac TT |
16678 | case "${host}" in |
16679 | i?86-*-linux*) | |
16680 | SIGNAL_HANDLER=include/i386-signal.h | |
16681 | ;; | |
16682 | sparc*-sun-solaris*) | |
16683 | SIGNAL_HANDLER=include/sparc-signal.h | |
16684 | ;; | |
16685 | # ia64-*) | |
16686 | # SYSDEP_SOURCES=sysdep/ia64.c | |
16687 | # test -d sysdep || mkdir sysdep | |
16688 | # ;; | |
8c5ac2c4 RC |
16689 | hppa*-*-linux*) |
16690 | SIGNAL_HANDLER=include/pa-signal.h | |
16691 | ;; | |
68bfb94e AT |
16692 | hppa*-hp-hpux*) |
16693 | SIGNAL_HANDLER=include/hppa-signal.h | |
16694 | ;; | |
5aac1dac TT |
16695 | ia64-*-linux*) |
16696 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
16697 | ;; | |
02731d29 | 16698 | powerpc*-*-linux*) |
beea2324 | 16699 | SIGNAL_HANDLER=include/powerpc-signal.h |
5aac1dac TT |
16700 | ;; |
16701 | alpha*-*-linux*) | |
16702 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
16703 | ;; | |
16704 | s390*-*-linux*) | |
16705 | SIGNAL_HANDLER=include/s390-signal.h | |
16706 | ;; | |
16707 | x86_64*-*-linux*) | |
16708 | SIGNAL_HANDLER=include/x86_64-signal.h | |
02731d29 | 16709 | SIGNAL_HANDLER_AUX=include/i386-signal.h |
5aac1dac TT |
16710 | ;; |
16711 | sparc*-*-linux*) | |
16712 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
16713 | ;; | |
be3d702c KK |
16714 | sh*-*-linux*) |
16715 | SIGNAL_HANDLER=include/sh-signal.h | |
5aac1dac TT |
16716 | ;; |
16717 | *mingw*) | |
16718 | SIGNAL_HANDLER=include/win32-signal.h | |
16719 | ;; | |
13229468 DD |
16720 | mips*-*-linux*) |
16721 | SIGNAL_HANDLER=include/mips-signal.h | |
16722 | ;; | |
d4708d9d | 16723 | powerpc*-*-darwin*) |
f8a57be8 GK |
16724 | SIGNAL_HANDLER=include/darwin-signal.h |
16725 | ;; | |
5aac1dac TT |
16726 | *) |
16727 | SIGNAL_HANDLER=include/default-signal.h | |
16728 | ;; | |
16729 | esac | |
2622c79d | 16730 | |
5aac1dac TT |
16731 | # If we're using sjlj exceptions, forget what we just learned. |
16732 | if test "$enable_sjlj_exceptions" = yes; then | |
16733 | SIGNAL_HANDLER=include/default-signal.h | |
02731d29 | 16734 | SIGNAL_HANDLER_AUX= |
5aac1dac | 16735 | fi |
2622c79d | 16736 | |
5950e016 | 16737 | |
5950e016 | 16738 | |
02731d29 JJ |
16739 | if test -z "$SIGNAL_HANDLER_AUX"; then |
16740 | SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER | |
16741 | fi | |
16742 | ||
ade710a5 | 16743 | ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" |
5950e016 BM |
16744 | |
16745 | ||
5aac1dac TT |
16746 | if test "${multilib}" = "yes"; then |
16747 | multilib_arg="--enable-multilib" | |
2622c79d | 16748 | else |
5aac1dac | 16749 | multilib_arg= |
2622c79d RR |
16750 | fi |
16751 | ||
b9e6a2e5 TT |
16752 | # See if we support thread-local storage. |
16753 | ||
ade710a5 | 16754 | # Check whether --enable-tls or --disable-tls was given. |
b9e6a2e5 | 16755 | if test "${enable_tls+set}" = set; then |
ade710a5 TF |
16756 | enableval="$enable_tls" |
16757 | ||
b9e6a2e5 TT |
16758 | case "$enableval" in |
16759 | yes|no) ;; | |
16760 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 | |
16761 | echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} | |
16762 | { (exit 1); exit 1; }; } ;; | |
16763 | esac | |
16764 | ||
16765 | else | |
16766 | enable_tls=yes | |
ade710a5 | 16767 | fi; |
b9e6a2e5 | 16768 | |
ade710a5 TF |
16769 | echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 |
16770 | echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 | |
b9e6a2e5 TT |
16771 | if test "${have_tls+set}" = set; then |
16772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16773 | else | |
16774 | ||
16775 | if test "$cross_compiling" = yes; then | |
97b8365c TT |
16776 | cat >conftest.$ac_ext <<_ACEOF |
16777 | __thread int foo; | |
b9e6a2e5 | 16778 | _ACEOF |
97b8365c TT |
16779 | rm -f conftest.$ac_objext |
16780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16781 | (eval $ac_compile) 2>conftest.er1 | |
b9e6a2e5 TT |
16782 | ac_status=$? |
16783 | grep -v '^ *+' conftest.er1 >conftest.err | |
16784 | rm -f conftest.er1 | |
16785 | cat conftest.err >&5 | |
16786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16787 | (exit $ac_status); } && | |
ade710a5 TF |
16788 | { ac_try='test -z "$ac_c_werror_flag" |
16789 | || test ! -s conftest.err' | |
b9e6a2e5 TT |
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); }; } && | |
97b8365c | 16795 | { ac_try='test -s conftest.$ac_objext' |
b9e6a2e5 TT |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; }; then | |
16801 | have_tls=yes | |
16802 | else | |
16803 | echo "$as_me: failed program was:" >&5 | |
16804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16805 | ||
ade710a5 | 16806 | have_tls=no |
b9e6a2e5 | 16807 | fi |
97b8365c | 16808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9e6a2e5 TT |
16809 | |
16810 | else | |
16811 | cat >conftest.$ac_ext <<_ACEOF | |
16812 | __thread int a; int b; int main() { return a = b; } | |
16813 | _ACEOF | |
16814 | rm -f conftest$ac_exeext | |
16815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16816 | (eval $ac_link) 2>&5 | |
16817 | ac_status=$? | |
16818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16821 | (eval $ac_try) 2>&5 | |
16822 | ac_status=$? | |
16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16824 | (exit $ac_status); }; }; then | |
aad741f4 | 16825 | save_LDFLAGS="$LDFLAGS" |
b9e6a2e5 | 16826 | LDFLAGS="-static $LDFLAGS" |
aad741f4 EB |
16827 | if test x$gcc_no_link = xyes; then |
16828 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16829 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16830 | { (exit 1); exit 1; }; } | |
16831 | fi | |
16832 | cat >conftest.$ac_ext <<_ACEOF | |
16833 | int main() { return 0; } | |
16834 | _ACEOF | |
16835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16837 | (eval $ac_link) 2>conftest.er1 | |
16838 | ac_status=$? | |
16839 | grep -v '^ *+' conftest.er1 >conftest.err | |
16840 | rm -f conftest.er1 | |
16841 | cat conftest.err >&5 | |
16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16843 | (exit $ac_status); } && | |
16844 | { ac_try='test -z "$ac_c_werror_flag" | |
16845 | || test ! -s conftest.err' | |
16846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16847 | (eval $ac_try) 2>&5 | |
16848 | ac_status=$? | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); }; } && | |
16851 | { ac_try='test -s conftest$ac_exeext' | |
16852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16853 | (eval $ac_try) 2>&5 | |
16854 | ac_status=$? | |
16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16856 | (exit $ac_status); }; }; then | |
16857 | if test "$cross_compiling" = yes; then | |
b9e6a2e5 TT |
16858 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16859 | See \`config.log' for more details." >&5 | |
16860 | echo "$as_me: error: cannot run test program while cross compiling | |
16861 | See \`config.log' for more details." >&2;} | |
16862 | { (exit 1); exit 1; }; } | |
16863 | else | |
16864 | cat >conftest.$ac_ext <<_ACEOF | |
16865 | __thread int a; int b; int main() { return a = b; } | |
16866 | _ACEOF | |
16867 | rm -f conftest$ac_exeext | |
16868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16869 | (eval $ac_link) 2>&5 | |
16870 | ac_status=$? | |
16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16874 | (eval $ac_try) 2>&5 | |
16875 | ac_status=$? | |
16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16877 | (exit $ac_status); }; }; then | |
16878 | have_tls=yes | |
16879 | else | |
16880 | echo "$as_me: program exited with status $ac_status" >&5 | |
16881 | echo "$as_me: failed program was:" >&5 | |
16882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16883 | ||
16884 | ( exit $ac_status ) | |
16885 | have_tls=no | |
16886 | fi | |
ade710a5 | 16887 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b9e6a2e5 | 16888 | fi |
aad741f4 EB |
16889 | else |
16890 | echo "$as_me: failed program was:" >&5 | |
16891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16892 | ||
16893 | have_tls=yes | |
16894 | fi | |
16895 | rm -f conftest.err conftest.$ac_objext \ | |
16896 | conftest$ac_exeext conftest.$ac_ext | |
b9e6a2e5 TT |
16897 | LDFLAGS="$save_LDFLAGS" |
16898 | else | |
16899 | echo "$as_me: program exited with status $ac_status" >&5 | |
16900 | echo "$as_me: failed program was:" >&5 | |
16901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16902 | ||
16903 | ( exit $ac_status ) | |
16904 | have_tls=no | |
16905 | fi | |
ade710a5 | 16906 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b9e6a2e5 TT |
16907 | fi |
16908 | fi | |
ade710a5 TF |
16909 | echo "$as_me:$LINENO: result: $have_tls" >&5 |
16910 | echo "${ECHO_T}$have_tls" >&6 | |
b9e6a2e5 TT |
16911 | if test "$enable_tls $have_tls" = "yes yes"; then |
16912 | ||
16913 | cat >>confdefs.h <<\_ACEOF | |
16914 | #define HAVE_TLS 1 | |
16915 | _ACEOF | |
16916 | ||
16917 | fi | |
5950e016 | 16918 | |
d4708d9d JH |
16919 | # For _Unwind_GetIPInfo. |
16920 | ||
16921 | ||
16922 | ||
16923 | ac_ext=cc | |
16924 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16925 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16926 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16927 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16928 | ||
16929 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16930 | CXXFLAGS="$CXXFLAGS -fno-exceptions" | |
16931 | echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5 | |
16932 | echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6 | |
16933 | if test "${gcc_cv_getipinfo+set}" = set; then | |
16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16935 | else | |
16936 | ||
16937 | if test x$gcc_no_link = xyes; then | |
16938 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16939 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16940 | { (exit 1); exit 1; }; } | |
16941 | fi | |
16942 | cat >conftest.$ac_ext <<_ACEOF | |
16943 | /* confdefs.h. */ | |
16944 | _ACEOF | |
16945 | cat confdefs.h >>conftest.$ac_ext | |
16946 | cat >>conftest.$ac_ext <<_ACEOF | |
16947 | /* end confdefs.h. */ | |
16948 | extern "C" { extern void _Unwind_GetIPInfo(); } | |
16949 | int | |
16950 | main () | |
16951 | { | |
16952 | _Unwind_GetIPInfo(); | |
16953 | ; | |
16954 | return 0; | |
16955 | } | |
16956 | _ACEOF | |
16957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16959 | (eval $ac_link) 2>conftest.er1 | |
16960 | ac_status=$? | |
16961 | grep -v '^ *+' conftest.er1 >conftest.err | |
16962 | rm -f conftest.er1 | |
16963 | cat conftest.err >&5 | |
16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16965 | (exit $ac_status); } && | |
16966 | { ac_try='test -z "$ac_cxx_werror_flag" | |
16967 | || test ! -s conftest.err' | |
16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16969 | (eval $ac_try) 2>&5 | |
16970 | ac_status=$? | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); }; } && | |
16973 | { ac_try='test -s conftest$ac_exeext' | |
16974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16975 | (eval $ac_try) 2>&5 | |
16976 | ac_status=$? | |
16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16978 | (exit $ac_status); }; }; then | |
16979 | gcc_cv_getipinfo=yes | |
16980 | else | |
16981 | echo "$as_me: failed program was:" >&5 | |
16982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16983 | ||
16984 | gcc_cv_getipinfo=no | |
16985 | fi | |
16986 | rm -f conftest.err conftest.$ac_objext \ | |
16987 | conftest$ac_exeext conftest.$ac_ext | |
16988 | ||
16989 | fi | |
16990 | ||
16991 | if test $gcc_cv_getipinfo = yes; then | |
16992 | ||
16993 | cat >>confdefs.h <<\_ACEOF | |
16994 | #define HAVE_GETIPINFO 1 | |
16995 | _ACEOF | |
16996 | ||
16997 | fi | |
16998 | echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5 | |
16999 | echo "${ECHO_T}$gcc_cv_getipinfo" >&6 | |
17000 | CXXFLAGS="$ac_save_CXXFLAGS" | |
17001 | ac_ext=c | |
17002 | ac_cpp='$CPP $CPPFLAGS' | |
17003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17006 | ||
17007 | ||
17008 | ||
d6c122f7 DD |
17009 | # Check if linker supports static linking on a per library basis |
17010 | LD_START_STATIC_SPEC= | |
17011 | LD_FINISH_STATIC_SPEC= | |
17012 | if $LD --help 2>&1 | grep -q -e -call_shared ; then | |
17013 | if $LD --help 2>&1 | grep -q -e -non_shared ; then | |
17014 | LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}' | |
17015 | LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}' | |
17016 | fi | |
17017 | fi | |
17018 | ||
17019 | ||
5950e016 | 17020 | |
ed698112 NN |
17021 | here=`${PWDCMD-pwd}` |
17022 | ||
17023 | ||
17024 | # We get this from the environment. | |
17025 | ||
17026 | ||
ade710a5 | 17027 | ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile" |
02809848 PB |
17028 | |
17029 | ||
ade710a5 | 17030 | ac_config_files="$ac_config_files scripts/jar" |
cad90591 MK |
17031 | |
17032 | ||
ade710a5 | 17033 | ac_config_commands="$ac_config_commands default" |
cad90591 MK |
17034 | |
17035 | ||
ed698112 NN |
17036 | cat >confcache <<\_ACEOF |
17037 | # This file is a shell script that caches the results of configure | |
17038 | # tests run on this system so they can be shared between configure | |
17039 | # scripts and configure runs, see configure's option --config-cache. | |
17040 | # It is not useful on other systems. If it contains results you don't | |
17041 | # want to keep, you may remove or edit it. | |
17042 | # | |
17043 | # config.status only pays attention to the cache file if you give it | |
17044 | # the --recheck option to rerun configure. | |
17045 | # | |
17046 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17047 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17048 | # following values. | |
17049 | ||
17050 | _ACEOF | |
17051 | ||
17052 | # The following way of writing the cache mishandles newlines in values, | |
17053 | # but we know of no workaround that is simple, portable, and efficient. | |
ade710a5 | 17054 | # So, don't put newlines in cache variables' values. |
ed698112 NN |
17055 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17056 | # and sets the high bit in the cache file unless we assign to the vars. | |
ade710a5 | 17057 | { |
ed698112 | 17058 | (set) 2>&1 | |
ade710a5 TF |
17059 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
17060 | *ac_space=\ *) | |
ed698112 NN |
17061 | # `set' does not quote correctly, so add quotes (double-quote |
17062 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17063 | sed -n \ | |
17064 | "s/'/'\\\\''/g; | |
17065 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ade710a5 | 17066 | ;; |
ed698112 NN |
17067 | *) |
17068 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ade710a5 TF |
17069 | sed -n \ |
17070 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
ed698112 | 17071 | ;; |
ade710a5 TF |
17072 | esac; |
17073 | } | | |
ed698112 NN |
17074 | sed ' |
17075 | t clear | |
ade710a5 | 17076 | : clear |
ed698112 NN |
17077 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17078 | t end | |
ade710a5 TF |
17079 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17080 | : end' >>confcache | |
ed698112 NN |
17081 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
17082 | if test -w $cache_file; then | |
ade710a5 | 17083 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
ed698112 NN |
17084 | cat confcache >$cache_file |
17085 | else | |
ade710a5 | 17086 | echo "not updating unwritable cache $cache_file" |
ed698112 NN |
17087 | fi |
17088 | fi | |
17089 | rm -f confcache | |
17090 | ||
17091 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17092 | # Let make expand exec_prefix. | |
17093 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17094 | ||
ade710a5 TF |
17095 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
17096 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17097 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17098 | # (actually we leave an empty line to preserve line numbers). | |
17099 | if test "x$srcdir" = x.; then | |
17100 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17101 | s/:*\$(srcdir):*/:/; | |
17102 | s/:*\${srcdir}:*/:/; | |
17103 | s/:*@srcdir@:*/:/; | |
17104 | s/^\([^=]*=[ ]*\):*/\1/; | |
17105 | s/:*$//; | |
17106 | s/^[^=]*=[ ]*$//; | |
17107 | }' | |
17108 | fi | |
17109 | ||
ed698112 NN |
17110 | DEFS=-DHAVE_CONFIG_H |
17111 | ||
17112 | ac_libobjs= | |
17113 | ac_ltlibobjs= | |
17114 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17115 | # 1. Remove the extension, and $U if already installed. | |
ade710a5 TF |
17116 | ac_i=`echo "$ac_i" | |
17117 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
17118 | # 2. Add them. | |
17119 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
17120 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
ed698112 NN |
17121 | done |
17122 | LIBOBJS=$ac_libobjs | |
17123 | ||
17124 | LTLIBOBJS=$ac_ltlibobjs | |
17125 | ||
17126 | ||
97b8365c TT |
17127 | if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then |
17128 | { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined. | |
17129 | Usually this means the macro was only invoked conditionally." >&5 | |
17130 | echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined. | |
17131 | Usually this means the macro was only invoked conditionally." >&2;} | |
17132 | { (exit 1); exit 1; }; } | |
17133 | fi | |
e3f92d3b MK |
17134 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17135 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
17136 | Usually this means the macro was only invoked conditionally." >&5 | |
17137 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
17138 | Usually this means the macro was only invoked conditionally." >&2;} | |
17139 | { (exit 1); exit 1; }; } | |
17140 | fi | |
17141 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17142 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
17143 | Usually this means the macro was only invoked conditionally." >&5 | |
17144 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
17145 | Usually this means the macro was only invoked conditionally." >&2;} | |
17146 | { (exit 1); exit 1; }; } | |
17147 | fi | |
17148 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
17149 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
17150 | Usually this means the macro was only invoked conditionally." >&5 | |
17151 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
17152 | Usually this means the macro was only invoked conditionally." >&2;} | |
17153 | { (exit 1); exit 1; }; } | |
17154 | fi | |
02809848 PB |
17155 | if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then |
17156 | { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined. | |
17157 | Usually this means the macro was only invoked conditionally." >&5 | |
17158 | echo "$as_me: error: conditional \"BASH_JAR\" was never defined. | |
17159 | Usually this means the macro was only invoked conditionally." >&2;} | |
17160 | { (exit 1); exit 1; }; } | |
17161 | fi | |
e3f92d3b MK |
17162 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17163 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
17164 | Usually this means the macro was only invoked conditionally." >&5 | |
17165 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
17166 | Usually this means the macro was only invoked conditionally." >&2;} | |
17167 | { (exit 1); exit 1; }; } | |
17168 | fi | |
b0fa81ee TT |
17169 | if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then |
17170 | { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined. | |
17171 | Usually this means the macro was only invoked conditionally." >&5 | |
17172 | echo "$as_me: error: conditional \"XLIB_AWT\" was never defined. | |
17173 | Usually this means the macro was only invoked conditionally." >&2;} | |
17174 | { (exit 1); exit 1; }; } | |
17175 | fi | |
97b8365c TT |
17176 | if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then |
17177 | { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined. | |
17178 | Usually this means the macro was only invoked conditionally." >&5 | |
17179 | echo "$as_me: error: conditional \"X_AWT\" was never defined. | |
17180 | Usually this means the macro was only invoked conditionally." >&2;} | |
17181 | { (exit 1); exit 1; }; } | |
17182 | fi | |
e3f92d3b MK |
17183 | if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then |
17184 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined. | |
17185 | Usually this means the macro was only invoked conditionally." >&5 | |
17186 | echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined. | |
17187 | Usually this means the macro was only invoked conditionally." >&2;} | |
17188 | { (exit 1); exit 1; }; } | |
17189 | fi | |
17190 | if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then | |
17191 | { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined. | |
17192 | Usually this means the macro was only invoked conditionally." >&5 | |
17193 | echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined. | |
17194 | Usually this means the macro was only invoked conditionally." >&2;} | |
17195 | { (exit 1); exit 1; }; } | |
17196 | fi | |
97b8365c TT |
17197 | if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then |
17198 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined. | |
17199 | Usually this means the macro was only invoked conditionally." >&5 | |
17200 | echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined. | |
17201 | Usually this means the macro was only invoked conditionally." >&2;} | |
17202 | { (exit 1); exit 1; }; } | |
17203 | fi | |
17204 | if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then | |
17205 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined. | |
17206 | Usually this means the macro was only invoked conditionally." >&5 | |
17207 | echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined. | |
17208 | Usually this means the macro was only invoked conditionally." >&2;} | |
17209 | { (exit 1); exit 1; }; } | |
17210 | fi | |
c33b7bf0 TF |
17211 | if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then |
17212 | { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined. | |
17213 | Usually this means the macro was only invoked conditionally." >&5 | |
17214 | echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined. | |
17215 | Usually this means the macro was only invoked conditionally." >&2;} | |
17216 | { (exit 1); exit 1; }; } | |
17217 | fi | |
e3f92d3b MK |
17218 | if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then |
17219 | { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined. | |
17220 | Usually this means the macro was only invoked conditionally." >&5 | |
17221 | echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined. | |
17222 | Usually this means the macro was only invoked conditionally." >&2;} | |
17223 | { (exit 1); exit 1; }; } | |
17224 | fi | |
17225 | if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then | |
17226 | { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined. | |
17227 | Usually this means the macro was only invoked conditionally." >&5 | |
17228 | echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined. | |
17229 | Usually this means the macro was only invoked conditionally." >&2;} | |
17230 | { (exit 1); exit 1; }; } | |
17231 | fi | |
f1a66265 GK |
17232 | if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then |
17233 | { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined. | |
17234 | Usually this means the macro was only invoked conditionally." >&5 | |
17235 | echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined. | |
17236 | Usually this means the macro was only invoked conditionally." >&2;} | |
17237 | { (exit 1); exit 1; }; } | |
17238 | fi | |
e3f92d3b MK |
17239 | if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then |
17240 | { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined. | |
17241 | Usually this means the macro was only invoked conditionally." >&5 | |
17242 | echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined. | |
17243 | Usually this means the macro was only invoked conditionally." >&2;} | |
17244 | { (exit 1); exit 1; }; } | |
17245 | fi | |
17246 | if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then | |
17247 | { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined. | |
17248 | Usually this means the macro was only invoked conditionally." >&5 | |
17249 | echo "$as_me: error: conditional \"USING_NOGC\" was never defined. | |
17250 | Usually this means the macro was only invoked conditionally." >&2;} | |
17251 | { (exit 1); exit 1; }; } | |
17252 | fi | |
17253 | if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then | |
17254 | { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined. | |
17255 | Usually this means the macro was only invoked conditionally." >&5 | |
17256 | echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined. | |
17257 | Usually this means the macro was only invoked conditionally." >&2;} | |
17258 | { (exit 1); exit 1; }; } | |
17259 | fi | |
17260 | if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then | |
17261 | { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined. | |
17262 | Usually this means the macro was only invoked conditionally." >&5 | |
17263 | echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined. | |
17264 | Usually this means the macro was only invoked conditionally." >&2;} | |
17265 | { (exit 1); exit 1; }; } | |
17266 | fi | |
17267 | if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then | |
17268 | { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined. | |
17269 | Usually this means the macro was only invoked conditionally." >&5 | |
17270 | echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined. | |
17271 | Usually this means the macro was only invoked conditionally." >&2;} | |
17272 | { (exit 1); exit 1; }; } | |
17273 | fi | |
97c074fd JJ |
17274 | if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then |
17275 | { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined. | |
17276 | Usually this means the macro was only invoked conditionally." >&5 | |
17277 | echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined. | |
17278 | Usually this means the macro was only invoked conditionally." >&2;} | |
17279 | { (exit 1); exit 1; }; } | |
17280 | fi | |
e3f92d3b MK |
17281 | if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then |
17282 | { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined. | |
17283 | Usually this means the macro was only invoked conditionally." >&5 | |
17284 | echo "$as_me: error: conditional \"USING_GCC\" was never defined. | |
17285 | Usually this means the macro was only invoked conditionally." >&2;} | |
17286 | { (exit 1); exit 1; }; } | |
17287 | fi | |
e3f92d3b MK |
17288 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then |
17289 | { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined. | |
17290 | Usually this means the macro was only invoked conditionally." >&5 | |
17291 | echo "$as_me: error: conditional \"NATIVE\" was never defined. | |
17292 | Usually this means the macro was only invoked conditionally." >&2;} | |
17293 | { (exit 1); exit 1; }; } | |
17294 | fi | |
97b8365c TT |
17295 | if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then |
17296 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined. | |
17297 | Usually this means the macro was only invoked conditionally." >&5 | |
17298 | echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined. | |
17299 | Usually this means the macro was only invoked conditionally." >&2;} | |
17300 | { (exit 1); exit 1; }; } | |
17301 | fi | |
e3f92d3b MK |
17302 | if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then |
17303 | { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined. | |
17304 | Usually this means the macro was only invoked conditionally." >&5 | |
17305 | echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined. | |
17306 | Usually this means the macro was only invoked conditionally." >&2;} | |
17307 | { (exit 1); exit 1; }; } | |
17308 | fi | |
ed698112 NN |
17309 | |
17310 | : ${CONFIG_STATUS=./config.status} | |
17311 | ac_clean_files_save=$ac_clean_files | |
17312 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17313 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
17314 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17315 | cat >$CONFIG_STATUS <<_ACEOF | |
17316 | #! $SHELL | |
17317 | # Generated by $as_me. | |
17318 | # Run this file to recreate the current configuration. | |
17319 | # Compiler output produced by configure, useful for debugging | |
17320 | # configure, is in config.log if it exists. | |
17321 | ||
17322 | debug=false | |
17323 | ac_cs_recheck=false | |
17324 | ac_cs_silent=false | |
17325 | SHELL=\${CONFIG_SHELL-$SHELL} | |
17326 | _ACEOF | |
17327 | ||
17328 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17329 | ## --------------------- ## | |
17330 | ## M4sh Initialization. ## | |
17331 | ## --------------------- ## | |
17332 | ||
17333 | # Be Bourne compatible | |
17334 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17335 | emulate sh | |
17336 | NULLCMD=: | |
17337 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17338 | # is contrary to our usage. Disable this feature. | |
17339 | alias -g '${1+"$@"}'='"$@"' | |
ade710a5 TF |
17340 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
17341 | set -o posix | |
ed698112 NN |
17342 | fi |
17343 | DUALCASE=1; export DUALCASE # for MKS sh | |
17344 | ||
17345 | # Support unset when possible. | |
17346 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
17347 | as_unset=unset | |
17348 | else | |
17349 | as_unset=false | |
17350 | fi | |
17351 | ||
17352 | ||
17353 | # Work around bugs in pre-3.0 UWIN ksh. | |
ade710a5 | 17354 | $as_unset ENV MAIL MAILPATH |
ed698112 NN |
17355 | PS1='$ ' |
17356 | PS2='> ' | |
17357 | PS4='+ ' | |
17358 | ||
17359 | # NLS nuisances. | |
17360 | for as_var in \ | |
17361 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
17362 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
17363 | LC_TELEPHONE LC_TIME | |
17364 | do | |
17365 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
17366 | eval $as_var=C; export $as_var | |
17367 | else | |
ade710a5 | 17368 | $as_unset $as_var |
ed698112 NN |
17369 | fi |
17370 | done | |
17371 | ||
17372 | # Required to use basename. | |
ade710a5 | 17373 | if expr a : '\(a\)' >/dev/null 2>&1; then |
ed698112 NN |
17374 | as_expr=expr |
17375 | else | |
17376 | as_expr=false | |
17377 | fi | |
17378 | ||
ade710a5 | 17379 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
ed698112 NN |
17380 | as_basename=basename |
17381 | else | |
17382 | as_basename=false | |
17383 | fi | |
17384 | ||
17385 | ||
17386 | # Name of the executable. | |
ade710a5 | 17387 | as_me=`$as_basename "$0" || |
ed698112 NN |
17388 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17389 | X"$0" : 'X\(//\)$' \| \ | |
ade710a5 TF |
17390 | X"$0" : 'X\(/\)$' \| \ |
17391 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 17392 | echo X/"$0" | |
ade710a5 TF |
17393 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
17394 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
17395 | /^X\/\(\/\).*/{ s//\1/; q; } | |
17396 | s/.*/./; q'` | |
ed698112 | 17397 | |
ade710a5 TF |
17398 | |
17399 | # PATH needs CR, and LINENO needs CR and PATH. | |
17400 | # Avoid depending upon Character Ranges. | |
17401 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17402 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17403 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17404 | as_cr_digits='0123456789' | |
17405 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17406 | ||
17407 | # The user is always right. | |
17408 | if test "${PATH_SEPARATOR+set}" != set; then | |
17409 | echo "#! /bin/sh" >conf$$.sh | |
17410 | echo "exit 0" >>conf$$.sh | |
17411 | chmod +x conf$$.sh | |
17412 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17413 | PATH_SEPARATOR=';' | |
17414 | else | |
17415 | PATH_SEPARATOR=: | |
17416 | fi | |
17417 | rm -f conf$$.sh | |
17418 | fi | |
ed698112 NN |
17419 | |
17420 | ||
ade710a5 TF |
17421 | as_lineno_1=$LINENO |
17422 | as_lineno_2=$LINENO | |
17423 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
17424 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
17425 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
17426 | # Find who we are. Look in the path if we contain no path at all | |
17427 | # relative or not. | |
17428 | case $0 in | |
17429 | *[\\/]* ) as_myself=$0 ;; | |
17430 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17431 | for as_dir in $PATH | |
17432 | do | |
17433 | IFS=$as_save_IFS | |
17434 | test -z "$as_dir" && as_dir=. | |
17435 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17436 | done | |
ed698112 | 17437 | |
ade710a5 TF |
17438 | ;; |
17439 | esac | |
17440 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17441 | # in which case we are not to be found in the path. | |
17442 | if test "x$as_myself" = x; then | |
17443 | as_myself=$0 | |
17444 | fi | |
17445 | if test ! -f "$as_myself"; then | |
17446 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
17447 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
17448 | { (exit 1); exit 1; }; } | |
17449 | fi | |
17450 | case $CONFIG_SHELL in | |
17451 | '') | |
17452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17453 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
17454 | do | |
17455 | IFS=$as_save_IFS | |
17456 | test -z "$as_dir" && as_dir=. | |
17457 | for as_base in sh bash ksh sh5; do | |
17458 | case $as_dir in | |
17459 | /*) | |
17460 | if ("$as_dir/$as_base" -c ' | |
ed698112 NN |
17461 | as_lineno_1=$LINENO |
17462 | as_lineno_2=$LINENO | |
ade710a5 | 17463 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
ed698112 | 17464 | test "x$as_lineno_1" != "x$as_lineno_2" && |
ade710a5 TF |
17465 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
17466 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
17467 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
17468 | CONFIG_SHELL=$as_dir/$as_base | |
17469 | export CONFIG_SHELL | |
17470 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
17471 | fi;; | |
17472 | esac | |
17473 | done | |
17474 | done | |
17475 | ;; | |
17476 | esac | |
ed698112 NN |
17477 | |
17478 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
17479 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ade710a5 TF |
17480 | # line-number line before each line; the second 'sed' does the real |
17481 | # work. The second script uses 'N' to pair each line-number line | |
17482 | # with the numbered line, and appends trailing '-' during | |
17483 | # substitution so that $LINENO is not a special case at line end. | |
ed698112 | 17484 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ade710a5 TF |
17485 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
17486 | sed '=' <$as_myself | | |
ed698112 NN |
17487 | sed ' |
17488 | N | |
ade710a5 TF |
17489 | s,$,-, |
17490 | : loop | |
17491 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
ed698112 | 17492 | t loop |
ade710a5 TF |
17493 | s,-$,, |
17494 | s,^['$as_cr_digits']*\n,, | |
ed698112 | 17495 | ' >$as_me.lineno && |
ade710a5 TF |
17496 | chmod +x $as_me.lineno || |
17497 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
17498 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
ed698112 NN |
17499 | { (exit 1); exit 1; }; } |
17500 | ||
17501 | # Don't try to exec as it changes $[0], causing all sort of problems | |
17502 | # (the dirname of $[0] is not the place where we might find the | |
ade710a5 TF |
17503 | # original and so on. Autoconf is especially sensible to this). |
17504 | . ./$as_me.lineno | |
ed698112 NN |
17505 | # Exit status is that of the last command. |
17506 | exit | |
17507 | } | |
17508 | ||
17509 | ||
ade710a5 TF |
17510 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
17511 | *c*,-n*) ECHO_N= ECHO_C=' | |
17512 | ' ECHO_T=' ' ;; | |
17513 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
17514 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
ed698112 NN |
17515 | esac |
17516 | ||
ade710a5 | 17517 | if expr a : '\(a\)' >/dev/null 2>&1; then |
ed698112 NN |
17518 | as_expr=expr |
17519 | else | |
17520 | as_expr=false | |
17521 | fi | |
17522 | ||
17523 | rm -f conf$$ conf$$.exe conf$$.file | |
17524 | echo >conf$$.file | |
17525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ade710a5 TF |
17526 | # We could just check for DJGPP; but this test a) works b) is more generic |
17527 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
17528 | if test -f conf$$.exe; then | |
17529 | # Don't use ln at all; we don't have any links | |
ed698112 | 17530 | as_ln_s='cp -p' |
ade710a5 TF |
17531 | else |
17532 | as_ln_s='ln -s' | |
17533 | fi | |
ed698112 NN |
17534 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17535 | as_ln_s=ln | |
17536 | else | |
17537 | as_ln_s='cp -p' | |
17538 | fi | |
ade710a5 | 17539 | rm -f conf$$ conf$$.exe conf$$.file |
ed698112 NN |
17540 | |
17541 | if mkdir -p . 2>/dev/null; then | |
17542 | as_mkdir_p=: | |
17543 | else | |
17544 | test -d ./-p && rmdir ./-p | |
17545 | as_mkdir_p=false | |
17546 | fi | |
17547 | ||
ade710a5 | 17548 | as_executable_p="test -f" |
ed698112 NN |
17549 | |
17550 | # Sed expression to map a string onto a valid CPP name. | |
17551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17552 | ||
17553 | # Sed expression to map a string onto a valid variable name. | |
17554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17555 | ||
17556 | ||
ade710a5 TF |
17557 | # IFS |
17558 | # We need space, tab and new line, in precisely that order. | |
17559 | as_nl=' | |
17560 | ' | |
17561 | IFS=" $as_nl" | |
17562 | ||
17563 | # CDPATH. | |
17564 | $as_unset CDPATH | |
17565 | ||
ed698112 NN |
17566 | exec 6>&1 |
17567 | ||
ade710a5 | 17568 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
ed698112 | 17569 | # report actual input values of CONFIG_FILES etc. instead of their |
ade710a5 TF |
17570 | # values after options handling. Logging --version etc. is OK. |
17571 | exec 5>>config.log | |
17572 | { | |
17573 | echo | |
17574 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17575 | ## Running $as_me. ## | |
17576 | _ASBOX | |
17577 | } >&5 | |
17578 | cat >&5 <<_CSEOF | |
17579 | ||
e3f92d3b | 17580 | This file was extended by libjava $as_me version-unused, which was |
ade710a5 | 17581 | generated by GNU Autoconf 2.59. Invocation command line was |
ed698112 NN |
17582 | |
17583 | CONFIG_FILES = $CONFIG_FILES | |
17584 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17585 | CONFIG_LINKS = $CONFIG_LINKS | |
17586 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17587 | $ $0 $@ | |
17588 | ||
ade710a5 TF |
17589 | _CSEOF |
17590 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
17591 | echo >&5 | |
ed698112 NN |
17592 | _ACEOF |
17593 | ||
17594 | # Files that config.status was made for. | |
ade710a5 TF |
17595 | if test -n "$ac_config_files"; then |
17596 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
17597 | fi | |
ed698112 | 17598 | |
ade710a5 TF |
17599 | if test -n "$ac_config_headers"; then |
17600 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
17601 | fi | |
17602 | ||
17603 | if test -n "$ac_config_links"; then | |
17604 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
17605 | fi | |
17606 | ||
17607 | if test -n "$ac_config_commands"; then | |
17608 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
17609 | fi | |
ed698112 NN |
17610 | |
17611 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ade710a5 | 17612 | |
ed698112 NN |
17613 | ac_cs_usage="\ |
17614 | \`$as_me' instantiates files from templates according to the | |
17615 | current configuration. | |
17616 | ||
17617 | Usage: $0 [OPTIONS] [FILE]... | |
17618 | ||
17619 | -h, --help print this help, then exit | |
17620 | -V, --version print version number, then exit | |
17621 | -q, --quiet do not print progress messages | |
17622 | -d, --debug don't remove temporary files | |
17623 | --recheck update $as_me by reconfiguring in the same conditions | |
17624 | --file=FILE[:TEMPLATE] | |
17625 | instantiate the configuration file FILE | |
17626 | --header=FILE[:TEMPLATE] | |
17627 | instantiate the configuration header FILE | |
17628 | ||
17629 | Configuration files: | |
17630 | $config_files | |
17631 | ||
17632 | Configuration headers: | |
17633 | $config_headers | |
ee9dd372 | 17634 | |
ed698112 NN |
17635 | Configuration links: |
17636 | $config_links | |
ee9dd372 | 17637 | |
ed698112 NN |
17638 | Configuration commands: |
17639 | $config_commands | |
7e0c895f | 17640 | |
ed698112 | 17641 | Report bugs to <bug-autoconf@gnu.org>." |
02809848 | 17642 | _ACEOF |
ade710a5 | 17643 | |
ed698112 NN |
17644 | cat >>$CONFIG_STATUS <<_ACEOF |
17645 | ac_cs_version="\\ | |
e3f92d3b | 17646 | libjava config.status version-unused |
ade710a5 | 17647 | configured by $0, generated by GNU Autoconf 2.59, |
ed698112 NN |
17648 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
17649 | ||
ade710a5 | 17650 | Copyright (C) 2003 Free Software Foundation, Inc. |
ed698112 NN |
17651 | This config.status script is free software; the Free Software Foundation |
17652 | gives unlimited permission to copy, distribute and modify it." | |
ade710a5 TF |
17653 | srcdir=$srcdir |
17654 | INSTALL="$INSTALL" | |
ed698112 NN |
17655 | _ACEOF |
17656 | ||
17657 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17658 | # If no file are specified by the user, then we need to provide default | |
17659 | # value. By we need to know if files were specified by the user. | |
17660 | ac_need_defaults=: | |
17661 | while test $# != 0 | |
17662 | do | |
17663 | case $1 in | |
17664 | --*=*) | |
ade710a5 TF |
17665 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
17666 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
ed698112 | 17667 | ac_shift=: |
ee9dd372 | 17668 | ;; |
ade710a5 | 17669 | -*) |
ed698112 NN |
17670 | ac_option=$1 |
17671 | ac_optarg=$2 | |
17672 | ac_shift=shift | |
ee9dd372 | 17673 | ;; |
ade710a5 TF |
17674 | *) # This is not an option, so the user has probably given explicit |
17675 | # arguments. | |
17676 | ac_option=$1 | |
17677 | ac_need_defaults=false;; | |
ed698112 | 17678 | esac |
ee9dd372 | 17679 | |
ed698112 NN |
17680 | case $ac_option in |
17681 | # Handling of the options. | |
ade710a5 TF |
17682 | _ACEOF |
17683 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ed698112 NN |
17684 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17685 | ac_cs_recheck=: ;; | |
ade710a5 TF |
17686 | --version | --vers* | -V ) |
17687 | echo "$ac_cs_version"; exit 0 ;; | |
17688 | --he | --h) | |
17689 | # Conflict between --help and --header | |
17690 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
17691 | Try \`$0 --help' for more information." >&5 | |
17692 | echo "$as_me: error: ambiguous option: $1 | |
17693 | Try \`$0 --help' for more information." >&2;} | |
17694 | { (exit 1); exit 1; }; };; | |
17695 | --help | --hel | -h ) | |
17696 | echo "$ac_cs_usage"; exit 0 ;; | |
17697 | --debug | --d* | -d ) | |
ed698112 NN |
17698 | debug=: ;; |
17699 | --file | --fil | --fi | --f ) | |
17700 | $ac_shift | |
17701 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
17702 | ac_need_defaults=false;; | |
17703 | --header | --heade | --head | --hea ) | |
17704 | $ac_shift | |
17705 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
17706 | ac_need_defaults=false;; | |
17707 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17708 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17709 | ac_cs_silent=: ;; | |
ee9dd372 | 17710 | |
ed698112 | 17711 | # This is an error. |
ade710a5 TF |
17712 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
17713 | Try \`$0 --help' for more information." >&5 | |
17714 | echo "$as_me: error: unrecognized option: $1 | |
17715 | Try \`$0 --help' for more information." >&2;} | |
ed698112 | 17716 | { (exit 1); exit 1; }; } ;; |
ee9dd372 | 17717 | |
ade710a5 | 17718 | *) ac_config_targets="$ac_config_targets $1" ;; |
ee9dd372 | 17719 | |
ed698112 NN |
17720 | esac |
17721 | shift | |
17722 | done | |
ee9dd372 | 17723 | |
ed698112 | 17724 | ac_configure_extra_args= |
ee9dd372 | 17725 | |
ed698112 NN |
17726 | if $ac_cs_silent; then |
17727 | exec 6>/dev/null | |
17728 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17729 | fi | |
ee9dd372 | 17730 | |
ed698112 NN |
17731 | _ACEOF |
17732 | cat >>$CONFIG_STATUS <<_ACEOF | |
17733 | if \$ac_cs_recheck; then | |
ade710a5 TF |
17734 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
17735 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
ed698112 NN |
17736 | fi |
17737 | ||
17738 | _ACEOF | |
17739 | ||
17740 | cat >>$CONFIG_STATUS <<_ACEOF | |
ee9dd372 | 17741 | # |
ade710a5 | 17742 | # INIT-COMMANDS section. |
ee9dd372 | 17743 | # |
ade710a5 | 17744 | |
e3f92d3b | 17745 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
ed698112 NN |
17746 | srcdir=${srcdir} |
17747 | host=${host} | |
17748 | target=${target} | |
17749 | with_multisubdir=${with_multisubdir} | |
17750 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
17751 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
17752 | libgcj_basedir=${libgcj_basedir} | |
17753 | CC="${CC}" | |
17754 | CXX="${CXX}" | |
17755 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" | |
17756 | ||
17757 | ||
17758 | _ACEOF | |
17759 | ||
02809848 | 17760 | |
ade710a5 TF |
17761 | |
17762 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ed698112 | 17763 | for ac_config_target in $ac_config_targets |
ee9dd372 | 17764 | do |
ade710a5 TF |
17765 | case "$ac_config_target" in |
17766 | # Handling of arguments. | |
17767 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17768 | "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;; | |
17769 | "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;; | |
17770 | "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;; | |
17771 | "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;; | |
17772 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
17773 | "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
17774 | "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;; | |
17775 | "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;; | |
17776 | "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;; | |
ade710a5 | 17777 | "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;; |
adefdaca | 17778 | "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;; |
ade710a5 TF |
17779 | "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;; |
17780 | "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;; | |
17781 | "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;; | |
17782 | "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;; | |
17783 | "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;; | |
17784 | "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;; | |
17785 | "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;; | |
17786 | "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;; | |
17787 | "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;; | |
17788 | "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;; | |
17789 | "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;; | |
17790 | "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;; | |
17791 | "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;; | |
17792 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
17793 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
17794 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; | |
17795 | "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;; | |
ed698112 NN |
17796 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17797 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
17798 | { (exit 1); exit 1; }; };; | |
ee9dd372 TT |
17799 | esac |
17800 | done | |
17801 | ||
ed698112 NN |
17802 | # If the user did not use the arguments to specify the items to instantiate, |
17803 | # then the envvar interface is used. Set only those that are not. | |
17804 | # We use the long form for the default assignment because of an extremely | |
17805 | # bizarre bug on SunOS 4.1.3. | |
17806 | if $ac_need_defaults; then | |
17807 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17808 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17809 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
17810 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17811 | fi | |
17812 | ||
17813 | # Have a temporary directory for convenience. Make it in the build tree | |
ade710a5 | 17814 | # simply because there is no reason to put it here, and in addition, |
ed698112 | 17815 | # creating and moving files from /tmp can sometimes cause problems. |
ade710a5 | 17816 | # Create a temporary directory, and hook for its removal unless debugging. |
ed698112 NN |
17817 | $debug || |
17818 | { | |
ade710a5 | 17819 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
ed698112 NN |
17820 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
17821 | } | |
ade710a5 | 17822 | |
ed698112 | 17823 | # Create a (secure) tmp directory for tmp files. |
ee9dd372 | 17824 | |
ed698112 | 17825 | { |
ade710a5 | 17826 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
ed698112 NN |
17827 | test -n "$tmp" && test -d "$tmp" |
17828 | } || | |
17829 | { | |
ade710a5 TF |
17830 | tmp=./confstat$$-$RANDOM |
17831 | (umask 077 && mkdir $tmp) | |
ed698112 NN |
17832 | } || |
17833 | { | |
17834 | echo "$me: cannot create a temporary directory in ." >&2 | |
17835 | { (exit 1); exit 1; } | |
17836 | } | |
ee9dd372 | 17837 | |
ade710a5 TF |
17838 | _ACEOF |
17839 | ||
17840 | cat >>$CONFIG_STATUS <<_ACEOF | |
17841 | ||
ed698112 | 17842 | # |
ade710a5 | 17843 | # CONFIG_FILES section. |
ed698112 NN |
17844 | # |
17845 | ||
17846 | # No need to generate the scripts if there are no CONFIG_FILES. | |
17847 | # This happens for instance when ./config.status config.h | |
ade710a5 TF |
17848 | if test -n "\$CONFIG_FILES"; then |
17849 | # Protect against being on the right side of a sed subst in config.status. | |
17850 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
17851 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
17852 | s,@SHELL@,$SHELL,;t t | |
17853 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
17854 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
17855 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
17856 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
17857 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
17858 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
17859 | s,@exec_prefix@,$exec_prefix,;t t | |
17860 | s,@prefix@,$prefix,;t t | |
17861 | s,@program_transform_name@,$program_transform_name,;t t | |
17862 | s,@bindir@,$bindir,;t t | |
17863 | s,@sbindir@,$sbindir,;t t | |
17864 | s,@libexecdir@,$libexecdir,;t t | |
17865 | s,@datadir@,$datadir,;t t | |
17866 | s,@sysconfdir@,$sysconfdir,;t t | |
17867 | s,@sharedstatedir@,$sharedstatedir,;t t | |
17868 | s,@localstatedir@,$localstatedir,;t t | |
17869 | s,@libdir@,$libdir,;t t | |
17870 | s,@includedir@,$includedir,;t t | |
17871 | s,@oldincludedir@,$oldincludedir,;t t | |
17872 | s,@infodir@,$infodir,;t t | |
17873 | s,@mandir@,$mandir,;t t | |
17874 | s,@build_alias@,$build_alias,;t t | |
17875 | s,@host_alias@,$host_alias,;t t | |
17876 | s,@target_alias@,$target_alias,;t t | |
17877 | s,@DEFS@,$DEFS,;t t | |
17878 | s,@ECHO_C@,$ECHO_C,;t t | |
17879 | s,@ECHO_N@,$ECHO_N,;t t | |
17880 | s,@ECHO_T@,$ECHO_T,;t t | |
17881 | s,@LIBS@,$LIBS,;t t | |
17882 | s,@build@,$build,;t t | |
17883 | s,@build_cpu@,$build_cpu,;t t | |
17884 | s,@build_vendor@,$build_vendor,;t t | |
17885 | s,@build_os@,$build_os,;t t | |
57255173 | 17886 | s,@build_libsubdir@,$build_libsubdir,;t t |
ade710a5 TF |
17887 | s,@build_subdir@,$build_subdir,;t t |
17888 | s,@host_subdir@,$host_subdir,;t t | |
17889 | s,@target_subdir@,$target_subdir,;t t | |
17890 | s,@libgcj_basedir@,$libgcj_basedir,;t t | |
17891 | s,@host@,$host,;t t | |
17892 | s,@host_cpu@,$host_cpu,;t t | |
17893 | s,@host_vendor@,$host_vendor,;t t | |
17894 | s,@host_os@,$host_os,;t t | |
17895 | s,@target@,$target,;t t | |
17896 | s,@target_cpu@,$target_cpu,;t t | |
17897 | s,@target_vendor@,$target_vendor,;t t | |
17898 | s,@target_os@,$target_os,;t t | |
17899 | s,@target_noncanonical@,$target_noncanonical,;t t | |
17900 | s,@LN_S@,$LN_S,;t t | |
17901 | s,@mkinstalldirs@,$mkinstalldirs,;t t | |
97b8365c TT |
17902 | s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t |
17903 | s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t | |
ade710a5 TF |
17904 | s,@CC@,$CC,;t t |
17905 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
17906 | s,@EXEEXT@,$EXEEXT,;t t | |
17907 | s,@OBJEXT@,$OBJEXT,;t t | |
17908 | s,@CXX@,$CXX,;t t | |
17909 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
17910 | s,@CFLAGS@,$CFLAGS,;t t | |
17911 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
17912 | s,@LDFLAGS@,$LDFLAGS,;t t | |
17913 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
17914 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
17915 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
17916 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
17917 | s,@PACKAGE@,$PACKAGE,;t t | |
17918 | s,@VERSION@,$VERSION,;t t | |
17919 | s,@ACLOCAL@,$ACLOCAL,;t t | |
17920 | s,@AUTOCONF@,$AUTOCONF,;t t | |
17921 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
17922 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
17923 | s,@MAKEINFO@,$MAKEINFO,;t t | |
17924 | s,@install_sh@,$install_sh,;t t | |
17925 | s,@STRIP@,$STRIP,;t t | |
17926 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
17927 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
17928 | s,@mkdir_p@,$mkdir_p,;t t | |
17929 | s,@AWK@,$AWK,;t t | |
17930 | s,@SET_MAKE@,$SET_MAKE,;t t | |
17931 | s,@am__leading_dot@,$am__leading_dot,;t t | |
17932 | s,@AMTAR@,$AMTAR,;t t | |
17933 | s,@am__tar@,$am__tar,;t t | |
17934 | s,@am__untar@,$am__untar,;t t | |
17935 | s,@DEPDIR@,$DEPDIR,;t t | |
17936 | s,@am__include@,$am__include,;t t | |
17937 | s,@am__quote@,$am__quote,;t t | |
17938 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
17939 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
17940 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
17941 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
17942 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
17943 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
17944 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
17945 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
17946 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
17947 | s,@AS@,$AS,;t t | |
17948 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
17949 | s,@LD@,$LD,;t t | |
17950 | s,@ac_ct_LD@,$ac_ct_LD,;t t | |
17951 | s,@AR@,$AR,;t t | |
17952 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
17953 | s,@RANLIB@,$RANLIB,;t t | |
17954 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
17955 | s,@JAR@,$JAR,;t t | |
17956 | s,@ZIP@,$ZIP,;t t | |
17957 | s,@UNZIP@,$UNZIP,;t t | |
17958 | s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t | |
17959 | s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t | |
17960 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
17961 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
17962 | s,@MAINT@,$MAINT,;t t | |
17963 | s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t | |
17964 | s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t | |
17965 | s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t | |
17966 | s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t | |
17967 | s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t | |
17968 | s,@TOOLKIT@,$TOOLKIT,;t t | |
17969 | s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t | |
17970 | s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t | |
97b8365c TT |
17971 | s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t |
17972 | s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t | |
17973 | s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t | |
ade710a5 | 17974 | s,@GCJH@,$GCJH,;t t |
97b8365c | 17975 | s,@host_exeext@,$host_exeext,;t t |
ade710a5 TF |
17976 | s,@INCLTDL@,$INCLTDL,;t t |
17977 | s,@LIBLTDL@,$LIBLTDL,;t t | |
17978 | s,@DIRLTDL@,$DIRLTDL,;t t | |
17979 | s,@LIBTOOL@,$LIBTOOL,;t t | |
17980 | s,@CXXCPP@,$CXXCPP,;t t | |
17981 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
17982 | s,@GCJ@,$GCJ,;t t | |
17983 | s,@GCJFLAGS@,$GCJFLAGS,;t t | |
17984 | s,@GCJDEPMODE@,$GCJDEPMODE,;t t | |
17985 | s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t | |
17986 | s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t | |
17987 | s,@subdirs@,$subdirs,;t t | |
17988 | s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t | |
17989 | s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t | |
97b8365c TT |
17990 | s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t |
17991 | s,@ECJ_JAR@,$ECJ_JAR,;t t | |
17992 | s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t | |
17993 | s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t | |
17994 | s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t | |
17995 | s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t | |
ade710a5 TF |
17996 | s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t |
17997 | s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t | |
17998 | s,@JAVA_HOME@,$JAVA_HOME,;t t | |
17999 | s,@INTERPRETER@,$INTERPRETER,;t t | |
18000 | s,@LIBFFI@,$LIBFFI,;t t | |
18001 | s,@LIBFFIINCS@,$LIBFFIINCS,;t t | |
97b8365c | 18002 | s,@PLATFORM@,$PLATFORM,;t t |
ade710a5 TF |
18003 | s,@CPP@,$CPP,;t t |
18004 | s,@EGREP@,$EGREP,;t t | |
18005 | s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t | |
18006 | s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t | |
18007 | s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t | |
18008 | s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t | |
18009 | s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t | |
18010 | s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t | |
18011 | s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t | |
18012 | s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t | |
18013 | s,@ZLIBSPEC@,$ZLIBSPEC,;t t | |
18014 | s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t | |
18015 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
18016 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
18017 | s,@X_LIBS@,$X_LIBS,;t t | |
18018 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
ade710a5 TF |
18019 | s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t |
18020 | s,@GCLIBS@,$GCLIBS,;t t | |
18021 | s,@GCINCS@,$GCINCS,;t t | |
18022 | s,@GCDEPS@,$GCDEPS,;t t | |
18023 | s,@GCSPEC@,$GCSPEC,;t t | |
18024 | s,@JC1GCSPEC@,$JC1GCSPEC,;t t | |
18025 | s,@GCTESTSPEC@,$GCTESTSPEC,;t t | |
18026 | s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t | |
18027 | s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t | |
18028 | s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t | |
18029 | s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t | |
18030 | s,@THREADLIBS@,$THREADLIBS,;t t | |
18031 | s,@THREADINCS@,$THREADINCS,;t t | |
18032 | s,@THREADDEPS@,$THREADDEPS,;t t | |
18033 | s,@THREADSPEC@,$THREADSPEC,;t t | |
5a121897 | 18034 | s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t |
ade710a5 TF |
18035 | s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t |
18036 | s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t | |
18037 | s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t | |
18038 | s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t | |
18039 | s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t | |
18040 | s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t | |
18041 | s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t | |
18042 | s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t | |
97c074fd JJ |
18043 | s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t |
18044 | s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t | |
18045 | s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t | |
ade710a5 TF |
18046 | s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t |
18047 | s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t | |
18048 | s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t | |
18049 | s,@LIBICONV@,$LIBICONV,;t t | |
18050 | s,@LTLIBICONV@,$LTLIBICONV,;t t | |
97b8365c | 18051 | s,@LIBMAGIC@,$LIBMAGIC,;t t |
348cf028 | 18052 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
ade710a5 TF |
18053 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
18054 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
18055 | s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t | |
18056 | s,@GLIB_LIBS@,$GLIB_LIBS,;t t | |
18057 | s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t | |
18058 | s,@LIBART_LIBS@,$LIBART_LIBS,;t t | |
18059 | s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t | |
18060 | s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t | |
18061 | s,@ZLIBS@,$ZLIBS,;t t | |
18062 | s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t | |
18063 | s,@ZINCS@,$ZINCS,;t t | |
18064 | s,@DIVIDESPEC@,$DIVIDESPEC,;t t | |
18065 | s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t | |
18066 | s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t | |
18067 | s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t | |
18068 | s,@IEEESPEC@,$IEEESPEC,;t t | |
18069 | s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t | |
18070 | s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t | |
97b8365c TT |
18071 | s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t |
18072 | s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t | |
ade710a5 TF |
18073 | s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t |
18074 | s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t | |
18075 | s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t | |
18076 | s,@toolexecdir@,$toolexecdir,;t t | |
18077 | s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t | |
18078 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
18079 | s,@dbexecdir@,$dbexecdir,;t t | |
18080 | s,@GCJVERSION@,$GCJVERSION,;t t | |
18081 | s,@gxx_include_dir@,$gxx_include_dir,;t t | |
18082 | s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t | |
18083 | s,@ALLOCA@,$ALLOCA,;t t | |
18084 | s,@PERL@,$PERL,;t t | |
18085 | s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t | |
18086 | s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t | |
18087 | s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t | |
18088 | s,@here@,$here,;t t | |
18089 | s,@LIBOBJS@,$LIBOBJS,;t t | |
18090 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
18091 | CEOF | |
18092 | ||
18093 | _ACEOF | |
18094 | ||
18095 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18096 | # Split the substitutions into bite-sized pieces for seds with | |
18097 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18098 | ac_max_sed_lines=48 | |
18099 | ac_sed_frag=1 # Number of current file. | |
18100 | ac_beg=1 # First line for current file. | |
18101 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
18102 | ac_more_lines=: | |
18103 | ac_sed_cmds= | |
18104 | while $ac_more_lines; do | |
18105 | if test $ac_beg -gt 1; then | |
18106 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
18107 | else | |
18108 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
18109 | fi | |
18110 | if test ! -s $tmp/subs.frag; then | |
18111 | ac_more_lines=false | |
18112 | else | |
18113 | # The purpose of the label and of the branching condition is to | |
18114 | # speed up the sed processing (if there are no `@' at all, there | |
18115 | # is no need to browse any of the substitutions). | |
18116 | # These are the two extra sed commands mentioned above. | |
18117 | (echo ':t | |
18118 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
18119 | if test -z "$ac_sed_cmds"; then | |
18120 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
18121 | else | |
18122 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
18123 | fi | |
18124 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
18125 | ac_beg=$ac_end | |
18126 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
18127 | fi | |
18128 | done | |
18129 | if test -z "$ac_sed_cmds"; then | |
18130 | ac_sed_cmds=cat | |
02809848 | 18131 | fi |
ade710a5 | 18132 | fi # test -n "$CONFIG_FILES" |
02809848 | 18133 | |
02809848 | 18134 | _ACEOF |
ed698112 | 18135 | cat >>$CONFIG_STATUS <<\_ACEOF |
ade710a5 TF |
18136 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
18137 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18138 | case $ac_file in | |
18139 | - | *:- | *:-:* ) # input from stdin | |
18140 | cat >$tmp/stdin | |
18141 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18142 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18143 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18144 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18145 | * ) ac_file_in=$ac_file.in ;; | |
ee9dd372 TT |
18146 | esac |
18147 | ||
ade710a5 TF |
18148 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
18149 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
ed698112 NN |
18150 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18151 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18152 | X"$ac_file" : 'X\(//\)$' \| \ | |
ade710a5 TF |
18153 | X"$ac_file" : 'X\(/\)' \| \ |
18154 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 18155 | echo X"$ac_file" | |
ade710a5 TF |
18156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18157 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18158 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18159 | /^X\(\/\).*/{ s//\1/; q; } | |
18160 | s/.*/./; q'` | |
18161 | { if $as_mkdir_p; then | |
18162 | mkdir -p "$ac_dir" | |
18163 | else | |
18164 | as_dir="$ac_dir" | |
ed698112 | 18165 | as_dirs= |
ade710a5 TF |
18166 | while test ! -d "$as_dir"; do |
18167 | as_dirs="$as_dir $as_dirs" | |
18168 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
ed698112 NN |
18169 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18170 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18171 | X"$as_dir" : 'X\(//\)$' \| \ | |
ade710a5 TF |
18172 | X"$as_dir" : 'X\(/\)' \| \ |
18173 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 18174 | echo X"$as_dir" | |
ade710a5 TF |
18175 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18176 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18177 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18178 | /^X\(\/\).*/{ s//\1/; q; } | |
18179 | s/.*/./; q'` | |
ed698112 | 18180 | done |
ade710a5 TF |
18181 | test ! -n "$as_dirs" || mkdir $as_dirs |
18182 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18183 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
ed698112 | 18184 | { (exit 1); exit 1; }; }; } |
ade710a5 | 18185 | |
ed698112 NN |
18186 | ac_builddir=. |
18187 | ||
ade710a5 | 18188 | if test "$ac_dir" != .; then |
ed698112 | 18189 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ade710a5 TF |
18190 | # A "../" for each directory in $ac_dir_suffix. |
18191 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18192 | else | |
18193 | ac_dir_suffix= ac_top_builddir= | |
18194 | fi | |
ee9dd372 | 18195 | |
ed698112 | 18196 | case $srcdir in |
ade710a5 | 18197 | .) # No --srcdir option. We are building in place. |
ed698112 | 18198 | ac_srcdir=. |
ade710a5 TF |
18199 | if test -z "$ac_top_builddir"; then |
18200 | ac_top_srcdir=. | |
18201 | else | |
18202 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18203 | fi ;; | |
18204 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
ed698112 | 18205 | ac_srcdir=$srcdir$ac_dir_suffix; |
ade710a5 TF |
18206 | ac_top_srcdir=$srcdir ;; |
18207 | *) # Relative path. | |
18208 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18209 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
ed698112 | 18210 | esac |
ee9dd372 | 18211 | |
ade710a5 TF |
18212 | # Do not use `cd foo && pwd` to compute absolute paths, because |
18213 | # the directories may not exist. | |
18214 | case `pwd` in | |
18215 | .) ac_abs_builddir="$ac_dir";; | |
18216 | *) | |
18217 | case "$ac_dir" in | |
18218 | .) ac_abs_builddir=`pwd`;; | |
18219 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
18220 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
18221 | esac;; | |
18222 | esac | |
18223 | case $ac_abs_builddir in | |
18224 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18225 | *) | |
18226 | case ${ac_top_builddir}. in | |
18227 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
18228 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18229 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
18230 | esac;; | |
18231 | esac | |
18232 | case $ac_abs_builddir in | |
18233 | .) ac_abs_srcdir=$ac_srcdir;; | |
18234 | *) | |
18235 | case $ac_srcdir in | |
18236 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
18237 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
18238 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
18239 | esac;; | |
18240 | esac | |
18241 | case $ac_abs_builddir in | |
18242 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18243 | *) | |
18244 | case $ac_top_srcdir in | |
18245 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
18246 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18247 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
18248 | esac;; | |
18249 | esac | |
ee9dd372 | 18250 | |
ed698112 NN |
18251 | |
18252 | case $INSTALL in | |
18253 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
ade710a5 | 18254 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ee9dd372 TT |
18255 | esac |
18256 | ||
ade710a5 TF |
18257 | if test x"$ac_file" != x-; then |
18258 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18259 | echo "$as_me: creating $ac_file" >&6;} | |
18260 | rm -f "$ac_file" | |
18261 | fi | |
18262 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18263 | # use $as_me), people would be surprised to read: | |
18264 | # /* config.h. Generated by config.status. */ | |
18265 | if test x"$ac_file" = x-; then | |
18266 | configure_input= | |
18267 | else | |
18268 | configure_input="$ac_file. " | |
18269 | fi | |
18270 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
18271 | sed 's,.*/,,'` by configure." | |
18272 | ||
18273 | # First look for the input files in the build tree, otherwise in the | |
18274 | # src tree. | |
18275 | ac_file_inputs=`IFS=: | |
18276 | for f in $ac_file_in; do | |
18277 | case $f in | |
18278 | -) echo $tmp/stdin ;; | |
18279 | [\\/$]*) | |
18280 | # Absolute (can't be DOS-style, as IFS=:) | |
18281 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18282 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18283 | { (exit 1); exit 1; }; } | |
18284 | echo "$f";; | |
18285 | *) # Relative | |
18286 | if test -f "$f"; then | |
18287 | # Build tree | |
18288 | echo "$f" | |
18289 | elif test -f "$srcdir/$f"; then | |
18290 | # Source tree | |
18291 | echo "$srcdir/$f" | |
18292 | else | |
18293 | # /dev/null tree | |
18294 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18295 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18296 | { (exit 1); exit 1; }; } | |
18297 | fi;; | |
18298 | esac | |
18299 | done` || { (exit 1); exit 1; } | |
02809848 | 18300 | _ACEOF |
ed698112 NN |
18301 | cat >>$CONFIG_STATUS <<_ACEOF |
18302 | sed "$ac_vpsub | |
18303 | $extrasub | |
18304 | _ACEOF | |
18305 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18306 | :t | |
18307 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ade710a5 TF |
18308 | s,@configure_input@,$configure_input,;t t |
18309 | s,@srcdir@,$ac_srcdir,;t t | |
18310 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
18311 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
18312 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
18313 | s,@builddir@,$ac_builddir,;t t | |
18314 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
18315 | s,@top_builddir@,$ac_top_builddir,;t t | |
18316 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
18317 | s,@INSTALL@,$ac_INSTALL,;t t | |
18318 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
18319 | rm -f $tmp/stdin | |
18320 | if test x"$ac_file" != x-; then | |
18321 | mv $tmp/out $ac_file | |
18322 | else | |
18323 | cat $tmp/out | |
18324 | rm -f $tmp/out | |
18325 | fi | |
18326 | ||
18327 | # Run the commands associated with the file. | |
ed698112 | 18328 | case $ac_file in |
ade710a5 | 18329 | scripts/jar ) chmod +x scripts/jar ;; |
ee9dd372 | 18330 | esac |
ade710a5 TF |
18331 | done |
18332 | _ACEOF | |
18333 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18334 | ||
18335 | # | |
18336 | # CONFIG_HEADER section. | |
18337 | # | |
18338 | ||
18339 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18340 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18341 | # | |
18342 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18343 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
18344 | ac_dB='[ ].*$,\1#\2' | |
18345 | ac_dC=' ' | |
18346 | ac_dD=',;t' | |
18347 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18348 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18349 | ac_uB='$,\1#\2define\3' | |
18350 | ac_uC=' ' | |
18351 | ac_uD=',;t' | |
18352 | ||
18353 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
18354 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18355 | case $ac_file in | |
18356 | - | *:- | *:-:* ) # input from stdin | |
18357 | cat >$tmp/stdin | |
18358 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18359 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18360 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18361 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18362 | * ) ac_file_in=$ac_file.in ;; | |
18363 | esac | |
18364 | ||
18365 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18366 | echo "$as_me: creating $ac_file" >&6;} | |
18367 | ||
18368 | # First look for the input files in the build tree, otherwise in the | |
18369 | # src tree. | |
18370 | ac_file_inputs=`IFS=: | |
18371 | for f in $ac_file_in; do | |
18372 | case $f in | |
18373 | -) echo $tmp/stdin ;; | |
18374 | [\\/$]*) | |
18375 | # Absolute (can't be DOS-style, as IFS=:) | |
18376 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18377 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18378 | { (exit 1); exit 1; }; } | |
18379 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
18380 | echo "$f";; | |
18381 | *) # Relative | |
18382 | if test -f "$f"; then | |
18383 | # Build tree | |
18384 | echo "$f" | |
18385 | elif test -f "$srcdir/$f"; then | |
18386 | # Source tree | |
18387 | echo "$srcdir/$f" | |
18388 | else | |
18389 | # /dev/null tree | |
18390 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18391 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18392 | { (exit 1); exit 1; }; } | |
18393 | fi;; | |
18394 | esac | |
18395 | done` || { (exit 1); exit 1; } | |
18396 | # Remove the trailing spaces. | |
18397 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
18398 | ||
18399 | _ACEOF | |
18400 | ||
18401 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
18402 | # `conftest.undefs', that substitutes the proper values into | |
18403 | # config.h.in to produce config.h. The first handles `#define' | |
18404 | # templates, and the second `#undef' templates. | |
18405 | # And first: Protect against being on the right side of a sed subst in | |
18406 | # config.status. Protect against being in an unquoted here document | |
18407 | # in config.status. | |
18408 | rm -f conftest.defines conftest.undefs | |
18409 | # Using a here document instead of a string reduces the quoting nightmare. | |
18410 | # Putting comments in sed scripts is not portable. | |
18411 | # | |
18412 | # `end' is used to avoid that the second main sed command (meant for | |
18413 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
18414 | # See the Autoconf documentation for `clear'. | |
18415 | cat >confdef2sed.sed <<\_ACEOF | |
18416 | s/[\\&,]/\\&/g | |
18417 | s,[\\$`],\\&,g | |
18418 | t clear | |
18419 | : clear | |
18420 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
18421 | t end | |
18422 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
18423 | : end | |
18424 | _ACEOF | |
18425 | # If some macros were called several times there might be several times | |
18426 | # the same #defines, which is useless. Nevertheless, we may not want to | |
18427 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
18428 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
18429 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
18430 | rm -f confdef2sed.sed | |
18431 | ||
18432 | # This sed command replaces #undef with comments. This is necessary, for | |
ee9dd372 TT |
18433 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
18434 | # on some systems where configure will not decide to define it. | |
ade710a5 TF |
18435 | cat >>conftest.undefs <<\_ACEOF |
18436 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
18437 | _ACEOF | |
18438 | ||
18439 | # Break up conftest.defines because some shells have a limit on the size | |
18440 | # of here documents, and old seds have small limits too (100 cmds). | |
18441 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
18442 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
18443 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
18444 | echo ' :' >>$CONFIG_STATUS | |
18445 | rm -f conftest.tail | |
18446 | while grep . conftest.defines >/dev/null | |
ed698112 | 18447 | do |
ade710a5 TF |
18448 | # Write a limited-size here document to $tmp/defines.sed. |
18449 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
18450 | # Speed up: don't consider the non `#define' lines. | |
18451 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
18452 | # Work around the forget-to-reset-the-flag bug. | |
18453 | echo 't clr' >>$CONFIG_STATUS | |
18454 | echo ': clr' >>$CONFIG_STATUS | |
18455 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
ed698112 | 18456 | echo 'CEOF |
ade710a5 TF |
18457 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
18458 | rm -f $tmp/in | |
18459 | mv $tmp/out $tmp/in | |
18460 | ' >>$CONFIG_STATUS | |
18461 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
ed698112 NN |
18462 | rm -f conftest.defines |
18463 | mv conftest.tail conftest.defines | |
18464 | done | |
ade710a5 TF |
18465 | rm -f conftest.defines |
18466 | echo ' fi # grep' >>$CONFIG_STATUS | |
18467 | echo >>$CONFIG_STATUS | |
18468 | ||
18469 | # Break up conftest.undefs because some shells have a limit on the size | |
18470 | # of here documents, and old seds have small limits too (100 cmds). | |
18471 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
18472 | rm -f conftest.tail | |
18473 | while grep . conftest.undefs >/dev/null | |
18474 | do | |
18475 | # Write a limited-size here document to $tmp/undefs.sed. | |
18476 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
18477 | # Speed up: don't consider the non `#undef' | |
18478 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
18479 | # Work around the forget-to-reset-the-flag bug. | |
18480 | echo 't clr' >>$CONFIG_STATUS | |
18481 | echo ': clr' >>$CONFIG_STATUS | |
18482 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
18483 | echo 'CEOF | |
18484 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
18485 | rm -f $tmp/in | |
18486 | mv $tmp/out $tmp/in | |
18487 | ' >>$CONFIG_STATUS | |
18488 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
18489 | rm -f conftest.undefs | |
18490 | mv conftest.tail conftest.undefs | |
18491 | done | |
18492 | rm -f conftest.undefs | |
ed698112 NN |
18493 | |
18494 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ade710a5 TF |
18495 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
18496 | # use $as_me), people would be surprised to read: | |
18497 | # /* config.h. Generated by config.status. */ | |
18498 | if test x"$ac_file" = x-; then | |
18499 | echo "/* Generated by configure. */" >$tmp/config.h | |
18500 | else | |
18501 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
18502 | fi | |
18503 | cat $tmp/in >>$tmp/config.h | |
18504 | rm -f $tmp/in | |
ed698112 | 18505 | if test x"$ac_file" != x-; then |
ade710a5 | 18506 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
ed698112 NN |
18507 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
18508 | echo "$as_me: $ac_file is unchanged" >&6;} | |
18509 | else | |
ade710a5 TF |
18510 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
18511 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18512 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18513 | X"$ac_file" : 'X\(//\)$' \| \ | |
18514 | X"$ac_file" : 'X\(/\)' \| \ | |
18515 | . : '\(.\)' 2>/dev/null || | |
18516 | echo X"$ac_file" | | |
18517 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18518 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18519 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18520 | /^X\(\/\).*/{ s//\1/; q; } | |
18521 | s/.*/./; q'` | |
18522 | { if $as_mkdir_p; then | |
18523 | mkdir -p "$ac_dir" | |
18524 | else | |
18525 | as_dir="$ac_dir" | |
18526 | as_dirs= | |
18527 | while test ! -d "$as_dir"; do | |
18528 | as_dirs="$as_dir $as_dirs" | |
18529 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18530 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18531 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18532 | X"$as_dir" : 'X\(//\)$' \| \ | |
18533 | X"$as_dir" : 'X\(/\)' \| \ | |
18534 | . : '\(.\)' 2>/dev/null || | |
18535 | echo X"$as_dir" | | |
18536 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18537 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18538 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18539 | /^X\(\/\).*/{ s//\1/; q; } | |
18540 | s/.*/./; q'` | |
18541 | done | |
18542 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18543 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18544 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18545 | { (exit 1); exit 1; }; }; } | |
18546 | ||
ed698112 | 18547 | rm -f $ac_file |
ade710a5 | 18548 | mv $tmp/config.h $ac_file |
ed698112 NN |
18549 | fi |
18550 | else | |
ade710a5 TF |
18551 | cat $tmp/config.h |
18552 | rm -f $tmp/config.h | |
ed698112 | 18553 | fi |
e3f92d3b MK |
18554 | # Compute $ac_file's index in $config_headers. |
18555 | _am_stamp_count=1 | |
18556 | for _am_header in $config_headers :; do | |
18557 | case $_am_header in | |
18558 | $ac_file | $ac_file:* ) | |
18559 | break ;; | |
18560 | * ) | |
18561 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18562 | esac | |
18563 | done | |
ade710a5 | 18564 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
e3f92d3b MK |
18565 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18566 | X$ac_file : 'X\(//\)[^/]' \| \ | |
18567 | X$ac_file : 'X\(//\)$' \| \ | |
ade710a5 TF |
18568 | X$ac_file : 'X\(/\)' \| \ |
18569 | . : '\(.\)' 2>/dev/null || | |
e3f92d3b | 18570 | echo X$ac_file | |
ade710a5 TF |
18571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18572 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18573 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18574 | /^X\(\/\).*/{ s//\1/; q; } | |
18575 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18576 | done | |
18577 | _ACEOF | |
18578 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18579 | ||
18580 | # | |
18581 | # CONFIG_LINKS section. | |
18582 | # | |
ee9dd372 | 18583 | |
ade710a5 TF |
18584 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
18585 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
18586 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18587 | ||
18588 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | |
18589 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
ee9dd372 TT |
18590 | |
18591 | if test ! -r $srcdir/$ac_source; then | |
ed698112 NN |
18592 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
18593 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
18594 | { (exit 1); exit 1; }; } | |
ee9dd372 | 18595 | fi |
ade710a5 TF |
18596 | rm -f $ac_dest |
18597 | ||
18598 | # Make relative symlinks. | |
18599 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
18600 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18601 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
18602 | X"$ac_dest" : 'X\(//\)$' \| \ | |
18603 | X"$ac_dest" : 'X\(/\)' \| \ | |
18604 | . : '\(.\)' 2>/dev/null || | |
18605 | echo X"$ac_dest" | | |
18606 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18607 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18608 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18609 | /^X\(\/\).*/{ s//\1/; q; } | |
18610 | s/.*/./; q'` | |
18611 | { if $as_mkdir_p; then | |
18612 | mkdir -p "$ac_dest_dir" | |
18613 | else | |
18614 | as_dir="$ac_dest_dir" | |
18615 | as_dirs= | |
18616 | while test ! -d "$as_dir"; do | |
18617 | as_dirs="$as_dir $as_dirs" | |
18618 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18619 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18620 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18621 | X"$as_dir" : 'X\(//\)$' \| \ | |
18622 | X"$as_dir" : 'X\(/\)' \| \ | |
18623 | . : '\(.\)' 2>/dev/null || | |
18624 | echo X"$as_dir" | | |
18625 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18626 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18627 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18628 | /^X\(\/\).*/{ s//\1/; q; } | |
18629 | s/.*/./; q'` | |
18630 | done | |
18631 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18632 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
18633 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
18634 | { (exit 1); exit 1; }; }; } | |
18635 | ||
18636 | ac_builddir=. | |
18637 | ||
18638 | if test "$ac_dest_dir" != .; then | |
18639 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
18640 | # A "../" for each directory in $ac_dir_suffix. | |
18641 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18642 | else | |
18643 | ac_dir_suffix= ac_top_builddir= | |
18644 | fi | |
18645 | ||
18646 | case $srcdir in | |
18647 | .) # No --srcdir option. We are building in place. | |
18648 | ac_srcdir=. | |
18649 | if test -z "$ac_top_builddir"; then | |
18650 | ac_top_srcdir=. | |
18651 | else | |
18652 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18653 | fi ;; | |
18654 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
18655 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18656 | ac_top_srcdir=$srcdir ;; | |
18657 | *) # Relative path. | |
18658 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18659 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18660 | esac | |
18661 | ||
18662 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
18663 | # the directories may not exist. | |
18664 | case `pwd` in | |
18665 | .) ac_abs_builddir="$ac_dest_dir";; | |
18666 | *) | |
18667 | case "$ac_dest_dir" in | |
18668 | .) ac_abs_builddir=`pwd`;; | |
18669 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
18670 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
18671 | esac;; | |
18672 | esac | |
18673 | case $ac_abs_builddir in | |
18674 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18675 | *) | |
18676 | case ${ac_top_builddir}. in | |
18677 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
18678 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18679 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
18680 | esac;; | |
18681 | esac | |
18682 | case $ac_abs_builddir in | |
18683 | .) ac_abs_srcdir=$ac_srcdir;; | |
18684 | *) | |
18685 | case $ac_srcdir in | |
18686 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
18687 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
18688 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
18689 | esac;; | |
18690 | esac | |
18691 | case $ac_abs_builddir in | |
18692 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18693 | *) | |
18694 | case $ac_top_srcdir in | |
18695 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
18696 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18697 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
18698 | esac;; | |
18699 | esac | |
18700 | ||
ed698112 NN |
18701 | |
18702 | case $srcdir in | |
18703 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
ade710a5 | 18704 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
ee9dd372 | 18705 | esac |
ade710a5 TF |
18706 | |
18707 | # Try a symlink, then a hard link, then a copy. | |
18708 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
18709 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
18710 | cp -p $srcdir/$ac_source $ac_dest || | |
18711 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
18712 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
ed698112 | 18713 | { (exit 1); exit 1; }; } |
ade710a5 TF |
18714 | done |
18715 | _ACEOF | |
18716 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18717 | ||
18718 | # | |
18719 | # CONFIG_COMMANDS section. | |
18720 | # | |
18721 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
18722 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
18723 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18724 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
18725 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18726 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
18727 | X"$ac_dest" : 'X\(//\)$' \| \ | |
18728 | X"$ac_dest" : 'X\(/\)' \| \ | |
18729 | . : '\(.\)' 2>/dev/null || | |
18730 | echo X"$ac_dest" | | |
18731 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18732 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18733 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18734 | /^X\(\/\).*/{ s//\1/; q; } | |
18735 | s/.*/./; q'` | |
18736 | { if $as_mkdir_p; then | |
18737 | mkdir -p "$ac_dir" | |
18738 | else | |
18739 | as_dir="$ac_dir" | |
18740 | as_dirs= | |
18741 | while test ! -d "$as_dir"; do | |
18742 | as_dirs="$as_dir $as_dirs" | |
18743 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18744 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18745 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18746 | X"$as_dir" : 'X\(//\)$' \| \ | |
18747 | X"$as_dir" : 'X\(/\)' \| \ | |
18748 | . : '\(.\)' 2>/dev/null || | |
18749 | echo X"$as_dir" | | |
18750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18751 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18752 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18753 | /^X\(\/\).*/{ s//\1/; q; } | |
18754 | s/.*/./; q'` | |
18755 | done | |
18756 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18757 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18758 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18759 | { (exit 1); exit 1; }; }; } | |
18760 | ||
18761 | ac_builddir=. | |
ed698112 | 18762 | |
ade710a5 TF |
18763 | if test "$ac_dir" != .; then |
18764 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18765 | # A "../" for each directory in $ac_dir_suffix. | |
18766 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18767 | else | |
18768 | ac_dir_suffix= ac_top_builddir= | |
18769 | fi | |
ed698112 | 18770 | |
ade710a5 TF |
18771 | case $srcdir in |
18772 | .) # No --srcdir option. We are building in place. | |
18773 | ac_srcdir=. | |
18774 | if test -z "$ac_top_builddir"; then | |
18775 | ac_top_srcdir=. | |
18776 | else | |
18777 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18778 | fi ;; | |
18779 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
18780 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18781 | ac_top_srcdir=$srcdir ;; | |
18782 | *) # Relative path. | |
18783 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18784 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18785 | esac | |
18786 | ||
18787 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
18788 | # the directories may not exist. | |
18789 | case `pwd` in | |
18790 | .) ac_abs_builddir="$ac_dir";; | |
18791 | *) | |
18792 | case "$ac_dir" in | |
18793 | .) ac_abs_builddir=`pwd`;; | |
18794 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
18795 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
18796 | esac;; | |
18797 | esac | |
18798 | case $ac_abs_builddir in | |
18799 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18800 | *) | |
18801 | case ${ac_top_builddir}. in | |
18802 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
18803 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18804 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
18805 | esac;; | |
18806 | esac | |
18807 | case $ac_abs_builddir in | |
18808 | .) ac_abs_srcdir=$ac_srcdir;; | |
18809 | *) | |
18810 | case $ac_srcdir in | |
18811 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
18812 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
18813 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
18814 | esac;; | |
18815 | esac | |
18816 | case $ac_abs_builddir in | |
18817 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18818 | *) | |
18819 | case $ac_top_srcdir in | |
18820 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
18821 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18822 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
18823 | esac;; | |
18824 | esac | |
18825 | ||
18826 | ||
18827 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
18828 | echo "$as_me: executing $ac_dest commands" >&6;} | |
18829 | case $ac_dest in | |
18830 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
e3f92d3b MK |
18831 | # Strip MF so we end up with the name of the file. |
18832 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18833 | # Check whether this is an Automake generated Makefile or not. | |
18834 | # We used to match only the files named `Makefile.in', but | |
18835 | # some people rename them; so instead we look at the file content. | |
18836 | # Grep'ing the first line is not enough: some people post-process | |
18837 | # each Makefile.in and add a new line on top of each file to say so. | |
18838 | # So let's grep whole file. | |
18839 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
ade710a5 | 18840 | dirpart=`(dirname "$mf") 2>/dev/null || |
e3f92d3b MK |
18841 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18842 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18843 | X"$mf" : 'X\(//\)$' \| \ | |
ade710a5 TF |
18844 | X"$mf" : 'X\(/\)' \| \ |
18845 | . : '\(.\)' 2>/dev/null || | |
e3f92d3b | 18846 | echo X"$mf" | |
ade710a5 TF |
18847 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18848 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18849 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18850 | /^X\(\/\).*/{ s//\1/; q; } | |
18851 | s/.*/./; q'` | |
e3f92d3b MK |
18852 | else |
18853 | continue | |
18854 | fi | |
18855 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18856 | # from the Makefile without running `make'. | |
18857 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18858 | test -z "$DEPDIR" && continue | |
18859 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18860 | test -z "am__include" && continue | |
18861 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18862 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18863 | U=`sed -n 's/^U = //p' < "$mf"` | |
18864 | # Find all dependency output files, they are included files with | |
18865 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18866 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18867 | # expansion. | |
18868 | for file in `sed -n " | |
18869 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18870 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18871 | # Make sure the directory exists. | |
18872 | test -f "$dirpart/$file" && continue | |
ade710a5 | 18873 | fdir=`(dirname "$file") 2>/dev/null || |
e3f92d3b MK |
18874 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18875 | X"$file" : 'X\(//\)[^/]' \| \ | |
18876 | X"$file" : 'X\(//\)$' \| \ | |
ade710a5 TF |
18877 | X"$file" : 'X\(/\)' \| \ |
18878 | . : '\(.\)' 2>/dev/null || | |
e3f92d3b | 18879 | echo X"$file" | |
ade710a5 TF |
18880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18881 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18882 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18883 | /^X\(\/\).*/{ s//\1/; q; } | |
18884 | s/.*/./; q'` | |
18885 | { if $as_mkdir_p; then | |
18886 | mkdir -p $dirpart/$fdir | |
18887 | else | |
18888 | as_dir=$dirpart/$fdir | |
e3f92d3b | 18889 | as_dirs= |
ade710a5 TF |
18890 | while test ! -d "$as_dir"; do |
18891 | as_dirs="$as_dir $as_dirs" | |
18892 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
e3f92d3b MK |
18893 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18894 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18895 | X"$as_dir" : 'X\(//\)$' \| \ | |
ade710a5 TF |
18896 | X"$as_dir" : 'X\(/\)' \| \ |
18897 | . : '\(.\)' 2>/dev/null || | |
e3f92d3b | 18898 | echo X"$as_dir" | |
ade710a5 TF |
18899 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
18900 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18901 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18902 | /^X\(\/\).*/{ s//\1/; q; } | |
18903 | s/.*/./; q'` | |
e3f92d3b | 18904 | done |
ade710a5 TF |
18905 | test ! -n "$as_dirs" || mkdir $as_dirs |
18906 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
18907 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
e3f92d3b | 18908 | { (exit 1); exit 1; }; }; } |
ade710a5 | 18909 | |
e3f92d3b MK |
18910 | # echo "creating $dirpart/$file" |
18911 | echo '# dummy' > "$dirpart/$file" | |
18912 | done | |
18913 | done | |
18914 | ;; | |
ade710a5 | 18915 | default ) # Only add multilib support code if we just rebuilt top-level Makefile. |
eb019738 TT |
18916 | case " $CONFIG_FILES " in |
18917 | *" Makefile "*) | |
6706f116 | 18918 | LD="${ORIGINAL_LD_FOR_MULTILIBS}" |
eb019738 TT |
18919 | ac_file=Makefile . ${libgcj_basedir}/../config-ml.in |
18920 | ;; | |
18921 | esac | |
3162d93d AO |
18922 | for ac_multi_file in $CONFIG_FILES; do |
18923 | case $ac_multi_file in | |
18924 | */Makefile) | |
18925 | grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;; | |
18926 | esac | |
18927 | done | |
ed698112 NN |
18928 | ;; |
18929 | esac | |
ade710a5 TF |
18930 | done |
18931 | _ACEOF | |
480222b5 | 18932 | |
ade710a5 | 18933 | cat >>$CONFIG_STATUS <<\_ACEOF |
ed698112 NN |
18934 | |
18935 | { (exit 0); exit 0; } | |
18936 | _ACEOF | |
ee9dd372 | 18937 | chmod +x $CONFIG_STATUS |
ed698112 NN |
18938 | ac_clean_files=$ac_clean_files_save |
18939 | ||
18940 | ||
18941 | # configure is writing to config.log, and then calls config.status. | |
18942 | # config.status does its own redirection, appending to config.log. | |
18943 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18944 | # by configure, so config.status won't be able to write to it; its | |
18945 | # output is simply discarded. So we exec the FD to /dev/null, | |
18946 | # effectively closing config.log, so it can be properly (re)opened and | |
18947 | # appended to by config.status. When coming back to configure, we | |
18948 | # need to make the FD available again. | |
18949 | if test "$no_create" != yes; then | |
18950 | ac_cs_success=: | |
18951 | ac_config_status_args= | |
18952 | test "$silent" = yes && | |
18953 | ac_config_status_args="$ac_config_status_args --quiet" | |
18954 | exec 5>/dev/null | |
18955 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18956 | exec 5>>config.log | |
18957 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18958 | # would make configure fail if this is the last instruction. | |
18959 | $ac_cs_success || { (exit 1); exit 1; } | |
18960 | fi | |
ee9dd372 | 18961 | |
ed698112 NN |
18962 | # |
18963 | # CONFIG_SUBDIRS section. | |
18964 | # | |
7af85558 TT |
18965 | if test "$no_recursion" != yes; then |
18966 | ||
18967 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18968 | ac_sub_configure_args= | |
18969 | ac_prev= | |
ade710a5 | 18970 | for ac_arg in $ac_configure_args; do |
7af85558 TT |
18971 | if test -n "$ac_prev"; then |
18972 | ac_prev= | |
18973 | continue | |
18974 | fi | |
ed698112 | 18975 | case $ac_arg in |
7af85558 TT |
18976 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18977 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18978 | ac_prev=cache_file ;; | |
18979 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
ed698112 NN |
18980 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
18981 | | --c=*) | |
18982 | ;; | |
18983 | --config-cache | -C) | |
7af85558 TT |
18984 | ;; |
18985 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18986 | ac_prev=srcdir ;; | |
18987 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18988 | ;; | |
ed698112 NN |
18989 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
18990 | ac_prev=prefix ;; | |
18991 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18992 | ;; | |
ade710a5 | 18993 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
7af85558 TT |
18994 | esac |
18995 | done | |
18996 | ||
ed698112 NN |
18997 | # Always prepend --prefix to ensure using the same prefix |
18998 | # in subdir configurations. | |
18999 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
19000 | ||
ade710a5 | 19001 | ac_popdir=`pwd` |
ed698112 | 19002 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
7af85558 TT |
19003 | |
19004 | # Do not complain, so a configure script can configure whichever | |
19005 | # parts of a large source tree are present. | |
ed698112 | 19006 | test -d $srcdir/$ac_dir || continue |
7af85558 | 19007 | |
ade710a5 TF |
19008 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
19009 | echo "$as_me: configuring in $ac_dir" >&6;} | |
19010 | { if $as_mkdir_p; then | |
19011 | mkdir -p "$ac_dir" | |
19012 | else | |
19013 | as_dir="$ac_dir" | |
ed698112 | 19014 | as_dirs= |
ade710a5 TF |
19015 | while test ! -d "$as_dir"; do |
19016 | as_dirs="$as_dir $as_dirs" | |
19017 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
ed698112 NN |
19018 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19019 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19020 | X"$as_dir" : 'X\(//\)$' \| \ | |
ade710a5 TF |
19021 | X"$as_dir" : 'X\(/\)' \| \ |
19022 | . : '\(.\)' 2>/dev/null || | |
ed698112 | 19023 | echo X"$as_dir" | |
ade710a5 TF |
19024 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19025 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19026 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19027 | /^X\(\/\).*/{ s//\1/; q; } | |
19028 | s/.*/./; q'` | |
ed698112 | 19029 | done |
ade710a5 TF |
19030 | test ! -n "$as_dirs" || mkdir $as_dirs |
19031 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
19032 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
ed698112 | 19033 | { (exit 1); exit 1; }; }; } |
ade710a5 | 19034 | |
ed698112 NN |
19035 | ac_builddir=. |
19036 | ||
ade710a5 | 19037 | if test "$ac_dir" != .; then |
ed698112 | 19038 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ade710a5 TF |
19039 | # A "../" for each directory in $ac_dir_suffix. |
19040 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
19041 | else | |
19042 | ac_dir_suffix= ac_top_builddir= | |
19043 | fi | |
ed698112 NN |
19044 | |
19045 | case $srcdir in | |
ade710a5 | 19046 | .) # No --srcdir option. We are building in place. |
ed698112 | 19047 | ac_srcdir=. |
ade710a5 TF |
19048 | if test -z "$ac_top_builddir"; then |
19049 | ac_top_srcdir=. | |
19050 | else | |
19051 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
19052 | fi ;; | |
19053 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
ed698112 | 19054 | ac_srcdir=$srcdir$ac_dir_suffix; |
ade710a5 TF |
19055 | ac_top_srcdir=$srcdir ;; |
19056 | *) # Relative path. | |
19057 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
19058 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
19059 | esac | |
19060 | ||
19061 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
19062 | # the directories may not exist. | |
19063 | case `pwd` in | |
19064 | .) ac_abs_builddir="$ac_dir";; | |
19065 | *) | |
19066 | case "$ac_dir" in | |
19067 | .) ac_abs_builddir=`pwd`;; | |
19068 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
19069 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
19070 | esac;; | |
19071 | esac | |
19072 | case $ac_abs_builddir in | |
19073 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
19074 | *) | |
19075 | case ${ac_top_builddir}. in | |
19076 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
19077 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
19078 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
19079 | esac;; | |
19080 | esac | |
19081 | case $ac_abs_builddir in | |
19082 | .) ac_abs_srcdir=$ac_srcdir;; | |
19083 | *) | |
19084 | case $ac_srcdir in | |
19085 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
19086 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
19087 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
19088 | esac;; | |
19089 | esac | |
19090 | case $ac_abs_builddir in | |
19091 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
19092 | *) | |
19093 | case $ac_top_srcdir in | |
19094 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
19095 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
19096 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
19097 | esac;; | |
ed698112 | 19098 | esac |
7af85558 | 19099 | |
7af85558 | 19100 | |
ade710a5 | 19101 | cd $ac_dir |
7af85558 TT |
19102 | |
19103 | # Check for guested configure; otherwise get Cygnus style configure. | |
ed698112 NN |
19104 | if test -f $ac_srcdir/configure.gnu; then |
19105 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
19106 | elif test -f $ac_srcdir/configure; then | |
19107 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
19108 | elif test -f $ac_srcdir/configure.in; then | |
7af85558 TT |
19109 | ac_sub_configure=$ac_configure |
19110 | else | |
ed698112 NN |
19111 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
19112 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
7af85558 TT |
19113 | ac_sub_configure= |
19114 | fi | |
19115 | ||
19116 | # The recursion is here. | |
19117 | if test -n "$ac_sub_configure"; then | |
7af85558 | 19118 | # Make the cache file name correct relative to the subdirectory. |
ed698112 NN |
19119 | case $cache_file in |
19120 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
ade710a5 TF |
19121 | *) # Relative path. |
19122 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
7af85558 | 19123 | esac |
7af85558 | 19124 | |
ed698112 NN |
19125 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
19126 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
7af85558 | 19127 | # The eval makes quoting arguments work. |
ade710a5 TF |
19128 | eval $ac_sub_configure $ac_sub_configure_args \ |
19129 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
ed698112 NN |
19130 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
19131 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
19132 | { (exit 1); exit 1; }; } | |
7af85558 TT |
19133 | fi |
19134 | ||
ade710a5 | 19135 | cd $ac_popdir |
7af85558 TT |
19136 | done |
19137 | fi | |
19138 |