Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
b4e70030 | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
b4e70030 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
c906108c SS |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
bec39cab AC |
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+"$@"}'='"$@"' | |
b4e70030 JB |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
bec39cab AC |
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. | |
b4e70030 | 33 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
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 | |
b4e70030 | 47 | $as_unset $as_var |
bec39cab AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
b4e70030 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
b4e70030 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
b4e70030 | 66 | as_me=`$as_basename "$0" || |
bec39cab AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 71 | echo X/"$0" | |
b4e70030 JB |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
bec39cab | 76 | |
4e8d927d | 77 | |
b4e70030 JB |
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 | |
4e8d927d | 85 | |
b4e70030 JB |
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 | |
4e8d927d DJ |
97 | fi |
98 | ||
4e8d927d | 99 | |
b4e70030 JB |
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 | |
4e8d927d | 116 | |
b4e70030 JB |
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 | '') | |
bec39cab | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b4e70030 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bec39cab AC |
132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
b4e70030 JB |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
bec39cab | 137 | /*) |
b4e70030 | 138 | if ("$as_dir/$as_base" -c ' |
4e8d927d DJ |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
b4e70030 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4e8d927d | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
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 | |
bec39cab AC |
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 | |
b4e70030 JB |
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. | |
bec39cab | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
bec39cab AC |
165 | sed ' |
166 | N | |
b4e70030 JB |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 170 | t loop |
b4e70030 JB |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 173 | ' >$as_me.lineno && |
b4e70030 | 174 | chmod +x $as_me.lineno || |
bec39cab AC |
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 | |
b4e70030 JB |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
bec39cab AC |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
b4e70030 JB |
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= ;; | |
bec39cab AC |
192 | esac |
193 | ||
b4e70030 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
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 | |
b4e70030 JB |
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 | |
bec39cab | 207 | as_ln_s='cp -p' |
b4e70030 JB |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
bec39cab AC |
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 | |
b4e70030 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
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 | ||
b4e70030 | 225 | as_executable_p="test -f" |
bec39cab AC |
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 | ||
b4e70030 JB |
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 | |
bec39cab | 242 | |
c906108c | 243 | |
bec39cab AC |
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` | |
248 | ||
b4e70030 JB |
249 | exec 6>&1 |
250 | ||
bec39cab AC |
251 | # |
252 | # Initializations. | |
253 | # | |
c906108c | 254 | ac_default_prefix=/usr/local |
bec39cab AC |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
b4e70030 JB |
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 | ||
bec39cab AC |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="main.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
b4e70030 JB |
303 | #else |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
bec39cab AC |
307 | #endif |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
783e057b DJ |
312 | gl_header_list= |
313 | ac_subdirs_all="$ac_subdirs_all doc testsuite" | |
b4e70030 JB |
314 | ac_subdirs_all="$ac_subdirs_all gdbtk" |
315 | ac_subdirs_all="$ac_subdirs_all multi-ice" | |
316 | ac_subdirs_all="$ac_subdirs_all gdbserver" | |
5062cc19 | 317 | 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W 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 subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS' |
a4ce5b0d | 318 | ac_subst_files='host_makefile_frag' |
d5af19ba | 319 | ac_pwd=`pwd` |
c906108c SS |
320 | |
321 | # Initialize some variables set by options. | |
bec39cab AC |
322 | ac_init_help= |
323 | ac_init_version=false | |
c906108c SS |
324 | # The variables have the same names as the options, with |
325 | # dashes changed to underlines. | |
bec39cab | 326 | cache_file=/dev/null |
c906108c | 327 | exec_prefix=NONE |
c906108c | 328 | no_create= |
c906108c SS |
329 | no_recursion= |
330 | prefix=NONE | |
331 | program_prefix=NONE | |
332 | program_suffix=NONE | |
333 | program_transform_name=s,x,x, | |
334 | silent= | |
335 | site= | |
336 | srcdir= | |
c906108c SS |
337 | verbose= |
338 | x_includes=NONE | |
339 | x_libraries=NONE | |
bec39cab AC |
340 | |
341 | # Installation directory options. | |
342 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
343 | # and all the variables that are supposed to be based on exec_prefix | |
344 | # by default will actually change. | |
345 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
346 | bindir='${exec_prefix}/bin' |
347 | sbindir='${exec_prefix}/sbin' | |
348 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 349 | datadir='${prefix}/share' |
c906108c SS |
350 | sysconfdir='${prefix}/etc' |
351 | sharedstatedir='${prefix}/com' | |
352 | localstatedir='${prefix}/var' | |
b4e70030 | 353 | libdir='${exec_prefix}/lib' |
c906108c SS |
354 | includedir='${prefix}/include' |
355 | oldincludedir='/usr/include' | |
b4e70030 JB |
356 | infodir='${prefix}/info' |
357 | mandir='${prefix}/man' | |
c906108c | 358 | |
c906108c SS |
359 | ac_prev= |
360 | for ac_option | |
361 | do | |
c906108c SS |
362 | # If the previous option needs an argument, assign it. |
363 | if test -n "$ac_prev"; then | |
b4e70030 | 364 | eval "$ac_prev=\$ac_option" |
c906108c SS |
365 | ac_prev= |
366 | continue | |
367 | fi | |
368 | ||
b4e70030 | 369 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
370 | |
371 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
372 | ||
b4e70030 | 373 | case $ac_option in |
c906108c SS |
374 | |
375 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
376 | ac_prev=bindir ;; | |
377 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 378 | bindir=$ac_optarg ;; |
c906108c SS |
379 | |
380 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 381 | ac_prev=build_alias ;; |
c906108c | 382 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 383 | build_alias=$ac_optarg ;; |
c906108c SS |
384 | |
385 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
386 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
387 | ac_prev=cache_file ;; | |
388 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
389 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
390 | cache_file=$ac_optarg ;; |
391 | ||
392 | --config-cache | -C) | |
393 | cache_file=config.cache ;; | |
c906108c | 394 | |
b4e70030 | 395 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 396 | ac_prev=datadir ;; |
b4e70030 JB |
397 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
398 | | --da=*) | |
bec39cab | 399 | datadir=$ac_optarg ;; |
c906108c SS |
400 | |
401 | -disable-* | --disable-*) | |
bec39cab | 402 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 403 | # Reject names that are not valid shell variable names. |
bec39cab AC |
404 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
405 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
406 | { (exit 1); exit 1; }; } | |
407 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 | 408 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
409 | |
410 | -enable-* | --enable-*) | |
bec39cab | 411 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 412 | # Reject names that are not valid shell variable names. |
bec39cab AC |
413 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
414 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
415 | { (exit 1); exit 1; }; } | |
416 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 JB |
417 | case $ac_option in |
418 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
419 | *) ac_optarg=yes ;; | |
420 | esac | |
421 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
422 | |
423 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
424 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
425 | | --exec | --exe | --ex) | |
426 | ac_prev=exec_prefix ;; | |
427 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
428 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
429 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 430 | exec_prefix=$ac_optarg ;; |
c906108c SS |
431 | |
432 | -gas | --gas | --ga | --g) | |
433 | # Obsolete; use --with-gas. | |
434 | with_gas=yes ;; | |
435 | ||
bec39cab AC |
436 | -help | --help | --hel | --he | -h) |
437 | ac_init_help=long ;; | |
438 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
439 | ac_init_help=recursive ;; | |
440 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
441 | ac_init_help=short ;; | |
c906108c SS |
442 | |
443 | -host | --host | --hos | --ho) | |
bec39cab | 444 | ac_prev=host_alias ;; |
c906108c | 445 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 446 | host_alias=$ac_optarg ;; |
c906108c SS |
447 | |
448 | -includedir | --includedir | --includedi | --included | --include \ | |
449 | | --includ | --inclu | --incl | --inc) | |
450 | ac_prev=includedir ;; | |
451 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
452 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 453 | includedir=$ac_optarg ;; |
c906108c SS |
454 | |
455 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
456 | ac_prev=infodir ;; | |
457 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 458 | infodir=$ac_optarg ;; |
c906108c SS |
459 | |
460 | -libdir | --libdir | --libdi | --libd) | |
461 | ac_prev=libdir ;; | |
462 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 463 | libdir=$ac_optarg ;; |
c906108c SS |
464 | |
465 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
466 | | --libexe | --libex | --libe) | |
467 | ac_prev=libexecdir ;; | |
468 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
469 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 470 | libexecdir=$ac_optarg ;; |
c906108c SS |
471 | |
472 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
473 | | --localstate | --localstat | --localsta | --localst \ |
474 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
475 | ac_prev=localstatedir ;; |
476 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
477 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
478 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 479 | localstatedir=$ac_optarg ;; |
c906108c SS |
480 | |
481 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
482 | ac_prev=mandir ;; | |
483 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 484 | mandir=$ac_optarg ;; |
c906108c SS |
485 | |
486 | -nfp | --nfp | --nf) | |
487 | # Obsolete; use --without-fp. | |
488 | with_fp=no ;; | |
489 | ||
490 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 491 | | --no-cr | --no-c | -n) |
c906108c SS |
492 | no_create=yes ;; |
493 | ||
494 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
495 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
496 | no_recursion=yes ;; | |
497 | ||
498 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
499 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
500 | | --oldin | --oldi | --old | --ol | --o) | |
501 | ac_prev=oldincludedir ;; | |
502 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
503 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
504 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 505 | oldincludedir=$ac_optarg ;; |
c906108c SS |
506 | |
507 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
508 | ac_prev=prefix ;; | |
509 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 510 | prefix=$ac_optarg ;; |
c906108c SS |
511 | |
512 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
513 | | --program-pre | --program-pr | --program-p) | |
514 | ac_prev=program_prefix ;; | |
515 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
516 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 517 | program_prefix=$ac_optarg ;; |
c906108c SS |
518 | |
519 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
520 | | --program-suf | --program-su | --program-s) | |
521 | ac_prev=program_suffix ;; | |
522 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
523 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 524 | program_suffix=$ac_optarg ;; |
c906108c SS |
525 | |
526 | -program-transform-name | --program-transform-name \ | |
527 | | --program-transform-nam | --program-transform-na \ | |
528 | | --program-transform-n | --program-transform- \ | |
529 | | --program-transform | --program-transfor \ | |
530 | | --program-transfo | --program-transf \ | |
531 | | --program-trans | --program-tran \ | |
532 | | --progr-tra | --program-tr | --program-t) | |
533 | ac_prev=program_transform_name ;; | |
534 | -program-transform-name=* | --program-transform-name=* \ | |
535 | | --program-transform-nam=* | --program-transform-na=* \ | |
536 | | --program-transform-n=* | --program-transform-=* \ | |
537 | | --program-transform=* | --program-transfor=* \ | |
538 | | --program-transfo=* | --program-transf=* \ | |
539 | | --program-trans=* | --program-tran=* \ | |
540 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 541 | program_transform_name=$ac_optarg ;; |
c906108c SS |
542 | |
543 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
544 | | -silent | --silent | --silen | --sile | --sil) | |
545 | silent=yes ;; | |
546 | ||
547 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
548 | ac_prev=sbindir ;; | |
549 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
550 | | --sbi=* | --sb=*) | |
bec39cab | 551 | sbindir=$ac_optarg ;; |
c906108c SS |
552 | |
553 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
554 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
555 | | --sharedst | --shareds | --shared | --share | --shar \ | |
556 | | --sha | --sh) | |
557 | ac_prev=sharedstatedir ;; | |
558 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
559 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
560 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
561 | | --sha=* | --sh=*) | |
bec39cab | 562 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
563 | |
564 | -site | --site | --sit) | |
565 | ac_prev=site ;; | |
566 | -site=* | --site=* | --sit=*) | |
bec39cab | 567 | site=$ac_optarg ;; |
3ace7edb | 568 | |
c906108c SS |
569 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
570 | ac_prev=srcdir ;; | |
571 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 572 | srcdir=$ac_optarg ;; |
c906108c SS |
573 | |
574 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
575 | | --syscon | --sysco | --sysc | --sys | --sy) | |
576 | ac_prev=sysconfdir ;; | |
577 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
578 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 579 | sysconfdir=$ac_optarg ;; |
c906108c SS |
580 | |
581 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 582 | ac_prev=target_alias ;; |
c906108c | 583 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 584 | target_alias=$ac_optarg ;; |
c906108c SS |
585 | |
586 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
587 | verbose=yes ;; | |
588 | ||
bec39cab AC |
589 | -version | --version | --versio | --versi | --vers | -V) |
590 | ac_init_version=: ;; | |
c906108c SS |
591 | |
592 | -with-* | --with-*) | |
bec39cab | 593 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 594 | # Reject names that are not valid shell variable names. |
bec39cab AC |
595 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
596 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
597 | { (exit 1); exit 1; }; } | |
c906108c | 598 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
599 | case $ac_option in |
600 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
601 | *) ac_optarg=yes ;; | |
602 | esac | |
603 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
604 | |
605 | -without-* | --without-*) | |
bec39cab | 606 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 607 | # Reject names that are not valid shell variable names. |
bec39cab AC |
608 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
609 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
610 | { (exit 1); exit 1; }; } | |
611 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
b4e70030 | 612 | eval "with_$ac_package=no" ;; |
c906108c SS |
613 | |
614 | --x) | |
615 | # Obsolete; use --with-x. | |
616 | with_x=yes ;; | |
617 | ||
618 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
619 | | --x-incl | --x-inc | --x-in | --x-i) | |
620 | ac_prev=x_includes ;; | |
621 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
622 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 623 | x_includes=$ac_optarg ;; |
c906108c SS |
624 | |
625 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
626 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
627 | ac_prev=x_libraries ;; | |
628 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
629 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 630 | x_libraries=$ac_optarg ;; |
c906108c | 631 | |
bec39cab AC |
632 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
633 | Try \`$0 --help' for more information." >&2 | |
634 | { (exit 1); exit 1; }; } | |
c906108c SS |
635 | ;; |
636 | ||
bec39cab AC |
637 | *=*) |
638 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
639 | # Reject names that are not valid shell variable names. | |
640 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
641 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
642 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
643 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
644 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
645 | export $ac_envvar ;; |
646 | ||
c906108c | 647 | *) |
bec39cab AC |
648 | # FIXME: should be removed in autoconf 3.0. |
649 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
650 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
651 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
652 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
653 | ;; |
654 | ||
655 | esac | |
656 | done | |
657 | ||
658 | if test -n "$ac_prev"; then | |
bec39cab AC |
659 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
660 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
661 | { (exit 1); exit 1; }; } | |
c906108c | 662 | fi |
c906108c | 663 | |
b4e70030 JB |
664 | # Be sure to have absolute paths. |
665 | for ac_var in exec_prefix prefix | |
c906108c | 666 | do |
b4e70030 | 667 | eval ac_val=$`echo $ac_var` |
bec39cab | 668 | case $ac_val in |
b4e70030 JB |
669 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
670 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
671 | { (exit 1); exit 1; }; };; | |
672 | esac | |
673 | done | |
674 | ||
675 | # Be sure to have absolute paths. | |
676 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
677 | localstatedir libdir includedir oldincludedir infodir mandir | |
678 | do | |
679 | eval ac_val=$`echo $ac_var` | |
680 | case $ac_val in | |
681 | [\\/$]* | ?:[\\/]* ) ;; | |
682 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
683 | { (exit 1); exit 1; }; };; | |
c906108c SS |
684 | esac |
685 | done | |
686 | ||
bec39cab AC |
687 | # There might be people who depend on the old broken behavior: `$host' |
688 | # used to hold the argument of --host etc. | |
689 | # FIXME: To remove some day. | |
690 | build=$build_alias | |
691 | host=$host_alias | |
692 | target=$target_alias | |
693 | ||
694 | # FIXME: To remove some day. | |
695 | if test "x$host_alias" != x; then | |
696 | if test "x$build_alias" = x; then | |
697 | cross_compiling=maybe | |
698 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
699 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
700 | elif test "x$build_alias" != "x$host_alias"; then | |
701 | cross_compiling=yes | |
702 | fi | |
703 | fi | |
c906108c | 704 | |
bec39cab AC |
705 | ac_tool_prefix= |
706 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
707 | ||
708 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 709 | |
c906108c SS |
710 | |
711 | # Find the source files, if location was not specified. | |
712 | if test -z "$srcdir"; then | |
713 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
714 | # Try the directory containing this script, then its parent. |
715 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
716 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
717 | X"$0" : 'X\(//\)[^/]' \| \ | |
718 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
719 | X"$0" : 'X\(/\)' \| \ |
720 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 721 | echo X"$0" | |
b4e70030 JB |
722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
723 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
724 | /^X\(\/\/\)$/{ s//\1/; q; } | |
725 | /^X\(\/\).*/{ s//\1/; q; } | |
726 | s/.*/./; q'` | |
c906108c | 727 | srcdir=$ac_confdir |
b4e70030 | 728 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
729 | srcdir=.. |
730 | fi | |
731 | else | |
732 | ac_srcdir_defaulted=no | |
733 | fi | |
b4e70030 JB |
734 | if test ! -r $srcdir/$ac_unique_file; then |
735 | if test "$ac_srcdir_defaulted" = yes; then | |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
737 | { (exit 1); exit 1; }; } | |
738 | else | |
739 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 740 | { (exit 1); exit 1; }; } |
b4e70030 | 741 | fi |
c906108c | 742 | fi |
b4e70030 JB |
743 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
744 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 745 | { (exit 1); exit 1; }; } |
b4e70030 JB |
746 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
747 | ac_env_build_alias_set=${build_alias+set} | |
748 | ac_env_build_alias_value=$build_alias | |
749 | ac_cv_env_build_alias_set=${build_alias+set} | |
750 | ac_cv_env_build_alias_value=$build_alias | |
751 | ac_env_host_alias_set=${host_alias+set} | |
752 | ac_env_host_alias_value=$host_alias | |
753 | ac_cv_env_host_alias_set=${host_alias+set} | |
754 | ac_cv_env_host_alias_value=$host_alias | |
755 | ac_env_target_alias_set=${target_alias+set} | |
756 | ac_env_target_alias_value=$target_alias | |
757 | ac_cv_env_target_alias_set=${target_alias+set} | |
758 | ac_cv_env_target_alias_value=$target_alias | |
759 | ac_env_CC_set=${CC+set} | |
760 | ac_env_CC_value=$CC | |
761 | ac_cv_env_CC_set=${CC+set} | |
762 | ac_cv_env_CC_value=$CC | |
763 | ac_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_env_CFLAGS_value=$CFLAGS | |
765 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
766 | ac_cv_env_CFLAGS_value=$CFLAGS | |
767 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
770 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
771 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
774 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
775 | ac_env_CPP_set=${CPP+set} | |
776 | ac_env_CPP_value=$CPP | |
777 | ac_cv_env_CPP_set=${CPP+set} | |
778 | ac_cv_env_CPP_value=$CPP | |
c906108c | 779 | |
bec39cab AC |
780 | # |
781 | # Report the --help message. | |
782 | # | |
783 | if test "$ac_init_help" = "long"; then | |
784 | # Omit some internal or obsolete options to make the list less imposing. | |
785 | # This message is too long to be a string in the A/UX 3.1 sh. | |
786 | cat <<_ACEOF | |
787 | \`configure' configures this package to adapt to many kinds of systems. | |
788 | ||
789 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
790 | ||
791 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
792 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
793 | ||
794 | Defaults for the options are specified in brackets. | |
795 | ||
796 | Configuration: | |
797 | -h, --help display this help and exit | |
798 | --help=short display options specific to this package | |
799 | --help=recursive display the short help of all the included packages | |
800 | -V, --version display version information and exit | |
801 | -q, --quiet, --silent do not print \`checking...' messages | |
802 | --cache-file=FILE cache test results in FILE [disabled] | |
803 | -C, --config-cache alias for \`--cache-file=config.cache' | |
804 | -n, --no-create do not create output files | |
805 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
806 | ||
b4e70030 JB |
807 | _ACEOF |
808 | ||
809 | cat <<_ACEOF | |
bec39cab AC |
810 | Installation directories: |
811 | --prefix=PREFIX install architecture-independent files in PREFIX | |
812 | [$ac_default_prefix] | |
813 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
814 | [PREFIX] | |
815 | ||
816 | By default, \`make install' will install all the files in | |
817 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
818 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
819 | for instance \`--prefix=\$HOME'. | |
820 | ||
821 | For better control, use the options below. | |
822 | ||
823 | Fine tuning of the installation directories: | |
824 | --bindir=DIR user executables [EPREFIX/bin] | |
825 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
826 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b4e70030 | 827 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
828 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
829 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
830 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
831 | --libdir=DIR object code libraries [EPREFIX/lib] | |
832 | --includedir=DIR C header files [PREFIX/include] | |
833 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
b4e70030 JB |
834 | --infodir=DIR info documentation [PREFIX/info] |
835 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
836 | _ACEOF |
837 | ||
838 | cat <<\_ACEOF | |
839 | ||
840 | Program names: | |
841 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
842 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
843 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
844 | ||
845 | X features: | |
846 | --x-includes=DIR X include files are in DIR | |
847 | --x-libraries=DIR X library files are in DIR | |
848 | ||
849 | System types: | |
850 | --build=BUILD configure for building on BUILD [guessed] | |
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
852 | --target=TARGET configure for building compilers for TARGET [HOST] | |
853 | _ACEOF | |
854 | fi | |
855 | ||
856 | if test -n "$ac_init_help"; then | |
857 | ||
858 | cat <<\_ACEOF | |
859 | ||
860 | Optional Features: | |
861 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
862 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
863 | --enable-maintainer-mode enable make rules and dependencies not useful |
864 | (and sometimes confusing) to the casual installer | |
e28b3332 DJ |
865 | --disable-dependency-tracking speeds up one-time build |
866 | --enable-dependency-tracking do not reject slow dependency extractors | |
d0c678e6 | 867 | --enable-targets alternative target configurations |
c0993dbe | 868 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
bec39cab AC |
869 | --disable-gdbcli disable command-line interface (CLI) |
870 | --disable-gdbmi disable machine-interface (MI) | |
871 | --enable-tui enable full-screen terminal user interface (TUI) | |
872 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
873 | --enable-profiling enable profiling of GDB | |
3841debe | 874 | --disable-rpath do not hardcode runtime library paths |
094a342e | 875 | --enable-werror treat compile warnings as errors |
bec39cab AC |
876 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
877 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
878 | --enable-sim Link gdb with simulator | |
879 | --enable-multi-ice build the multi-ice-gdb-server | |
880 | ||
881 | Optional Packages: | |
882 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
883 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
884 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
885 | --with-libunwind Use libunwind frame unwinding support | |
c16158bc JM |
886 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
887 | --with-bugurl=URL Direct users to URL to report a bug | |
6a30b0a5 | 888 | --with-system-readline use installed readline library |
5c39566f | 889 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
890 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
891 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
892 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
893 | --without-included-regex don't use included regex; this is the default |
894 | on systems with version 2 of the GNU C library | |
895 | (use with caution on other system) | |
896 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
5062cc19 KS |
897 | --with-tcl directory containing tcl configuration (tclConfig.sh) |
898 | --with-tk directory containing tk configuration (tkConfig.sh) | |
bec39cab AC |
899 | --with-x use the X Window System |
900 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
901 | ||
902 | Some influential environment variables: | |
903 | CC C compiler command | |
904 | CFLAGS C compiler flags | |
905 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
906 | nonstandard directory <lib dir> | |
b4e70030 JB |
907 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
908 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
909 | CPP C preprocessor |
910 | ||
911 | Use these variables to override the choices made by `configure' or to help | |
912 | it to find libraries and programs with nonstandard names/locations. | |
913 | ||
914 | _ACEOF | |
915 | fi | |
916 | ||
917 | if test "$ac_init_help" = "recursive"; then | |
918 | # If there are subdirs, report their specific --help. | |
b4e70030 | 919 | ac_popdir=`pwd` |
bec39cab AC |
920 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
921 | test -d $ac_dir || continue | |
922 | ac_builddir=. | |
923 | ||
b4e70030 | 924 | if test "$ac_dir" != .; then |
bec39cab | 925 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
926 | # A "../" for each directory in $ac_dir_suffix. |
927 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
928 | else | |
929 | ac_dir_suffix= ac_top_builddir= | |
930 | fi | |
bec39cab AC |
931 | |
932 | case $srcdir in | |
b4e70030 | 933 | .) # No --srcdir option. We are building in place. |
bec39cab | 934 | ac_srcdir=. |
b4e70030 JB |
935 | if test -z "$ac_top_builddir"; then |
936 | ac_top_srcdir=. | |
937 | else | |
938 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
939 | fi ;; | |
940 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 941 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
942 | ac_top_srcdir=$srcdir ;; |
943 | *) # Relative path. | |
944 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
945 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
946 | esac | |
947 | ||
948 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
949 | # the directories may not exist. | |
950 | case `pwd` in | |
951 | .) ac_abs_builddir="$ac_dir";; | |
952 | *) | |
953 | case "$ac_dir" in | |
954 | .) ac_abs_builddir=`pwd`;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
956 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
957 | esac;; | |
958 | esac | |
959 | case $ac_abs_builddir in | |
960 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
961 | *) | |
962 | case ${ac_top_builddir}. in | |
963 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
965 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
966 | esac;; | |
967 | esac | |
968 | case $ac_abs_builddir in | |
969 | .) ac_abs_srcdir=$ac_srcdir;; | |
970 | *) | |
971 | case $ac_srcdir in | |
972 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
973 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
974 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
975 | esac;; | |
976 | esac | |
977 | case $ac_abs_builddir in | |
978 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
979 | *) | |
980 | case $ac_top_srcdir in | |
981 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
982 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
983 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
984 | esac;; | |
bec39cab AC |
985 | esac |
986 | ||
b4e70030 JB |
987 | cd $ac_dir |
988 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 989 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 990 | echo |
bec39cab AC |
991 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
992 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 993 | echo |
bec39cab | 994 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
995 | elif test -f $ac_srcdir/configure.ac || |
996 | test -f $ac_srcdir/configure.in; then | |
997 | echo | |
998 | $ac_configure --help | |
3ace7edb | 999 | else |
bec39cab | 1000 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
1001 | fi |
1002 | cd $ac_popdir | |
bec39cab AC |
1003 | done |
1004 | fi | |
1005 | ||
b4e70030 | 1006 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1007 | if $ac_init_version; then |
1008 | cat <<\_ACEOF | |
1009 | ||
b4e70030 | 1010 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1011 | This configure script is free software; the Free Software Foundation |
1012 | gives unlimited permission to copy, distribute and modify it. | |
1013 | _ACEOF | |
b4e70030 | 1014 | exit 0 |
bec39cab | 1015 | fi |
b4e70030 JB |
1016 | exec 5>config.log |
1017 | cat >&5 <<_ACEOF | |
bec39cab AC |
1018 | This file contains any messages produced by compilers while |
1019 | running configure, to aid debugging if configure makes a mistake. | |
1020 | ||
1021 | It was created by $as_me, which was | |
b4e70030 | 1022 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1023 | |
1024 | $ $0 $@ | |
1025 | ||
1026 | _ACEOF | |
1027 | { | |
1028 | cat <<_ASUNAME | |
1029 | ## --------- ## | |
1030 | ## Platform. ## | |
1031 | ## --------- ## | |
1032 | ||
1033 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1034 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1035 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1036 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1037 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1038 | ||
1039 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1040 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1041 | ||
1042 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1043 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1044 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1045 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1046 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1047 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1048 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1049 | ||
1050 | _ASUNAME | |
1051 | ||
1052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1053 | for as_dir in $PATH | |
1054 | do | |
1055 | IFS=$as_save_IFS | |
1056 | test -z "$as_dir" && as_dir=. | |
1057 | echo "PATH: $as_dir" | |
1058 | done | |
1059 | ||
1060 | } >&5 | |
1061 | ||
1062 | cat >&5 <<_ACEOF | |
1063 | ||
1064 | ||
1065 | ## ----------- ## | |
1066 | ## Core tests. ## | |
1067 | ## ----------- ## | |
1068 | ||
1069 | _ACEOF | |
1070 | ||
1071 | ||
1072 | # Keep a trace of the command line. | |
1073 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1074 | # Strip out --silent because we don't want to record it for future runs. | |
1075 | # Also quote any args containing shell meta-characters. | |
1076 | # Make two passes to allow for proper duplicate-argument suppression. | |
1077 | ac_configure_args= | |
1078 | ac_configure_args0= | |
1079 | ac_configure_args1= | |
1080 | ac_sep= | |
1081 | ac_must_keep_next=false | |
1082 | for ac_pass in 1 2 | |
1083 | do | |
1084 | for ac_arg | |
1085 | do | |
1086 | case $ac_arg in | |
1087 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1089 | | -silent | --silent | --silen | --sile | --sil) | |
1090 | continue ;; | |
b4e70030 | 1091 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1092 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1093 | esac | |
1094 | case $ac_pass in | |
1095 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1096 | 2) | |
1097 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1098 | if test $ac_must_keep_next = true; then | |
1099 | ac_must_keep_next=false # Got value, back to normal. | |
1100 | else | |
1101 | case $ac_arg in | |
1102 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1103 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1104 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1105 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1106 | case "$ac_configure_args0 " in | |
1107 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1108 | esac | |
1109 | ;; | |
1110 | -* ) ac_must_keep_next=true ;; | |
1111 | esac | |
1112 | fi | |
1113 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1114 | # Get rid of the leading space. | |
1115 | ac_sep=" " | |
1116 | ;; | |
1117 | esac | |
1118 | done | |
1119 | done | |
1120 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1121 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1122 | ||
1123 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1124 | # config.log. We remove comments because anyway the quotes in there | |
1125 | # would cause problems or look ugly. | |
b4e70030 JB |
1126 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1127 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1128 | trap 'exit_status=$? |
1129 | # Save into config.log some information that might help in debugging. | |
1130 | { | |
1131 | echo | |
1132 | ||
1133 | cat <<\_ASBOX | |
1134 | ## ---------------- ## | |
1135 | ## Cache variables. ## | |
1136 | ## ---------------- ## | |
1137 | _ASBOX | |
1138 | echo | |
1139 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1140 | { |
bec39cab | 1141 | (set) 2>&1 | |
b4e70030 JB |
1142 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1143 | *ac_space=\ *) | |
bec39cab | 1144 | sed -n \ |
b4e70030 JB |
1145 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1146 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1147 | ;; | |
bec39cab | 1148 | *) |
b4e70030 JB |
1149 | sed -n \ |
1150 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1151 | ;; |
b4e70030 JB |
1152 | esac; |
1153 | } | |
bec39cab AC |
1154 | echo |
1155 | ||
1156 | cat <<\_ASBOX | |
1157 | ## ----------------- ## | |
1158 | ## Output variables. ## | |
1159 | ## ----------------- ## | |
1160 | _ASBOX | |
1161 | echo | |
1162 | for ac_var in $ac_subst_vars | |
1163 | do | |
b4e70030 JB |
1164 | eval ac_val=$`echo $ac_var` |
1165 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1166 | done | sort |
1167 | echo | |
1168 | ||
1169 | if test -n "$ac_subst_files"; then | |
1170 | cat <<\_ASBOX | |
b4e70030 JB |
1171 | ## ------------- ## |
1172 | ## Output files. ## | |
1173 | ## ------------- ## | |
bec39cab AC |
1174 | _ASBOX |
1175 | echo | |
1176 | for ac_var in $ac_subst_files | |
1177 | do | |
b4e70030 JB |
1178 | eval ac_val=$`echo $ac_var` |
1179 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1180 | done | sort |
1181 | echo | |
1182 | fi | |
1183 | ||
1184 | if test -s confdefs.h; then | |
1185 | cat <<\_ASBOX | |
1186 | ## ----------- ## | |
1187 | ## confdefs.h. ## | |
1188 | ## ----------- ## | |
1189 | _ASBOX | |
1190 | echo | |
b4e70030 | 1191 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1192 | echo |
3ace7edb | 1193 | fi |
bec39cab AC |
1194 | test "$ac_signal" != 0 && |
1195 | echo "$as_me: caught signal $ac_signal" | |
1196 | echo "$as_me: exit $exit_status" | |
1197 | } >&5 | |
b4e70030 JB |
1198 | rm -f core *.core && |
1199 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1200 | exit $exit_status |
b4e70030 | 1201 | ' 0 |
bec39cab AC |
1202 | for ac_signal in 1 2 13 15; do |
1203 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1204 | done | |
1205 | ac_signal=0 | |
1206 | ||
1207 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1208 | rm -rf conftest* confdefs.h |
1209 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1210 | echo >confdefs.h | |
bec39cab AC |
1211 | |
1212 | # Predefined preprocessor variables. | |
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
1224 | cat >>confdefs.h <<_ACEOF | |
1225 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1226 | _ACEOF | |
1227 | ||
1228 | ||
1229 | cat >>confdefs.h <<_ACEOF | |
1230 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1231 | _ACEOF | |
1232 | ||
1233 | ||
1234 | cat >>confdefs.h <<_ACEOF | |
1235 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1236 | _ACEOF | |
1237 | ||
1238 | ||
1239 | # Let the site file select an alternate cache file if it wants to. | |
1240 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1241 | if test -z "$CONFIG_SITE"; then |
1242 | if test "x$prefix" != xNONE; then | |
1243 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1244 | else | |
1245 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1246 | fi | |
c906108c | 1247 | fi |
b4e70030 | 1248 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1249 | if test -r "$ac_site_file"; then |
bec39cab AC |
1250 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1251 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1252 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1253 | . "$ac_site_file" |
1254 | fi | |
1255 | done | |
1256 | ||
1257 | if test -r "$cache_file"; then | |
bec39cab AC |
1258 | # Some versions of bash will fail to source /dev/null (special |
1259 | # files actually), so we avoid doing that. | |
1260 | if test -f "$cache_file"; then | |
1261 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1262 | echo "$as_me: loading cache $cache_file" >&6;} | |
1263 | case $cache_file in | |
1264 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1265 | *) . ./$cache_file;; | |
1266 | esac | |
1267 | fi | |
c906108c | 1268 | else |
bec39cab AC |
1269 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1270 | echo "$as_me: creating cache $cache_file" >&6;} | |
1271 | >$cache_file | |
1272 | fi | |
1273 | ||
1274 | # Check that the precious variables saved in the cache have kept the same | |
1275 | # value. | |
1276 | ac_cache_corrupted=false | |
b4e70030 JB |
1277 | for ac_var in `(set) 2>&1 | |
1278 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1279 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1280 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1281 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1282 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1283 | case $ac_old_set,$ac_new_set in |
1284 | set,) | |
1285 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1286 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1287 | ac_cache_corrupted=: ;; | |
1288 | ,set) | |
1289 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1290 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1291 | ac_cache_corrupted=: ;; | |
1292 | ,);; | |
1293 | *) | |
1294 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
fdc59709 PB |
1295 | # differences in whitespace do not lead to failure. |
1296 | ac_old_val_w=`echo x $ac_old_val` | |
1297 | ac_new_val_w=`echo x $ac_new_val` | |
1298 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1299 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
bec39cab | 1300 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
fdc59709 PB |
1301 | ac_cache_corrupted=: |
1302 | else | |
1303 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1304 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1305 | eval $ac_var=\$ac_old_val | |
1306 | fi | |
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;} | |
bec39cab AC |
1311 | fi;; |
1312 | esac | |
1313 | # Pass precious variables to config.status. | |
1314 | if test "$ac_new_set" = set; then | |
1315 | case $ac_new_val in | |
b4e70030 JB |
1316 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1317 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1318 | *) ac_arg=$ac_var=$ac_new_val ;; |
1319 | esac | |
1320 | case " $ac_configure_args " in | |
1321 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1322 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1323 | esac | |
1324 | fi | |
1325 | done | |
1326 | if $ac_cache_corrupted; then | |
d5af19ba DJ |
1327 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1328 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1329 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1330 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1331 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1332 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1333 | { (exit 1); exit 1; }; } | |
c906108c SS |
1334 | fi |
1335 | ||
b4e70030 JB |
1336 | ac_ext=c |
1337 | ac_cpp='$CPP $CPPFLAGS' | |
1338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1341 | |
1342 | ||
783e057b DJ |
1343 | gl_header_list="$gl_header_list stdint.h" |
1344 | gl_header_list="$gl_header_list wchar.h" | |
1345 | gl_header_list="$gl_header_list string.h" | |
bec39cab AC |
1346 | |
1347 | ||
1348 | ||
1349 | ||
1350 | ||
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
bec39cab | 1362 | |
d5af19ba DJ |
1363 | |
1364 | ||
1365 | ||
b4e70030 JB |
1366 | ac_config_headers="$ac_config_headers config.h:config.in" |
1367 | ||
1368 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1369 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1370 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1371 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1372 | enableval="$enable_maintainer_mode" |
1373 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1374 | else |
1375 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1376 | fi; |
1377 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1378 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1379 | |
413ccac7 AC |
1380 | |
1381 | if test $USE_MAINTAINER_MODE = yes; then | |
1382 | MAINTAINER_MODE_TRUE= | |
1383 | MAINTAINER_MODE_FALSE='#' | |
1384 | else | |
1385 | MAINTAINER_MODE_TRUE='#' | |
1386 | MAINTAINER_MODE_FALSE= | |
1387 | fi | |
85981d60 | 1388 | |
413ccac7 | 1389 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1390 | |
c906108c | 1391 | |
bec39cab AC |
1392 | |
1393 | ac_ext=c | |
1394 | ac_cpp='$CPP $CPPFLAGS' | |
1395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1398 | if test -n "$ac_tool_prefix"; then | |
1399 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1400 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1403 | if test "${ac_cv_prog_CC+set}" = set; then |
1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1405 | else | |
1406 | if test -n "$CC"; then | |
1407 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1408 | else | |
1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1410 | for as_dir in $PATH | |
1411 | do | |
1412 | IFS=$as_save_IFS | |
1413 | test -z "$as_dir" && as_dir=. | |
1414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1416 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1418 | break 2 | |
1419 | fi | |
1420 | done | |
1421 | done | |
1422 | ||
1423 | fi | |
1424 | fi | |
1425 | CC=$ac_cv_prog_CC | |
1426 | if test -n "$CC"; then | |
b4e70030 JB |
1427 | echo "$as_me:$LINENO: result: $CC" >&5 |
1428 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1429 | else |
b4e70030 JB |
1430 | echo "$as_me:$LINENO: result: no" >&5 |
1431 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1432 | fi |
1433 | ||
1434 | fi | |
1435 | if test -z "$ac_cv_prog_CC"; then | |
1436 | ac_ct_CC=$CC | |
1437 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1438 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1441 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1443 | else | |
1444 | if test -n "$ac_ct_CC"; then | |
1445 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1446 | else | |
1447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1448 | for as_dir in $PATH | |
1449 | do | |
1450 | IFS=$as_save_IFS | |
1451 | test -z "$as_dir" && as_dir=. | |
1452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1454 | ac_cv_prog_ac_ct_CC="gcc" |
1455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1456 | break 2 | |
1457 | fi | |
1458 | done | |
1459 | done | |
1460 | ||
1461 | fi | |
1462 | fi | |
1463 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1464 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1465 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1466 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1467 | else |
b4e70030 JB |
1468 | echo "$as_me:$LINENO: result: no" >&5 |
1469 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1470 | fi |
1471 | ||
b4e70030 | 1472 | CC=$ac_ct_CC |
bec39cab AC |
1473 | else |
1474 | CC="$ac_cv_prog_CC" | |
1475 | fi | |
1476 | ||
1477 | if test -z "$CC"; then | |
b4e70030 JB |
1478 | if test -n "$ac_tool_prefix"; then |
1479 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1480 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1483 | if test "${ac_cv_prog_CC+set}" = set; then |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1485 | else |
1486 | if test -n "$CC"; then | |
1487 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1488 | else | |
bec39cab AC |
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1490 | for as_dir in $PATH | |
1491 | do | |
1492 | IFS=$as_save_IFS | |
1493 | test -z "$as_dir" && as_dir=. | |
1494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1496 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1498 | break 2 | |
1499 | fi | |
1500 | done | |
1501 | done | |
1502 | ||
c906108c SS |
1503 | fi |
1504 | fi | |
bec39cab | 1505 | CC=$ac_cv_prog_CC |
c906108c | 1506 | if test -n "$CC"; then |
b4e70030 JB |
1507 | echo "$as_me:$LINENO: result: $CC" >&5 |
1508 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1509 | else |
b4e70030 JB |
1510 | echo "$as_me:$LINENO: result: no" >&5 |
1511 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1512 | fi |
1513 | ||
b4e70030 JB |
1514 | fi |
1515 | if test -z "$ac_cv_prog_CC"; then | |
1516 | ac_ct_CC=$CC | |
1517 | # Extract the first word of "cc", so it can be a program name with args. | |
1518 | set dummy cc; ac_word=$2 | |
1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | if test -n "$ac_ct_CC"; then | |
1525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1526 | else | |
1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1528 | for as_dir in $PATH | |
1529 | do | |
1530 | IFS=$as_save_IFS | |
1531 | test -z "$as_dir" && as_dir=. | |
1532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1534 | ac_cv_prog_ac_ct_CC="cc" | |
1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1536 | break 2 | |
4e8d927d | 1537 | fi |
b4e70030 JB |
1538 | done |
1539 | done | |
1540 | ||
1541 | fi | |
1542 | fi | |
1543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1544 | if test -n "$ac_ct_CC"; then | |
1545 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1546 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1547 | else | |
1548 | echo "$as_me:$LINENO: result: no" >&5 | |
1549 | echo "${ECHO_T}no" >&6 | |
1550 | fi | |
1551 | ||
1552 | CC=$ac_ct_CC | |
1553 | else | |
1554 | CC="$ac_cv_prog_CC" | |
1555 | fi | |
1556 | ||
bec39cab | 1557 | fi |
c906108c SS |
1558 | if test -z "$CC"; then |
1559 | # Extract the first word of "cc", so it can be a program name with args. | |
1560 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1563 | if test "${ac_cv_prog_CC+set}" = set; then |
1564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1565 | else |
1566 | if test -n "$CC"; then | |
1567 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1568 | else | |
c906108c | 1569 | ac_prog_rejected=no |
bec39cab AC |
1570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1571 | for as_dir in $PATH | |
1572 | do | |
1573 | IFS=$as_save_IFS | |
1574 | test -z "$as_dir" && as_dir=. | |
1575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1577 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1578 | ac_prog_rejected=yes | |
1579 | continue | |
1580 | fi | |
1581 | ac_cv_prog_CC="cc" | |
1582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1583 | break 2 | |
1584 | fi | |
1585 | done | |
1586 | done | |
1587 | ||
c906108c SS |
1588 | if test $ac_prog_rejected = yes; then |
1589 | # We found a bogon in the path, so make sure we never use it. | |
1590 | set dummy $ac_cv_prog_CC | |
1591 | shift | |
bec39cab | 1592 | if test $# != 0; then |
c906108c SS |
1593 | # We chose a different compiler from the bogus one. |
1594 | # However, it has the same basename, so the bogon will be chosen | |
1595 | # first if we set CC to just the basename; use the full file name. | |
1596 | shift | |
bec39cab | 1597 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1598 | fi |
1599 | fi | |
1600 | fi | |
1601 | fi | |
bec39cab | 1602 | CC=$ac_cv_prog_CC |
c906108c | 1603 | if test -n "$CC"; then |
b4e70030 JB |
1604 | echo "$as_me:$LINENO: result: $CC" >&5 |
1605 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1606 | else |
b4e70030 JB |
1607 | echo "$as_me:$LINENO: result: no" >&5 |
1608 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1609 | fi |
1610 | ||
bec39cab AC |
1611 | fi |
1612 | if test -z "$CC"; then | |
1613 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1614 | for ac_prog in cl |
bec39cab AC |
1615 | do |
1616 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1617 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1620 | if test "${ac_cv_prog_CC+set}" = set; then |
1621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1622 | else |
1623 | if test -n "$CC"; then | |
1624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1625 | else | |
bec39cab AC |
1626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1627 | for as_dir in $PATH | |
1628 | do | |
1629 | IFS=$as_save_IFS | |
1630 | test -z "$as_dir" && as_dir=. | |
1631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1633 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1635 | break 2 | |
1636 | fi | |
1637 | done | |
1638 | done | |
1639 | ||
c906108c SS |
1640 | fi |
1641 | fi | |
bec39cab | 1642 | CC=$ac_cv_prog_CC |
c906108c | 1643 | if test -n "$CC"; then |
b4e70030 JB |
1644 | echo "$as_me:$LINENO: result: $CC" >&5 |
1645 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1646 | else |
b4e70030 JB |
1647 | echo "$as_me:$LINENO: result: no" >&5 |
1648 | echo "${ECHO_T}no" >&6 | |
c906108c | 1649 | fi |
bec39cab AC |
1650 | |
1651 | test -n "$CC" && break | |
1652 | done | |
1653 | fi | |
1654 | if test -z "$CC"; then | |
1655 | ac_ct_CC=$CC | |
b4e70030 | 1656 | for ac_prog in cl |
bec39cab AC |
1657 | do |
1658 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1659 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1662 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1664 | else | |
1665 | if test -n "$ac_ct_CC"; then | |
1666 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1667 | else | |
1668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1669 | for as_dir in $PATH | |
1670 | do | |
1671 | IFS=$as_save_IFS | |
1672 | test -z "$as_dir" && as_dir=. | |
1673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1675 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1677 | break 2 | |
c906108c | 1678 | fi |
bec39cab AC |
1679 | done |
1680 | done | |
1681 | ||
1682 | fi | |
1683 | fi | |
1684 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1685 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1686 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1687 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1688 | else |
b4e70030 JB |
1689 | echo "$as_me:$LINENO: result: no" >&5 |
1690 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1691 | fi |
1692 | ||
bec39cab AC |
1693 | test -n "$ac_ct_CC" && break |
1694 | done | |
c906108c | 1695 | |
b4e70030 | 1696 | CC=$ac_ct_CC |
bec39cab AC |
1697 | fi |
1698 | ||
1699 | fi | |
1700 | ||
1701 | ||
d5af19ba DJ |
1702 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1703 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1704 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
bec39cab AC |
1705 | See \`config.log' for more details." >&5 |
1706 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1707 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1708 | { (exit 1); exit 1; }; }; } |
bec39cab AC |
1709 | |
1710 | # Provide some information about the compiler. | |
b4e70030 JB |
1711 | echo "$as_me:$LINENO:" \ |
1712 | "checking for C compiler version" >&5 | |
bec39cab | 1713 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1714 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1715 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1716 | ac_status=$? |
1717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1718 | (exit $ac_status); } | |
b4e70030 JB |
1719 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1720 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1721 | ac_status=$? |
1722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1723 | (exit $ac_status); } | |
b4e70030 JB |
1724 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1725 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1726 | ac_status=$? |
1727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1728 | (exit $ac_status); } | |
1729 | ||
1730 | cat >conftest.$ac_ext <<_ACEOF | |
1731 | /* confdefs.h. */ | |
1732 | _ACEOF | |
1733 | cat confdefs.h >>conftest.$ac_ext | |
1734 | cat >>conftest.$ac_ext <<_ACEOF | |
1735 | /* end confdefs.h. */ | |
1736 | ||
1737 | int | |
1738 | main () | |
1739 | { | |
1740 | ||
1741 | ; | |
1742 | return 0; | |
1743 | } | |
1744 | _ACEOF | |
1745 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1746 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1747 | # Try to create an executable without -o first, disregard a.out. |
1748 | # It will help us diagnose broken compilers, and finding out an intuition | |
1749 | # of exeext. | |
b4e70030 JB |
1750 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1751 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1752 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1753 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1754 | (eval $ac_link_default) 2>&5 | |
1755 | ac_status=$? | |
1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1757 | (exit $ac_status); }; then | |
b4e70030 JB |
1758 | # Find the output, starting from the most likely. This scheme is |
1759 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1760 | # resort. | |
1761 | ||
1762 | # Be careful to initialize this variable, since it used to be cached. | |
1763 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1764 | ac_cv_exeext= | |
1765 | # b.out is created by i960 compilers. | |
1766 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1767 | do |
1768 | test -f "$ac_file" || continue | |
1769 | case $ac_file in | |
b4e70030 JB |
1770 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1771 | ;; | |
1772 | conftest.$ac_ext ) | |
1773 | # This is the source file. | |
1774 | ;; | |
1775 | [ab].out ) | |
1776 | # We found the default executable, but exeext='' is most | |
1777 | # certainly right. | |
1778 | break;; | |
1779 | *.* ) | |
1780 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1781 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1782 | # but it would be cool to find out if it's true. Does anybody | |
1783 | # maintain Libtool? --akim. | |
1784 | export ac_cv_exeext | |
1785 | break;; | |
1786 | * ) | |
1787 | break;; | |
bec39cab AC |
1788 | esac |
1789 | done | |
1790 | else | |
1791 | echo "$as_me: failed program was:" >&5 | |
1792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1793 | ||
d5af19ba DJ |
1794 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1795 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1796 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1797 | See \`config.log' for more details." >&5 | |
1798 | echo "$as_me: error: C compiler cannot create executables | |
1799 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1800 | { (exit 77); exit 77; }; }; } |
bec39cab AC |
1801 | fi |
1802 | ||
b4e70030 JB |
1803 | ac_exeext=$ac_cv_exeext |
1804 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1805 | echo "${ECHO_T}$ac_file" >&6 | |
1806 | ||
1807 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1808 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1809 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1810 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1811 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1812 | # If not cross compiling, check that we can run a simple program. | |
1813 | if test "$cross_compiling" != yes; then | |
1814 | if { ac_try='./$ac_file' | |
1815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1816 | (eval $ac_try) 2>&5 | |
1817 | ac_status=$? | |
1818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1819 | (exit $ac_status); }; }; then | |
1820 | cross_compiling=no | |
c906108c | 1821 | else |
bec39cab AC |
1822 | if test "$cross_compiling" = maybe; then |
1823 | cross_compiling=yes | |
1824 | else | |
d5af19ba DJ |
1825 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1826 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1827 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
bec39cab AC |
1828 | If you meant to cross compile, use \`--host'. |
1829 | See \`config.log' for more details." >&5 | |
1830 | echo "$as_me: error: cannot run C compiled programs. | |
1831 | If you meant to cross compile, use \`--host'. | |
1832 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1833 | { (exit 1); exit 1; }; }; } |
bec39cab | 1834 | fi |
c906108c | 1835 | fi |
bec39cab | 1836 | fi |
b4e70030 JB |
1837 | echo "$as_me:$LINENO: result: yes" >&5 |
1838 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1839 | |
b4e70030 JB |
1840 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1841 | ac_clean_files=$ac_clean_files_save | |
1842 | # Check the compiler produces executables we can run. If not, either | |
1843 | # the compiler is broken, or we cross compile. | |
1844 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1845 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1846 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1847 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1848 | |
b4e70030 JB |
1849 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1850 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1852 | (eval $ac_link) 2>&5 |
1853 | ac_status=$? | |
1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1855 | (exit $ac_status); }; then | |
b4e70030 JB |
1856 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1857 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1858 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1859 | # `rm'. | |
1860 | for ac_file in conftest.exe conftest conftest.*; do | |
1861 | test -f "$ac_file" || continue | |
1862 | case $ac_file in | |
1863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1864 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1865 | export ac_cv_exeext | |
1866 | break;; | |
1867 | * ) break;; | |
1868 | esac | |
1869 | done | |
c906108c | 1870 | else |
d5af19ba DJ |
1871 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1872 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1873 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
bec39cab AC |
1874 | See \`config.log' for more details." >&5 |
1875 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1876 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1877 | { (exit 1); exit 1; }; }; } |
c906108c | 1878 | fi |
c906108c | 1879 | |
b4e70030 JB |
1880 | rm -f conftest$ac_cv_exeext |
1881 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1882 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1883 | |
b4e70030 | 1884 | rm -f conftest.$ac_ext |
bec39cab AC |
1885 | EXEEXT=$ac_cv_exeext |
1886 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1887 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1888 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1889 | if test "${ac_cv_objext+set}" = set; then |
1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1891 | else | |
b4e70030 JB |
1892 | cat >conftest.$ac_ext <<_ACEOF |
1893 | /* confdefs.h. */ | |
1894 | _ACEOF | |
1895 | cat confdefs.h >>conftest.$ac_ext | |
1896 | cat >>conftest.$ac_ext <<_ACEOF | |
1897 | /* end confdefs.h. */ | |
1898 | ||
1899 | int | |
1900 | main () | |
1901 | { | |
1902 | ||
1903 | ; | |
1904 | return 0; | |
1905 | } | |
1906 | _ACEOF | |
1907 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1909 | (eval $ac_compile) 2>&5 | |
1910 | ac_status=$? | |
1911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1912 | (exit $ac_status); }; then | |
b4e70030 | 1913 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1914 | case $ac_file in |
b4e70030 | 1915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1916 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1917 | break;; | |
1918 | esac | |
1919 | done | |
c906108c | 1920 | else |
bec39cab AC |
1921 | echo "$as_me: failed program was:" >&5 |
1922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1923 | ||
d5af19ba DJ |
1924 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1925 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1926 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1927 | See \`config.log' for more details." >&5 | |
1928 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1929 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1930 | { (exit 1); exit 1; }; }; } |
c906108c SS |
1931 | fi |
1932 | ||
b4e70030 | 1933 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1934 | fi |
b4e70030 JB |
1935 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1936 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1937 | OBJEXT=$ac_cv_objext |
1938 | ac_objext=$OBJEXT | |
b4e70030 JB |
1939 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1940 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1941 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1943 | else |
bec39cab AC |
1944 | cat >conftest.$ac_ext <<_ACEOF |
1945 | /* confdefs.h. */ | |
1946 | _ACEOF | |
1947 | cat confdefs.h >>conftest.$ac_ext | |
1948 | cat >>conftest.$ac_ext <<_ACEOF | |
1949 | /* end confdefs.h. */ | |
1950 | ||
1951 | int | |
1952 | main () | |
1953 | { | |
1954 | #ifndef __GNUC__ | |
1955 | choke me | |
1956 | #endif | |
1957 | ||
1958 | ; | |
1959 | return 0; | |
1960 | } | |
1961 | _ACEOF | |
1962 | rm -f conftest.$ac_objext | |
1963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1964 | (eval $ac_compile) 2>conftest.er1 | |
1965 | ac_status=$? | |
1966 | grep -v '^ *+' conftest.er1 >conftest.err | |
1967 | rm -f conftest.er1 | |
1968 | cat conftest.err >&5 | |
1969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1970 | (exit $ac_status); } && | |
b4e70030 JB |
1971 | { ac_try='test -z "$ac_c_werror_flag" |
1972 | || test ! -s conftest.err' | |
bec39cab AC |
1973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1974 | (eval $ac_try) 2>&5 | |
1975 | ac_status=$? | |
1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1977 | (exit $ac_status); }; } && | |
1978 | { ac_try='test -s conftest.$ac_objext' | |
1979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1980 | (eval $ac_try) 2>&5 | |
1981 | ac_status=$? | |
1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1983 | (exit $ac_status); }; }; then | |
1984 | ac_compiler_gnu=yes | |
1985 | else | |
1986 | echo "$as_me: failed program was:" >&5 | |
1987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1988 | ||
b4e70030 | 1989 | ac_compiler_gnu=no |
bec39cab AC |
1990 | fi |
1991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1992 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1993 | ||
1994 | fi | |
b4e70030 JB |
1995 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1996 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1997 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1998 | ac_test_CFLAGS=${CFLAGS+set} | |
1999 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
2000 | CFLAGS="-g" |
2001 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2002 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
2003 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2005 | else | |
b4e70030 | 2006 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
2007 | /* confdefs.h. */ |
2008 | _ACEOF | |
2009 | cat confdefs.h >>conftest.$ac_ext | |
2010 | cat >>conftest.$ac_ext <<_ACEOF | |
2011 | /* end confdefs.h. */ | |
2012 | ||
2013 | int | |
2014 | main () | |
2015 | { | |
2016 | ||
2017 | ; | |
2018 | return 0; | |
2019 | } | |
2020 | _ACEOF | |
2021 | rm -f conftest.$ac_objext | |
2022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2023 | (eval $ac_compile) 2>conftest.er1 | |
2024 | ac_status=$? | |
2025 | grep -v '^ *+' conftest.er1 >conftest.err | |
2026 | rm -f conftest.er1 | |
2027 | cat conftest.err >&5 | |
2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2029 | (exit $ac_status); } && | |
b4e70030 JB |
2030 | { ac_try='test -z "$ac_c_werror_flag" |
2031 | || test ! -s conftest.err' | |
bec39cab AC |
2032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2033 | (eval $ac_try) 2>&5 | |
2034 | ac_status=$? | |
2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2036 | (exit $ac_status); }; } && | |
2037 | { ac_try='test -s conftest.$ac_objext' | |
2038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2039 | (eval $ac_try) 2>&5 | |
2040 | ac_status=$? | |
2041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2042 | (exit $ac_status); }; }; then | |
c906108c SS |
2043 | ac_cv_prog_cc_g=yes |
2044 | else | |
bec39cab AC |
2045 | echo "$as_me: failed program was:" >&5 |
2046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2047 | |
b4e70030 | 2048 | ac_cv_prog_cc_g=no |
4e8d927d | 2049 | fi |
bec39cab AC |
2050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2051 | fi | |
b4e70030 JB |
2052 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2053 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2054 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2055 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2056 | elif test $ac_cv_prog_cc_g = yes; then |
2057 | if test "$GCC" = yes; then | |
2058 | CFLAGS="-g -O2" | |
2059 | else | |
2060 | CFLAGS="-g" | |
2061 | fi | |
2062 | else | |
2063 | if test "$GCC" = yes; then | |
2064 | CFLAGS="-O2" | |
2065 | else | |
2066 | CFLAGS= | |
2067 | fi | |
2068 | fi | |
b4e70030 JB |
2069 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2070 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2071 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2073 | else | |
b4e70030 | 2074 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2075 | ac_save_CC=$CC |
2076 | cat >conftest.$ac_ext <<_ACEOF | |
2077 | /* confdefs.h. */ | |
2078 | _ACEOF | |
2079 | cat confdefs.h >>conftest.$ac_ext | |
2080 | cat >>conftest.$ac_ext <<_ACEOF | |
2081 | /* end confdefs.h. */ | |
c906108c SS |
2082 | #include <stdarg.h> |
2083 | #include <stdio.h> | |
2084 | #include <sys/types.h> | |
2085 | #include <sys/stat.h> | |
2086 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2087 | struct buf { int x; }; | |
2088 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2089 | static char *e (p, i) | |
2090 | char **p; | |
2091 | int i; | |
2092 | { | |
2093 | return p[i]; | |
2094 | } | |
2095 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2096 | { | |
2097 | char *s; | |
2098 | va_list v; | |
2099 | va_start (v,p); | |
2100 | s = g (p, va_arg (v,int)); | |
2101 | va_end (v); | |
2102 | return s; | |
2103 | } | |
bec39cab AC |
2104 | |
2105 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2106 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2107 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2108 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2109 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2110 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2111 | that's true only with -std1. */ |
bec39cab AC |
2112 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2113 | ||
c906108c SS |
2114 | int test (int i, double x); |
2115 | struct s1 {int (*f) (int a);}; | |
2116 | struct s2 {int (*f) (double a);}; | |
2117 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2118 | int argc; | |
2119 | char **argv; | |
bec39cab AC |
2120 | int |
2121 | main () | |
2122 | { | |
c906108c | 2123 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2124 | ; |
2125 | return 0; | |
2126 | } | |
2127 | _ACEOF | |
b4e70030 JB |
2128 | # Don't try gcc -ansi; that turns off useful extensions and |
2129 | # breaks some systems' header files. | |
2130 | # AIX -qlanglvl=ansi | |
2131 | # Ultrix and OSF/1 -std1 | |
2132 | # HP-UX 10.20 and later -Ae | |
2133 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2134 | # SVR4 -Xc -D__EXTENSIONS__ | |
2135 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2136 | do |
2137 | CC="$ac_save_CC $ac_arg" | |
2138 | rm -f conftest.$ac_objext | |
2139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2140 | (eval $ac_compile) 2>conftest.er1 | |
2141 | ac_status=$? | |
2142 | grep -v '^ *+' conftest.er1 >conftest.err | |
2143 | rm -f conftest.er1 | |
2144 | cat conftest.err >&5 | |
2145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2146 | (exit $ac_status); } && | |
b4e70030 JB |
2147 | { ac_try='test -z "$ac_c_werror_flag" |
2148 | || test ! -s conftest.err' | |
bec39cab AC |
2149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2150 | (eval $ac_try) 2>&5 | |
2151 | ac_status=$? | |
2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2153 | (exit $ac_status); }; } && | |
2154 | { ac_try='test -s conftest.$ac_objext' | |
2155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2156 | (eval $ac_try) 2>&5 | |
2157 | ac_status=$? | |
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2159 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2160 | ac_cv_prog_cc_stdc=$ac_arg |
2161 | break | |
c906108c | 2162 | else |
bec39cab AC |
2163 | echo "$as_me: failed program was:" >&5 |
2164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2165 | ||
c906108c | 2166 | fi |
bec39cab | 2167 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2168 | done |
b4e70030 | 2169 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2170 | CC=$ac_save_CC |
c906108c SS |
2171 | |
2172 | fi | |
b4e70030 JB |
2173 | |
2174 | case "x$ac_cv_prog_cc_stdc" in | |
2175 | x|xno) | |
2176 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2177 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2178 | *) |
b4e70030 JB |
2179 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2180 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2181 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2182 | esac |
2183 | ||
b4e70030 JB |
2184 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2185 | # in C++ we need to declare it. In case someone uses the same compiler | |
2186 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2187 | # the declaration of exit, since it's the most demanding environment. | |
2188 | cat >conftest.$ac_ext <<_ACEOF | |
2189 | #ifndef __cplusplus | |
2190 | choke me | |
2191 | #endif | |
2192 | _ACEOF | |
2193 | rm -f conftest.$ac_objext | |
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2195 | (eval $ac_compile) 2>conftest.er1 | |
2196 | ac_status=$? | |
2197 | grep -v '^ *+' conftest.er1 >conftest.err | |
2198 | rm -f conftest.er1 | |
2199 | cat conftest.err >&5 | |
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2201 | (exit $ac_status); } && | |
2202 | { ac_try='test -z "$ac_c_werror_flag" | |
2203 | || test ! -s conftest.err' | |
2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2205 | (eval $ac_try) 2>&5 | |
2206 | ac_status=$? | |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2208 | (exit $ac_status); }; } && | |
2209 | { ac_try='test -s conftest.$ac_objext' | |
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2211 | (eval $ac_try) 2>&5 | |
2212 | ac_status=$? | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); }; }; then | |
2215 | for ac_declaration in \ | |
2216 | '' \ | |
2217 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2218 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2219 | 'extern "C" void exit (int) throw ();' \ | |
2220 | 'extern "C" void exit (int);' \ | |
2221 | 'void exit (int);' | |
2222 | do | |
2223 | cat >conftest.$ac_ext <<_ACEOF | |
2224 | /* confdefs.h. */ | |
2225 | _ACEOF | |
2226 | cat confdefs.h >>conftest.$ac_ext | |
2227 | cat >>conftest.$ac_ext <<_ACEOF | |
2228 | /* end confdefs.h. */ | |
2229 | $ac_declaration | |
2230 | #include <stdlib.h> | |
2231 | int | |
2232 | main () | |
2233 | { | |
2234 | exit (42); | |
2235 | ; | |
2236 | return 0; | |
2237 | } | |
2238 | _ACEOF | |
2239 | rm -f conftest.$ac_objext | |
2240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2241 | (eval $ac_compile) 2>conftest.er1 | |
2242 | ac_status=$? | |
2243 | grep -v '^ *+' conftest.er1 >conftest.err | |
2244 | rm -f conftest.er1 | |
2245 | cat conftest.err >&5 | |
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2247 | (exit $ac_status); } && | |
2248 | { ac_try='test -z "$ac_c_werror_flag" | |
2249 | || test ! -s conftest.err' | |
2250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2251 | (eval $ac_try) 2>&5 | |
2252 | ac_status=$? | |
2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2254 | (exit $ac_status); }; } && | |
2255 | { ac_try='test -s conftest.$ac_objext' | |
2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2257 | (eval $ac_try) 2>&5 | |
2258 | ac_status=$? | |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2260 | (exit $ac_status); }; }; then | |
2261 | : | |
2262 | else | |
2263 | echo "$as_me: failed program was:" >&5 | |
2264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2265 | ||
2266 | continue | |
2267 | fi | |
2268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2269 | cat >conftest.$ac_ext <<_ACEOF | |
2270 | /* confdefs.h. */ | |
2271 | _ACEOF | |
2272 | cat confdefs.h >>conftest.$ac_ext | |
2273 | cat >>conftest.$ac_ext <<_ACEOF | |
2274 | /* end confdefs.h. */ | |
2275 | $ac_declaration | |
2276 | int | |
2277 | main () | |
2278 | { | |
2279 | exit (42); | |
2280 | ; | |
2281 | return 0; | |
2282 | } | |
2283 | _ACEOF | |
2284 | rm -f conftest.$ac_objext | |
2285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2286 | (eval $ac_compile) 2>conftest.er1 | |
2287 | ac_status=$? | |
2288 | grep -v '^ *+' conftest.er1 >conftest.err | |
2289 | rm -f conftest.er1 | |
2290 | cat conftest.err >&5 | |
2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2292 | (exit $ac_status); } && | |
2293 | { ac_try='test -z "$ac_c_werror_flag" | |
2294 | || test ! -s conftest.err' | |
2295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2296 | (eval $ac_try) 2>&5 | |
2297 | ac_status=$? | |
2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2299 | (exit $ac_status); }; } && | |
2300 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2306 | break | |
2307 | else | |
2308 | echo "$as_me: failed program was:" >&5 | |
2309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2310 | ||
2311 | fi | |
2312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2313 | done | |
2314 | rm -f conftest* | |
2315 | if test -n "$ac_declaration"; then | |
2316 | echo '#ifdef __cplusplus' >>confdefs.h | |
2317 | echo $ac_declaration >>confdefs.h | |
2318 | echo '#endif' >>confdefs.h | |
2319 | fi | |
2320 | ||
2321 | else | |
2322 | echo "$as_me: failed program was:" >&5 | |
2323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2324 | |
b4e70030 JB |
2325 | fi |
2326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2327 | ac_ext=c |
2328 | ac_cpp='$CPP $CPPFLAGS' | |
2329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2332 | |
60ca704f | 2333 | |
bec39cab AC |
2334 | cat >>confdefs.h <<\_ACEOF |
2335 | #define _GNU_SOURCE 1 | |
2336 | _ACEOF | |
c906108c SS |
2337 | |
2338 | ||
8bb2c122 | 2339 | |
bec39cab AC |
2340 | ac_ext=c |
2341 | ac_cpp='$CPP $CPPFLAGS' | |
2342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2345 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2346 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2347 | # On Suns, sometimes $CPP names a directory. |
2348 | if test -n "$CPP" && test -d "$CPP"; then | |
2349 | CPP= | |
8bb2c122 | 2350 | fi |
bec39cab AC |
2351 | if test -z "$CPP"; then |
2352 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2354 | else | |
2355 | # Double quotes because CPP needs to be expanded | |
2356 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2357 | do | |
2358 | ac_preproc_ok=false | |
2359 | for ac_c_preproc_warn_flag in '' yes | |
2360 | do | |
2361 | # Use a header file that comes with gcc, so configuring glibc | |
2362 | # with a fresh cross-compiler works. | |
2363 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2364 | # <limits.h> exists even on freestanding compilers. | |
2365 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2366 | # not just through cpp. "Syntax error" is here to catch this case. | |
2367 | cat >conftest.$ac_ext <<_ACEOF | |
2368 | /* confdefs.h. */ | |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | #ifdef __STDC__ | |
2374 | # include <limits.h> | |
2375 | #else | |
2376 | # include <assert.h> | |
2377 | #endif | |
2378 | Syntax error | |
2379 | _ACEOF | |
2380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2382 | ac_status=$? | |
2383 | grep -v '^ *+' conftest.er1 >conftest.err | |
2384 | rm -f conftest.er1 | |
2385 | cat conftest.err >&5 | |
2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2387 | (exit $ac_status); } >/dev/null; then | |
2388 | if test -s conftest.err; then | |
2389 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2391 | else | |
2392 | ac_cpp_err= | |
2393 | fi | |
8bb2c122 | 2394 | else |
bec39cab | 2395 | ac_cpp_err=yes |
8bb2c122 | 2396 | fi |
bec39cab AC |
2397 | if test -z "$ac_cpp_err"; then |
2398 | : | |
8bb2c122 | 2399 | else |
bec39cab AC |
2400 | echo "$as_me: failed program was:" >&5 |
2401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2402 | ||
2403 | # Broken: fails on valid input. | |
2404 | continue | |
2405 | fi | |
2406 | rm -f conftest.err conftest.$ac_ext | |
2407 | ||
b4e70030 | 2408 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2409 | # can be detected and how. |
2410 | cat >conftest.$ac_ext <<_ACEOF | |
2411 | /* confdefs.h. */ | |
2412 | _ACEOF | |
2413 | cat confdefs.h >>conftest.$ac_ext | |
2414 | cat >>conftest.$ac_ext <<_ACEOF | |
2415 | /* end confdefs.h. */ | |
2416 | #include <ac_nonexistent.h> | |
2417 | _ACEOF | |
2418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2420 | ac_status=$? | |
2421 | grep -v '^ *+' conftest.er1 >conftest.err | |
2422 | rm -f conftest.er1 | |
2423 | cat conftest.err >&5 | |
2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2425 | (exit $ac_status); } >/dev/null; then | |
2426 | if test -s conftest.err; then | |
2427 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2429 | else | |
2430 | ac_cpp_err= | |
2431 | fi | |
8bb2c122 | 2432 | else |
bec39cab | 2433 | ac_cpp_err=yes |
8bb2c122 | 2434 | fi |
bec39cab AC |
2435 | if test -z "$ac_cpp_err"; then |
2436 | # Broken: success on invalid input. | |
2437 | continue | |
8bb2c122 | 2438 | else |
bec39cab AC |
2439 | echo "$as_me: failed program was:" >&5 |
2440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2441 | |
bec39cab AC |
2442 | # Passes both tests. |
2443 | ac_preproc_ok=: | |
2444 | break | |
8bb2c122 | 2445 | fi |
bec39cab | 2446 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2447 | |
bec39cab AC |
2448 | done |
2449 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2450 | rm -f conftest.err conftest.$ac_ext | |
2451 | if $ac_preproc_ok; then | |
2452 | break | |
2453 | fi | |
8bb2c122 | 2454 | |
bec39cab AC |
2455 | done |
2456 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2457 | |
c906108c | 2458 | fi |
bec39cab AC |
2459 | CPP=$ac_cv_prog_CPP |
2460 | else | |
2461 | ac_cv_prog_CPP=$CPP | |
c906108c | 2462 | fi |
b4e70030 JB |
2463 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2464 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2465 | ac_preproc_ok=false |
2466 | for ac_c_preproc_warn_flag in '' yes | |
2467 | do | |
2468 | # Use a header file that comes with gcc, so configuring glibc | |
2469 | # with a fresh cross-compiler works. | |
2470 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2471 | # <limits.h> exists even on freestanding compilers. | |
2472 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2473 | # not just through cpp. "Syntax error" is here to catch this case. | |
2474 | cat >conftest.$ac_ext <<_ACEOF | |
2475 | /* confdefs.h. */ | |
2476 | _ACEOF | |
2477 | cat confdefs.h >>conftest.$ac_ext | |
2478 | cat >>conftest.$ac_ext <<_ACEOF | |
2479 | /* end confdefs.h. */ | |
2480 | #ifdef __STDC__ | |
2481 | # include <limits.h> | |
2482 | #else | |
2483 | # include <assert.h> | |
2484 | #endif | |
2485 | Syntax error | |
2486 | _ACEOF | |
2487 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2489 | ac_status=$? | |
2490 | grep -v '^ *+' conftest.er1 >conftest.err | |
2491 | rm -f conftest.er1 | |
2492 | cat conftest.err >&5 | |
2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2494 | (exit $ac_status); } >/dev/null; then | |
2495 | if test -s conftest.err; then | |
2496 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2497 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2498 | else | |
2499 | ac_cpp_err= | |
2500 | fi | |
c906108c | 2501 | else |
bec39cab | 2502 | ac_cpp_err=yes |
c906108c | 2503 | fi |
bec39cab AC |
2504 | if test -z "$ac_cpp_err"; then |
2505 | : | |
c906108c | 2506 | else |
bec39cab AC |
2507 | echo "$as_me: failed program was:" >&5 |
2508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2509 | ||
2510 | # Broken: fails on valid input. | |
2511 | continue | |
2512 | fi | |
2513 | rm -f conftest.err conftest.$ac_ext | |
2514 | ||
b4e70030 | 2515 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2516 | # can be detected and how. |
2517 | cat >conftest.$ac_ext <<_ACEOF | |
2518 | /* confdefs.h. */ | |
2519 | _ACEOF | |
2520 | cat confdefs.h >>conftest.$ac_ext | |
2521 | cat >>conftest.$ac_ext <<_ACEOF | |
2522 | /* end confdefs.h. */ | |
2523 | #include <ac_nonexistent.h> | |
2524 | _ACEOF | |
2525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2527 | ac_status=$? | |
2528 | grep -v '^ *+' conftest.er1 >conftest.err | |
2529 | rm -f conftest.er1 | |
2530 | cat conftest.err >&5 | |
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2532 | (exit $ac_status); } >/dev/null; then | |
2533 | if test -s conftest.err; then | |
2534 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2536 | else | |
2537 | ac_cpp_err= | |
2538 | fi | |
c906108c | 2539 | else |
bec39cab | 2540 | ac_cpp_err=yes |
c906108c | 2541 | fi |
bec39cab AC |
2542 | if test -z "$ac_cpp_err"; then |
2543 | # Broken: success on invalid input. | |
2544 | continue | |
c906108c | 2545 | else |
bec39cab AC |
2546 | echo "$as_me: failed program was:" >&5 |
2547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2548 | |
bec39cab AC |
2549 | # Passes both tests. |
2550 | ac_preproc_ok=: | |
2551 | break | |
c906108c | 2552 | fi |
bec39cab | 2553 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2554 | |
bec39cab AC |
2555 | done |
2556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2557 | rm -f conftest.err conftest.$ac_ext | |
2558 | if $ac_preproc_ok; then | |
c906108c SS |
2559 | : |
2560 | else | |
d5af19ba DJ |
2561 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2562 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2563 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
bec39cab AC |
2564 | See \`config.log' for more details." >&5 |
2565 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2566 | See \`config.log' for more details." >&2;} | |
d5af19ba | 2567 | { (exit 1); exit 1; }; }; } |
c906108c | 2568 | fi |
c906108c | 2569 | |
bec39cab AC |
2570 | ac_ext=c |
2571 | ac_cpp='$CPP $CPPFLAGS' | |
2572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2575 | ||
2576 | ||
b4e70030 JB |
2577 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2578 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2579 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2581 | else | |
b4e70030 JB |
2582 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2583 | then ac_cv_prog_egrep='grep -E' | |
2584 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2585 | fi |
4e8d927d | 2586 | fi |
b4e70030 JB |
2587 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2588 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2589 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2590 | |
bec39cab AC |
2591 | |
2592 | ||
b4e70030 JB |
2593 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2594 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2595 | cat >conftest.$ac_ext <<_ACEOF |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
2601 | #ifdef _AIX | |
2602 | yes | |
2603 | #endif | |
2604 | ||
2605 | _ACEOF | |
c906108c | 2606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2607 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2608 | echo "$as_me:$LINENO: result: yes" >&5 |
2609 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2610 | cat >>confdefs.h <<\_ACEOF |
2611 | #define _ALL_SOURCE 1 | |
2612 | _ACEOF | |
2613 | ||
c906108c | 2614 | else |
b4e70030 JB |
2615 | echo "$as_me:$LINENO: result: no" >&5 |
2616 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2617 | fi |
2618 | rm -f conftest* | |
2619 | ||
c906108c | 2620 | |
b4e70030 JB |
2621 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2622 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2623 | if test "${ac_cv_search_strerror+set}" = set; then |
2624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2625 | else |
bec39cab | 2626 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2627 | ac_cv_search_strerror=no |
bec39cab AC |
2628 | cat >conftest.$ac_ext <<_ACEOF |
2629 | /* confdefs.h. */ | |
2630 | _ACEOF | |
2631 | cat confdefs.h >>conftest.$ac_ext | |
2632 | cat >>conftest.$ac_ext <<_ACEOF | |
2633 | /* end confdefs.h. */ | |
c906108c | 2634 | |
b4e70030 | 2635 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2636 | #ifdef __cplusplus |
2637 | extern "C" | |
2638 | #endif | |
b4e70030 JB |
2639 | /* We use char because int might match the return type of a gcc2 |
2640 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2641 | char strerror (); |
2642 | int | |
2643 | main () | |
2644 | { | |
b4e70030 | 2645 | strerror (); |
bec39cab AC |
2646 | ; |
2647 | return 0; | |
2648 | } | |
2649 | _ACEOF | |
b4e70030 | 2650 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2652 | (eval $ac_link) 2>conftest.er1 | |
2653 | ac_status=$? | |
2654 | grep -v '^ *+' conftest.er1 >conftest.err | |
2655 | rm -f conftest.er1 | |
2656 | cat conftest.err >&5 | |
2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2658 | (exit $ac_status); } && | |
b4e70030 JB |
2659 | { ac_try='test -z "$ac_c_werror_flag" |
2660 | || test ! -s conftest.err' | |
bec39cab AC |
2661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2662 | (eval $ac_try) 2>&5 | |
2663 | ac_status=$? | |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2665 | (exit $ac_status); }; } && | |
2666 | { ac_try='test -s conftest$ac_exeext' | |
2667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2668 | (eval $ac_try) 2>&5 | |
2669 | ac_status=$? | |
2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2671 | (exit $ac_status); }; }; then | |
b4e70030 | 2672 | ac_cv_search_strerror="none required" |
c906108c | 2673 | else |
bec39cab AC |
2674 | echo "$as_me: failed program was:" >&5 |
2675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2676 | |
2677 | fi | |
bec39cab | 2678 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2679 | conftest$ac_exeext conftest.$ac_ext |
2680 | if test "$ac_cv_search_strerror" = no; then | |
2681 | for ac_lib in cposix; do | |
2682 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2683 | cat >conftest.$ac_ext <<_ACEOF | |
2684 | /* confdefs.h. */ | |
2685 | _ACEOF | |
2686 | cat confdefs.h >>conftest.$ac_ext | |
2687 | cat >>conftest.$ac_ext <<_ACEOF | |
2688 | /* end confdefs.h. */ | |
2689 | ||
2690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2691 | #ifdef __cplusplus | |
2692 | extern "C" | |
2693 | #endif | |
2694 | /* We use char because int might match the return type of a gcc2 | |
2695 | builtin and then its argument prototype would still apply. */ | |
2696 | char strerror (); | |
2697 | int | |
2698 | main () | |
2699 | { | |
2700 | strerror (); | |
2701 | ; | |
2702 | return 0; | |
2703 | } | |
2704 | _ACEOF | |
2705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2707 | (eval $ac_link) 2>conftest.er1 | |
2708 | ac_status=$? | |
2709 | grep -v '^ *+' conftest.er1 >conftest.err | |
2710 | rm -f conftest.er1 | |
2711 | cat conftest.err >&5 | |
2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2713 | (exit $ac_status); } && | |
2714 | { ac_try='test -z "$ac_c_werror_flag" | |
2715 | || test ! -s conftest.err' | |
2716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2717 | (eval $ac_try) 2>&5 | |
2718 | ac_status=$? | |
2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2720 | (exit $ac_status); }; } && | |
2721 | { ac_try='test -s conftest$ac_exeext' | |
2722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2723 | (eval $ac_try) 2>&5 | |
2724 | ac_status=$? | |
2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2726 | (exit $ac_status); }; }; then | |
2727 | ac_cv_search_strerror="-l$ac_lib" | |
2728 | break | |
4e8d927d | 2729 | else |
b4e70030 JB |
2730 | echo "$as_me: failed program was:" >&5 |
2731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2732 | ||
2733 | fi | |
2734 | rm -f conftest.err conftest.$ac_objext \ | |
2735 | conftest$ac_exeext conftest.$ac_ext | |
2736 | done | |
c906108c | 2737 | fi |
bec39cab | 2738 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2739 | fi |
b4e70030 JB |
2740 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2741 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2742 | if test "$ac_cv_search_strerror" != no; then | |
2743 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2744 | |
c906108c SS |
2745 | fi |
2746 | ||
783e057b DJ |
2747 | if test -n "$ac_tool_prefix"; then |
2748 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2749 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2752 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2754 | else | |
2755 | if test -n "$RANLIB"; then | |
2756 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2757 | else | |
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2759 | for as_dir in $PATH | |
2760 | do | |
2761 | IFS=$as_save_IFS | |
2762 | test -z "$as_dir" && as_dir=. | |
2763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2765 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2767 | break 2 | |
2768 | fi | |
2769 | done | |
2770 | done | |
c906108c | 2771 | |
783e057b DJ |
2772 | fi |
2773 | fi | |
2774 | RANLIB=$ac_cv_prog_RANLIB | |
2775 | if test -n "$RANLIB"; then | |
2776 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2777 | echo "${ECHO_T}$RANLIB" >&6 | |
2778 | else | |
2779 | echo "$as_me:$LINENO: result: no" >&5 | |
2780 | echo "${ECHO_T}no" >&6 | |
2781 | fi | |
bec39cab | 2782 | |
783e057b DJ |
2783 | fi |
2784 | if test -z "$ac_cv_prog_RANLIB"; then | |
2785 | ac_ct_RANLIB=$RANLIB | |
2786 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2787 | set dummy ranlib; ac_word=$2 | |
2788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2790 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
bec39cab | 2791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 2792 | else |
783e057b DJ |
2793 | if test -n "$ac_ct_RANLIB"; then |
2794 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2795 | else | |
2796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2797 | for as_dir in $PATH | |
bec39cab | 2798 | do |
783e057b DJ |
2799 | IFS=$as_save_IFS |
2800 | test -z "$as_dir" && as_dir=. | |
2801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2803 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2805 | break 2 | |
2806 | fi | |
2807 | done | |
2808 | done | |
2809 | ||
2810 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2811 | fi | |
2812 | fi | |
2813 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2814 | if test -n "$ac_ct_RANLIB"; then | |
2815 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2816 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2817 | else | |
2818 | echo "$as_me:$LINENO: result: no" >&5 | |
2819 | echo "${ECHO_T}no" >&6 | |
2820 | fi | |
2821 | ||
2822 | RANLIB=$ac_ct_RANLIB | |
2823 | else | |
2824 | RANLIB="$ac_cv_prog_RANLIB" | |
2825 | fi | |
2826 | ||
2827 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2828 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2829 | if test "${ac_cv_header_stdc+set}" = set; then | |
2830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2831 | else | |
bec39cab AC |
2832 | cat >conftest.$ac_ext <<_ACEOF |
2833 | /* confdefs.h. */ | |
2834 | _ACEOF | |
2835 | cat confdefs.h >>conftest.$ac_ext | |
2836 | cat >>conftest.$ac_ext <<_ACEOF | |
2837 | /* end confdefs.h. */ | |
783e057b | 2838 | #include <stdlib.h> |
bec39cab | 2839 | #include <stdarg.h> |
783e057b DJ |
2840 | #include <string.h> |
2841 | #include <float.h> | |
c906108c | 2842 | |
bec39cab AC |
2843 | int |
2844 | main () | |
2845 | { | |
c906108c | 2846 | |
bec39cab AC |
2847 | ; |
2848 | return 0; | |
2849 | } | |
2850 | _ACEOF | |
2851 | rm -f conftest.$ac_objext | |
2852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2853 | (eval $ac_compile) 2>conftest.er1 | |
2854 | ac_status=$? | |
2855 | grep -v '^ *+' conftest.er1 >conftest.err | |
2856 | rm -f conftest.er1 | |
2857 | cat conftest.err >&5 | |
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2859 | (exit $ac_status); } && | |
b4e70030 JB |
2860 | { ac_try='test -z "$ac_c_werror_flag" |
2861 | || test ! -s conftest.err' | |
bec39cab AC |
2862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2863 | (eval $ac_try) 2>&5 | |
2864 | ac_status=$? | |
2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2866 | (exit $ac_status); }; } && | |
2867 | { ac_try='test -s conftest.$ac_objext' | |
2868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2869 | (eval $ac_try) 2>&5 | |
2870 | ac_status=$? | |
2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2872 | (exit $ac_status); }; }; then | |
783e057b | 2873 | ac_cv_header_stdc=yes |
c906108c | 2874 | else |
bec39cab AC |
2875 | echo "$as_me: failed program was:" >&5 |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2877 | |
783e057b | 2878 | ac_cv_header_stdc=no |
c906108c | 2879 | fi |
bec39cab | 2880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2881 | |
783e057b DJ |
2882 | if test $ac_cv_header_stdc = yes; then |
2883 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2884 | cat >conftest.$ac_ext <<_ACEOF | |
2885 | /* confdefs.h. */ | |
2886 | _ACEOF | |
2887 | cat confdefs.h >>conftest.$ac_ext | |
2888 | cat >>conftest.$ac_ext <<_ACEOF | |
2889 | /* end confdefs.h. */ | |
2890 | #include <string.h> | |
c906108c | 2891 | |
783e057b DJ |
2892 | _ACEOF |
2893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2894 | $EGREP "memchr" >/dev/null 2>&1; then | |
2895 | : | |
c906108c | 2896 | else |
783e057b | 2897 | ac_cv_header_stdc=no |
c906108c | 2898 | fi |
783e057b | 2899 | rm -f conftest* |
c906108c SS |
2900 | |
2901 | fi | |
2902 | ||
783e057b DJ |
2903 | if test $ac_cv_header_stdc = yes; then |
2904 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2905 | cat >conftest.$ac_ext <<_ACEOF | |
2906 | /* confdefs.h. */ | |
2907 | _ACEOF | |
2908 | cat confdefs.h >>conftest.$ac_ext | |
2909 | cat >>conftest.$ac_ext <<_ACEOF | |
2910 | /* end confdefs.h. */ | |
2911 | #include <stdlib.h> | |
bec39cab | 2912 | |
783e057b DJ |
2913 | _ACEOF |
2914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2915 | $EGREP "free" >/dev/null 2>&1; then | |
2916 | : | |
bec39cab | 2917 | else |
783e057b | 2918 | ac_cv_header_stdc=no |
bec39cab | 2919 | fi |
783e057b | 2920 | rm -f conftest* |
bec39cab AC |
2921 | |
2922 | fi | |
bec39cab | 2923 | |
783e057b DJ |
2924 | if test $ac_cv_header_stdc = yes; then |
2925 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2926 | if test "$cross_compiling" = yes; then | |
2927 | : | |
bec39cab | 2928 | else |
783e057b DJ |
2929 | cat >conftest.$ac_ext <<_ACEOF |
2930 | /* confdefs.h. */ | |
2931 | _ACEOF | |
2932 | cat confdefs.h >>conftest.$ac_ext | |
2933 | cat >>conftest.$ac_ext <<_ACEOF | |
2934 | /* end confdefs.h. */ | |
2935 | #include <ctype.h> | |
2936 | #if ((' ' & 0x0FF) == 0x020) | |
2937 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2938 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2939 | #else | |
2940 | # define ISLOWER(c) \ | |
2941 | (('a' <= (c) && (c) <= 'i') \ | |
2942 | || ('j' <= (c) && (c) <= 'r') \ | |
2943 | || ('s' <= (c) && (c) <= 'z')) | |
2944 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2945 | #endif | |
2946 | ||
2947 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2948 | int | |
2949 | main () | |
2950 | { | |
2951 | int i; | |
2952 | for (i = 0; i < 256; i++) | |
2953 | if (XOR (islower (i), ISLOWER (i)) | |
2954 | || toupper (i) != TOUPPER (i)) | |
2955 | exit(2); | |
2956 | exit (0); | |
2957 | } | |
2958 | _ACEOF | |
2959 | rm -f conftest$ac_exeext | |
2960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2961 | (eval $ac_link) 2>&5 | |
2962 | ac_status=$? | |
2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2966 | (eval $ac_try) 2>&5 | |
2967 | ac_status=$? | |
2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2969 | (exit $ac_status); }; }; then | |
2970 | : | |
2971 | else | |
2972 | echo "$as_me: program exited with status $ac_status" >&5 | |
2973 | echo "$as_me: failed program was:" >&5 | |
2974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2975 | ||
2976 | ( exit $ac_status ) | |
2977 | ac_cv_header_stdc=no | |
2978 | fi | |
2979 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2980 | fi | |
2981 | fi | |
2982 | fi | |
2983 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2984 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2985 | if test $ac_cv_header_stdc = yes; then | |
2986 | ||
2987 | cat >>confdefs.h <<\_ACEOF | |
2988 | #define STDC_HEADERS 1 | |
2989 | _ACEOF | |
2990 | ||
2991 | fi | |
2992 | ||
2993 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2994 | ||
2995 | ||
2996 | ||
2997 | ||
2998 | ||
2999 | ||
3000 | ||
3001 | ||
3002 | ||
3003 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3004 | inttypes.h stdint.h unistd.h | |
3005 | do | |
3006 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3011 | else | |
3012 | cat >conftest.$ac_ext <<_ACEOF | |
3013 | /* confdefs.h. */ | |
3014 | _ACEOF | |
3015 | cat confdefs.h >>conftest.$ac_ext | |
3016 | cat >>conftest.$ac_ext <<_ACEOF | |
3017 | /* end confdefs.h. */ | |
3018 | $ac_includes_default | |
3019 | ||
3020 | #include <$ac_header> | |
3021 | _ACEOF | |
3022 | rm -f conftest.$ac_objext | |
3023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3024 | (eval $ac_compile) 2>conftest.er1 | |
3025 | ac_status=$? | |
3026 | grep -v '^ *+' conftest.er1 >conftest.err | |
3027 | rm -f conftest.er1 | |
3028 | cat conftest.err >&5 | |
3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3030 | (exit $ac_status); } && | |
3031 | { ac_try='test -z "$ac_c_werror_flag" | |
3032 | || test ! -s conftest.err' | |
3033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3034 | (eval $ac_try) 2>&5 | |
3035 | ac_status=$? | |
3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3037 | (exit $ac_status); }; } && | |
3038 | { ac_try='test -s conftest.$ac_objext' | |
3039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3040 | (eval $ac_try) 2>&5 | |
3041 | ac_status=$? | |
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3043 | (exit $ac_status); }; }; then | |
3044 | eval "$as_ac_Header=yes" | |
3045 | else | |
3046 | echo "$as_me: failed program was:" >&5 | |
3047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3048 | ||
3049 | eval "$as_ac_Header=no" | |
3050 | fi | |
3051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3052 | fi | |
3053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3054 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3055 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3056 | cat >>confdefs.h <<_ACEOF | |
3057 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3058 | _ACEOF | |
3059 | ||
3060 | fi | |
3061 | ||
3062 | done | |
3063 | ||
3064 | ||
3065 | ||
3066 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3067 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3068 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3069 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3071 | fi | |
3072 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3073 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3074 | else | |
3075 | # Is the header compilable? | |
3076 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
3077 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
3078 | cat >conftest.$ac_ext <<_ACEOF | |
3079 | /* confdefs.h. */ | |
3080 | _ACEOF | |
3081 | cat confdefs.h >>conftest.$ac_ext | |
3082 | cat >>conftest.$ac_ext <<_ACEOF | |
3083 | /* end confdefs.h. */ | |
3084 | $ac_includes_default | |
3085 | #include <minix/config.h> | |
3086 | _ACEOF | |
3087 | rm -f conftest.$ac_objext | |
3088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3089 | (eval $ac_compile) 2>conftest.er1 | |
3090 | ac_status=$? | |
3091 | grep -v '^ *+' conftest.er1 >conftest.err | |
3092 | rm -f conftest.er1 | |
3093 | cat conftest.err >&5 | |
3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3095 | (exit $ac_status); } && | |
3096 | { ac_try='test -z "$ac_c_werror_flag" | |
3097 | || test ! -s conftest.err' | |
3098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3099 | (eval $ac_try) 2>&5 | |
3100 | ac_status=$? | |
3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3102 | (exit $ac_status); }; } && | |
3103 | { ac_try='test -s conftest.$ac_objext' | |
3104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3105 | (eval $ac_try) 2>&5 | |
3106 | ac_status=$? | |
3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3108 | (exit $ac_status); }; }; then | |
3109 | ac_header_compiler=yes | |
3110 | else | |
3111 | echo "$as_me: failed program was:" >&5 | |
3112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3113 | ||
3114 | ac_header_compiler=no | |
3115 | fi | |
3116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3119 | ||
3120 | # Is the header present? | |
3121 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
3122 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
3123 | cat >conftest.$ac_ext <<_ACEOF | |
3124 | /* confdefs.h. */ | |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
3129 | #include <minix/config.h> | |
3130 | _ACEOF | |
3131 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3132 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3133 | ac_status=$? | |
3134 | grep -v '^ *+' conftest.er1 >conftest.err | |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3138 | (exit $ac_status); } >/dev/null; then | |
3139 | if test -s conftest.err; then | |
3140 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3141 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3142 | else | |
3143 | ac_cpp_err= | |
3144 | fi | |
3145 | else | |
3146 | ac_cpp_err=yes | |
3147 | fi | |
3148 | if test -z "$ac_cpp_err"; then | |
3149 | ac_header_preproc=yes | |
3150 | else | |
3151 | echo "$as_me: failed program was:" >&5 | |
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3153 | ||
3154 | ac_header_preproc=no | |
3155 | fi | |
3156 | rm -f conftest.err conftest.$ac_ext | |
3157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3159 | ||
3160 | # So? What about this header? | |
3161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3162 | yes:no: ) | |
3163 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3164 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3165 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
3166 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
3167 | ac_header_preproc=yes | |
3168 | ;; | |
3169 | no:yes:* ) | |
3170 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
3171 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
3172 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
3173 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
3174 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
3175 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
3176 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3177 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3178 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
3179 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
3180 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
3181 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
3182 | ( | |
3183 | cat <<\_ASBOX | |
3184 | ## ------------------------------------------ ## | |
3185 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3186 | ## ------------------------------------------ ## | |
3187 | _ASBOX | |
3188 | ) | | |
3189 | sed "s/^/$as_me: WARNING: /" >&2 | |
3190 | ;; | |
3191 | esac | |
3192 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3193 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3194 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3196 | else | |
3197 | ac_cv_header_minix_config_h=$ac_header_preproc | |
3198 | fi | |
3199 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3200 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3201 | ||
3202 | fi | |
3203 | if test $ac_cv_header_minix_config_h = yes; then | |
3204 | MINIX=yes | |
3205 | else | |
3206 | MINIX= | |
3207 | fi | |
3208 | ||
3209 | ||
3210 | if test "$MINIX" = yes; then | |
3211 | ||
3212 | cat >>confdefs.h <<\_ACEOF | |
3213 | #define _POSIX_SOURCE 1 | |
3214 | _ACEOF | |
3215 | ||
3216 | ||
3217 | cat >>confdefs.h <<\_ACEOF | |
3218 | #define _POSIX_1_SOURCE 2 | |
3219 | _ACEOF | |
3220 | ||
3221 | ||
3222 | cat >>confdefs.h <<\_ACEOF | |
3223 | #define _MINIX 1 | |
3224 | _ACEOF | |
3225 | ||
3226 | fi | |
3227 | ||
3228 | ||
3229 | ||
3230 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3231 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
3232 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3234 | else | |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
3236 | /* confdefs.h. */ | |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | ||
3242 | # define __EXTENSIONS__ 1 | |
3243 | $ac_includes_default | |
3244 | int | |
3245 | main () | |
3246 | { | |
3247 | ||
3248 | ; | |
3249 | return 0; | |
3250 | } | |
3251 | _ACEOF | |
3252 | rm -f conftest.$ac_objext | |
3253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3254 | (eval $ac_compile) 2>conftest.er1 | |
3255 | ac_status=$? | |
3256 | grep -v '^ *+' conftest.er1 >conftest.err | |
3257 | rm -f conftest.er1 | |
3258 | cat conftest.err >&5 | |
3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3260 | (exit $ac_status); } && | |
3261 | { ac_try='test -z "$ac_c_werror_flag" | |
3262 | || test ! -s conftest.err' | |
3263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3264 | (eval $ac_try) 2>&5 | |
3265 | ac_status=$? | |
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3267 | (exit $ac_status); }; } && | |
3268 | { ac_try='test -s conftest.$ac_objext' | |
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3270 | (eval $ac_try) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); }; }; then | |
3274 | ac_cv_safe_to_define___extensions__=yes | |
3275 | else | |
3276 | echo "$as_me: failed program was:" >&5 | |
3277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3278 | ||
3279 | ac_cv_safe_to_define___extensions__=no | |
3280 | fi | |
3281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3282 | fi | |
3283 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3284 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
3285 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3286 | cat >>confdefs.h <<\_ACEOF | |
3287 | #define __EXTENSIONS__ 1 | |
3288 | _ACEOF | |
3289 | ||
3290 | cat >>confdefs.h <<\_ACEOF | |
3291 | #define _ALL_SOURCE 1 | |
3292 | _ACEOF | |
3293 | ||
3294 | cat >>confdefs.h <<\_ACEOF | |
3295 | #define _GNU_SOURCE 1 | |
3296 | _ACEOF | |
3297 | ||
3298 | cat >>confdefs.h <<\_ACEOF | |
3299 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
3300 | _ACEOF | |
3301 | ||
3302 | cat >>confdefs.h <<\_ACEOF | |
3303 | #define _TANDEM_SOURCE 1 | |
3304 | _ACEOF | |
3305 | ||
3306 | ||
3307 | ||
3308 | ||
3309 | ||
3310 | ||
3311 | ||
3312 | ||
3313 | ||
3314 | ||
3315 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
3316 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
3317 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3319 | else | |
3320 | am_cv_prog_cc_stdc=no | |
3321 | ac_save_CC="$CC" | |
3322 | # Don't try gcc -ansi; that turns off useful extensions and | |
3323 | # breaks some systems' header files. | |
3324 | # AIX -qlanglvl=ansi | |
3325 | # Ultrix and OSF/1 -std1 | |
3326 | # HP-UX 10.20 and later -Ae | |
3327 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3328 | # SVR4 -Xc -D__EXTENSIONS__ | |
3329 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3330 | do | |
3331 | CC="$ac_save_CC $ac_arg" | |
3332 | cat >conftest.$ac_ext <<_ACEOF | |
3333 | /* confdefs.h. */ | |
3334 | _ACEOF | |
3335 | cat confdefs.h >>conftest.$ac_ext | |
3336 | cat >>conftest.$ac_ext <<_ACEOF | |
3337 | /* end confdefs.h. */ | |
3338 | #include <stdarg.h> | |
3339 | #include <stdio.h> | |
3340 | #include <sys/types.h> | |
3341 | #include <sys/stat.h> | |
3342 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3343 | struct buf { int x; }; | |
3344 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3345 | static char *e (p, i) | |
3346 | char **p; | |
3347 | int i; | |
3348 | { | |
3349 | return p[i]; | |
3350 | } | |
3351 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3352 | { | |
3353 | char *s; | |
3354 | va_list v; | |
3355 | va_start (v,p); | |
3356 | s = g (p, va_arg (v,int)); | |
3357 | va_end (v); | |
3358 | return s; | |
3359 | } | |
3360 | int test (int i, double x); | |
3361 | struct s1 {int (*f) (int a);}; | |
3362 | struct s2 {int (*f) (double a);}; | |
3363 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3364 | int argc; | |
3365 | char **argv; | |
3366 | ||
3367 | int | |
3368 | main () | |
3369 | { | |
3370 | ||
3371 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3372 | ||
3373 | ; | |
3374 | return 0; | |
3375 | } | |
3376 | _ACEOF | |
3377 | rm -f conftest.$ac_objext | |
3378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3379 | (eval $ac_compile) 2>conftest.er1 | |
3380 | ac_status=$? | |
3381 | grep -v '^ *+' conftest.er1 >conftest.err | |
3382 | rm -f conftest.er1 | |
3383 | cat conftest.err >&5 | |
3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3385 | (exit $ac_status); } && | |
3386 | { ac_try='test -z "$ac_c_werror_flag" | |
3387 | || test ! -s conftest.err' | |
3388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3389 | (eval $ac_try) 2>&5 | |
3390 | ac_status=$? | |
3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3392 | (exit $ac_status); }; } && | |
3393 | { ac_try='test -s conftest.$ac_objext' | |
3394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3395 | (eval $ac_try) 2>&5 | |
3396 | ac_status=$? | |
3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3398 | (exit $ac_status); }; }; then | |
3399 | am_cv_prog_cc_stdc="$ac_arg"; break | |
3400 | else | |
3401 | echo "$as_me: failed program was:" >&5 | |
3402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3403 | ||
3404 | fi | |
3405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3406 | done | |
3407 | CC="$ac_save_CC" | |
3408 | ||
3409 | fi | |
3410 | ||
3411 | if test -z "$am_cv_prog_cc_stdc"; then | |
3412 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3413 | echo "${ECHO_T}none needed" >&6 | |
3414 | else | |
3415 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 | |
3416 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
3417 | fi | |
3418 | case "x$am_cv_prog_cc_stdc" in | |
3419 | x|xno) ;; | |
3420 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
3421 | esac | |
3422 | ||
3423 | ||
3424 | ac_aux_dir= | |
3425 | for ac_dir in .. $srcdir/..; do | |
3426 | if test -f $ac_dir/install-sh; then | |
3427 | ac_aux_dir=$ac_dir | |
3428 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3429 | break | |
3430 | elif test -f $ac_dir/install.sh; then | |
3431 | ac_aux_dir=$ac_dir | |
3432 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3433 | break | |
3434 | elif test -f $ac_dir/shtool; then | |
3435 | ac_aux_dir=$ac_dir | |
3436 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3437 | break | |
3438 | fi | |
3439 | done | |
3440 | if test -z "$ac_aux_dir"; then | |
3441 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
3442 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
3443 | { (exit 1); exit 1; }; } | |
3444 | fi | |
3445 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
3446 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3447 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
3448 | ||
3449 | # Make sure we can run config.sub. | |
3450 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3451 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3452 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3453 | { (exit 1); exit 1; }; } | |
3454 | ||
3455 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3456 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3457 | if test "${ac_cv_build+set}" = set; then | |
3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3459 | else | |
3460 | ac_cv_build_alias=$build_alias | |
3461 | test -z "$ac_cv_build_alias" && | |
3462 | ac_cv_build_alias=`$ac_config_guess` | |
3463 | test -z "$ac_cv_build_alias" && | |
3464 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3465 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3466 | { (exit 1); exit 1; }; } | |
3467 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3468 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3469 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3470 | { (exit 1); exit 1; }; } | |
3471 | ||
3472 | fi | |
3473 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3474 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3475 | build=$ac_cv_build | |
3476 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3477 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3478 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3479 | ||
3480 | ||
3481 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3482 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3483 | if test "${ac_cv_host+set}" = set; then | |
3484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3485 | else | |
3486 | ac_cv_host_alias=$host_alias | |
3487 | test -z "$ac_cv_host_alias" && | |
3488 | ac_cv_host_alias=$ac_cv_build_alias | |
3489 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3490 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3491 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3492 | { (exit 1); exit 1; }; } | |
3493 | ||
3494 | fi | |
3495 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3496 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3497 | host=$ac_cv_host | |
3498 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3499 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3500 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3501 | ||
3502 | ||
3503 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3504 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3505 | if test "${ac_cv_target+set}" = set; then | |
3506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3507 | else | |
3508 | ac_cv_target_alias=$target_alias | |
3509 | test "x$ac_cv_target_alias" = "x" && | |
b4e70030 JB |
3510 | ac_cv_target_alias=$ac_cv_host_alias |
3511 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3512 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3513 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
3514 | { (exit 1); exit 1; }; } |
3515 | ||
3516 | fi | |
783e057b DJ |
3517 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
3518 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3519 | target=$ac_cv_target | |
3520 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3521 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3522 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3523 | ||
3524 | ||
3525 | # The aliases save the names the user supplied, while $host etc. | |
3526 | # will get canonicalized. | |
3527 | test -n "$target_alias" && | |
3528 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3529 | NONENONEs,x,x, && | |
3530 | program_prefix=${target_alias}- | |
3531 | ||
3532 | ||
3533 | CONFIG_OBS= | |
3534 | CONFIG_DEPS= | |
3535 | CONFIG_SRCS= | |
3536 | ENABLE_CFLAGS= | |
3537 | ||
3538 | CONFIG_ALL= | |
3539 | CONFIG_CLEAN= | |
3540 | CONFIG_INSTALL= | |
3541 | CONFIG_UNINSTALL= | |
3542 | ||
3543 | # If we haven't got the data from the intl directory, | |
3544 | # assume NLS is disabled. | |
3545 | USE_NLS=no | |
3546 | LIBINTL= | |
3547 | LIBINTL_DEP= | |
3548 | INCINTL= | |
3549 | XGETTEXT= | |
3550 | GMSGFMT= | |
3551 | POSUB= | |
3552 | ||
3553 | if test -f ../intl/config.intl; then | |
3554 | . ../intl/config.intl | |
3555 | fi | |
3556 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
3557 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
3558 | if test x"$USE_NLS" != xyes; then | |
3559 | echo "$as_me:$LINENO: result: no" >&5 | |
3560 | echo "${ECHO_T}no" >&6 | |
3561 | else | |
3562 | echo "$as_me:$LINENO: result: yes" >&5 | |
3563 | echo "${ECHO_T}yes" >&6 | |
3564 | ||
3565 | cat >>confdefs.h <<\_ACEOF | |
3566 | #define ENABLE_NLS 1 | |
3567 | _ACEOF | |
3568 | ||
3569 | ||
3570 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
3571 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
3572 | # Look for .po and .gmo files in the source directory. | |
3573 | CATALOGS= | |
3574 | XLINGUAS= | |
3575 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
3576 | # If there aren't any .gmo files the shell will give us the | |
3577 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
3578 | # weeded out. | |
3579 | case "$cat" in *\**) | |
3580 | continue;; | |
3581 | esac | |
3582 | # The quadruple backslash is collapsed to a double backslash | |
3583 | # by the backticks, then collapsed again by the double quotes, | |
3584 | # leaving us with one backslash in the sed expression (right | |
3585 | # before the dot that mustn't act as a wildcard). | |
3586 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
3587 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
3588 | # The user is allowed to set LINGUAS to a list of languages to | |
3589 | # install catalogs for. If it's empty that means "all of them." | |
3590 | if test "x$LINGUAS" = x; then | |
3591 | CATALOGS="$CATALOGS $cat" | |
3592 | XLINGUAS="$XLINGUAS $lang" | |
3593 | else | |
3594 | case "$LINGUAS" in *$lang*) | |
3595 | CATALOGS="$CATALOGS $cat" | |
3596 | XLINGUAS="$XLINGUAS $lang" | |
3597 | ;; | |
3598 | esac | |
3599 | fi | |
3600 | done | |
3601 | LINGUAS="$XLINGUAS" | |
3602 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3603 | echo "${ECHO_T}$LINGUAS" >&6 | |
3604 | ||
3605 | ||
3606 | DATADIRNAME=share | |
3607 | ||
3608 | INSTOBJEXT=.mo | |
3609 | ||
3610 | GENCAT=gencat | |
3611 | ||
3612 | CATOBJEXT=.gmo | |
3613 | ||
3614 | fi | |
3615 | ||
3616 | localedir='${datadir}/locale' | |
3617 | ||
3618 | ||
3619 | if test x"$USE_NLS" = xyes; then | |
3620 | CONFIG_ALL="$CONFIG_ALL all-po" | |
3621 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3622 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3623 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3624 | fi | |
3625 | ||
3626 | ||
3627 | GNULIB_MEMMEM=0; | |
3628 | GNULIB_MEMPCPY=0; | |
3629 | GNULIB_MEMRCHR=0; | |
3630 | GNULIB_STPCPY=0; | |
3631 | GNULIB_STPNCPY=0; | |
3632 | GNULIB_STRCHRNUL=0; | |
3633 | GNULIB_STRDUP=0; | |
3634 | GNULIB_STRNDUP=0; | |
3635 | GNULIB_STRNLEN=0; | |
3636 | GNULIB_STRPBRK=0; | |
3637 | GNULIB_STRSEP=0; | |
3638 | GNULIB_STRSTR=0; | |
3639 | GNULIB_STRCASESTR=0; | |
3640 | GNULIB_STRTOK_R=0; | |
3641 | GNULIB_MBSLEN=0; | |
3642 | GNULIB_MBSNLEN=0; | |
3643 | GNULIB_MBSCHR=0; | |
3644 | GNULIB_MBSRCHR=0; | |
3645 | GNULIB_MBSSTR=0; | |
3646 | GNULIB_MBSCASECMP=0; | |
3647 | GNULIB_MBSNCASECMP=0; | |
3648 | GNULIB_MBSPCASECMP=0; | |
3649 | GNULIB_MBSCASESTR=0; | |
3650 | GNULIB_MBSCSPN=0; | |
3651 | GNULIB_MBSPBRK=0; | |
3652 | GNULIB_MBSSPN=0; | |
3653 | GNULIB_MBSSEP=0; | |
3654 | GNULIB_MBSTOK_R=0; | |
3655 | GNULIB_STRERROR=0; | |
3656 | GNULIB_STRSIGNAL=0; | |
3657 | HAVE_DECL_MEMMEM=1; | |
3658 | HAVE_MEMPCPY=1; | |
3659 | HAVE_DECL_MEMRCHR=1; | |
3660 | HAVE_STPCPY=1; | |
3661 | HAVE_STPNCPY=1; | |
3662 | HAVE_STRCHRNUL=1; | |
3663 | HAVE_DECL_STRDUP=1; | |
3664 | HAVE_STRNDUP=1; | |
3665 | HAVE_DECL_STRNDUP=1; | |
3666 | HAVE_DECL_STRNLEN=1; | |
3667 | HAVE_STRPBRK=1; | |
3668 | HAVE_STRSEP=1; | |
3669 | HAVE_STRCASESTR=1; | |
3670 | HAVE_DECL_STRTOK_R=1; | |
3671 | HAVE_DECL_STRERROR=1; | |
3672 | HAVE_DECL_STRSIGNAL=1; | |
3673 | REPLACE_STRERROR=0; | |
3674 | REPLACE_STRSIGNAL=0; | |
3675 | REPLACE_MEMMEM=0; | |
3676 | REPLACE_STRCASESTR=0; | |
3677 | REPLACE_STRSTR=0; | |
3678 | ||
3679 | ||
3680 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 | |
3681 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 | |
3682 | if test "${ac_cv_have_decl_memmem+set}" = set; then | |
3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3684 | else | |
3685 | cat >conftest.$ac_ext <<_ACEOF | |
3686 | /* confdefs.h. */ | |
3687 | _ACEOF | |
3688 | cat confdefs.h >>conftest.$ac_ext | |
3689 | cat >>conftest.$ac_ext <<_ACEOF | |
3690 | /* end confdefs.h. */ | |
3691 | $ac_includes_default | |
3692 | int | |
3693 | main () | |
3694 | { | |
3695 | #ifndef memmem | |
3696 | char *p = (char *) memmem; | |
3697 | #endif | |
3698 | ||
3699 | ; | |
3700 | return 0; | |
3701 | } | |
3702 | _ACEOF | |
3703 | rm -f conftest.$ac_objext | |
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3705 | (eval $ac_compile) 2>conftest.er1 | |
3706 | ac_status=$? | |
3707 | grep -v '^ *+' conftest.er1 >conftest.err | |
3708 | rm -f conftest.er1 | |
3709 | cat conftest.err >&5 | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); } && | |
3712 | { ac_try='test -z "$ac_c_werror_flag" | |
3713 | || test ! -s conftest.err' | |
3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3715 | (eval $ac_try) 2>&5 | |
3716 | ac_status=$? | |
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3718 | (exit $ac_status); }; } && | |
3719 | { ac_try='test -s conftest.$ac_objext' | |
3720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3721 | (eval $ac_try) 2>&5 | |
3722 | ac_status=$? | |
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3724 | (exit $ac_status); }; }; then | |
3725 | ac_cv_have_decl_memmem=yes | |
3726 | else | |
3727 | echo "$as_me: failed program was:" >&5 | |
3728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3729 | ||
3730 | ac_cv_have_decl_memmem=no | |
3731 | fi | |
3732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3733 | fi | |
3734 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 | |
3735 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 | |
3736 | if test $ac_cv_have_decl_memmem = yes; then | |
3737 | ||
3738 | cat >>confdefs.h <<_ACEOF | |
3739 | #define HAVE_DECL_MEMMEM 1 | |
3740 | _ACEOF | |
3741 | ||
3742 | ||
3743 | else | |
3744 | cat >>confdefs.h <<_ACEOF | |
3745 | #define HAVE_DECL_MEMMEM 0 | |
3746 | _ACEOF | |
3747 | ||
3748 | ||
3749 | fi | |
3750 | ||
3751 | ||
3752 | ||
3753 | ||
3754 | ||
3755 | ||
3756 | ||
3757 | ||
3758 | ||
3759 | ||
3760 | ||
3761 | ||
3762 | ||
3763 | ||
3764 | ||
3765 | for ac_func in memmem | |
3766 | do | |
3767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3768 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3770 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3772 | else | |
3773 | cat >conftest.$ac_ext <<_ACEOF | |
3774 | /* confdefs.h. */ | |
3775 | _ACEOF | |
3776 | cat confdefs.h >>conftest.$ac_ext | |
3777 | cat >>conftest.$ac_ext <<_ACEOF | |
3778 | /* end confdefs.h. */ | |
3779 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3781 | #define $ac_func innocuous_$ac_func | |
3782 | ||
3783 | /* System header to define __stub macros and hopefully few prototypes, | |
3784 | which can conflict with char $ac_func (); below. | |
3785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3786 | <limits.h> exists even on freestanding compilers. */ | |
3787 | ||
3788 | #ifdef __STDC__ | |
3789 | # include <limits.h> | |
3790 | #else | |
3791 | # include <assert.h> | |
3792 | #endif | |
3793 | ||
3794 | #undef $ac_func | |
3795 | ||
3796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3797 | #ifdef __cplusplus | |
3798 | extern "C" | |
3799 | { | |
3800 | #endif | |
3801 | /* We use char because int might match the return type of a gcc2 | |
3802 | builtin and then its argument prototype would still apply. */ | |
3803 | char $ac_func (); | |
3804 | /* The GNU C library defines this for functions which it implements | |
3805 | to always fail with ENOSYS. Some functions are actually named | |
3806 | something starting with __ and the normal name is an alias. */ | |
3807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3808 | choke me | |
3809 | #else | |
3810 | char (*f) () = $ac_func; | |
3811 | #endif | |
3812 | #ifdef __cplusplus | |
3813 | } | |
3814 | #endif | |
3815 | ||
3816 | int | |
3817 | main () | |
3818 | { | |
3819 | return f != $ac_func; | |
3820 | ; | |
3821 | return 0; | |
3822 | } | |
3823 | _ACEOF | |
3824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3826 | (eval $ac_link) 2>conftest.er1 | |
3827 | ac_status=$? | |
3828 | grep -v '^ *+' conftest.er1 >conftest.err | |
3829 | rm -f conftest.er1 | |
3830 | cat conftest.err >&5 | |
3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3832 | (exit $ac_status); } && | |
3833 | { ac_try='test -z "$ac_c_werror_flag" | |
3834 | || test ! -s conftest.err' | |
3835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3836 | (eval $ac_try) 2>&5 | |
3837 | ac_status=$? | |
3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3839 | (exit $ac_status); }; } && | |
3840 | { ac_try='test -s conftest$ac_exeext' | |
3841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3842 | (eval $ac_try) 2>&5 | |
3843 | ac_status=$? | |
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3845 | (exit $ac_status); }; }; then | |
3846 | eval "$as_ac_var=yes" | |
3847 | else | |
3848 | echo "$as_me: failed program was:" >&5 | |
3849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3850 | ||
3851 | eval "$as_ac_var=no" | |
3852 | fi | |
3853 | rm -f conftest.err conftest.$ac_objext \ | |
3854 | conftest$ac_exeext conftest.$ac_ext | |
3855 | fi | |
3856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3857 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3858 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3859 | cat >>confdefs.h <<_ACEOF | |
3860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3861 | _ACEOF | |
3862 | ||
3863 | else | |
3864 | ||
3865 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
3866 | ||
3867 | fi | |
3868 | done | |
3869 | ||
3870 | ||
3871 | ||
3872 | : | |
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | ||
3878 | if test $ac_cv_have_decl_memmem = no; then | |
3879 | HAVE_DECL_MEMMEM=0 | |
3880 | fi | |
3881 | : | |
3882 | ||
3883 | ||
3884 | echo "$as_me:$LINENO: checking for long long int" >&5 | |
3885 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | |
3886 | if test "${ac_cv_type_long_long_int+set}" = set; then | |
3887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3888 | else | |
3889 | cat >conftest.$ac_ext <<_ACEOF | |
3890 | ||
3891 | /* confdefs.h. */ | |
3892 | _ACEOF | |
3893 | cat confdefs.h >>conftest.$ac_ext | |
3894 | cat >>conftest.$ac_ext <<_ACEOF | |
3895 | /* end confdefs.h. */ | |
3896 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
3897 | implementations with broken preprocessors. Perhaps this can | |
3898 | be revisited in 2012. In the meantime, code should not expect | |
3899 | #if to work with literals wider than 32 bits. */ | |
3900 | /* Test literals. */ | |
3901 | long long int ll = 9223372036854775807ll; | |
3902 | long long int nll = -9223372036854775807LL; | |
3903 | unsigned long long int ull = 18446744073709551615ULL; | |
3904 | /* Test constant expressions. */ | |
3905 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
3906 | ? 1 : -1)]; | |
3907 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
3908 | ? 1 : -1)]; | |
3909 | int i = 63; | |
3910 | int | |
3911 | main () | |
3912 | { | |
3913 | /* Test availability of runtime routines for shift and division. */ | |
3914 | long long int llmax = 9223372036854775807ll; | |
3915 | unsigned long long int ullmax = 18446744073709551615ull; | |
3916 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
3917 | | (llmax / ll) | (llmax % ll) | |
3918 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
3919 | | (ullmax / ull) | (ullmax % ull)); | |
3920 | ; | |
3921 | return 0; | |
3922 | } | |
3923 | ||
3924 | _ACEOF | |
3925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3927 | (eval $ac_link) 2>conftest.er1 | |
3928 | ac_status=$? | |
3929 | grep -v '^ *+' conftest.er1 >conftest.err | |
3930 | rm -f conftest.er1 | |
3931 | cat conftest.err >&5 | |
3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3933 | (exit $ac_status); } && | |
3934 | { ac_try='test -z "$ac_c_werror_flag" | |
3935 | || test ! -s conftest.err' | |
3936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3937 | (eval $ac_try) 2>&5 | |
3938 | ac_status=$? | |
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3940 | (exit $ac_status); }; } && | |
3941 | { ac_try='test -s conftest$ac_exeext' | |
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3943 | (eval $ac_try) 2>&5 | |
3944 | ac_status=$? | |
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3946 | (exit $ac_status); }; }; then | |
3947 | if test "$cross_compiling" = yes; then | |
3948 | ac_cv_type_long_long_int=yes | |
3949 | else | |
3950 | cat >conftest.$ac_ext <<_ACEOF | |
3951 | /* confdefs.h. */ | |
3952 | _ACEOF | |
3953 | cat confdefs.h >>conftest.$ac_ext | |
3954 | cat >>conftest.$ac_ext <<_ACEOF | |
3955 | /* end confdefs.h. */ | |
3956 | #include <limits.h> | |
3957 | #ifndef LLONG_MAX | |
3958 | # define HALF \ | |
3959 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
3960 | # define LLONG_MAX (HALF - 1 + HALF) | |
3961 | #endif | |
3962 | int | |
3963 | main () | |
3964 | { | |
3965 | long long int n = 1; | |
3966 | int i; | |
3967 | for (i = 0; ; i++) | |
3968 | { | |
3969 | long long int m = n << i; | |
3970 | if (m >> i != n) | |
3971 | return 1; | |
3972 | if (LLONG_MAX / 2 < m) | |
3973 | break; | |
3974 | } | |
3975 | return 0; | |
3976 | ; | |
3977 | return 0; | |
3978 | } | |
3979 | _ACEOF | |
3980 | rm -f conftest$ac_exeext | |
3981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3982 | (eval $ac_link) 2>&5 | |
3983 | ac_status=$? | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3987 | (eval $ac_try) 2>&5 | |
3988 | ac_status=$? | |
3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3990 | (exit $ac_status); }; }; then | |
3991 | ac_cv_type_long_long_int=yes | |
3992 | else | |
3993 | echo "$as_me: program exited with status $ac_status" >&5 | |
3994 | echo "$as_me: failed program was:" >&5 | |
3995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3996 | ||
3997 | ( exit $ac_status ) | |
3998 | ac_cv_type_long_long_int=no | |
3999 | fi | |
4000 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4001 | fi | |
4002 | else | |
4003 | echo "$as_me: failed program was:" >&5 | |
4004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4005 | ||
4006 | ac_cv_type_long_long_int=no | |
4007 | fi | |
4008 | rm -f conftest.err conftest.$ac_objext \ | |
4009 | conftest$ac_exeext conftest.$ac_ext | |
4010 | fi | |
4011 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | |
4012 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | |
4013 | if test $ac_cv_type_long_long_int = yes; then | |
4014 | ||
4015 | cat >>confdefs.h <<\_ACEOF | |
4016 | #define HAVE_LONG_LONG_INT 1 | |
4017 | _ACEOF | |
4018 | ||
4019 | fi | |
4020 | ||
4021 | ||
4022 | echo "$as_me:$LINENO: checking for unsigned long long int" >&5 | |
4023 | echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6 | |
4024 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then | |
4025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4026 | else | |
4027 | cat >conftest.$ac_ext <<_ACEOF | |
4028 | ||
4029 | /* confdefs.h. */ | |
4030 | _ACEOF | |
4031 | cat confdefs.h >>conftest.$ac_ext | |
4032 | cat >>conftest.$ac_ext <<_ACEOF | |
4033 | /* end confdefs.h. */ | |
4034 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
4035 | implementations with broken preprocessors. Perhaps this can | |
4036 | be revisited in 2012. In the meantime, code should not expect | |
4037 | #if to work with literals wider than 32 bits. */ | |
4038 | /* Test literals. */ | |
4039 | long long int ll = 9223372036854775807ll; | |
4040 | long long int nll = -9223372036854775807LL; | |
4041 | unsigned long long int ull = 18446744073709551615ULL; | |
4042 | /* Test constant expressions. */ | |
4043 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
4044 | ? 1 : -1)]; | |
4045 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
4046 | ? 1 : -1)]; | |
4047 | int i = 63; | |
4048 | int | |
4049 | main () | |
4050 | { | |
4051 | /* Test availability of runtime routines for shift and division. */ | |
4052 | long long int llmax = 9223372036854775807ll; | |
4053 | unsigned long long int ullmax = 18446744073709551615ull; | |
4054 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
4055 | | (llmax / ll) | (llmax % ll) | |
4056 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
4057 | | (ullmax / ull) | (ullmax % ull)); | |
4058 | ; | |
4059 | return 0; | |
4060 | } | |
4061 | ||
4062 | _ACEOF | |
4063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4065 | (eval $ac_link) 2>conftest.er1 | |
4066 | ac_status=$? | |
4067 | grep -v '^ *+' conftest.er1 >conftest.err | |
4068 | rm -f conftest.er1 | |
4069 | cat conftest.err >&5 | |
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4071 | (exit $ac_status); } && | |
4072 | { ac_try='test -z "$ac_c_werror_flag" | |
4073 | || test ! -s conftest.err' | |
4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4075 | (eval $ac_try) 2>&5 | |
4076 | ac_status=$? | |
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4078 | (exit $ac_status); }; } && | |
4079 | { ac_try='test -s conftest$ac_exeext' | |
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4081 | (eval $ac_try) 2>&5 | |
4082 | ac_status=$? | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4084 | (exit $ac_status); }; }; then | |
4085 | ac_cv_type_unsigned_long_long_int=yes | |
4086 | else | |
4087 | echo "$as_me: failed program was:" >&5 | |
4088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4089 | ||
4090 | ac_cv_type_unsigned_long_long_int=no | |
4091 | fi | |
4092 | rm -f conftest.err conftest.$ac_objext \ | |
4093 | conftest$ac_exeext conftest.$ac_ext | |
4094 | fi | |
4095 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
4096 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6 | |
4097 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
4098 | ||
4099 | cat >>confdefs.h <<\_ACEOF | |
4100 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | |
4101 | _ACEOF | |
4102 | ||
4103 | fi | |
4104 | ||
4105 | ||
4106 | ||
4107 | echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 | |
4108 | echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6 | |
4109 | if test "${gl_cv_have_include_next+set}" = set; then | |
4110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4111 | else | |
4112 | rm -rf conftestd1 conftestd2 | |
4113 | mkdir conftestd1 conftestd2 | |
4114 | cat <<EOF > conftestd1/conftest.h | |
4115 | #define DEFINED_IN_CONFTESTD1 | |
4116 | #include_next <conftest.h> | |
4117 | #ifdef DEFINED_IN_CONFTESTD2 | |
4118 | int foo; | |
4119 | #else | |
4120 | #error "include_next doesn't work" | |
4121 | #endif | |
4122 | EOF | |
4123 | cat <<EOF > conftestd2/conftest.h | |
4124 | #ifndef DEFINED_IN_CONFTESTD1 | |
4125 | #error "include_next test doesn't work" | |
4126 | #endif | |
4127 | #define DEFINED_IN_CONFTESTD2 | |
4128 | EOF | |
4129 | save_CPPFLAGS="$CPPFLAGS" | |
4130 | CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" | |
4131 | cat >conftest.$ac_ext <<_ACEOF | |
4132 | #include <conftest.h> | |
4133 | _ACEOF | |
4134 | rm -f conftest.$ac_objext | |
4135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4136 | (eval $ac_compile) 2>conftest.er1 | |
4137 | ac_status=$? | |
4138 | grep -v '^ *+' conftest.er1 >conftest.err | |
4139 | rm -f conftest.er1 | |
4140 | cat conftest.err >&5 | |
4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4142 | (exit $ac_status); } && | |
4143 | { ac_try='test -z "$ac_c_werror_flag" | |
4144 | || test ! -s conftest.err' | |
4145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4146 | (eval $ac_try) 2>&5 | |
4147 | ac_status=$? | |
4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4149 | (exit $ac_status); }; } && | |
4150 | { ac_try='test -s conftest.$ac_objext' | |
4151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4152 | (eval $ac_try) 2>&5 | |
4153 | ac_status=$? | |
4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4155 | (exit $ac_status); }; }; then | |
4156 | gl_cv_have_include_next=yes | |
4157 | else | |
4158 | echo "$as_me: failed program was:" >&5 | |
4159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4160 | ||
4161 | gl_cv_have_include_next=no | |
4162 | fi | |
4163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4164 | CPPFLAGS="$save_CPPFLAGS" | |
4165 | rm -rf conftestd1 conftestd2 | |
4166 | ||
4167 | fi | |
4168 | echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 | |
4169 | echo "${ECHO_T}$gl_cv_have_include_next" >&6 | |
4170 | if test $gl_cv_have_include_next = yes; then | |
4171 | ||
4172 | ||
4173 | cat >>confdefs.h <<\_ACEOF | |
4174 | #define HAVE_INCLUDE_NEXT 1 | |
4175 | _ACEOF | |
4176 | ||
4177 | ||
4178 | INCLUDE_NEXT=include_next | |
4179 | else | |
4180 | INCLUDE_NEXT=include | |
4181 | fi | |
4182 | ||
4183 | ||
4184 | ||
4185 | ||
4186 | ||
4187 | ||
4188 | ||
4189 | for ac_header in $gl_header_list | |
4190 | do | |
4191 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4197 | fi | |
4198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4199 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4200 | else | |
4201 | # Is the header compilable? | |
4202 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4203 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4204 | cat >conftest.$ac_ext <<_ACEOF | |
4205 | /* confdefs.h. */ | |
4206 | _ACEOF | |
4207 | cat confdefs.h >>conftest.$ac_ext | |
4208 | cat >>conftest.$ac_ext <<_ACEOF | |
4209 | /* end confdefs.h. */ | |
4210 | $ac_includes_default | |
4211 | #include <$ac_header> | |
4212 | _ACEOF | |
4213 | rm -f conftest.$ac_objext | |
4214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4215 | (eval $ac_compile) 2>conftest.er1 | |
4216 | ac_status=$? | |
4217 | grep -v '^ *+' conftest.er1 >conftest.err | |
4218 | rm -f conftest.er1 | |
4219 | cat conftest.err >&5 | |
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4221 | (exit $ac_status); } && | |
4222 | { ac_try='test -z "$ac_c_werror_flag" | |
4223 | || test ! -s conftest.err' | |
4224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4225 | (eval $ac_try) 2>&5 | |
4226 | ac_status=$? | |
4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4228 | (exit $ac_status); }; } && | |
4229 | { ac_try='test -s conftest.$ac_objext' | |
4230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4231 | (eval $ac_try) 2>&5 | |
4232 | ac_status=$? | |
4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4234 | (exit $ac_status); }; }; then | |
4235 | ac_header_compiler=yes | |
4236 | else | |
4237 | echo "$as_me: failed program was:" >&5 | |
4238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4239 | ||
4240 | ac_header_compiler=no | |
4241 | fi | |
4242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4243 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4244 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4245 | ||
4246 | # Is the header present? | |
4247 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4249 | cat >conftest.$ac_ext <<_ACEOF | |
4250 | /* confdefs.h. */ | |
4251 | _ACEOF | |
4252 | cat confdefs.h >>conftest.$ac_ext | |
4253 | cat >>conftest.$ac_ext <<_ACEOF | |
4254 | /* end confdefs.h. */ | |
4255 | #include <$ac_header> | |
4256 | _ACEOF | |
4257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4259 | ac_status=$? | |
4260 | grep -v '^ *+' conftest.er1 >conftest.err | |
4261 | rm -f conftest.er1 | |
4262 | cat conftest.err >&5 | |
4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4264 | (exit $ac_status); } >/dev/null; then | |
4265 | if test -s conftest.err; then | |
4266 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4267 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4268 | else | |
4269 | ac_cpp_err= | |
4270 | fi | |
4271 | else | |
4272 | ac_cpp_err=yes | |
4273 | fi | |
4274 | if test -z "$ac_cpp_err"; then | |
4275 | ac_header_preproc=yes | |
4276 | else | |
4277 | echo "$as_me: failed program was:" >&5 | |
4278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4279 | ||
4280 | ac_header_preproc=no | |
4281 | fi | |
4282 | rm -f conftest.err conftest.$ac_ext | |
4283 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4284 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4285 | ||
4286 | # So? What about this header? | |
4287 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4288 | yes:no: ) | |
4289 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4290 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4292 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4293 | ac_header_preproc=yes | |
4294 | ;; | |
4295 | no:yes:* ) | |
4296 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4297 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4298 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4299 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4300 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4301 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4302 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4303 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4304 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4305 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4306 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4307 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4308 | ( | |
4309 | cat <<\_ASBOX | |
4310 | ## ------------------------------------------ ## | |
4311 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4312 | ## ------------------------------------------ ## | |
4313 | _ASBOX | |
4314 | ) | | |
4315 | sed "s/^/$as_me: WARNING: /" >&2 | |
4316 | ;; | |
4317 | esac | |
4318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4322 | else | |
4323 | eval "$as_ac_Header=\$ac_header_preproc" | |
4324 | fi | |
4325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4326 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4327 | ||
4328 | fi | |
4329 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4330 | cat >>confdefs.h <<_ACEOF | |
4331 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4332 | _ACEOF | |
4333 | ||
4334 | fi | |
4335 | ||
4336 | done | |
4337 | ||
4338 | ||
4339 | ||
4340 | ||
4341 | ||
4342 | ||
4343 | ||
4344 | ||
4345 | ||
4346 | ||
4347 | ||
4348 | ||
4349 | echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 | |
4350 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 | |
4351 | if test "${ac_cv_c_restrict+set}" = set; then | |
4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4353 | else | |
4354 | ac_cv_c_restrict=no | |
4355 | # The order here caters to the fact that C++ does not require restrict. | |
4356 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
4357 | cat >conftest.$ac_ext <<_ACEOF | |
4358 | /* confdefs.h. */ | |
4359 | _ACEOF | |
4360 | cat confdefs.h >>conftest.$ac_ext | |
4361 | cat >>conftest.$ac_ext <<_ACEOF | |
4362 | /* end confdefs.h. */ | |
4363 | typedef int * int_ptr; | |
4364 | int foo (int_ptr $ac_kw ip) { | |
4365 | return ip[0]; | |
4366 | } | |
4367 | int | |
4368 | main () | |
4369 | { | |
4370 | int s[1]; | |
4371 | int * $ac_kw t = s; | |
4372 | t[0] = 0; | |
4373 | return foo(t) | |
4374 | ; | |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | rm -f conftest.$ac_objext | |
4379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4380 | (eval $ac_compile) 2>conftest.er1 | |
4381 | ac_status=$? | |
4382 | grep -v '^ *+' conftest.er1 >conftest.err | |
4383 | rm -f conftest.er1 | |
4384 | cat conftest.err >&5 | |
4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4386 | (exit $ac_status); } && | |
4387 | { ac_try='test -z "$ac_c_werror_flag" | |
4388 | || test ! -s conftest.err' | |
4389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4390 | (eval $ac_try) 2>&5 | |
4391 | ac_status=$? | |
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4393 | (exit $ac_status); }; } && | |
4394 | { ac_try='test -s conftest.$ac_objext' | |
4395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4396 | (eval $ac_try) 2>&5 | |
4397 | ac_status=$? | |
4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4399 | (exit $ac_status); }; }; then | |
4400 | ac_cv_c_restrict=$ac_kw | |
4401 | else | |
4402 | echo "$as_me: failed program was:" >&5 | |
4403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4404 | ||
4405 | fi | |
4406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4407 | test "$ac_cv_c_restrict" != no && break | |
4408 | done | |
4409 | ||
4410 | fi | |
4411 | echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
4412 | echo "${ECHO_T}$ac_cv_c_restrict" >&6 | |
4413 | ||
4414 | ||
4415 | case $ac_cv_c_restrict in | |
4416 | restrict) ;; | |
4417 | no) cat >>confdefs.h <<\_ACEOF | |
4418 | #define restrict | |
4419 | _ACEOF | |
4420 | ;; | |
4421 | *) cat >>confdefs.h <<_ACEOF | |
4422 | #define restrict $ac_cv_c_restrict | |
4423 | _ACEOF | |
4424 | ;; | |
4425 | esac | |
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | : | |
4440 | ||
4441 | ||
4442 | ||
4443 | ||
4444 | ||
4445 | ||
4446 | ||
4447 | if test $gl_cv_have_include_next = yes; then | |
4448 | gl_cv_next_string_h='<'string.h'>' | |
4449 | else | |
4450 | echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 | |
4451 | echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6 | |
4452 | if test "${gl_cv_next_string_h+set}" = set; then | |
4453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4454 | else | |
4455 | ||
4456 | if test $ac_cv_header_string_h = yes; then | |
4457 | cat >conftest.$ac_ext <<_ACEOF | |
4458 | /* confdefs.h. */ | |
4459 | _ACEOF | |
4460 | cat confdefs.h >>conftest.$ac_ext | |
4461 | cat >>conftest.$ac_ext <<_ACEOF | |
4462 | /* end confdefs.h. */ | |
4463 | #include <string.h> | |
4464 | ||
4465 | _ACEOF | |
4466 | gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4467 | sed -n '\#/string.h#{ | |
4468 | s#.*"\(.*/string.h\)".*#\1# | |
4469 | s#^/[^/]#//&# | |
4470 | p | |
4471 | q | |
4472 | }'`'"' | |
4473 | else | |
4474 | gl_cv_next_string_h='<'string.h'>' | |
4475 | fi | |
4476 | ||
4477 | fi | |
4478 | echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 | |
4479 | echo "${ECHO_T}$gl_cv_next_string_h" >&6 | |
4480 | fi | |
4481 | NEXT_STRING_H=$gl_cv_next_string_h | |
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | ||
4487 | GNULIB_WCWIDTH=0; | |
4488 | HAVE_DECL_WCWIDTH=1; | |
4489 | REPLACE_WCWIDTH=0; | |
4490 | WCHAR_H= | |
4491 | ||
4492 | ||
4493 | ||
4494 | ||
4495 | ||
4496 | if false; then | |
4497 | GL_COND_LIBTOOL_TRUE= | |
4498 | GL_COND_LIBTOOL_FALSE='#' | |
4499 | else | |
4500 | GL_COND_LIBTOOL_TRUE='#' | |
4501 | GL_COND_LIBTOOL_FALSE= | |
4502 | fi | |
4503 | ||
4504 | gl_cond_libtool=false | |
4505 | gl_libdeps= | |
4506 | gl_ltlibdeps= | |
4507 | ||
4508 | ||
4509 | ||
4510 | gl_source_base='gnulib' | |
4511 | ||
4512 | ||
4513 | ||
4514 | ||
4515 | ||
4516 | ||
4517 | ||
4518 | ||
4519 | ||
4520 | for ac_func in memchr | |
4521 | do | |
4522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4523 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4525 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4527 | else | |
4528 | cat >conftest.$ac_ext <<_ACEOF | |
4529 | /* confdefs.h. */ | |
4530 | _ACEOF | |
4531 | cat confdefs.h >>conftest.$ac_ext | |
4532 | cat >>conftest.$ac_ext <<_ACEOF | |
4533 | /* end confdefs.h. */ | |
4534 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4536 | #define $ac_func innocuous_$ac_func | |
4537 | ||
4538 | /* System header to define __stub macros and hopefully few prototypes, | |
4539 | which can conflict with char $ac_func (); below. | |
4540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4541 | <limits.h> exists even on freestanding compilers. */ | |
4542 | ||
4543 | #ifdef __STDC__ | |
4544 | # include <limits.h> | |
4545 | #else | |
4546 | # include <assert.h> | |
4547 | #endif | |
4548 | ||
4549 | #undef $ac_func | |
4550 | ||
4551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4552 | #ifdef __cplusplus | |
4553 | extern "C" | |
4554 | { | |
4555 | #endif | |
4556 | /* We use char because int might match the return type of a gcc2 | |
4557 | builtin and then its argument prototype would still apply. */ | |
4558 | char $ac_func (); | |
4559 | /* The GNU C library defines this for functions which it implements | |
4560 | to always fail with ENOSYS. Some functions are actually named | |
4561 | something starting with __ and the normal name is an alias. */ | |
4562 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4563 | choke me | |
4564 | #else | |
4565 | char (*f) () = $ac_func; | |
4566 | #endif | |
4567 | #ifdef __cplusplus | |
4568 | } | |
4569 | #endif | |
4570 | ||
4571 | int | |
4572 | main () | |
4573 | { | |
4574 | return f != $ac_func; | |
4575 | ; | |
4576 | return 0; | |
4577 | } | |
4578 | _ACEOF | |
4579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4581 | (eval $ac_link) 2>conftest.er1 | |
4582 | ac_status=$? | |
4583 | grep -v '^ *+' conftest.er1 >conftest.err | |
4584 | rm -f conftest.er1 | |
4585 | cat conftest.err >&5 | |
4586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4587 | (exit $ac_status); } && | |
4588 | { ac_try='test -z "$ac_c_werror_flag" | |
4589 | || test ! -s conftest.err' | |
4590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4591 | (eval $ac_try) 2>&5 | |
4592 | ac_status=$? | |
4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4594 | (exit $ac_status); }; } && | |
4595 | { ac_try='test -s conftest$ac_exeext' | |
4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4597 | (eval $ac_try) 2>&5 | |
4598 | ac_status=$? | |
4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4600 | (exit $ac_status); }; }; then | |
4601 | eval "$as_ac_var=yes" | |
4602 | else | |
4603 | echo "$as_me: failed program was:" >&5 | |
4604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4605 | ||
4606 | eval "$as_ac_var=no" | |
4607 | fi | |
4608 | rm -f conftest.err conftest.$ac_objext \ | |
4609 | conftest$ac_exeext conftest.$ac_ext | |
4610 | fi | |
4611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4612 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4613 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4614 | cat >>confdefs.h <<_ACEOF | |
4615 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4616 | _ACEOF | |
4617 | ||
4618 | else | |
4619 | ||
4620 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
4621 | ||
4622 | fi | |
4623 | done | |
4624 | ||
4625 | ||
4626 | if test $ac_cv_func_memchr = no; then | |
4627 | ||
4628 | ||
4629 | for ac_header in bp-sym.h | |
4630 | do | |
4631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4637 | fi | |
4638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4640 | else | |
4641 | # Is the header compilable? | |
4642 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4644 | cat >conftest.$ac_ext <<_ACEOF | |
4645 | /* confdefs.h. */ | |
4646 | _ACEOF | |
4647 | cat confdefs.h >>conftest.$ac_ext | |
4648 | cat >>conftest.$ac_ext <<_ACEOF | |
4649 | /* end confdefs.h. */ | |
4650 | $ac_includes_default | |
4651 | #include <$ac_header> | |
4652 | _ACEOF | |
4653 | rm -f conftest.$ac_objext | |
4654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4655 | (eval $ac_compile) 2>conftest.er1 | |
4656 | ac_status=$? | |
4657 | grep -v '^ *+' conftest.er1 >conftest.err | |
4658 | rm -f conftest.er1 | |
4659 | cat conftest.err >&5 | |
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4661 | (exit $ac_status); } && | |
4662 | { ac_try='test -z "$ac_c_werror_flag" | |
4663 | || test ! -s conftest.err' | |
4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4665 | (eval $ac_try) 2>&5 | |
4666 | ac_status=$? | |
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4668 | (exit $ac_status); }; } && | |
4669 | { ac_try='test -s conftest.$ac_objext' | |
4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4671 | (eval $ac_try) 2>&5 | |
4672 | ac_status=$? | |
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4674 | (exit $ac_status); }; }; then | |
4675 | ac_header_compiler=yes | |
4676 | else | |
4677 | echo "$as_me: failed program was:" >&5 | |
4678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4679 | ||
4680 | ac_header_compiler=no | |
4681 | fi | |
4682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4685 | ||
4686 | # Is the header present? | |
4687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4689 | cat >conftest.$ac_ext <<_ACEOF | |
4690 | /* confdefs.h. */ | |
4691 | _ACEOF | |
4692 | cat confdefs.h >>conftest.$ac_ext | |
4693 | cat >>conftest.$ac_ext <<_ACEOF | |
4694 | /* end confdefs.h. */ | |
4695 | #include <$ac_header> | |
4696 | _ACEOF | |
4697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4699 | ac_status=$? | |
4700 | grep -v '^ *+' conftest.er1 >conftest.err | |
4701 | rm -f conftest.er1 | |
4702 | cat conftest.err >&5 | |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); } >/dev/null; then | |
4705 | if test -s conftest.err; then | |
4706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4708 | else | |
4709 | ac_cpp_err= | |
4710 | fi | |
4711 | else | |
4712 | ac_cpp_err=yes | |
4713 | fi | |
4714 | if test -z "$ac_cpp_err"; then | |
4715 | ac_header_preproc=yes | |
4716 | else | |
4717 | echo "$as_me: failed program was:" >&5 | |
4718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4719 | ||
4720 | ac_header_preproc=no | |
4721 | fi | |
4722 | rm -f conftest.err conftest.$ac_ext | |
4723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4725 | ||
4726 | # So? What about this header? | |
4727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4728 | yes:no: ) | |
4729 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4730 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4732 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4733 | ac_header_preproc=yes | |
4734 | ;; | |
4735 | no:yes:* ) | |
4736 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4737 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4738 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4739 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4740 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4741 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4742 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4743 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4746 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4747 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4748 | ( | |
4749 | cat <<\_ASBOX | |
4750 | ## ------------------------------------------ ## | |
4751 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4752 | ## ------------------------------------------ ## | |
4753 | _ASBOX | |
4754 | ) | | |
4755 | sed "s/^/$as_me: WARNING: /" >&2 | |
4756 | ;; | |
4757 | esac | |
4758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4762 | else | |
4763 | eval "$as_ac_Header=\$ac_header_preproc" | |
4764 | fi | |
4765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4767 | ||
4768 | fi | |
4769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4770 | cat >>confdefs.h <<_ACEOF | |
4771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4772 | _ACEOF | |
4773 | ||
4774 | fi | |
4775 | ||
4776 | done | |
4777 | ||
4778 | ||
4779 | fi | |
4780 | ||
4781 | ||
4782 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
4783 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
4784 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4786 | else | |
4787 | if test "$cross_compiling" = yes; then | |
4788 | ac_cv_func_memcmp_working=no | |
4789 | else | |
4790 | cat >conftest.$ac_ext <<_ACEOF | |
4791 | /* confdefs.h. */ | |
4792 | _ACEOF | |
4793 | cat confdefs.h >>conftest.$ac_ext | |
4794 | cat >>conftest.$ac_ext <<_ACEOF | |
4795 | /* end confdefs.h. */ | |
4796 | $ac_includes_default | |
4797 | int | |
4798 | main () | |
4799 | { | |
4800 | ||
4801 | /* Some versions of memcmp are not 8-bit clean. */ | |
4802 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
4803 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
4804 | exit (1); | |
4805 | ||
4806 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
4807 | or more and with at least one buffer not starting on a 4-byte boundary. | |
4808 | William Lewis provided this test program. */ | |
4809 | { | |
4810 | char foo[21]; | |
4811 | char bar[21]; | |
4812 | int i; | |
4813 | for (i = 0; i < 4; i++) | |
4814 | { | |
4815 | char *a = foo + i; | |
4816 | char *b = bar + i; | |
4817 | strcpy (a, "--------01111111"); | |
4818 | strcpy (b, "--------10000000"); | |
4819 | if (memcmp (a, b, 16) >= 0) | |
4820 | exit (1); | |
4821 | } | |
4822 | exit (0); | |
4823 | } | |
4824 | ||
4825 | ; | |
4826 | return 0; | |
4827 | } | |
4828 | _ACEOF | |
4829 | rm -f conftest$ac_exeext | |
4830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4831 | (eval $ac_link) 2>&5 | |
4832 | ac_status=$? | |
4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4836 | (eval $ac_try) 2>&5 | |
4837 | ac_status=$? | |
4838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4839 | (exit $ac_status); }; }; then | |
4840 | ac_cv_func_memcmp_working=yes | |
4841 | else | |
4842 | echo "$as_me: program exited with status $ac_status" >&5 | |
4843 | echo "$as_me: failed program was:" >&5 | |
4844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4845 | ||
4846 | ( exit $ac_status ) | |
4847 | ac_cv_func_memcmp_working=no | |
4848 | fi | |
4849 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4850 | fi | |
4851 | fi | |
4852 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
4853 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
4854 | test $ac_cv_func_memcmp_working = no && | |
4855 | ||
4856 | ||
4857 | ||
4858 | ||
4859 | ||
4860 | ||
4861 | gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext" | |
4862 | ||
4863 | ||
4864 | if test $ac_cv_func_memcmp_working = no; then | |
4865 | ||
4866 | cat >>confdefs.h <<\_ACEOF | |
4867 | #define memcmp rpl_memcmp | |
4868 | _ACEOF | |
4869 | ||
4870 | : | |
4871 | fi | |
4872 | ||
4873 | ||
4874 | ||
4875 | if test $ac_cv_have_decl_memmem = yes; then | |
4876 | echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5 | |
4877 | echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6 | |
4878 | if test "${gl_cv_func_memmem_works+set}" = set; then | |
4879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4880 | else | |
4881 | if test "$cross_compiling" = yes; then | |
4882 | gl_cv_func_memmem_works="guessing no" | |
4883 | else | |
4884 | cat >conftest.$ac_ext <<_ACEOF | |
4885 | /* confdefs.h. */ | |
4886 | _ACEOF | |
4887 | cat confdefs.h >>conftest.$ac_ext | |
4888 | cat >>conftest.$ac_ext <<_ACEOF | |
4889 | /* end confdefs.h. */ | |
4890 | ||
4891 | #include <string.h> /* for memmem */ | |
4892 | #include <stdlib.h> /* for malloc */ | |
4893 | #include <unistd.h> /* for alarm */ | |
4894 | ||
4895 | int | |
4896 | main () | |
4897 | { | |
4898 | size_t m = 1000000; | |
4899 | char *haystack = (char *) malloc (2 * m + 1); | |
4900 | char *needle = (char *) malloc (m + 1); | |
4901 | void *result = 0; | |
4902 | /* Failure to compile this test due to missing alarm is okay, | |
4903 | since all such platforms (mingw) also lack memmem. */ | |
4904 | alarm (5); | |
4905 | /* Check for quadratic performance. */ | |
4906 | if (haystack && needle) | |
4907 | { | |
4908 | memset (haystack, 'A', 2 * m); | |
4909 | haystack[2 * m] = 'B'; | |
4910 | memset (needle, 'A', m); | |
4911 | needle[m] = 'B'; | |
4912 | result = memmem (haystack, 2 * m + 1, needle, m + 1); | |
4913 | } | |
4914 | /* Check for empty needle behavior. */ | |
4915 | return !result || !memmem ("a", 1, 0, 0); | |
4916 | ; | |
4917 | return 0; | |
4918 | } | |
4919 | _ACEOF | |
4920 | rm -f conftest$ac_exeext | |
4921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4922 | (eval $ac_link) 2>&5 | |
4923 | ac_status=$? | |
4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4927 | (eval $ac_try) 2>&5 | |
4928 | ac_status=$? | |
4929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4930 | (exit $ac_status); }; }; then | |
4931 | gl_cv_func_memmem_works=yes | |
4932 | else | |
4933 | echo "$as_me: program exited with status $ac_status" >&5 | |
4934 | echo "$as_me: failed program was:" >&5 | |
4935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4936 | ||
4937 | ( exit $ac_status ) | |
4938 | gl_cv_func_memmem_works=no | |
4939 | fi | |
4940 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4941 | fi | |
4942 | fi | |
4943 | echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5 | |
4944 | echo "${ECHO_T}$gl_cv_func_memmem_works" >&6 | |
4945 | if test "$gl_cv_func_memmem_works" != yes; then | |
4946 | REPLACE_MEMMEM=1 | |
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" | |
4955 | ||
4956 | fi | |
4957 | fi | |
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | for ac_func in memmem | |
4972 | do | |
4973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4976 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4978 | else | |
4979 | cat >conftest.$ac_ext <<_ACEOF | |
4980 | /* confdefs.h. */ | |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
4985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4987 | #define $ac_func innocuous_$ac_func | |
4988 | ||
4989 | /* System header to define __stub macros and hopefully few prototypes, | |
4990 | which can conflict with char $ac_func (); below. | |
4991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4992 | <limits.h> exists even on freestanding compilers. */ | |
4993 | ||
4994 | #ifdef __STDC__ | |
4995 | # include <limits.h> | |
4996 | #else | |
4997 | # include <assert.h> | |
4998 | #endif | |
4999 | ||
5000 | #undef $ac_func | |
5001 | ||
5002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5003 | #ifdef __cplusplus | |
5004 | extern "C" | |
5005 | { | |
5006 | #endif | |
5007 | /* We use char because int might match the return type of a gcc2 | |
5008 | builtin and then its argument prototype would still apply. */ | |
5009 | char $ac_func (); | |
5010 | /* The GNU C library defines this for functions which it implements | |
5011 | to always fail with ENOSYS. Some functions are actually named | |
5012 | something starting with __ and the normal name is an alias. */ | |
5013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5014 | choke me | |
5015 | #else | |
5016 | char (*f) () = $ac_func; | |
5017 | #endif | |
5018 | #ifdef __cplusplus | |
5019 | } | |
5020 | #endif | |
5021 | ||
5022 | int | |
5023 | main () | |
5024 | { | |
5025 | return f != $ac_func; | |
5026 | ; | |
5027 | return 0; | |
5028 | } | |
5029 | _ACEOF | |
5030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5032 | (eval $ac_link) 2>conftest.er1 | |
5033 | ac_status=$? | |
5034 | grep -v '^ *+' conftest.er1 >conftest.err | |
5035 | rm -f conftest.er1 | |
5036 | cat conftest.err >&5 | |
5037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5038 | (exit $ac_status); } && | |
5039 | { ac_try='test -z "$ac_c_werror_flag" | |
5040 | || test ! -s conftest.err' | |
5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5042 | (eval $ac_try) 2>&5 | |
5043 | ac_status=$? | |
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5045 | (exit $ac_status); }; } && | |
5046 | { ac_try='test -s conftest$ac_exeext' | |
5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5048 | (eval $ac_try) 2>&5 | |
5049 | ac_status=$? | |
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5051 | (exit $ac_status); }; }; then | |
5052 | eval "$as_ac_var=yes" | |
5053 | else | |
5054 | echo "$as_me: failed program was:" >&5 | |
5055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5056 | ||
5057 | eval "$as_ac_var=no" | |
5058 | fi | |
5059 | rm -f conftest.err conftest.$ac_objext \ | |
5060 | conftest$ac_exeext conftest.$ac_ext | |
5061 | fi | |
5062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5065 | cat >>confdefs.h <<_ACEOF | |
5066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5067 | _ACEOF | |
5068 | ||
5069 | else | |
5070 | ||
5071 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
5072 | ||
5073 | fi | |
5074 | done | |
5075 | ||
5076 | ||
5077 | ||
5078 | : | |
5079 | ||
5080 | ||
5081 | ||
5082 | ||
5083 | ||
5084 | if test $ac_cv_have_decl_memmem = no; then | |
5085 | HAVE_DECL_MEMMEM=0 | |
5086 | fi | |
5087 | : | |
5088 | ||
5089 | ||
5090 | ||
5091 | GNULIB_MEMMEM=1 | |
5092 | ||
5093 | ||
5094 | ||
5095 | ||
5096 | if test $ac_cv_type_long_long_int = yes; then | |
5097 | HAVE_LONG_LONG_INT=1 | |
5098 | else | |
5099 | HAVE_LONG_LONG_INT=0 | |
5100 | fi | |
5101 | ||
5102 | ||
5103 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
5104 | HAVE_UNSIGNED_LONG_LONG_INT=1 | |
5105 | else | |
5106 | HAVE_UNSIGNED_LONG_LONG_INT=0 | |
5107 | fi | |
5108 | ||
5109 | ||
5110 | if test $ac_cv_header_inttypes_h = yes; then | |
5111 | HAVE_INTTYPES_H=1 | |
5112 | else | |
5113 | HAVE_INTTYPES_H=0 | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | if test $ac_cv_header_sys_types_h = yes; then | |
5118 | HAVE_SYS_TYPES_H=1 | |
5119 | else | |
5120 | HAVE_SYS_TYPES_H=0 | |
5121 | fi | |
5122 | ||
5123 | ||
5124 | ||
5125 | ||
5126 | ||
5127 | : | |
5128 | ||
5129 | ||
5130 | ||
5131 | ||
5132 | ||
5133 | ||
5134 | ||
5135 | if test $gl_cv_have_include_next = yes; then | |
5136 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5137 | else | |
5138 | echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 | |
5139 | echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6 | |
5140 | if test "${gl_cv_next_stdint_h+set}" = set; then | |
5141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5142 | else | |
5143 | ||
5144 | if test $ac_cv_header_stdint_h = yes; then | |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
5146 | /* confdefs.h. */ | |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
5150 | /* end confdefs.h. */ | |
5151 | #include <stdint.h> | |
5152 | ||
5153 | _ACEOF | |
5154 | gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5155 | sed -n '\#/stdint.h#{ | |
5156 | s#.*"\(.*/stdint.h\)".*#\1# | |
5157 | s#^/[^/]#//&# | |
5158 | p | |
5159 | q | |
5160 | }'`'"' | |
5161 | else | |
5162 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5163 | fi | |
5164 | ||
5165 | fi | |
5166 | echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 | |
5167 | echo "${ECHO_T}$gl_cv_next_stdint_h" >&6 | |
5168 | fi | |
5169 | NEXT_STDINT_H=$gl_cv_next_stdint_h | |
5170 | ||
5171 | ||
5172 | ||
5173 | if test $ac_cv_header_stdint_h = yes; then | |
5174 | HAVE_STDINT_H=1 | |
5175 | else | |
5176 | HAVE_STDINT_H=0 | |
5177 | fi | |
5178 | ||
5179 | ||
5180 | if test $ac_cv_header_stdint_h = yes; then | |
5181 | echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 | |
5182 | echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6 | |
5183 | if test "${gl_cv_header_working_stdint_h+set}" = set; then | |
5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5185 | else | |
5186 | gl_cv_header_working_stdint_h=no | |
5187 | cat >conftest.$ac_ext <<_ACEOF | |
5188 | ||
5189 | /* confdefs.h. */ | |
5190 | _ACEOF | |
5191 | cat confdefs.h >>conftest.$ac_ext | |
5192 | cat >>conftest.$ac_ext <<_ACEOF | |
5193 | /* end confdefs.h. */ | |
5194 | ||
5195 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
5196 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
5197 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
5198 | #include <stdint.h> | |
5199 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
5200 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
5201 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
5202 | #endif | |
5203 | ||
5204 | ||
5205 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5206 | included before <wchar.h>. */ | |
5207 | #include <stddef.h> | |
5208 | #include <signal.h> | |
5209 | #if HAVE_WCHAR_H | |
5210 | # include <stdio.h> | |
5211 | # include <time.h> | |
5212 | # include <wchar.h> | |
5213 | #endif | |
5214 | ||
5215 | ||
5216 | #ifdef INT8_MAX | |
5217 | int8_t a1 = INT8_MAX; | |
5218 | int8_t a1min = INT8_MIN; | |
5219 | #endif | |
5220 | #ifdef INT16_MAX | |
5221 | int16_t a2 = INT16_MAX; | |
5222 | int16_t a2min = INT16_MIN; | |
5223 | #endif | |
5224 | #ifdef INT32_MAX | |
5225 | int32_t a3 = INT32_MAX; | |
5226 | int32_t a3min = INT32_MIN; | |
5227 | #endif | |
5228 | #ifdef INT64_MAX | |
5229 | int64_t a4 = INT64_MAX; | |
5230 | int64_t a4min = INT64_MIN; | |
5231 | #endif | |
5232 | #ifdef UINT8_MAX | |
5233 | uint8_t b1 = UINT8_MAX; | |
5234 | #else | |
5235 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
5236 | #endif | |
5237 | #ifdef UINT16_MAX | |
5238 | uint16_t b2 = UINT16_MAX; | |
5239 | #endif | |
5240 | #ifdef UINT32_MAX | |
5241 | uint32_t b3 = UINT32_MAX; | |
5242 | #endif | |
5243 | #ifdef UINT64_MAX | |
5244 | uint64_t b4 = UINT64_MAX; | |
5245 | #endif | |
5246 | int_least8_t c1 = INT8_C (0x7f); | |
5247 | int_least8_t c1max = INT_LEAST8_MAX; | |
5248 | int_least8_t c1min = INT_LEAST8_MIN; | |
5249 | int_least16_t c2 = INT16_C (0x7fff); | |
5250 | int_least16_t c2max = INT_LEAST16_MAX; | |
5251 | int_least16_t c2min = INT_LEAST16_MIN; | |
5252 | int_least32_t c3 = INT32_C (0x7fffffff); | |
5253 | int_least32_t c3max = INT_LEAST32_MAX; | |
5254 | int_least32_t c3min = INT_LEAST32_MIN; | |
5255 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
5256 | int_least64_t c4max = INT_LEAST64_MAX; | |
5257 | int_least64_t c4min = INT_LEAST64_MIN; | |
5258 | uint_least8_t d1 = UINT8_C (0xff); | |
5259 | uint_least8_t d1max = UINT_LEAST8_MAX; | |
5260 | uint_least16_t d2 = UINT16_C (0xffff); | |
5261 | uint_least16_t d2max = UINT_LEAST16_MAX; | |
5262 | uint_least32_t d3 = UINT32_C (0xffffffff); | |
5263 | uint_least32_t d3max = UINT_LEAST32_MAX; | |
5264 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
5265 | uint_least64_t d4max = UINT_LEAST64_MAX; | |
5266 | int_fast8_t e1 = INT_FAST8_MAX; | |
5267 | int_fast8_t e1min = INT_FAST8_MIN; | |
5268 | int_fast16_t e2 = INT_FAST16_MAX; | |
5269 | int_fast16_t e2min = INT_FAST16_MIN; | |
5270 | int_fast32_t e3 = INT_FAST32_MAX; | |
5271 | int_fast32_t e3min = INT_FAST32_MIN; | |
5272 | int_fast64_t e4 = INT_FAST64_MAX; | |
5273 | int_fast64_t e4min = INT_FAST64_MIN; | |
5274 | uint_fast8_t f1 = UINT_FAST8_MAX; | |
5275 | uint_fast16_t f2 = UINT_FAST16_MAX; | |
5276 | uint_fast32_t f3 = UINT_FAST32_MAX; | |
5277 | uint_fast64_t f4 = UINT_FAST64_MAX; | |
5278 | #ifdef INTPTR_MAX | |
5279 | intptr_t g = INTPTR_MAX; | |
5280 | intptr_t gmin = INTPTR_MIN; | |
5281 | #endif | |
5282 | #ifdef UINTPTR_MAX | |
5283 | uintptr_t h = UINTPTR_MAX; | |
5284 | #endif | |
5285 | intmax_t i = INTMAX_MAX; | |
5286 | uintmax_t j = UINTMAX_MAX; | |
5287 | ||
5288 | #include <limits.h> /* for CHAR_BIT */ | |
5289 | #define TYPE_MINIMUM(t) \ | |
5290 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | |
5291 | #define TYPE_MAXIMUM(t) \ | |
5292 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | |
5293 | struct s { | |
5294 | int check_PTRDIFF: | |
5295 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
5296 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
5297 | ? 1 : -1; | |
5298 | /* Detect bug in FreeBSD 6.0 / ia64. */ | |
5299 | int check_SIG_ATOMIC: | |
5300 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
5301 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
5302 | ? 1 : -1; | |
5303 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
5304 | int check_WCHAR: | |
5305 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
5306 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
5307 | ? 1 : -1; | |
5308 | /* Detect bug in mingw. */ | |
5309 | int check_WINT: | |
5310 | WINT_MIN == TYPE_MINIMUM (wint_t) | |
5311 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
5312 | ? 1 : -1; | |
5313 | ||
5314 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
5315 | int check_UINT8_C: | |
5316 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
5317 | int check_UINT16_C: | |
5318 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
5319 | ||
5320 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
5321 | #ifdef UINT8_MAX | |
5322 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
5323 | #endif | |
5324 | #ifdef UINT16_MAX | |
5325 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
5326 | #endif | |
5327 | #ifdef UINT32_MAX | |
5328 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
5329 | #endif | |
5330 | #ifdef UINT64_MAX | |
5331 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
5332 | #endif | |
5333 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
5334 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
5335 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
5336 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
5337 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
5338 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
5339 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
5340 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
5341 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
5342 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
5343 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
5344 | }; | |
5345 | ||
5346 | int | |
5347 | main () | |
5348 | { | |
5349 | ||
5350 | ; | |
5351 | return 0; | |
5352 | } | |
5353 | _ACEOF | |
5354 | rm -f conftest.$ac_objext | |
5355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5356 | (eval $ac_compile) 2>conftest.er1 | |
5357 | ac_status=$? | |
5358 | grep -v '^ *+' conftest.er1 >conftest.err | |
5359 | rm -f conftest.er1 | |
5360 | cat conftest.err >&5 | |
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5362 | (exit $ac_status); } && | |
5363 | { ac_try='test -z "$ac_c_werror_flag" | |
5364 | || test ! -s conftest.err' | |
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5366 | (eval $ac_try) 2>&5 | |
5367 | ac_status=$? | |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5369 | (exit $ac_status); }; } && | |
5370 | { ac_try='test -s conftest.$ac_objext' | |
5371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5372 | (eval $ac_try) 2>&5 | |
5373 | ac_status=$? | |
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5375 | (exit $ac_status); }; }; then | |
5376 | gl_cv_header_working_stdint_h=yes | |
5377 | else | |
5378 | echo "$as_me: failed program was:" >&5 | |
5379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5380 | ||
5381 | fi | |
5382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5383 | fi | |
5384 | echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 | |
5385 | echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6 | |
5386 | fi | |
5387 | if test "$gl_cv_header_working_stdint_h" = yes; then | |
5388 | STDINT_H= | |
5389 | else | |
5390 | ||
5391 | ||
5392 | for ac_header in sys/inttypes.h sys/bitypes.h | |
5393 | do | |
5394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5400 | fi | |
5401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5403 | else | |
5404 | # Is the header compilable? | |
5405 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5406 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5407 | cat >conftest.$ac_ext <<_ACEOF | |
5408 | /* confdefs.h. */ | |
5409 | _ACEOF | |
5410 | cat confdefs.h >>conftest.$ac_ext | |
5411 | cat >>conftest.$ac_ext <<_ACEOF | |
5412 | /* end confdefs.h. */ | |
5413 | $ac_includes_default | |
5414 | #include <$ac_header> | |
5415 | _ACEOF | |
5416 | rm -f conftest.$ac_objext | |
5417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5418 | (eval $ac_compile) 2>conftest.er1 | |
5419 | ac_status=$? | |
5420 | grep -v '^ *+' conftest.er1 >conftest.err | |
5421 | rm -f conftest.er1 | |
5422 | cat conftest.err >&5 | |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5424 | (exit $ac_status); } && | |
5425 | { ac_try='test -z "$ac_c_werror_flag" | |
5426 | || test ! -s conftest.err' | |
5427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5428 | (eval $ac_try) 2>&5 | |
5429 | ac_status=$? | |
5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5431 | (exit $ac_status); }; } && | |
5432 | { ac_try='test -s conftest.$ac_objext' | |
5433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5434 | (eval $ac_try) 2>&5 | |
5435 | ac_status=$? | |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5437 | (exit $ac_status); }; }; then | |
5438 | ac_header_compiler=yes | |
5439 | else | |
5440 | echo "$as_me: failed program was:" >&5 | |
5441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5442 | ||
5443 | ac_header_compiler=no | |
5444 | fi | |
5445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5447 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5448 | ||
5449 | # Is the header present? | |
5450 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5452 | cat >conftest.$ac_ext <<_ACEOF | |
5453 | /* confdefs.h. */ | |
5454 | _ACEOF | |
5455 | cat confdefs.h >>conftest.$ac_ext | |
5456 | cat >>conftest.$ac_ext <<_ACEOF | |
5457 | /* end confdefs.h. */ | |
5458 | #include <$ac_header> | |
5459 | _ACEOF | |
5460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5462 | ac_status=$? | |
5463 | grep -v '^ *+' conftest.er1 >conftest.err | |
5464 | rm -f conftest.er1 | |
5465 | cat conftest.err >&5 | |
5466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5467 | (exit $ac_status); } >/dev/null; then | |
5468 | if test -s conftest.err; then | |
5469 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5471 | else | |
5472 | ac_cpp_err= | |
5473 | fi | |
5474 | else | |
5475 | ac_cpp_err=yes | |
5476 | fi | |
5477 | if test -z "$ac_cpp_err"; then | |
5478 | ac_header_preproc=yes | |
5479 | else | |
5480 | echo "$as_me: failed program was:" >&5 | |
5481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5482 | ||
5483 | ac_header_preproc=no | |
5484 | fi | |
5485 | rm -f conftest.err conftest.$ac_ext | |
5486 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5487 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5488 | ||
5489 | # So? What about this header? | |
5490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5491 | yes:no: ) | |
5492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5493 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5496 | ac_header_preproc=yes | |
5497 | ;; | |
5498 | no:yes:* ) | |
5499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5506 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5510 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5511 | ( | |
5512 | cat <<\_ASBOX | |
5513 | ## ------------------------------------------ ## | |
5514 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5515 | ## ------------------------------------------ ## | |
5516 | _ASBOX | |
5517 | ) | | |
5518 | sed "s/^/$as_me: WARNING: /" >&2 | |
5519 | ;; | |
5520 | esac | |
5521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5525 | else | |
5526 | eval "$as_ac_Header=\$ac_header_preproc" | |
5527 | fi | |
5528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5530 | ||
5531 | fi | |
5532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5533 | cat >>confdefs.h <<_ACEOF | |
5534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5535 | _ACEOF | |
5536 | ||
5537 | fi | |
5538 | ||
5539 | done | |
5540 | ||
5541 | if test $ac_cv_header_sys_inttypes_h = yes; then | |
5542 | HAVE_SYS_INTTYPES_H=1 | |
5543 | else | |
5544 | HAVE_SYS_INTTYPES_H=0 | |
5545 | fi | |
5546 | ||
5547 | if test $ac_cv_header_sys_bitypes_h = yes; then | |
5548 | HAVE_SYS_BITYPES_H=1 | |
5549 | else | |
5550 | HAVE_SYS_BITYPES_H=0 | |
5551 | fi | |
5552 | ||
5553 | ||
5554 | ||
5555 | : | |
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
5571 | echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 | |
5572 | echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6 | |
5573 | if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then | |
5574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5575 | else | |
5576 | if test "$cross_compiling" = yes; then | |
5577 | # Depending upon the size, compute the lo and hi bounds. | |
5578 | cat >conftest.$ac_ext <<_ACEOF | |
5579 | /* confdefs.h. */ | |
5580 | _ACEOF | |
5581 | cat confdefs.h >>conftest.$ac_ext | |
5582 | cat >>conftest.$ac_ext <<_ACEOF | |
5583 | /* end confdefs.h. */ | |
5584 | ||
5585 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5586 | included before <wchar.h>. */ | |
5587 | #include <stddef.h> | |
5588 | #include <signal.h> | |
5589 | #if HAVE_WCHAR_H | |
5590 | # include <stdio.h> | |
5591 | # include <time.h> | |
5592 | # include <wchar.h> | |
5593 | #endif | |
5594 | ||
5595 | #include <limits.h> | |
5596 | int | |
5597 | main () | |
5598 | { | |
5599 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; | |
5600 | test_array [0] = 0 | |
5601 | ||
5602 | ; | |
5603 | return 0; | |
5604 | } | |
5605 | _ACEOF | |
5606 | rm -f conftest.$ac_objext | |
5607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5608 | (eval $ac_compile) 2>conftest.er1 | |
5609 | ac_status=$? | |
5610 | grep -v '^ *+' conftest.er1 >conftest.err | |
5611 | rm -f conftest.er1 | |
5612 | cat conftest.err >&5 | |
5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5614 | (exit $ac_status); } && | |
5615 | { ac_try='test -z "$ac_c_werror_flag" | |
5616 | || test ! -s conftest.err' | |
5617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5618 | (eval $ac_try) 2>&5 | |
5619 | ac_status=$? | |
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5621 | (exit $ac_status); }; } && | |
5622 | { ac_try='test -s conftest.$ac_objext' | |
5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5624 | (eval $ac_try) 2>&5 | |
5625 | ac_status=$? | |
5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); }; }; then | |
5628 | ac_lo=0 ac_mid=0 | |
5629 | while :; do | |
5630 | cat >conftest.$ac_ext <<_ACEOF | |
5631 | /* confdefs.h. */ | |
5632 | _ACEOF | |
5633 | cat confdefs.h >>conftest.$ac_ext | |
5634 | cat >>conftest.$ac_ext <<_ACEOF | |
5635 | /* end confdefs.h. */ | |
5636 | ||
5637 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5638 | included before <wchar.h>. */ | |
5639 | #include <stddef.h> | |
5640 | #include <signal.h> | |
5641 | #if HAVE_WCHAR_H | |
5642 | # include <stdio.h> | |
5643 | # include <time.h> | |
5644 | # include <wchar.h> | |
5645 | #endif | |
5646 | ||
5647 | #include <limits.h> | |
5648 | int | |
5649 | main () | |
5650 | { | |
5651 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
5652 | test_array [0] = 0 | |
5653 | ||
5654 | ; | |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
5658 | rm -f conftest.$ac_objext | |
5659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5660 | (eval $ac_compile) 2>conftest.er1 | |
5661 | ac_status=$? | |
5662 | grep -v '^ *+' conftest.er1 >conftest.err | |
5663 | rm -f conftest.er1 | |
5664 | cat conftest.err >&5 | |
5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5666 | (exit $ac_status); } && | |
5667 | { ac_try='test -z "$ac_c_werror_flag" | |
5668 | || test ! -s conftest.err' | |
5669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5670 | (eval $ac_try) 2>&5 | |
5671 | ac_status=$? | |
5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5673 | (exit $ac_status); }; } && | |
5674 | { ac_try='test -s conftest.$ac_objext' | |
5675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5676 | (eval $ac_try) 2>&5 | |
5677 | ac_status=$? | |
5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5679 | (exit $ac_status); }; }; then | |
5680 | ac_hi=$ac_mid; break | |
5681 | else | |
5682 | echo "$as_me: failed program was:" >&5 | |
5683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5684 | ||
5685 | ac_lo=`expr $ac_mid + 1` | |
5686 | if test $ac_lo -le $ac_mid; then | |
5687 | ac_lo= ac_hi= | |
5688 | break | |
5689 | fi | |
5690 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5691 | fi | |
5692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5693 | done | |
5694 | else | |
5695 | echo "$as_me: failed program was:" >&5 | |
5696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5697 | ||
5698 | cat >conftest.$ac_ext <<_ACEOF | |
5699 | /* confdefs.h. */ | |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | ||
5705 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5706 | included before <wchar.h>. */ | |
5707 | #include <stddef.h> | |
5708 | #include <signal.h> | |
5709 | #if HAVE_WCHAR_H | |
5710 | # include <stdio.h> | |
5711 | # include <time.h> | |
5712 | # include <wchar.h> | |
5713 | #endif | |
5714 | ||
5715 | #include <limits.h> | |
5716 | int | |
5717 | main () | |
5718 | { | |
5719 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; | |
5720 | test_array [0] = 0 | |
5721 | ||
5722 | ; | |
5723 | return 0; | |
5724 | } | |
5725 | _ACEOF | |
5726 | rm -f conftest.$ac_objext | |
5727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5728 | (eval $ac_compile) 2>conftest.er1 | |
5729 | ac_status=$? | |
5730 | grep -v '^ *+' conftest.er1 >conftest.err | |
5731 | rm -f conftest.er1 | |
5732 | cat conftest.err >&5 | |
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5734 | (exit $ac_status); } && | |
5735 | { ac_try='test -z "$ac_c_werror_flag" | |
5736 | || test ! -s conftest.err' | |
5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5738 | (eval $ac_try) 2>&5 | |
5739 | ac_status=$? | |
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5741 | (exit $ac_status); }; } && | |
5742 | { ac_try='test -s conftest.$ac_objext' | |
5743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5744 | (eval $ac_try) 2>&5 | |
5745 | ac_status=$? | |
5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5747 | (exit $ac_status); }; }; then | |
5748 | ac_hi=-1 ac_mid=-1 | |
5749 | while :; do | |
5750 | cat >conftest.$ac_ext <<_ACEOF | |
5751 | /* confdefs.h. */ | |
5752 | _ACEOF | |
5753 | cat confdefs.h >>conftest.$ac_ext | |
5754 | cat >>conftest.$ac_ext <<_ACEOF | |
5755 | /* end confdefs.h. */ | |
5756 | ||
5757 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5758 | included before <wchar.h>. */ | |
5759 | #include <stddef.h> | |
5760 | #include <signal.h> | |
5761 | #if HAVE_WCHAR_H | |
5762 | # include <stdio.h> | |
5763 | # include <time.h> | |
5764 | # include <wchar.h> | |
5765 | #endif | |
5766 | ||
5767 | #include <limits.h> | |
5768 | int | |
5769 | main () | |
5770 | { | |
5771 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; | |
5772 | test_array [0] = 0 | |
5773 | ||
5774 | ; | |
5775 | return 0; | |
5776 | } | |
5777 | _ACEOF | |
5778 | rm -f conftest.$ac_objext | |
5779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5780 | (eval $ac_compile) 2>conftest.er1 | |
5781 | ac_status=$? | |
5782 | grep -v '^ *+' conftest.er1 >conftest.err | |
5783 | rm -f conftest.er1 | |
5784 | cat conftest.err >&5 | |
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5786 | (exit $ac_status); } && | |
5787 | { ac_try='test -z "$ac_c_werror_flag" | |
5788 | || test ! -s conftest.err' | |
5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5790 | (eval $ac_try) 2>&5 | |
5791 | ac_status=$? | |
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 | (exit $ac_status); }; } && | |
5794 | { ac_try='test -s conftest.$ac_objext' | |
5795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5796 | (eval $ac_try) 2>&5 | |
5797 | ac_status=$? | |
5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5799 | (exit $ac_status); }; }; then | |
5800 | ac_lo=$ac_mid; break | |
5801 | else | |
5802 | echo "$as_me: failed program was:" >&5 | |
5803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5804 | ||
5805 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5806 | if test $ac_mid -le $ac_hi; then | |
5807 | ac_lo= ac_hi= | |
5808 | break | |
5809 | fi | |
5810 | ac_mid=`expr 2 '*' $ac_mid` | |
5811 | fi | |
5812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5813 | done | |
5814 | else | |
5815 | echo "$as_me: failed program was:" >&5 | |
5816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5817 | ||
5818 | ac_lo= ac_hi= | |
5819 | fi | |
5820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5821 | fi | |
5822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5823 | # Binary search between lo and hi bounds. | |
5824 | while test "x$ac_lo" != "x$ac_hi"; do | |
5825 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5826 | cat >conftest.$ac_ext <<_ACEOF | |
5827 | /* confdefs.h. */ | |
5828 | _ACEOF | |
5829 | cat confdefs.h >>conftest.$ac_ext | |
5830 | cat >>conftest.$ac_ext <<_ACEOF | |
5831 | /* end confdefs.h. */ | |
5832 | ||
5833 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5834 | included before <wchar.h>. */ | |
5835 | #include <stddef.h> | |
5836 | #include <signal.h> | |
5837 | #if HAVE_WCHAR_H | |
5838 | # include <stdio.h> | |
5839 | # include <time.h> | |
5840 | # include <wchar.h> | |
5841 | #endif | |
5842 | ||
5843 | #include <limits.h> | |
5844 | int | |
5845 | main () | |
5846 | { | |
5847 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
5848 | test_array [0] = 0 | |
5849 | ||
5850 | ; | |
5851 | return 0; | |
5852 | } | |
5853 | _ACEOF | |
5854 | rm -f conftest.$ac_objext | |
5855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5856 | (eval $ac_compile) 2>conftest.er1 | |
5857 | ac_status=$? | |
5858 | grep -v '^ *+' conftest.er1 >conftest.err | |
5859 | rm -f conftest.er1 | |
5860 | cat conftest.err >&5 | |
5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5862 | (exit $ac_status); } && | |
5863 | { ac_try='test -z "$ac_c_werror_flag" | |
5864 | || test ! -s conftest.err' | |
5865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5866 | (eval $ac_try) 2>&5 | |
5867 | ac_status=$? | |
5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5869 | (exit $ac_status); }; } && | |
5870 | { ac_try='test -s conftest.$ac_objext' | |
5871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5872 | (eval $ac_try) 2>&5 | |
5873 | ac_status=$? | |
5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5875 | (exit $ac_status); }; }; then | |
5876 | ac_hi=$ac_mid | |
5877 | else | |
5878 | echo "$as_me: failed program was:" >&5 | |
5879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5880 | ||
5881 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5882 | fi | |
5883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5884 | done | |
5885 | case $ac_lo in | |
5886 | ?*) result=$ac_lo;; | |
5887 | '') result=unknown ;; | |
5888 | esac | |
5889 | else | |
5890 | if test "$cross_compiling" = yes; then | |
d5af19ba DJ |
5891 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
5892 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5893 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
783e057b DJ |
5894 | See \`config.log' for more details." >&5 |
5895 | echo "$as_me: error: cannot run test program while cross compiling | |
5896 | See \`config.log' for more details." >&2;} | |
d5af19ba | 5897 | { (exit 1); exit 1; }; }; } |
783e057b DJ |
5898 | else |
5899 | cat >conftest.$ac_ext <<_ACEOF | |
5900 | /* confdefs.h. */ | |
5901 | _ACEOF | |
5902 | cat confdefs.h >>conftest.$ac_ext | |
5903 | cat >>conftest.$ac_ext <<_ACEOF | |
5904 | /* end confdefs.h. */ | |
5905 | ||
5906 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5907 | included before <wchar.h>. */ | |
5908 | #include <stddef.h> | |
5909 | #include <signal.h> | |
5910 | #if HAVE_WCHAR_H | |
5911 | # include <stdio.h> | |
5912 | # include <time.h> | |
5913 | # include <wchar.h> | |
5914 | #endif | |
5915 | ||
5916 | #include <limits.h> | |
5917 | long longval () { return sizeof ($gltype) * CHAR_BIT; } | |
5918 | unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; } | |
5919 | #include <stdio.h> | |
5920 | #include <stdlib.h> | |
5921 | int | |
5922 | main () | |
5923 | { | |
5924 | ||
5925 | FILE *f = fopen ("conftest.val", "w"); | |
5926 | if (! f) | |
5927 | exit (1); | |
5928 | if ((sizeof ($gltype) * CHAR_BIT) < 0) | |
5929 | { | |
5930 | long i = longval (); | |
5931 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
5932 | exit (1); | |
5933 | fprintf (f, "%ld\n", i); | |
5934 | } | |
5935 | else | |
5936 | { | |
5937 | unsigned long i = ulongval (); | |
5938 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
5939 | exit (1); | |
5940 | fprintf (f, "%lu\n", i); | |
5941 | } | |
5942 | exit (ferror (f) || fclose (f) != 0); | |
5943 | ||
5944 | ; | |
5945 | return 0; | |
5946 | } | |
5947 | _ACEOF | |
5948 | rm -f conftest$ac_exeext | |
5949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5950 | (eval $ac_link) 2>&5 | |
5951 | ac_status=$? | |
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5955 | (eval $ac_try) 2>&5 | |
5956 | ac_status=$? | |
5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5958 | (exit $ac_status); }; }; then | |
5959 | result=`cat conftest.val` | |
5960 | else | |
5961 | echo "$as_me: program exited with status $ac_status" >&5 | |
5962 | echo "$as_me: failed program was:" >&5 | |
5963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5964 | ||
5965 | ( exit $ac_status ) | |
5966 | result=unknown | |
5967 | fi | |
5968 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5969 | fi | |
5970 | fi | |
5971 | rm -f conftest.val | |
5972 | eval gl_cv_bitsizeof_${gltype}=\$result | |
c906108c | 5973 | |
783e057b DJ |
5974 | fi |
5975 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5 | |
5976 | echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6 | |
5977 | eval result=\$gl_cv_bitsizeof_${gltype} | |
5978 | if test $result = unknown; then | |
5979 | result=0 | |
5980 | fi | |
5981 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
5982 | cat >>confdefs.h <<_ACEOF | |
5983 | #define BITSIZEOF_${GLTYPE} $result | |
5984 | _ACEOF | |
c906108c | 5985 | |
783e057b DJ |
5986 | eval BITSIZEOF_${GLTYPE}=\$result |
5987 | done | |
c906108c | 5988 | |
c906108c | 5989 | |
c906108c | 5990 | |
bec39cab | 5991 | |
3841debe | 5992 | |
783e057b DJ |
5993 | |
5994 | ||
5995 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
5996 | echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 | |
5997 | echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6 | |
5998 | if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then | |
5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6000 | else | |
6001 | cat >conftest.$ac_ext <<_ACEOF | |
6002 | /* confdefs.h. */ | |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
6006 | /* end confdefs.h. */ | |
6007 | ||
6008 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6009 | included before <wchar.h>. */ | |
6010 | #include <stddef.h> | |
6011 | #include <signal.h> | |
6012 | #if HAVE_WCHAR_H | |
6013 | # include <stdio.h> | |
6014 | # include <time.h> | |
6015 | # include <wchar.h> | |
6016 | #endif | |
6017 | ||
6018 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
6019 | int | |
6020 | main () | |
6021 | { | |
6022 | ||
6023 | ; | |
6024 | return 0; | |
6025 | } | |
6026 | _ACEOF | |
6027 | rm -f conftest.$ac_objext | |
6028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6029 | (eval $ac_compile) 2>conftest.er1 | |
6030 | ac_status=$? | |
6031 | grep -v '^ *+' conftest.er1 >conftest.err | |
6032 | rm -f conftest.er1 | |
6033 | cat conftest.err >&5 | |
6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6035 | (exit $ac_status); } && | |
6036 | { ac_try='test -z "$ac_c_werror_flag" | |
6037 | || test ! -s conftest.err' | |
6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6039 | (eval $ac_try) 2>&5 | |
6040 | ac_status=$? | |
6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6042 | (exit $ac_status); }; } && | |
6043 | { ac_try='test -s conftest.$ac_objext' | |
6044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6045 | (eval $ac_try) 2>&5 | |
6046 | ac_status=$? | |
6047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6048 | (exit $ac_status); }; }; then | |
6049 | result=yes | |
6050 | else | |
6051 | echo "$as_me: failed program was:" >&5 | |
6052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6053 | ||
6054 | result=no | |
20e95c23 | 6055 | fi |
783e057b DJ |
6056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6057 | eval gl_cv_type_${gltype}_signed=\$result | |
6058 | ||
6059 | fi | |
6060 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5 | |
6061 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6 | |
6062 | eval result=\$gl_cv_type_${gltype}_signed | |
6063 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6064 | if test "$result" = yes; then | |
6065 | cat >>confdefs.h <<_ACEOF | |
6066 | #define HAVE_SIGNED_${GLTYPE} 1 | |
6067 | _ACEOF | |
6068 | ||
6069 | eval HAVE_SIGNED_${GLTYPE}=1 | |
6070 | else | |
6071 | eval HAVE_SIGNED_${GLTYPE}=0 | |
6072 | fi | |
6073 | done | |
6074 | ||
6075 | ||
6076 | gl_cv_type_ptrdiff_t_signed=yes | |
6077 | gl_cv_type_size_t_signed=no | |
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | ||
6085 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
6086 | echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 | |
6087 | echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6 | |
6088 | if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then | |
6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6090 | else |
783e057b DJ |
6091 | eval gl_cv_type_${gltype}_suffix=no |
6092 | eval result=\$gl_cv_type_${gltype}_signed | |
6093 | if test "$result" = yes; then | |
6094 | glsufu= | |
6095 | else | |
6096 | glsufu=u | |
6097 | fi | |
6098 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
6099 | case $glsuf in | |
6100 | '') gltype1='int';; | |
6101 | l) gltype1='long int';; | |
6102 | ll) gltype1='long long int';; | |
6103 | i64) gltype1='__int64';; | |
6104 | u) gltype1='unsigned int';; | |
6105 | ul) gltype1='unsigned long int';; | |
6106 | ull) gltype1='unsigned long long int';; | |
6107 | ui64)gltype1='unsigned __int64';; | |
6108 | esac | |
6109 | cat >conftest.$ac_ext <<_ACEOF | |
6110 | /* confdefs.h. */ | |
6111 | _ACEOF | |
6112 | cat confdefs.h >>conftest.$ac_ext | |
6113 | cat >>conftest.$ac_ext <<_ACEOF | |
6114 | /* end confdefs.h. */ | |
6115 | ||
6116 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6117 | included before <wchar.h>. */ | |
6118 | #include <stddef.h> | |
6119 | #include <signal.h> | |
6120 | #if HAVE_WCHAR_H | |
6121 | # include <stdio.h> | |
6122 | # include <time.h> | |
6123 | # include <wchar.h> | |
6124 | #endif | |
6125 | ||
6126 | extern $gltype foo; | |
6127 | extern $gltype1 foo; | |
6128 | int | |
6129 | main () | |
6130 | { | |
6131 | ||
6132 | ; | |
6133 | return 0; | |
6134 | } | |
6135 | _ACEOF | |
6136 | rm -f conftest.$ac_objext | |
6137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6138 | (eval $ac_compile) 2>conftest.er1 | |
6139 | ac_status=$? | |
6140 | grep -v '^ *+' conftest.er1 >conftest.err | |
6141 | rm -f conftest.er1 | |
6142 | cat conftest.err >&5 | |
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6144 | (exit $ac_status); } && | |
6145 | { ac_try='test -z "$ac_c_werror_flag" | |
6146 | || test ! -s conftest.err' | |
6147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6148 | (eval $ac_try) 2>&5 | |
6149 | ac_status=$? | |
6150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6151 | (exit $ac_status); }; } && | |
6152 | { ac_try='test -s conftest.$ac_objext' | |
6153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6154 | (eval $ac_try) 2>&5 | |
6155 | ac_status=$? | |
6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6157 | (exit $ac_status); }; }; then | |
6158 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
6159 | else | |
6160 | echo "$as_me: failed program was:" >&5 | |
6161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6162 | ||
6163 | fi | |
6164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6165 | eval result=\$gl_cv_type_${gltype}_suffix | |
6166 | test "$result" != no && break | |
6167 | done | |
6168 | fi | |
6169 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5 | |
6170 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6 | |
6171 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6172 | eval result=\$gl_cv_type_${gltype}_suffix | |
6173 | test "$result" = no && result= | |
6174 | eval ${GLTYPE}_SUFFIX=\$result | |
6175 | cat >>confdefs.h <<_ACEOF | |
6176 | #define ${GLTYPE}_SUFFIX $result | |
6177 | _ACEOF | |
6178 | ||
6179 | done | |
6180 | ||
6181 | ||
6182 | ||
6183 | STDINT_H=stdint.h | |
6184 | fi | |
6185 | ||
6186 | ||
6187 | ||
6188 | ||
6189 | ||
6190 | ||
6191 | ||
6192 | echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 | |
6193 | echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6 | |
6194 | if test "${gl_cv_header_wchar_h_standalone+set}" = set; then | |
6195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6196 | else | |
6197 | cat >conftest.$ac_ext <<_ACEOF | |
6198 | #include <wchar.h> | |
6199 | wchar_t w; | |
6200 | _ACEOF | |
6201 | rm -f conftest.$ac_objext | |
6202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6203 | (eval $ac_compile) 2>conftest.er1 | |
6204 | ac_status=$? | |
6205 | grep -v '^ *+' conftest.er1 >conftest.err | |
6206 | rm -f conftest.er1 | |
6207 | cat conftest.err >&5 | |
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6209 | (exit $ac_status); } && | |
6210 | { ac_try='test -z "$ac_c_werror_flag" | |
6211 | || test ! -s conftest.err' | |
6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6213 | (eval $ac_try) 2>&5 | |
6214 | ac_status=$? | |
6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6216 | (exit $ac_status); }; } && | |
6217 | { ac_try='test -s conftest.$ac_objext' | |
6218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6219 | (eval $ac_try) 2>&5 | |
6220 | ac_status=$? | |
6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6222 | (exit $ac_status); }; }; then | |
6223 | gl_cv_header_wchar_h_standalone=yes | |
6224 | else | |
6225 | echo "$as_me: failed program was:" >&5 | |
6226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6227 | ||
6228 | gl_cv_header_wchar_h_standalone=no | |
6229 | fi | |
6230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6231 | fi | |
6232 | echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 | |
6233 | echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6 | |
6234 | if test $gl_cv_header_wchar_h_standalone != yes; then | |
6235 | WCHAR_H=wchar.h | |
6236 | fi | |
6237 | ||
6238 | ||
6239 | : | |
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | if test $ac_cv_header_wchar_h = yes; then | |
6246 | HAVE_WCHAR_H=1 | |
6247 | else | |
6248 | HAVE_WCHAR_H=0 | |
6249 | fi | |
6250 | ||
6251 | ||
6252 | ||
6253 | ||
6254 | : | |
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | if test $gl_cv_have_include_next = yes; then | |
6263 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6264 | else | |
6265 | echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 | |
6266 | echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6 | |
6267 | if test "${gl_cv_next_wchar_h+set}" = set; then | |
6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6269 | else | |
6270 | ||
6271 | if test $ac_cv_header_wchar_h = yes; then | |
6272 | cat >conftest.$ac_ext <<_ACEOF | |
6273 | /* confdefs.h. */ | |
6274 | _ACEOF | |
6275 | cat confdefs.h >>conftest.$ac_ext | |
6276 | cat >>conftest.$ac_ext <<_ACEOF | |
6277 | /* end confdefs.h. */ | |
6278 | #include <wchar.h> | |
6279 | ||
6280 | _ACEOF | |
6281 | gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6282 | sed -n '\#/wchar.h#{ | |
6283 | s#.*"\(.*/wchar.h\)".*#\1# | |
6284 | s#^/[^/]#//&# | |
6285 | p | |
6286 | q | |
6287 | }'`'"' | |
6288 | else | |
6289 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6290 | fi | |
6291 | ||
6292 | fi | |
6293 | echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 | |
6294 | echo "${ECHO_T}$gl_cv_next_wchar_h" >&6 | |
6295 | fi | |
6296 | NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
6297 | ||
c906108c | 6298 | |
c906108c | 6299 | |
c906108c | 6300 | |
c906108c | 6301 | |
c906108c | 6302 | |
c906108c | 6303 | |
c906108c | 6304 | |
783e057b DJ |
6305 | gltests_libdeps= |
6306 | gltests_ltlibdeps= | |
20e95c23 | 6307 | |
20e95c23 | 6308 | |
20e95c23 | 6309 | |
783e057b | 6310 | gl_source_base='tests' |
c906108c | 6311 | |
bec39cab | 6312 | |
bec39cab | 6313 | |
783e057b DJ |
6314 | |
6315 | LIBGNU_LIBDEPS="$gl_libdeps" | |
6316 | ||
6317 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
6318 | ||
6319 | ||
e28b3332 | 6320 | |
d5af19ba DJ |
6321 | # For Makefile dependencies. |
6322 | GNULIB_STDINT_H= | |
6323 | if test x"$STDINT_H" != x; then | |
6324 | GNULIB_STDINT_H=gnulib/$STDINT_H | |
6325 | fi | |
6326 | ||
6327 | ||
bec39cab AC |
6328 | PACKAGE=gdb |
6329 | ||
6330 | cat >>confdefs.h <<_ACEOF | |
6331 | #define PACKAGE "$PACKAGE" | |
6332 | _ACEOF | |
6333 | ||
6334 | ||
6335 | ||
e28b3332 DJ |
6336 | # GDB does not use automake, but gnulib does. This line lets us |
6337 | # generate its Makefile.in. | |
6338 | am__api_version="1.9" | |
6339 | # Find a good install program. We prefer a C program (faster), | |
6340 | # so one script is as good as another. But avoid the broken or | |
6341 | # incompatible versions: | |
6342 | # SysV /etc/install, /usr/sbin/install | |
6343 | # SunOS /usr/etc/install | |
6344 | # IRIX /sbin/install | |
6345 | # AIX /bin/install | |
6346 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6347 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6348 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6349 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6350 | # OS/2's system install, which has a completely different semantic | |
6351 | # ./install, which can be erroneously created by make from ./install.sh. | |
6352 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
6353 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6354 | if test -z "$INSTALL"; then | |
6355 | if test "${ac_cv_path_install+set}" = set; then | |
6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6357 | else | |
6358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6359 | for as_dir in $PATH | |
6360 | do | |
6361 | IFS=$as_save_IFS | |
6362 | test -z "$as_dir" && as_dir=. | |
6363 | # Account for people who put trailing slashes in PATH elements. | |
6364 | case $as_dir/ in | |
6365 | ./ | .// | /cC/* | \ | |
6366 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6367 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
6368 | /usr/ucb/* ) ;; | |
6369 | *) | |
6370 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6371 | # Don't use installbsd from OSF since it installs stuff as root | |
6372 | # by default. | |
6373 | for ac_prog in ginstall scoinst install; do | |
6374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6375 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
6376 | if test $ac_prog = install && | |
6377 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6378 | # AIX install. It has an incompatible calling convention. | |
6379 | : | |
6380 | elif test $ac_prog = install && | |
6381 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6382 | # program-specific install script used by HP pwplus--don't use. | |
6383 | : | |
6384 | else | |
6385 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6386 | break 3 | |
6387 | fi | |
6388 | fi | |
6389 | done | |
6390 | done | |
6391 | ;; | |
6392 | esac | |
6393 | done | |
6394 | ||
6395 | ||
6396 | fi | |
6397 | if test "${ac_cv_path_install+set}" = set; then | |
6398 | INSTALL=$ac_cv_path_install | |
6399 | else | |
6400 | # As a last resort, use the slow shell script. We don't cache a | |
6401 | # path for INSTALL within a source directory, because that will | |
6402 | # break other packages using the cache if that directory is | |
6403 | # removed, or if the path is relative. | |
6404 | INSTALL=$ac_install_sh | |
6405 | fi | |
6406 | fi | |
6407 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
6408 | echo "${ECHO_T}$INSTALL" >&6 | |
6409 | ||
6410 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6411 | # It thinks the first close brace ends the variable substitution. | |
6412 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6413 | ||
6414 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6415 | ||
6416 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6417 | ||
6418 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
6419 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
6420 | # Just in case | |
6421 | sleep 1 | |
6422 | echo timestamp > conftest.file | |
6423 | # Do `set' in a subshell so we don't clobber the current shell's | |
6424 | # arguments. Must try -L first in case configure is actually a | |
6425 | # symlink; some systems play weird games with the mod time of symlinks | |
6426 | # (eg FreeBSD returns the mod time of the symlink's containing | |
6427 | # directory). | |
6428 | if ( | |
6429 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
6430 | if test "$*" = "X"; then | |
6431 | # -L didn't work. | |
6432 | set X `ls -t $srcdir/configure conftest.file` | |
6433 | fi | |
6434 | rm -f conftest.file | |
6435 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
6436 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
6437 | ||
6438 | # If neither matched, then we have a broken ls. This can happen | |
6439 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
6440 | # broken ls alias from the environment. This has actually | |
6441 | # happened. Such a system could not be considered "sane". | |
6442 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
6443 | alias in your environment" >&5 | |
6444 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
6445 | alias in your environment" >&2;} | |
6446 | { (exit 1); exit 1; }; } | |
6447 | fi | |
6448 | ||
6449 | test "$2" = conftest.file | |
6450 | ) | |
6451 | then | |
6452 | # Ok. | |
6453 | : | |
6454 | else | |
6455 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
6456 | Check your system clock" >&5 | |
6457 | echo "$as_me: error: newly created file is older than distributed files! | |
6458 | Check your system clock" >&2;} | |
6459 | { (exit 1); exit 1; }; } | |
6460 | fi | |
6461 | echo "$as_me:$LINENO: result: yes" >&5 | |
6462 | echo "${ECHO_T}yes" >&6 | |
6463 | test "$program_prefix" != NONE && | |
6464 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
6465 | # Use a double $ so make ignores it. | |
6466 | test "$program_suffix" != NONE && | |
6467 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
6468 | # Double any \ or $. echo might interpret backslashes. | |
6469 | # By default was `s,x,x', remove it if useless. | |
6470 | cat <<\_ACEOF >conftest.sed | |
6471 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6472 | _ACEOF | |
6473 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6474 | rm conftest.sed | |
6475 | ||
6476 | # expand $ac_aux_dir to an absolute path | |
6477 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
6478 | ||
6479 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
6480 | # Use eval to expand $SHELL | |
6481 | if eval "$MISSING --run true"; then | |
6482 | am_missing_run="$MISSING --run " | |
6483 | else | |
6484 | am_missing_run= | |
6485 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
6486 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
6487 | fi | |
6488 | ||
6489 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
6490 | # We used to keeping the `.' as first argument, in order to | |
6491 | # allow $(mkdir_p) to be used without argument. As in | |
6492 | # $(mkdir_p) $(somedir) | |
6493 | # where $(somedir) is conditionally defined. However this is wrong | |
6494 | # for two reasons: | |
6495 | # 1. if the package is installed by a user who cannot write `.' | |
6496 | # make install will fail, | |
6497 | # 2. the above comment should most certainly read | |
6498 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
6499 | # so it does not work when $(somedir) is undefined and | |
6500 | # $(DESTDIR) is not. | |
6501 | # To support the latter case, we have to write | |
6502 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
6503 | # so the `.' trick is pointless. | |
6504 | mkdir_p='mkdir -p --' | |
6505 | else | |
6506 | # On NextStep and OpenStep, the `mkdir' command does not | |
6507 | # recognize any option. It will interpret all options as | |
6508 | # directories to create, and then abort because `.' already | |
6509 | # exists. | |
6510 | for d in ./-p ./--version; | |
6511 | do | |
6512 | test -d $d && rmdir $d | |
6513 | done | |
6514 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
6515 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
6516 | mkdir_p='$(mkinstalldirs)' | |
6517 | else | |
6518 | mkdir_p='$(install_sh) -d' | |
6519 | fi | |
6520 | fi | |
6521 | ||
6522 | for ac_prog in gawk mawk nawk awk | |
6523 | do | |
6524 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6525 | set dummy $ac_prog; ac_word=$2 | |
6526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6528 | if test "${ac_cv_prog_AWK+set}" = set; then | |
6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6530 | else | |
6531 | if test -n "$AWK"; then | |
6532 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6533 | else | |
6534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6535 | for as_dir in $PATH | |
6536 | do | |
6537 | IFS=$as_save_IFS | |
6538 | test -z "$as_dir" && as_dir=. | |
6539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6541 | ac_cv_prog_AWK="$ac_prog" | |
6542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6543 | break 2 | |
6544 | fi | |
6545 | done | |
6546 | done | |
6547 | ||
6548 | fi | |
6549 | fi | |
6550 | AWK=$ac_cv_prog_AWK | |
6551 | if test -n "$AWK"; then | |
6552 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
6553 | echo "${ECHO_T}$AWK" >&6 | |
6554 | else | |
6555 | echo "$as_me:$LINENO: result: no" >&5 | |
6556 | echo "${ECHO_T}no" >&6 | |
6557 | fi | |
6558 | ||
6559 | test -n "$AWK" && break | |
6560 | done | |
6561 | ||
6562 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6563 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
6564 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
6565 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6567 | else | |
6568 | cat >conftest.make <<\_ACEOF | |
6569 | all: | |
6570 | @echo 'ac_maketemp="$(MAKE)"' | |
6571 | _ACEOF | |
6572 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6573 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
6574 | if test -n "$ac_maketemp"; then | |
6575 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6576 | else | |
6577 | eval ac_cv_prog_make_${ac_make}_set=no | |
6578 | fi | |
6579 | rm -f conftest.make | |
6580 | fi | |
6581 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6582 | echo "$as_me:$LINENO: result: yes" >&5 | |
6583 | echo "${ECHO_T}yes" >&6 | |
6584 | SET_MAKE= | |
6585 | else | |
6586 | echo "$as_me:$LINENO: result: no" >&5 | |
6587 | echo "${ECHO_T}no" >&6 | |
6588 | SET_MAKE="MAKE=${MAKE-make}" | |
6589 | fi | |
6590 | ||
6591 | rm -rf .tst 2>/dev/null | |
6592 | mkdir .tst 2>/dev/null | |
6593 | if test -d .tst; then | |
6594 | am__leading_dot=. | |
6595 | else | |
6596 | am__leading_dot=_ | |
6597 | fi | |
6598 | rmdir .tst 2>/dev/null | |
6599 | ||
6600 | DEPDIR="${am__leading_dot}deps" | |
6601 | ||
6602 | ac_config_commands="$ac_config_commands depfiles" | |
6603 | ||
6604 | ||
6605 | am_make=${MAKE-make} | |
6606 | cat > confinc << 'END' | |
6607 | am__doit: | |
6608 | @echo done | |
6609 | .PHONY: am__doit | |
6610 | END | |
6611 | # If we don't find an include directive, just comment out the code. | |
6612 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
6613 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
6614 | am__include="#" | |
6615 | am__quote= | |
6616 | _am_result=none | |
6617 | # First try GNU make style include. | |
6618 | echo "include confinc" > confmf | |
6619 | # We grep out `Entering directory' and `Leaving directory' | |
6620 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
6621 | # In particular we don't look at `^make:' because GNU make might | |
6622 | # be invoked under some other name (usually "gmake"), in which | |
6623 | # case it prints its new name instead of `make'. | |
6624 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
6625 | am__include=include | |
6626 | am__quote= | |
6627 | _am_result=GNU | |
6628 | fi | |
6629 | # Now try BSD make style include. | |
6630 | if test "$am__include" = "#"; then | |
6631 | echo '.include "confinc"' > confmf | |
6632 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
6633 | am__include=.include | |
6634 | am__quote="\"" | |
6635 | _am_result=BSD | |
6636 | fi | |
6637 | fi | |
6638 | ||
6639 | ||
6640 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
6641 | echo "${ECHO_T}$_am_result" >&6 | |
6642 | rm -f confinc confmf | |
6643 | ||
6644 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
6645 | if test "${enable_dependency_tracking+set}" = set; then | |
6646 | enableval="$enable_dependency_tracking" | |
6647 | ||
6648 | fi; | |
6649 | if test "x$enable_dependency_tracking" != xno; then | |
6650 | am_depcomp="$ac_aux_dir/depcomp" | |
6651 | AMDEPBACKSLASH='\' | |
6652 | fi | |
6653 | ||
6654 | ||
6655 | if test "x$enable_dependency_tracking" != xno; then | |
6656 | AMDEP_TRUE= | |
6657 | AMDEP_FALSE='#' | |
6658 | else | |
6659 | AMDEP_TRUE='#' | |
6660 | AMDEP_FALSE= | |
6661 | fi | |
6662 | ||
6663 | ||
6664 | ||
6665 | # test to see if srcdir already configured | |
6666 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
6667 | test -f $srcdir/config.status; then | |
6668 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
6669 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
6670 | { (exit 1); exit 1; }; } | |
6671 | fi | |
6672 | ||
6673 | # test whether we have cygpath | |
6674 | if test -z "$CYGPATH_W"; then | |
6675 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
6676 | CYGPATH_W='cygpath -w' | |
6677 | else | |
6678 | CYGPATH_W=echo | |
6679 | fi | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | # Define the identity of the package. | |
6684 | PACKAGE=gdb | |
6685 | VERSION=UNUSED-VERSION | |
6686 | ||
6687 | ||
6688 | # Some tools Automake needs. | |
6689 | ||
6690 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
6691 | ||
6692 | ||
6693 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
6694 | ||
6695 | ||
6696 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
6697 | ||
6698 | ||
6699 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
6700 | ||
6701 | ||
6702 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6703 | ||
6704 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
6705 | ||
6706 | # Installed binaries are usually stripped using `strip' when the user | |
6707 | # run `make install-strip'. However `strip' might not be the right | |
6708 | # tool to use in cross-compilation environments, therefore Automake | |
6709 | # will honor the `STRIP' environment variable to overrule this program. | |
6710 | if test "$cross_compiling" != no; then | |
6711 | if test -n "$ac_tool_prefix"; then | |
6712 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6713 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6716 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6718 | else | |
6719 | if test -n "$STRIP"; then | |
6720 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6721 | else | |
6722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6723 | for as_dir in $PATH | |
6724 | do | |
6725 | IFS=$as_save_IFS | |
6726 | test -z "$as_dir" && as_dir=. | |
6727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6729 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6731 | break 2 | |
6732 | fi | |
6733 | done | |
6734 | done | |
6735 | ||
6736 | fi | |
6737 | fi | |
6738 | STRIP=$ac_cv_prog_STRIP | |
6739 | if test -n "$STRIP"; then | |
6740 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6741 | echo "${ECHO_T}$STRIP" >&6 | |
6742 | else | |
6743 | echo "$as_me:$LINENO: result: no" >&5 | |
6744 | echo "${ECHO_T}no" >&6 | |
6745 | fi | |
6746 | ||
6747 | fi | |
6748 | if test -z "$ac_cv_prog_STRIP"; then | |
6749 | ac_ct_STRIP=$STRIP | |
6750 | # Extract the first word of "strip", so it can be a program name with args. | |
6751 | set dummy strip; ac_word=$2 | |
6752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6754 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6756 | else | |
6757 | if test -n "$ac_ct_STRIP"; then | |
6758 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6759 | else | |
6760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6761 | for as_dir in $PATH | |
6762 | do | |
6763 | IFS=$as_save_IFS | |
6764 | test -z "$as_dir" && as_dir=. | |
6765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6767 | ac_cv_prog_ac_ct_STRIP="strip" | |
6768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6769 | break 2 | |
6770 | fi | |
6771 | done | |
6772 | done | |
6773 | ||
6774 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6775 | fi | |
6776 | fi | |
6777 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6778 | if test -n "$ac_ct_STRIP"; then | |
6779 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6780 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6781 | else | |
6782 | echo "$as_me:$LINENO: result: no" >&5 | |
6783 | echo "${ECHO_T}no" >&6 | |
6784 | fi | |
6785 | ||
6786 | STRIP=$ac_ct_STRIP | |
6787 | else | |
6788 | STRIP="$ac_cv_prog_STRIP" | |
6789 | fi | |
6790 | ||
6791 | fi | |
6792 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
6793 | ||
6794 | # We need awk for the "check" target. The system "awk" is bad on | |
6795 | # some platforms. | |
6796 | # Always define AMTAR for backward compatibility. | |
6797 | ||
6798 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
6799 | ||
6800 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | depcc="$CC" am_compiler_list= | |
6806 | ||
6807 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
6808 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
6809 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6811 | else | |
6812 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6813 | # We make a subdir and do the tests there. Otherwise we can end up | |
6814 | # making bogus files that we don't know about and never remove. For | |
6815 | # instance it was reported that on HP-UX the gcc test will end up | |
6816 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6817 | # in D'. | |
6818 | mkdir conftest.dir | |
6819 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6820 | # using a relative directory. | |
6821 | cp "$am_depcomp" conftest.dir | |
6822 | cd conftest.dir | |
6823 | # We will build objects and dependencies in a subdirectory because | |
6824 | # it helps to detect inapplicable dependency modes. For instance | |
6825 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6826 | # side effect of compilation, but ICC will put the dependencies in | |
6827 | # the current directory while Tru64 will put them in the object | |
6828 | # directory. | |
6829 | mkdir sub | |
6830 | ||
6831 | am_cv_CC_dependencies_compiler_type=none | |
6832 | if test "$am_compiler_list" = ""; then | |
6833 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6834 | fi | |
6835 | for depmode in $am_compiler_list; do | |
6836 | # Setup a source with many dependencies, because some compilers | |
6837 | # like to wrap large dependency lists on column 80 (with \), and | |
6838 | # we should not choose a depcomp mode which is confused by this. | |
6839 | # | |
6840 | # We need to recreate these files for each test, as the compiler may | |
6841 | # overwrite some of them when testing with obscure command lines. | |
6842 | # This happens at least with the AIX C compiler. | |
6843 | : > sub/conftest.c | |
6844 | for i in 1 2 3 4 5 6; do | |
6845 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6846 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
6847 | # Solaris 8's {/usr,}/bin/sh. | |
6848 | touch sub/conftst$i.h | |
6849 | done | |
6850 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6851 | ||
6852 | case $depmode in | |
6853 | nosideeffect) | |
6854 | # after this tag, mechanisms are not by side-effect, so they'll | |
6855 | # only be used when explicitly requested | |
6856 | if test "x$enable_dependency_tracking" = xyes; then | |
6857 | continue | |
6858 | else | |
6859 | break | |
6860 | fi | |
6861 | ;; | |
6862 | none) break ;; | |
6863 | esac | |
6864 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
6865 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6866 | # handle `-M -o', and we need to detect this. | |
6867 | if depmode=$depmode \ | |
6868 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
6869 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6870 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
6871 | >/dev/null 2>conftest.err && | |
6872 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6873 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
6874 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6875 | # icc doesn't choke on unknown options, it will just issue warnings | |
6876 | # or remarks (even with -Werror). So we grep stderr for any message | |
6877 | # that says an option was ignored or not supported. | |
6878 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6879 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6880 | # The diagnosis changed in icc 8.0: | |
6881 | # icc: Command line remark: option '-MP' not supported | |
6882 | if (grep 'ignoring option' conftest.err || | |
6883 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6884 | am_cv_CC_dependencies_compiler_type=$depmode | |
6885 | break | |
6886 | fi | |
6887 | fi | |
6888 | done | |
6889 | ||
6890 | cd .. | |
6891 | rm -rf conftest.dir | |
6892 | else | |
6893 | am_cv_CC_dependencies_compiler_type=none | |
6894 | fi | |
6895 | ||
6896 | fi | |
6897 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
6898 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
6899 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6900 | ||
6901 | ||
6902 | ||
6903 | if | |
6904 | test "x$enable_dependency_tracking" != xno \ | |
6905 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6906 | am__fastdepCC_TRUE= | |
6907 | am__fastdepCC_FALSE='#' | |
6908 | else | |
6909 | am__fastdepCC_TRUE='#' | |
6910 | am__fastdepCC_FALSE= | |
6911 | fi | |
6912 | ||
6913 | ||
6914 | ||
6915 | ||
bec39cab AC |
6916 | debugdir=${libdir}/debug |
6917 | ||
6918 | ||
b4e70030 | 6919 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 6920 | if test "${with_separate_debug_dir+set}" = set; then |
783e057b DJ |
6921 | withval="$with_separate_debug_dir" |
6922 | debugdir="${withval}" | |
6923 | fi; | |
20e95c23 | 6924 | |
20e95c23 | 6925 | |
783e057b DJ |
6926 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
6927 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6928 | ac_define_dir=`eval echo $debugdir` | |
6929 | ac_define_dir=`eval echo $ac_define_dir` | |
20e95c23 | 6930 | |
783e057b DJ |
6931 | cat >>confdefs.h <<_ACEOF |
6932 | #define DEBUGDIR "$ac_define_dir" | |
20e95c23 | 6933 | _ACEOF |
20e95c23 | 6934 | |
20e95c23 | 6935 | |
783e057b | 6936 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
20e95c23 | 6937 | |
783e057b DJ |
6938 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
6939 | if test "x$prefix" = xNONE; then | |
6940 | test_prefix=/usr/local | |
6941 | else | |
6942 | test_prefix=$prefix | |
6943 | fi | |
20e95c23 | 6944 | else |
783e057b | 6945 | test_prefix=$exec_prefix |
20e95c23 | 6946 | fi |
783e057b DJ |
6947 | case ${debugdir} in |
6948 | "${test_prefix}"|"${test_prefix}/"*|\ | |
6949 | '${exec_prefix}'|'${exec_prefix}/'*) | |
20e95c23 DJ |
6950 | |
6951 | cat >>confdefs.h <<\_ACEOF | |
783e057b | 6952 | #define DEBUGDIR_RELOCATABLE 1 |
20e95c23 DJ |
6953 | _ACEOF |
6954 | ||
783e057b DJ |
6955 | ;; |
6956 | esac | |
6957 | ||
20e95c23 | 6958 | |
20e95c23 | 6959 | |
783e057b | 6960 | subdirs="$subdirs doc testsuite" |
20e95c23 DJ |
6961 | |
6962 | ||
783e057b DJ |
6963 | # Check whether to support alternative target configurations |
6964 | # Check whether --enable-targets or --disable-targets was given. | |
6965 | if test "${enable_targets+set}" = set; then | |
6966 | enableval="$enable_targets" | |
6967 | case "${enableval}" in | |
6968 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
6969 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
6970 | { (exit 1); exit 1; }; } | |
6971 | ;; | |
6972 | no) enable_targets= ;; | |
6973 | *) enable_targets=$enableval ;; | |
6974 | esac | |
6975 | fi; | |
20e95c23 | 6976 | |
783e057b DJ |
6977 | # Check whether to enable 64-bit support on 32-bit hosts |
6978 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
6979 | if test "${enable_64_bit_bfd+set}" = set; then | |
6980 | enableval="$enable_64_bit_bfd" | |
6981 | case "${enableval}" in | |
6982 | yes) want64=true ;; | |
6983 | no) want64=false ;; | |
6984 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
6985 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
6986 | { (exit 1); exit 1; }; } ;; | |
6987 | esac | |
6988 | else | |
6989 | want64=false | |
6990 | fi; | |
6991 | # Provide defaults for some variables set by the per-host and per-target | |
6992 | # configuration. | |
6993 | gdb_host_obs=posix-hdep.o | |
20e95c23 | 6994 | |
783e057b DJ |
6995 | if test "${target}" = "${host}"; then |
6996 | gdb_native=yes | |
6997 | else | |
6998 | gdb_native=no | |
6999 | fi | |
20e95c23 | 7000 | |
783e057b | 7001 | . $srcdir/configure.host |
20e95c23 | 7002 | |
783e057b | 7003 | # Accumulate some settings from configure.tgt over all enabled targets |
20e95c23 | 7004 | |
783e057b DJ |
7005 | TARGET_OBS= |
7006 | all_targets= | |
20e95c23 | 7007 | |
783e057b | 7008 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
20e95c23 | 7009 | do |
783e057b DJ |
7010 | if test "$targ_alias" = "all"; then |
7011 | all_targets=true | |
7012 | else | |
7013 | # Canonicalize the secondary target names. | |
7014 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
7015 | if test -n "$result"; then | |
7016 | targ=$result | |
7017 | else | |
7018 | targ=$targ_alias | |
7019 | fi | |
20e95c23 | 7020 | |
783e057b | 7021 | . ${srcdir}/configure.tgt |
20e95c23 | 7022 | |
783e057b DJ |
7023 | # Target-specific object files |
7024 | for i in ${gdb_target_obs}; do | |
7025 | case " $TARGET_OBS " in | |
7026 | *" ${i} "*) ;; | |
7027 | *) | |
7028 | TARGET_OBS="$TARGET_OBS ${i}" | |
7029 | ;; | |
7030 | esac | |
7031 | done | |
20e95c23 | 7032 | |
783e057b DJ |
7033 | # Check whether this target needs 64-bit CORE_ADDR |
7034 | if test x${want64} = xfalse; then | |
7035 | . ${srcdir}/../bfd/config.bfd | |
7036 | fi | |
7037 | fi | |
20e95c23 DJ |
7038 | done |
7039 | ||
783e057b DJ |
7040 | if test x${all_targets} = xtrue; then |
7041 | ||
7042 | # We want all 64-bit targets if we either: | |
7043 | # - run on a 64-bit host or | |
7044 | # - already require 64-bit support for some other target or | |
7045 | # - the --enable-64-bit-bfd option was supplied | |
7046 | # Otherwise we only support all 32-bit targets. | |
7047 | # | |
7048 | # NOTE: This test must be in sync with the corresponding | |
7049 | # tests in BFD! | |
20e95c23 | 7050 | |
783e057b DJ |
7051 | if test x${want64} = xfalse; then |
7052 | echo "$as_me:$LINENO: checking for long" >&5 | |
c0993dbe UW |
7053 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
7054 | if test "${ac_cv_type_long+set}" = set; then | |
7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7056 | else | |
7057 | cat >conftest.$ac_ext <<_ACEOF | |
7058 | /* confdefs.h. */ | |
7059 | _ACEOF | |
7060 | cat confdefs.h >>conftest.$ac_ext | |
7061 | cat >>conftest.$ac_ext <<_ACEOF | |
7062 | /* end confdefs.h. */ | |
7063 | $ac_includes_default | |
7064 | int | |
7065 | main () | |
7066 | { | |
7067 | if ((long *) 0) | |
7068 | return 0; | |
7069 | if (sizeof (long)) | |
7070 | return 0; | |
7071 | ; | |
7072 | return 0; | |
7073 | } | |
7074 | _ACEOF | |
7075 | rm -f conftest.$ac_objext | |
7076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7077 | (eval $ac_compile) 2>conftest.er1 | |
7078 | ac_status=$? | |
7079 | grep -v '^ *+' conftest.er1 >conftest.err | |
7080 | rm -f conftest.er1 | |
7081 | cat conftest.err >&5 | |
7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7083 | (exit $ac_status); } && | |
7084 | { ac_try='test -z "$ac_c_werror_flag" | |
7085 | || test ! -s conftest.err' | |
7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7087 | (eval $ac_try) 2>&5 | |
7088 | ac_status=$? | |
7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7090 | (exit $ac_status); }; } && | |
7091 | { ac_try='test -s conftest.$ac_objext' | |
7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7093 | (eval $ac_try) 2>&5 | |
7094 | ac_status=$? | |
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7096 | (exit $ac_status); }; }; then | |
7097 | ac_cv_type_long=yes | |
7098 | else | |
7099 | echo "$as_me: failed program was:" >&5 | |
7100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7101 | ||
7102 | ac_cv_type_long=no | |
7103 | fi | |
7104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7105 | fi | |
7106 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
7107 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
7108 | ||
7109 | echo "$as_me:$LINENO: checking size of long" >&5 | |
7110 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
7111 | if test "${ac_cv_sizeof_long+set}" = set; then | |
7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7113 | else | |
7114 | if test "$ac_cv_type_long" = yes; then | |
7115 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7118 | # This bug is HP SR number 8606223364. | |
7119 | if test "$cross_compiling" = yes; then | |
7120 | # Depending upon the size, compute the lo and hi bounds. | |
7121 | cat >conftest.$ac_ext <<_ACEOF | |
7122 | /* confdefs.h. */ | |
7123 | _ACEOF | |
7124 | cat confdefs.h >>conftest.$ac_ext | |
7125 | cat >>conftest.$ac_ext <<_ACEOF | |
7126 | /* end confdefs.h. */ | |
7127 | $ac_includes_default | |
7128 | int | |
7129 | main () | |
7130 | { | |
7131 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
7132 | test_array [0] = 0 | |
7133 | ||
7134 | ; | |
7135 | return 0; | |
7136 | } | |
7137 | _ACEOF | |
7138 | rm -f conftest.$ac_objext | |
7139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7140 | (eval $ac_compile) 2>conftest.er1 | |
7141 | ac_status=$? | |
7142 | grep -v '^ *+' conftest.er1 >conftest.err | |
7143 | rm -f conftest.er1 | |
7144 | cat conftest.err >&5 | |
7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7146 | (exit $ac_status); } && | |
7147 | { ac_try='test -z "$ac_c_werror_flag" | |
7148 | || test ! -s conftest.err' | |
7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7150 | (eval $ac_try) 2>&5 | |
7151 | ac_status=$? | |
7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7153 | (exit $ac_status); }; } && | |
7154 | { ac_try='test -s conftest.$ac_objext' | |
7155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7156 | (eval $ac_try) 2>&5 | |
7157 | ac_status=$? | |
7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7159 | (exit $ac_status); }; }; then | |
7160 | ac_lo=0 ac_mid=0 | |
7161 | while :; do | |
7162 | cat >conftest.$ac_ext <<_ACEOF | |
7163 | /* confdefs.h. */ | |
7164 | _ACEOF | |
7165 | cat confdefs.h >>conftest.$ac_ext | |
7166 | cat >>conftest.$ac_ext <<_ACEOF | |
7167 | /* end confdefs.h. */ | |
7168 | $ac_includes_default | |
7169 | int | |
7170 | main () | |
7171 | { | |
7172 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7173 | test_array [0] = 0 | |
7174 | ||
7175 | ; | |
7176 | return 0; | |
7177 | } | |
7178 | _ACEOF | |
7179 | rm -f conftest.$ac_objext | |
7180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7181 | (eval $ac_compile) 2>conftest.er1 | |
7182 | ac_status=$? | |
7183 | grep -v '^ *+' conftest.er1 >conftest.err | |
7184 | rm -f conftest.er1 | |
7185 | cat conftest.err >&5 | |
7186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7187 | (exit $ac_status); } && | |
7188 | { ac_try='test -z "$ac_c_werror_flag" | |
7189 | || test ! -s conftest.err' | |
7190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7191 | (eval $ac_try) 2>&5 | |
7192 | ac_status=$? | |
7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7194 | (exit $ac_status); }; } && | |
7195 | { ac_try='test -s conftest.$ac_objext' | |
7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7197 | (eval $ac_try) 2>&5 | |
7198 | ac_status=$? | |
7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7200 | (exit $ac_status); }; }; then | |
7201 | ac_hi=$ac_mid; break | |
7202 | else | |
7203 | echo "$as_me: failed program was:" >&5 | |
7204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7205 | ||
7206 | ac_lo=`expr $ac_mid + 1` | |
7207 | if test $ac_lo -le $ac_mid; then | |
7208 | ac_lo= ac_hi= | |
7209 | break | |
7210 | fi | |
7211 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7212 | fi | |
7213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7214 | done | |
7215 | else | |
7216 | echo "$as_me: failed program was:" >&5 | |
7217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7218 | ||
7219 | cat >conftest.$ac_ext <<_ACEOF | |
7220 | /* confdefs.h. */ | |
7221 | _ACEOF | |
7222 | cat confdefs.h >>conftest.$ac_ext | |
7223 | cat >>conftest.$ac_ext <<_ACEOF | |
7224 | /* end confdefs.h. */ | |
7225 | $ac_includes_default | |
7226 | int | |
7227 | main () | |
7228 | { | |
7229 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
7230 | test_array [0] = 0 | |
7231 | ||
7232 | ; | |
7233 | return 0; | |
7234 | } | |
7235 | _ACEOF | |
7236 | rm -f conftest.$ac_objext | |
7237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7238 | (eval $ac_compile) 2>conftest.er1 | |
7239 | ac_status=$? | |
7240 | grep -v '^ *+' conftest.er1 >conftest.err | |
7241 | rm -f conftest.er1 | |
7242 | cat conftest.err >&5 | |
7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7244 | (exit $ac_status); } && | |
7245 | { ac_try='test -z "$ac_c_werror_flag" | |
7246 | || test ! -s conftest.err' | |
7247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7248 | (eval $ac_try) 2>&5 | |
7249 | ac_status=$? | |
7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7251 | (exit $ac_status); }; } && | |
7252 | { ac_try='test -s conftest.$ac_objext' | |
7253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7254 | (eval $ac_try) 2>&5 | |
7255 | ac_status=$? | |
7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7257 | (exit $ac_status); }; }; then | |
7258 | ac_hi=-1 ac_mid=-1 | |
7259 | while :; do | |
7260 | cat >conftest.$ac_ext <<_ACEOF | |
7261 | /* confdefs.h. */ | |
7262 | _ACEOF | |
7263 | cat confdefs.h >>conftest.$ac_ext | |
7264 | cat >>conftest.$ac_ext <<_ACEOF | |
7265 | /* end confdefs.h. */ | |
7266 | $ac_includes_default | |
7267 | int | |
7268 | main () | |
7269 | { | |
7270 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
7271 | test_array [0] = 0 | |
7272 | ||
7273 | ; | |
7274 | return 0; | |
7275 | } | |
7276 | _ACEOF | |
7277 | rm -f conftest.$ac_objext | |
7278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7279 | (eval $ac_compile) 2>conftest.er1 | |
7280 | ac_status=$? | |
7281 | grep -v '^ *+' conftest.er1 >conftest.err | |
7282 | rm -f conftest.er1 | |
7283 | cat conftest.err >&5 | |
7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7285 | (exit $ac_status); } && | |
7286 | { ac_try='test -z "$ac_c_werror_flag" | |
7287 | || test ! -s conftest.err' | |
7288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7289 | (eval $ac_try) 2>&5 | |
7290 | ac_status=$? | |
7291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7292 | (exit $ac_status); }; } && | |
7293 | { ac_try='test -s conftest.$ac_objext' | |
7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7295 | (eval $ac_try) 2>&5 | |
7296 | ac_status=$? | |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7298 | (exit $ac_status); }; }; then | |
7299 | ac_lo=$ac_mid; break | |
7300 | else | |
7301 | echo "$as_me: failed program was:" >&5 | |
7302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7303 | ||
7304 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7305 | if test $ac_mid -le $ac_hi; then | |
7306 | ac_lo= ac_hi= | |
7307 | break | |
7308 | fi | |
7309 | ac_mid=`expr 2 '*' $ac_mid` | |
7310 | fi | |
7311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7312 | done | |
7313 | else | |
7314 | echo "$as_me: failed program was:" >&5 | |
7315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7316 | ||
7317 | ac_lo= ac_hi= | |
7318 | fi | |
7319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7320 | fi | |
7321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7322 | # Binary search between lo and hi bounds. | |
7323 | while test "x$ac_lo" != "x$ac_hi"; do | |
7324 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7325 | cat >conftest.$ac_ext <<_ACEOF | |
7326 | /* confdefs.h. */ | |
7327 | _ACEOF | |
7328 | cat confdefs.h >>conftest.$ac_ext | |
7329 | cat >>conftest.$ac_ext <<_ACEOF | |
7330 | /* end confdefs.h. */ | |
7331 | $ac_includes_default | |
7332 | int | |
7333 | main () | |
7334 | { | |
7335 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7336 | test_array [0] = 0 | |
7337 | ||
7338 | ; | |
7339 | return 0; | |
7340 | } | |
7341 | _ACEOF | |
7342 | rm -f conftest.$ac_objext | |
7343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7344 | (eval $ac_compile) 2>conftest.er1 | |
7345 | ac_status=$? | |
7346 | grep -v '^ *+' conftest.er1 >conftest.err | |
7347 | rm -f conftest.er1 | |
7348 | cat conftest.err >&5 | |
7349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7350 | (exit $ac_status); } && | |
7351 | { ac_try='test -z "$ac_c_werror_flag" | |
7352 | || test ! -s conftest.err' | |
7353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7354 | (eval $ac_try) 2>&5 | |
7355 | ac_status=$? | |
7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357 | (exit $ac_status); }; } && | |
7358 | { ac_try='test -s conftest.$ac_objext' | |
7359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7360 | (eval $ac_try) 2>&5 | |
7361 | ac_status=$? | |
7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7363 | (exit $ac_status); }; }; then | |
7364 | ac_hi=$ac_mid | |
7365 | else | |
7366 | echo "$as_me: failed program was:" >&5 | |
7367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7368 | ||
7369 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7370 | fi | |
7371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7372 | done | |
7373 | case $ac_lo in | |
7374 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
d5af19ba DJ |
7375 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7376 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7377 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
c0993dbe UW |
7378 | See \`config.log' for more details." >&5 |
7379 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7380 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7381 | { (exit 1); exit 1; }; }; } ;; |
c0993dbe UW |
7382 | esac |
7383 | else | |
7384 | if test "$cross_compiling" = yes; then | |
d5af19ba DJ |
7385 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7386 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7387 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
c0993dbe UW |
7388 | See \`config.log' for more details." >&5 |
7389 | echo "$as_me: error: cannot run test program while cross compiling | |
7390 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7391 | { (exit 1); exit 1; }; }; } |
c0993dbe UW |
7392 | else |
7393 | cat >conftest.$ac_ext <<_ACEOF | |
7394 | /* confdefs.h. */ | |
7395 | _ACEOF | |
7396 | cat confdefs.h >>conftest.$ac_ext | |
7397 | cat >>conftest.$ac_ext <<_ACEOF | |
7398 | /* end confdefs.h. */ | |
7399 | $ac_includes_default | |
7400 | long longval () { return (long) (sizeof (long)); } | |
7401 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
7402 | #include <stdio.h> | |
7403 | #include <stdlib.h> | |
7404 | int | |
7405 | main () | |
7406 | { | |
7407 | ||
7408 | FILE *f = fopen ("conftest.val", "w"); | |
7409 | if (! f) | |
7410 | exit (1); | |
7411 | if (((long) (sizeof (long))) < 0) | |
7412 | { | |
7413 | long i = longval (); | |
7414 | if (i != ((long) (sizeof (long)))) | |
7415 | exit (1); | |
7416 | fprintf (f, "%ld\n", i); | |
7417 | } | |
7418 | else | |
7419 | { | |
7420 | unsigned long i = ulongval (); | |
7421 | if (i != ((long) (sizeof (long)))) | |
7422 | exit (1); | |
7423 | fprintf (f, "%lu\n", i); | |
7424 | } | |
7425 | exit (ferror (f) || fclose (f) != 0); | |
7426 | ||
7427 | ; | |
7428 | return 0; | |
7429 | } | |
7430 | _ACEOF | |
7431 | rm -f conftest$ac_exeext | |
7432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7433 | (eval $ac_link) 2>&5 | |
7434 | ac_status=$? | |
7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7438 | (eval $ac_try) 2>&5 | |
7439 | ac_status=$? | |
7440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7441 | (exit $ac_status); }; }; then | |
7442 | ac_cv_sizeof_long=`cat conftest.val` | |
7443 | else | |
7444 | echo "$as_me: program exited with status $ac_status" >&5 | |
7445 | echo "$as_me: failed program was:" >&5 | |
7446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7447 | ||
7448 | ( exit $ac_status ) | |
d5af19ba DJ |
7449 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7450 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c0993dbe UW |
7451 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
7452 | See \`config.log' for more details." >&5 | |
7453 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7454 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7455 | { (exit 1); exit 1; }; }; } |
c0993dbe UW |
7456 | fi |
7457 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7458 | fi | |
7459 | fi | |
7460 | rm -f conftest.val | |
7461 | else | |
7462 | ac_cv_sizeof_long=0 | |
7463 | fi | |
7464 | fi | |
7465 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7466 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7467 | cat >>confdefs.h <<_ACEOF | |
7468 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7469 | _ACEOF | |
7470 | ||
7471 | ||
7472 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
7473 | want64=true | |
7474 | fi | |
7475 | fi | |
7476 | if test x${want64} = xtrue; then | |
7477 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' | |
7478 | else | |
7479 | TARGET_OBS='$(ALL_TARGET_OBS)' | |
7480 | fi | |
7481 | fi | |
7482 | ||
7483 | ||
7484 | ||
7485 | # For other settings, only the main target counts. | |
7486 | gdb_sim= | |
7487 | gdb_osabi= | |
7488 | build_gdbserver= | |
7489 | targ=$target; . ${srcdir}/configure.tgt | |
7490 | ||
7491 | # Fetch the default architecture and default target vector from BFD. | |
7492 | targ=$target; . $srcdir/../bfd/config.bfd | |
7493 | ||
7494 | # We only want the first architecture, so strip off the others if | |
7495 | # there is more than one. | |
7496 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
7497 | ||
7498 | if test "x$targ_archs" != x; then | |
7499 | ||
7500 | cat >>confdefs.h <<_ACEOF | |
7501 | #define DEFAULT_BFD_ARCH $targ_archs | |
7502 | _ACEOF | |
7503 | ||
7504 | fi | |
7505 | if test "x$targ_defvec" != x; then | |
7506 | ||
7507 | cat >>confdefs.h <<_ACEOF | |
7508 | #define DEFAULT_BFD_VEC $targ_defvec | |
7509 | _ACEOF | |
7510 | ||
7511 | fi | |
7512 | ||
c0993dbe UW |
7513 | # The CLI cannot be disabled yet, but may be in the future. |
7514 | ||
7515 | # Enable CLI. | |
7516 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
7517 | if test "${enable_gdbcli+set}" = set; then | |
7518 | enableval="$enable_gdbcli" | |
7519 | case $enableval in | |
7520 | yes) | |
7521 | ;; | |
7522 | no) | |
7523 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
7524 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
7525 | { (exit 1); exit 1; }; } ;; | |
7526 | *) | |
7527 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
7528 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
7529 | { (exit 1); exit 1; }; } ;; | |
7530 | esac | |
7531 | else | |
7532 | enable_gdbcli=yes | |
7533 | fi; | |
7534 | if test x"$enable_gdbcli" = xyes; then | |
7535 | if test -d $srcdir/cli; then | |
7536 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
7537 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
7538 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
7539 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
7540 | fi | |
7541 | fi | |
7542 | ||
7543 | # Enable MI. | |
7544 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
7545 | if test "${enable_gdbmi+set}" = set; then | |
7546 | enableval="$enable_gdbmi" | |
7547 | case $enableval in | |
7548 | yes | no) | |
7549 | ;; | |
7550 | *) | |
7551 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
7552 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
7553 | { (exit 1); exit 1; }; } ;; | |
7554 | esac | |
7555 | else | |
7556 | enable_gdbmi=yes | |
7557 | fi; | |
7558 | if test x"$enable_gdbmi" = xyes; then | |
7559 | if test -d $srcdir/mi; then | |
7560 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
7561 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
7562 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
7563 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
7564 | fi | |
7565 | fi | |
7566 | ||
7567 | # Enable TUI. | |
7568 | # Check whether --enable-tui or --disable-tui was given. | |
7569 | if test "${enable_tui+set}" = set; then | |
7570 | enableval="$enable_tui" | |
7571 | case $enableval in | |
3ca64bd3 | 7572 | yes | no | auto) |
c0993dbe UW |
7573 | ;; |
7574 | *) | |
7575 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
7576 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
7577 | { (exit 1); exit 1; }; } ;; | |
7578 | esac | |
7579 | else | |
3ca64bd3 | 7580 | enable_tui=auto |
c0993dbe UW |
7581 | fi; |
7582 | ||
7583 | # Enable gdbtk. | |
7584 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
7585 | if test "${enable_gdbtk+set}" = set; then | |
7586 | enableval="$enable_gdbtk" | |
7587 | case $enableval in | |
7588 | yes | no) | |
7589 | ;; | |
7590 | *) | |
7591 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
7592 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
7593 | { (exit 1); exit 1; }; } ;; | |
7594 | esac | |
7595 | else | |
5062cc19 | 7596 | if test -d $srcdir/gdbtk; then |
c0993dbe UW |
7597 | enable_gdbtk=yes |
7598 | else | |
7599 | enable_gdbtk=no | |
7600 | fi | |
7601 | fi; | |
7602 | # We unconditionally disable gdbtk tests on selected platforms. | |
7603 | case $host_os in | |
7604 | go32* | windows*) | |
7605 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
7606 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
7607 | enable_gdbtk=no ;; | |
7608 | esac | |
7609 | ||
7610 | # Libunwind support. | |
bec39cab | 7611 | |
b4e70030 | 7612 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 7613 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
7614 | withval="$with_libunwind" |
7615 | case "${withval}" in | |
bec39cab AC |
7616 | yes) enable_libunwind=yes ;; |
7617 | no) enable_libunwind=no ;; | |
7618 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
7619 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
7620 | { (exit 1); exit 1; }; } ;; | |
7621 | esac | |
7622 | else | |
7623 | ||
7624 | ||
7625 | for ac_header in libunwind.h | |
7626 | do | |
7627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7633 | fi | |
b4e70030 JB |
7634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7636 | else |
7637 | # Is the header compilable? | |
b4e70030 JB |
7638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7640 | cat >conftest.$ac_ext <<_ACEOF |
7641 | /* confdefs.h. */ | |
7642 | _ACEOF | |
7643 | cat confdefs.h >>conftest.$ac_ext | |
7644 | cat >>conftest.$ac_ext <<_ACEOF | |
7645 | /* end confdefs.h. */ | |
7646 | $ac_includes_default | |
7647 | #include <$ac_header> | |
7648 | _ACEOF | |
7649 | rm -f conftest.$ac_objext | |
7650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7651 | (eval $ac_compile) 2>conftest.er1 | |
7652 | ac_status=$? | |
7653 | grep -v '^ *+' conftest.er1 >conftest.err | |
7654 | rm -f conftest.er1 | |
7655 | cat conftest.err >&5 | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7657 | (exit $ac_status); } && | |
b4e70030 JB |
7658 | { ac_try='test -z "$ac_c_werror_flag" |
7659 | || test ! -s conftest.err' | |
bec39cab AC |
7660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7661 | (eval $ac_try) 2>&5 | |
7662 | ac_status=$? | |
7663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7664 | (exit $ac_status); }; } && | |
7665 | { ac_try='test -s conftest.$ac_objext' | |
7666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7667 | (eval $ac_try) 2>&5 | |
7668 | ac_status=$? | |
7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7670 | (exit $ac_status); }; }; then | |
7671 | ac_header_compiler=yes | |
7672 | else | |
7673 | echo "$as_me: failed program was:" >&5 | |
7674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7675 | ||
b4e70030 | 7676 | ac_header_compiler=no |
bec39cab AC |
7677 | fi |
7678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7681 | |
7682 | # Is the header present? | |
b4e70030 JB |
7683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7685 | cat >conftest.$ac_ext <<_ACEOF |
7686 | /* confdefs.h. */ | |
7687 | _ACEOF | |
7688 | cat confdefs.h >>conftest.$ac_ext | |
7689 | cat >>conftest.$ac_ext <<_ACEOF | |
7690 | /* end confdefs.h. */ | |
7691 | #include <$ac_header> | |
7692 | _ACEOF | |
7693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7695 | ac_status=$? | |
7696 | grep -v '^ *+' conftest.er1 >conftest.err | |
7697 | rm -f conftest.er1 | |
7698 | cat conftest.err >&5 | |
7699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7700 | (exit $ac_status); } >/dev/null; then | |
7701 | if test -s conftest.err; then | |
7702 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7704 | else | |
7705 | ac_cpp_err= | |
7706 | fi | |
7707 | else | |
7708 | ac_cpp_err=yes | |
7709 | fi | |
7710 | if test -z "$ac_cpp_err"; then | |
7711 | ac_header_preproc=yes | |
7712 | else | |
7713 | echo "$as_me: failed program was:" >&5 | |
7714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7715 | ||
7716 | ac_header_preproc=no | |
7717 | fi | |
7718 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7721 | |
7722 | # So? What about this header? | |
7723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7724 | yes:no: ) | |
7725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7729 | ac_header_preproc=yes | |
7730 | ;; | |
7731 | no:yes:* ) | |
7732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7744 | ( |
7745 | cat <<\_ASBOX | |
7746 | ## ------------------------------------------ ## | |
7747 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7748 | ## ------------------------------------------ ## | |
7749 | _ASBOX | |
7750 | ) | | |
7751 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7752 | ;; |
7753 | esac | |
b4e70030 JB |
7754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7758 | else | |
7759 | eval "$as_ac_Header=\$ac_header_preproc" | |
7760 | fi | |
b4e70030 JB |
7761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7763 | |
7764 | fi | |
7765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7766 | cat >>confdefs.h <<_ACEOF | |
7767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7768 | _ACEOF | |
7769 | ||
7770 | fi | |
7771 | ||
7772 | done | |
7773 | ||
7774 | ||
7775 | for ac_header in libunwind-ia64.h | |
7776 | do | |
7777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7783 | fi | |
b4e70030 JB |
7784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7785 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7786 | else |
7787 | # Is the header compilable? | |
b4e70030 JB |
7788 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7790 | cat >conftest.$ac_ext <<_ACEOF |
7791 | /* confdefs.h. */ | |
7792 | _ACEOF | |
7793 | cat confdefs.h >>conftest.$ac_ext | |
7794 | cat >>conftest.$ac_ext <<_ACEOF | |
7795 | /* end confdefs.h. */ | |
7796 | $ac_includes_default | |
7797 | #include <$ac_header> | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext | |
7800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7801 | (eval $ac_compile) 2>conftest.er1 | |
7802 | ac_status=$? | |
7803 | grep -v '^ *+' conftest.er1 >conftest.err | |
7804 | rm -f conftest.er1 | |
7805 | cat conftest.err >&5 | |
7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7807 | (exit $ac_status); } && | |
b4e70030 JB |
7808 | { ac_try='test -z "$ac_c_werror_flag" |
7809 | || test ! -s conftest.err' | |
bec39cab AC |
7810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7811 | (eval $ac_try) 2>&5 | |
7812 | ac_status=$? | |
7813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7814 | (exit $ac_status); }; } && | |
7815 | { ac_try='test -s conftest.$ac_objext' | |
7816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7817 | (eval $ac_try) 2>&5 | |
7818 | ac_status=$? | |
7819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7820 | (exit $ac_status); }; }; then | |
7821 | ac_header_compiler=yes | |
7822 | else | |
7823 | echo "$as_me: failed program was:" >&5 | |
7824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7825 | ||
b4e70030 | 7826 | ac_header_compiler=no |
bec39cab AC |
7827 | fi |
7828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7831 | |
7832 | # Is the header present? | |
b4e70030 JB |
7833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7835 | cat >conftest.$ac_ext <<_ACEOF |
7836 | /* confdefs.h. */ | |
7837 | _ACEOF | |
7838 | cat confdefs.h >>conftest.$ac_ext | |
7839 | cat >>conftest.$ac_ext <<_ACEOF | |
7840 | /* end confdefs.h. */ | |
7841 | #include <$ac_header> | |
7842 | _ACEOF | |
7843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7845 | ac_status=$? | |
7846 | grep -v '^ *+' conftest.er1 >conftest.err | |
7847 | rm -f conftest.er1 | |
7848 | cat conftest.err >&5 | |
7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7850 | (exit $ac_status); } >/dev/null; then | |
7851 | if test -s conftest.err; then | |
7852 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7853 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7854 | else | |
7855 | ac_cpp_err= | |
7856 | fi | |
7857 | else | |
7858 | ac_cpp_err=yes | |
7859 | fi | |
7860 | if test -z "$ac_cpp_err"; then | |
7861 | ac_header_preproc=yes | |
7862 | else | |
7863 | echo "$as_me: failed program was:" >&5 | |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
7866 | ac_header_preproc=no | |
7867 | fi | |
7868 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7871 | |
7872 | # So? What about this header? | |
7873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7874 | yes:no: ) | |
7875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7879 | ac_header_preproc=yes | |
7880 | ;; | |
7881 | no:yes:* ) | |
7882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7894 | ( |
7895 | cat <<\_ASBOX | |
7896 | ## ------------------------------------------ ## | |
7897 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7898 | ## ------------------------------------------ ## | |
7899 | _ASBOX | |
7900 | ) | | |
7901 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7902 | ;; |
7903 | esac | |
b4e70030 JB |
7904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7908 | else | |
7909 | eval "$as_ac_Header=\$ac_header_preproc" | |
7910 | fi | |
b4e70030 JB |
7911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7913 | |
7914 | fi | |
7915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7916 | cat >>confdefs.h <<_ACEOF | |
7917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7918 | _ACEOF | |
7919 | ||
7920 | fi | |
7921 | ||
7922 | done | |
7923 | ||
7924 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
7925 | enable_libunwind=yes; | |
7926 | fi | |
7927 | ||
b4e70030 | 7928 | fi; |
bec39cab AC |
7929 | |
7930 | if test x"$enable_libunwind" = xyes; then | |
7931 | ||
7932 | for ac_header in libunwind.h | |
7933 | do | |
7934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7940 | fi | |
b4e70030 JB |
7941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7943 | else |
7944 | # Is the header compilable? | |
b4e70030 JB |
7945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7947 | cat >conftest.$ac_ext <<_ACEOF |
7948 | /* confdefs.h. */ | |
7949 | _ACEOF | |
7950 | cat confdefs.h >>conftest.$ac_ext | |
7951 | cat >>conftest.$ac_ext <<_ACEOF | |
7952 | /* end confdefs.h. */ | |
7953 | $ac_includes_default | |
7954 | #include <$ac_header> | |
7955 | _ACEOF | |
7956 | rm -f conftest.$ac_objext | |
7957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7958 | (eval $ac_compile) 2>conftest.er1 | |
7959 | ac_status=$? | |
7960 | grep -v '^ *+' conftest.er1 >conftest.err | |
7961 | rm -f conftest.er1 | |
7962 | cat conftest.err >&5 | |
7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7964 | (exit $ac_status); } && | |
b4e70030 JB |
7965 | { ac_try='test -z "$ac_c_werror_flag" |
7966 | || test ! -s conftest.err' | |
bec39cab AC |
7967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7968 | (eval $ac_try) 2>&5 | |
7969 | ac_status=$? | |
7970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7971 | (exit $ac_status); }; } && | |
7972 | { ac_try='test -s conftest.$ac_objext' | |
7973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7974 | (eval $ac_try) 2>&5 | |
7975 | ac_status=$? | |
7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7977 | (exit $ac_status); }; }; then | |
7978 | ac_header_compiler=yes | |
7979 | else | |
7980 | echo "$as_me: failed program was:" >&5 | |
7981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7982 | ||
b4e70030 | 7983 | ac_header_compiler=no |
bec39cab AC |
7984 | fi |
7985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7988 | |
7989 | # Is the header present? | |
b4e70030 JB |
7990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7992 | cat >conftest.$ac_ext <<_ACEOF |
7993 | /* confdefs.h. */ | |
7994 | _ACEOF | |
7995 | cat confdefs.h >>conftest.$ac_ext | |
7996 | cat >>conftest.$ac_ext <<_ACEOF | |
7997 | /* end confdefs.h. */ | |
7998 | #include <$ac_header> | |
7999 | _ACEOF | |
8000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8002 | ac_status=$? | |
8003 | grep -v '^ *+' conftest.er1 >conftest.err | |
8004 | rm -f conftest.er1 | |
8005 | cat conftest.err >&5 | |
8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8007 | (exit $ac_status); } >/dev/null; then | |
8008 | if test -s conftest.err; then | |
8009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8011 | else | |
8012 | ac_cpp_err= | |
8013 | fi | |
8014 | else | |
8015 | ac_cpp_err=yes | |
8016 | fi | |
8017 | if test -z "$ac_cpp_err"; then | |
8018 | ac_header_preproc=yes | |
8019 | else | |
8020 | echo "$as_me: failed program was:" >&5 | |
8021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8022 | ||
8023 | ac_header_preproc=no | |
8024 | fi | |
8025 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
8026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8028 | |
8029 | # So? What about this header? | |
8030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8031 | yes:no: ) | |
8032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8036 | ac_header_preproc=yes | |
8037 | ;; | |
8038 | no:yes:* ) | |
8039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8051 | ( |
8052 | cat <<\_ASBOX | |
8053 | ## ------------------------------------------ ## | |
8054 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8055 | ## ------------------------------------------ ## | |
8056 | _ASBOX | |
8057 | ) | | |
8058 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8059 | ;; |
8060 | esac | |
b4e70030 JB |
8061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8065 | else | |
8066 | eval "$as_ac_Header=\$ac_header_preproc" | |
8067 | fi | |
b4e70030 JB |
8068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8070 | |
8071 | fi | |
8072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8073 | cat >>confdefs.h <<_ACEOF | |
8074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8075 | _ACEOF | |
8076 | ||
8077 | fi | |
8078 | ||
8079 | done | |
8080 | ||
8081 | ||
8082 | for ac_header in libunwind-ia64.h | |
8083 | do | |
8084 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8090 | fi | |
b4e70030 JB |
8091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8092 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8093 | else |
8094 | # Is the header compilable? | |
b4e70030 JB |
8095 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8096 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8097 | cat >conftest.$ac_ext <<_ACEOF |
8098 | /* confdefs.h. */ | |
8099 | _ACEOF | |
8100 | cat confdefs.h >>conftest.$ac_ext | |
8101 | cat >>conftest.$ac_ext <<_ACEOF | |
8102 | /* end confdefs.h. */ | |
8103 | $ac_includes_default | |
8104 | #include <$ac_header> | |
8105 | _ACEOF | |
8106 | rm -f conftest.$ac_objext | |
8107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8108 | (eval $ac_compile) 2>conftest.er1 | |
8109 | ac_status=$? | |
8110 | grep -v '^ *+' conftest.er1 >conftest.err | |
8111 | rm -f conftest.er1 | |
8112 | cat conftest.err >&5 | |
8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8114 | (exit $ac_status); } && | |
b4e70030 JB |
8115 | { ac_try='test -z "$ac_c_werror_flag" |
8116 | || test ! -s conftest.err' | |
bec39cab AC |
8117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8118 | (eval $ac_try) 2>&5 | |
8119 | ac_status=$? | |
8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8121 | (exit $ac_status); }; } && | |
8122 | { ac_try='test -s conftest.$ac_objext' | |
8123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8124 | (eval $ac_try) 2>&5 | |
8125 | ac_status=$? | |
8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8127 | (exit $ac_status); }; }; then | |
8128 | ac_header_compiler=yes | |
8129 | else | |
8130 | echo "$as_me: failed program was:" >&5 | |
8131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8132 | ||
b4e70030 | 8133 | ac_header_compiler=no |
bec39cab AC |
8134 | fi |
8135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8136 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8137 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8138 | |
8139 | # Is the header present? | |
b4e70030 JB |
8140 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8141 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8142 | cat >conftest.$ac_ext <<_ACEOF |
8143 | /* confdefs.h. */ | |
8144 | _ACEOF | |
8145 | cat confdefs.h >>conftest.$ac_ext | |
8146 | cat >>conftest.$ac_ext <<_ACEOF | |
8147 | /* end confdefs.h. */ | |
8148 | #include <$ac_header> | |
8149 | _ACEOF | |
8150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8152 | ac_status=$? | |
8153 | grep -v '^ *+' conftest.er1 >conftest.err | |
8154 | rm -f conftest.er1 | |
8155 | cat conftest.err >&5 | |
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8157 | (exit $ac_status); } >/dev/null; then | |
8158 | if test -s conftest.err; then | |
8159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8161 | else | |
8162 | ac_cpp_err= | |
8163 | fi | |
8164 | else | |
8165 | ac_cpp_err=yes | |
8166 | fi | |
8167 | if test -z "$ac_cpp_err"; then | |
8168 | ac_header_preproc=yes | |
8169 | else | |
8170 | echo "$as_me: failed program was:" >&5 | |
8171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8172 | ||
8173 | ac_header_preproc=no | |
8174 | fi | |
8175 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
8176 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8177 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8178 | |
8179 | # So? What about this header? | |
8180 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8181 | yes:no: ) | |
8182 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8183 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8184 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8185 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8186 | ac_header_preproc=yes | |
8187 | ;; | |
8188 | no:yes:* ) | |
8189 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8190 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8191 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8192 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8193 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8194 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8195 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8196 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8198 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8199 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8200 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8201 | ( |
8202 | cat <<\_ASBOX | |
8203 | ## ------------------------------------------ ## | |
8204 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8205 | ## ------------------------------------------ ## | |
8206 | _ASBOX | |
8207 | ) | | |
8208 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8209 | ;; |
8210 | esac | |
b4e70030 JB |
8211 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8212 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8215 | else | |
8216 | eval "$as_ac_Header=\$ac_header_preproc" | |
8217 | fi | |
b4e70030 JB |
8218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8219 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8220 | |
8221 | fi | |
8222 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8223 | cat >>confdefs.h <<_ACEOF | |
8224 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8225 | _ACEOF | |
8226 | ||
8227 | fi | |
8228 | ||
8229 | done | |
8230 | ||
60ca704f SE |
8231 | |
8232 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
8233 | #define HAVE_LIBUNWIND 1 |
8234 | _ACEOF | |
8235 | ||
8236 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
8237 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
8238 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
8239 | fi | |
8240 | ||
8241 | # Profiling support. | |
b4e70030 | 8242 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 8243 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
8244 | enableval="$enable_profiling" |
8245 | case $enableval in | |
bec39cab AC |
8246 | yes | no) |
8247 | ;; | |
8248 | *) | |
8249 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
8250 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
8251 | { (exit 1); exit 1; }; } ;; | |
8252 | esac | |
8253 | else | |
8254 | enable_profiling=no | |
b4e70030 | 8255 | fi; |
bec39cab AC |
8256 | |
8257 | ||
8258 | ||
8259 | for ac_func in monstartup _mcleanup | |
8260 | do | |
8261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
8262 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8264 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
8265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8266 | else | |
8267 | cat >conftest.$ac_ext <<_ACEOF | |
8268 | /* confdefs.h. */ | |
8269 | _ACEOF | |
8270 | cat confdefs.h >>conftest.$ac_ext | |
8271 | cat >>conftest.$ac_ext <<_ACEOF | |
8272 | /* end confdefs.h. */ | |
8273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8275 | #define $ac_func innocuous_$ac_func | |
8276 | ||
8277 | /* System header to define __stub macros and hopefully few prototypes, | |
8278 | which can conflict with char $ac_func (); below. | |
8279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8280 | <limits.h> exists even on freestanding compilers. */ | |
8281 | ||
8282 | #ifdef __STDC__ | |
8283 | # include <limits.h> | |
8284 | #else | |
8285 | # include <assert.h> | |
8286 | #endif | |
8287 | ||
8288 | #undef $ac_func | |
8289 | ||
b4e70030 | 8290 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8291 | #ifdef __cplusplus |
8292 | extern "C" | |
b4e70030 | 8293 | { |
bec39cab | 8294 | #endif |
b4e70030 JB |
8295 | /* We use char because int might match the return type of a gcc2 |
8296 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8297 | char $ac_func (); |
8298 | /* The GNU C library defines this for functions which it implements | |
8299 | to always fail with ENOSYS. Some functions are actually named | |
8300 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 8301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 8302 | choke me |
b4e70030 JB |
8303 | #else |
8304 | char (*f) () = $ac_func; | |
8305 | #endif | |
8306 | #ifdef __cplusplus | |
8307 | } | |
bec39cab AC |
8308 | #endif |
8309 | ||
8310 | int | |
8311 | main () | |
8312 | { | |
b4e70030 | 8313 | return f != $ac_func; |
bec39cab AC |
8314 | ; |
8315 | return 0; | |
8316 | } | |
8317 | _ACEOF | |
8318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8320 | (eval $ac_link) 2>conftest.er1 | |
8321 | ac_status=$? | |
8322 | grep -v '^ *+' conftest.er1 >conftest.err | |
8323 | rm -f conftest.er1 | |
8324 | cat conftest.err >&5 | |
8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8326 | (exit $ac_status); } && | |
b4e70030 JB |
8327 | { ac_try='test -z "$ac_c_werror_flag" |
8328 | || test ! -s conftest.err' | |
bec39cab AC |
8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8330 | (eval $ac_try) 2>&5 | |
8331 | ac_status=$? | |
8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8333 | (exit $ac_status); }; } && | |
8334 | { ac_try='test -s conftest$ac_exeext' | |
8335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8336 | (eval $ac_try) 2>&5 | |
8337 | ac_status=$? | |
8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8339 | (exit $ac_status); }; }; then | |
8340 | eval "$as_ac_var=yes" | |
8341 | else | |
8342 | echo "$as_me: failed program was:" >&5 | |
8343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8344 | ||
b4e70030 | 8345 | eval "$as_ac_var=no" |
bec39cab AC |
8346 | fi |
8347 | rm -f conftest.err conftest.$ac_objext \ | |
8348 | conftest$ac_exeext conftest.$ac_ext | |
8349 | fi | |
b4e70030 JB |
8350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8351 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
8352 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8353 | cat >>confdefs.h <<_ACEOF | |
8354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8355 | _ACEOF | |
8356 | ||
8357 | fi | |
8358 | done | |
8359 | ||
b4e70030 JB |
8360 | echo "$as_me:$LINENO: checking for _etext" >&5 |
8361 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
8362 | if test "${ac_cv_var__etext+set}" = set; then |
8363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8364 | else | |
8365 | cat >conftest.$ac_ext <<_ACEOF | |
8366 | /* confdefs.h. */ | |
8367 | _ACEOF | |
8368 | cat confdefs.h >>conftest.$ac_ext | |
8369 | cat >>conftest.$ac_ext <<_ACEOF | |
8370 | /* end confdefs.h. */ | |
8371 | #include <stdlib.h> | |
8372 | extern char _etext; | |
8373 | ||
8374 | int | |
8375 | main () | |
8376 | { | |
8377 | free (&_etext); | |
8378 | ; | |
8379 | return 0; | |
8380 | } | |
8381 | _ACEOF | |
8382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8384 | (eval $ac_link) 2>conftest.er1 | |
8385 | ac_status=$? | |
8386 | grep -v '^ *+' conftest.er1 >conftest.err | |
8387 | rm -f conftest.er1 | |
8388 | cat conftest.err >&5 | |
8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8390 | (exit $ac_status); } && | |
b4e70030 JB |
8391 | { ac_try='test -z "$ac_c_werror_flag" |
8392 | || test ! -s conftest.err' | |
bec39cab AC |
8393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8394 | (eval $ac_try) 2>&5 | |
8395 | ac_status=$? | |
8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8397 | (exit $ac_status); }; } && | |
8398 | { ac_try='test -s conftest$ac_exeext' | |
8399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8400 | (eval $ac_try) 2>&5 | |
8401 | ac_status=$? | |
8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8403 | (exit $ac_status); }; }; then | |
8404 | ac_cv_var__etext=yes | |
8405 | else | |
8406 | echo "$as_me: failed program was:" >&5 | |
8407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8408 | ||
b4e70030 | 8409 | ac_cv_var__etext=no |
bec39cab AC |
8410 | fi |
8411 | rm -f conftest.err conftest.$ac_objext \ | |
8412 | conftest$ac_exeext conftest.$ac_ext | |
8413 | fi | |
b4e70030 JB |
8414 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
8415 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
8416 | if test $ac_cv_var__etext = yes; then |
8417 | ||
8418 | cat >>confdefs.h <<\_ACEOF | |
8419 | #define HAVE__ETEXT 1 | |
8420 | _ACEOF | |
8421 | ||
01fe12f6 JB |
8422 | fi |
8423 | echo "$as_me:$LINENO: checking for etext" >&5 | |
8424 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 | |
8425 | if test "${ac_cv_var_etext+set}" = set; then | |
8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8427 | else | |
8428 | cat >conftest.$ac_ext <<_ACEOF | |
8429 | /* confdefs.h. */ | |
8430 | _ACEOF | |
8431 | cat confdefs.h >>conftest.$ac_ext | |
8432 | cat >>conftest.$ac_ext <<_ACEOF | |
8433 | /* end confdefs.h. */ | |
8434 | #include <stdlib.h> | |
8435 | extern char etext; | |
8436 | ||
8437 | int | |
8438 | main () | |
8439 | { | |
8440 | free (&etext); | |
8441 | ; | |
8442 | return 0; | |
8443 | } | |
8444 | _ACEOF | |
8445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8447 | (eval $ac_link) 2>conftest.er1 | |
8448 | ac_status=$? | |
8449 | grep -v '^ *+' conftest.er1 >conftest.err | |
8450 | rm -f conftest.er1 | |
8451 | cat conftest.err >&5 | |
8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8453 | (exit $ac_status); } && | |
8454 | { ac_try='test -z "$ac_c_werror_flag" | |
8455 | || test ! -s conftest.err' | |
8456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8457 | (eval $ac_try) 2>&5 | |
8458 | ac_status=$? | |
8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8460 | (exit $ac_status); }; } && | |
8461 | { ac_try='test -s conftest$ac_exeext' | |
8462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8463 | (eval $ac_try) 2>&5 | |
8464 | ac_status=$? | |
8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8466 | (exit $ac_status); }; }; then | |
8467 | ac_cv_var_etext=yes | |
8468 | else | |
8469 | echo "$as_me: failed program was:" >&5 | |
8470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8471 | ||
8472 | ac_cv_var_etext=no | |
8473 | fi | |
8474 | rm -f conftest.err conftest.$ac_objext \ | |
8475 | conftest$ac_exeext conftest.$ac_ext | |
8476 | fi | |
8477 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 | |
8478 | echo "${ECHO_T}$ac_cv_var_etext" >&6 | |
8479 | if test $ac_cv_var_etext = yes; then | |
8480 | ||
8481 | cat >>confdefs.h <<\_ACEOF | |
8482 | #define HAVE_ETEXT 1 | |
8483 | _ACEOF | |
8484 | ||
bec39cab AC |
8485 | fi |
8486 | if test "$enable_profiling" = yes ; then | |
8487 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
8488 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
8489 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
8490 | { (exit 1); exit 1; }; } | |
8491 | fi | |
8492 | PROFILE_CFLAGS=-pg | |
8493 | OLD_CFLAGS="$CFLAGS" | |
8494 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
8495 | ||
b4e70030 JB |
8496 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
8497 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
8498 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
8499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 8500 | else |
bec39cab AC |
8501 | cat >conftest.$ac_ext <<_ACEOF |
8502 | /* confdefs.h. */ | |
8503 | _ACEOF | |
8504 | cat confdefs.h >>conftest.$ac_ext | |
8505 | cat >>conftest.$ac_ext <<_ACEOF | |
8506 | /* end confdefs.h. */ | |
8507 | ||
8508 | int | |
8509 | main () | |
8510 | { | |
8511 | int x; | |
8512 | ; | |
8513 | return 0; | |
8514 | } | |
8515 | _ACEOF | |
8516 | rm -f conftest.$ac_objext | |
8517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8518 | (eval $ac_compile) 2>conftest.er1 | |
8519 | ac_status=$? | |
8520 | grep -v '^ *+' conftest.er1 >conftest.err | |
8521 | rm -f conftest.er1 | |
8522 | cat conftest.err >&5 | |
8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8524 | (exit $ac_status); } && | |
b4e70030 JB |
8525 | { ac_try='test -z "$ac_c_werror_flag" |
8526 | || test ! -s conftest.err' | |
bec39cab AC |
8527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8528 | (eval $ac_try) 2>&5 | |
8529 | ac_status=$? | |
8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8531 | (exit $ac_status); }; } && | |
8532 | { ac_try='test -s conftest.$ac_objext' | |
8533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8534 | (eval $ac_try) 2>&5 | |
8535 | ac_status=$? | |
8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8537 | (exit $ac_status); }; }; then | |
8538 | ac_cv_cc_supports_pg=yes | |
8539 | else | |
8540 | echo "$as_me: failed program was:" >&5 | |
8541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8542 | ||
b4e70030 | 8543 | ac_cv_cc_supports_pg=no |
bec39cab AC |
8544 | fi |
8545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8546 | fi | |
b4e70030 JB |
8547 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
8548 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
8549 | |
8550 | if test $ac_cv_cc_supports_pg = no; then | |
8551 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
8552 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
8553 | { (exit 1); exit 1; }; } | |
8554 | fi | |
8555 | ||
8556 | CFLAGS="$OLD_CFLAGS" | |
8557 | fi | |
8558 | ||
c16158bc JM |
8559 | |
8560 | ||
8561 | # Check whether --with-pkgversion or --without-pkgversion was given. | |
8562 | if test "${with_pkgversion+set}" = set; then | |
8563 | withval="$with_pkgversion" | |
8564 | case "$withval" in | |
8565 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
8566 | echo "$as_me: error: package version not specified" >&2;} | |
8567 | { (exit 1); exit 1; }; } ;; | |
8568 | no) PKGVERSION= ;; | |
8569 | *) PKGVERSION="($withval) " ;; | |
8570 | esac | |
8571 | else | |
8572 | PKGVERSION="(GDB) " | |
8573 | ||
8574 | fi; | |
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | # Check whether --with-bugurl or --without-bugurl was given. | |
8580 | if test "${with_bugurl+set}" = set; then | |
8581 | withval="$with_bugurl" | |
8582 | case "$withval" in | |
8583 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
8584 | echo "$as_me: error: bug URL not specified" >&2;} | |
8585 | { (exit 1); exit 1; }; } ;; | |
8586 | no) BUGURL= | |
8587 | ;; | |
8588 | *) BUGURL="$withval" | |
8589 | ;; | |
8590 | esac | |
8591 | else | |
8592 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
8593 | ||
8594 | fi; | |
8595 | case ${BUGURL} in | |
8596 | "") | |
8597 | REPORT_BUGS_TO= | |
8598 | REPORT_BUGS_TEXI= | |
8599 | ;; | |
8600 | *) | |
8601 | REPORT_BUGS_TO="<$BUGURL>" | |
8602 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
8603 | ;; | |
8604 | esac; | |
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | cat >>confdefs.h <<_ACEOF | |
8610 | #define PKGVERSION "$PKGVERSION" | |
8611 | _ACEOF | |
8612 | ||
8613 | ||
8614 | cat >>confdefs.h <<_ACEOF | |
8615 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
8616 | _ACEOF | |
8617 | ||
8618 | ||
bec39cab AC |
8619 | # --------------------- # |
8620 | # Checks for programs. # | |
8621 | # --------------------- # | |
8622 | ||
8623 | for ac_prog in gawk mawk nawk awk | |
8624 | do | |
8625 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8626 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8629 | if test "${ac_cv_prog_AWK+set}" = set; then |
8630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8631 | else | |
8632 | if test -n "$AWK"; then | |
8633 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
8634 | else | |
8635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8636 | for as_dir in $PATH | |
8637 | do | |
8638 | IFS=$as_save_IFS | |
8639 | test -z "$as_dir" && as_dir=. | |
8640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8642 | ac_cv_prog_AWK="$ac_prog" |
8643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8644 | break 2 | |
8645 | fi | |
8646 | done | |
8647 | done | |
8648 | ||
8649 | fi | |
8650 | fi | |
8651 | AWK=$ac_cv_prog_AWK | |
8652 | if test -n "$AWK"; then | |
b4e70030 JB |
8653 | echo "$as_me:$LINENO: result: $AWK" >&5 |
8654 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 8655 | else |
b4e70030 JB |
8656 | echo "$as_me:$LINENO: result: no" >&5 |
8657 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8658 | fi |
8659 | ||
8660 | test -n "$AWK" && break | |
8661 | done | |
8662 | ||
8663 | # Find a good install program. We prefer a C program (faster), | |
8664 | # so one script is as good as another. But avoid the broken or | |
8665 | # incompatible versions: | |
8666 | # SysV /etc/install, /usr/sbin/install | |
8667 | # SunOS /usr/etc/install | |
8668 | # IRIX /sbin/install | |
8669 | # AIX /bin/install | |
8670 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
8671 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8672 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8673 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8674 | # OS/2's system install, which has a completely different semantic | |
8675 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
8676 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8677 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
8678 | if test -z "$INSTALL"; then |
8679 | if test "${ac_cv_path_install+set}" = set; then | |
8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8681 | else | |
8682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8683 | for as_dir in $PATH | |
8684 | do | |
8685 | IFS=$as_save_IFS | |
8686 | test -z "$as_dir" && as_dir=. | |
8687 | # Account for people who put trailing slashes in PATH elements. | |
8688 | case $as_dir/ in | |
8689 | ./ | .// | /cC/* | \ | |
8690 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8691 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8692 | /usr/ucb/* ) ;; | |
c906108c | 8693 | *) |
bec39cab AC |
8694 | # OSF1 and SCO ODT 3.0 have their own names for install. |
8695 | # Don't use installbsd from OSF since it installs stuff as root | |
8696 | # by default. | |
8697 | for ac_prog in ginstall scoinst install; do | |
8698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8699 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
8700 | if test $ac_prog = install && |
8701 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8702 | # AIX install. It has an incompatible calling convention. | |
8703 | : | |
8704 | elif test $ac_prog = install && | |
8705 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8706 | # program-specific install script used by HP pwplus--don't use. | |
8707 | : | |
8708 | else | |
8709 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
8710 | break 3 | |
8711 | fi | |
8712 | fi | |
8713 | done | |
8714 | done | |
8715 | ;; | |
c906108c | 8716 | esac |
bec39cab AC |
8717 | done |
8718 | ||
8719 | ||
8720 | fi | |
8721 | if test "${ac_cv_path_install+set}" = set; then | |
8722 | INSTALL=$ac_cv_path_install | |
8723 | else | |
b4e70030 JB |
8724 | # As a last resort, use the slow shell script. We don't cache a |
8725 | # path for INSTALL within a source directory, because that will | |
bec39cab | 8726 | # break other packages using the cache if that directory is |
b4e70030 | 8727 | # removed, or if the path is relative. |
bec39cab AC |
8728 | INSTALL=$ac_install_sh |
8729 | fi | |
8730 | fi | |
b4e70030 JB |
8731 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8732 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
8733 | |
8734 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8735 | # It thinks the first close brace ends the variable substitution. | |
8736 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8737 | ||
8738 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
8739 | ||
8740 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8741 | ||
b4e70030 JB |
8742 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
8743 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
8744 | LN_S=$as_ln_s |
8745 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
8746 | echo "$as_me:$LINENO: result: yes" >&5 |
8747 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 8748 | else |
b4e70030 JB |
8749 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
8750 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
8751 | fi |
8752 | ||
8753 | if test -n "$ac_tool_prefix"; then | |
8754 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8755 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
8756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8758 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
8759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8760 | else | |
8761 | if test -n "$RANLIB"; then | |
8762 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8763 | else | |
8764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8765 | for as_dir in $PATH | |
8766 | do | |
8767 | IFS=$as_save_IFS | |
8768 | test -z "$as_dir" && as_dir=. | |
8769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8771 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8773 | break 2 | |
8774 | fi | |
8775 | done | |
8776 | done | |
8777 | ||
8778 | fi | |
8779 | fi | |
8780 | RANLIB=$ac_cv_prog_RANLIB | |
8781 | if test -n "$RANLIB"; then | |
b4e70030 JB |
8782 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8783 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 8784 | else |
b4e70030 JB |
8785 | echo "$as_me:$LINENO: result: no" >&5 |
8786 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8787 | fi |
8788 | ||
8789 | fi | |
8790 | if test -z "$ac_cv_prog_RANLIB"; then | |
8791 | ac_ct_RANLIB=$RANLIB | |
8792 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8793 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
8794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8796 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
8797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8798 | else | |
8799 | if test -n "$ac_ct_RANLIB"; then | |
8800 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8801 | else | |
8802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8803 | for as_dir in $PATH | |
8804 | do | |
8805 | IFS=$as_save_IFS | |
8806 | test -z "$as_dir" && as_dir=. | |
8807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8809 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
8810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8811 | break 2 | |
8812 | fi | |
8813 | done | |
8814 | done | |
8815 | ||
b4e70030 | 8816 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
8817 | fi |
8818 | fi | |
8819 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8820 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
8821 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
8822 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 8823 | else |
b4e70030 JB |
8824 | echo "$as_me:$LINENO: result: no" >&5 |
8825 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8826 | fi |
8827 | ||
b4e70030 | 8828 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
8829 | else |
8830 | RANLIB="$ac_cv_prog_RANLIB" | |
8831 | fi | |
8832 | ||
8833 | for ac_prog in 'bison -y' byacc | |
8834 | do | |
8835 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8836 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8839 | if test "${ac_cv_prog_YACC+set}" = set; then |
8840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8841 | else | |
8842 | if test -n "$YACC"; then | |
8843 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8844 | else | |
8845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8846 | for as_dir in $PATH | |
8847 | do | |
8848 | IFS=$as_save_IFS | |
8849 | test -z "$as_dir" && as_dir=. | |
8850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8852 | ac_cv_prog_YACC="$ac_prog" |
8853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8854 | break 2 | |
8855 | fi | |
8856 | done | |
8857 | done | |
8858 | ||
8859 | fi | |
8860 | fi | |
8861 | YACC=$ac_cv_prog_YACC | |
8862 | if test -n "$YACC"; then | |
b4e70030 JB |
8863 | echo "$as_me:$LINENO: result: $YACC" >&5 |
8864 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 8865 | else |
b4e70030 JB |
8866 | echo "$as_me:$LINENO: result: no" >&5 |
8867 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8868 | fi |
8869 | ||
8870 | test -n "$YACC" && break | |
8871 | done | |
8872 | test -n "$YACC" || YACC="yacc" | |
8873 | ||
8874 | ||
8875 | if test -n "$ac_tool_prefix"; then | |
8876 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
8877 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
8878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8880 | if test "${ac_cv_prog_AR+set}" = set; then |
8881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8882 | else | |
8883 | if test -n "$AR"; then | |
8884 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8885 | else | |
8886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8887 | for as_dir in $PATH | |
8888 | do | |
8889 | IFS=$as_save_IFS | |
8890 | test -z "$as_dir" && as_dir=. | |
8891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8893 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
8894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8895 | break 2 | |
8896 | fi | |
8897 | done | |
8898 | done | |
8899 | ||
8900 | fi | |
8901 | fi | |
8902 | AR=$ac_cv_prog_AR | |
8903 | if test -n "$AR"; then | |
b4e70030 JB |
8904 | echo "$as_me:$LINENO: result: $AR" >&5 |
8905 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 8906 | else |
b4e70030 JB |
8907 | echo "$as_me:$LINENO: result: no" >&5 |
8908 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8909 | fi |
8910 | ||
8911 | fi | |
8912 | if test -z "$ac_cv_prog_AR"; then | |
8913 | ac_ct_AR=$AR | |
8914 | # Extract the first word of "ar", so it can be a program name with args. | |
8915 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
8916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8918 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
8919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8920 | else | |
8921 | if test -n "$ac_ct_AR"; then | |
8922 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8923 | else | |
8924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8925 | for as_dir in $PATH | |
8926 | do | |
8927 | IFS=$as_save_IFS | |
8928 | test -z "$as_dir" && as_dir=. | |
8929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8931 | ac_cv_prog_ac_ct_AR="ar" |
8932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8933 | break 2 | |
8934 | fi | |
8935 | done | |
8936 | done | |
8937 | ||
8938 | fi | |
8939 | fi | |
8940 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8941 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
8942 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
8943 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 8944 | else |
b4e70030 JB |
8945 | echo "$as_me:$LINENO: result: no" >&5 |
8946 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8947 | fi |
8948 | ||
b4e70030 | 8949 | AR=$ac_ct_AR |
bec39cab AC |
8950 | else |
8951 | AR="$ac_cv_prog_AR" | |
8952 | fi | |
8953 | ||
8954 | if test -n "$ac_tool_prefix"; then | |
8955 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
8956 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
8957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8959 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8961 | else | |
8962 | if test -n "$DLLTOOL"; then | |
8963 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8964 | else | |
8965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8966 | for as_dir in $PATH | |
8967 | do | |
8968 | IFS=$as_save_IFS | |
8969 | test -z "$as_dir" && as_dir=. | |
8970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8972 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
8973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8974 | break 2 | |
8975 | fi | |
8976 | done | |
8977 | done | |
8978 | ||
8979 | fi | |
8980 | fi | |
8981 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8982 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
8983 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
8984 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 8985 | else |
b4e70030 JB |
8986 | echo "$as_me:$LINENO: result: no" >&5 |
8987 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8988 | fi |
8989 | ||
8990 | fi | |
8991 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
8992 | ac_ct_DLLTOOL=$DLLTOOL | |
8993 | # Extract the first word of "dlltool", so it can be a program name with args. | |
8994 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
8995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8997 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
8998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8999 | else | |
9000 | if test -n "$ac_ct_DLLTOOL"; then | |
9001 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
9002 | else | |
9003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9004 | for as_dir in $PATH | |
9005 | do | |
9006 | IFS=$as_save_IFS | |
9007 | test -z "$as_dir" && as_dir=. | |
9008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9010 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
9011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9012 | break 2 | |
9013 | fi | |
9014 | done | |
9015 | done | |
9016 | ||
9017 | fi | |
9018 | fi | |
9019 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
9020 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
9021 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
9022 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 9023 | else |
b4e70030 JB |
9024 | echo "$as_me:$LINENO: result: no" >&5 |
9025 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
9026 | fi |
9027 | ||
b4e70030 | 9028 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
9029 | else |
9030 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
9031 | fi | |
9032 | ||
9033 | if test -n "$ac_tool_prefix"; then | |
9034 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
9035 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
9036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9038 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
9039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9040 | else | |
9041 | if test -n "$WINDRES"; then | |
9042 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9043 | else | |
9044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9045 | for as_dir in $PATH | |
9046 | do | |
9047 | IFS=$as_save_IFS | |
9048 | test -z "$as_dir" && as_dir=. | |
9049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9051 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
9052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9053 | break 2 | |
9054 | fi | |
9055 | done | |
9056 | done | |
9057 | ||
9058 | fi | |
9059 | fi | |
9060 | WINDRES=$ac_cv_prog_WINDRES | |
9061 | if test -n "$WINDRES"; then | |
b4e70030 JB |
9062 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
9063 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 9064 | else |
b4e70030 JB |
9065 | echo "$as_me:$LINENO: result: no" >&5 |
9066 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
9067 | fi |
9068 | ||
9069 | fi | |
9070 | if test -z "$ac_cv_prog_WINDRES"; then | |
9071 | ac_ct_WINDRES=$WINDRES | |
9072 | # Extract the first word of "windres", so it can be a program name with args. | |
9073 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
9074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9076 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
9077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9078 | else | |
9079 | if test -n "$ac_ct_WINDRES"; then | |
9080 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
9081 | else | |
9082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9083 | for as_dir in $PATH | |
9084 | do | |
9085 | IFS=$as_save_IFS | |
9086 | test -z "$as_dir" && as_dir=. | |
9087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9089 | ac_cv_prog_ac_ct_WINDRES="windres" |
9090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9091 | break 2 | |
9092 | fi | |
9093 | done | |
9094 | done | |
9095 | ||
9096 | fi | |
9097 | fi | |
9098 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
9099 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
9100 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
9101 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 9102 | else |
b4e70030 JB |
9103 | echo "$as_me:$LINENO: result: no" >&5 |
9104 | echo "${ECHO_T}no" >&6 | |
c906108c | 9105 | fi |
bec39cab | 9106 | |
b4e70030 | 9107 | WINDRES=$ac_ct_WINDRES |
c906108c | 9108 | else |
bec39cab | 9109 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
9110 | fi |
9111 | ||
bec39cab AC |
9112 | |
9113 | # Needed for GNU/Hurd. | |
9114 | if test -n "$ac_tool_prefix"; then | |
9115 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
9116 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
9117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9119 | if test "${ac_cv_prog_MIG+set}" = set; then |
9120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 9121 | else |
bec39cab AC |
9122 | if test -n "$MIG"; then |
9123 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
9124 | else | |
9125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9126 | for as_dir in $PATH | |
9127 | do | |
9128 | IFS=$as_save_IFS | |
9129 | test -z "$as_dir" && as_dir=. | |
9130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9132 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
9133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9134 | break 2 | |
9135 | fi | |
9136 | done | |
9137 | done | |
9138 | ||
c906108c | 9139 | fi |
bec39cab AC |
9140 | fi |
9141 | MIG=$ac_cv_prog_MIG | |
9142 | if test -n "$MIG"; then | |
b4e70030 JB |
9143 | echo "$as_me:$LINENO: result: $MIG" >&5 |
9144 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 9145 | else |
b4e70030 JB |
9146 | echo "$as_me:$LINENO: result: no" >&5 |
9147 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
9148 | fi |
9149 | ||
bec39cab AC |
9150 | fi |
9151 | if test -z "$ac_cv_prog_MIG"; then | |
9152 | ac_ct_MIG=$MIG | |
9153 | # Extract the first word of "mig", so it can be a program name with args. | |
9154 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
9155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9157 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
9158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9159 | else | |
9160 | if test -n "$ac_ct_MIG"; then | |
9161 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
9162 | else | |
9163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9164 | for as_dir in $PATH | |
9165 | do | |
9166 | IFS=$as_save_IFS | |
9167 | test -z "$as_dir" && as_dir=. | |
9168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9170 | ac_cv_prog_ac_ct_MIG="mig" |
9171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9172 | break 2 | |
9173 | fi | |
9174 | done | |
9175 | done | |
c906108c | 9176 | |
bec39cab AC |
9177 | fi |
9178 | fi | |
9179 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
9180 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
9181 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
9182 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 9183 | else |
b4e70030 JB |
9184 | echo "$as_me:$LINENO: result: no" >&5 |
9185 | echo "${ECHO_T}no" >&6 | |
bec39cab | 9186 | fi |
c906108c | 9187 | |
b4e70030 | 9188 | MIG=$ac_ct_MIG |
bec39cab AC |
9189 | else |
9190 | MIG="$ac_cv_prog_MIG" | |
9191 | fi | |
c906108c | 9192 | |
c906108c | 9193 | |
bec39cab AC |
9194 | # ---------------------- # |
9195 | # Checks for libraries. # | |
9196 | # ---------------------- # | |
c906108c | 9197 | |
bec39cab | 9198 | # We might need to link with -lm; most simulators need it. |
c906108c | 9199 | |
b4e70030 JB |
9200 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
9201 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
9202 | if test "${ac_cv_lib_m_main+set}" = set; then |
9203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9204 | else | |
9205 | ac_check_lib_save_LIBS=$LIBS | |
9206 | LIBS="-lm $LIBS" | |
9207 | cat >conftest.$ac_ext <<_ACEOF | |
9208 | /* confdefs.h. */ | |
9209 | _ACEOF | |
9210 | cat confdefs.h >>conftest.$ac_ext | |
9211 | cat >>conftest.$ac_ext <<_ACEOF | |
9212 | /* end confdefs.h. */ | |
c906108c | 9213 | |
c906108c | 9214 | |
bec39cab AC |
9215 | int |
9216 | main () | |
9217 | { | |
b4e70030 | 9218 | main (); |
bec39cab AC |
9219 | ; |
9220 | return 0; | |
9221 | } | |
9222 | _ACEOF | |
9223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9225 | (eval $ac_link) 2>conftest.er1 | |
9226 | ac_status=$? | |
9227 | grep -v '^ *+' conftest.er1 >conftest.err | |
9228 | rm -f conftest.er1 | |
9229 | cat conftest.err >&5 | |
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9231 | (exit $ac_status); } && | |
b4e70030 JB |
9232 | { ac_try='test -z "$ac_c_werror_flag" |
9233 | || test ! -s conftest.err' | |
bec39cab AC |
9234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9235 | (eval $ac_try) 2>&5 | |
9236 | ac_status=$? | |
9237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9238 | (exit $ac_status); }; } && | |
9239 | { ac_try='test -s conftest$ac_exeext' | |
9240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9241 | (eval $ac_try) 2>&5 | |
9242 | ac_status=$? | |
9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9244 | (exit $ac_status); }; }; then | |
9245 | ac_cv_lib_m_main=yes | |
9246 | else | |
9247 | echo "$as_me: failed program was:" >&5 | |
9248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9249 | ||
b4e70030 | 9250 | ac_cv_lib_m_main=no |
bec39cab AC |
9251 | fi |
9252 | rm -f conftest.err conftest.$ac_objext \ | |
9253 | conftest$ac_exeext conftest.$ac_ext | |
9254 | LIBS=$ac_check_lib_save_LIBS | |
9255 | fi | |
b4e70030 JB |
9256 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
9257 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
9258 | if test $ac_cv_lib_m_main = yes; then |
9259 | cat >>confdefs.h <<_ACEOF | |
9260 | #define HAVE_LIBM 1 | |
9261 | _ACEOF | |
9262 | ||
9263 | LIBS="-lm $LIBS" | |
c906108c | 9264 | |
c906108c | 9265 | fi |
bec39cab AC |
9266 | |
9267 | ||
9268 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
9269 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
9270 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
9271 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
9272 | echo "$as_me:$LINENO: checking for wctype" >&5 |
9273 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
9274 | if test "${ac_cv_func_wctype+set}" = set; then |
9275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9276 | else | |
9277 | cat >conftest.$ac_ext <<_ACEOF | |
9278 | /* confdefs.h. */ | |
9279 | _ACEOF | |
9280 | cat confdefs.h >>conftest.$ac_ext | |
9281 | cat >>conftest.$ac_ext <<_ACEOF | |
9282 | /* end confdefs.h. */ | |
9283 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
9284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9285 | #define wctype innocuous_wctype | |
9286 | ||
9287 | /* System header to define __stub macros and hopefully few prototypes, | |
9288 | which can conflict with char wctype (); below. | |
9289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9290 | <limits.h> exists even on freestanding compilers. */ | |
9291 | ||
9292 | #ifdef __STDC__ | |
9293 | # include <limits.h> | |
9294 | #else | |
9295 | # include <assert.h> | |
9296 | #endif | |
9297 | ||
9298 | #undef wctype | |
9299 | ||
b4e70030 | 9300 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9301 | #ifdef __cplusplus |
9302 | extern "C" | |
b4e70030 | 9303 | { |
bec39cab | 9304 | #endif |
b4e70030 JB |
9305 | /* We use char because int might match the return type of a gcc2 |
9306 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9307 | char wctype (); |
9308 | /* The GNU C library defines this for functions which it implements | |
9309 | to always fail with ENOSYS. Some functions are actually named | |
9310 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 9311 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 9312 | choke me |
b4e70030 JB |
9313 | #else |
9314 | char (*f) () = wctype; | |
9315 | #endif | |
9316 | #ifdef __cplusplus | |
9317 | } | |
bec39cab AC |
9318 | #endif |
9319 | ||
9320 | int | |
9321 | main () | |
9322 | { | |
b4e70030 | 9323 | return f != wctype; |
bec39cab AC |
9324 | ; |
9325 | return 0; | |
9326 | } | |
9327 | _ACEOF | |
9328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9330 | (eval $ac_link) 2>conftest.er1 | |
9331 | ac_status=$? | |
9332 | grep -v '^ *+' conftest.er1 >conftest.err | |
9333 | rm -f conftest.er1 | |
9334 | cat conftest.err >&5 | |
9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9336 | (exit $ac_status); } && | |
b4e70030 JB |
9337 | { ac_try='test -z "$ac_c_werror_flag" |
9338 | || test ! -s conftest.err' | |
bec39cab AC |
9339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9340 | (eval $ac_try) 2>&5 | |
9341 | ac_status=$? | |
9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9343 | (exit $ac_status); }; } && | |
9344 | { ac_try='test -s conftest$ac_exeext' | |
9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9346 | (eval $ac_try) 2>&5 | |
9347 | ac_status=$? | |
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9349 | (exit $ac_status); }; }; then | |
9350 | ac_cv_func_wctype=yes | |
9351 | else | |
9352 | echo "$as_me: failed program was:" >&5 | |
9353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9354 | ||
b4e70030 | 9355 | ac_cv_func_wctype=no |
bec39cab AC |
9356 | fi |
9357 | rm -f conftest.err conftest.$ac_objext \ | |
9358 | conftest$ac_exeext conftest.$ac_ext | |
9359 | fi | |
b4e70030 JB |
9360 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
9361 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
9362 | if test $ac_cv_func_wctype = yes; then |
9363 | : | |
c906108c | 9364 | else |
c906108c | 9365 | |
b4e70030 JB |
9366 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
9367 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
9368 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9370 | else | |
9371 | ac_check_lib_save_LIBS=$LIBS | |
9372 | LIBS="-lw $LIBS" | |
9373 | cat >conftest.$ac_ext <<_ACEOF | |
9374 | /* confdefs.h. */ | |
9375 | _ACEOF | |
9376 | cat confdefs.h >>conftest.$ac_ext | |
9377 | cat >>conftest.$ac_ext <<_ACEOF | |
9378 | /* end confdefs.h. */ | |
c906108c | 9379 | |
b4e70030 | 9380 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9381 | #ifdef __cplusplus |
9382 | extern "C" | |
9383 | #endif | |
b4e70030 JB |
9384 | /* We use char because int might match the return type of a gcc2 |
9385 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9386 | char wctype (); |
9387 | int | |
9388 | main () | |
9389 | { | |
b4e70030 | 9390 | wctype (); |
bec39cab AC |
9391 | ; |
9392 | return 0; | |
9393 | } | |
9394 | _ACEOF | |
9395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9397 | (eval $ac_link) 2>conftest.er1 | |
9398 | ac_status=$? | |
9399 | grep -v '^ *+' conftest.er1 >conftest.err | |
9400 | rm -f conftest.er1 | |
9401 | cat conftest.err >&5 | |
9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9403 | (exit $ac_status); } && | |
b4e70030 JB |
9404 | { ac_try='test -z "$ac_c_werror_flag" |
9405 | || test ! -s conftest.err' | |
bec39cab AC |
9406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9407 | (eval $ac_try) 2>&5 | |
9408 | ac_status=$? | |
9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9410 | (exit $ac_status); }; } && | |
9411 | { ac_try='test -s conftest$ac_exeext' | |
9412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9413 | (eval $ac_try) 2>&5 | |
9414 | ac_status=$? | |
9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9416 | (exit $ac_status); }; }; then | |
9417 | ac_cv_lib_w_wctype=yes | |
9418 | else | |
9419 | echo "$as_me: failed program was:" >&5 | |
9420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9421 | ||
b4e70030 | 9422 | ac_cv_lib_w_wctype=no |
bec39cab AC |
9423 | fi |
9424 | rm -f conftest.err conftest.$ac_objext \ | |
9425 | conftest$ac_exeext conftest.$ac_ext | |
9426 | LIBS=$ac_check_lib_save_LIBS | |
9427 | fi | |
b4e70030 JB |
9428 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
9429 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
9430 | if test $ac_cv_lib_w_wctype = yes; then |
9431 | cat >>confdefs.h <<_ACEOF | |
9432 | #define HAVE_LIBW 1 | |
9433 | _ACEOF | |
c906108c | 9434 | |
bec39cab | 9435 | LIBS="-lw $LIBS" |
c906108c | 9436 | |
bec39cab | 9437 | fi |
c906108c | 9438 | |
bec39cab | 9439 | fi |
c906108c | 9440 | |
ddc9cd0f | 9441 | |
bec39cab | 9442 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
9443 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
9444 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
9445 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
9446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9447 | else | |
9448 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 9449 | ac_cv_search_gethostbyname=no |
bec39cab AC |
9450 | cat >conftest.$ac_ext <<_ACEOF |
9451 | /* confdefs.h. */ | |
9452 | _ACEOF | |
9453 | cat confdefs.h >>conftest.$ac_ext | |
9454 | cat >>conftest.$ac_ext <<_ACEOF | |
9455 | /* end confdefs.h. */ | |
ddc9cd0f | 9456 | |
b4e70030 | 9457 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9458 | #ifdef __cplusplus |
9459 | extern "C" | |
9460 | #endif | |
b4e70030 JB |
9461 | /* We use char because int might match the return type of a gcc2 |
9462 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9463 | char gethostbyname (); |
9464 | int | |
9465 | main () | |
9466 | { | |
b4e70030 | 9467 | gethostbyname (); |
bec39cab AC |
9468 | ; |
9469 | return 0; | |
9470 | } | |
9471 | _ACEOF | |
b4e70030 | 9472 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9474 | (eval $ac_link) 2>conftest.er1 | |
9475 | ac_status=$? | |
9476 | grep -v '^ *+' conftest.er1 >conftest.err | |
9477 | rm -f conftest.er1 | |
9478 | cat conftest.err >&5 | |
9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9480 | (exit $ac_status); } && | |
b4e70030 JB |
9481 | { ac_try='test -z "$ac_c_werror_flag" |
9482 | || test ! -s conftest.err' | |
bec39cab AC |
9483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9484 | (eval $ac_try) 2>&5 | |
9485 | ac_status=$? | |
9486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9487 | (exit $ac_status); }; } && | |
9488 | { ac_try='test -s conftest$ac_exeext' | |
9489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9490 | (eval $ac_try) 2>&5 | |
9491 | ac_status=$? | |
9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9493 | (exit $ac_status); }; }; then | |
b4e70030 | 9494 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
9495 | else |
9496 | echo "$as_me: failed program was:" >&5 | |
9497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 9498 | |
bec39cab AC |
9499 | fi |
9500 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9501 | conftest$ac_exeext conftest.$ac_ext |
9502 | if test "$ac_cv_search_gethostbyname" = no; then | |
9503 | for ac_lib in nsl; do | |
9504 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9505 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
9506 | /* confdefs.h. */ |
9507 | _ACEOF | |
9508 | cat confdefs.h >>conftest.$ac_ext | |
9509 | cat >>conftest.$ac_ext <<_ACEOF | |
9510 | /* end confdefs.h. */ | |
ddc9cd0f | 9511 | |
b4e70030 | 9512 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9513 | #ifdef __cplusplus |
9514 | extern "C" | |
9515 | #endif | |
b4e70030 JB |
9516 | /* We use char because int might match the return type of a gcc2 |
9517 | builtin and then its argument prototype would still apply. */ | |
9518 | char gethostbyname (); | |
bec39cab AC |
9519 | int |
9520 | main () | |
9521 | { | |
b4e70030 | 9522 | gethostbyname (); |
bec39cab AC |
9523 | ; |
9524 | return 0; | |
9525 | } | |
9526 | _ACEOF | |
b4e70030 | 9527 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9529 | (eval $ac_link) 2>conftest.er1 | |
9530 | ac_status=$? | |
9531 | grep -v '^ *+' conftest.er1 >conftest.err | |
9532 | rm -f conftest.er1 | |
9533 | cat conftest.err >&5 | |
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9535 | (exit $ac_status); } && | |
b4e70030 JB |
9536 | { ac_try='test -z "$ac_c_werror_flag" |
9537 | || test ! -s conftest.err' | |
bec39cab AC |
9538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9539 | (eval $ac_try) 2>&5 | |
9540 | ac_status=$? | |
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9542 | (exit $ac_status); }; } && | |
9543 | { ac_try='test -s conftest$ac_exeext' | |
9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9545 | (eval $ac_try) 2>&5 | |
9546 | ac_status=$? | |
9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9548 | (exit $ac_status); }; }; then | |
b4e70030 JB |
9549 | ac_cv_search_gethostbyname="-l$ac_lib" |
9550 | break | |
bec39cab AC |
9551 | else |
9552 | echo "$as_me: failed program was:" >&5 | |
9553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9554 | ||
9555 | fi | |
9556 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9557 | conftest$ac_exeext conftest.$ac_ext |
9558 | done | |
bec39cab AC |
9559 | fi |
9560 | LIBS=$ac_func_search_save_LIBS | |
9561 | fi | |
b4e70030 JB |
9562 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
9563 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
9564 | if test "$ac_cv_search_gethostbyname" != no; then | |
9565 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 9566 | |
bec39cab | 9567 | fi |
96baa820 | 9568 | |
c906108c | 9569 | |
b4e70030 JB |
9570 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
9571 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
9572 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
9573 | if test "${ac_cv_search_socketpair+set}" = set; then | |
9574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9575 | else | |
9576 | ac_func_search_save_LIBS=$LIBS | |
9577 | ac_cv_search_socketpair=no | |
9578 | cat >conftest.$ac_ext <<_ACEOF | |
9579 | /* confdefs.h. */ | |
9580 | _ACEOF | |
9581 | cat confdefs.h >>conftest.$ac_ext | |
9582 | cat >>conftest.$ac_ext <<_ACEOF | |
9583 | /* end confdefs.h. */ | |
9584 | ||
9585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9586 | #ifdef __cplusplus | |
9587 | extern "C" | |
9588 | #endif | |
9589 | /* We use char because int might match the return type of a gcc2 | |
9590 | builtin and then its argument prototype would still apply. */ | |
9591 | char socketpair (); | |
9592 | int | |
9593 | main () | |
9594 | { | |
9595 | socketpair (); | |
9596 | ; | |
9597 | return 0; | |
9598 | } | |
9599 | _ACEOF | |
9600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9602 | (eval $ac_link) 2>conftest.er1 | |
9603 | ac_status=$? | |
9604 | grep -v '^ *+' conftest.er1 >conftest.err | |
9605 | rm -f conftest.er1 | |
9606 | cat conftest.err >&5 | |
9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9608 | (exit $ac_status); } && | |
9609 | { ac_try='test -z "$ac_c_werror_flag" | |
9610 | || test ! -s conftest.err' | |
9611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9612 | (eval $ac_try) 2>&5 | |
9613 | ac_status=$? | |
9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9615 | (exit $ac_status); }; } && | |
9616 | { ac_try='test -s conftest$ac_exeext' | |
9617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9618 | (eval $ac_try) 2>&5 | |
9619 | ac_status=$? | |
9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9621 | (exit $ac_status); }; }; then | |
9622 | ac_cv_search_socketpair="none required" | |
9623 | else | |
9624 | echo "$as_me: failed program was:" >&5 | |
9625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9626 | ||
9627 | fi | |
9628 | rm -f conftest.err conftest.$ac_objext \ | |
9629 | conftest$ac_exeext conftest.$ac_ext | |
9630 | if test "$ac_cv_search_socketpair" = no; then | |
9631 | for ac_lib in socket; do | |
9632 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9633 | cat >conftest.$ac_ext <<_ACEOF | |
9634 | /* confdefs.h. */ | |
9635 | _ACEOF | |
9636 | cat confdefs.h >>conftest.$ac_ext | |
9637 | cat >>conftest.$ac_ext <<_ACEOF | |
9638 | /* end confdefs.h. */ | |
9639 | ||
9640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9641 | #ifdef __cplusplus | |
9642 | extern "C" | |
9643 | #endif | |
9644 | /* We use char because int might match the return type of a gcc2 | |
9645 | builtin and then its argument prototype would still apply. */ | |
9646 | char socketpair (); | |
9647 | int | |
9648 | main () | |
9649 | { | |
9650 | socketpair (); | |
9651 | ; | |
9652 | return 0; | |
9653 | } | |
9654 | _ACEOF | |
9655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9657 | (eval $ac_link) 2>conftest.er1 | |
9658 | ac_status=$? | |
9659 | grep -v '^ *+' conftest.er1 >conftest.err | |
9660 | rm -f conftest.er1 | |
9661 | cat conftest.err >&5 | |
9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9663 | (exit $ac_status); } && | |
9664 | { ac_try='test -z "$ac_c_werror_flag" | |
9665 | || test ! -s conftest.err' | |
9666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9667 | (eval $ac_try) 2>&5 | |
9668 | ac_status=$? | |
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9670 | (exit $ac_status); }; } && | |
9671 | { ac_try='test -s conftest$ac_exeext' | |
9672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9673 | (eval $ac_try) 2>&5 | |
9674 | ac_status=$? | |
9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9676 | (exit $ac_status); }; }; then | |
9677 | ac_cv_search_socketpair="-l$ac_lib" | |
9678 | break | |
9679 | else | |
9680 | echo "$as_me: failed program was:" >&5 | |
9681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9682 | ||
9683 | fi | |
9684 | rm -f conftest.err conftest.$ac_objext \ | |
9685 | conftest$ac_exeext conftest.$ac_ext | |
9686 | done | |
9687 | fi | |
9688 | LIBS=$ac_func_search_save_LIBS | |
9689 | fi | |
9690 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
9691 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
9692 | if test "$ac_cv_search_socketpair" != no; then | |
9693 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
9694 | ||
9695 | fi | |
9696 | ||
9697 | ||
233a11ab CS |
9698 | # Link in zlib if we can. This allows us to read compressed debug sections. |
9699 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
9700 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
9701 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
9702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9703 | else | |
9704 | ac_func_search_save_LIBS=$LIBS | |
9705 | ac_cv_search_zlibVersion=no | |
9706 | cat >conftest.$ac_ext <<_ACEOF | |
9707 | /* confdefs.h. */ | |
9708 | _ACEOF | |
9709 | cat confdefs.h >>conftest.$ac_ext | |
9710 | cat >>conftest.$ac_ext <<_ACEOF | |
9711 | /* end confdefs.h. */ | |
9712 | ||
9713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9714 | #ifdef __cplusplus | |
9715 | extern "C" | |
9716 | #endif | |
9717 | /* We use char because int might match the return type of a gcc2 | |
9718 | builtin and then its argument prototype would still apply. */ | |
9719 | char zlibVersion (); | |
9720 | int | |
9721 | main () | |
9722 | { | |
9723 | zlibVersion (); | |
9724 | ; | |
9725 | return 0; | |
9726 | } | |
9727 | _ACEOF | |
9728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9730 | (eval $ac_link) 2>conftest.er1 | |
9731 | ac_status=$? | |
9732 | grep -v '^ *+' conftest.er1 >conftest.err | |
9733 | rm -f conftest.er1 | |
9734 | cat conftest.err >&5 | |
9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9736 | (exit $ac_status); } && | |
9737 | { ac_try='test -z "$ac_c_werror_flag" | |
9738 | || test ! -s conftest.err' | |
9739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9740 | (eval $ac_try) 2>&5 | |
9741 | ac_status=$? | |
9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9743 | (exit $ac_status); }; } && | |
9744 | { ac_try='test -s conftest$ac_exeext' | |
9745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9746 | (eval $ac_try) 2>&5 | |
9747 | ac_status=$? | |
9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9749 | (exit $ac_status); }; }; then | |
9750 | ac_cv_search_zlibVersion="none required" | |
9751 | else | |
9752 | echo "$as_me: failed program was:" >&5 | |
9753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9754 | ||
9755 | fi | |
9756 | rm -f conftest.err conftest.$ac_objext \ | |
9757 | conftest$ac_exeext conftest.$ac_ext | |
9758 | if test "$ac_cv_search_zlibVersion" = no; then | |
9759 | for ac_lib in z; do | |
9760 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9761 | cat >conftest.$ac_ext <<_ACEOF | |
9762 | /* confdefs.h. */ | |
9763 | _ACEOF | |
9764 | cat confdefs.h >>conftest.$ac_ext | |
9765 | cat >>conftest.$ac_ext <<_ACEOF | |
9766 | /* end confdefs.h. */ | |
9767 | ||
9768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9769 | #ifdef __cplusplus | |
9770 | extern "C" | |
9771 | #endif | |
9772 | /* We use char because int might match the return type of a gcc2 | |
9773 | builtin and then its argument prototype would still apply. */ | |
9774 | char zlibVersion (); | |
9775 | int | |
9776 | main () | |
9777 | { | |
9778 | zlibVersion (); | |
9779 | ; | |
9780 | return 0; | |
9781 | } | |
9782 | _ACEOF | |
9783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9785 | (eval $ac_link) 2>conftest.er1 | |
9786 | ac_status=$? | |
9787 | grep -v '^ *+' conftest.er1 >conftest.err | |
9788 | rm -f conftest.er1 | |
9789 | cat conftest.err >&5 | |
9790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9791 | (exit $ac_status); } && | |
9792 | { ac_try='test -z "$ac_c_werror_flag" | |
9793 | || test ! -s conftest.err' | |
9794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9795 | (eval $ac_try) 2>&5 | |
9796 | ac_status=$? | |
9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9798 | (exit $ac_status); }; } && | |
9799 | { ac_try='test -s conftest$ac_exeext' | |
9800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9801 | (eval $ac_try) 2>&5 | |
9802 | ac_status=$? | |
9803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9804 | (exit $ac_status); }; }; then | |
9805 | ac_cv_search_zlibVersion="-l$ac_lib" | |
9806 | break | |
9807 | else | |
9808 | echo "$as_me: failed program was:" >&5 | |
9809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9810 | ||
9811 | fi | |
9812 | rm -f conftest.err conftest.$ac_objext \ | |
9813 | conftest$ac_exeext conftest.$ac_ext | |
9814 | done | |
9815 | fi | |
9816 | LIBS=$ac_func_search_save_LIBS | |
9817 | fi | |
9818 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
9819 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
9820 | if test "$ac_cv_search_zlibVersion" != no; then | |
9821 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
9822 | ||
9823 | for ac_header in zlib.h | |
9824 | do | |
9825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9831 | fi | |
9832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9834 | else | |
9835 | # Is the header compilable? | |
9836 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9837 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9838 | cat >conftest.$ac_ext <<_ACEOF | |
9839 | /* confdefs.h. */ | |
9840 | _ACEOF | |
9841 | cat confdefs.h >>conftest.$ac_ext | |
9842 | cat >>conftest.$ac_ext <<_ACEOF | |
9843 | /* end confdefs.h. */ | |
9844 | $ac_includes_default | |
9845 | #include <$ac_header> | |
9846 | _ACEOF | |
9847 | rm -f conftest.$ac_objext | |
9848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9849 | (eval $ac_compile) 2>conftest.er1 | |
9850 | ac_status=$? | |
9851 | grep -v '^ *+' conftest.er1 >conftest.err | |
9852 | rm -f conftest.er1 | |
9853 | cat conftest.err >&5 | |
9854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9855 | (exit $ac_status); } && | |
9856 | { ac_try='test -z "$ac_c_werror_flag" | |
9857 | || test ! -s conftest.err' | |
9858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9859 | (eval $ac_try) 2>&5 | |
9860 | ac_status=$? | |
9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9862 | (exit $ac_status); }; } && | |
9863 | { ac_try='test -s conftest.$ac_objext' | |
9864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9865 | (eval $ac_try) 2>&5 | |
9866 | ac_status=$? | |
9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9868 | (exit $ac_status); }; }; then | |
9869 | ac_header_compiler=yes | |
9870 | else | |
9871 | echo "$as_me: failed program was:" >&5 | |
9872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9873 | ||
9874 | ac_header_compiler=no | |
9875 | fi | |
9876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9877 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9878 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9879 | ||
9880 | # Is the header present? | |
9881 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9882 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9883 | cat >conftest.$ac_ext <<_ACEOF | |
9884 | /* confdefs.h. */ | |
9885 | _ACEOF | |
9886 | cat confdefs.h >>conftest.$ac_ext | |
9887 | cat >>conftest.$ac_ext <<_ACEOF | |
9888 | /* end confdefs.h. */ | |
9889 | #include <$ac_header> | |
9890 | _ACEOF | |
9891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9893 | ac_status=$? | |
9894 | grep -v '^ *+' conftest.er1 >conftest.err | |
9895 | rm -f conftest.er1 | |
9896 | cat conftest.err >&5 | |
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9898 | (exit $ac_status); } >/dev/null; then | |
9899 | if test -s conftest.err; then | |
9900 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9901 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9902 | else | |
9903 | ac_cpp_err= | |
9904 | fi | |
9905 | else | |
9906 | ac_cpp_err=yes | |
9907 | fi | |
9908 | if test -z "$ac_cpp_err"; then | |
9909 | ac_header_preproc=yes | |
9910 | else | |
9911 | echo "$as_me: failed program was:" >&5 | |
9912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9913 | ||
9914 | ac_header_preproc=no | |
9915 | fi | |
9916 | rm -f conftest.err conftest.$ac_ext | |
9917 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9918 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9919 | ||
9920 | # So? What about this header? | |
9921 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9922 | yes:no: ) | |
9923 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9924 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9925 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9926 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9927 | ac_header_preproc=yes | |
9928 | ;; | |
9929 | no:yes:* ) | |
9930 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9931 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9932 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9933 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9934 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9935 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9936 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9937 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9939 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9940 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9941 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9942 | ( | |
9943 | cat <<\_ASBOX | |
9944 | ## ------------------------------------------ ## | |
9945 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9946 | ## ------------------------------------------ ## | |
9947 | _ASBOX | |
9948 | ) | | |
9949 | sed "s/^/$as_me: WARNING: /" >&2 | |
9950 | ;; | |
9951 | esac | |
9952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9956 | else | |
9957 | eval "$as_ac_Header=\$ac_header_preproc" | |
9958 | fi | |
9959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9961 | ||
9962 | fi | |
9963 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9964 | cat >>confdefs.h <<_ACEOF | |
9965 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9966 | _ACEOF | |
9967 | ||
9968 | fi | |
9969 | ||
9970 | done | |
9971 | ||
9972 | fi | |
9973 | ||
9974 | ||
b4e70030 | 9975 | # For the TUI, we need enhanced curses functionality. |
bec39cab AC |
9976 | # |
9977 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
9978 | # curses library because the latter might not provide all the | |
9979 | # functionality we need. However, this leads to problems on systems | |
9980 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
9981 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
9982 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
9983 | # a situation. | |
b4e70030 JB |
9984 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
9985 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
9986 | if test "${ac_cv_search_waddstr+set}" = set; then |
9987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9988 | else | |
9989 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 9990 | ac_cv_search_waddstr=no |
bec39cab AC |
9991 | cat >conftest.$ac_ext <<_ACEOF |
9992 | /* confdefs.h. */ | |
9993 | _ACEOF | |
9994 | cat confdefs.h >>conftest.$ac_ext | |
9995 | cat >>conftest.$ac_ext <<_ACEOF | |
9996 | /* end confdefs.h. */ | |
c906108c | 9997 | |
b4e70030 | 9998 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9999 | #ifdef __cplusplus |
10000 | extern "C" | |
10001 | #endif | |
b4e70030 JB |
10002 | /* We use char because int might match the return type of a gcc2 |
10003 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
10004 | char waddstr (); |
10005 | int | |
10006 | main () | |
10007 | { | |
b4e70030 | 10008 | waddstr (); |
bec39cab AC |
10009 | ; |
10010 | return 0; | |
10011 | } | |
10012 | _ACEOF | |
b4e70030 | 10013 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
10014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10015 | (eval $ac_link) 2>conftest.er1 | |
10016 | ac_status=$? | |
10017 | grep -v '^ *+' conftest.er1 >conftest.err | |
10018 | rm -f conftest.er1 | |
10019 | cat conftest.err >&5 | |
10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10021 | (exit $ac_status); } && | |
b4e70030 JB |
10022 | { ac_try='test -z "$ac_c_werror_flag" |
10023 | || test ! -s conftest.err' | |
bec39cab AC |
10024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10025 | (eval $ac_try) 2>&5 | |
10026 | ac_status=$? | |
10027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10028 | (exit $ac_status); }; } && | |
10029 | { ac_try='test -s conftest$ac_exeext' | |
10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10031 | (eval $ac_try) 2>&5 | |
10032 | ac_status=$? | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); }; }; then | |
b4e70030 | 10035 | ac_cv_search_waddstr="none required" |
bec39cab AC |
10036 | else |
10037 | echo "$as_me: failed program was:" >&5 | |
10038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
10039 | |
10040 | fi | |
bec39cab | 10041 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
10042 | conftest$ac_exeext conftest.$ac_ext |
10043 | if test "$ac_cv_search_waddstr" = no; then | |
10044 | for ac_lib in ncurses cursesX curses; do | |
10045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10046 | cat >conftest.$ac_ext <<_ACEOF | |
10047 | /* confdefs.h. */ | |
10048 | _ACEOF | |
10049 | cat confdefs.h >>conftest.$ac_ext | |
10050 | cat >>conftest.$ac_ext <<_ACEOF | |
10051 | /* end confdefs.h. */ | |
10052 | ||
10053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10054 | #ifdef __cplusplus | |
10055 | extern "C" | |
10056 | #endif | |
10057 | /* We use char because int might match the return type of a gcc2 | |
10058 | builtin and then its argument prototype would still apply. */ | |
10059 | char waddstr (); | |
10060 | int | |
10061 | main () | |
10062 | { | |
10063 | waddstr (); | |
10064 | ; | |
10065 | return 0; | |
10066 | } | |
10067 | _ACEOF | |
10068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10070 | (eval $ac_link) 2>conftest.er1 | |
10071 | ac_status=$? | |
10072 | grep -v '^ *+' conftest.er1 >conftest.err | |
10073 | rm -f conftest.er1 | |
10074 | cat conftest.err >&5 | |
10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10076 | (exit $ac_status); } && | |
10077 | { ac_try='test -z "$ac_c_werror_flag" | |
10078 | || test ! -s conftest.err' | |
10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10080 | (eval $ac_try) 2>&5 | |
10081 | ac_status=$? | |
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10083 | (exit $ac_status); }; } && | |
10084 | { ac_try='test -s conftest$ac_exeext' | |
10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10086 | (eval $ac_try) 2>&5 | |
10087 | ac_status=$? | |
10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10089 | (exit $ac_status); }; }; then | |
10090 | ac_cv_search_waddstr="-l$ac_lib" | |
10091 | break | |
4e8d927d | 10092 | else |
b4e70030 JB |
10093 | echo "$as_me: failed program was:" >&5 |
10094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10095 | ||
10096 | fi | |
10097 | rm -f conftest.err conftest.$ac_objext \ | |
10098 | conftest$ac_exeext conftest.$ac_ext | |
10099 | done | |
1ba607ad | 10100 | fi |
bec39cab AC |
10101 | LIBS=$ac_func_search_save_LIBS |
10102 | fi | |
b4e70030 JB |
10103 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
10104 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
10105 | if test "$ac_cv_search_waddstr" != no; then | |
10106 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 10107 | |
8bb2c122 | 10108 | fi |
8bb2c122 | 10109 | |
8bb2c122 | 10110 | |
d542061a UW |
10111 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
10112 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 | |
10113 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 | |
10114 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then | |
10115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10116 | else | |
10117 | ac_func_search_save_LIBS=$LIBS | |
10118 | ac_cv_search_dlgetmodinfo=no | |
10119 | cat >conftest.$ac_ext <<_ACEOF | |
10120 | /* confdefs.h. */ | |
10121 | _ACEOF | |
10122 | cat confdefs.h >>conftest.$ac_ext | |
10123 | cat >>conftest.$ac_ext <<_ACEOF | |
10124 | /* end confdefs.h. */ | |
10125 | ||
10126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10127 | #ifdef __cplusplus | |
10128 | extern "C" | |
10129 | #endif | |
10130 | /* We use char because int might match the return type of a gcc2 | |
10131 | builtin and then its argument prototype would still apply. */ | |
10132 | char dlgetmodinfo (); | |
10133 | int | |
10134 | main () | |
10135 | { | |
10136 | dlgetmodinfo (); | |
10137 | ; | |
10138 | return 0; | |
10139 | } | |
10140 | _ACEOF | |
10141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10143 | (eval $ac_link) 2>conftest.er1 | |
10144 | ac_status=$? | |
10145 | grep -v '^ *+' conftest.er1 >conftest.err | |
10146 | rm -f conftest.er1 | |
10147 | cat conftest.err >&5 | |
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10149 | (exit $ac_status); } && | |
10150 | { ac_try='test -z "$ac_c_werror_flag" | |
10151 | || test ! -s conftest.err' | |
10152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10153 | (eval $ac_try) 2>&5 | |
10154 | ac_status=$? | |
10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10156 | (exit $ac_status); }; } && | |
10157 | { ac_try='test -s conftest$ac_exeext' | |
10158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10159 | (eval $ac_try) 2>&5 | |
10160 | ac_status=$? | |
10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10162 | (exit $ac_status); }; }; then | |
10163 | ac_cv_search_dlgetmodinfo="none required" | |
10164 | else | |
10165 | echo "$as_me: failed program was:" >&5 | |
10166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10167 | ||
10168 | fi | |
10169 | rm -f conftest.err conftest.$ac_objext \ | |
10170 | conftest$ac_exeext conftest.$ac_ext | |
10171 | if test "$ac_cv_search_dlgetmodinfo" = no; then | |
10172 | for ac_lib in dl xpdl; do | |
10173 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10174 | cat >conftest.$ac_ext <<_ACEOF | |
10175 | /* confdefs.h. */ | |
10176 | _ACEOF | |
10177 | cat confdefs.h >>conftest.$ac_ext | |
10178 | cat >>conftest.$ac_ext <<_ACEOF | |
10179 | /* end confdefs.h. */ | |
10180 | ||
10181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10182 | #ifdef __cplusplus | |
10183 | extern "C" | |
10184 | #endif | |
10185 | /* We use char because int might match the return type of a gcc2 | |
10186 | builtin and then its argument prototype would still apply. */ | |
10187 | char dlgetmodinfo (); | |
10188 | int | |
10189 | main () | |
10190 | { | |
10191 | dlgetmodinfo (); | |
10192 | ; | |
10193 | return 0; | |
10194 | } | |
10195 | _ACEOF | |
10196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10198 | (eval $ac_link) 2>conftest.er1 | |
10199 | ac_status=$? | |
10200 | grep -v '^ *+' conftest.er1 >conftest.err | |
10201 | rm -f conftest.er1 | |
10202 | cat conftest.err >&5 | |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10204 | (exit $ac_status); } && | |
10205 | { ac_try='test -z "$ac_c_werror_flag" | |
10206 | || test ! -s conftest.err' | |
10207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10208 | (eval $ac_try) 2>&5 | |
10209 | ac_status=$? | |
10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10211 | (exit $ac_status); }; } && | |
10212 | { ac_try='test -s conftest$ac_exeext' | |
10213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10214 | (eval $ac_try) 2>&5 | |
10215 | ac_status=$? | |
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); }; }; then | |
10218 | ac_cv_search_dlgetmodinfo="-l$ac_lib" | |
10219 | break | |
10220 | else | |
10221 | echo "$as_me: failed program was:" >&5 | |
10222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10223 | ||
10224 | fi | |
10225 | rm -f conftest.err conftest.$ac_objext \ | |
10226 | conftest$ac_exeext conftest.$ac_ext | |
10227 | done | |
10228 | fi | |
10229 | LIBS=$ac_func_search_save_LIBS | |
10230 | fi | |
10231 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 | |
10232 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 | |
10233 | if test "$ac_cv_search_dlgetmodinfo" != no; then | |
10234 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" | |
10235 | ||
10236 | fi | |
10237 | ||
10238 | ||
bec39cab AC |
10239 | # Since GDB uses Readline, we need termcap functionality. In many |
10240 | # cases this will be provided by the curses library, but some systems | |
10241 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 10242 | |
bec39cab AC |
10243 | case $host_os in |
10244 | cygwin*) | |
10245 | if test -d $srcdir/libtermcap; then | |
10246 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
10247 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
10248 | fi ;; | |
10249 | go32* | *djgpp*) | |
10250 | ac_cv_search_tgetent="none required" | |
10251 | ;; | |
7ef34f2c MM |
10252 | *mingw32*) |
10253 | ac_cv_search_tgetent="none required" | |
10254 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
10255 | ;; | |
bec39cab | 10256 | esac |
627af7ea | 10257 | |
bec39cab | 10258 | # These are the libraries checked by Readline. |
b4e70030 JB |
10259 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
10260 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
10261 | if test "${ac_cv_search_tgetent+set}" = set; then |
10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10263 | else | |
10264 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 10265 | ac_cv_search_tgetent=no |
bec39cab AC |
10266 | cat >conftest.$ac_ext <<_ACEOF |
10267 | /* confdefs.h. */ | |
10268 | _ACEOF | |
10269 | cat confdefs.h >>conftest.$ac_ext | |
10270 | cat >>conftest.$ac_ext <<_ACEOF | |
10271 | /* end confdefs.h. */ | |
10272 | ||
b4e70030 | 10273 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
10274 | #ifdef __cplusplus |
10275 | extern "C" | |
10276 | #endif | |
b4e70030 JB |
10277 | /* We use char because int might match the return type of a gcc2 |
10278 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
10279 | char tgetent (); |
10280 | int | |
10281 | main () | |
10282 | { | |
b4e70030 | 10283 | tgetent (); |
bec39cab AC |
10284 | ; |
10285 | return 0; | |
10286 | } | |
10287 | _ACEOF | |
b4e70030 | 10288 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
10289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10290 | (eval $ac_link) 2>conftest.er1 | |
10291 | ac_status=$? | |
10292 | grep -v '^ *+' conftest.er1 >conftest.err | |
10293 | rm -f conftest.er1 | |
10294 | cat conftest.err >&5 | |
10295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10296 | (exit $ac_status); } && | |
b4e70030 JB |
10297 | { ac_try='test -z "$ac_c_werror_flag" |
10298 | || test ! -s conftest.err' | |
bec39cab AC |
10299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10300 | (eval $ac_try) 2>&5 | |
10301 | ac_status=$? | |
10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10303 | (exit $ac_status); }; } && | |
10304 | { ac_try='test -s conftest$ac_exeext' | |
10305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10306 | (eval $ac_try) 2>&5 | |
10307 | ac_status=$? | |
10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 | (exit $ac_status); }; }; then | |
b4e70030 | 10310 | ac_cv_search_tgetent="none required" |
627af7ea | 10311 | else |
bec39cab AC |
10312 | echo "$as_me: failed program was:" >&5 |
10313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 10314 | |
627af7ea | 10315 | fi |
bec39cab | 10316 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
10317 | conftest$ac_exeext conftest.$ac_ext |
10318 | if test "$ac_cv_search_tgetent" = no; then | |
10319 | for ac_lib in termcap tinfo curses ncurses; do | |
10320 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10321 | cat >conftest.$ac_ext <<_ACEOF | |
10322 | /* confdefs.h. */ | |
10323 | _ACEOF | |
10324 | cat confdefs.h >>conftest.$ac_ext | |
10325 | cat >>conftest.$ac_ext <<_ACEOF | |
10326 | /* end confdefs.h. */ | |
10327 | ||
10328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10329 | #ifdef __cplusplus | |
10330 | extern "C" | |
10331 | #endif | |
10332 | /* We use char because int might match the return type of a gcc2 | |
10333 | builtin and then its argument prototype would still apply. */ | |
10334 | char tgetent (); | |
10335 | int | |
10336 | main () | |
10337 | { | |
10338 | tgetent (); | |
10339 | ; | |
10340 | return 0; | |
10341 | } | |
10342 | _ACEOF | |
10343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10345 | (eval $ac_link) 2>conftest.er1 | |
10346 | ac_status=$? | |
10347 | grep -v '^ *+' conftest.er1 >conftest.err | |
10348 | rm -f conftest.er1 | |
10349 | cat conftest.err >&5 | |
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10351 | (exit $ac_status); } && | |
10352 | { ac_try='test -z "$ac_c_werror_flag" | |
10353 | || test ! -s conftest.err' | |
10354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10355 | (eval $ac_try) 2>&5 | |
10356 | ac_status=$? | |
10357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10358 | (exit $ac_status); }; } && | |
10359 | { ac_try='test -s conftest$ac_exeext' | |
10360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10361 | (eval $ac_try) 2>&5 | |
10362 | ac_status=$? | |
10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10364 | (exit $ac_status); }; }; then | |
10365 | ac_cv_search_tgetent="-l$ac_lib" | |
10366 | break | |
4e8d927d | 10367 | else |
b4e70030 JB |
10368 | echo "$as_me: failed program was:" >&5 |
10369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10370 | ||
10371 | fi | |
10372 | rm -f conftest.err conftest.$ac_objext \ | |
10373 | conftest$ac_exeext conftest.$ac_ext | |
10374 | done | |
bec39cab AC |
10375 | fi |
10376 | LIBS=$ac_func_search_save_LIBS | |
10377 | fi | |
b4e70030 JB |
10378 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10379 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
10380 | if test "$ac_cv_search_tgetent" != no; then | |
10381 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 10382 | |
06825bd1 MK |
10383 | fi |
10384 | ||
06825bd1 | 10385 | |
bec39cab AC |
10386 | if test "$ac_cv_search_tgetent" = no; then |
10387 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
10388 | echo "$as_me: error: no termcap library found" >&2;} | |
10389 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
10390 | fi |
10391 | ||
3841debe | 10392 | |
6a30b0a5 AS |
10393 | # Check whether --with-system-readline or --without-system-readline was given. |
10394 | if test "${with_system_readline+set}" = set; then | |
10395 | withval="$with_system_readline" | |
10396 | ||
10397 | fi; | |
10398 | ||
10399 | if test "$with_system_readline" = yes; then | |
10400 | READLINE=-lreadline | |
10401 | READLINE_DEPS= | |
10402 | READLINE_CFLAGS= | |
10403 | else | |
10404 | READLINE='$(READLINE_DIR)/libreadline.a' | |
10405 | READLINE_DEPS='$(READLINE)' | |
10406 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
10407 | fi | |
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
5c39566f DJ |
10413 | # Check whether --with-expat or --without-expat was given. |
10414 | if test "${with_expat+set}" = set; then | |
10415 | withval="$with_expat" | |
10416 | ||
10417 | else | |
10418 | with_expat=auto | |
10419 | fi; | |
10420 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
10421 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
10422 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
10423 | echo "${ECHO_T}$with_expat" >&6 | |
10424 | ||
10425 | if test "${with_expat}" = no; then | |
10426 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
10427 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
10428 | HAVE_LIBEXPAT=no | |
10429 | else | |
10430 | ||
3841debe DJ |
10431 | if test "X$prefix" = "XNONE"; then |
10432 | acl_final_prefix="$ac_default_prefix" | |
10433 | else | |
10434 | acl_final_prefix="$prefix" | |
10435 | fi | |
10436 | if test "X$exec_prefix" = "XNONE"; then | |
10437 | acl_final_exec_prefix='${prefix}' | |
10438 | else | |
10439 | acl_final_exec_prefix="$exec_prefix" | |
10440 | fi | |
10441 | acl_save_prefix="$prefix" | |
10442 | prefix="$acl_final_prefix" | |
10443 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
10444 | prefix="$acl_save_prefix" | |
10445 | ||
10446 | ||
10447 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10448 | if test "${with_gnu_ld+set}" = set; then | |
10449 | withval="$with_gnu_ld" | |
10450 | test "$withval" = no || with_gnu_ld=yes | |
10451 | else | |
10452 | with_gnu_ld=no | |
10453 | fi; | |
10454 | # Prepare PATH_SEPARATOR. | |
10455 | # The user is always right. | |
10456 | if test "${PATH_SEPARATOR+set}" != set; then | |
10457 | echo "#! /bin/sh" >conf$$.sh | |
10458 | echo "exit 0" >>conf$$.sh | |
10459 | chmod +x conf$$.sh | |
10460 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10461 | PATH_SEPARATOR=';' | |
10462 | else | |
10463 | PATH_SEPARATOR=: | |
10464 | fi | |
10465 | rm -f conf$$.sh | |
10466 | fi | |
10467 | ac_prog=ld | |
10468 | if test "$GCC" = yes; then | |
10469 | # Check if gcc -print-prog-name=ld gives a path. | |
10470 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
10471 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
10472 | case $host in | |
10473 | *-*-mingw*) | |
10474 | # gcc leaves a trailing carriage return which upsets mingw | |
10475 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10476 | *) | |
10477 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10478 | esac | |
10479 | case $ac_prog in | |
10480 | # Accept absolute paths. | |
10481 | [\\/]* | [A-Za-z]:[\\/]*) | |
10482 | re_direlt='/[^/][^/]*/\.\./' | |
10483 | # Canonicalize the path of ld | |
10484 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
10485 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10486 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
10487 | done | |
10488 | test -z "$LD" && LD="$ac_prog" | |
10489 | ;; | |
10490 | "") | |
10491 | # If it fails, then pretend we aren't using GCC. | |
10492 | ac_prog=ld | |
10493 | ;; | |
10494 | *) | |
10495 | # If it is relative, then search for the first ld in PATH. | |
10496 | with_gnu_ld=unknown | |
10497 | ;; | |
10498 | esac | |
10499 | elif test "$with_gnu_ld" = yes; then | |
10500 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10501 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10502 | else | |
10503 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10504 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10505 | fi | |
10506 | if test "${acl_cv_path_LD+set}" = set; then | |
10507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10508 | else | |
10509 | if test -z "$LD"; then | |
10510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
10511 | for ac_dir in $PATH; do | |
10512 | test -z "$ac_dir" && ac_dir=. | |
10513 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10514 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
10515 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10516 | # but apparently some GNU ld's only accept -v. | |
10517 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10518 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
10519 | test "$with_gnu_ld" != no && break | |
10520 | else | |
10521 | test "$with_gnu_ld" != yes && break | |
10522 | fi | |
10523 | fi | |
10524 | done | |
10525 | IFS="$ac_save_ifs" | |
10526 | else | |
10527 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
10528 | fi | |
10529 | fi | |
10530 | ||
10531 | LD="$acl_cv_path_LD" | |
10532 | if test -n "$LD"; then | |
10533 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10534 | echo "${ECHO_T}$LD" >&6 | |
10535 | else | |
10536 | echo "$as_me:$LINENO: result: no" >&5 | |
10537 | echo "${ECHO_T}no" >&6 | |
10538 | fi | |
10539 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10540 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10541 | { (exit 1); exit 1; }; } | |
10542 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10543 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10544 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
10545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10546 | else | |
10547 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
10548 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
10549 | acl_cv_prog_gnu_ld=yes | |
10550 | else | |
10551 | acl_cv_prog_gnu_ld=no | |
10552 | fi | |
10553 | fi | |
10554 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
10555 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
10556 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
10557 | ||
10558 | ||
10559 | ||
10560 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
10561 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
10562 | if test "${acl_cv_rpath+set}" = set; then | |
10563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10564 | else | |
10565 | ||
10566 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
10567 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
10568 | . ./conftest.sh | |
10569 | rm -f ./conftest.sh | |
10570 | acl_cv_rpath=done | |
10571 | ||
10572 | fi | |
10573 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
10574 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
10575 | wl="$acl_cv_wl" | |
10576 | libext="$acl_cv_libext" | |
10577 | shlibext="$acl_cv_shlibext" | |
10578 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
10579 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
10580 | hardcode_direct="$acl_cv_hardcode_direct" | |
10581 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
10582 | # Check whether --enable-rpath or --disable-rpath was given. | |
10583 | if test "${enable_rpath+set}" = set; then | |
10584 | enableval="$enable_rpath" | |
10585 | : | |
10586 | else | |
10587 | enable_rpath=yes | |
10588 | fi; | |
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | use_additional=yes | |
10599 | ||
10600 | acl_save_prefix="$prefix" | |
10601 | prefix="$acl_final_prefix" | |
10602 | acl_save_exec_prefix="$exec_prefix" | |
10603 | exec_prefix="$acl_final_exec_prefix" | |
10604 | ||
10605 | eval additional_includedir=\"$includedir\" | |
10606 | eval additional_libdir=\"$libdir\" | |
10607 | ||
10608 | exec_prefix="$acl_save_exec_prefix" | |
10609 | prefix="$acl_save_prefix" | |
10610 | ||
10611 | ||
10612 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
10613 | if test "${with_libexpat_prefix+set}" = set; then | |
10614 | withval="$with_libexpat_prefix" | |
10615 | ||
10616 | if test "X$withval" = "Xno"; then | |
10617 | use_additional=no | |
10618 | else | |
10619 | if test "X$withval" = "X"; then | |
10620 | ||
10621 | acl_save_prefix="$prefix" | |
10622 | prefix="$acl_final_prefix" | |
10623 | acl_save_exec_prefix="$exec_prefix" | |
10624 | exec_prefix="$acl_final_exec_prefix" | |
10625 | ||
10626 | eval additional_includedir=\"$includedir\" | |
10627 | eval additional_libdir=\"$libdir\" | |
10628 | ||
10629 | exec_prefix="$acl_save_exec_prefix" | |
10630 | prefix="$acl_save_prefix" | |
10631 | ||
10632 | else | |
10633 | additional_includedir="$withval/include" | |
10634 | additional_libdir="$withval/lib" | |
10635 | fi | |
10636 | fi | |
10637 | ||
10638 | fi; | |
10639 | LIBEXPAT= | |
10640 | LTLIBEXPAT= | |
10641 | INCEXPAT= | |
10642 | rpathdirs= | |
10643 | ltrpathdirs= | |
10644 | names_already_handled= | |
10645 | names_next_round='expat ' | |
10646 | while test -n "$names_next_round"; do | |
10647 | names_this_round="$names_next_round" | |
10648 | names_next_round= | |
10649 | for name in $names_this_round; do | |
10650 | already_handled= | |
10651 | for n in $names_already_handled; do | |
10652 | if test "$n" = "$name"; then | |
10653 | already_handled=yes | |
10654 | break | |
10655 | fi | |
10656 | done | |
10657 | if test -z "$already_handled"; then | |
10658 | names_already_handled="$names_already_handled $name" | |
10659 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10660 | eval value=\"\$HAVE_LIB$uppername\" | |
10661 | if test -n "$value"; then | |
10662 | if test "$value" = yes; then | |
10663 | eval value=\"\$LIB$uppername\" | |
10664 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
10665 | eval value=\"\$LTLIB$uppername\" | |
10666 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
10667 | else | |
10668 | : | |
10669 | fi | |
10670 | else | |
10671 | found_dir= | |
10672 | found_la= | |
10673 | found_so= | |
10674 | found_a= | |
10675 | if test $use_additional = yes; then | |
10676 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10677 | found_dir="$additional_libdir" | |
10678 | found_so="$additional_libdir/lib$name.$shlibext" | |
10679 | if test -f "$additional_libdir/lib$name.la"; then | |
10680 | found_la="$additional_libdir/lib$name.la" | |
10681 | fi | |
10682 | else | |
10683 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10684 | found_dir="$additional_libdir" | |
10685 | found_a="$additional_libdir/lib$name.$libext" | |
10686 | if test -f "$additional_libdir/lib$name.la"; then | |
10687 | found_la="$additional_libdir/lib$name.la" | |
10688 | fi | |
10689 | fi | |
10690 | fi | |
10691 | fi | |
10692 | if test "X$found_dir" = "X"; then | |
10693 | for x in $LDFLAGS $LTLIBEXPAT; do | |
10694 | ||
10695 | acl_save_prefix="$prefix" | |
10696 | prefix="$acl_final_prefix" | |
10697 | acl_save_exec_prefix="$exec_prefix" | |
10698 | exec_prefix="$acl_final_exec_prefix" | |
10699 | eval x=\"$x\" | |
10700 | exec_prefix="$acl_save_exec_prefix" | |
10701 | prefix="$acl_save_prefix" | |
10702 | ||
10703 | case "$x" in | |
10704 | -L*) | |
10705 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10706 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10707 | found_dir="$dir" | |
10708 | found_so="$dir/lib$name.$shlibext" | |
10709 | if test -f "$dir/lib$name.la"; then | |
10710 | found_la="$dir/lib$name.la" | |
10711 | fi | |
10712 | else | |
10713 | if test -f "$dir/lib$name.$libext"; then | |
10714 | found_dir="$dir" | |
10715 | found_a="$dir/lib$name.$libext" | |
10716 | if test -f "$dir/lib$name.la"; then | |
10717 | found_la="$dir/lib$name.la" | |
10718 | fi | |
10719 | fi | |
10720 | fi | |
10721 | ;; | |
10722 | esac | |
10723 | if test "X$found_dir" != "X"; then | |
10724 | break | |
10725 | fi | |
10726 | done | |
10727 | fi | |
10728 | if test "X$found_dir" != "X"; then | |
10729 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
10730 | if test "X$found_so" != "X"; then | |
10731 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10732 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10733 | else | |
10734 | haveit= | |
10735 | for x in $ltrpathdirs; do | |
10736 | if test "X$x" = "X$found_dir"; then | |
10737 | haveit=yes | |
10738 | break | |
10739 | fi | |
10740 | done | |
10741 | if test -z "$haveit"; then | |
10742 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10743 | fi | |
10744 | if test "$hardcode_direct" = yes; then | |
10745 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10746 | else | |
10747 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10748 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10749 | haveit= | |
10750 | for x in $rpathdirs; do | |
10751 | if test "X$x" = "X$found_dir"; then | |
10752 | haveit=yes | |
10753 | break | |
10754 | fi | |
10755 | done | |
10756 | if test -z "$haveit"; then | |
10757 | rpathdirs="$rpathdirs $found_dir" | |
10758 | fi | |
10759 | else | |
10760 | haveit= | |
10761 | for x in $LDFLAGS $LIBEXPAT; do | |
10762 | ||
10763 | acl_save_prefix="$prefix" | |
10764 | prefix="$acl_final_prefix" | |
10765 | acl_save_exec_prefix="$exec_prefix" | |
10766 | exec_prefix="$acl_final_exec_prefix" | |
10767 | eval x=\"$x\" | |
10768 | exec_prefix="$acl_save_exec_prefix" | |
10769 | prefix="$acl_save_prefix" | |
10770 | ||
10771 | if test "X$x" = "X-L$found_dir"; then | |
10772 | haveit=yes | |
10773 | break | |
10774 | fi | |
10775 | done | |
10776 | if test -z "$haveit"; then | |
10777 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
10778 | fi | |
10779 | if test "$hardcode_minus_L" != no; then | |
10780 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10781 | else | |
10782 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
10783 | fi | |
10784 | fi | |
10785 | fi | |
10786 | fi | |
10787 | else | |
10788 | if test "X$found_a" != "X"; then | |
10789 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
10790 | else | |
10791 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
10792 | fi | |
10793 | fi | |
10794 | additional_includedir= | |
10795 | case "$found_dir" in | |
10796 | */lib | */lib/) | |
10797 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10798 | additional_includedir="$basedir/include" | |
10799 | ;; | |
10800 | esac | |
10801 | if test "X$additional_includedir" != "X"; then | |
10802 | if test "X$additional_includedir" != "X/usr/include"; then | |
10803 | haveit= | |
10804 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10805 | if test -n "$GCC"; then | |
10806 | case $host_os in | |
10807 | linux*) haveit=yes;; | |
10808 | esac | |
10809 | fi | |
10810 | fi | |
10811 | if test -z "$haveit"; then | |
10812 | for x in $CPPFLAGS $INCEXPAT; do | |
10813 | ||
10814 | acl_save_prefix="$prefix" | |
10815 | prefix="$acl_final_prefix" | |
10816 | acl_save_exec_prefix="$exec_prefix" | |
10817 | exec_prefix="$acl_final_exec_prefix" | |
10818 | eval x=\"$x\" | |
10819 | exec_prefix="$acl_save_exec_prefix" | |
10820 | prefix="$acl_save_prefix" | |
10821 | ||
10822 | if test "X$x" = "X-I$additional_includedir"; then | |
10823 | haveit=yes | |
10824 | break | |
10825 | fi | |
10826 | done | |
10827 | if test -z "$haveit"; then | |
10828 | if test -d "$additional_includedir"; then | |
10829 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
10830 | fi | |
10831 | fi | |
10832 | fi | |
10833 | fi | |
10834 | fi | |
10835 | if test -n "$found_la"; then | |
10836 | save_libdir="$libdir" | |
10837 | case "$found_la" in | |
10838 | */* | *\\*) . "$found_la" ;; | |
10839 | *) . "./$found_la" ;; | |
10840 | esac | |
10841 | libdir="$save_libdir" | |
10842 | for dep in $dependency_libs; do | |
10843 | case "$dep" in | |
10844 | -L*) | |
10845 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10846 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10847 | haveit= | |
10848 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10849 | if test -n "$GCC"; then | |
10850 | case $host_os in | |
10851 | linux*) haveit=yes;; | |
10852 | esac | |
10853 | fi | |
10854 | fi | |
10855 | if test -z "$haveit"; then | |
10856 | haveit= | |
10857 | for x in $LDFLAGS $LIBEXPAT; do | |
10858 | ||
10859 | acl_save_prefix="$prefix" | |
10860 | prefix="$acl_final_prefix" | |
10861 | acl_save_exec_prefix="$exec_prefix" | |
10862 | exec_prefix="$acl_final_exec_prefix" | |
10863 | eval x=\"$x\" | |
10864 | exec_prefix="$acl_save_exec_prefix" | |
10865 | prefix="$acl_save_prefix" | |
10866 | ||
10867 | if test "X$x" = "X-L$additional_libdir"; then | |
10868 | haveit=yes | |
10869 | break | |
10870 | fi | |
10871 | done | |
10872 | if test -z "$haveit"; then | |
10873 | if test -d "$additional_libdir"; then | |
10874 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
10875 | fi | |
10876 | fi | |
10877 | haveit= | |
10878 | for x in $LDFLAGS $LTLIBEXPAT; do | |
10879 | ||
10880 | acl_save_prefix="$prefix" | |
10881 | prefix="$acl_final_prefix" | |
10882 | acl_save_exec_prefix="$exec_prefix" | |
10883 | exec_prefix="$acl_final_exec_prefix" | |
10884 | eval x=\"$x\" | |
10885 | exec_prefix="$acl_save_exec_prefix" | |
10886 | prefix="$acl_save_prefix" | |
10887 | ||
10888 | if test "X$x" = "X-L$additional_libdir"; then | |
10889 | haveit=yes | |
10890 | break | |
10891 | fi | |
10892 | done | |
10893 | if test -z "$haveit"; then | |
10894 | if test -d "$additional_libdir"; then | |
10895 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
10896 | fi | |
10897 | fi | |
10898 | fi | |
10899 | fi | |
10900 | ;; | |
10901 | -R*) | |
10902 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10903 | if test "$enable_rpath" != no; then | |
10904 | haveit= | |
10905 | for x in $rpathdirs; do | |
10906 | if test "X$x" = "X$dir"; then | |
10907 | haveit=yes | |
10908 | break | |
10909 | fi | |
10910 | done | |
10911 | if test -z "$haveit"; then | |
10912 | rpathdirs="$rpathdirs $dir" | |
10913 | fi | |
10914 | haveit= | |
10915 | for x in $ltrpathdirs; do | |
10916 | if test "X$x" = "X$dir"; then | |
10917 | haveit=yes | |
10918 | break | |
10919 | fi | |
10920 | done | |
10921 | if test -z "$haveit"; then | |
10922 | ltrpathdirs="$ltrpathdirs $dir" | |
10923 | fi | |
10924 | fi | |
10925 | ;; | |
10926 | -l*) | |
10927 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10928 | ;; | |
10929 | *.la) | |
10930 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10931 | ;; | |
10932 | *) | |
10933 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
10934 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
10935 | ;; | |
10936 | esac | |
10937 | done | |
10938 | fi | |
10939 | else | |
10940 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
10941 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
10942 | fi | |
10943 | fi | |
10944 | fi | |
10945 | done | |
10946 | done | |
10947 | if test "X$rpathdirs" != "X"; then | |
10948 | if test -n "$hardcode_libdir_separator"; then | |
10949 | alldirs= | |
10950 | for found_dir in $rpathdirs; do | |
10951 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10952 | done | |
10953 | acl_save_libdir="$libdir" | |
10954 | libdir="$alldirs" | |
10955 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10956 | libdir="$acl_save_libdir" | |
10957 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10958 | else | |
10959 | for found_dir in $rpathdirs; do | |
10960 | acl_save_libdir="$libdir" | |
10961 | libdir="$found_dir" | |
10962 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10963 | libdir="$acl_save_libdir" | |
10964 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10965 | done | |
10966 | fi | |
10967 | fi | |
10968 | if test "X$ltrpathdirs" != "X"; then | |
10969 | for found_dir in $ltrpathdirs; do | |
10970 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
10971 | done | |
10972 | fi | |
10973 | ||
10974 | ||
10975 | ac_save_CPPFLAGS="$CPPFLAGS" | |
10976 | ||
10977 | for element in $INCEXPAT; do | |
10978 | haveit= | |
10979 | for x in $CPPFLAGS; do | |
10980 | ||
10981 | acl_save_prefix="$prefix" | |
10982 | prefix="$acl_final_prefix" | |
10983 | acl_save_exec_prefix="$exec_prefix" | |
10984 | exec_prefix="$acl_final_exec_prefix" | |
10985 | eval x=\"$x\" | |
10986 | exec_prefix="$acl_save_exec_prefix" | |
10987 | prefix="$acl_save_prefix" | |
10988 | ||
10989 | if test "X$x" = "X$element"; then | |
10990 | haveit=yes | |
10991 | break | |
10992 | fi | |
10993 | done | |
10994 | if test -z "$haveit"; then | |
10995 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10996 | fi | |
10997 | done | |
10998 | ||
10999 | ||
11000 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
11001 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
11002 | if test "${ac_cv_libexpat+set}" = set; then | |
11003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11004 | else | |
11005 | ||
11006 | ac_save_LIBS="$LIBS" | |
11007 | LIBS="$LIBS $LIBEXPAT" | |
11008 | cat >conftest.$ac_ext <<_ACEOF | |
11009 | /* confdefs.h. */ | |
11010 | _ACEOF | |
11011 | cat confdefs.h >>conftest.$ac_ext | |
11012 | cat >>conftest.$ac_ext <<_ACEOF | |
11013 | /* end confdefs.h. */ | |
11014 | #include "expat.h" | |
11015 | int | |
11016 | main () | |
11017 | { | |
11018 | XML_Parser p = XML_ParserCreate (0); | |
11019 | ; | |
11020 | return 0; | |
11021 | } | |
11022 | _ACEOF | |
11023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11025 | (eval $ac_link) 2>conftest.er1 | |
11026 | ac_status=$? | |
11027 | grep -v '^ *+' conftest.er1 >conftest.err | |
11028 | rm -f conftest.er1 | |
11029 | cat conftest.err >&5 | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); } && | |
11032 | { ac_try='test -z "$ac_c_werror_flag" | |
11033 | || test ! -s conftest.err' | |
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); }; } && | |
11039 | { ac_try='test -s conftest$ac_exeext' | |
11040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11041 | (eval $ac_try) 2>&5 | |
11042 | ac_status=$? | |
11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11044 | (exit $ac_status); }; }; then | |
11045 | ac_cv_libexpat=yes | |
11046 | else | |
11047 | echo "$as_me: failed program was:" >&5 | |
11048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11049 | ||
11050 | ac_cv_libexpat=no | |
11051 | fi | |
11052 | rm -f conftest.err conftest.$ac_objext \ | |
11053 | conftest$ac_exeext conftest.$ac_ext | |
11054 | LIBS="$ac_save_LIBS" | |
11055 | ||
11056 | fi | |
11057 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
11058 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
11059 | if test "$ac_cv_libexpat" = yes; then | |
11060 | HAVE_LIBEXPAT=yes | |
11061 | ||
11062 | cat >>confdefs.h <<\_ACEOF | |
11063 | #define HAVE_LIBEXPAT 1 | |
11064 | _ACEOF | |
11065 | ||
11066 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
11067 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
11068 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
11069 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
11070 | else | |
11071 | HAVE_LIBEXPAT=no | |
11072 | CPPFLAGS="$ac_save_CPPFLAGS" | |
11073 | LIBEXPAT= | |
11074 | LTLIBEXPAT= | |
11075 | fi | |
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
5c39566f DJ |
11082 | if test "$HAVE_LIBEXPAT" != yes; then |
11083 | if test "$with_expat" = yes; then | |
11084 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
11085 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
11086 | { (exit 1); exit 1; }; } | |
11087 | else | |
11088 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
11089 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
11090 | fi | |
11091 | else | |
11092 | save_LIBS=$LIBS | |
11093 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
11094 | |
11095 | for ac_func in XML_StopParser | |
11096 | do | |
11097 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11098 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11099 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11100 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11102 | else | |
11103 | cat >conftest.$ac_ext <<_ACEOF | |
11104 | /* confdefs.h. */ | |
11105 | _ACEOF | |
11106 | cat confdefs.h >>conftest.$ac_ext | |
11107 | cat >>conftest.$ac_ext <<_ACEOF | |
11108 | /* end confdefs.h. */ | |
11109 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11111 | #define $ac_func innocuous_$ac_func | |
11112 | ||
11113 | /* System header to define __stub macros and hopefully few prototypes, | |
11114 | which can conflict with char $ac_func (); below. | |
11115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11116 | <limits.h> exists even on freestanding compilers. */ | |
11117 | ||
11118 | #ifdef __STDC__ | |
11119 | # include <limits.h> | |
11120 | #else | |
11121 | # include <assert.h> | |
11122 | #endif | |
11123 | ||
11124 | #undef $ac_func | |
11125 | ||
11126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11127 | #ifdef __cplusplus | |
11128 | extern "C" | |
11129 | { | |
11130 | #endif | |
11131 | /* We use char because int might match the return type of a gcc2 | |
11132 | builtin and then its argument prototype would still apply. */ | |
11133 | char $ac_func (); | |
11134 | /* The GNU C library defines this for functions which it implements | |
11135 | to always fail with ENOSYS. Some functions are actually named | |
11136 | something starting with __ and the normal name is an alias. */ | |
11137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11138 | choke me | |
11139 | #else | |
11140 | char (*f) () = $ac_func; | |
11141 | #endif | |
11142 | #ifdef __cplusplus | |
11143 | } | |
11144 | #endif | |
11145 | ||
11146 | int | |
11147 | main () | |
11148 | { | |
11149 | return f != $ac_func; | |
11150 | ; | |
11151 | return 0; | |
11152 | } | |
11153 | _ACEOF | |
11154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11156 | (eval $ac_link) 2>conftest.er1 | |
11157 | ac_status=$? | |
11158 | grep -v '^ *+' conftest.er1 >conftest.err | |
11159 | rm -f conftest.er1 | |
11160 | cat conftest.err >&5 | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); } && | |
11163 | { ac_try='test -z "$ac_c_werror_flag" | |
11164 | || test ! -s conftest.err' | |
11165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11166 | (eval $ac_try) 2>&5 | |
11167 | ac_status=$? | |
11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 | (exit $ac_status); }; } && | |
11170 | { ac_try='test -s conftest$ac_exeext' | |
11171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11172 | (eval $ac_try) 2>&5 | |
11173 | ac_status=$? | |
11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11175 | (exit $ac_status); }; }; then | |
11176 | eval "$as_ac_var=yes" | |
11177 | else | |
11178 | echo "$as_me: failed program was:" >&5 | |
11179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11180 | ||
11181 | eval "$as_ac_var=no" | |
11182 | fi | |
11183 | rm -f conftest.err conftest.$ac_objext \ | |
11184 | conftest$ac_exeext conftest.$ac_ext | |
11185 | fi | |
11186 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11187 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11188 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11189 | cat >>confdefs.h <<_ACEOF | |
11190 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11191 | _ACEOF | |
11192 | ||
11193 | fi | |
11194 | done | |
11195 | ||
5c39566f DJ |
11196 | LIBS=$save_LIBS |
11197 | fi | |
3841debe DJ |
11198 | fi |
11199 | ||
bec39cab AC |
11200 | # ------------------------- # |
11201 | # Checks for header files. # | |
11202 | # ------------------------- # | |
8ee53726 | 11203 | |
0e5d83e3 | 11204 | |
bec39cab AC |
11205 | |
11206 | ||
11207 | ||
11208 | ||
11209 | ac_header_dirent=no | |
11210 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
11211 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
11212 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
11213 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
11214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11216 | else | |
11217 | cat >conftest.$ac_ext <<_ACEOF | |
11218 | /* confdefs.h. */ | |
11219 | _ACEOF | |
11220 | cat confdefs.h >>conftest.$ac_ext | |
11221 | cat >>conftest.$ac_ext <<_ACEOF | |
11222 | /* end confdefs.h. */ | |
11223 | #include <sys/types.h> | |
0e5d83e3 | 11224 | #include <$ac_hdr> |
bec39cab AC |
11225 | |
11226 | int | |
11227 | main () | |
11228 | { | |
11229 | if ((DIR *) 0) | |
11230 | return 0; | |
11231 | ; | |
11232 | return 0; | |
11233 | } | |
11234 | _ACEOF | |
11235 | rm -f conftest.$ac_objext | |
11236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11237 | (eval $ac_compile) 2>conftest.er1 | |
11238 | ac_status=$? | |
11239 | grep -v '^ *+' conftest.er1 >conftest.err | |
11240 | rm -f conftest.er1 | |
11241 | cat conftest.err >&5 | |
11242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11243 | (exit $ac_status); } && | |
b4e70030 JB |
11244 | { ac_try='test -z "$ac_c_werror_flag" |
11245 | || test ! -s conftest.err' | |
bec39cab AC |
11246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11247 | (eval $ac_try) 2>&5 | |
11248 | ac_status=$? | |
11249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11250 | (exit $ac_status); }; } && | |
11251 | { ac_try='test -s conftest.$ac_objext' | |
11252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11253 | (eval $ac_try) 2>&5 | |
11254 | ac_status=$? | |
11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11256 | (exit $ac_status); }; }; then | |
11257 | eval "$as_ac_Header=yes" | |
11258 | else | |
11259 | echo "$as_me: failed program was:" >&5 | |
11260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11261 | ||
b4e70030 | 11262 | eval "$as_ac_Header=no" |
bec39cab AC |
11263 | fi |
11264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11265 | fi | |
b4e70030 JB |
11266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11267 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11269 | cat >>confdefs.h <<_ACEOF | |
11270 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
11271 | _ACEOF | |
11272 | ||
11273 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 11274 | fi |
0e5d83e3 | 11275 | |
bec39cab AC |
11276 | done |
11277 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11278 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
11279 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11280 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
11281 | if test "${ac_cv_search_opendir+set}" = set; then |
11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11283 | else | |
11284 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 11285 | ac_cv_search_opendir=no |
bec39cab AC |
11286 | cat >conftest.$ac_ext <<_ACEOF |
11287 | /* confdefs.h. */ | |
11288 | _ACEOF | |
11289 | cat confdefs.h >>conftest.$ac_ext | |
11290 | cat >>conftest.$ac_ext <<_ACEOF | |
11291 | /* end confdefs.h. */ | |
0e5d83e3 | 11292 | |
b4e70030 | 11293 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
11294 | #ifdef __cplusplus |
11295 | extern "C" | |
11296 | #endif | |
b4e70030 JB |
11297 | /* We use char because int might match the return type of a gcc2 |
11298 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
11299 | char opendir (); |
11300 | int | |
11301 | main () | |
11302 | { | |
b4e70030 | 11303 | opendir (); |
bec39cab AC |
11304 | ; |
11305 | return 0; | |
11306 | } | |
11307 | _ACEOF | |
b4e70030 | 11308 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
11309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11310 | (eval $ac_link) 2>conftest.er1 | |
11311 | ac_status=$? | |
11312 | grep -v '^ *+' conftest.er1 >conftest.err | |
11313 | rm -f conftest.er1 | |
11314 | cat conftest.err >&5 | |
11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11316 | (exit $ac_status); } && | |
b4e70030 JB |
11317 | { ac_try='test -z "$ac_c_werror_flag" |
11318 | || test ! -s conftest.err' | |
bec39cab AC |
11319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11320 | (eval $ac_try) 2>&5 | |
11321 | ac_status=$? | |
11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11323 | (exit $ac_status); }; } && | |
11324 | { ac_try='test -s conftest$ac_exeext' | |
11325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11326 | (eval $ac_try) 2>&5 | |
11327 | ac_status=$? | |
11328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11329 | (exit $ac_status); }; }; then | |
b4e70030 | 11330 | ac_cv_search_opendir="none required" |
bec39cab AC |
11331 | else |
11332 | echo "$as_me: failed program was:" >&5 | |
11333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11334 | ||
11335 | fi | |
bec39cab | 11336 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
11337 | conftest$ac_exeext conftest.$ac_ext |
11338 | if test "$ac_cv_search_opendir" = no; then | |
11339 | for ac_lib in dir; do | |
11340 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11341 | cat >conftest.$ac_ext <<_ACEOF | |
11342 | /* confdefs.h. */ | |
11343 | _ACEOF | |
11344 | cat confdefs.h >>conftest.$ac_ext | |
11345 | cat >>conftest.$ac_ext <<_ACEOF | |
11346 | /* end confdefs.h. */ | |
11347 | ||
11348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11349 | #ifdef __cplusplus | |
11350 | extern "C" | |
11351 | #endif | |
11352 | /* We use char because int might match the return type of a gcc2 | |
11353 | builtin and then its argument prototype would still apply. */ | |
11354 | char opendir (); | |
11355 | int | |
11356 | main () | |
11357 | { | |
11358 | opendir (); | |
11359 | ; | |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11365 | (eval $ac_link) 2>conftest.er1 | |
11366 | ac_status=$? | |
11367 | grep -v '^ *+' conftest.er1 >conftest.err | |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 | (exit $ac_status); } && | |
11372 | { ac_try='test -z "$ac_c_werror_flag" | |
11373 | || test ! -s conftest.err' | |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; } && | |
11379 | { ac_try='test -s conftest$ac_exeext' | |
11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11381 | (eval $ac_try) 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); }; }; then | |
11385 | ac_cv_search_opendir="-l$ac_lib" | |
11386 | break | |
4e8d927d | 11387 | else |
b4e70030 JB |
11388 | echo "$as_me: failed program was:" >&5 |
11389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11390 | ||
11391 | fi | |
11392 | rm -f conftest.err conftest.$ac_objext \ | |
11393 | conftest$ac_exeext conftest.$ac_ext | |
11394 | done | |
0e5d83e3 | 11395 | fi |
bec39cab | 11396 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 11397 | fi |
b4e70030 JB |
11398 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11399 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11400 | if test "$ac_cv_search_opendir" != no; then | |
11401 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 11402 | |
0e5d83e3 JJ |
11403 | fi |
11404 | ||
d28f9cdf | 11405 | else |
b4e70030 JB |
11406 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11407 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
11408 | if test "${ac_cv_search_opendir+set}" = set; then |
11409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11410 | else | |
11411 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 11412 | ac_cv_search_opendir=no |
bec39cab AC |
11413 | cat >conftest.$ac_ext <<_ACEOF |
11414 | /* confdefs.h. */ | |
11415 | _ACEOF | |
11416 | cat confdefs.h >>conftest.$ac_ext | |
11417 | cat >>conftest.$ac_ext <<_ACEOF | |
11418 | /* end confdefs.h. */ | |
d28f9cdf | 11419 | |
b4e70030 | 11420 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
11421 | #ifdef __cplusplus |
11422 | extern "C" | |
d28f9cdf | 11423 | #endif |
b4e70030 JB |
11424 | /* We use char because int might match the return type of a gcc2 |
11425 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
11426 | char opendir (); |
11427 | int | |
11428 | main () | |
11429 | { | |
b4e70030 | 11430 | opendir (); |
bec39cab AC |
11431 | ; |
11432 | return 0; | |
11433 | } | |
11434 | _ACEOF | |
b4e70030 | 11435 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
11436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11437 | (eval $ac_link) 2>conftest.er1 | |
11438 | ac_status=$? | |
11439 | grep -v '^ *+' conftest.er1 >conftest.err | |
11440 | rm -f conftest.er1 | |
11441 | cat conftest.err >&5 | |
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11443 | (exit $ac_status); } && | |
b4e70030 JB |
11444 | { ac_try='test -z "$ac_c_werror_flag" |
11445 | || test ! -s conftest.err' | |
bec39cab AC |
11446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11447 | (eval $ac_try) 2>&5 | |
11448 | ac_status=$? | |
11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11450 | (exit $ac_status); }; } && | |
11451 | { ac_try='test -s conftest$ac_exeext' | |
11452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11453 | (eval $ac_try) 2>&5 | |
11454 | ac_status=$? | |
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11456 | (exit $ac_status); }; }; then | |
b4e70030 | 11457 | ac_cv_search_opendir="none required" |
d28f9cdf | 11458 | else |
bec39cab AC |
11459 | echo "$as_me: failed program was:" >&5 |
11460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11461 | ||
d28f9cdf | 11462 | fi |
bec39cab | 11463 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
11464 | conftest$ac_exeext conftest.$ac_ext |
11465 | if test "$ac_cv_search_opendir" = no; then | |
11466 | for ac_lib in x; do | |
11467 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11468 | cat >conftest.$ac_ext <<_ACEOF | |
11469 | /* confdefs.h. */ | |
11470 | _ACEOF | |
11471 | cat confdefs.h >>conftest.$ac_ext | |
11472 | cat >>conftest.$ac_ext <<_ACEOF | |
11473 | /* end confdefs.h. */ | |
11474 | ||
11475 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11476 | #ifdef __cplusplus | |
11477 | extern "C" | |
11478 | #endif | |
11479 | /* We use char because int might match the return type of a gcc2 | |
11480 | builtin and then its argument prototype would still apply. */ | |
11481 | char opendir (); | |
11482 | int | |
11483 | main () | |
11484 | { | |
11485 | opendir (); | |
11486 | ; | |
11487 | return 0; | |
11488 | } | |
11489 | _ACEOF | |
11490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11492 | (eval $ac_link) 2>conftest.er1 | |
11493 | ac_status=$? | |
11494 | grep -v '^ *+' conftest.er1 >conftest.err | |
11495 | rm -f conftest.er1 | |
11496 | cat conftest.err >&5 | |
11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11498 | (exit $ac_status); } && | |
11499 | { ac_try='test -z "$ac_c_werror_flag" | |
11500 | || test ! -s conftest.err' | |
11501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11502 | (eval $ac_try) 2>&5 | |
11503 | ac_status=$? | |
11504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11505 | (exit $ac_status); }; } && | |
11506 | { ac_try='test -s conftest$ac_exeext' | |
11507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11508 | (eval $ac_try) 2>&5 | |
11509 | ac_status=$? | |
11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11511 | (exit $ac_status); }; }; then | |
11512 | ac_cv_search_opendir="-l$ac_lib" | |
11513 | break | |
4e8d927d | 11514 | else |
b4e70030 JB |
11515 | echo "$as_me: failed program was:" >&5 |
11516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11517 | ||
11518 | fi | |
11519 | rm -f conftest.err conftest.$ac_objext \ | |
11520 | conftest$ac_exeext conftest.$ac_ext | |
11521 | done | |
bec39cab AC |
11522 | fi |
11523 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 11524 | fi |
b4e70030 JB |
11525 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11526 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11527 | if test "$ac_cv_search_opendir" != no; then | |
11528 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 11529 | |
d28f9cdf DJ |
11530 | fi |
11531 | ||
bec39cab | 11532 | fi |
b0b1c2c0 | 11533 | |
b4e70030 JB |
11534 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
11535 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
11536 | if test "${ac_cv_header_stat_broken+set}" = set; then |
11537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 11538 | else |
bec39cab AC |
11539 | cat >conftest.$ac_ext <<_ACEOF |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
11545 | #include <sys/types.h> | |
11546 | #include <sys/stat.h> | |
b0b1c2c0 | 11547 | |
b4e70030 | 11548 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
11549 | # if S_ISBLK (S_IFDIR) |
11550 | You lose. | |
11551 | # endif | |
11552 | #endif | |
b0b1c2c0 | 11553 | |
b4e70030 | 11554 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
11555 | # if S_ISBLK (S_IFCHR) |
11556 | You lose. | |
11557 | # endif | |
11558 | #endif | |
d28f9cdf | 11559 | |
b4e70030 | 11560 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
11561 | # if S_ISLNK (S_IFREG) |
11562 | You lose. | |
11563 | # endif | |
11564 | #endif | |
d28f9cdf | 11565 | |
b4e70030 | 11566 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
11567 | # if S_ISSOCK (S_IFREG) |
11568 | You lose. | |
11569 | # endif | |
11570 | #endif | |
11571 | ||
11572 | _ACEOF | |
11573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11574 | $EGREP "You lose" >/dev/null 2>&1; then | |
11575 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 11576 | else |
bec39cab | 11577 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
11578 | fi |
11579 | rm -f conftest* | |
d28f9cdf | 11580 | |
d28f9cdf | 11581 | fi |
b4e70030 JB |
11582 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
11583 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 11584 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 11585 | |
bec39cab AC |
11586 | cat >>confdefs.h <<\_ACEOF |
11587 | #define STAT_MACROS_BROKEN 1 | |
11588 | _ACEOF | |
8bb2c122 | 11589 | |
7a292a7a | 11590 | fi |
bec39cab | 11591 | |
b4e70030 JB |
11592 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
11593 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
11594 | if test "${ac_cv_header_stdc+set}" = set; then |
11595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 11596 | else |
bec39cab AC |
11597 | cat >conftest.$ac_ext <<_ACEOF |
11598 | /* confdefs.h. */ | |
11599 | _ACEOF | |
11600 | cat confdefs.h >>conftest.$ac_ext | |
11601 | cat >>conftest.$ac_ext <<_ACEOF | |
11602 | /* end confdefs.h. */ | |
11603 | #include <stdlib.h> | |
11604 | #include <stdarg.h> | |
11605 | #include <string.h> | |
11606 | #include <float.h> | |
7a292a7a | 11607 | |
bec39cab AC |
11608 | int |
11609 | main () | |
11610 | { | |
7a292a7a | 11611 | |
bec39cab AC |
11612 | ; |
11613 | return 0; | |
11614 | } | |
11615 | _ACEOF | |
11616 | rm -f conftest.$ac_objext | |
11617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11618 | (eval $ac_compile) 2>conftest.er1 | |
11619 | ac_status=$? | |
11620 | grep -v '^ *+' conftest.er1 >conftest.err | |
11621 | rm -f conftest.er1 | |
11622 | cat conftest.err >&5 | |
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11624 | (exit $ac_status); } && | |
b4e70030 JB |
11625 | { ac_try='test -z "$ac_c_werror_flag" |
11626 | || test ! -s conftest.err' | |
bec39cab AC |
11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11628 | (eval $ac_try) 2>&5 | |
11629 | ac_status=$? | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); }; } && | |
11632 | { ac_try='test -s conftest.$ac_objext' | |
11633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11634 | (eval $ac_try) 2>&5 | |
11635 | ac_status=$? | |
11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11637 | (exit $ac_status); }; }; then | |
11638 | ac_cv_header_stdc=yes | |
c906108c | 11639 | else |
bec39cab AC |
11640 | echo "$as_me: failed program was:" >&5 |
11641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 11642 | |
b4e70030 | 11643 | ac_cv_header_stdc=no |
c906108c | 11644 | fi |
bec39cab | 11645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11646 | |
bec39cab AC |
11647 | if test $ac_cv_header_stdc = yes; then |
11648 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11649 | cat >conftest.$ac_ext <<_ACEOF | |
11650 | /* confdefs.h. */ | |
11651 | _ACEOF | |
11652 | cat confdefs.h >>conftest.$ac_ext | |
11653 | cat >>conftest.$ac_ext <<_ACEOF | |
11654 | /* end confdefs.h. */ | |
11655 | #include <string.h> | |
c906108c | 11656 | |
bec39cab AC |
11657 | _ACEOF |
11658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11659 | $EGREP "memchr" >/dev/null 2>&1; then | |
11660 | : | |
8bb2c122 | 11661 | else |
bec39cab | 11662 | ac_cv_header_stdc=no |
8bb2c122 | 11663 | fi |
bec39cab AC |
11664 | rm -f conftest* |
11665 | ||
c906108c SS |
11666 | fi |
11667 | ||
bec39cab AC |
11668 | if test $ac_cv_header_stdc = yes; then |
11669 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11670 | cat >conftest.$ac_ext <<_ACEOF | |
11671 | /* confdefs.h. */ | |
11672 | _ACEOF | |
11673 | cat confdefs.h >>conftest.$ac_ext | |
11674 | cat >>conftest.$ac_ext <<_ACEOF | |
11675 | /* end confdefs.h. */ | |
11676 | #include <stdlib.h> | |
11677 | ||
11678 | _ACEOF | |
11679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11680 | $EGREP "free" >/dev/null 2>&1; then | |
11681 | : | |
c906108c | 11682 | else |
bec39cab | 11683 | ac_cv_header_stdc=no |
c906108c | 11684 | fi |
bec39cab AC |
11685 | rm -f conftest* |
11686 | ||
c906108c SS |
11687 | fi |
11688 | ||
bec39cab AC |
11689 | if test $ac_cv_header_stdc = yes; then |
11690 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11691 | if test "$cross_compiling" = yes; then | |
11692 | : | |
c906108c | 11693 | else |
bec39cab AC |
11694 | cat >conftest.$ac_ext <<_ACEOF |
11695 | /* confdefs.h. */ | |
11696 | _ACEOF | |
11697 | cat confdefs.h >>conftest.$ac_ext | |
11698 | cat >>conftest.$ac_ext <<_ACEOF | |
11699 | /* end confdefs.h. */ | |
11700 | #include <ctype.h> | |
11701 | #if ((' ' & 0x0FF) == 0x020) | |
11702 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11703 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11704 | #else | |
11705 | # define ISLOWER(c) \ | |
11706 | (('a' <= (c) && (c) <= 'i') \ | |
11707 | || ('j' <= (c) && (c) <= 'r') \ | |
11708 | || ('s' <= (c) && (c) <= 'z')) | |
11709 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11710 | #endif | |
11711 | ||
11712 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11713 | int | |
11714 | main () | |
11715 | { | |
11716 | int i; | |
11717 | for (i = 0; i < 256; i++) | |
11718 | if (XOR (islower (i), ISLOWER (i)) | |
11719 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
11720 | exit(2); |
11721 | exit (0); | |
bec39cab AC |
11722 | } |
11723 | _ACEOF | |
11724 | rm -f conftest$ac_exeext | |
11725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11726 | (eval $ac_link) 2>&5 | |
11727 | ac_status=$? | |
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11731 | (eval $ac_try) 2>&5 | |
11732 | ac_status=$? | |
11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11734 | (exit $ac_status); }; }; then | |
11735 | : | |
11736 | else | |
11737 | echo "$as_me: program exited with status $ac_status" >&5 | |
11738 | echo "$as_me: failed program was:" >&5 | |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11740 | ||
11741 | ( exit $ac_status ) | |
11742 | ac_cv_header_stdc=no | |
c906108c | 11743 | fi |
b4e70030 | 11744 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 11745 | fi |
c906108c | 11746 | fi |
bec39cab | 11747 | fi |
b4e70030 JB |
11748 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
11749 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 11750 | if test $ac_cv_header_stdc = yes; then |
c906108c | 11751 | |
bec39cab AC |
11752 | cat >>confdefs.h <<\_ACEOF |
11753 | #define STDC_HEADERS 1 | |
11754 | _ACEOF | |
c906108c | 11755 | |
bec39cab | 11756 | fi |
8bb2c122 | 11757 | |
bec39cab | 11758 | |
7cb9022a | 11759 | for ac_header in nlist.h |
bec39cab AC |
11760 | do |
11761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11767 | fi | |
b4e70030 JB |
11768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11770 | else |
11771 | # Is the header compilable? | |
b4e70030 JB |
11772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11774 | cat >conftest.$ac_ext <<_ACEOF |
11775 | /* confdefs.h. */ | |
11776 | _ACEOF | |
11777 | cat confdefs.h >>conftest.$ac_ext | |
11778 | cat >>conftest.$ac_ext <<_ACEOF | |
11779 | /* end confdefs.h. */ | |
11780 | $ac_includes_default | |
11781 | #include <$ac_header> | |
11782 | _ACEOF | |
11783 | rm -f conftest.$ac_objext | |
11784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11785 | (eval $ac_compile) 2>conftest.er1 | |
11786 | ac_status=$? | |
11787 | grep -v '^ *+' conftest.er1 >conftest.err | |
11788 | rm -f conftest.er1 | |
11789 | cat conftest.err >&5 | |
11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11791 | (exit $ac_status); } && | |
b4e70030 JB |
11792 | { ac_try='test -z "$ac_c_werror_flag" |
11793 | || test ! -s conftest.err' | |
bec39cab AC |
11794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11795 | (eval $ac_try) 2>&5 | |
11796 | ac_status=$? | |
11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11798 | (exit $ac_status); }; } && | |
11799 | { ac_try='test -s conftest.$ac_objext' | |
11800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11801 | (eval $ac_try) 2>&5 | |
11802 | ac_status=$? | |
11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11804 | (exit $ac_status); }; }; then | |
11805 | ac_header_compiler=yes | |
11806 | else | |
11807 | echo "$as_me: failed program was:" >&5 | |
11808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11809 | ||
b4e70030 | 11810 | ac_header_compiler=no |
bec39cab AC |
11811 | fi |
11812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11814 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11815 | |
11816 | # Is the header present? | |
b4e70030 JB |
11817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11819 | cat >conftest.$ac_ext <<_ACEOF |
11820 | /* confdefs.h. */ | |
11821 | _ACEOF | |
11822 | cat confdefs.h >>conftest.$ac_ext | |
11823 | cat >>conftest.$ac_ext <<_ACEOF | |
11824 | /* end confdefs.h. */ | |
11825 | #include <$ac_header> | |
11826 | _ACEOF | |
11827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11829 | ac_status=$? | |
11830 | grep -v '^ *+' conftest.er1 >conftest.err | |
11831 | rm -f conftest.er1 | |
11832 | cat conftest.err >&5 | |
11833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11834 | (exit $ac_status); } >/dev/null; then | |
11835 | if test -s conftest.err; then | |
11836 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11838 | else | |
11839 | ac_cpp_err= | |
11840 | fi | |
c906108c | 11841 | else |
bec39cab | 11842 | ac_cpp_err=yes |
c906108c | 11843 | fi |
bec39cab AC |
11844 | if test -z "$ac_cpp_err"; then |
11845 | ac_header_preproc=yes | |
c906108c | 11846 | else |
bec39cab AC |
11847 | echo "$as_me: failed program was:" >&5 |
11848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 11849 | |
bec39cab AC |
11850 | ac_header_preproc=no |
11851 | fi | |
11852 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
11853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11854 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 11855 | |
bec39cab AC |
11856 | # So? What about this header? |
11857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11858 | yes:no: ) | |
11859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11863 | ac_header_preproc=yes | |
11864 | ;; | |
11865 | no:yes:* ) | |
11866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11878 | ( |
11879 | cat <<\_ASBOX | |
11880 | ## ------------------------------------------ ## | |
11881 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11882 | ## ------------------------------------------ ## | |
11883 | _ASBOX | |
11884 | ) | | |
11885 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11886 | ;; |
11887 | esac | |
b4e70030 JB |
11888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 11892 | else |
bec39cab | 11893 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 11894 | fi |
b4e70030 JB |
11895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11897 | |
95ca63c4 | 11898 | fi |
bec39cab AC |
11899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11900 | cat >>confdefs.h <<_ACEOF | |
11901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11902 | _ACEOF | |
11903 | ||
95ca63c4 CF |
11904 | fi |
11905 | ||
bec39cab | 11906 | done |
95ca63c4 CF |
11907 | |
11908 | ||
7cb9022a | 11909 | for ac_header in link.h |
bec39cab AC |
11910 | do |
11911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 11916 | else |
7cb9022a | 11917 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11918 | /* confdefs.h. */ |
11919 | _ACEOF | |
11920 | cat confdefs.h >>conftest.$ac_ext | |
11921 | cat >>conftest.$ac_ext <<_ACEOF | |
11922 | /* end confdefs.h. */ | |
7cb9022a MK |
11923 | #if HAVE_SYS_TYPES_H |
11924 | # include <sys/types.h> | |
11925 | #endif | |
11926 | #if HAVE_NLIST_H | |
11927 | # include <nlist.h> | |
11928 | #endif | |
11929 | ||
11930 | ||
bec39cab AC |
11931 | #include <$ac_header> |
11932 | _ACEOF | |
11933 | rm -f conftest.$ac_objext | |
11934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11935 | (eval $ac_compile) 2>conftest.er1 | |
11936 | ac_status=$? | |
11937 | grep -v '^ *+' conftest.er1 >conftest.err | |
11938 | rm -f conftest.er1 | |
11939 | cat conftest.err >&5 | |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); } && | |
b4e70030 JB |
11942 | { ac_try='test -z "$ac_c_werror_flag" |
11943 | || test ! -s conftest.err' | |
bec39cab AC |
11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11945 | (eval $ac_try) 2>&5 | |
11946 | ac_status=$? | |
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11948 | (exit $ac_status); }; } && | |
11949 | { ac_try='test -s conftest.$ac_objext' | |
11950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11951 | (eval $ac_try) 2>&5 | |
11952 | ac_status=$? | |
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11954 | (exit $ac_status); }; }; then | |
7cb9022a | 11955 | eval "$as_ac_Header=yes" |
bec39cab AC |
11956 | else |
11957 | echo "$as_me: failed program was:" >&5 | |
11958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11959 | ||
b4e70030 | 11960 | eval "$as_ac_Header=no" |
bec39cab AC |
11961 | fi |
11962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 11963 | fi |
b4e70030 JB |
11964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11965 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11967 | cat >>confdefs.h <<_ACEOF | |
11968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11969 | _ACEOF | |
95ca63c4 | 11970 | |
bec39cab | 11971 | fi |
95ca63c4 | 11972 | |
bec39cab | 11973 | done |
95ca63c4 | 11974 | |
c906108c | 11975 | |
7cb9022a | 11976 | for ac_header in machine/reg.h |
bec39cab AC |
11977 | do |
11978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11984 | fi | |
b4e70030 JB |
11985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11986 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11987 | else |
11988 | # Is the header compilable? | |
b4e70030 JB |
11989 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11990 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11991 | cat >conftest.$ac_ext <<_ACEOF |
11992 | /* confdefs.h. */ | |
11993 | _ACEOF | |
11994 | cat confdefs.h >>conftest.$ac_ext | |
11995 | cat >>conftest.$ac_ext <<_ACEOF | |
11996 | /* end confdefs.h. */ | |
11997 | $ac_includes_default | |
11998 | #include <$ac_header> | |
11999 | _ACEOF | |
12000 | rm -f conftest.$ac_objext | |
12001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12002 | (eval $ac_compile) 2>conftest.er1 | |
12003 | ac_status=$? | |
12004 | grep -v '^ *+' conftest.er1 >conftest.err | |
12005 | rm -f conftest.er1 | |
12006 | cat conftest.err >&5 | |
12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12008 | (exit $ac_status); } && | |
b4e70030 JB |
12009 | { ac_try='test -z "$ac_c_werror_flag" |
12010 | || test ! -s conftest.err' | |
bec39cab AC |
12011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12012 | (eval $ac_try) 2>&5 | |
12013 | ac_status=$? | |
12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12015 | (exit $ac_status); }; } && | |
12016 | { ac_try='test -s conftest.$ac_objext' | |
12017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12018 | (eval $ac_try) 2>&5 | |
12019 | ac_status=$? | |
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12021 | (exit $ac_status); }; }; then | |
12022 | ac_header_compiler=yes | |
12023 | else | |
12024 | echo "$as_me: failed program was:" >&5 | |
12025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12026 | ||
b4e70030 | 12027 | ac_header_compiler=no |
bec39cab AC |
12028 | fi |
12029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12031 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12032 | |
12033 | # Is the header present? | |
b4e70030 JB |
12034 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12035 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12036 | cat >conftest.$ac_ext <<_ACEOF |
12037 | /* confdefs.h. */ | |
12038 | _ACEOF | |
12039 | cat confdefs.h >>conftest.$ac_ext | |
12040 | cat >>conftest.$ac_ext <<_ACEOF | |
12041 | /* end confdefs.h. */ | |
12042 | #include <$ac_header> | |
12043 | _ACEOF | |
12044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12046 | ac_status=$? | |
12047 | grep -v '^ *+' conftest.er1 >conftest.err | |
12048 | rm -f conftest.er1 | |
12049 | cat conftest.err >&5 | |
12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12051 | (exit $ac_status); } >/dev/null; then | |
12052 | if test -s conftest.err; then | |
12053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12055 | else | |
12056 | ac_cpp_err= | |
12057 | fi | |
75c6e08a | 12058 | else |
bec39cab | 12059 | ac_cpp_err=yes |
75c6e08a | 12060 | fi |
bec39cab AC |
12061 | if test -z "$ac_cpp_err"; then |
12062 | ac_header_preproc=yes | |
12063 | else | |
12064 | echo "$as_me: failed program was:" >&5 | |
12065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12066 | ||
12067 | ac_header_preproc=no | |
75c6e08a | 12068 | fi |
bec39cab | 12069 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12071 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12072 | |
12073 | # So? What about this header? | |
12074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12075 | yes:no: ) | |
12076 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12077 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12078 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12079 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12080 | ac_header_preproc=yes | |
12081 | ;; | |
12082 | no:yes:* ) | |
12083 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12084 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12085 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12086 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12087 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12088 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12089 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12090 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12092 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12093 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12094 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12095 | ( |
12096 | cat <<\_ASBOX | |
12097 | ## ------------------------------------------ ## | |
12098 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12099 | ## ------------------------------------------ ## | |
12100 | _ASBOX | |
12101 | ) | | |
12102 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12103 | ;; |
12104 | esac | |
b4e70030 JB |
12105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 12109 | else |
bec39cab AC |
12110 | eval "$as_ac_Header=\$ac_header_preproc" |
12111 | fi | |
b4e70030 JB |
12112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12114 | |
75c6e08a | 12115 | fi |
bec39cab AC |
12116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12117 | cat >>confdefs.h <<_ACEOF | |
12118 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12119 | _ACEOF | |
75c6e08a | 12120 | |
bec39cab | 12121 | fi |
75c6e08a | 12122 | |
bec39cab | 12123 | done |
75c6e08a MK |
12124 | |
12125 | ||
9a156167 | 12126 | |
bec39cab AC |
12127 | for ac_header in poll.h sys/poll.h |
12128 | do | |
12129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12135 | fi | |
b4e70030 JB |
12136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12138 | else |
12139 | # Is the header compilable? | |
b4e70030 JB |
12140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12142 | cat >conftest.$ac_ext <<_ACEOF |
12143 | /* confdefs.h. */ | |
12144 | _ACEOF | |
12145 | cat confdefs.h >>conftest.$ac_ext | |
12146 | cat >>conftest.$ac_ext <<_ACEOF | |
12147 | /* end confdefs.h. */ | |
12148 | $ac_includes_default | |
12149 | #include <$ac_header> | |
12150 | _ACEOF | |
12151 | rm -f conftest.$ac_objext | |
12152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12153 | (eval $ac_compile) 2>conftest.er1 | |
12154 | ac_status=$? | |
12155 | grep -v '^ *+' conftest.er1 >conftest.err | |
12156 | rm -f conftest.er1 | |
12157 | cat conftest.err >&5 | |
12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12159 | (exit $ac_status); } && | |
b4e70030 JB |
12160 | { ac_try='test -z "$ac_c_werror_flag" |
12161 | || test ! -s conftest.err' | |
bec39cab AC |
12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12163 | (eval $ac_try) 2>&5 | |
12164 | ac_status=$? | |
12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12166 | (exit $ac_status); }; } && | |
12167 | { ac_try='test -s conftest.$ac_objext' | |
12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12169 | (eval $ac_try) 2>&5 | |
12170 | ac_status=$? | |
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12172 | (exit $ac_status); }; }; then | |
12173 | ac_header_compiler=yes | |
12174 | else | |
12175 | echo "$as_me: failed program was:" >&5 | |
12176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12177 | ||
b4e70030 | 12178 | ac_header_compiler=no |
bec39cab AC |
12179 | fi |
12180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12181 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12182 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12183 | |
12184 | # Is the header present? | |
b4e70030 JB |
12185 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12187 | cat >conftest.$ac_ext <<_ACEOF |
12188 | /* confdefs.h. */ | |
12189 | _ACEOF | |
12190 | cat confdefs.h >>conftest.$ac_ext | |
12191 | cat >>conftest.$ac_ext <<_ACEOF | |
12192 | /* end confdefs.h. */ | |
12193 | #include <$ac_header> | |
12194 | _ACEOF | |
12195 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12196 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12197 | ac_status=$? | |
12198 | grep -v '^ *+' conftest.er1 >conftest.err | |
12199 | rm -f conftest.er1 | |
12200 | cat conftest.err >&5 | |
12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12202 | (exit $ac_status); } >/dev/null; then | |
12203 | if test -s conftest.err; then | |
12204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12205 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12206 | else | |
12207 | ac_cpp_err= | |
12208 | fi | |
9a156167 | 12209 | else |
bec39cab | 12210 | ac_cpp_err=yes |
9a156167 | 12211 | fi |
bec39cab AC |
12212 | if test -z "$ac_cpp_err"; then |
12213 | ac_header_preproc=yes | |
12214 | else | |
12215 | echo "$as_me: failed program was:" >&5 | |
12216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 12217 | |
bec39cab | 12218 | ac_header_preproc=no |
9a156167 | 12219 | fi |
bec39cab | 12220 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12221 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12222 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 12223 | |
bec39cab AC |
12224 | # So? What about this header? |
12225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12226 | yes:no: ) | |
12227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12231 | ac_header_preproc=yes | |
12232 | ;; | |
12233 | no:yes:* ) | |
12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12246 | ( |
12247 | cat <<\_ASBOX | |
12248 | ## ------------------------------------------ ## | |
12249 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12250 | ## ------------------------------------------ ## | |
12251 | _ASBOX | |
12252 | ) | | |
12253 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12254 | ;; |
12255 | esac | |
b4e70030 JB |
12256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12260 | else |
bec39cab | 12261 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12262 | fi |
b4e70030 JB |
12263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 12265 | |
bec39cab AC |
12266 | fi |
12267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12268 | cat >>confdefs.h <<_ACEOF | |
12269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12270 | _ACEOF | |
9a156167 | 12271 | |
bec39cab | 12272 | fi |
9a156167 | 12273 | |
bec39cab | 12274 | done |
9a156167 | 12275 | |
9a156167 | 12276 | |
9a156167 | 12277 | |
bec39cab AC |
12278 | |
12279 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
12280 | do | |
12281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12287 | fi | |
b4e70030 JB |
12288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12290 | else |
12291 | # Is the header compilable? | |
b4e70030 JB |
12292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12294 | cat >conftest.$ac_ext <<_ACEOF |
12295 | /* confdefs.h. */ | |
12296 | _ACEOF | |
12297 | cat confdefs.h >>conftest.$ac_ext | |
12298 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
12299 | /* end confdefs.h. */ |
12300 | $ac_includes_default | |
12301 | #include <$ac_header> | |
12302 | _ACEOF | |
12303 | rm -f conftest.$ac_objext | |
12304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12305 | (eval $ac_compile) 2>conftest.er1 | |
12306 | ac_status=$? | |
12307 | grep -v '^ *+' conftest.er1 >conftest.err | |
12308 | rm -f conftest.er1 | |
12309 | cat conftest.err >&5 | |
12310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12311 | (exit $ac_status); } && | |
12312 | { ac_try='test -z "$ac_c_werror_flag" | |
12313 | || test ! -s conftest.err' | |
12314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12315 | (eval $ac_try) 2>&5 | |
12316 | ac_status=$? | |
12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12318 | (exit $ac_status); }; } && | |
12319 | { ac_try='test -s conftest.$ac_objext' | |
12320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12321 | (eval $ac_try) 2>&5 | |
12322 | ac_status=$? | |
12323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12324 | (exit $ac_status); }; }; then | |
12325 | ac_header_compiler=yes | |
12326 | else | |
12327 | echo "$as_me: failed program was:" >&5 | |
12328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12329 | ||
12330 | ac_header_compiler=no | |
12331 | fi | |
12332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12335 | ||
12336 | # Is the header present? | |
12337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12339 | cat >conftest.$ac_ext <<_ACEOF | |
12340 | /* confdefs.h. */ | |
12341 | _ACEOF | |
12342 | cat confdefs.h >>conftest.$ac_ext | |
12343 | cat >>conftest.$ac_ext <<_ACEOF | |
12344 | /* end confdefs.h. */ | |
12345 | #include <$ac_header> | |
12346 | _ACEOF | |
12347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12349 | ac_status=$? | |
12350 | grep -v '^ *+' conftest.er1 >conftest.err | |
12351 | rm -f conftest.er1 | |
12352 | cat conftest.err >&5 | |
12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12354 | (exit $ac_status); } >/dev/null; then | |
12355 | if test -s conftest.err; then | |
12356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12358 | else | |
12359 | ac_cpp_err= | |
12360 | fi | |
12361 | else | |
12362 | ac_cpp_err=yes | |
12363 | fi | |
12364 | if test -z "$ac_cpp_err"; then | |
12365 | ac_header_preproc=yes | |
12366 | else | |
12367 | echo "$as_me: failed program was:" >&5 | |
12368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12369 | ||
12370 | ac_header_preproc=no | |
12371 | fi | |
12372 | rm -f conftest.err conftest.$ac_ext | |
12373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12375 | ||
12376 | # So? What about this header? | |
12377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12378 | yes:no: ) | |
12379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12383 | ac_header_preproc=yes | |
12384 | ;; | |
12385 | no:yes:* ) | |
12386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12398 | ( | |
12399 | cat <<\_ASBOX | |
12400 | ## ------------------------------------------ ## | |
12401 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12402 | ## ------------------------------------------ ## | |
12403 | _ASBOX | |
12404 | ) | | |
12405 | sed "s/^/$as_me: WARNING: /" >&2 | |
12406 | ;; | |
12407 | esac | |
12408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12412 | else | |
12413 | eval "$as_ac_Header=\$ac_header_preproc" | |
12414 | fi | |
12415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12417 | ||
12418 | fi | |
12419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12420 | cat >>confdefs.h <<_ACEOF | |
12421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12422 | _ACEOF | |
12423 | ||
12424 | fi | |
12425 | ||
12426 | done | |
12427 | ||
12428 | ||
12429 | for ac_header in signal.h | |
12430 | do | |
12431 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12437 | fi | |
12438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12440 | else | |
12441 | # Is the header compilable? | |
12442 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12443 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12444 | cat >conftest.$ac_ext <<_ACEOF | |
12445 | /* confdefs.h. */ | |
12446 | _ACEOF | |
12447 | cat confdefs.h >>conftest.$ac_ext | |
12448 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12449 | /* end confdefs.h. */ |
12450 | $ac_includes_default | |
12451 | #include <$ac_header> | |
12452 | _ACEOF | |
12453 | rm -f conftest.$ac_objext | |
12454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12455 | (eval $ac_compile) 2>conftest.er1 | |
12456 | ac_status=$? | |
12457 | grep -v '^ *+' conftest.er1 >conftest.err | |
12458 | rm -f conftest.er1 | |
12459 | cat conftest.err >&5 | |
12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12461 | (exit $ac_status); } && | |
b4e70030 JB |
12462 | { ac_try='test -z "$ac_c_werror_flag" |
12463 | || test ! -s conftest.err' | |
bec39cab AC |
12464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12465 | (eval $ac_try) 2>&5 | |
12466 | ac_status=$? | |
12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12468 | (exit $ac_status); }; } && | |
12469 | { ac_try='test -s conftest.$ac_objext' | |
12470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12471 | (eval $ac_try) 2>&5 | |
12472 | ac_status=$? | |
12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12474 | (exit $ac_status); }; }; then | |
12475 | ac_header_compiler=yes | |
12476 | else | |
12477 | echo "$as_me: failed program was:" >&5 | |
12478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12479 | ||
b4e70030 | 12480 | ac_header_compiler=no |
bec39cab AC |
12481 | fi |
12482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12483 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12484 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12485 | |
12486 | # Is the header present? | |
b4e70030 JB |
12487 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12489 | cat >conftest.$ac_ext <<_ACEOF |
12490 | /* confdefs.h. */ | |
12491 | _ACEOF | |
12492 | cat confdefs.h >>conftest.$ac_ext | |
12493 | cat >>conftest.$ac_ext <<_ACEOF | |
12494 | /* end confdefs.h. */ | |
12495 | #include <$ac_header> | |
12496 | _ACEOF | |
12497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12499 | ac_status=$? | |
12500 | grep -v '^ *+' conftest.er1 >conftest.err | |
12501 | rm -f conftest.er1 | |
12502 | cat conftest.err >&5 | |
12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12504 | (exit $ac_status); } >/dev/null; then | |
12505 | if test -s conftest.err; then | |
12506 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12508 | else | |
12509 | ac_cpp_err= | |
12510 | fi | |
9a156167 | 12511 | else |
bec39cab | 12512 | ac_cpp_err=yes |
9a156167 | 12513 | fi |
bec39cab AC |
12514 | if test -z "$ac_cpp_err"; then |
12515 | ac_header_preproc=yes | |
12516 | else | |
12517 | echo "$as_me: failed program was:" >&5 | |
12518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 12519 | |
bec39cab | 12520 | ac_header_preproc=no |
9a156167 | 12521 | fi |
bec39cab | 12522 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12524 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 12525 | |
bec39cab AC |
12526 | # So? What about this header? |
12527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12528 | yes:no: ) | |
12529 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12530 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12532 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12533 | ac_header_preproc=yes | |
12534 | ;; | |
12535 | no:yes:* ) | |
12536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12540 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12541 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12542 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12543 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12546 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12547 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12548 | ( |
12549 | cat <<\_ASBOX | |
12550 | ## ------------------------------------------ ## | |
12551 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12552 | ## ------------------------------------------ ## | |
12553 | _ASBOX | |
12554 | ) | | |
12555 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12556 | ;; |
12557 | esac | |
b4e70030 JB |
12558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12562 | else |
bec39cab | 12563 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12564 | fi |
b4e70030 JB |
12565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
12567 | |
12568 | fi | |
bec39cab AC |
12569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12570 | cat >>confdefs.h <<_ACEOF | |
12571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12572 | _ACEOF | |
9a156167 | 12573 | |
bec39cab AC |
12574 | fi |
12575 | ||
12576 | done | |
9a156167 | 12577 | |
c890192f | 12578 | |
bec39cab AC |
12579 | for ac_header in stddef.h |
12580 | do | |
12581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12587 | fi | |
b4e70030 JB |
12588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12590 | else |
12591 | # Is the header compilable? | |
b4e70030 JB |
12592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12594 | cat >conftest.$ac_ext <<_ACEOF |
12595 | /* confdefs.h. */ | |
12596 | _ACEOF | |
12597 | cat confdefs.h >>conftest.$ac_ext | |
12598 | cat >>conftest.$ac_ext <<_ACEOF | |
12599 | /* end confdefs.h. */ | |
12600 | $ac_includes_default | |
12601 | #include <$ac_header> | |
12602 | _ACEOF | |
12603 | rm -f conftest.$ac_objext | |
12604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12605 | (eval $ac_compile) 2>conftest.er1 | |
12606 | ac_status=$? | |
12607 | grep -v '^ *+' conftest.er1 >conftest.err | |
12608 | rm -f conftest.er1 | |
12609 | cat conftest.err >&5 | |
12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12611 | (exit $ac_status); } && | |
b4e70030 JB |
12612 | { ac_try='test -z "$ac_c_werror_flag" |
12613 | || test ! -s conftest.err' | |
bec39cab AC |
12614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12615 | (eval $ac_try) 2>&5 | |
12616 | ac_status=$? | |
12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12618 | (exit $ac_status); }; } && | |
12619 | { ac_try='test -s conftest.$ac_objext' | |
12620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12621 | (eval $ac_try) 2>&5 | |
12622 | ac_status=$? | |
12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12624 | (exit $ac_status); }; }; then | |
12625 | ac_header_compiler=yes | |
12626 | else | |
12627 | echo "$as_me: failed program was:" >&5 | |
12628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12629 | ||
b4e70030 | 12630 | ac_header_compiler=no |
bec39cab AC |
12631 | fi |
12632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12634 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12635 | |
12636 | # Is the header present? | |
b4e70030 JB |
12637 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12638 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12639 | cat >conftest.$ac_ext <<_ACEOF |
12640 | /* confdefs.h. */ | |
12641 | _ACEOF | |
12642 | cat confdefs.h >>conftest.$ac_ext | |
12643 | cat >>conftest.$ac_ext <<_ACEOF | |
12644 | /* end confdefs.h. */ | |
12645 | #include <$ac_header> | |
12646 | _ACEOF | |
12647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12649 | ac_status=$? | |
12650 | grep -v '^ *+' conftest.er1 >conftest.err | |
12651 | rm -f conftest.er1 | |
12652 | cat conftest.err >&5 | |
12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12654 | (exit $ac_status); } >/dev/null; then | |
12655 | if test -s conftest.err; then | |
12656 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12657 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12658 | else | |
12659 | ac_cpp_err= | |
12660 | fi | |
c890192f | 12661 | else |
bec39cab AC |
12662 | ac_cpp_err=yes |
12663 | fi | |
12664 | if test -z "$ac_cpp_err"; then | |
12665 | ac_header_preproc=yes | |
c890192f | 12666 | else |
bec39cab AC |
12667 | echo "$as_me: failed program was:" >&5 |
12668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12669 | ||
12670 | ac_header_preproc=no | |
c890192f | 12671 | fi |
bec39cab | 12672 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12673 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12674 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12675 | |
12676 | # So? What about this header? | |
12677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12678 | yes:no: ) | |
12679 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12680 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12682 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12683 | ac_header_preproc=yes | |
12684 | ;; | |
12685 | no:yes:* ) | |
12686 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12687 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12688 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12689 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12690 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12691 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12692 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12693 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12695 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12696 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12697 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12698 | ( |
12699 | cat <<\_ASBOX | |
12700 | ## ------------------------------------------ ## | |
12701 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12702 | ## ------------------------------------------ ## | |
12703 | _ASBOX | |
12704 | ) | | |
12705 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12706 | ;; |
12707 | esac | |
b4e70030 JB |
12708 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 12712 | else |
bec39cab | 12713 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 12714 | fi |
b4e70030 JB |
12715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12717 | |
c890192f | 12718 | fi |
bec39cab AC |
12719 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12720 | cat >>confdefs.h <<_ACEOF | |
12721 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12722 | _ACEOF | |
c890192f | 12723 | |
c890192f MK |
12724 | fi |
12725 | ||
bec39cab | 12726 | done |
9a156167 | 12727 | |
bec39cab AC |
12728 | |
12729 | for ac_header in stdlib.h | |
12730 | do | |
12731 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12733 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12737 | fi | |
b4e70030 JB |
12738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12739 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12740 | else |
12741 | # Is the header compilable? | |
b4e70030 JB |
12742 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12743 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12744 | cat >conftest.$ac_ext <<_ACEOF |
12745 | /* confdefs.h. */ | |
12746 | _ACEOF | |
12747 | cat confdefs.h >>conftest.$ac_ext | |
12748 | cat >>conftest.$ac_ext <<_ACEOF | |
12749 | /* end confdefs.h. */ | |
12750 | $ac_includes_default | |
12751 | #include <$ac_header> | |
12752 | _ACEOF | |
12753 | rm -f conftest.$ac_objext | |
12754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12755 | (eval $ac_compile) 2>conftest.er1 | |
12756 | ac_status=$? | |
12757 | grep -v '^ *+' conftest.er1 >conftest.err | |
12758 | rm -f conftest.er1 | |
12759 | cat conftest.err >&5 | |
12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12761 | (exit $ac_status); } && | |
b4e70030 JB |
12762 | { ac_try='test -z "$ac_c_werror_flag" |
12763 | || test ! -s conftest.err' | |
bec39cab AC |
12764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12765 | (eval $ac_try) 2>&5 | |
12766 | ac_status=$? | |
12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12768 | (exit $ac_status); }; } && | |
12769 | { ac_try='test -s conftest.$ac_objext' | |
12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12771 | (eval $ac_try) 2>&5 | |
12772 | ac_status=$? | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); }; }; then | |
12775 | ac_header_compiler=yes | |
12776 | else | |
12777 | echo "$as_me: failed program was:" >&5 | |
12778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12779 | ||
b4e70030 | 12780 | ac_header_compiler=no |
bec39cab AC |
12781 | fi |
12782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12783 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12784 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12785 | |
12786 | # Is the header present? | |
b4e70030 JB |
12787 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12788 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12789 | cat >conftest.$ac_ext <<_ACEOF |
12790 | /* confdefs.h. */ | |
12791 | _ACEOF | |
12792 | cat confdefs.h >>conftest.$ac_ext | |
12793 | cat >>conftest.$ac_ext <<_ACEOF | |
12794 | /* end confdefs.h. */ | |
12795 | #include <$ac_header> | |
12796 | _ACEOF | |
12797 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12798 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12799 | ac_status=$? | |
12800 | grep -v '^ *+' conftest.er1 >conftest.err | |
12801 | rm -f conftest.er1 | |
12802 | cat conftest.err >&5 | |
12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12804 | (exit $ac_status); } >/dev/null; then | |
12805 | if test -s conftest.err; then | |
12806 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12807 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12808 | else | |
12809 | ac_cpp_err= | |
12810 | fi | |
9a156167 | 12811 | else |
bec39cab AC |
12812 | ac_cpp_err=yes |
12813 | fi | |
12814 | if test -z "$ac_cpp_err"; then | |
12815 | ac_header_preproc=yes | |
9a156167 | 12816 | else |
bec39cab AC |
12817 | echo "$as_me: failed program was:" >&5 |
12818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12819 | ||
12820 | ac_header_preproc=no | |
9a156167 | 12821 | fi |
bec39cab | 12822 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12823 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12824 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12825 | |
12826 | # So? What about this header? | |
12827 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12828 | yes:no: ) | |
12829 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12830 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12832 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12833 | ac_header_preproc=yes | |
12834 | ;; | |
12835 | no:yes:* ) | |
12836 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12837 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12838 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12839 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12840 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12841 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12842 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12843 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12844 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12845 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12846 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12847 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12848 | ( |
12849 | cat <<\_ASBOX | |
12850 | ## ------------------------------------------ ## | |
12851 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12852 | ## ------------------------------------------ ## | |
12853 | _ASBOX | |
12854 | ) | | |
12855 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12856 | ;; |
12857 | esac | |
b4e70030 JB |
12858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12862 | else |
bec39cab | 12863 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12864 | fi |
b4e70030 JB |
12865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12867 | |
9a156167 | 12868 | fi |
bec39cab AC |
12869 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12870 | cat >>confdefs.h <<_ACEOF | |
12871 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12872 | _ACEOF | |
9a156167 | 12873 | |
9a156167 MK |
12874 | fi |
12875 | ||
bec39cab AC |
12876 | done |
12877 | ||
06825bd1 | 12878 | |
06825bd1 | 12879 | |
bec39cab AC |
12880 | |
12881 | for ac_header in string.h memory.h strings.h | |
12882 | do | |
12883 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12884 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12889 | fi | |
b4e70030 JB |
12890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12891 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12892 | else |
12893 | # Is the header compilable? | |
b4e70030 JB |
12894 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12895 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12896 | cat >conftest.$ac_ext <<_ACEOF |
12897 | /* confdefs.h. */ | |
12898 | _ACEOF | |
12899 | cat confdefs.h >>conftest.$ac_ext | |
12900 | cat >>conftest.$ac_ext <<_ACEOF | |
12901 | /* end confdefs.h. */ | |
12902 | $ac_includes_default | |
12903 | #include <$ac_header> | |
12904 | _ACEOF | |
12905 | rm -f conftest.$ac_objext | |
12906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12907 | (eval $ac_compile) 2>conftest.er1 | |
12908 | ac_status=$? | |
12909 | grep -v '^ *+' conftest.er1 >conftest.err | |
12910 | rm -f conftest.er1 | |
12911 | cat conftest.err >&5 | |
12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12913 | (exit $ac_status); } && | |
b4e70030 JB |
12914 | { ac_try='test -z "$ac_c_werror_flag" |
12915 | || test ! -s conftest.err' | |
bec39cab AC |
12916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12917 | (eval $ac_try) 2>&5 | |
12918 | ac_status=$? | |
12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12920 | (exit $ac_status); }; } && | |
12921 | { ac_try='test -s conftest.$ac_objext' | |
12922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12923 | (eval $ac_try) 2>&5 | |
12924 | ac_status=$? | |
12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12926 | (exit $ac_status); }; }; then | |
12927 | ac_header_compiler=yes | |
12928 | else | |
12929 | echo "$as_me: failed program was:" >&5 | |
12930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12931 | ||
b4e70030 | 12932 | ac_header_compiler=no |
bec39cab AC |
12933 | fi |
12934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12936 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12937 | |
12938 | # Is the header present? | |
b4e70030 JB |
12939 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12940 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12941 | cat >conftest.$ac_ext <<_ACEOF |
12942 | /* confdefs.h. */ | |
12943 | _ACEOF | |
12944 | cat confdefs.h >>conftest.$ac_ext | |
12945 | cat >>conftest.$ac_ext <<_ACEOF | |
12946 | /* end confdefs.h. */ | |
12947 | #include <$ac_header> | |
12948 | _ACEOF | |
12949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12951 | ac_status=$? | |
12952 | grep -v '^ *+' conftest.er1 >conftest.err | |
12953 | rm -f conftest.er1 | |
12954 | cat conftest.err >&5 | |
12955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12956 | (exit $ac_status); } >/dev/null; then | |
12957 | if test -s conftest.err; then | |
12958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12960 | else | |
12961 | ac_cpp_err= | |
12962 | fi | |
06825bd1 | 12963 | else |
bec39cab AC |
12964 | ac_cpp_err=yes |
12965 | fi | |
12966 | if test -z "$ac_cpp_err"; then | |
12967 | ac_header_preproc=yes | |
06825bd1 | 12968 | else |
bec39cab AC |
12969 | echo "$as_me: failed program was:" >&5 |
12970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12971 | ||
12972 | ac_header_preproc=no | |
06825bd1 | 12973 | fi |
bec39cab | 12974 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12976 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12977 | |
12978 | # So? What about this header? | |
12979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12980 | yes:no: ) | |
12981 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12982 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12984 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12985 | ac_header_preproc=yes | |
12986 | ;; | |
12987 | no:yes:* ) | |
12988 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12989 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12990 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12991 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12992 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12993 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12994 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12995 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12997 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12998 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12999 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13000 | ( |
13001 | cat <<\_ASBOX | |
13002 | ## ------------------------------------------ ## | |
13003 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13004 | ## ------------------------------------------ ## | |
13005 | _ASBOX | |
13006 | ) | | |
13007 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13008 | ;; |
13009 | esac | |
b4e70030 JB |
13010 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13011 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13012 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13014 | else | |
13015 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 13016 | fi |
b4e70030 JB |
13017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 13019 | |
06825bd1 | 13020 | fi |
bec39cab AC |
13021 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13022 | cat >>confdefs.h <<_ACEOF | |
13023 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13024 | _ACEOF | |
06825bd1 | 13025 | |
06825bd1 MK |
13026 | fi |
13027 | ||
bec39cab | 13028 | done |
5ee754fc | 13029 | |
bec39cab AC |
13030 | |
13031 | for ac_header in sys/fault.h | |
5ee754fc | 13032 | do |
bec39cab | 13033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13039 | fi | |
b4e70030 JB |
13040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13042 | else |
13043 | # Is the header compilable? | |
b4e70030 JB |
13044 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13046 | cat >conftest.$ac_ext <<_ACEOF |
13047 | /* confdefs.h. */ | |
13048 | _ACEOF | |
13049 | cat confdefs.h >>conftest.$ac_ext | |
13050 | cat >>conftest.$ac_ext <<_ACEOF | |
13051 | /* end confdefs.h. */ | |
13052 | $ac_includes_default | |
13053 | #include <$ac_header> | |
13054 | _ACEOF | |
13055 | rm -f conftest.$ac_objext | |
13056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13057 | (eval $ac_compile) 2>conftest.er1 | |
13058 | ac_status=$? | |
13059 | grep -v '^ *+' conftest.er1 >conftest.err | |
13060 | rm -f conftest.er1 | |
13061 | cat conftest.err >&5 | |
13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13063 | (exit $ac_status); } && | |
b4e70030 JB |
13064 | { ac_try='test -z "$ac_c_werror_flag" |
13065 | || test ! -s conftest.err' | |
bec39cab AC |
13066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13067 | (eval $ac_try) 2>&5 | |
13068 | ac_status=$? | |
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); }; } && | |
13071 | { ac_try='test -s conftest.$ac_objext' | |
13072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13073 | (eval $ac_try) 2>&5 | |
13074 | ac_status=$? | |
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13076 | (exit $ac_status); }; }; then | |
13077 | ac_header_compiler=yes | |
13078 | else | |
13079 | echo "$as_me: failed program was:" >&5 | |
13080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13081 | ||
b4e70030 | 13082 | ac_header_compiler=no |
bec39cab AC |
13083 | fi |
13084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13085 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13086 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13087 | |
13088 | # Is the header present? | |
b4e70030 JB |
13089 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13090 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13091 | cat >conftest.$ac_ext <<_ACEOF |
13092 | /* confdefs.h. */ | |
13093 | _ACEOF | |
13094 | cat confdefs.h >>conftest.$ac_ext | |
13095 | cat >>conftest.$ac_ext <<_ACEOF | |
13096 | /* end confdefs.h. */ | |
13097 | #include <$ac_header> | |
13098 | _ACEOF | |
13099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13101 | ac_status=$? | |
13102 | grep -v '^ *+' conftest.er1 >conftest.err | |
13103 | rm -f conftest.er1 | |
13104 | cat conftest.err >&5 | |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); } >/dev/null; then | |
13107 | if test -s conftest.err; then | |
13108 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13110 | else | |
13111 | ac_cpp_err= | |
13112 | fi | |
5ee754fc | 13113 | else |
bec39cab | 13114 | ac_cpp_err=yes |
5ee754fc | 13115 | fi |
bec39cab AC |
13116 | if test -z "$ac_cpp_err"; then |
13117 | ac_header_preproc=yes | |
13118 | else | |
13119 | echo "$as_me: failed program was:" >&5 | |
13120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13121 | |
bec39cab | 13122 | ac_header_preproc=no |
5ee754fc | 13123 | fi |
bec39cab | 13124 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13125 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13126 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
13127 | |
13128 | # So? What about this header? | |
13129 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13130 | yes:no: ) | |
13131 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13132 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13133 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13134 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13135 | ac_header_preproc=yes | |
13136 | ;; | |
13137 | no:yes:* ) | |
13138 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13139 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13140 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13141 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13142 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13143 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13144 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13145 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13147 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13148 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13149 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13150 | ( |
13151 | cat <<\_ASBOX | |
13152 | ## ------------------------------------------ ## | |
13153 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13154 | ## ------------------------------------------ ## | |
13155 | _ASBOX | |
13156 | ) | | |
13157 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13158 | ;; |
13159 | esac | |
b4e70030 JB |
13160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13164 | else |
bec39cab | 13165 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 13166 | fi |
b4e70030 JB |
13167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 13169 | |
5ee754fc | 13170 | fi |
bec39cab AC |
13171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13172 | cat >>confdefs.h <<_ACEOF | |
13173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13174 | _ACEOF | |
c906108c | 13175 | |
5ee754fc | 13176 | fi |
bec39cab AC |
13177 | |
13178 | done | |
13179 | ||
13180 | ||
13181 | for ac_header in sys/file.h | |
13182 | do | |
13183 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13185 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13189 | fi | |
b4e70030 JB |
13190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13191 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13192 | else |
13193 | # Is the header compilable? | |
b4e70030 JB |
13194 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13195 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13196 | cat >conftest.$ac_ext <<_ACEOF |
13197 | /* confdefs.h. */ | |
13198 | _ACEOF | |
13199 | cat confdefs.h >>conftest.$ac_ext | |
13200 | cat >>conftest.$ac_ext <<_ACEOF | |
13201 | /* end confdefs.h. */ | |
13202 | $ac_includes_default | |
13203 | #include <$ac_header> | |
13204 | _ACEOF | |
13205 | rm -f conftest.$ac_objext | |
13206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13207 | (eval $ac_compile) 2>conftest.er1 | |
13208 | ac_status=$? | |
13209 | grep -v '^ *+' conftest.er1 >conftest.err | |
13210 | rm -f conftest.er1 | |
13211 | cat conftest.err >&5 | |
13212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13213 | (exit $ac_status); } && | |
b4e70030 JB |
13214 | { ac_try='test -z "$ac_c_werror_flag" |
13215 | || test ! -s conftest.err' | |
bec39cab AC |
13216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13217 | (eval $ac_try) 2>&5 | |
13218 | ac_status=$? | |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13220 | (exit $ac_status); }; } && | |
13221 | { ac_try='test -s conftest.$ac_objext' | |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; }; then | |
13227 | ac_header_compiler=yes | |
13228 | else | |
13229 | echo "$as_me: failed program was:" >&5 | |
13230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13231 | ||
b4e70030 | 13232 | ac_header_compiler=no |
bec39cab AC |
13233 | fi |
13234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13235 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13236 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13237 | |
13238 | # Is the header present? | |
b4e70030 JB |
13239 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13241 | cat >conftest.$ac_ext <<_ACEOF |
13242 | /* confdefs.h. */ | |
13243 | _ACEOF | |
13244 | cat confdefs.h >>conftest.$ac_ext | |
13245 | cat >>conftest.$ac_ext <<_ACEOF | |
13246 | /* end confdefs.h. */ | |
13247 | #include <$ac_header> | |
13248 | _ACEOF | |
13249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13251 | ac_status=$? | |
13252 | grep -v '^ *+' conftest.er1 >conftest.err | |
13253 | rm -f conftest.er1 | |
13254 | cat conftest.err >&5 | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); } >/dev/null; then | |
13257 | if test -s conftest.err; then | |
13258 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13260 | else | |
13261 | ac_cpp_err= | |
13262 | fi | |
5ee754fc | 13263 | else |
bec39cab | 13264 | ac_cpp_err=yes |
5ee754fc | 13265 | fi |
bec39cab AC |
13266 | if test -z "$ac_cpp_err"; then |
13267 | ac_header_preproc=yes | |
13268 | else | |
13269 | echo "$as_me: failed program was:" >&5 | |
13270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 13271 | |
bec39cab | 13272 | ac_header_preproc=no |
5ee754fc | 13273 | fi |
bec39cab | 13274 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13275 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13276 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 13277 | |
bec39cab AC |
13278 | # So? What about this header? |
13279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13280 | yes:no: ) | |
13281 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13282 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13284 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13285 | ac_header_preproc=yes | |
13286 | ;; | |
13287 | no:yes:* ) | |
13288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13292 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13293 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13294 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13295 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13298 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13299 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13300 | ( |
13301 | cat <<\_ASBOX | |
13302 | ## ------------------------------------------ ## | |
13303 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13304 | ## ------------------------------------------ ## | |
13305 | _ASBOX | |
13306 | ) | | |
13307 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13308 | ;; |
13309 | esac | |
b4e70030 JB |
13310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 13314 | else |
bec39cab AC |
13315 | eval "$as_ac_Header=\$ac_header_preproc" |
13316 | fi | |
b4e70030 JB |
13317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13319 | |
bec39cab AC |
13320 | fi |
13321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13322 | cat >>confdefs.h <<_ACEOF | |
13323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13324 | _ACEOF | |
5ee754fc | 13325 | |
bec39cab | 13326 | fi |
5ee754fc | 13327 | |
bec39cab | 13328 | done |
5ee754fc | 13329 | |
5ee754fc | 13330 | |
bec39cab AC |
13331 | for ac_header in sys/filio.h |
13332 | do | |
13333 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13335 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13339 | fi | |
b4e70030 JB |
13340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13341 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13342 | else |
13343 | # Is the header compilable? | |
b4e70030 JB |
13344 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13345 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13346 | cat >conftest.$ac_ext <<_ACEOF |
13347 | /* confdefs.h. */ | |
13348 | _ACEOF | |
13349 | cat confdefs.h >>conftest.$ac_ext | |
13350 | cat >>conftest.$ac_ext <<_ACEOF | |
13351 | /* end confdefs.h. */ | |
13352 | $ac_includes_default | |
13353 | #include <$ac_header> | |
13354 | _ACEOF | |
13355 | rm -f conftest.$ac_objext | |
13356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13357 | (eval $ac_compile) 2>conftest.er1 | |
13358 | ac_status=$? | |
13359 | grep -v '^ *+' conftest.er1 >conftest.err | |
13360 | rm -f conftest.er1 | |
13361 | cat conftest.err >&5 | |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13363 | (exit $ac_status); } && | |
b4e70030 JB |
13364 | { ac_try='test -z "$ac_c_werror_flag" |
13365 | || test ! -s conftest.err' | |
bec39cab AC |
13366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13367 | (eval $ac_try) 2>&5 | |
13368 | ac_status=$? | |
13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13370 | (exit $ac_status); }; } && | |
13371 | { ac_try='test -s conftest.$ac_objext' | |
13372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13373 | (eval $ac_try) 2>&5 | |
13374 | ac_status=$? | |
13375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13376 | (exit $ac_status); }; }; then | |
13377 | ac_header_compiler=yes | |
13378 | else | |
13379 | echo "$as_me: failed program was:" >&5 | |
13380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13381 | ||
b4e70030 | 13382 | ac_header_compiler=no |
bec39cab AC |
13383 | fi |
13384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13385 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13386 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13387 | |
13388 | # Is the header present? | |
b4e70030 JB |
13389 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13390 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13391 | cat >conftest.$ac_ext <<_ACEOF |
13392 | /* confdefs.h. */ | |
13393 | _ACEOF | |
13394 | cat confdefs.h >>conftest.$ac_ext | |
13395 | cat >>conftest.$ac_ext <<_ACEOF | |
13396 | /* end confdefs.h. */ | |
13397 | #include <$ac_header> | |
13398 | _ACEOF | |
13399 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13401 | ac_status=$? | |
13402 | grep -v '^ *+' conftest.er1 >conftest.err | |
13403 | rm -f conftest.er1 | |
13404 | cat conftest.err >&5 | |
13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13406 | (exit $ac_status); } >/dev/null; then | |
13407 | if test -s conftest.err; then | |
13408 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13410 | else | |
13411 | ac_cpp_err= | |
13412 | fi | |
5ee754fc | 13413 | else |
bec39cab | 13414 | ac_cpp_err=yes |
5ee754fc | 13415 | fi |
bec39cab AC |
13416 | if test -z "$ac_cpp_err"; then |
13417 | ac_header_preproc=yes | |
13418 | else | |
13419 | echo "$as_me: failed program was:" >&5 | |
13420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13421 | |
bec39cab | 13422 | ac_header_preproc=no |
5ee754fc | 13423 | fi |
bec39cab | 13424 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13425 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13426 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 13427 | |
bec39cab AC |
13428 | # So? What about this header? |
13429 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13430 | yes:no: ) | |
13431 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13432 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13434 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13435 | ac_header_preproc=yes | |
13436 | ;; | |
13437 | no:yes:* ) | |
13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13439 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13440 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13441 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13442 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13443 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13444 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13445 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13447 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13448 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13449 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13450 | ( |
13451 | cat <<\_ASBOX | |
13452 | ## ------------------------------------------ ## | |
13453 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13454 | ## ------------------------------------------ ## | |
13455 | _ASBOX | |
13456 | ) | | |
13457 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13458 | ;; |
13459 | esac | |
b4e70030 JB |
13460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13464 | else |
bec39cab | 13465 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13466 | fi |
b4e70030 JB |
13467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13469 | |
5ee754fc | 13470 | fi |
bec39cab AC |
13471 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13472 | cat >>confdefs.h <<_ACEOF | |
13473 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13474 | _ACEOF | |
5ee754fc MK |
13475 | |
13476 | fi | |
13477 | ||
bec39cab AC |
13478 | done |
13479 | ||
13480 | ||
13481 | for ac_header in sys/ioctl.h | |
13482 | do | |
13483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13489 | fi | |
b4e70030 JB |
13490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13492 | else |
13493 | # Is the header compilable? | |
b4e70030 JB |
13494 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13495 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13496 | cat >conftest.$ac_ext <<_ACEOF |
13497 | /* confdefs.h. */ | |
13498 | _ACEOF | |
13499 | cat confdefs.h >>conftest.$ac_ext | |
13500 | cat >>conftest.$ac_ext <<_ACEOF | |
13501 | /* end confdefs.h. */ | |
13502 | $ac_includes_default | |
13503 | #include <$ac_header> | |
13504 | _ACEOF | |
13505 | rm -f conftest.$ac_objext | |
13506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13507 | (eval $ac_compile) 2>conftest.er1 | |
13508 | ac_status=$? | |
13509 | grep -v '^ *+' conftest.er1 >conftest.err | |
13510 | rm -f conftest.er1 | |
13511 | cat conftest.err >&5 | |
13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13513 | (exit $ac_status); } && | |
b4e70030 JB |
13514 | { ac_try='test -z "$ac_c_werror_flag" |
13515 | || test ! -s conftest.err' | |
bec39cab AC |
13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13517 | (eval $ac_try) 2>&5 | |
13518 | ac_status=$? | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); }; } && | |
13521 | { ac_try='test -s conftest.$ac_objext' | |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; }; then | |
13527 | ac_header_compiler=yes | |
13528 | else | |
13529 | echo "$as_me: failed program was:" >&5 | |
13530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13531 | ||
b4e70030 | 13532 | ac_header_compiler=no |
bec39cab AC |
13533 | fi |
13534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13535 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13536 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13537 | |
13538 | # Is the header present? | |
b4e70030 JB |
13539 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13541 | cat >conftest.$ac_ext <<_ACEOF |
13542 | /* confdefs.h. */ | |
13543 | _ACEOF | |
13544 | cat confdefs.h >>conftest.$ac_ext | |
13545 | cat >>conftest.$ac_ext <<_ACEOF | |
13546 | /* end confdefs.h. */ | |
13547 | #include <$ac_header> | |
13548 | _ACEOF | |
13549 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13550 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13551 | ac_status=$? | |
13552 | grep -v '^ *+' conftest.er1 >conftest.err | |
13553 | rm -f conftest.er1 | |
13554 | cat conftest.err >&5 | |
13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13556 | (exit $ac_status); } >/dev/null; then | |
13557 | if test -s conftest.err; then | |
13558 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13559 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13560 | else | |
13561 | ac_cpp_err= | |
13562 | fi | |
5ee754fc | 13563 | else |
bec39cab | 13564 | ac_cpp_err=yes |
5ee754fc | 13565 | fi |
bec39cab AC |
13566 | if test -z "$ac_cpp_err"; then |
13567 | ac_header_preproc=yes | |
13568 | else | |
13569 | echo "$as_me: failed program was:" >&5 | |
13570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13571 | |
bec39cab | 13572 | ac_header_preproc=no |
5ee754fc | 13573 | fi |
bec39cab | 13574 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13575 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13576 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 13577 | |
bec39cab AC |
13578 | # So? What about this header? |
13579 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13580 | yes:no: ) | |
13581 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13582 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13584 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13585 | ac_header_preproc=yes | |
13586 | ;; | |
13587 | no:yes:* ) | |
13588 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13589 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13590 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13591 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13592 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13593 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13594 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13595 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13597 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13598 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13599 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13600 | ( |
13601 | cat <<\_ASBOX | |
13602 | ## ------------------------------------------ ## | |
13603 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13604 | ## ------------------------------------------ ## | |
13605 | _ASBOX | |
13606 | ) | | |
13607 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13608 | ;; |
13609 | esac | |
b4e70030 JB |
13610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 13614 | else |
bec39cab | 13615 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13616 | fi |
b4e70030 JB |
13617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13618 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
13619 | |
13620 | fi | |
bec39cab AC |
13621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13622 | cat >>confdefs.h <<_ACEOF | |
13623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13624 | _ACEOF | |
13625 | ||
5ee754fc MK |
13626 | fi |
13627 | ||
bec39cab | 13628 | done |
5ee754fc | 13629 | |
5ee754fc | 13630 | |
bec39cab | 13631 | for ac_header in sys/param.h |
5ee754fc | 13632 | do |
bec39cab | 13633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13639 | fi | |
b4e70030 JB |
13640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13642 | else |
13643 | # Is the header compilable? | |
b4e70030 JB |
13644 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13645 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13646 | cat >conftest.$ac_ext <<_ACEOF |
13647 | /* confdefs.h. */ | |
13648 | _ACEOF | |
13649 | cat confdefs.h >>conftest.$ac_ext | |
13650 | cat >>conftest.$ac_ext <<_ACEOF | |
13651 | /* end confdefs.h. */ | |
13652 | $ac_includes_default | |
13653 | #include <$ac_header> | |
13654 | _ACEOF | |
13655 | rm -f conftest.$ac_objext | |
13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13657 | (eval $ac_compile) 2>conftest.er1 | |
13658 | ac_status=$? | |
13659 | grep -v '^ *+' conftest.er1 >conftest.err | |
13660 | rm -f conftest.er1 | |
13661 | cat conftest.err >&5 | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); } && | |
b4e70030 JB |
13664 | { ac_try='test -z "$ac_c_werror_flag" |
13665 | || test ! -s conftest.err' | |
bec39cab AC |
13666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13667 | (eval $ac_try) 2>&5 | |
13668 | ac_status=$? | |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13670 | (exit $ac_status); }; } && | |
13671 | { ac_try='test -s conftest.$ac_objext' | |
13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13673 | (eval $ac_try) 2>&5 | |
13674 | ac_status=$? | |
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13676 | (exit $ac_status); }; }; then | |
13677 | ac_header_compiler=yes | |
13678 | else | |
13679 | echo "$as_me: failed program was:" >&5 | |
13680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13681 | ||
b4e70030 | 13682 | ac_header_compiler=no |
bec39cab AC |
13683 | fi |
13684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13685 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13686 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13687 | |
13688 | # Is the header present? | |
b4e70030 JB |
13689 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13690 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13691 | cat >conftest.$ac_ext <<_ACEOF |
13692 | /* confdefs.h. */ | |
13693 | _ACEOF | |
13694 | cat confdefs.h >>conftest.$ac_ext | |
13695 | cat >>conftest.$ac_ext <<_ACEOF | |
13696 | /* end confdefs.h. */ | |
13697 | #include <$ac_header> | |
13698 | _ACEOF | |
13699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13701 | ac_status=$? | |
13702 | grep -v '^ *+' conftest.er1 >conftest.err | |
13703 | rm -f conftest.er1 | |
13704 | cat conftest.err >&5 | |
13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13706 | (exit $ac_status); } >/dev/null; then | |
13707 | if test -s conftest.err; then | |
13708 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13710 | else | |
13711 | ac_cpp_err= | |
13712 | fi | |
5ee754fc | 13713 | else |
bec39cab | 13714 | ac_cpp_err=yes |
5ee754fc | 13715 | fi |
bec39cab AC |
13716 | if test -z "$ac_cpp_err"; then |
13717 | ac_header_preproc=yes | |
13718 | else | |
13719 | echo "$as_me: failed program was:" >&5 | |
13720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13721 | |
bec39cab | 13722 | ac_header_preproc=no |
5ee754fc | 13723 | fi |
bec39cab | 13724 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13725 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13726 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
13727 | |
13728 | # So? What about this header? | |
13729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13730 | yes:no: ) | |
13731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13735 | ac_header_preproc=yes | |
13736 | ;; | |
13737 | no:yes:* ) | |
13738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13750 | ( |
13751 | cat <<\_ASBOX | |
13752 | ## ------------------------------------------ ## | |
13753 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13754 | ## ------------------------------------------ ## | |
13755 | _ASBOX | |
13756 | ) | | |
13757 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13758 | ;; |
13759 | esac | |
b4e70030 JB |
13760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13764 | else |
bec39cab | 13765 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13766 | fi |
b4e70030 JB |
13767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13769 | |
5ee754fc | 13770 | fi |
bec39cab AC |
13771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13772 | cat >>confdefs.h <<_ACEOF | |
13773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13774 | _ACEOF | |
13775 | ||
5ee754fc | 13776 | fi |
bec39cab | 13777 | |
5ee754fc MK |
13778 | done |
13779 | ||
bec39cab | 13780 | |
7eb368b3 NR |
13781 | for ac_header in sys/resource.h |
13782 | do | |
13783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13789 | fi | |
13790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13792 | else | |
13793 | # Is the header compilable? | |
13794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13796 | cat >conftest.$ac_ext <<_ACEOF | |
13797 | /* confdefs.h. */ | |
13798 | _ACEOF | |
13799 | cat confdefs.h >>conftest.$ac_ext | |
13800 | cat >>conftest.$ac_ext <<_ACEOF | |
13801 | /* end confdefs.h. */ | |
13802 | $ac_includes_default | |
13803 | #include <$ac_header> | |
13804 | _ACEOF | |
13805 | rm -f conftest.$ac_objext | |
13806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13807 | (eval $ac_compile) 2>conftest.er1 | |
13808 | ac_status=$? | |
13809 | grep -v '^ *+' conftest.er1 >conftest.err | |
13810 | rm -f conftest.er1 | |
13811 | cat conftest.err >&5 | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); } && | |
13814 | { ac_try='test -z "$ac_c_werror_flag" | |
13815 | || test ! -s conftest.err' | |
13816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13817 | (eval $ac_try) 2>&5 | |
13818 | ac_status=$? | |
13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13820 | (exit $ac_status); }; } && | |
13821 | { ac_try='test -s conftest.$ac_objext' | |
13822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13823 | (eval $ac_try) 2>&5 | |
13824 | ac_status=$? | |
13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13826 | (exit $ac_status); }; }; then | |
13827 | ac_header_compiler=yes | |
13828 | else | |
13829 | echo "$as_me: failed program was:" >&5 | |
13830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13831 | ||
13832 | ac_header_compiler=no | |
13833 | fi | |
13834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13836 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13837 | ||
13838 | # Is the header present? | |
13839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13841 | cat >conftest.$ac_ext <<_ACEOF | |
13842 | /* confdefs.h. */ | |
13843 | _ACEOF | |
13844 | cat confdefs.h >>conftest.$ac_ext | |
13845 | cat >>conftest.$ac_ext <<_ACEOF | |
13846 | /* end confdefs.h. */ | |
13847 | #include <$ac_header> | |
13848 | _ACEOF | |
13849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13851 | ac_status=$? | |
13852 | grep -v '^ *+' conftest.er1 >conftest.err | |
13853 | rm -f conftest.er1 | |
13854 | cat conftest.err >&5 | |
13855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13856 | (exit $ac_status); } >/dev/null; then | |
13857 | if test -s conftest.err; then | |
13858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13860 | else | |
13861 | ac_cpp_err= | |
13862 | fi | |
13863 | else | |
13864 | ac_cpp_err=yes | |
13865 | fi | |
13866 | if test -z "$ac_cpp_err"; then | |
13867 | ac_header_preproc=yes | |
13868 | else | |
13869 | echo "$as_me: failed program was:" >&5 | |
13870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13871 | ||
13872 | ac_header_preproc=no | |
13873 | fi | |
13874 | rm -f conftest.err conftest.$ac_ext | |
13875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13876 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13877 | ||
13878 | # So? What about this header? | |
13879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13880 | yes:no: ) | |
13881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13885 | ac_header_preproc=yes | |
13886 | ;; | |
13887 | no:yes:* ) | |
13888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13900 | ( | |
13901 | cat <<\_ASBOX | |
13902 | ## ------------------------------------------ ## | |
13903 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13904 | ## ------------------------------------------ ## | |
13905 | _ASBOX | |
13906 | ) | | |
13907 | sed "s/^/$as_me: WARNING: /" >&2 | |
13908 | ;; | |
13909 | esac | |
13910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13914 | else | |
13915 | eval "$as_ac_Header=\$ac_header_preproc" | |
13916 | fi | |
13917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13919 | ||
13920 | fi | |
13921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13922 | cat >>confdefs.h <<_ACEOF | |
13923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13924 | _ACEOF | |
13925 | ||
13926 | fi | |
13927 | ||
13928 | done | |
13929 | ||
13930 | ||
bec39cab | 13931 | for ac_header in sys/proc.h |
5ee754fc | 13932 | do |
bec39cab | 13933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13938 | else |
7cb9022a | 13939 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13940 | /* confdefs.h. */ |
13941 | _ACEOF | |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
7cb9022a MK |
13945 | #if HAVE_SYS_PARAM_H |
13946 | # include <sys/param.h> | |
13947 | #endif | |
13948 | ||
13949 | ||
bec39cab AC |
13950 | #include <$ac_header> |
13951 | _ACEOF | |
13952 | rm -f conftest.$ac_objext | |
13953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13954 | (eval $ac_compile) 2>conftest.er1 | |
13955 | ac_status=$? | |
13956 | grep -v '^ *+' conftest.er1 >conftest.err | |
13957 | rm -f conftest.er1 | |
13958 | cat conftest.err >&5 | |
13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13960 | (exit $ac_status); } && | |
b4e70030 JB |
13961 | { ac_try='test -z "$ac_c_werror_flag" |
13962 | || test ! -s conftest.err' | |
bec39cab AC |
13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13964 | (eval $ac_try) 2>&5 | |
13965 | ac_status=$? | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); }; } && | |
13968 | { ac_try='test -s conftest.$ac_objext' | |
13969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13970 | (eval $ac_try) 2>&5 | |
13971 | ac_status=$? | |
13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13973 | (exit $ac_status); }; }; then | |
7cb9022a | 13974 | eval "$as_ac_Header=yes" |
bec39cab AC |
13975 | else |
13976 | echo "$as_me: failed program was:" >&5 | |
13977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13978 | ||
b4e70030 | 13979 | eval "$as_ac_Header=no" |
bec39cab AC |
13980 | fi |
13981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 13982 | fi |
b4e70030 JB |
13983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13985 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13986 | cat >>confdefs.h <<_ACEOF | |
13987 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13988 | _ACEOF | |
13989 | ||
5ee754fc | 13990 | fi |
bec39cab | 13991 | |
5ee754fc MK |
13992 | done |
13993 | ||
bec39cab AC |
13994 | |
13995 | for ac_header in sys/procfs.h | |
5ee754fc | 13996 | do |
bec39cab | 13997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14003 | fi | |
b4e70030 JB |
14004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14006 | else |
14007 | # Is the header compilable? | |
b4e70030 JB |
14008 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14010 | cat >conftest.$ac_ext <<_ACEOF |
14011 | /* confdefs.h. */ | |
14012 | _ACEOF | |
14013 | cat confdefs.h >>conftest.$ac_ext | |
14014 | cat >>conftest.$ac_ext <<_ACEOF | |
14015 | /* end confdefs.h. */ | |
14016 | $ac_includes_default | |
14017 | #include <$ac_header> | |
14018 | _ACEOF | |
14019 | rm -f conftest.$ac_objext | |
14020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14021 | (eval $ac_compile) 2>conftest.er1 | |
14022 | ac_status=$? | |
14023 | grep -v '^ *+' conftest.er1 >conftest.err | |
14024 | rm -f conftest.er1 | |
14025 | cat conftest.err >&5 | |
14026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14027 | (exit $ac_status); } && | |
b4e70030 JB |
14028 | { ac_try='test -z "$ac_c_werror_flag" |
14029 | || test ! -s conftest.err' | |
bec39cab AC |
14030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14031 | (eval $ac_try) 2>&5 | |
14032 | ac_status=$? | |
14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14034 | (exit $ac_status); }; } && | |
14035 | { ac_try='test -s conftest.$ac_objext' | |
14036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14037 | (eval $ac_try) 2>&5 | |
14038 | ac_status=$? | |
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14040 | (exit $ac_status); }; }; then | |
14041 | ac_header_compiler=yes | |
14042 | else | |
14043 | echo "$as_me: failed program was:" >&5 | |
14044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14045 | ||
b4e70030 | 14046 | ac_header_compiler=no |
bec39cab AC |
14047 | fi |
14048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14050 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14051 | |
14052 | # Is the header present? | |
b4e70030 JB |
14053 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14055 | cat >conftest.$ac_ext <<_ACEOF |
14056 | /* confdefs.h. */ | |
14057 | _ACEOF | |
14058 | cat confdefs.h >>conftest.$ac_ext | |
14059 | cat >>conftest.$ac_ext <<_ACEOF | |
14060 | /* end confdefs.h. */ | |
14061 | #include <$ac_header> | |
14062 | _ACEOF | |
14063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14065 | ac_status=$? | |
14066 | grep -v '^ *+' conftest.er1 >conftest.err | |
14067 | rm -f conftest.er1 | |
14068 | cat conftest.err >&5 | |
14069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14070 | (exit $ac_status); } >/dev/null; then | |
14071 | if test -s conftest.err; then | |
14072 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14074 | else | |
14075 | ac_cpp_err= | |
14076 | fi | |
14077 | else | |
14078 | ac_cpp_err=yes | |
5ee754fc | 14079 | fi |
bec39cab AC |
14080 | if test -z "$ac_cpp_err"; then |
14081 | ac_header_preproc=yes | |
5ee754fc | 14082 | else |
bec39cab AC |
14083 | echo "$as_me: failed program was:" >&5 |
14084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14085 | ||
14086 | ac_header_preproc=no | |
5ee754fc | 14087 | fi |
bec39cab | 14088 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14090 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14091 | |
bec39cab AC |
14092 | # So? What about this header? |
14093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14094 | yes:no: ) | |
14095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14099 | ac_header_preproc=yes | |
14100 | ;; | |
14101 | no:yes:* ) | |
14102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14114 | ( |
14115 | cat <<\_ASBOX | |
14116 | ## ------------------------------------------ ## | |
14117 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14118 | ## ------------------------------------------ ## | |
14119 | _ASBOX | |
14120 | ) | | |
14121 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14122 | ;; |
14123 | esac | |
b4e70030 JB |
14124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14128 | else | |
14129 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14130 | fi |
b4e70030 JB |
14131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14133 | |
5ee754fc | 14134 | fi |
bec39cab AC |
14135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14136 | cat >>confdefs.h <<_ACEOF | |
14137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14138 | _ACEOF | |
14139 | ||
5ee754fc | 14140 | fi |
bec39cab | 14141 | |
5ee754fc MK |
14142 | done |
14143 | ||
bec39cab AC |
14144 | |
14145 | ||
14146 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 14147 | do |
bec39cab | 14148 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14154 | fi | |
b4e70030 JB |
14155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14157 | else |
14158 | # Is the header compilable? | |
b4e70030 JB |
14159 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14160 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14161 | cat >conftest.$ac_ext <<_ACEOF |
14162 | /* confdefs.h. */ | |
14163 | _ACEOF | |
14164 | cat confdefs.h >>conftest.$ac_ext | |
14165 | cat >>conftest.$ac_ext <<_ACEOF | |
14166 | /* end confdefs.h. */ | |
14167 | $ac_includes_default | |
14168 | #include <$ac_header> | |
14169 | _ACEOF | |
14170 | rm -f conftest.$ac_objext | |
14171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14172 | (eval $ac_compile) 2>conftest.er1 | |
14173 | ac_status=$? | |
14174 | grep -v '^ *+' conftest.er1 >conftest.err | |
14175 | rm -f conftest.er1 | |
14176 | cat conftest.err >&5 | |
14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14178 | (exit $ac_status); } && | |
b4e70030 JB |
14179 | { ac_try='test -z "$ac_c_werror_flag" |
14180 | || test ! -s conftest.err' | |
bec39cab AC |
14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14182 | (eval $ac_try) 2>&5 | |
14183 | ac_status=$? | |
14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14185 | (exit $ac_status); }; } && | |
14186 | { ac_try='test -s conftest.$ac_objext' | |
14187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14188 | (eval $ac_try) 2>&5 | |
14189 | ac_status=$? | |
14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14191 | (exit $ac_status); }; }; then | |
14192 | ac_header_compiler=yes | |
14193 | else | |
14194 | echo "$as_me: failed program was:" >&5 | |
14195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14196 | ||
b4e70030 | 14197 | ac_header_compiler=no |
bec39cab AC |
14198 | fi |
14199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14201 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14202 | |
14203 | # Is the header present? | |
b4e70030 JB |
14204 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14206 | cat >conftest.$ac_ext <<_ACEOF |
14207 | /* confdefs.h. */ | |
14208 | _ACEOF | |
14209 | cat confdefs.h >>conftest.$ac_ext | |
14210 | cat >>conftest.$ac_ext <<_ACEOF | |
14211 | /* end confdefs.h. */ | |
14212 | #include <$ac_header> | |
14213 | _ACEOF | |
14214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14216 | ac_status=$? | |
14217 | grep -v '^ *+' conftest.er1 >conftest.err | |
14218 | rm -f conftest.er1 | |
14219 | cat conftest.err >&5 | |
14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14221 | (exit $ac_status); } >/dev/null; then | |
14222 | if test -s conftest.err; then | |
14223 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14225 | else | |
14226 | ac_cpp_err= | |
14227 | fi | |
14228 | else | |
14229 | ac_cpp_err=yes | |
5ee754fc | 14230 | fi |
bec39cab AC |
14231 | if test -z "$ac_cpp_err"; then |
14232 | ac_header_preproc=yes | |
5ee754fc | 14233 | else |
bec39cab AC |
14234 | echo "$as_me: failed program was:" >&5 |
14235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14236 | ||
14237 | ac_header_preproc=no | |
5ee754fc | 14238 | fi |
bec39cab | 14239 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14240 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14241 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14242 | |
bec39cab AC |
14243 | # So? What about this header? |
14244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14245 | yes:no: ) | |
14246 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14247 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14249 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14250 | ac_header_preproc=yes | |
14251 | ;; | |
14252 | no:yes:* ) | |
14253 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14254 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14255 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14256 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14257 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14258 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14259 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14260 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14263 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14264 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14265 | ( |
14266 | cat <<\_ASBOX | |
14267 | ## ------------------------------------------ ## | |
14268 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14269 | ## ------------------------------------------ ## | |
14270 | _ASBOX | |
14271 | ) | | |
14272 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14273 | ;; |
14274 | esac | |
b4e70030 JB |
14275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14279 | else | |
14280 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14281 | fi |
b4e70030 JB |
14282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14283 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14284 | |
5ee754fc | 14285 | fi |
bec39cab AC |
14286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14287 | cat >>confdefs.h <<_ACEOF | |
14288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14289 | _ACEOF | |
14290 | ||
5ee754fc | 14291 | fi |
bec39cab | 14292 | |
5ee754fc MK |
14293 | done |
14294 | ||
bec39cab AC |
14295 | |
14296 | ||
14297 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 14298 | do |
bec39cab | 14299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14305 | fi | |
b4e70030 JB |
14306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14308 | else |
14309 | # Is the header compilable? | |
b4e70030 JB |
14310 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14311 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14312 | cat >conftest.$ac_ext <<_ACEOF |
14313 | /* confdefs.h. */ | |
14314 | _ACEOF | |
14315 | cat confdefs.h >>conftest.$ac_ext | |
14316 | cat >>conftest.$ac_ext <<_ACEOF | |
14317 | /* end confdefs.h. */ | |
14318 | $ac_includes_default | |
14319 | #include <$ac_header> | |
14320 | _ACEOF | |
14321 | rm -f conftest.$ac_objext | |
14322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14323 | (eval $ac_compile) 2>conftest.er1 | |
14324 | ac_status=$? | |
14325 | grep -v '^ *+' conftest.er1 >conftest.err | |
14326 | rm -f conftest.er1 | |
14327 | cat conftest.err >&5 | |
14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14329 | (exit $ac_status); } && | |
b4e70030 JB |
14330 | { ac_try='test -z "$ac_c_werror_flag" |
14331 | || test ! -s conftest.err' | |
bec39cab AC |
14332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14333 | (eval $ac_try) 2>&5 | |
14334 | ac_status=$? | |
14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14336 | (exit $ac_status); }; } && | |
14337 | { ac_try='test -s conftest.$ac_objext' | |
14338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14339 | (eval $ac_try) 2>&5 | |
14340 | ac_status=$? | |
14341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14342 | (exit $ac_status); }; }; then | |
14343 | ac_header_compiler=yes | |
14344 | else | |
14345 | echo "$as_me: failed program was:" >&5 | |
14346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14347 | ||
b4e70030 | 14348 | ac_header_compiler=no |
bec39cab AC |
14349 | fi |
14350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14351 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14352 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14353 | |
14354 | # Is the header present? | |
b4e70030 JB |
14355 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14356 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14357 | cat >conftest.$ac_ext <<_ACEOF |
14358 | /* confdefs.h. */ | |
14359 | _ACEOF | |
14360 | cat confdefs.h >>conftest.$ac_ext | |
14361 | cat >>conftest.$ac_ext <<_ACEOF | |
14362 | /* end confdefs.h. */ | |
14363 | #include <$ac_header> | |
14364 | _ACEOF | |
14365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14367 | ac_status=$? | |
14368 | grep -v '^ *+' conftest.er1 >conftest.err | |
14369 | rm -f conftest.er1 | |
14370 | cat conftest.err >&5 | |
14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14372 | (exit $ac_status); } >/dev/null; then | |
14373 | if test -s conftest.err; then | |
14374 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14376 | else | |
14377 | ac_cpp_err= | |
14378 | fi | |
14379 | else | |
14380 | ac_cpp_err=yes | |
5ee754fc | 14381 | fi |
bec39cab AC |
14382 | if test -z "$ac_cpp_err"; then |
14383 | ac_header_preproc=yes | |
5ee754fc | 14384 | else |
bec39cab AC |
14385 | echo "$as_me: failed program was:" >&5 |
14386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14387 | ||
14388 | ac_header_preproc=no | |
5ee754fc | 14389 | fi |
bec39cab | 14390 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14391 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14392 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14393 | |
bec39cab AC |
14394 | # So? What about this header? |
14395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14396 | yes:no: ) | |
14397 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14398 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14399 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14400 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14401 | ac_header_preproc=yes | |
14402 | ;; | |
14403 | no:yes:* ) | |
14404 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14405 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14406 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14407 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14408 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14409 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14410 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14411 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14413 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14414 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14415 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14416 | ( |
14417 | cat <<\_ASBOX | |
14418 | ## ------------------------------------------ ## | |
14419 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14420 | ## ------------------------------------------ ## | |
14421 | _ASBOX | |
14422 | ) | | |
14423 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14424 | ;; |
14425 | esac | |
b4e70030 JB |
14426 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14427 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14430 | else | |
14431 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14432 | fi |
b4e70030 JB |
14433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14434 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14435 | |
5ee754fc | 14436 | fi |
bec39cab AC |
14437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14438 | cat >>confdefs.h <<_ACEOF | |
14439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14440 | _ACEOF | |
14441 | ||
5ee754fc | 14442 | fi |
bec39cab | 14443 | |
5ee754fc MK |
14444 | done |
14445 | ||
bec39cab AC |
14446 | |
14447 | for ac_header in sys/select.h | |
5ee754fc | 14448 | do |
bec39cab | 14449 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14455 | fi | |
b4e70030 JB |
14456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14458 | else |
14459 | # Is the header compilable? | |
b4e70030 JB |
14460 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14462 | cat >conftest.$ac_ext <<_ACEOF |
14463 | /* confdefs.h. */ | |
14464 | _ACEOF | |
14465 | cat confdefs.h >>conftest.$ac_ext | |
14466 | cat >>conftest.$ac_ext <<_ACEOF | |
14467 | /* end confdefs.h. */ | |
14468 | $ac_includes_default | |
14469 | #include <$ac_header> | |
14470 | _ACEOF | |
14471 | rm -f conftest.$ac_objext | |
14472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14473 | (eval $ac_compile) 2>conftest.er1 | |
14474 | ac_status=$? | |
14475 | grep -v '^ *+' conftest.er1 >conftest.err | |
14476 | rm -f conftest.er1 | |
14477 | cat conftest.err >&5 | |
14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14479 | (exit $ac_status); } && | |
b4e70030 JB |
14480 | { ac_try='test -z "$ac_c_werror_flag" |
14481 | || test ! -s conftest.err' | |
bec39cab AC |
14482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14483 | (eval $ac_try) 2>&5 | |
14484 | ac_status=$? | |
14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14486 | (exit $ac_status); }; } && | |
14487 | { ac_try='test -s conftest.$ac_objext' | |
14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14489 | (eval $ac_try) 2>&5 | |
14490 | ac_status=$? | |
14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14492 | (exit $ac_status); }; }; then | |
14493 | ac_header_compiler=yes | |
14494 | else | |
14495 | echo "$as_me: failed program was:" >&5 | |
14496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14497 | ||
b4e70030 | 14498 | ac_header_compiler=no |
bec39cab AC |
14499 | fi |
14500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14503 | |
14504 | # Is the header present? | |
b4e70030 JB |
14505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14507 | cat >conftest.$ac_ext <<_ACEOF |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | #include <$ac_header> | |
14514 | _ACEOF | |
14515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14517 | ac_status=$? | |
14518 | grep -v '^ *+' conftest.er1 >conftest.err | |
14519 | rm -f conftest.er1 | |
14520 | cat conftest.err >&5 | |
14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14522 | (exit $ac_status); } >/dev/null; then | |
14523 | if test -s conftest.err; then | |
14524 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14526 | else | |
14527 | ac_cpp_err= | |
14528 | fi | |
14529 | else | |
14530 | ac_cpp_err=yes | |
5ee754fc | 14531 | fi |
bec39cab AC |
14532 | if test -z "$ac_cpp_err"; then |
14533 | ac_header_preproc=yes | |
5ee754fc | 14534 | else |
bec39cab AC |
14535 | echo "$as_me: failed program was:" >&5 |
14536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14537 | ||
14538 | ac_header_preproc=no | |
5ee754fc | 14539 | fi |
bec39cab | 14540 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14543 | |
bec39cab AC |
14544 | # So? What about this header? |
14545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14546 | yes:no: ) | |
14547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14551 | ac_header_preproc=yes | |
14552 | ;; | |
14553 | no:yes:* ) | |
14554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14565 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14566 | ( |
14567 | cat <<\_ASBOX | |
14568 | ## ------------------------------------------ ## | |
14569 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14570 | ## ------------------------------------------ ## | |
14571 | _ASBOX | |
14572 | ) | | |
14573 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14574 | ;; |
14575 | esac | |
b4e70030 JB |
14576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14580 | else | |
14581 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14582 | fi |
b4e70030 JB |
14583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14585 | |
5ee754fc | 14586 | fi |
bec39cab AC |
14587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14588 | cat >>confdefs.h <<_ACEOF | |
14589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14590 | _ACEOF | |
14591 | ||
5ee754fc | 14592 | fi |
bec39cab | 14593 | |
5ee754fc MK |
14594 | done |
14595 | ||
bec39cab AC |
14596 | |
14597 | for ac_header in sys/syscall.h | |
5ee754fc | 14598 | do |
bec39cab | 14599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14605 | fi | |
b4e70030 JB |
14606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14607 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14608 | else |
14609 | # Is the header compilable? | |
b4e70030 JB |
14610 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14611 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14612 | cat >conftest.$ac_ext <<_ACEOF |
14613 | /* confdefs.h. */ | |
14614 | _ACEOF | |
14615 | cat confdefs.h >>conftest.$ac_ext | |
14616 | cat >>conftest.$ac_ext <<_ACEOF | |
14617 | /* end confdefs.h. */ | |
14618 | $ac_includes_default | |
14619 | #include <$ac_header> | |
14620 | _ACEOF | |
14621 | rm -f conftest.$ac_objext | |
14622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14623 | (eval $ac_compile) 2>conftest.er1 | |
14624 | ac_status=$? | |
14625 | grep -v '^ *+' conftest.er1 >conftest.err | |
14626 | rm -f conftest.er1 | |
14627 | cat conftest.err >&5 | |
14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14629 | (exit $ac_status); } && | |
b4e70030 JB |
14630 | { ac_try='test -z "$ac_c_werror_flag" |
14631 | || test ! -s conftest.err' | |
bec39cab AC |
14632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14633 | (eval $ac_try) 2>&5 | |
14634 | ac_status=$? | |
14635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14636 | (exit $ac_status); }; } && | |
14637 | { ac_try='test -s conftest.$ac_objext' | |
14638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14639 | (eval $ac_try) 2>&5 | |
14640 | ac_status=$? | |
14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14642 | (exit $ac_status); }; }; then | |
14643 | ac_header_compiler=yes | |
14644 | else | |
14645 | echo "$as_me: failed program was:" >&5 | |
14646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14647 | ||
b4e70030 | 14648 | ac_header_compiler=no |
bec39cab AC |
14649 | fi |
14650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14651 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14652 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14653 | |
14654 | # Is the header present? | |
b4e70030 JB |
14655 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14656 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14657 | cat >conftest.$ac_ext <<_ACEOF |
14658 | /* confdefs.h. */ | |
14659 | _ACEOF | |
14660 | cat confdefs.h >>conftest.$ac_ext | |
14661 | cat >>conftest.$ac_ext <<_ACEOF | |
14662 | /* end confdefs.h. */ | |
14663 | #include <$ac_header> | |
14664 | _ACEOF | |
14665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14667 | ac_status=$? | |
14668 | grep -v '^ *+' conftest.er1 >conftest.err | |
14669 | rm -f conftest.er1 | |
14670 | cat conftest.err >&5 | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); } >/dev/null; then | |
14673 | if test -s conftest.err; then | |
14674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14676 | else | |
14677 | ac_cpp_err= | |
14678 | fi | |
14679 | else | |
14680 | ac_cpp_err=yes | |
5ee754fc | 14681 | fi |
bec39cab AC |
14682 | if test -z "$ac_cpp_err"; then |
14683 | ac_header_preproc=yes | |
5ee754fc | 14684 | else |
bec39cab AC |
14685 | echo "$as_me: failed program was:" >&5 |
14686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14687 | ||
14688 | ac_header_preproc=no | |
5ee754fc | 14689 | fi |
bec39cab | 14690 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14691 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14692 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14693 | |
bec39cab AC |
14694 | # So? What about this header? |
14695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14696 | yes:no: ) | |
14697 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14698 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14699 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14700 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14701 | ac_header_preproc=yes | |
14702 | ;; | |
14703 | no:yes:* ) | |
14704 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14705 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14706 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14707 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14708 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14709 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14710 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14711 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14713 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14714 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14715 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14716 | ( |
14717 | cat <<\_ASBOX | |
14718 | ## ------------------------------------------ ## | |
14719 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14720 | ## ------------------------------------------ ## | |
14721 | _ASBOX | |
14722 | ) | | |
14723 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14724 | ;; |
14725 | esac | |
b4e70030 JB |
14726 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14728 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14730 | else | |
14731 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14732 | fi |
b4e70030 JB |
14733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14735 | |
5ee754fc | 14736 | fi |
bec39cab AC |
14737 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14738 | cat >>confdefs.h <<_ACEOF | |
14739 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14740 | _ACEOF | |
14741 | ||
5ee754fc | 14742 | fi |
bec39cab | 14743 | |
5ee754fc MK |
14744 | done |
14745 | ||
bec39cab AC |
14746 | |
14747 | for ac_header in sys/types.h | |
5ee754fc | 14748 | do |
bec39cab | 14749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14755 | fi | |
b4e70030 JB |
14756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14757 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14758 | else |
14759 | # Is the header compilable? | |
b4e70030 JB |
14760 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14761 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14762 | cat >conftest.$ac_ext <<_ACEOF |
14763 | /* confdefs.h. */ | |
14764 | _ACEOF | |
14765 | cat confdefs.h >>conftest.$ac_ext | |
14766 | cat >>conftest.$ac_ext <<_ACEOF | |
14767 | /* end confdefs.h. */ | |
14768 | $ac_includes_default | |
14769 | #include <$ac_header> | |
14770 | _ACEOF | |
14771 | rm -f conftest.$ac_objext | |
14772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14773 | (eval $ac_compile) 2>conftest.er1 | |
14774 | ac_status=$? | |
14775 | grep -v '^ *+' conftest.er1 >conftest.err | |
14776 | rm -f conftest.er1 | |
14777 | cat conftest.err >&5 | |
14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14779 | (exit $ac_status); } && | |
b4e70030 JB |
14780 | { ac_try='test -z "$ac_c_werror_flag" |
14781 | || test ! -s conftest.err' | |
bec39cab AC |
14782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14783 | (eval $ac_try) 2>&5 | |
14784 | ac_status=$? | |
14785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14786 | (exit $ac_status); }; } && | |
14787 | { ac_try='test -s conftest.$ac_objext' | |
14788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14789 | (eval $ac_try) 2>&5 | |
14790 | ac_status=$? | |
14791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14792 | (exit $ac_status); }; }; then | |
14793 | ac_header_compiler=yes | |
14794 | else | |
14795 | echo "$as_me: failed program was:" >&5 | |
14796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14797 | ||
b4e70030 | 14798 | ac_header_compiler=no |
bec39cab AC |
14799 | fi |
14800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14801 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14802 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14803 | |
14804 | # Is the header present? | |
b4e70030 JB |
14805 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14806 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14807 | cat >conftest.$ac_ext <<_ACEOF |
14808 | /* confdefs.h. */ | |
14809 | _ACEOF | |
14810 | cat confdefs.h >>conftest.$ac_ext | |
14811 | cat >>conftest.$ac_ext <<_ACEOF | |
14812 | /* end confdefs.h. */ | |
14813 | #include <$ac_header> | |
14814 | _ACEOF | |
14815 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14816 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14817 | ac_status=$? | |
14818 | grep -v '^ *+' conftest.er1 >conftest.err | |
14819 | rm -f conftest.er1 | |
14820 | cat conftest.err >&5 | |
14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14822 | (exit $ac_status); } >/dev/null; then | |
14823 | if test -s conftest.err; then | |
14824 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14825 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14826 | else | |
14827 | ac_cpp_err= | |
14828 | fi | |
14829 | else | |
14830 | ac_cpp_err=yes | |
5ee754fc | 14831 | fi |
bec39cab AC |
14832 | if test -z "$ac_cpp_err"; then |
14833 | ac_header_preproc=yes | |
5ee754fc | 14834 | else |
bec39cab AC |
14835 | echo "$as_me: failed program was:" >&5 |
14836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14837 | ||
14838 | ac_header_preproc=no | |
5ee754fc | 14839 | fi |
bec39cab | 14840 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14841 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14842 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14843 | |
bec39cab AC |
14844 | # So? What about this header? |
14845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14846 | yes:no: ) | |
14847 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14848 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14850 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14851 | ac_header_preproc=yes | |
14852 | ;; | |
14853 | no:yes:* ) | |
14854 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14855 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14856 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14857 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14858 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14859 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14860 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14861 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14863 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14864 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14865 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14866 | ( |
14867 | cat <<\_ASBOX | |
14868 | ## ------------------------------------------ ## | |
14869 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14870 | ## ------------------------------------------ ## | |
14871 | _ASBOX | |
14872 | ) | | |
14873 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14874 | ;; |
14875 | esac | |
b4e70030 JB |
14876 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14877 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14880 | else | |
14881 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14882 | fi |
b4e70030 JB |
14883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14884 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14885 | |
5ee754fc | 14886 | fi |
bec39cab AC |
14887 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14888 | cat >>confdefs.h <<_ACEOF | |
14889 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14890 | _ACEOF | |
14891 | ||
5ee754fc | 14892 | fi |
bec39cab | 14893 | |
5ee754fc MK |
14894 | done |
14895 | ||
bec39cab AC |
14896 | |
14897 | for ac_header in sys/user.h | |
5ee754fc | 14898 | do |
bec39cab | 14899 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 14903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14904 | else |
7cb9022a | 14905 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
14906 | /* confdefs.h. */ |
14907 | _ACEOF | |
14908 | cat confdefs.h >>conftest.$ac_ext | |
14909 | cat >>conftest.$ac_ext <<_ACEOF | |
14910 | /* end confdefs.h. */ | |
7cb9022a MK |
14911 | #if HAVE_SYS_PARAM_H |
14912 | # include <sys/param.h> | |
14913 | #endif | |
14914 | ||
14915 | ||
bec39cab AC |
14916 | #include <$ac_header> |
14917 | _ACEOF | |
14918 | rm -f conftest.$ac_objext | |
14919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14920 | (eval $ac_compile) 2>conftest.er1 | |
14921 | ac_status=$? | |
14922 | grep -v '^ *+' conftest.er1 >conftest.err | |
14923 | rm -f conftest.er1 | |
14924 | cat conftest.err >&5 | |
14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14926 | (exit $ac_status); } && | |
b4e70030 JB |
14927 | { ac_try='test -z "$ac_c_werror_flag" |
14928 | || test ! -s conftest.err' | |
bec39cab AC |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; } && | |
14934 | { ac_try='test -s conftest.$ac_objext' | |
14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14936 | (eval $ac_try) 2>&5 | |
14937 | ac_status=$? | |
14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14939 | (exit $ac_status); }; }; then | |
7cb9022a | 14940 | eval "$as_ac_Header=yes" |
bec39cab AC |
14941 | else |
14942 | echo "$as_me: failed program was:" >&5 | |
14943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14944 | ||
b4e70030 | 14945 | eval "$as_ac_Header=no" |
bec39cab AC |
14946 | fi |
14947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 14948 | fi |
b4e70030 JB |
14949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14952 | cat >>confdefs.h <<_ACEOF | |
14953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14954 | _ACEOF | |
14955 | ||
5ee754fc | 14956 | fi |
bec39cab | 14957 | |
5ee754fc MK |
14958 | done |
14959 | ||
bec39cab AC |
14960 | |
14961 | ||
14962 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 14963 | do |
bec39cab | 14964 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14970 | fi | |
b4e70030 JB |
14971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14972 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14973 | else |
14974 | # Is the header compilable? | |
b4e70030 JB |
14975 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14976 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14977 | cat >conftest.$ac_ext <<_ACEOF |
14978 | /* confdefs.h. */ | |
14979 | _ACEOF | |
14980 | cat confdefs.h >>conftest.$ac_ext | |
14981 | cat >>conftest.$ac_ext <<_ACEOF | |
14982 | /* end confdefs.h. */ | |
14983 | $ac_includes_default | |
14984 | #include <$ac_header> | |
14985 | _ACEOF | |
14986 | rm -f conftest.$ac_objext | |
14987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14988 | (eval $ac_compile) 2>conftest.er1 | |
14989 | ac_status=$? | |
14990 | grep -v '^ *+' conftest.er1 >conftest.err | |
14991 | rm -f conftest.er1 | |
14992 | cat conftest.err >&5 | |
14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14994 | (exit $ac_status); } && | |
b4e70030 JB |
14995 | { ac_try='test -z "$ac_c_werror_flag" |
14996 | || test ! -s conftest.err' | |
bec39cab AC |
14997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14998 | (eval $ac_try) 2>&5 | |
14999 | ac_status=$? | |
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15001 | (exit $ac_status); }; } && | |
15002 | { ac_try='test -s conftest.$ac_objext' | |
15003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15004 | (eval $ac_try) 2>&5 | |
15005 | ac_status=$? | |
15006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15007 | (exit $ac_status); }; }; then | |
15008 | ac_header_compiler=yes | |
15009 | else | |
15010 | echo "$as_me: failed program was:" >&5 | |
15011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15012 | ||
b4e70030 | 15013 | ac_header_compiler=no |
bec39cab AC |
15014 | fi |
15015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15016 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15017 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15018 | |
15019 | # Is the header present? | |
b4e70030 JB |
15020 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15021 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15022 | cat >conftest.$ac_ext <<_ACEOF |
15023 | /* confdefs.h. */ | |
15024 | _ACEOF | |
15025 | cat confdefs.h >>conftest.$ac_ext | |
15026 | cat >>conftest.$ac_ext <<_ACEOF | |
15027 | /* end confdefs.h. */ | |
15028 | #include <$ac_header> | |
15029 | _ACEOF | |
15030 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15031 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15032 | ac_status=$? | |
15033 | grep -v '^ *+' conftest.er1 >conftest.err | |
15034 | rm -f conftest.er1 | |
15035 | cat conftest.err >&5 | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); } >/dev/null; then | |
15038 | if test -s conftest.err; then | |
15039 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15040 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15041 | else | |
15042 | ac_cpp_err= | |
15043 | fi | |
15044 | else | |
15045 | ac_cpp_err=yes | |
5ee754fc | 15046 | fi |
bec39cab AC |
15047 | if test -z "$ac_cpp_err"; then |
15048 | ac_header_preproc=yes | |
5ee754fc | 15049 | else |
bec39cab AC |
15050 | echo "$as_me: failed program was:" >&5 |
15051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15052 | ||
15053 | ac_header_preproc=no | |
5ee754fc | 15054 | fi |
bec39cab | 15055 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15056 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15057 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 15058 | |
bec39cab AC |
15059 | # So? What about this header? |
15060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15061 | yes:no: ) | |
15062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15066 | ac_header_preproc=yes | |
15067 | ;; | |
15068 | no:yes:* ) | |
15069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15081 | ( |
15082 | cat <<\_ASBOX | |
15083 | ## ------------------------------------------ ## | |
15084 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15085 | ## ------------------------------------------ ## | |
15086 | _ASBOX | |
15087 | ) | | |
15088 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15089 | ;; |
15090 | esac | |
b4e70030 JB |
15091 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15095 | else | |
15096 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 15097 | fi |
b4e70030 JB |
15098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15100 | |
9608ab8b | 15101 | fi |
bec39cab AC |
15102 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15103 | cat >>confdefs.h <<_ACEOF | |
15104 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15105 | _ACEOF | |
15106 | ||
9608ab8b | 15107 | fi |
bec39cab | 15108 | |
9608ab8b | 15109 | done |
5ee754fc | 15110 | |
bec39cab AC |
15111 | |
15112 | ||
15113 | ||
15114 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 15115 | do |
bec39cab | 15116 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15122 | fi | |
b4e70030 JB |
15123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15125 | else |
15126 | # Is the header compilable? | |
b4e70030 JB |
15127 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15128 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15129 | cat >conftest.$ac_ext <<_ACEOF |
15130 | /* confdefs.h. */ | |
15131 | _ACEOF | |
15132 | cat confdefs.h >>conftest.$ac_ext | |
15133 | cat >>conftest.$ac_ext <<_ACEOF | |
15134 | /* end confdefs.h. */ | |
15135 | $ac_includes_default | |
15136 | #include <$ac_header> | |
15137 | _ACEOF | |
15138 | rm -f conftest.$ac_objext | |
15139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15140 | (eval $ac_compile) 2>conftest.er1 | |
15141 | ac_status=$? | |
15142 | grep -v '^ *+' conftest.er1 >conftest.err | |
15143 | rm -f conftest.er1 | |
15144 | cat conftest.err >&5 | |
15145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15146 | (exit $ac_status); } && | |
b4e70030 JB |
15147 | { ac_try='test -z "$ac_c_werror_flag" |
15148 | || test ! -s conftest.err' | |
bec39cab AC |
15149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15150 | (eval $ac_try) 2>&5 | |
15151 | ac_status=$? | |
15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15153 | (exit $ac_status); }; } && | |
15154 | { ac_try='test -s conftest.$ac_objext' | |
15155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15156 | (eval $ac_try) 2>&5 | |
15157 | ac_status=$? | |
15158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15159 | (exit $ac_status); }; }; then | |
15160 | ac_header_compiler=yes | |
15161 | else | |
15162 | echo "$as_me: failed program was:" >&5 | |
15163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15164 | ||
b4e70030 | 15165 | ac_header_compiler=no |
bec39cab AC |
15166 | fi |
15167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15169 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15170 | |
15171 | # Is the header present? | |
b4e70030 JB |
15172 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15174 | cat >conftest.$ac_ext <<_ACEOF |
15175 | /* confdefs.h. */ | |
15176 | _ACEOF | |
15177 | cat confdefs.h >>conftest.$ac_ext | |
15178 | cat >>conftest.$ac_ext <<_ACEOF | |
15179 | /* end confdefs.h. */ | |
15180 | #include <$ac_header> | |
15181 | _ACEOF | |
15182 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15183 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15184 | ac_status=$? | |
15185 | grep -v '^ *+' conftest.er1 >conftest.err | |
15186 | rm -f conftest.er1 | |
15187 | cat conftest.err >&5 | |
15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15189 | (exit $ac_status); } >/dev/null; then | |
15190 | if test -s conftest.err; then | |
15191 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15193 | else | |
15194 | ac_cpp_err= | |
15195 | fi | |
15196 | else | |
15197 | ac_cpp_err=yes | |
9608ab8b | 15198 | fi |
bec39cab AC |
15199 | if test -z "$ac_cpp_err"; then |
15200 | ac_header_preproc=yes | |
9608ab8b | 15201 | else |
bec39cab AC |
15202 | echo "$as_me: failed program was:" >&5 |
15203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15204 | ||
15205 | ac_header_preproc=no | |
9608ab8b | 15206 | fi |
bec39cab | 15207 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15209 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 15210 | |
bec39cab AC |
15211 | # So? What about this header? |
15212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15213 | yes:no: ) | |
15214 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15215 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15217 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15218 | ac_header_preproc=yes | |
15219 | ;; | |
15220 | no:yes:* ) | |
15221 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15222 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15223 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15224 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15225 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15226 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15227 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15228 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15230 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15231 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15232 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15233 | ( |
15234 | cat <<\_ASBOX | |
15235 | ## ------------------------------------------ ## | |
15236 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15237 | ## ------------------------------------------ ## | |
15238 | _ASBOX | |
15239 | ) | | |
15240 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15241 | ;; |
15242 | esac | |
b4e70030 JB |
15243 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15247 | else | |
15248 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 15249 | fi |
b4e70030 JB |
15250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15252 | |
9608ab8b | 15253 | fi |
bec39cab AC |
15254 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15255 | cat >>confdefs.h <<_ACEOF | |
15256 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15257 | _ACEOF | |
15258 | ||
9608ab8b | 15259 | fi |
bec39cab | 15260 | |
5ee754fc | 15261 | done |
9608ab8b | 15262 | |
bec39cab AC |
15263 | |
15264 | for ac_header in unistd.h | |
78434e59 | 15265 | do |
bec39cab | 15266 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15268 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15269 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15270 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15272 | fi | |
b4e70030 JB |
15273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15274 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15275 | else |
15276 | # Is the header compilable? | |
b4e70030 JB |
15277 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15278 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15279 | cat >conftest.$ac_ext <<_ACEOF |
15280 | /* confdefs.h. */ | |
15281 | _ACEOF | |
15282 | cat confdefs.h >>conftest.$ac_ext | |
15283 | cat >>conftest.$ac_ext <<_ACEOF | |
15284 | /* end confdefs.h. */ | |
15285 | $ac_includes_default | |
15286 | #include <$ac_header> | |
15287 | _ACEOF | |
15288 | rm -f conftest.$ac_objext | |
15289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15290 | (eval $ac_compile) 2>conftest.er1 | |
15291 | ac_status=$? | |
15292 | grep -v '^ *+' conftest.er1 >conftest.err | |
15293 | rm -f conftest.er1 | |
15294 | cat conftest.err >&5 | |
15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15296 | (exit $ac_status); } && | |
b4e70030 JB |
15297 | { ac_try='test -z "$ac_c_werror_flag" |
15298 | || test ! -s conftest.err' | |
bec39cab AC |
15299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15300 | (eval $ac_try) 2>&5 | |
15301 | ac_status=$? | |
15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15303 | (exit $ac_status); }; } && | |
15304 | { ac_try='test -s conftest.$ac_objext' | |
15305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15306 | (eval $ac_try) 2>&5 | |
15307 | ac_status=$? | |
15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15309 | (exit $ac_status); }; }; then | |
15310 | ac_header_compiler=yes | |
15311 | else | |
15312 | echo "$as_me: failed program was:" >&5 | |
15313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15314 | ||
b4e70030 | 15315 | ac_header_compiler=no |
bec39cab AC |
15316 | fi |
15317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15318 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15319 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15320 | |
15321 | # Is the header present? | |
b4e70030 JB |
15322 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15323 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15324 | cat >conftest.$ac_ext <<_ACEOF |
15325 | /* confdefs.h. */ | |
15326 | _ACEOF | |
15327 | cat confdefs.h >>conftest.$ac_ext | |
15328 | cat >>conftest.$ac_ext <<_ACEOF | |
15329 | /* end confdefs.h. */ | |
15330 | #include <$ac_header> | |
15331 | _ACEOF | |
15332 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15333 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15334 | ac_status=$? | |
15335 | grep -v '^ *+' conftest.er1 >conftest.err | |
15336 | rm -f conftest.er1 | |
15337 | cat conftest.err >&5 | |
15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15339 | (exit $ac_status); } >/dev/null; then | |
15340 | if test -s conftest.err; then | |
15341 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15342 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15343 | else | |
15344 | ac_cpp_err= | |
15345 | fi | |
15346 | else | |
15347 | ac_cpp_err=yes | |
78434e59 | 15348 | fi |
bec39cab AC |
15349 | if test -z "$ac_cpp_err"; then |
15350 | ac_header_preproc=yes | |
78434e59 | 15351 | else |
bec39cab AC |
15352 | echo "$as_me: failed program was:" >&5 |
15353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15354 | ||
15355 | ac_header_preproc=no | |
78434e59 | 15356 | fi |
bec39cab | 15357 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15358 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15359 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 15360 | |
bec39cab AC |
15361 | # So? What about this header? |
15362 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15363 | yes:no: ) | |
15364 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15365 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15367 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15368 | ac_header_preproc=yes | |
15369 | ;; | |
15370 | no:yes:* ) | |
15371 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15372 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15373 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15374 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15375 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15376 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15377 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15378 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15380 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15381 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15382 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15383 | ( |
15384 | cat <<\_ASBOX | |
15385 | ## ------------------------------------------ ## | |
15386 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15387 | ## ------------------------------------------ ## | |
15388 | _ASBOX | |
15389 | ) | | |
15390 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15391 | ;; |
15392 | esac | |
b4e70030 JB |
15393 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15397 | else | |
15398 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 15399 | fi |
b4e70030 JB |
15400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15402 | |
086ec9eb | 15403 | fi |
bec39cab AC |
15404 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15405 | cat >>confdefs.h <<_ACEOF | |
15406 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15407 | _ACEOF | |
15408 | ||
086ec9eb | 15409 | fi |
bec39cab | 15410 | |
086ec9eb MK |
15411 | done |
15412 | ||
9608ab8b | 15413 | |
b1d19a62 | 15414 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
15415 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
15416 | # think that we don't have <curses.h> if we're using GCC. | |
15417 | case $host_os in | |
b1d19a62 | 15418 | solaris2.[789]) |
5ee754fc | 15419 | if test "$GCC" = yes; then |
bec39cab AC |
15420 | |
15421 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 15422 | #define _MSE_INT_H 1 |
bec39cab | 15423 | _ACEOF |
5ee754fc MK |
15424 | |
15425 | fi ;; | |
15426 | esac | |
bec39cab AC |
15427 | |
15428 | ||
15429 | ||
15430 | ||
15431 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 15432 | do |
bec39cab | 15433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15439 | fi | |
b4e70030 JB |
15440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15442 | else |
15443 | # Is the header compilable? | |
b4e70030 JB |
15444 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15445 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15446 | cat >conftest.$ac_ext <<_ACEOF |
15447 | /* confdefs.h. */ | |
15448 | _ACEOF | |
15449 | cat confdefs.h >>conftest.$ac_ext | |
15450 | cat >>conftest.$ac_ext <<_ACEOF | |
15451 | /* end confdefs.h. */ | |
15452 | $ac_includes_default | |
15453 | #include <$ac_header> | |
15454 | _ACEOF | |
15455 | rm -f conftest.$ac_objext | |
15456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15457 | (eval $ac_compile) 2>conftest.er1 | |
15458 | ac_status=$? | |
15459 | grep -v '^ *+' conftest.er1 >conftest.err | |
15460 | rm -f conftest.er1 | |
15461 | cat conftest.err >&5 | |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | (exit $ac_status); } && | |
b4e70030 JB |
15464 | { ac_try='test -z "$ac_c_werror_flag" |
15465 | || test ! -s conftest.err' | |
bec39cab AC |
15466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15467 | (eval $ac_try) 2>&5 | |
15468 | ac_status=$? | |
15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15470 | (exit $ac_status); }; } && | |
15471 | { ac_try='test -s conftest.$ac_objext' | |
15472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15473 | (eval $ac_try) 2>&5 | |
15474 | ac_status=$? | |
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15476 | (exit $ac_status); }; }; then | |
15477 | ac_header_compiler=yes | |
15478 | else | |
15479 | echo "$as_me: failed program was:" >&5 | |
15480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15481 | ||
b4e70030 | 15482 | ac_header_compiler=no |
bec39cab AC |
15483 | fi |
15484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15486 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15487 | |
15488 | # Is the header present? | |
b4e70030 JB |
15489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15491 | cat >conftest.$ac_ext <<_ACEOF |
15492 | /* confdefs.h. */ | |
15493 | _ACEOF | |
15494 | cat confdefs.h >>conftest.$ac_ext | |
15495 | cat >>conftest.$ac_ext <<_ACEOF | |
15496 | /* end confdefs.h. */ | |
15497 | #include <$ac_header> | |
15498 | _ACEOF | |
15499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15501 | ac_status=$? | |
15502 | grep -v '^ *+' conftest.er1 >conftest.err | |
15503 | rm -f conftest.er1 | |
15504 | cat conftest.err >&5 | |
15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15506 | (exit $ac_status); } >/dev/null; then | |
15507 | if test -s conftest.err; then | |
15508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15510 | else | |
15511 | ac_cpp_err= | |
15512 | fi | |
15513 | else | |
15514 | ac_cpp_err=yes | |
c906108c | 15515 | fi |
bec39cab AC |
15516 | if test -z "$ac_cpp_err"; then |
15517 | ac_header_preproc=yes | |
15518 | else | |
15519 | echo "$as_me: failed program was:" >&5 | |
15520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15521 | ||
15522 | ac_header_preproc=no | |
c906108c | 15523 | fi |
bec39cab | 15524 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15526 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
15527 | |
15528 | # So? What about this header? | |
15529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15530 | yes:no: ) | |
15531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15534 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15535 | ac_header_preproc=yes | |
15536 | ;; | |
15537 | no:yes:* ) | |
15538 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15539 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15540 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15541 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15542 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15543 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15544 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15545 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15548 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15549 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15550 | ( |
15551 | cat <<\_ASBOX | |
15552 | ## ------------------------------------------ ## | |
15553 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15554 | ## ------------------------------------------ ## | |
15555 | _ASBOX | |
15556 | ) | | |
15557 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15558 | ;; |
15559 | esac | |
b4e70030 JB |
15560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 15564 | else |
bec39cab | 15565 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 15566 | fi |
b4e70030 JB |
15567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15569 | |
15570 | fi | |
15571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15572 | cat >>confdefs.h <<_ACEOF | |
15573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15574 | _ACEOF | |
15575 | ||
15576 | fi | |
15577 | ||
5ee754fc | 15578 | done |
c906108c | 15579 | |
bec39cab | 15580 | |
065a1afc | 15581 | for ac_header in ncurses/term.h |
3b78cdbb | 15582 | do |
bec39cab | 15583 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15585 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15587 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15589 | fi | |
b4e70030 JB |
15590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15592 | else |
15593 | # Is the header compilable? | |
b4e70030 JB |
15594 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15595 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15596 | cat >conftest.$ac_ext <<_ACEOF |
15597 | /* confdefs.h. */ | |
15598 | _ACEOF | |
15599 | cat confdefs.h >>conftest.$ac_ext | |
15600 | cat >>conftest.$ac_ext <<_ACEOF | |
15601 | /* end confdefs.h. */ | |
15602 | $ac_includes_default | |
15603 | #include <$ac_header> | |
15604 | _ACEOF | |
15605 | rm -f conftest.$ac_objext | |
15606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15607 | (eval $ac_compile) 2>conftest.er1 | |
15608 | ac_status=$? | |
15609 | grep -v '^ *+' conftest.er1 >conftest.err | |
15610 | rm -f conftest.er1 | |
15611 | cat conftest.err >&5 | |
15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15613 | (exit $ac_status); } && | |
b4e70030 JB |
15614 | { ac_try='test -z "$ac_c_werror_flag" |
15615 | || test ! -s conftest.err' | |
bec39cab AC |
15616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15617 | (eval $ac_try) 2>&5 | |
15618 | ac_status=$? | |
15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15620 | (exit $ac_status); }; } && | |
15621 | { ac_try='test -s conftest.$ac_objext' | |
15622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15623 | (eval $ac_try) 2>&5 | |
15624 | ac_status=$? | |
15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15626 | (exit $ac_status); }; }; then | |
15627 | ac_header_compiler=yes | |
15628 | else | |
15629 | echo "$as_me: failed program was:" >&5 | |
15630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15631 | ||
b4e70030 | 15632 | ac_header_compiler=no |
bec39cab AC |
15633 | fi |
15634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15635 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15636 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15637 | |
15638 | # Is the header present? | |
b4e70030 JB |
15639 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15640 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15641 | cat >conftest.$ac_ext <<_ACEOF |
15642 | /* confdefs.h. */ | |
15643 | _ACEOF | |
15644 | cat confdefs.h >>conftest.$ac_ext | |
15645 | cat >>conftest.$ac_ext <<_ACEOF | |
15646 | /* end confdefs.h. */ | |
15647 | #include <$ac_header> | |
15648 | _ACEOF | |
15649 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15651 | ac_status=$? | |
15652 | grep -v '^ *+' conftest.er1 >conftest.err | |
15653 | rm -f conftest.er1 | |
15654 | cat conftest.err >&5 | |
15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15656 | (exit $ac_status); } >/dev/null; then | |
15657 | if test -s conftest.err; then | |
15658 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15659 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15660 | else | |
15661 | ac_cpp_err= | |
15662 | fi | |
15663 | else | |
15664 | ac_cpp_err=yes | |
3b78cdbb | 15665 | fi |
bec39cab AC |
15666 | if test -z "$ac_cpp_err"; then |
15667 | ac_header_preproc=yes | |
15668 | else | |
15669 | echo "$as_me: failed program was:" >&5 | |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15671 | ||
15672 | ac_header_preproc=no | |
3b78cdbb | 15673 | fi |
bec39cab | 15674 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15675 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15676 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
15677 | |
15678 | # So? What about this header? | |
15679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15680 | yes:no: ) | |
15681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15685 | ac_header_preproc=yes | |
15686 | ;; | |
15687 | no:yes:* ) | |
15688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15700 | ( |
15701 | cat <<\_ASBOX | |
15702 | ## ------------------------------------------ ## | |
15703 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15704 | ## ------------------------------------------ ## | |
15705 | _ASBOX | |
15706 | ) | | |
15707 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15708 | ;; |
15709 | esac | |
b4e70030 JB |
15710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 15714 | else |
bec39cab AC |
15715 | eval "$as_ac_Header=\$ac_header_preproc" |
15716 | fi | |
b4e70030 JB |
15717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15718 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15719 | |
3b78cdbb | 15720 | fi |
bec39cab AC |
15721 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15722 | cat >>confdefs.h <<_ACEOF | |
15723 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15724 | _ACEOF | |
15725 | ||
15726 | fi | |
15727 | ||
3b78cdbb DA |
15728 | done |
15729 | ||
c906108c | 15730 | |
065a1afc JB |
15731 | for ac_header in term.h |
15732 | do | |
15733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
15737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15738 | else | |
15739 | cat >conftest.$ac_ext <<_ACEOF | |
15740 | /* confdefs.h. */ | |
15741 | _ACEOF | |
15742 | cat confdefs.h >>conftest.$ac_ext | |
15743 | cat >>conftest.$ac_ext <<_ACEOF | |
15744 | /* end confdefs.h. */ | |
15745 | #if HAVE_CURSES_H | |
15746 | # include <curses.h> | |
15747 | #endif | |
15748 | ||
15749 | ||
15750 | #include <$ac_header> | |
15751 | _ACEOF | |
15752 | rm -f conftest.$ac_objext | |
15753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15754 | (eval $ac_compile) 2>conftest.er1 | |
15755 | ac_status=$? | |
15756 | grep -v '^ *+' conftest.er1 >conftest.err | |
15757 | rm -f conftest.er1 | |
15758 | cat conftest.err >&5 | |
15759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15760 | (exit $ac_status); } && | |
b4e70030 JB |
15761 | { ac_try='test -z "$ac_c_werror_flag" |
15762 | || test ! -s conftest.err' | |
065a1afc JB |
15763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15764 | (eval $ac_try) 2>&5 | |
15765 | ac_status=$? | |
15766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15767 | (exit $ac_status); }; } && | |
15768 | { ac_try='test -s conftest.$ac_objext' | |
15769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15770 | (eval $ac_try) 2>&5 | |
15771 | ac_status=$? | |
15772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15773 | (exit $ac_status); }; }; then | |
15774 | eval "$as_ac_Header=yes" | |
15775 | else | |
15776 | echo "$as_me: failed program was:" >&5 | |
15777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15778 | ||
b4e70030 | 15779 | eval "$as_ac_Header=no" |
065a1afc JB |
15780 | fi |
15781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15782 | fi | |
b4e70030 JB |
15783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
15785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15786 | cat >>confdefs.h <<_ACEOF | |
15787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15788 | _ACEOF | |
15789 | ||
15790 | fi | |
15791 | ||
15792 | done | |
15793 | ||
15794 | ||
d542061a UW |
15795 | # Check for HP/UX 64-bit shared library support |
15796 | ||
15797 | for ac_header in elf_hp.h | |
15798 | do | |
15799 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15805 | fi | |
15806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15808 | else | |
15809 | # Is the header compilable? | |
15810 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15811 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15812 | cat >conftest.$ac_ext <<_ACEOF | |
15813 | /* confdefs.h. */ | |
15814 | _ACEOF | |
15815 | cat confdefs.h >>conftest.$ac_ext | |
15816 | cat >>conftest.$ac_ext <<_ACEOF | |
15817 | /* end confdefs.h. */ | |
15818 | $ac_includes_default | |
15819 | #include <$ac_header> | |
15820 | _ACEOF | |
15821 | rm -f conftest.$ac_objext | |
15822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15823 | (eval $ac_compile) 2>conftest.er1 | |
15824 | ac_status=$? | |
15825 | grep -v '^ *+' conftest.er1 >conftest.err | |
15826 | rm -f conftest.er1 | |
15827 | cat conftest.err >&5 | |
15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15829 | (exit $ac_status); } && | |
15830 | { ac_try='test -z "$ac_c_werror_flag" | |
15831 | || test ! -s conftest.err' | |
15832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); }; } && | |
15837 | { ac_try='test -s conftest.$ac_objext' | |
15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15839 | (eval $ac_try) 2>&5 | |
15840 | ac_status=$? | |
15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15842 | (exit $ac_status); }; }; then | |
15843 | ac_header_compiler=yes | |
15844 | else | |
15845 | echo "$as_me: failed program was:" >&5 | |
15846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15847 | ||
15848 | ac_header_compiler=no | |
15849 | fi | |
15850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15851 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15852 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15853 | ||
15854 | # Is the header present? | |
15855 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15857 | cat >conftest.$ac_ext <<_ACEOF | |
15858 | /* confdefs.h. */ | |
15859 | _ACEOF | |
15860 | cat confdefs.h >>conftest.$ac_ext | |
15861 | cat >>conftest.$ac_ext <<_ACEOF | |
15862 | /* end confdefs.h. */ | |
15863 | #include <$ac_header> | |
15864 | _ACEOF | |
15865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15867 | ac_status=$? | |
15868 | grep -v '^ *+' conftest.er1 >conftest.err | |
15869 | rm -f conftest.er1 | |
15870 | cat conftest.err >&5 | |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15872 | (exit $ac_status); } >/dev/null; then | |
15873 | if test -s conftest.err; then | |
15874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15876 | else | |
15877 | ac_cpp_err= | |
15878 | fi | |
15879 | else | |
15880 | ac_cpp_err=yes | |
15881 | fi | |
15882 | if test -z "$ac_cpp_err"; then | |
15883 | ac_header_preproc=yes | |
15884 | else | |
15885 | echo "$as_me: failed program was:" >&5 | |
15886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15887 | ||
15888 | ac_header_preproc=no | |
15889 | fi | |
15890 | rm -f conftest.err conftest.$ac_ext | |
15891 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15892 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15893 | ||
15894 | # So? What about this header? | |
15895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15896 | yes:no: ) | |
15897 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15898 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15900 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15901 | ac_header_preproc=yes | |
15902 | ;; | |
15903 | no:yes:* ) | |
15904 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15905 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15906 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15907 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15908 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15909 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15910 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15911 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15914 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15915 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15916 | ( | |
15917 | cat <<\_ASBOX | |
15918 | ## ------------------------------------------ ## | |
15919 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15920 | ## ------------------------------------------ ## | |
15921 | _ASBOX | |
15922 | ) | | |
15923 | sed "s/^/$as_me: WARNING: /" >&2 | |
15924 | ;; | |
15925 | esac | |
15926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15930 | else | |
15931 | eval "$as_ac_Header=\$ac_header_preproc" | |
15932 | fi | |
15933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15935 | ||
15936 | fi | |
15937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15938 | cat >>confdefs.h <<_ACEOF | |
15939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15940 | _ACEOF | |
15941 | ||
15942 | fi | |
15943 | ||
15944 | done | |
15945 | ||
15946 | ||
5ee754fc MK |
15947 | # FIXME: kettenis/20030102: In most cases we include these |
15948 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
15949 | |
15950 | ||
15951 | for ac_header in ctype.h time.h | |
c906108c | 15952 | do |
bec39cab | 15953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15959 | fi | |
b4e70030 JB |
15960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15961 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15962 | else |
15963 | # Is the header compilable? | |
b4e70030 JB |
15964 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15965 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15966 | cat >conftest.$ac_ext <<_ACEOF |
15967 | /* confdefs.h. */ | |
15968 | _ACEOF | |
15969 | cat confdefs.h >>conftest.$ac_ext | |
15970 | cat >>conftest.$ac_ext <<_ACEOF | |
15971 | /* end confdefs.h. */ | |
15972 | $ac_includes_default | |
15973 | #include <$ac_header> | |
15974 | _ACEOF | |
15975 | rm -f conftest.$ac_objext | |
15976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15977 | (eval $ac_compile) 2>conftest.er1 | |
15978 | ac_status=$? | |
15979 | grep -v '^ *+' conftest.er1 >conftest.err | |
15980 | rm -f conftest.er1 | |
15981 | cat conftest.err >&5 | |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15983 | (exit $ac_status); } && | |
b4e70030 JB |
15984 | { ac_try='test -z "$ac_c_werror_flag" |
15985 | || test ! -s conftest.err' | |
bec39cab AC |
15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15990 | (exit $ac_status); }; } && | |
15991 | { ac_try='test -s conftest.$ac_objext' | |
15992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15993 | (eval $ac_try) 2>&5 | |
15994 | ac_status=$? | |
15995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15996 | (exit $ac_status); }; }; then | |
15997 | ac_header_compiler=yes | |
15998 | else | |
15999 | echo "$as_me: failed program was:" >&5 | |
16000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16001 | ||
b4e70030 | 16002 | ac_header_compiler=no |
bec39cab AC |
16003 | fi |
16004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
16005 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16006 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
16007 | |
16008 | # Is the header present? | |
b4e70030 JB |
16009 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16010 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
16011 | cat >conftest.$ac_ext <<_ACEOF |
16012 | /* confdefs.h. */ | |
16013 | _ACEOF | |
16014 | cat confdefs.h >>conftest.$ac_ext | |
16015 | cat >>conftest.$ac_ext <<_ACEOF | |
16016 | /* end confdefs.h. */ | |
16017 | #include <$ac_header> | |
16018 | _ACEOF | |
16019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16021 | ac_status=$? | |
16022 | grep -v '^ *+' conftest.er1 >conftest.err | |
16023 | rm -f conftest.er1 | |
16024 | cat conftest.err >&5 | |
16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16026 | (exit $ac_status); } >/dev/null; then | |
16027 | if test -s conftest.err; then | |
16028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16029 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16030 | else | |
16031 | ac_cpp_err= | |
16032 | fi | |
16033 | else | |
16034 | ac_cpp_err=yes | |
c906108c | 16035 | fi |
bec39cab AC |
16036 | if test -z "$ac_cpp_err"; then |
16037 | ac_header_preproc=yes | |
16038 | else | |
16039 | echo "$as_me: failed program was:" >&5 | |
16040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16041 | ||
16042 | ac_header_preproc=no | |
c906108c | 16043 | fi |
bec39cab | 16044 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
16045 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16046 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
16047 | |
16048 | # So? What about this header? | |
16049 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16050 | yes:no: ) | |
16051 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16052 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16054 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16055 | ac_header_preproc=yes | |
16056 | ;; | |
16057 | no:yes:* ) | |
16058 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16059 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16060 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16061 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16062 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16063 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16064 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16065 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16067 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16068 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16069 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16070 | ( |
16071 | cat <<\_ASBOX | |
16072 | ## ------------------------------------------ ## | |
16073 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16074 | ## ------------------------------------------ ## | |
16075 | _ASBOX | |
16076 | ) | | |
16077 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
16078 | ;; |
16079 | esac | |
b4e70030 JB |
16080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 16084 | else |
bec39cab AC |
16085 | eval "$as_ac_Header=\$ac_header_preproc" |
16086 | fi | |
b4e70030 JB |
16087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
16089 | |
16090 | fi | |
16091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16092 | cat >>confdefs.h <<_ACEOF | |
16093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16094 | _ACEOF | |
16095 | ||
c906108c | 16096 | fi |
bec39cab | 16097 | |
c906108c SS |
16098 | done |
16099 | ||
5ee754fc | 16100 | |
d5af19ba DJ |
16101 | # ------------------------- # |
16102 | # Checks for declarations. # | |
16103 | # ------------------------- # | |
4e8d927d | 16104 | |
d5af19ba DJ |
16105 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
16106 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
16107 | if test "${ac_cv_have_decl_free+set}" = set; then | |
bec39cab | 16108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 16109 | else |
bec39cab AC |
16110 | cat >conftest.$ac_ext <<_ACEOF |
16111 | /* confdefs.h. */ | |
16112 | _ACEOF | |
16113 | cat confdefs.h >>conftest.$ac_ext | |
16114 | cat >>conftest.$ac_ext <<_ACEOF | |
16115 | /* end confdefs.h. */ | |
d5af19ba | 16116 | $ac_includes_default |
bec39cab AC |
16117 | int |
16118 | main () | |
16119 | { | |
d5af19ba DJ |
16120 | #ifndef free |
16121 | char *p = (char *) free; | |
16122 | #endif | |
16123 | ||
4e8d927d | 16124 | ; |
bec39cab AC |
16125 | return 0; |
16126 | } | |
16127 | _ACEOF | |
16128 | rm -f conftest.$ac_objext | |
16129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16130 | (eval $ac_compile) 2>conftest.er1 | |
16131 | ac_status=$? | |
16132 | grep -v '^ *+' conftest.er1 >conftest.err | |
16133 | rm -f conftest.er1 | |
16134 | cat conftest.err >&5 | |
16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16136 | (exit $ac_status); } && | |
b4e70030 JB |
16137 | { ac_try='test -z "$ac_c_werror_flag" |
16138 | || test ! -s conftest.err' | |
bec39cab AC |
16139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16140 | (eval $ac_try) 2>&5 | |
16141 | ac_status=$? | |
16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16143 | (exit $ac_status); }; } && | |
16144 | { ac_try='test -s conftest.$ac_objext' | |
16145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16146 | (eval $ac_try) 2>&5 | |
16147 | ac_status=$? | |
16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16149 | (exit $ac_status); }; }; then | |
d5af19ba | 16150 | ac_cv_have_decl_free=yes |
40a7debc | 16151 | else |
bec39cab AC |
16152 | echo "$as_me: failed program was:" >&5 |
16153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16154 | ||
d5af19ba | 16155 | ac_cv_have_decl_free=no |
40a7debc | 16156 | fi |
bec39cab | 16157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 16158 | fi |
d5af19ba DJ |
16159 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
16160 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
16161 | if test $ac_cv_have_decl_free = yes; then | |
16162 | ||
16163 | cat >>confdefs.h <<_ACEOF | |
16164 | #define HAVE_DECL_FREE 1 | |
16165 | _ACEOF | |
16166 | ||
16167 | ||
666ec76f | 16168 | else |
d5af19ba DJ |
16169 | cat >>confdefs.h <<_ACEOF |
16170 | #define HAVE_DECL_FREE 0 | |
16171 | _ACEOF | |
16172 | ||
4e8d927d | 16173 | |
d5af19ba DJ |
16174 | fi |
16175 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
16176 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
16177 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
bec39cab AC |
16178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16179 | else | |
16180 | cat >conftest.$ac_ext <<_ACEOF | |
16181 | /* confdefs.h. */ | |
16182 | _ACEOF | |
16183 | cat confdefs.h >>conftest.$ac_ext | |
16184 | cat >>conftest.$ac_ext <<_ACEOF | |
16185 | /* end confdefs.h. */ | |
d5af19ba | 16186 | $ac_includes_default |
666ec76f MK |
16187 | int |
16188 | main () | |
16189 | { | |
d5af19ba DJ |
16190 | #ifndef malloc |
16191 | char *p = (char *) malloc; | |
16192 | #endif | |
16193 | ||
666ec76f MK |
16194 | ; |
16195 | return 0; | |
16196 | } | |
16197 | _ACEOF | |
16198 | rm -f conftest.$ac_objext | |
16199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16200 | (eval $ac_compile) 2>conftest.er1 | |
16201 | ac_status=$? | |
16202 | grep -v '^ *+' conftest.er1 >conftest.err | |
16203 | rm -f conftest.er1 | |
16204 | cat conftest.err >&5 | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); } && | |
b4e70030 JB |
16207 | { ac_try='test -z "$ac_c_werror_flag" |
16208 | || test ! -s conftest.err' | |
666ec76f MK |
16209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16210 | (eval $ac_try) 2>&5 | |
16211 | ac_status=$? | |
16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16213 | (exit $ac_status); }; } && | |
16214 | { ac_try='test -s conftest.$ac_objext' | |
16215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16216 | (eval $ac_try) 2>&5 | |
16217 | ac_status=$? | |
16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16219 | (exit $ac_status); }; }; then | |
d5af19ba | 16220 | ac_cv_have_decl_malloc=yes |
666ec76f MK |
16221 | else |
16222 | echo "$as_me: failed program was:" >&5 | |
16223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16224 | |
d5af19ba | 16225 | ac_cv_have_decl_malloc=no |
a3828db0 MK |
16226 | fi |
16227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16228 | fi | |
d5af19ba DJ |
16229 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
16230 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
16231 | if test $ac_cv_have_decl_malloc = yes; then | |
16232 | ||
16233 | cat >>confdefs.h <<_ACEOF | |
16234 | #define HAVE_DECL_MALLOC 1 | |
16235 | _ACEOF | |
16236 | ||
16237 | ||
a3828db0 | 16238 | else |
d5af19ba DJ |
16239 | cat >>confdefs.h <<_ACEOF |
16240 | #define HAVE_DECL_MALLOC 0 | |
16241 | _ACEOF | |
16242 | ||
4e8d927d | 16243 | |
d5af19ba DJ |
16244 | fi |
16245 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
16246 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
16247 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
a3828db0 MK |
16248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16249 | else | |
16250 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
16251 | /* confdefs.h. */ |
16252 | _ACEOF | |
16253 | cat confdefs.h >>conftest.$ac_ext | |
16254 | cat >>conftest.$ac_ext <<_ACEOF | |
16255 | /* end confdefs.h. */ | |
d5af19ba | 16256 | $ac_includes_default |
bec39cab AC |
16257 | int |
16258 | main () | |
16259 | { | |
d5af19ba DJ |
16260 | #ifndef realloc |
16261 | char *p = (char *) realloc; | |
16262 | #endif | |
16263 | ||
bec39cab AC |
16264 | ; |
16265 | return 0; | |
16266 | } | |
16267 | _ACEOF | |
16268 | rm -f conftest.$ac_objext | |
16269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16270 | (eval $ac_compile) 2>conftest.er1 | |
16271 | ac_status=$? | |
16272 | grep -v '^ *+' conftest.er1 >conftest.err | |
16273 | rm -f conftest.er1 | |
16274 | cat conftest.err >&5 | |
16275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16276 | (exit $ac_status); } && | |
b4e70030 JB |
16277 | { ac_try='test -z "$ac_c_werror_flag" |
16278 | || test ! -s conftest.err' | |
bec39cab AC |
16279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16280 | (eval $ac_try) 2>&5 | |
16281 | ac_status=$? | |
16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16283 | (exit $ac_status); }; } && | |
16284 | { ac_try='test -s conftest.$ac_objext' | |
16285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16286 | (eval $ac_try) 2>&5 | |
16287 | ac_status=$? | |
16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16289 | (exit $ac_status); }; }; then | |
d5af19ba | 16290 | ac_cv_have_decl_realloc=yes |
b9362cc7 | 16291 | else |
bec39cab AC |
16292 | echo "$as_me: failed program was:" >&5 |
16293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16294 | ||
d5af19ba | 16295 | ac_cv_have_decl_realloc=no |
4e8d927d | 16296 | fi |
4e8d927d DJ |
16297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16298 | fi | |
b4e70030 JB |
16299 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
16300 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
16301 | if test $ac_cv_have_decl_realloc = yes; then |
16302 | ||
16303 | cat >>confdefs.h <<_ACEOF | |
16304 | #define HAVE_DECL_REALLOC 1 | |
16305 | _ACEOF | |
16306 | ||
16307 | ||
16308 | else | |
16309 | cat >>confdefs.h <<_ACEOF | |
16310 | #define HAVE_DECL_REALLOC 0 | |
16311 | _ACEOF | |
16312 | ||
16313 | ||
16314 | fi | |
16315 | ||
16316 | ||
b4e70030 JB |
16317 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
16318 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
16319 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
16320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16321 | else | |
16322 | cat >conftest.$ac_ext <<_ACEOF | |
16323 | /* confdefs.h. */ | |
16324 | _ACEOF | |
16325 | cat confdefs.h >>conftest.$ac_ext | |
16326 | cat >>conftest.$ac_ext <<_ACEOF | |
16327 | /* end confdefs.h. */ | |
16328 | $ac_includes_default | |
16329 | int | |
16330 | main () | |
16331 | { | |
16332 | #ifndef strerror | |
16333 | char *p = (char *) strerror; | |
4e8d927d DJ |
16334 | #endif |
16335 | ||
16336 | ; | |
16337 | return 0; | |
16338 | } | |
16339 | _ACEOF | |
16340 | rm -f conftest.$ac_objext | |
16341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16342 | (eval $ac_compile) 2>conftest.er1 | |
16343 | ac_status=$? | |
16344 | grep -v '^ *+' conftest.er1 >conftest.err | |
16345 | rm -f conftest.er1 | |
16346 | cat conftest.err >&5 | |
16347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16348 | (exit $ac_status); } && | |
b4e70030 JB |
16349 | { ac_try='test -z "$ac_c_werror_flag" |
16350 | || test ! -s conftest.err' | |
4e8d927d DJ |
16351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16352 | (eval $ac_try) 2>&5 | |
16353 | ac_status=$? | |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16355 | (exit $ac_status); }; } && | |
16356 | { ac_try='test -s conftest.$ac_objext' | |
16357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16358 | (eval $ac_try) 2>&5 | |
16359 | ac_status=$? | |
16360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16361 | (exit $ac_status); }; }; then | |
16362 | ac_cv_have_decl_strerror=yes | |
16363 | else | |
16364 | echo "$as_me: failed program was:" >&5 | |
16365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16366 | ||
b4e70030 | 16367 | ac_cv_have_decl_strerror=no |
4e8d927d | 16368 | fi |
4e8d927d DJ |
16369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16370 | fi | |
b4e70030 JB |
16371 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
16372 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
16373 | if test $ac_cv_have_decl_strerror = yes; then |
16374 | ||
16375 | cat >>confdefs.h <<_ACEOF | |
16376 | #define HAVE_DECL_STRERROR 1 | |
16377 | _ACEOF | |
16378 | ||
16379 | ||
16380 | else | |
16381 | cat >>confdefs.h <<_ACEOF | |
16382 | #define HAVE_DECL_STRERROR 0 | |
16383 | _ACEOF | |
16384 | ||
16385 | ||
16386 | fi | |
b4e70030 JB |
16387 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
16388 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
16389 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
16390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16391 | else | |
16392 | cat >conftest.$ac_ext <<_ACEOF | |
16393 | /* confdefs.h. */ | |
16394 | _ACEOF | |
16395 | cat confdefs.h >>conftest.$ac_ext | |
16396 | cat >>conftest.$ac_ext <<_ACEOF | |
16397 | /* end confdefs.h. */ | |
16398 | $ac_includes_default | |
16399 | int | |
16400 | main () | |
16401 | { | |
16402 | #ifndef strstr | |
16403 | char *p = (char *) strstr; | |
4e8d927d DJ |
16404 | #endif |
16405 | ||
16406 | ; | |
16407 | return 0; | |
16408 | } | |
16409 | _ACEOF | |
16410 | rm -f conftest.$ac_objext | |
16411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16412 | (eval $ac_compile) 2>conftest.er1 | |
16413 | ac_status=$? | |
16414 | grep -v '^ *+' conftest.er1 >conftest.err | |
16415 | rm -f conftest.er1 | |
16416 | cat conftest.err >&5 | |
16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16418 | (exit $ac_status); } && | |
b4e70030 JB |
16419 | { ac_try='test -z "$ac_c_werror_flag" |
16420 | || test ! -s conftest.err' | |
4e8d927d DJ |
16421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16422 | (eval $ac_try) 2>&5 | |
16423 | ac_status=$? | |
16424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16425 | (exit $ac_status); }; } && | |
16426 | { ac_try='test -s conftest.$ac_objext' | |
16427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16428 | (eval $ac_try) 2>&5 | |
16429 | ac_status=$? | |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16431 | (exit $ac_status); }; }; then | |
16432 | ac_cv_have_decl_strstr=yes | |
16433 | else | |
16434 | echo "$as_me: failed program was:" >&5 | |
16435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16436 | ||
b4e70030 | 16437 | ac_cv_have_decl_strstr=no |
4e8d927d | 16438 | fi |
4e8d927d DJ |
16439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16440 | fi | |
b4e70030 JB |
16441 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
16442 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
16443 | if test $ac_cv_have_decl_strstr = yes; then |
16444 | ||
16445 | cat >>confdefs.h <<_ACEOF | |
16446 | #define HAVE_DECL_STRSTR 1 | |
16447 | _ACEOF | |
16448 | ||
16449 | ||
16450 | else | |
16451 | cat >>confdefs.h <<_ACEOF | |
16452 | #define HAVE_DECL_STRSTR 0 | |
16453 | _ACEOF | |
16454 | ||
16455 | ||
16456 | fi | |
16457 | ||
16458 | ||
b4e70030 JB |
16459 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
16460 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
16461 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
16462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16463 | else | |
16464 | cat >conftest.$ac_ext <<_ACEOF | |
16465 | /* confdefs.h. */ | |
16466 | _ACEOF | |
16467 | cat confdefs.h >>conftest.$ac_ext | |
16468 | cat >>conftest.$ac_ext <<_ACEOF | |
16469 | /* end confdefs.h. */ | |
16470 | $ac_includes_default | |
16471 | int | |
16472 | main () | |
16473 | { | |
16474 | #ifndef getopt | |
16475 | char *p = (char *) getopt; | |
4e8d927d DJ |
16476 | #endif |
16477 | ||
16478 | ; | |
16479 | return 0; | |
16480 | } | |
16481 | _ACEOF | |
16482 | rm -f conftest.$ac_objext | |
16483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16484 | (eval $ac_compile) 2>conftest.er1 | |
16485 | ac_status=$? | |
16486 | grep -v '^ *+' conftest.er1 >conftest.err | |
16487 | rm -f conftest.er1 | |
16488 | cat conftest.err >&5 | |
16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16490 | (exit $ac_status); } && | |
b4e70030 JB |
16491 | { ac_try='test -z "$ac_c_werror_flag" |
16492 | || test ! -s conftest.err' | |
4e8d927d DJ |
16493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16494 | (eval $ac_try) 2>&5 | |
16495 | ac_status=$? | |
16496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16497 | (exit $ac_status); }; } && | |
16498 | { ac_try='test -s conftest.$ac_objext' | |
16499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16500 | (eval $ac_try) 2>&5 | |
16501 | ac_status=$? | |
16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16503 | (exit $ac_status); }; }; then | |
16504 | ac_cv_have_decl_getopt=yes | |
16505 | else | |
16506 | echo "$as_me: failed program was:" >&5 | |
16507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16508 | ||
b4e70030 | 16509 | ac_cv_have_decl_getopt=no |
4e8d927d | 16510 | fi |
4e8d927d DJ |
16511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16512 | fi | |
b4e70030 JB |
16513 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
16514 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
16515 | if test $ac_cv_have_decl_getopt = yes; then |
16516 | ||
16517 | cat >>confdefs.h <<_ACEOF | |
16518 | #define HAVE_DECL_GETOPT 1 | |
16519 | _ACEOF | |
16520 | ||
16521 | ||
16522 | else | |
16523 | cat >>confdefs.h <<_ACEOF | |
16524 | #define HAVE_DECL_GETOPT 0 | |
16525 | _ACEOF | |
16526 | ||
16527 | ||
16528 | fi | |
b4e70030 JB |
16529 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
16530 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
16531 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
16532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16533 | else | |
16534 | cat >conftest.$ac_ext <<_ACEOF | |
16535 | /* confdefs.h. */ | |
16536 | _ACEOF | |
16537 | cat confdefs.h >>conftest.$ac_ext | |
16538 | cat >>conftest.$ac_ext <<_ACEOF | |
16539 | /* end confdefs.h. */ | |
16540 | $ac_includes_default | |
16541 | int | |
16542 | main () | |
16543 | { | |
16544 | #ifndef snprintf | |
16545 | char *p = (char *) snprintf; | |
4e8d927d DJ |
16546 | #endif |
16547 | ||
16548 | ; | |
16549 | return 0; | |
16550 | } | |
16551 | _ACEOF | |
16552 | rm -f conftest.$ac_objext | |
16553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16554 | (eval $ac_compile) 2>conftest.er1 | |
16555 | ac_status=$? | |
16556 | grep -v '^ *+' conftest.er1 >conftest.err | |
16557 | rm -f conftest.er1 | |
16558 | cat conftest.err >&5 | |
16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16560 | (exit $ac_status); } && | |
b4e70030 JB |
16561 | { ac_try='test -z "$ac_c_werror_flag" |
16562 | || test ! -s conftest.err' | |
4e8d927d DJ |
16563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16564 | (eval $ac_try) 2>&5 | |
16565 | ac_status=$? | |
16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16567 | (exit $ac_status); }; } && | |
16568 | { ac_try='test -s conftest.$ac_objext' | |
16569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16570 | (eval $ac_try) 2>&5 | |
16571 | ac_status=$? | |
16572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16573 | (exit $ac_status); }; }; then | |
16574 | ac_cv_have_decl_snprintf=yes | |
16575 | else | |
16576 | echo "$as_me: failed program was:" >&5 | |
16577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16578 | ||
b4e70030 | 16579 | ac_cv_have_decl_snprintf=no |
4e8d927d | 16580 | fi |
4e8d927d DJ |
16581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16582 | fi | |
b4e70030 JB |
16583 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
16584 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
16585 | if test $ac_cv_have_decl_snprintf = yes; then |
16586 | ||
16587 | cat >>confdefs.h <<_ACEOF | |
16588 | #define HAVE_DECL_SNPRINTF 1 | |
16589 | _ACEOF | |
16590 | ||
16591 | ||
16592 | else | |
16593 | cat >>confdefs.h <<_ACEOF | |
16594 | #define HAVE_DECL_SNPRINTF 0 | |
16595 | _ACEOF | |
16596 | ||
16597 | ||
16598 | fi | |
b4e70030 JB |
16599 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
16600 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
16601 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
16602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16603 | else | |
16604 | cat >conftest.$ac_ext <<_ACEOF | |
16605 | /* confdefs.h. */ | |
16606 | _ACEOF | |
16607 | cat confdefs.h >>conftest.$ac_ext | |
16608 | cat >>conftest.$ac_ext <<_ACEOF | |
16609 | /* end confdefs.h. */ | |
16610 | $ac_includes_default | |
16611 | int | |
16612 | main () | |
16613 | { | |
16614 | #ifndef vsnprintf | |
16615 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
16616 | #endif |
16617 | ||
16618 | ; | |
16619 | return 0; | |
16620 | } | |
16621 | _ACEOF | |
16622 | rm -f conftest.$ac_objext | |
16623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16624 | (eval $ac_compile) 2>conftest.er1 | |
16625 | ac_status=$? | |
16626 | grep -v '^ *+' conftest.er1 >conftest.err | |
16627 | rm -f conftest.er1 | |
16628 | cat conftest.err >&5 | |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16630 | (exit $ac_status); } && | |
b4e70030 JB |
16631 | { ac_try='test -z "$ac_c_werror_flag" |
16632 | || test ! -s conftest.err' | |
4e8d927d DJ |
16633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16634 | (eval $ac_try) 2>&5 | |
16635 | ac_status=$? | |
16636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16637 | (exit $ac_status); }; } && | |
16638 | { ac_try='test -s conftest.$ac_objext' | |
16639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16640 | (eval $ac_try) 2>&5 | |
16641 | ac_status=$? | |
16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16643 | (exit $ac_status); }; }; then | |
16644 | ac_cv_have_decl_vsnprintf=yes | |
16645 | else | |
16646 | echo "$as_me: failed program was:" >&5 | |
16647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16648 | ||
b4e70030 | 16649 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 16650 | fi |
4e8d927d DJ |
16651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16652 | fi | |
b4e70030 JB |
16653 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
16654 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
16655 | if test $ac_cv_have_decl_vsnprintf = yes; then |
16656 | ||
16657 | cat >>confdefs.h <<_ACEOF | |
16658 | #define HAVE_DECL_VSNPRINTF 1 | |
16659 | _ACEOF | |
16660 | ||
16661 | ||
16662 | else | |
16663 | cat >>confdefs.h <<_ACEOF | |
16664 | #define HAVE_DECL_VSNPRINTF 0 | |
16665 | _ACEOF | |
16666 | ||
16667 | ||
16668 | fi | |
16669 | ||
16670 | ||
16671 | ||
16672 | # ----------------------- # | |
16673 | # Checks for structures. # | |
16674 | # ----------------------- # | |
16675 | ||
b4e70030 JB |
16676 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
16677 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
16678 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
16679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16680 | else | |
16681 | cat >conftest.$ac_ext <<_ACEOF | |
16682 | /* confdefs.h. */ | |
16683 | _ACEOF | |
16684 | cat confdefs.h >>conftest.$ac_ext | |
16685 | cat >>conftest.$ac_ext <<_ACEOF | |
16686 | /* end confdefs.h. */ | |
16687 | $ac_includes_default | |
16688 | int | |
16689 | main () | |
16690 | { | |
16691 | static struct stat ac_aggr; | |
16692 | if (ac_aggr.st_blocks) | |
16693 | return 0; | |
16694 | ; | |
16695 | return 0; | |
16696 | } | |
16697 | _ACEOF | |
16698 | rm -f conftest.$ac_objext | |
16699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16700 | (eval $ac_compile) 2>conftest.er1 | |
16701 | ac_status=$? | |
16702 | grep -v '^ *+' conftest.er1 >conftest.err | |
16703 | rm -f conftest.er1 | |
16704 | cat conftest.err >&5 | |
16705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16706 | (exit $ac_status); } && | |
b4e70030 JB |
16707 | { ac_try='test -z "$ac_c_werror_flag" |
16708 | || test ! -s conftest.err' | |
4e8d927d DJ |
16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); }; } && | |
16714 | { ac_try='test -s conftest.$ac_objext' | |
16715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16716 | (eval $ac_try) 2>&5 | |
16717 | ac_status=$? | |
16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16719 | (exit $ac_status); }; }; then | |
16720 | ac_cv_member_struct_stat_st_blocks=yes | |
16721 | else | |
16722 | echo "$as_me: failed program was:" >&5 | |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
b4e70030 | 16725 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
16726 | /* confdefs.h. */ |
16727 | _ACEOF | |
16728 | cat confdefs.h >>conftest.$ac_ext | |
16729 | cat >>conftest.$ac_ext <<_ACEOF | |
16730 | /* end confdefs.h. */ | |
16731 | $ac_includes_default | |
16732 | int | |
16733 | main () | |
16734 | { | |
16735 | static struct stat ac_aggr; | |
16736 | if (sizeof ac_aggr.st_blocks) | |
16737 | return 0; | |
16738 | ; | |
16739 | return 0; | |
16740 | } | |
16741 | _ACEOF | |
16742 | rm -f conftest.$ac_objext | |
16743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16744 | (eval $ac_compile) 2>conftest.er1 | |
16745 | ac_status=$? | |
16746 | grep -v '^ *+' conftest.er1 >conftest.err | |
16747 | rm -f conftest.er1 | |
16748 | cat conftest.err >&5 | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); } && | |
b4e70030 JB |
16751 | { ac_try='test -z "$ac_c_werror_flag" |
16752 | || test ! -s conftest.err' | |
4e8d927d DJ |
16753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16754 | (eval $ac_try) 2>&5 | |
16755 | ac_status=$? | |
16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16757 | (exit $ac_status); }; } && | |
16758 | { ac_try='test -s conftest.$ac_objext' | |
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16760 | (eval $ac_try) 2>&5 | |
16761 | ac_status=$? | |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16763 | (exit $ac_status); }; }; then | |
16764 | ac_cv_member_struct_stat_st_blocks=yes | |
16765 | else | |
16766 | echo "$as_me: failed program was:" >&5 | |
16767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16768 | ||
b4e70030 | 16769 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 16770 | fi |
4e8d927d DJ |
16771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16772 | fi | |
4e8d927d DJ |
16773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16774 | fi | |
b4e70030 JB |
16775 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
16776 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
16777 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
16778 | ||
16779 | cat >>confdefs.h <<_ACEOF | |
16780 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
16781 | _ACEOF | |
16782 | ||
16783 | ||
16784 | fi | |
16785 | ||
b4e70030 JB |
16786 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
16787 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
16788 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
16789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16790 | else | |
16791 | cat >conftest.$ac_ext <<_ACEOF | |
16792 | /* confdefs.h. */ | |
16793 | _ACEOF | |
16794 | cat confdefs.h >>conftest.$ac_ext | |
16795 | cat >>conftest.$ac_ext <<_ACEOF | |
16796 | /* end confdefs.h. */ | |
16797 | $ac_includes_default | |
16798 | int | |
16799 | main () | |
16800 | { | |
16801 | static struct stat ac_aggr; | |
16802 | if (ac_aggr.st_blksize) | |
16803 | return 0; | |
16804 | ; | |
16805 | return 0; | |
16806 | } | |
16807 | _ACEOF | |
16808 | rm -f conftest.$ac_objext | |
16809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16810 | (eval $ac_compile) 2>conftest.er1 | |
16811 | ac_status=$? | |
16812 | grep -v '^ *+' conftest.er1 >conftest.err | |
16813 | rm -f conftest.er1 | |
16814 | cat conftest.err >&5 | |
16815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16816 | (exit $ac_status); } && | |
b4e70030 JB |
16817 | { ac_try='test -z "$ac_c_werror_flag" |
16818 | || test ! -s conftest.err' | |
4e8d927d DJ |
16819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16820 | (eval $ac_try) 2>&5 | |
16821 | ac_status=$? | |
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16823 | (exit $ac_status); }; } && | |
16824 | { ac_try='test -s conftest.$ac_objext' | |
16825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16826 | (eval $ac_try) 2>&5 | |
16827 | ac_status=$? | |
16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16829 | (exit $ac_status); }; }; then | |
16830 | ac_cv_member_struct_stat_st_blksize=yes | |
16831 | else | |
16832 | echo "$as_me: failed program was:" >&5 | |
16833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16834 | ||
b4e70030 | 16835 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
16836 | /* confdefs.h. */ |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
16841 | $ac_includes_default | |
16842 | int | |
16843 | main () | |
16844 | { | |
16845 | static struct stat ac_aggr; | |
16846 | if (sizeof ac_aggr.st_blksize) | |
16847 | return 0; | |
16848 | ; | |
16849 | return 0; | |
16850 | } | |
16851 | _ACEOF | |
16852 | rm -f conftest.$ac_objext | |
16853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16854 | (eval $ac_compile) 2>conftest.er1 | |
16855 | ac_status=$? | |
16856 | grep -v '^ *+' conftest.er1 >conftest.err | |
16857 | rm -f conftest.er1 | |
16858 | cat conftest.err >&5 | |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); } && | |
b4e70030 JB |
16861 | { ac_try='test -z "$ac_c_werror_flag" |
16862 | || test ! -s conftest.err' | |
4e8d927d DJ |
16863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16864 | (eval $ac_try) 2>&5 | |
16865 | ac_status=$? | |
16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16867 | (exit $ac_status); }; } && | |
16868 | { ac_try='test -s conftest.$ac_objext' | |
16869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16870 | (eval $ac_try) 2>&5 | |
16871 | ac_status=$? | |
16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16873 | (exit $ac_status); }; }; then | |
16874 | ac_cv_member_struct_stat_st_blksize=yes | |
16875 | else | |
16876 | echo "$as_me: failed program was:" >&5 | |
16877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16878 | ||
b4e70030 | 16879 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 16880 | fi |
4e8d927d DJ |
16881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16882 | fi | |
4e8d927d DJ |
16883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16884 | fi | |
b4e70030 JB |
16885 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
16886 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
16887 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
16888 | ||
16889 | cat >>confdefs.h <<_ACEOF | |
16890 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
16891 | _ACEOF | |
16892 | ||
16893 | ||
16894 | fi | |
16895 | ||
16896 | ||
16897 | # ------------------ # | |
16898 | # Checks for types. # | |
16899 | # ------------------ # | |
16900 | ||
b4e70030 JB |
16901 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
16902 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
16903 | if test "${ac_cv_type_signal+set}" = set; then |
16904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16905 | else | |
16906 | cat >conftest.$ac_ext <<_ACEOF | |
16907 | /* confdefs.h. */ | |
16908 | _ACEOF | |
16909 | cat confdefs.h >>conftest.$ac_ext | |
16910 | cat >>conftest.$ac_ext <<_ACEOF | |
16911 | /* end confdefs.h. */ | |
16912 | #include <sys/types.h> | |
16913 | #include <signal.h> | |
b4e70030 JB |
16914 | #ifdef signal |
16915 | # undef signal | |
16916 | #endif | |
16917 | #ifdef __cplusplus | |
16918 | extern "C" void (*signal (int, void (*)(int)))(int); | |
16919 | #else | |
16920 | void (*signal ()) (); | |
16921 | #endif | |
4e8d927d DJ |
16922 | |
16923 | int | |
16924 | main () | |
16925 | { | |
b4e70030 | 16926 | int i; |
4e8d927d DJ |
16927 | ; |
16928 | return 0; | |
16929 | } | |
16930 | _ACEOF | |
16931 | rm -f conftest.$ac_objext | |
16932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16933 | (eval $ac_compile) 2>conftest.er1 | |
16934 | ac_status=$? | |
16935 | grep -v '^ *+' conftest.er1 >conftest.err | |
16936 | rm -f conftest.er1 | |
16937 | cat conftest.err >&5 | |
16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16939 | (exit $ac_status); } && | |
b4e70030 JB |
16940 | { ac_try='test -z "$ac_c_werror_flag" |
16941 | || test ! -s conftest.err' | |
4e8d927d DJ |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; } && | |
16947 | { ac_try='test -s conftest.$ac_objext' | |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; }; then | |
b4e70030 | 16953 | ac_cv_type_signal=void |
4e8d927d DJ |
16954 | else |
16955 | echo "$as_me: failed program was:" >&5 | |
16956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16957 | ||
b4e70030 | 16958 | ac_cv_type_signal=int |
4e8d927d | 16959 | fi |
4e8d927d DJ |
16960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16961 | fi | |
b4e70030 JB |
16962 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
16963 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
16964 | |
16965 | cat >>confdefs.h <<_ACEOF | |
16966 | #define RETSIGTYPE $ac_cv_type_signal | |
16967 | _ACEOF | |
16968 | ||
16969 | ||
b4e70030 JB |
16970 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
16971 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
16972 | if test "${ac_cv_type_socklen_t+set}" = set; then |
16973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16974 | else | |
16975 | cat >conftest.$ac_ext <<_ACEOF | |
16976 | /* confdefs.h. */ | |
16977 | _ACEOF | |
16978 | cat confdefs.h >>conftest.$ac_ext | |
16979 | cat >>conftest.$ac_ext <<_ACEOF | |
16980 | /* end confdefs.h. */ | |
16981 | #include <sys/types.h> | |
16982 | #include <sys/socket.h> | |
16983 | ||
16984 | ||
4e8d927d DJ |
16985 | int |
16986 | main () | |
16987 | { | |
b4e70030 | 16988 | if ((socklen_t *) 0) |
4e8d927d | 16989 | return 0; |
b4e70030 | 16990 | if (sizeof (socklen_t)) |
4e8d927d DJ |
16991 | return 0; |
16992 | ; | |
16993 | return 0; | |
16994 | } | |
16995 | _ACEOF | |
16996 | rm -f conftest.$ac_objext | |
16997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16998 | (eval $ac_compile) 2>conftest.er1 | |
16999 | ac_status=$? | |
17000 | grep -v '^ *+' conftest.er1 >conftest.err | |
17001 | rm -f conftest.er1 | |
17002 | cat conftest.err >&5 | |
17003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17004 | (exit $ac_status); } && | |
b4e70030 JB |
17005 | { ac_try='test -z "$ac_c_werror_flag" |
17006 | || test ! -s conftest.err' | |
4e8d927d DJ |
17007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17008 | (eval $ac_try) 2>&5 | |
17009 | ac_status=$? | |
17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17011 | (exit $ac_status); }; } && | |
17012 | { ac_try='test -s conftest.$ac_objext' | |
17013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17014 | (eval $ac_try) 2>&5 | |
17015 | ac_status=$? | |
17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17017 | (exit $ac_status); }; }; then | |
17018 | ac_cv_type_socklen_t=yes | |
17019 | else | |
17020 | echo "$as_me: failed program was:" >&5 | |
17021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17022 | ||
b4e70030 | 17023 | ac_cv_type_socklen_t=no |
4e8d927d | 17024 | fi |
4e8d927d DJ |
17025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17026 | fi | |
b4e70030 JB |
17027 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
17028 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
17029 | if test $ac_cv_type_socklen_t = yes; then |
17030 | ||
17031 | cat >>confdefs.h <<_ACEOF | |
17032 | #define HAVE_SOCKLEN_T 1 | |
17033 | _ACEOF | |
17034 | ||
17035 | ||
4e8d927d DJ |
17036 | fi |
17037 | ||
17038 | ||
17039 | # ------------------------------------- # | |
17040 | # Checks for compiler characteristics. # | |
17041 | # ------------------------------------- # | |
17042 | ||
b4e70030 JB |
17043 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
17044 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
17045 | if test "${ac_cv_c_const+set}" = set; then |
17046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17047 | else | |
17048 | cat >conftest.$ac_ext <<_ACEOF | |
17049 | /* confdefs.h. */ | |
17050 | _ACEOF | |
17051 | cat confdefs.h >>conftest.$ac_ext | |
17052 | cat >>conftest.$ac_ext <<_ACEOF | |
17053 | /* end confdefs.h. */ | |
17054 | ||
17055 | int | |
17056 | main () | |
17057 | { | |
17058 | /* FIXME: Include the comments suggested by Paul. */ | |
17059 | #ifndef __cplusplus | |
17060 | /* Ultrix mips cc rejects this. */ | |
17061 | typedef int charset[2]; | |
17062 | const charset x; | |
17063 | /* SunOS 4.1.1 cc rejects this. */ | |
17064 | char const *const *ccp; | |
17065 | char **p; | |
17066 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17067 | struct point {int x, y;}; | |
17068 | static struct point const zero = {0,0}; | |
17069 | /* AIX XL C 1.02.0.0 rejects this. | |
17070 | It does not let you subtract one const X* pointer from another in | |
17071 | an arm of an if-expression whose if-part is not a constant | |
17072 | expression */ | |
17073 | const char *g = "string"; | |
17074 | ccp = &g + (g ? g-g : 0); | |
17075 | /* HPUX 7.0 cc rejects these. */ | |
17076 | ++ccp; | |
17077 | p = (char**) ccp; | |
17078 | ccp = (char const *const *) p; | |
17079 | { /* SCO 3.2v4 cc rejects this. */ | |
17080 | char *t; | |
17081 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17082 | ||
17083 | *t++ = 0; | |
4e8d927d DJ |
17084 | } |
17085 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17086 | int x[] = {25, 17}; | |
17087 | const int *foo = &x[0]; | |
17088 | ++foo; | |
17089 | } | |
17090 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17091 | typedef const int *iptr; | |
17092 | iptr p = 0; | |
17093 | ++p; | |
17094 | } | |
17095 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17096 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17097 | struct s { int j; const int *ap[3]; }; | |
17098 | struct s *b; b->j = 5; | |
17099 | } | |
17100 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17101 | const int foo = 10; | |
4e8d927d | 17102 | } |
4e8d927d DJ |
17103 | #endif |
17104 | ||
17105 | ; | |
17106 | return 0; | |
17107 | } | |
17108 | _ACEOF | |
17109 | rm -f conftest.$ac_objext | |
17110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17111 | (eval $ac_compile) 2>conftest.er1 | |
17112 | ac_status=$? | |
17113 | grep -v '^ *+' conftest.er1 >conftest.err | |
17114 | rm -f conftest.er1 | |
17115 | cat conftest.err >&5 | |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17117 | (exit $ac_status); } && | |
b4e70030 JB |
17118 | { ac_try='test -z "$ac_c_werror_flag" |
17119 | || test ! -s conftest.err' | |
4e8d927d DJ |
17120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17124 | (exit $ac_status); }; } && | |
17125 | { ac_try='test -s conftest.$ac_objext' | |
17126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17127 | (eval $ac_try) 2>&5 | |
17128 | ac_status=$? | |
17129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17130 | (exit $ac_status); }; }; then | |
17131 | ac_cv_c_const=yes | |
17132 | else | |
17133 | echo "$as_me: failed program was:" >&5 | |
17134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17135 | ||
b4e70030 | 17136 | ac_cv_c_const=no |
4e8d927d | 17137 | fi |
4e8d927d DJ |
17138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17139 | fi | |
b4e70030 JB |
17140 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
17141 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
17142 | if test $ac_cv_c_const = no; then |
17143 | ||
17144 | cat >>confdefs.h <<\_ACEOF | |
17145 | #define const | |
17146 | _ACEOF | |
17147 | ||
17148 | fi | |
17149 | ||
b4e70030 JB |
17150 | echo "$as_me:$LINENO: checking for inline" >&5 |
17151 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
17152 | if test "${ac_cv_c_inline+set}" = set; then |
17153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17154 | else | |
17155 | ac_cv_c_inline=no | |
17156 | for ac_kw in inline __inline__ __inline; do | |
17157 | cat >conftest.$ac_ext <<_ACEOF | |
17158 | /* confdefs.h. */ | |
17159 | _ACEOF | |
17160 | cat confdefs.h >>conftest.$ac_ext | |
17161 | cat >>conftest.$ac_ext <<_ACEOF | |
17162 | /* end confdefs.h. */ | |
17163 | #ifndef __cplusplus | |
17164 | typedef int foo_t; | |
17165 | static $ac_kw foo_t static_foo () {return 0; } | |
17166 | $ac_kw foo_t foo () {return 0; } | |
17167 | #endif | |
17168 | ||
17169 | _ACEOF | |
17170 | rm -f conftest.$ac_objext | |
17171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17172 | (eval $ac_compile) 2>conftest.er1 | |
17173 | ac_status=$? | |
17174 | grep -v '^ *+' conftest.er1 >conftest.err | |
17175 | rm -f conftest.er1 | |
17176 | cat conftest.err >&5 | |
17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17178 | (exit $ac_status); } && | |
b4e70030 JB |
17179 | { ac_try='test -z "$ac_c_werror_flag" |
17180 | || test ! -s conftest.err' | |
4e8d927d DJ |
17181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17182 | (eval $ac_try) 2>&5 | |
17183 | ac_status=$? | |
17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17185 | (exit $ac_status); }; } && | |
17186 | { ac_try='test -s conftest.$ac_objext' | |
17187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17188 | (eval $ac_try) 2>&5 | |
17189 | ac_status=$? | |
17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17191 | (exit $ac_status); }; }; then | |
b4e70030 | 17192 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
17193 | else |
17194 | echo "$as_me: failed program was:" >&5 | |
17195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17196 | ||
4e8d927d | 17197 | fi |
4e8d927d | 17198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
17199 | done |
17200 | ||
17201 | fi | |
b4e70030 JB |
17202 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
17203 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 17204 | |
bec39cab | 17205 | |
a3828db0 MK |
17206 | case $ac_cv_c_inline in |
17207 | inline | yes) ;; | |
17208 | *) | |
17209 | case $ac_cv_c_inline in | |
17210 | no) ac_val=;; | |
17211 | *) ac_val=$ac_cv_c_inline;; | |
17212 | esac | |
17213 | cat >>confdefs.h <<_ACEOF | |
17214 | #ifndef __cplusplus | |
17215 | #define inline $ac_val | |
17216 | #endif | |
17217 | _ACEOF | |
bec39cab AC |
17218 | ;; |
17219 | esac | |
bec39cab | 17220 | |
9b913628 TJB |
17221 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
17222 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
17223 | if test "${ac_cv_c_bigendian+set}" = set; then | |
17224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17225 | else | |
17226 | # See if sys/param.h defines the BYTE_ORDER macro. | |
17227 | cat >conftest.$ac_ext <<_ACEOF | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
17233 | #include <sys/types.h> | |
17234 | #include <sys/param.h> | |
17235 | ||
17236 | int | |
17237 | main () | |
17238 | { | |
17239 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
17240 | bogus endian macros | |
17241 | #endif | |
17242 | ||
17243 | ; | |
17244 | return 0; | |
17245 | } | |
17246 | _ACEOF | |
17247 | rm -f conftest.$ac_objext | |
17248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17249 | (eval $ac_compile) 2>conftest.er1 | |
17250 | ac_status=$? | |
17251 | grep -v '^ *+' conftest.er1 >conftest.err | |
17252 | rm -f conftest.er1 | |
17253 | cat conftest.err >&5 | |
17254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17255 | (exit $ac_status); } && | |
17256 | { ac_try='test -z "$ac_c_werror_flag" | |
17257 | || test ! -s conftest.err' | |
17258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17259 | (eval $ac_try) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); }; } && | |
17263 | { ac_try='test -s conftest.$ac_objext' | |
17264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17265 | (eval $ac_try) 2>&5 | |
17266 | ac_status=$? | |
17267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17268 | (exit $ac_status); }; }; then | |
17269 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
17270 | cat >conftest.$ac_ext <<_ACEOF | |
17271 | /* confdefs.h. */ | |
17272 | _ACEOF | |
17273 | cat confdefs.h >>conftest.$ac_ext | |
17274 | cat >>conftest.$ac_ext <<_ACEOF | |
17275 | /* end confdefs.h. */ | |
17276 | #include <sys/types.h> | |
17277 | #include <sys/param.h> | |
17278 | ||
17279 | int | |
17280 | main () | |
17281 | { | |
17282 | #if BYTE_ORDER != BIG_ENDIAN | |
17283 | not big endian | |
17284 | #endif | |
17285 | ||
17286 | ; | |
17287 | return 0; | |
17288 | } | |
17289 | _ACEOF | |
17290 | rm -f conftest.$ac_objext | |
17291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17292 | (eval $ac_compile) 2>conftest.er1 | |
17293 | ac_status=$? | |
17294 | grep -v '^ *+' conftest.er1 >conftest.err | |
17295 | rm -f conftest.er1 | |
17296 | cat conftest.err >&5 | |
17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17298 | (exit $ac_status); } && | |
17299 | { ac_try='test -z "$ac_c_werror_flag" | |
17300 | || test ! -s conftest.err' | |
17301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17302 | (eval $ac_try) 2>&5 | |
17303 | ac_status=$? | |
17304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17305 | (exit $ac_status); }; } && | |
17306 | { ac_try='test -s conftest.$ac_objext' | |
17307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17308 | (eval $ac_try) 2>&5 | |
17309 | ac_status=$? | |
17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17311 | (exit $ac_status); }; }; then | |
17312 | ac_cv_c_bigendian=yes | |
17313 | else | |
17314 | echo "$as_me: failed program was:" >&5 | |
17315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17316 | ||
17317 | ac_cv_c_bigendian=no | |
17318 | fi | |
17319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17320 | else | |
17321 | echo "$as_me: failed program was:" >&5 | |
17322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17323 | ||
17324 | # It does not; compile a test program. | |
17325 | if test "$cross_compiling" = yes; then | |
17326 | # try to guess the endianness by grepping values into an object file | |
17327 | ac_cv_c_bigendian=unknown | |
17328 | cat >conftest.$ac_ext <<_ACEOF | |
17329 | /* confdefs.h. */ | |
17330 | _ACEOF | |
17331 | cat confdefs.h >>conftest.$ac_ext | |
17332 | cat >>conftest.$ac_ext <<_ACEOF | |
17333 | /* end confdefs.h. */ | |
17334 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
17335 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
17336 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
17337 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
17338 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
17339 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
17340 | int | |
17341 | main () | |
17342 | { | |
17343 | _ascii (); _ebcdic (); | |
17344 | ; | |
17345 | return 0; | |
17346 | } | |
17347 | _ACEOF | |
17348 | rm -f conftest.$ac_objext | |
17349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17350 | (eval $ac_compile) 2>conftest.er1 | |
17351 | ac_status=$? | |
17352 | grep -v '^ *+' conftest.er1 >conftest.err | |
17353 | rm -f conftest.er1 | |
17354 | cat conftest.err >&5 | |
17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17356 | (exit $ac_status); } && | |
17357 | { ac_try='test -z "$ac_c_werror_flag" | |
17358 | || test ! -s conftest.err' | |
17359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17360 | (eval $ac_try) 2>&5 | |
17361 | ac_status=$? | |
17362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17363 | (exit $ac_status); }; } && | |
17364 | { ac_try='test -s conftest.$ac_objext' | |
17365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17366 | (eval $ac_try) 2>&5 | |
17367 | ac_status=$? | |
17368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17369 | (exit $ac_status); }; }; then | |
17370 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
17371 | ac_cv_c_bigendian=yes | |
17372 | fi | |
17373 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
17374 | if test "$ac_cv_c_bigendian" = unknown; then | |
17375 | ac_cv_c_bigendian=no | |
17376 | else | |
17377 | # finding both strings is unlikely to happen, but who knows? | |
17378 | ac_cv_c_bigendian=unknown | |
17379 | fi | |
17380 | fi | |
17381 | else | |
17382 | echo "$as_me: failed program was:" >&5 | |
17383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17384 | ||
17385 | fi | |
17386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17387 | else | |
17388 | cat >conftest.$ac_ext <<_ACEOF | |
17389 | /* confdefs.h. */ | |
17390 | _ACEOF | |
17391 | cat confdefs.h >>conftest.$ac_ext | |
17392 | cat >>conftest.$ac_ext <<_ACEOF | |
17393 | /* end confdefs.h. */ | |
17394 | int | |
17395 | main () | |
17396 | { | |
17397 | /* Are we little or big endian? From Harbison&Steele. */ | |
17398 | union | |
17399 | { | |
17400 | long l; | |
17401 | char c[sizeof (long)]; | |
17402 | } u; | |
17403 | u.l = 1; | |
17404 | exit (u.c[sizeof (long) - 1] == 1); | |
17405 | } | |
17406 | _ACEOF | |
17407 | rm -f conftest$ac_exeext | |
17408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17409 | (eval $ac_link) 2>&5 | |
17410 | ac_status=$? | |
17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17414 | (eval $ac_try) 2>&5 | |
17415 | ac_status=$? | |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17417 | (exit $ac_status); }; }; then | |
17418 | ac_cv_c_bigendian=no | |
17419 | else | |
17420 | echo "$as_me: program exited with status $ac_status" >&5 | |
17421 | echo "$as_me: failed program was:" >&5 | |
17422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17423 | ||
17424 | ( exit $ac_status ) | |
17425 | ac_cv_c_bigendian=yes | |
17426 | fi | |
17427 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17428 | fi | |
17429 | fi | |
17430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17431 | fi | |
17432 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
17433 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
17434 | case $ac_cv_c_bigendian in | |
17435 | yes) | |
17436 | ||
17437 | cat >>confdefs.h <<\_ACEOF | |
17438 | #define WORDS_BIGENDIAN 1 | |
17439 | _ACEOF | |
17440 | ;; | |
17441 | no) | |
17442 | ;; | |
17443 | *) | |
17444 | { { echo "$as_me:$LINENO: error: unknown endianness | |
17445 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
17446 | echo "$as_me: error: unknown endianness | |
17447 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
17448 | { (exit 1); exit 1; }; } ;; | |
17449 | esac | |
17450 | ||
74c1b268 | 17451 | |
a3828db0 MK |
17452 | # ------------------------------ # |
17453 | # Checks for library functions. # | |
17454 | # ------------------------------ # | |
bec39cab | 17455 | |
a3828db0 MK |
17456 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
17457 | # for constant arguments. Useless! | |
b4e70030 JB |
17458 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
17459 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 17460 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
17461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17462 | else | |
17463 | cat >conftest.$ac_ext <<_ACEOF | |
17464 | /* confdefs.h. */ | |
17465 | _ACEOF | |
17466 | cat confdefs.h >>conftest.$ac_ext | |
17467 | cat >>conftest.$ac_ext <<_ACEOF | |
17468 | /* end confdefs.h. */ | |
a3828db0 | 17469 | #include <alloca.h> |
bec39cab AC |
17470 | int |
17471 | main () | |
17472 | { | |
a3828db0 | 17473 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
17474 | ; |
17475 | return 0; | |
17476 | } | |
17477 | _ACEOF | |
17478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17480 | (eval $ac_link) 2>conftest.er1 | |
17481 | ac_status=$? | |
17482 | grep -v '^ *+' conftest.er1 >conftest.err | |
17483 | rm -f conftest.er1 | |
17484 | cat conftest.err >&5 | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); } && | |
b4e70030 JB |
17487 | { ac_try='test -z "$ac_c_werror_flag" |
17488 | || test ! -s conftest.err' | |
bec39cab AC |
17489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17490 | (eval $ac_try) 2>&5 | |
17491 | ac_status=$? | |
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17493 | (exit $ac_status); }; } && | |
17494 | { ac_try='test -s conftest$ac_exeext' | |
17495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17496 | (eval $ac_try) 2>&5 | |
17497 | ac_status=$? | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); }; }; then | |
a3828db0 | 17500 | ac_cv_working_alloca_h=yes |
bec39cab AC |
17501 | else |
17502 | echo "$as_me: failed program was:" >&5 | |
17503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17504 | ||
b4e70030 | 17505 | ac_cv_working_alloca_h=no |
bec39cab AC |
17506 | fi |
17507 | rm -f conftest.err conftest.$ac_objext \ | |
17508 | conftest$ac_exeext conftest.$ac_ext | |
17509 | fi | |
b4e70030 JB |
17510 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
17511 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
17512 | if test $ac_cv_working_alloca_h = yes; then |
17513 | ||
17514 | cat >>confdefs.h <<\_ACEOF | |
17515 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 17516 | _ACEOF |
74c1b268 | 17517 | |
74c1b268 AC |
17518 | fi |
17519 | ||
b4e70030 JB |
17520 | echo "$as_me:$LINENO: checking for alloca" >&5 |
17521 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 17522 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 17523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 17524 | else |
bec39cab AC |
17525 | cat >conftest.$ac_ext <<_ACEOF |
17526 | /* confdefs.h. */ | |
17527 | _ACEOF | |
17528 | cat confdefs.h >>conftest.$ac_ext | |
17529 | cat >>conftest.$ac_ext <<_ACEOF | |
17530 | /* end confdefs.h. */ | |
a3828db0 MK |
17531 | #ifdef __GNUC__ |
17532 | # define alloca __builtin_alloca | |
17533 | #else | |
17534 | # ifdef _MSC_VER | |
17535 | # include <malloc.h> | |
17536 | # define alloca _alloca | |
17537 | # else | |
17538 | # if HAVE_ALLOCA_H | |
17539 | # include <alloca.h> | |
17540 | # else | |
17541 | # ifdef _AIX | |
17542 | #pragma alloca | |
17543 | # else | |
17544 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
17545 | char *alloca (); | |
17546 | # endif | |
17547 | # endif | |
17548 | # endif | |
97bf5e38 | 17549 | # endif |
a3828db0 | 17550 | #endif |
97bf5e38 | 17551 | |
bec39cab AC |
17552 | int |
17553 | main () | |
17554 | { | |
a3828db0 | 17555 | char *p = (char *) alloca (1); |
bec39cab AC |
17556 | ; |
17557 | return 0; | |
17558 | } | |
17559 | _ACEOF | |
a3828db0 MK |
17560 | rm -f conftest.$ac_objext conftest$ac_exeext |
17561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17562 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17563 | ac_status=$? |
17564 | grep -v '^ *+' conftest.er1 >conftest.err | |
17565 | rm -f conftest.er1 | |
17566 | cat conftest.err >&5 | |
17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17568 | (exit $ac_status); } && | |
b4e70030 JB |
17569 | { ac_try='test -z "$ac_c_werror_flag" |
17570 | || test ! -s conftest.err' | |
bec39cab AC |
17571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17572 | (eval $ac_try) 2>&5 | |
17573 | ac_status=$? | |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); }; } && | |
a3828db0 | 17576 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17578 | (eval $ac_try) 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); }; }; then | |
a3828db0 | 17582 | ac_cv_func_alloca_works=yes |
0200359f | 17583 | else |
bec39cab AC |
17584 | echo "$as_me: failed program was:" >&5 |
17585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 17586 | |
b4e70030 | 17587 | ac_cv_func_alloca_works=no |
0200359f | 17588 | fi |
a3828db0 MK |
17589 | rm -f conftest.err conftest.$ac_objext \ |
17590 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 17591 | fi |
b4e70030 JB |
17592 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
17593 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 17594 | |
a3828db0 MK |
17595 | if test $ac_cv_func_alloca_works = yes; then |
17596 | ||
17597 | cat >>confdefs.h <<\_ACEOF | |
17598 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
17599 | _ACEOF |
17600 | ||
a3828db0 MK |
17601 | else |
17602 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
17603 | # that cause trouble. Some versions do not even contain alloca or | |
17604 | # contain a buggy version. If you still want to use their alloca, | |
17605 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 17606 | |
b4e70030 | 17607 | ALLOCA=alloca.$ac_objext |
bec39cab | 17608 | |
a3828db0 MK |
17609 | cat >>confdefs.h <<\_ACEOF |
17610 | #define C_ALLOCA 1 | |
17611 | _ACEOF | |
bec39cab | 17612 | |
a3828db0 | 17613 | |
b4e70030 JB |
17614 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
17615 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 17616 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 17617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 17618 | else |
a3828db0 | 17619 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
17620 | /* confdefs.h. */ |
17621 | _ACEOF | |
17622 | cat confdefs.h >>conftest.$ac_ext | |
17623 | cat >>conftest.$ac_ext <<_ACEOF | |
17624 | /* end confdefs.h. */ | |
b4e70030 | 17625 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
17626 | webecray |
17627 | #else | |
17628 | wenotbecray | |
17629 | #endif | |
17630 | ||
17631 | _ACEOF | |
17632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
17633 | $EGREP "webecray" >/dev/null 2>&1; then | |
17634 | ac_cv_os_cray=yes | |
17635 | else | |
17636 | ac_cv_os_cray=no | |
17637 | fi | |
17638 | rm -f conftest* | |
17639 | ||
17640 | fi | |
b4e70030 JB |
17641 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
17642 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
17643 | if test $ac_cv_os_cray = yes; then |
17644 | for ac_func in _getb67 GETB67 getb67; do | |
17645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17650 | else | |
17651 | cat >conftest.$ac_ext <<_ACEOF | |
17652 | /* confdefs.h. */ | |
17653 | _ACEOF | |
17654 | cat confdefs.h >>conftest.$ac_ext | |
17655 | cat >>conftest.$ac_ext <<_ACEOF | |
17656 | /* end confdefs.h. */ | |
17657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17659 | #define $ac_func innocuous_$ac_func | |
17660 | ||
17661 | /* System header to define __stub macros and hopefully few prototypes, | |
17662 | which can conflict with char $ac_func (); below. | |
17663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17664 | <limits.h> exists even on freestanding compilers. */ | |
17665 | ||
17666 | #ifdef __STDC__ | |
17667 | # include <limits.h> | |
17668 | #else | |
17669 | # include <assert.h> | |
17670 | #endif | |
17671 | ||
17672 | #undef $ac_func | |
17673 | ||
b4e70030 | 17674 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17675 | #ifdef __cplusplus |
17676 | extern "C" | |
b4e70030 | 17677 | { |
a3828db0 | 17678 | #endif |
b4e70030 JB |
17679 | /* We use char because int might match the return type of a gcc2 |
17680 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17681 | char $ac_func (); |
17682 | /* The GNU C library defines this for functions which it implements | |
17683 | to always fail with ENOSYS. Some functions are actually named | |
17684 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17686 | choke me |
b4e70030 JB |
17687 | #else |
17688 | char (*f) () = $ac_func; | |
17689 | #endif | |
17690 | #ifdef __cplusplus | |
17691 | } | |
a3828db0 MK |
17692 | #endif |
17693 | ||
17694 | int | |
17695 | main () | |
17696 | { | |
b4e70030 | 17697 | return f != $ac_func; |
a3828db0 MK |
17698 | ; |
17699 | return 0; | |
17700 | } | |
17701 | _ACEOF | |
17702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17704 | (eval $ac_link) 2>conftest.er1 | |
17705 | ac_status=$? | |
17706 | grep -v '^ *+' conftest.er1 >conftest.err | |
17707 | rm -f conftest.er1 | |
17708 | cat conftest.err >&5 | |
17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17710 | (exit $ac_status); } && | |
b4e70030 JB |
17711 | { ac_try='test -z "$ac_c_werror_flag" |
17712 | || test ! -s conftest.err' | |
a3828db0 MK |
17713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17714 | (eval $ac_try) 2>&5 | |
17715 | ac_status=$? | |
17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17717 | (exit $ac_status); }; } && | |
17718 | { ac_try='test -s conftest$ac_exeext' | |
17719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17720 | (eval $ac_try) 2>&5 | |
17721 | ac_status=$? | |
17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17723 | (exit $ac_status); }; }; then | |
17724 | eval "$as_ac_var=yes" | |
17725 | else | |
17726 | echo "$as_me: failed program was:" >&5 | |
17727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17728 | ||
b4e70030 | 17729 | eval "$as_ac_var=no" |
a3828db0 MK |
17730 | fi |
17731 | rm -f conftest.err conftest.$ac_objext \ | |
17732 | conftest$ac_exeext conftest.$ac_ext | |
17733 | fi | |
b4e70030 JB |
17734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17735 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17737 | ||
17738 | cat >>confdefs.h <<_ACEOF | |
17739 | #define CRAY_STACKSEG_END $ac_func | |
17740 | _ACEOF | |
17741 | ||
17742 | break | |
17743 | fi | |
17744 | ||
17745 | done | |
17746 | fi | |
17747 | ||
b4e70030 JB |
17748 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
17749 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
17750 | if test "${ac_cv_c_stack_direction+set}" = set; then |
17751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17752 | else | |
17753 | if test "$cross_compiling" = yes; then | |
17754 | ac_cv_c_stack_direction=0 | |
17755 | else | |
17756 | cat >conftest.$ac_ext <<_ACEOF | |
17757 | /* confdefs.h. */ | |
17758 | _ACEOF | |
17759 | cat confdefs.h >>conftest.$ac_ext | |
17760 | cat >>conftest.$ac_ext <<_ACEOF | |
17761 | /* end confdefs.h. */ | |
17762 | int | |
17763 | find_stack_direction () | |
17764 | { | |
17765 | static char *addr = 0; | |
17766 | auto char dummy; | |
17767 | if (addr == 0) | |
17768 | { | |
17769 | addr = &dummy; | |
17770 | return find_stack_direction (); | |
17771 | } | |
17772 | else | |
17773 | return (&dummy > addr) ? 1 : -1; | |
17774 | } | |
17775 | ||
17776 | int | |
17777 | main () | |
17778 | { | |
b4e70030 | 17779 | exit (find_stack_direction () < 0); |
a3828db0 MK |
17780 | } |
17781 | _ACEOF | |
17782 | rm -f conftest$ac_exeext | |
17783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17784 | (eval $ac_link) 2>&5 | |
17785 | ac_status=$? | |
17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17787 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17789 | (eval $ac_try) 2>&5 | |
17790 | ac_status=$? | |
17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17792 | (exit $ac_status); }; }; then | |
17793 | ac_cv_c_stack_direction=1 | |
17794 | else | |
17795 | echo "$as_me: program exited with status $ac_status" >&5 | |
17796 | echo "$as_me: failed program was:" >&5 | |
17797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17798 | ||
17799 | ( exit $ac_status ) | |
17800 | ac_cv_c_stack_direction=-1 | |
17801 | fi | |
b4e70030 | 17802 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17803 | fi |
17804 | fi | |
b4e70030 JB |
17805 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
17806 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
17807 | |
17808 | cat >>confdefs.h <<_ACEOF | |
17809 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
17810 | _ACEOF | |
17811 | ||
17812 | ||
17813 | fi | |
17814 | ||
17815 | ||
17816 | ||
17817 | for ac_header in stdlib.h unistd.h | |
17818 | do | |
17819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
17820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
17824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17825 | fi | |
b4e70030 JB |
17826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
17828 | else |
17829 | # Is the header compilable? | |
b4e70030 JB |
17830 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17831 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
17832 | cat >conftest.$ac_ext <<_ACEOF |
17833 | /* confdefs.h. */ | |
17834 | _ACEOF | |
17835 | cat confdefs.h >>conftest.$ac_ext | |
17836 | cat >>conftest.$ac_ext <<_ACEOF | |
17837 | /* end confdefs.h. */ | |
17838 | $ac_includes_default | |
17839 | #include <$ac_header> | |
17840 | _ACEOF | |
17841 | rm -f conftest.$ac_objext | |
17842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17843 | (eval $ac_compile) 2>conftest.er1 | |
17844 | ac_status=$? | |
bec39cab AC |
17845 | grep -v '^ *+' conftest.er1 >conftest.err |
17846 | rm -f conftest.er1 | |
17847 | cat conftest.err >&5 | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); } && | |
b4e70030 JB |
17850 | { ac_try='test -z "$ac_c_werror_flag" |
17851 | || test ! -s conftest.err' | |
bec39cab AC |
17852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17853 | (eval $ac_try) 2>&5 | |
17854 | ac_status=$? | |
17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17856 | (exit $ac_status); }; } && | |
17857 | { ac_try='test -s conftest.$ac_objext' | |
17858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17859 | (eval $ac_try) 2>&5 | |
17860 | ac_status=$? | |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17862 | (exit $ac_status); }; }; then | |
17863 | ac_header_compiler=yes | |
17864 | else | |
17865 | echo "$as_me: failed program was:" >&5 | |
17866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17867 | ||
b4e70030 | 17868 | ac_header_compiler=no |
bec39cab AC |
17869 | fi |
17870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
17871 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17872 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
17873 | |
17874 | # Is the header present? | |
b4e70030 JB |
17875 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17876 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
17877 | cat >conftest.$ac_ext <<_ACEOF |
17878 | /* confdefs.h. */ | |
17879 | _ACEOF | |
17880 | cat confdefs.h >>conftest.$ac_ext | |
17881 | cat >>conftest.$ac_ext <<_ACEOF | |
17882 | /* end confdefs.h. */ | |
17883 | #include <$ac_header> | |
17884 | _ACEOF | |
17885 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17886 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17887 | ac_status=$? | |
17888 | grep -v '^ *+' conftest.er1 >conftest.err | |
17889 | rm -f conftest.er1 | |
17890 | cat conftest.err >&5 | |
17891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17892 | (exit $ac_status); } >/dev/null; then | |
17893 | if test -s conftest.err; then | |
17894 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17895 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
17896 | else | |
17897 | ac_cpp_err= | |
17898 | fi | |
17899 | else | |
17900 | ac_cpp_err=yes | |
17901 | fi | |
17902 | if test -z "$ac_cpp_err"; then | |
17903 | ac_header_preproc=yes | |
97bf5e38 | 17904 | else |
bec39cab AC |
17905 | echo "$as_me: failed program was:" >&5 |
17906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17907 | ||
17908 | ac_header_preproc=no | |
72473524 | 17909 | fi |
bec39cab | 17910 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
17911 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17912 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 17913 | |
bec39cab AC |
17914 | # So? What about this header? |
17915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17916 | yes:no: ) | |
17917 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17918 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17920 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17921 | ac_header_preproc=yes | |
17922 | ;; | |
17923 | no:yes:* ) | |
17924 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17925 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17926 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17927 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17928 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17929 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17930 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17931 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17933 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17934 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17935 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
17936 | ( |
17937 | cat <<\_ASBOX | |
17938 | ## ------------------------------------------ ## | |
17939 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17940 | ## ------------------------------------------ ## | |
17941 | _ASBOX | |
17942 | ) | | |
17943 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
17944 | ;; |
17945 | esac | |
b4e70030 JB |
17946 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 17949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 17950 | else |
bec39cab AC |
17951 | eval "$as_ac_Header=\$ac_header_preproc" |
17952 | fi | |
b4e70030 JB |
17953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
17955 | |
17956 | fi | |
17957 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17958 | cat >>confdefs.h <<_ACEOF | |
17959 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17960 | _ACEOF | |
17961 | ||
17962 | fi | |
17963 | ||
17964 | done | |
17965 | ||
17966 | ||
a3828db0 | 17967 | for ac_func in getpagesize |
bec39cab AC |
17968 | do |
17969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17974 | else | |
17975 | cat >conftest.$ac_ext <<_ACEOF | |
17976 | /* confdefs.h. */ | |
17977 | _ACEOF | |
17978 | cat confdefs.h >>conftest.$ac_ext | |
17979 | cat >>conftest.$ac_ext <<_ACEOF | |
17980 | /* end confdefs.h. */ | |
17981 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17982 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17983 | #define $ac_func innocuous_$ac_func | |
17984 | ||
97bf5e38 | 17985 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17986 | which can conflict with char $ac_func (); below. |
17987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17988 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 17989 | |
bec39cab AC |
17990 | #ifdef __STDC__ |
17991 | # include <limits.h> | |
17992 | #else | |
17993 | # include <assert.h> | |
17994 | #endif | |
97bf5e38 | 17995 | |
bec39cab AC |
17996 | #undef $ac_func |
17997 | ||
b4e70030 | 17998 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17999 | #ifdef __cplusplus |
18000 | extern "C" | |
b4e70030 | 18001 | { |
bec39cab | 18002 | #endif |
b4e70030 JB |
18003 | /* We use char because int might match the return type of a gcc2 |
18004 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 18005 | char $ac_func (); |
97bf5e38 MK |
18006 | /* The GNU C library defines this for functions which it implements |
18007 | to always fail with ENOSYS. Some functions are actually named | |
18008 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18009 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 18010 | choke me |
b4e70030 JB |
18011 | #else |
18012 | char (*f) () = $ac_func; | |
18013 | #endif | |
18014 | #ifdef __cplusplus | |
18015 | } | |
97bf5e38 MK |
18016 | #endif |
18017 | ||
bec39cab AC |
18018 | int |
18019 | main () | |
18020 | { | |
b4e70030 | 18021 | return f != $ac_func; |
bec39cab AC |
18022 | ; |
18023 | return 0; | |
18024 | } | |
18025 | _ACEOF | |
18026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18028 | (eval $ac_link) 2>conftest.er1 | |
18029 | ac_status=$? | |
18030 | grep -v '^ *+' conftest.er1 >conftest.err | |
18031 | rm -f conftest.er1 | |
18032 | cat conftest.err >&5 | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); } && | |
b4e70030 JB |
18035 | { ac_try='test -z "$ac_c_werror_flag" |
18036 | || test ! -s conftest.err' | |
bec39cab AC |
18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18038 | (eval $ac_try) 2>&5 | |
18039 | ac_status=$? | |
18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18041 | (exit $ac_status); }; } && | |
18042 | { ac_try='test -s conftest$ac_exeext' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
18048 | eval "$as_ac_var=yes" | |
18049 | else | |
18050 | echo "$as_me: failed program was:" >&5 | |
18051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18052 | ||
b4e70030 | 18053 | eval "$as_ac_var=no" |
bec39cab AC |
18054 | fi |
18055 | rm -f conftest.err conftest.$ac_objext \ | |
18056 | conftest$ac_exeext conftest.$ac_ext | |
18057 | fi | |
b4e70030 JB |
18058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18059 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
18060 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18061 | cat >>confdefs.h <<_ACEOF | |
18062 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18063 | _ACEOF | |
18064 | ||
2b2d558c | 18065 | fi |
bec39cab | 18066 | done |
2b2d558c | 18067 | |
b4e70030 JB |
18068 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
18069 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 18070 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 18071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18072 | else |
bec39cab | 18073 | if test "$cross_compiling" = yes; then |
a3828db0 | 18074 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
18075 | else |
18076 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 18077 | /* confdefs.h. */ |
bec39cab AC |
18078 | _ACEOF |
18079 | cat confdefs.h >>conftest.$ac_ext | |
18080 | cat >>conftest.$ac_ext <<_ACEOF | |
18081 | /* end confdefs.h. */ | |
a3828db0 MK |
18082 | $ac_includes_default |
18083 | /* malloc might have been renamed as rpl_malloc. */ | |
18084 | #undef malloc | |
bec39cab | 18085 | |
a3828db0 MK |
18086 | /* Thanks to Mike Haertel and Jim Avera for this test. |
18087 | Here is a matrix of mmap possibilities: | |
18088 | mmap private not fixed | |
18089 | mmap private fixed at somewhere currently unmapped | |
18090 | mmap private fixed at somewhere already mapped | |
18091 | mmap shared not fixed | |
18092 | mmap shared fixed at somewhere currently unmapped | |
18093 | mmap shared fixed at somewhere already mapped | |
18094 | For private mappings, we should verify that changes cannot be read() | |
18095 | back from the file, nor mmap's back from the file at a different | |
18096 | address. (There have been systems where private was not correctly | |
18097 | implemented like the infamous i386 svr4.0, and systems where the | |
18098 | VM page cache was not coherent with the file system buffer cache | |
18099 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
18100 | For shared mappings, we should conversely verify that changes get | |
18101 | propagated back to all the places they're supposed to be. | |
7dfa765c | 18102 | |
a3828db0 MK |
18103 | Grep wants private fixed already mapped. |
18104 | The main things grep needs to know about mmap are: | |
18105 | * does it exist and is it safe to write into the mmap'd area | |
18106 | * how to use it (BSD variants) */ | |
7dfa765c | 18107 | |
a3828db0 MK |
18108 | #include <fcntl.h> |
18109 | #include <sys/mman.h> | |
7dfa765c | 18110 | |
a3828db0 MK |
18111 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
18112 | char *malloc (); | |
18113 | #endif | |
7dfa765c | 18114 | |
a3828db0 MK |
18115 | /* This mess was copied from the GNU getpagesize.h. */ |
18116 | #if !HAVE_GETPAGESIZE | |
18117 | /* Assume that all systems that can run configure have sys/param.h. */ | |
18118 | # if !HAVE_SYS_PARAM_H | |
18119 | # define HAVE_SYS_PARAM_H 1 | |
18120 | # endif | |
64bb1671 | 18121 | |
a3828db0 MK |
18122 | # ifdef _SC_PAGESIZE |
18123 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
18124 | # else /* no _SC_PAGESIZE */ | |
18125 | # if HAVE_SYS_PARAM_H | |
18126 | # include <sys/param.h> | |
18127 | # ifdef EXEC_PAGESIZE | |
18128 | # define getpagesize() EXEC_PAGESIZE | |
18129 | # else /* no EXEC_PAGESIZE */ | |
18130 | # ifdef NBPG | |
18131 | # define getpagesize() NBPG * CLSIZE | |
18132 | # ifndef CLSIZE | |
18133 | # define CLSIZE 1 | |
18134 | # endif /* no CLSIZE */ | |
18135 | # else /* no NBPG */ | |
18136 | # ifdef NBPC | |
18137 | # define getpagesize() NBPC | |
18138 | # else /* no NBPC */ | |
18139 | # ifdef PAGESIZE | |
18140 | # define getpagesize() PAGESIZE | |
18141 | # endif /* PAGESIZE */ | |
18142 | # endif /* no NBPC */ | |
18143 | # endif /* no NBPG */ | |
18144 | # endif /* no EXEC_PAGESIZE */ | |
18145 | # else /* no HAVE_SYS_PARAM_H */ | |
18146 | # define getpagesize() 8192 /* punt totally */ | |
18147 | # endif /* no HAVE_SYS_PARAM_H */ | |
18148 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 18149 | |
a3828db0 | 18150 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 18151 | |
a3828db0 MK |
18152 | int |
18153 | main () | |
18154 | { | |
18155 | char *data, *data2, *data3; | |
18156 | int i, pagesize; | |
18157 | int fd; | |
97bf5e38 | 18158 | |
a3828db0 MK |
18159 | pagesize = getpagesize (); |
18160 | ||
18161 | /* First, make a file with some known garbage in it. */ | |
18162 | data = (char *) malloc (pagesize); | |
18163 | if (!data) | |
b4e70030 | 18164 | exit (1); |
a3828db0 MK |
18165 | for (i = 0; i < pagesize; ++i) |
18166 | *(data + i) = rand (); | |
18167 | umask (0); | |
18168 | fd = creat ("conftest.mmap", 0600); | |
18169 | if (fd < 0) | |
b4e70030 | 18170 | exit (1); |
a3828db0 | 18171 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 18172 | exit (1); |
a3828db0 MK |
18173 | close (fd); |
18174 | ||
18175 | /* Next, try to mmap the file at a fixed address which already has | |
18176 | something else allocated at it. If we can, also make sure that | |
18177 | we see the same garbage. */ | |
18178 | fd = open ("conftest.mmap", O_RDWR); | |
18179 | if (fd < 0) | |
b4e70030 | 18180 | exit (1); |
a3828db0 MK |
18181 | data2 = (char *) malloc (2 * pagesize); |
18182 | if (!data2) | |
b4e70030 JB |
18183 | exit (1); |
18184 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
18185 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
18186 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 18187 | exit (1); |
a3828db0 MK |
18188 | for (i = 0; i < pagesize; ++i) |
18189 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 18190 | exit (1); |
a3828db0 MK |
18191 | |
18192 | /* Finally, make sure that changes to the mapped area do not | |
18193 | percolate back to the file as seen by read(). (This is a bug on | |
18194 | some variants of i386 svr4.0.) */ | |
18195 | for (i = 0; i < pagesize; ++i) | |
18196 | *(data2 + i) = *(data2 + i) + 1; | |
18197 | data3 = (char *) malloc (pagesize); | |
18198 | if (!data3) | |
b4e70030 | 18199 | exit (1); |
a3828db0 | 18200 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 18201 | exit (1); |
a3828db0 MK |
18202 | for (i = 0; i < pagesize; ++i) |
18203 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 18204 | exit (1); |
a3828db0 | 18205 | close (fd); |
b4e70030 | 18206 | exit (0); |
97bf5e38 | 18207 | } |
bec39cab AC |
18208 | _ACEOF |
18209 | rm -f conftest$ac_exeext | |
18210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18211 | (eval $ac_link) 2>&5 | |
18212 | ac_status=$? | |
18213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18214 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18216 | (eval $ac_try) 2>&5 | |
18217 | ac_status=$? | |
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18219 | (exit $ac_status); }; }; then | |
a3828db0 | 18220 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 18221 | else |
bec39cab AC |
18222 | echo "$as_me: program exited with status $ac_status" >&5 |
18223 | echo "$as_me: failed program was:" >&5 | |
18224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18225 | ||
18226 | ( exit $ac_status ) | |
a3828db0 | 18227 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 18228 | fi |
b4e70030 | 18229 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 18230 | fi |
a3828db0 | 18231 | fi |
b4e70030 JB |
18232 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18233 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 18234 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
18235 | |
18236 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18237 | #define HAVE_MMAP 1 |
bec39cab | 18238 | _ACEOF |
0afdd437 MK |
18239 | |
18240 | fi | |
a3828db0 | 18241 | rm -f conftest.mmap |
0afdd437 | 18242 | |
b4e70030 JB |
18243 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
18244 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 18245 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
18246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18247 | else | |
18248 | cat >conftest.$ac_ext <<_ACEOF | |
18249 | /* confdefs.h. */ | |
18250 | _ACEOF | |
18251 | cat confdefs.h >>conftest.$ac_ext | |
18252 | cat >>conftest.$ac_ext <<_ACEOF | |
18253 | /* end confdefs.h. */ | |
a3828db0 | 18254 | $ac_includes_default |
bec39cab AC |
18255 | int |
18256 | main () | |
18257 | { | |
b4e70030 | 18258 | if ((pid_t *) 0) |
a3828db0 | 18259 | return 0; |
b4e70030 | 18260 | if (sizeof (pid_t)) |
a3828db0 | 18261 | return 0; |
bec39cab AC |
18262 | ; |
18263 | return 0; | |
18264 | } | |
18265 | _ACEOF | |
a3828db0 MK |
18266 | rm -f conftest.$ac_objext |
18267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18268 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
18269 | ac_status=$? |
18270 | grep -v '^ *+' conftest.er1 >conftest.err | |
18271 | rm -f conftest.er1 | |
18272 | cat conftest.err >&5 | |
18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18274 | (exit $ac_status); } && | |
b4e70030 JB |
18275 | { ac_try='test -z "$ac_c_werror_flag" |
18276 | || test ! -s conftest.err' | |
bec39cab AC |
18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18278 | (eval $ac_try) 2>&5 | |
18279 | ac_status=$? | |
18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18281 | (exit $ac_status); }; } && | |
a3828db0 | 18282 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18284 | (eval $ac_try) 2>&5 | |
18285 | ac_status=$? | |
18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18287 | (exit $ac_status); }; }; then | |
a3828db0 | 18288 | ac_cv_type_pid_t=yes |
bec39cab AC |
18289 | else |
18290 | echo "$as_me: failed program was:" >&5 | |
18291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18292 | ||
b4e70030 | 18293 | ac_cv_type_pid_t=no |
bec39cab | 18294 | fi |
a3828db0 | 18295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 18296 | fi |
b4e70030 JB |
18297 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
18298 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
18299 | if test $ac_cv_type_pid_t = yes; then |
18300 | : | |
18301 | else | |
18302 | ||
18303 | cat >>confdefs.h <<_ACEOF | |
18304 | #define pid_t int | |
bec39cab | 18305 | _ACEOF |
7e89e357 | 18306 | |
7e89e357 JT |
18307 | fi |
18308 | ||
bec39cab | 18309 | |
b4e70030 JB |
18310 | |
18311 | for ac_header in unistd.h vfork.h | |
7be570e7 | 18312 | do |
a3828db0 | 18313 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
18314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18315 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 18318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 18319 | fi |
b4e70030 JB |
18320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 18322 | else |
a3828db0 | 18323 | # Is the header compilable? |
b4e70030 JB |
18324 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18325 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 18326 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
18327 | /* confdefs.h. */ |
18328 | _ACEOF | |
18329 | cat confdefs.h >>conftest.$ac_ext | |
18330 | cat >>conftest.$ac_ext <<_ACEOF | |
18331 | /* end confdefs.h. */ | |
a3828db0 MK |
18332 | $ac_includes_default |
18333 | #include <$ac_header> | |
bec39cab | 18334 | _ACEOF |
a3828db0 MK |
18335 | rm -f conftest.$ac_objext |
18336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18337 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
18338 | ac_status=$? |
18339 | grep -v '^ *+' conftest.er1 >conftest.err | |
18340 | rm -f conftest.er1 | |
18341 | cat conftest.err >&5 | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); } && | |
b4e70030 JB |
18344 | { ac_try='test -z "$ac_c_werror_flag" |
18345 | || test ! -s conftest.err' | |
bec39cab AC |
18346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18347 | (eval $ac_try) 2>&5 | |
18348 | ac_status=$? | |
18349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18350 | (exit $ac_status); }; } && | |
a3828db0 | 18351 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
18352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18353 | (eval $ac_try) 2>&5 | |
18354 | ac_status=$? | |
18355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18356 | (exit $ac_status); }; }; then | |
a3828db0 | 18357 | ac_header_compiler=yes |
bec39cab AC |
18358 | else |
18359 | echo "$as_me: failed program was:" >&5 | |
18360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18361 | ||
b4e70030 | 18362 | ac_header_compiler=no |
bec39cab | 18363 | fi |
a3828db0 | 18364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
18365 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18366 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
18367 | |
18368 | # Is the header present? | |
b4e70030 JB |
18369 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18370 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
18371 | cat >conftest.$ac_ext <<_ACEOF |
18372 | /* confdefs.h. */ | |
18373 | _ACEOF | |
18374 | cat confdefs.h >>conftest.$ac_ext | |
18375 | cat >>conftest.$ac_ext <<_ACEOF | |
18376 | /* end confdefs.h. */ | |
18377 | #include <$ac_header> | |
18378 | _ACEOF | |
18379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18381 | ac_status=$? | |
18382 | grep -v '^ *+' conftest.er1 >conftest.err | |
18383 | rm -f conftest.er1 | |
18384 | cat conftest.err >&5 | |
18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18386 | (exit $ac_status); } >/dev/null; then | |
18387 | if test -s conftest.err; then | |
18388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
18390 | else | |
18391 | ac_cpp_err= | |
18392 | fi | |
18393 | else | |
18394 | ac_cpp_err=yes | |
18395 | fi | |
18396 | if test -z "$ac_cpp_err"; then | |
18397 | ac_header_preproc=yes | |
18398 | else | |
18399 | echo "$as_me: failed program was:" >&5 | |
18400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18401 | ||
18402 | ac_header_preproc=no | |
18403 | fi | |
18404 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
18405 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18406 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
18407 | |
18408 | # So? What about this header? | |
18409 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18410 | yes:no: ) | |
18411 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18412 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18414 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18415 | ac_header_preproc=yes | |
18416 | ;; | |
18417 | no:yes:* ) | |
18418 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18419 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18420 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18421 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18422 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18423 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18424 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18425 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18427 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18428 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18429 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
18430 | ( |
18431 | cat <<\_ASBOX | |
18432 | ## ------------------------------------------ ## | |
18433 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18434 | ## ------------------------------------------ ## | |
18435 | _ASBOX | |
18436 | ) | | |
18437 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
18438 | ;; |
18439 | esac | |
b4e70030 JB |
18440 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
18443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18444 | else | |
18445 | eval "$as_ac_Header=\$ac_header_preproc" | |
18446 | fi | |
b4e70030 JB |
18447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 18449 | |
bec39cab | 18450 | fi |
a3828db0 | 18451 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 18452 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18453 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 18454 | _ACEOF |
14abd0fb | 18455 | |
14abd0fb | 18456 | fi |
a3828db0 | 18457 | |
14abd0fb MK |
18458 | done |
18459 | ||
bec39cab | 18460 | |
a3828db0 MK |
18461 | |
18462 | for ac_func in fork vfork | |
14abd0fb | 18463 | do |
bec39cab | 18464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
18465 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18467 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18469 | else | |
18470 | cat >conftest.$ac_ext <<_ACEOF | |
18471 | /* confdefs.h. */ | |
18472 | _ACEOF | |
18473 | cat confdefs.h >>conftest.$ac_ext | |
18474 | cat >>conftest.$ac_ext <<_ACEOF | |
18475 | /* end confdefs.h. */ | |
18476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18478 | #define $ac_func innocuous_$ac_func | |
18479 | ||
14abd0fb | 18480 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18481 | which can conflict with char $ac_func (); below. |
18482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18483 | <limits.h> exists even on freestanding compilers. */ | |
18484 | ||
18485 | #ifdef __STDC__ | |
18486 | # include <limits.h> | |
18487 | #else | |
18488 | # include <assert.h> | |
18489 | #endif | |
14abd0fb | 18490 | |
bec39cab | 18491 | #undef $ac_func |
14abd0fb | 18492 | |
b4e70030 | 18493 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
18494 | #ifdef __cplusplus |
18495 | extern "C" | |
b4e70030 | 18496 | { |
bec39cab | 18497 | #endif |
b4e70030 JB |
18498 | /* We use char because int might match the return type of a gcc2 |
18499 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 18500 | char $ac_func (); |
14abd0fb MK |
18501 | /* The GNU C library defines this for functions which it implements |
18502 | to always fail with ENOSYS. Some functions are actually named | |
18503 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 18505 | choke me |
b4e70030 JB |
18506 | #else |
18507 | char (*f) () = $ac_func; | |
18508 | #endif | |
18509 | #ifdef __cplusplus | |
18510 | } | |
14abd0fb MK |
18511 | #endif |
18512 | ||
bec39cab AC |
18513 | int |
18514 | main () | |
18515 | { | |
b4e70030 | 18516 | return f != $ac_func; |
bec39cab AC |
18517 | ; |
18518 | return 0; | |
18519 | } | |
18520 | _ACEOF | |
18521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18523 | (eval $ac_link) 2>conftest.er1 | |
18524 | ac_status=$? | |
18525 | grep -v '^ *+' conftest.er1 >conftest.err | |
18526 | rm -f conftest.er1 | |
18527 | cat conftest.err >&5 | |
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18529 | (exit $ac_status); } && | |
b4e70030 JB |
18530 | { ac_try='test -z "$ac_c_werror_flag" |
18531 | || test ! -s conftest.err' | |
bec39cab AC |
18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18533 | (eval $ac_try) 2>&5 | |
18534 | ac_status=$? | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); }; } && | |
18537 | { ac_try='test -s conftest$ac_exeext' | |
18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18539 | (eval $ac_try) 2>&5 | |
18540 | ac_status=$? | |
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18542 | (exit $ac_status); }; }; then | |
18543 | eval "$as_ac_var=yes" | |
18544 | else | |
18545 | echo "$as_me: failed program was:" >&5 | |
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18547 | ||
b4e70030 | 18548 | eval "$as_ac_var=no" |
bec39cab AC |
18549 | fi |
18550 | rm -f conftest.err conftest.$ac_objext \ | |
18551 | conftest$ac_exeext conftest.$ac_ext | |
18552 | fi | |
b4e70030 JB |
18553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18554 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
18555 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18556 | cat >>confdefs.h <<_ACEOF | |
18557 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18558 | _ACEOF | |
7be570e7 | 18559 | |
7be570e7 JM |
18560 | fi |
18561 | done | |
18562 | ||
a3828db0 | 18563 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
18564 | echo "$as_me:$LINENO: checking for working fork" >&5 |
18565 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
18566 | if test "${ac_cv_func_fork_works+set}" = set; then |
18567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18568 | else | |
18569 | if test "$cross_compiling" = yes; then | |
18570 | ac_cv_func_fork_works=cross | |
18571 | else | |
18572 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
18573 | /* By Ruediger Kuhlmann. */ |
18574 | #include <sys/types.h> | |
18575 | #if HAVE_UNISTD_H | |
18576 | # include <unistd.h> | |
18577 | #endif | |
18578 | /* Some systems only have a dummy stub for fork() */ | |
18579 | int main () | |
18580 | { | |
18581 | if (fork() < 0) | |
18582 | exit (1); | |
18583 | exit (0); | |
18584 | } | |
a3828db0 MK |
18585 | _ACEOF |
18586 | rm -f conftest$ac_exeext | |
18587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18588 | (eval $ac_link) 2>&5 | |
18589 | ac_status=$? | |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18591 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18593 | (eval $ac_try) 2>&5 | |
18594 | ac_status=$? | |
18595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18596 | (exit $ac_status); }; }; then | |
18597 | ac_cv_func_fork_works=yes | |
18598 | else | |
18599 | echo "$as_me: program exited with status $ac_status" >&5 | |
18600 | echo "$as_me: failed program was:" >&5 | |
18601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 18602 | |
a3828db0 MK |
18603 | ( exit $ac_status ) |
18604 | ac_cv_func_fork_works=no | |
18605 | fi | |
b4e70030 | 18606 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18607 | fi |
18608 | fi | |
b4e70030 JB |
18609 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
18610 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
18611 | |
18612 | else | |
18613 | ac_cv_func_fork_works=$ac_cv_func_fork | |
18614 | fi | |
18615 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18616 | case $host in | |
18617 | *-*-amigaos* | *-*-msdosdjgpp*) | |
18618 | # Override, as these systems have only a dummy fork() stub | |
18619 | ac_cv_func_fork_works=no | |
18620 | ;; | |
18621 | *) | |
18622 | ac_cv_func_fork_works=yes | |
18623 | ;; | |
18624 | esac | |
18625 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
18626 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
18627 | fi | |
18628 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18629 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
18630 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
18631 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 18632 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 18633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18634 | else |
18635 | if test "$cross_compiling" = yes; then | |
18636 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
18637 | else |
18638 | cat >conftest.$ac_ext <<_ACEOF | |
18639 | /* confdefs.h. */ | |
18640 | _ACEOF | |
18641 | cat confdefs.h >>conftest.$ac_ext | |
18642 | cat >>conftest.$ac_ext <<_ACEOF | |
18643 | /* end confdefs.h. */ | |
a3828db0 | 18644 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
18645 | #include <stdio.h> |
18646 | #include <stdlib.h> | |
18647 | #include <sys/types.h> | |
18648 | #include <sys/stat.h> | |
a3828db0 | 18649 | #include <sys/wait.h> |
b4e70030 JB |
18650 | #if HAVE_UNISTD_H |
18651 | # include <unistd.h> | |
18652 | #endif | |
a3828db0 MK |
18653 | #if HAVE_VFORK_H |
18654 | # include <vfork.h> | |
bec39cab | 18655 | #endif |
a3828db0 MK |
18656 | /* On some sparc systems, changes by the child to local and incoming |
18657 | argument registers are propagated back to the parent. The compiler | |
18658 | is told about this with #include <vfork.h>, but some compilers | |
18659 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
18660 | static variable whose address is put into a register that is | |
18661 | clobbered by the vfork. */ | |
18662 | static void | |
bec39cab | 18663 | #ifdef __cplusplus |
a3828db0 MK |
18664 | sparc_address_test (int arg) |
18665 | # else | |
18666 | sparc_address_test (arg) int arg; | |
c906108c | 18667 | #endif |
a3828db0 MK |
18668 | { |
18669 | static pid_t child; | |
18670 | if (!child) { | |
18671 | child = vfork (); | |
18672 | if (child < 0) { | |
18673 | perror ("vfork"); | |
18674 | _exit(2); | |
18675 | } | |
18676 | if (!child) { | |
18677 | arg = getpid(); | |
18678 | write(-1, "", 0); | |
18679 | _exit (arg); | |
18680 | } | |
18681 | } | |
18682 | } | |
97bf5e38 | 18683 | |
bec39cab AC |
18684 | int |
18685 | main () | |
18686 | { | |
a3828db0 MK |
18687 | pid_t parent = getpid (); |
18688 | pid_t child; | |
18689 | ||
18690 | sparc_address_test (0); | |
18691 | ||
18692 | child = vfork (); | |
18693 | ||
18694 | if (child == 0) { | |
18695 | /* Here is another test for sparc vfork register problems. This | |
18696 | test uses lots of local variables, at least as many local | |
18697 | variables as main has allocated so far including compiler | |
18698 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
18699 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
18700 | reuse the register of parent for one of the local variables, | |
18701 | since it will think that parent can't possibly be used any more | |
18702 | in this routine. Assigning to the local variable will thus | |
18703 | munge parent in the parent process. */ | |
18704 | pid_t | |
18705 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
18706 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
18707 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
18708 | use the same hardware register for all 8 local variables. */ | |
18709 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
18710 | || p != p5 || p != p6 || p != p7) | |
18711 | _exit(1); | |
18712 | ||
18713 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
18714 | from child file descriptors. If the child closes a descriptor | |
18715 | before it execs or exits, this munges the parent's descriptor | |
18716 | as well. Test for this by closing stdout in the child. */ | |
18717 | _exit(close(fileno(stdout)) != 0); | |
18718 | } else { | |
18719 | int status; | |
18720 | struct stat st; | |
18721 | ||
18722 | while (wait(&status) != child) | |
18723 | ; | |
b4e70030 | 18724 | exit( |
a3828db0 MK |
18725 | /* Was there some problem with vforking? */ |
18726 | child < 0 | |
18727 | ||
18728 | /* Did the child fail? (This shouldn't happen.) */ | |
18729 | || status | |
18730 | ||
18731 | /* Did the vfork/compiler bug occur? */ | |
18732 | || parent != getpid() | |
18733 | ||
18734 | /* Did the file descriptor bug occur? */ | |
18735 | || fstat(fileno(stdout), &st) != 0 | |
18736 | ); | |
18737 | } | |
bec39cab AC |
18738 | } |
18739 | _ACEOF | |
a3828db0 | 18740 | rm -f conftest$ac_exeext |
bec39cab | 18741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 18742 | (eval $ac_link) 2>&5 |
bec39cab AC |
18743 | ac_status=$? |
18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18745 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18747 | (eval $ac_try) 2>&5 | |
18748 | ac_status=$? | |
18749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18750 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18751 | ac_cv_func_vfork_works=yes |
18752 | else | |
18753 | echo "$as_me: program exited with status $ac_status" >&5 | |
18754 | echo "$as_me: failed program was:" >&5 | |
18755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18756 | ||
18757 | ( exit $ac_status ) | |
18758 | ac_cv_func_vfork_works=no | |
18759 | fi | |
b4e70030 | 18760 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18761 | fi |
18762 | fi | |
b4e70030 JB |
18763 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
18764 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
18765 | |
18766 | fi; | |
18767 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18768 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18769 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
18770 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
18771 | fi | |
18772 | ||
18773 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
18774 | ||
18775 | cat >>confdefs.h <<\_ACEOF | |
18776 | #define HAVE_WORKING_VFORK 1 | |
18777 | _ACEOF | |
18778 | ||
bec39cab | 18779 | else |
bec39cab | 18780 | |
a3828db0 MK |
18781 | cat >>confdefs.h <<\_ACEOF |
18782 | #define vfork fork | |
18783 | _ACEOF | |
18784 | ||
bec39cab | 18785 | fi |
a3828db0 MK |
18786 | if test "x$ac_cv_func_fork_works" = xyes; then |
18787 | ||
18788 | cat >>confdefs.h <<\_ACEOF | |
18789 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 18790 | _ACEOF |
c906108c | 18791 | |
c906108c SS |
18792 | fi |
18793 | ||
bec39cab AC |
18794 | |
18795 | ||
a3828db0 | 18796 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 18797 | do |
bec39cab | 18798 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 18799 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
18800 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
18801 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18803 | else | |
18804 | cat >conftest.$ac_ext <<_ACEOF | |
18805 | /* confdefs.h. */ | |
18806 | _ACEOF | |
18807 | cat confdefs.h >>conftest.$ac_ext | |
18808 | cat >>conftest.$ac_ext <<_ACEOF | |
18809 | /* end confdefs.h. */ | |
18810 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18812 | #define $ac_func innocuous_$ac_func | |
18813 | ||
18814 | /* System header to define __stub macros and hopefully few prototypes, | |
18815 | which can conflict with char $ac_func (); below. | |
18816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18817 | <limits.h> exists even on freestanding compilers. */ | |
18818 | ||
18819 | #ifdef __STDC__ | |
18820 | # include <limits.h> | |
18821 | #else | |
18822 | # include <assert.h> | |
18823 | #endif | |
18824 | ||
18825 | #undef $ac_func | |
18826 | ||
18827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18828 | #ifdef __cplusplus | |
18829 | extern "C" | |
18830 | { | |
18831 | #endif | |
18832 | /* We use char because int might match the return type of a gcc2 | |
18833 | builtin and then its argument prototype would still apply. */ | |
18834 | char $ac_func (); | |
18835 | /* The GNU C library defines this for functions which it implements | |
18836 | to always fail with ENOSYS. Some functions are actually named | |
18837 | something starting with __ and the normal name is an alias. */ | |
18838 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18839 | choke me | |
18840 | #else | |
18841 | char (*f) () = $ac_func; | |
18842 | #endif | |
18843 | #ifdef __cplusplus | |
18844 | } | |
18845 | #endif | |
18846 | ||
18847 | int | |
18848 | main () | |
18849 | { | |
18850 | return f != $ac_func; | |
18851 | ; | |
18852 | return 0; | |
18853 | } | |
18854 | _ACEOF | |
18855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18857 | (eval $ac_link) 2>conftest.er1 | |
18858 | ac_status=$? | |
18859 | grep -v '^ *+' conftest.er1 >conftest.err | |
18860 | rm -f conftest.er1 | |
18861 | cat conftest.err >&5 | |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18863 | (exit $ac_status); } && | |
18864 | { ac_try='test -z "$ac_c_werror_flag" | |
18865 | || test ! -s conftest.err' | |
18866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18867 | (eval $ac_try) 2>&5 | |
18868 | ac_status=$? | |
18869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18870 | (exit $ac_status); }; } && | |
18871 | { ac_try='test -s conftest$ac_exeext' | |
18872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18873 | (eval $ac_try) 2>&5 | |
18874 | ac_status=$? | |
18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18876 | (exit $ac_status); }; }; then | |
18877 | eval "$as_ac_var=yes" | |
18878 | else | |
18879 | echo "$as_me: failed program was:" >&5 | |
18880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18881 | ||
18882 | eval "$as_ac_var=no" | |
18883 | fi | |
18884 | rm -f conftest.err conftest.$ac_objext \ | |
18885 | conftest$ac_exeext conftest.$ac_ext | |
18886 | fi | |
18887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18888 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18889 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18890 | cat >>confdefs.h <<_ACEOF | |
18891 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18892 | _ACEOF | |
18893 | ||
18894 | fi | |
18895 | done | |
18896 | ||
18897 | ||
18898 | for ac_func in getrusage | |
18899 | do | |
18900 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18901 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
18902 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
18903 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18905 | else | |
18906 | cat >conftest.$ac_ext <<_ACEOF | |
18907 | /* confdefs.h. */ | |
18908 | _ACEOF | |
18909 | cat confdefs.h >>conftest.$ac_ext | |
18910 | cat >>conftest.$ac_ext <<_ACEOF | |
18911 | /* end confdefs.h. */ | |
18912 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18914 | #define $ac_func innocuous_$ac_func | |
18915 | ||
d3ea6809 MM |
18916 | /* System header to define __stub macros and hopefully few prototypes, |
18917 | which can conflict with char $ac_func (); below. | |
18918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18919 | <limits.h> exists even on freestanding compilers. */ | |
18920 | ||
18921 | #ifdef __STDC__ | |
18922 | # include <limits.h> | |
18923 | #else | |
18924 | # include <assert.h> | |
18925 | #endif | |
18926 | ||
18927 | #undef $ac_func | |
18928 | ||
b4e70030 | 18929 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
18930 | #ifdef __cplusplus |
18931 | extern "C" | |
b4e70030 | 18932 | { |
d3ea6809 | 18933 | #endif |
b4e70030 JB |
18934 | /* We use char because int might match the return type of a gcc2 |
18935 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
18936 | char $ac_func (); |
18937 | /* The GNU C library defines this for functions which it implements | |
18938 | to always fail with ENOSYS. Some functions are actually named | |
18939 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 18941 | choke me |
b4e70030 JB |
18942 | #else |
18943 | char (*f) () = $ac_func; | |
18944 | #endif | |
18945 | #ifdef __cplusplus | |
18946 | } | |
d3ea6809 MM |
18947 | #endif |
18948 | ||
18949 | int | |
18950 | main () | |
18951 | { | |
b4e70030 | 18952 | return f != $ac_func; |
d3ea6809 MM |
18953 | ; |
18954 | return 0; | |
18955 | } | |
18956 | _ACEOF | |
18957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18959 | (eval $ac_link) 2>conftest.er1 | |
18960 | ac_status=$? | |
18961 | grep -v '^ *+' conftest.er1 >conftest.err | |
18962 | rm -f conftest.er1 | |
18963 | cat conftest.err >&5 | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); } && | |
b4e70030 JB |
18966 | { ac_try='test -z "$ac_c_werror_flag" |
18967 | || test ! -s conftest.err' | |
d3ea6809 MM |
18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18969 | (eval $ac_try) 2>&5 | |
18970 | ac_status=$? | |
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18972 | (exit $ac_status); }; } && | |
18973 | { ac_try='test -s conftest$ac_exeext' | |
18974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18975 | (eval $ac_try) 2>&5 | |
18976 | ac_status=$? | |
18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18978 | (exit $ac_status); }; }; then | |
18979 | eval "$as_ac_var=yes" | |
18980 | else | |
18981 | echo "$as_me: failed program was:" >&5 | |
18982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18983 | ||
b4e70030 | 18984 | eval "$as_ac_var=no" |
d3ea6809 MM |
18985 | fi |
18986 | rm -f conftest.err conftest.$ac_objext \ | |
18987 | conftest$ac_exeext conftest.$ac_ext | |
18988 | fi | |
b4e70030 JB |
18989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18990 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
18991 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18992 | cat >>confdefs.h <<_ACEOF | |
18993 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18994 | _ACEOF | |
18995 | ||
18996 | fi | |
18997 | done | |
18998 | ||
18999 | ||
19000 | ||
19001 | for ac_func in getuid getgid | |
19002 | do | |
19003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
19004 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19006 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
19007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19008 | else | |
19009 | cat >conftest.$ac_ext <<_ACEOF | |
19010 | /* confdefs.h. */ | |
19011 | _ACEOF | |
19012 | cat confdefs.h >>conftest.$ac_ext | |
19013 | cat >>conftest.$ac_ext <<_ACEOF | |
19014 | /* end confdefs.h. */ | |
19015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19017 | #define $ac_func innocuous_$ac_func | |
19018 | ||
97bf5e38 | 19019 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19020 | which can conflict with char $ac_func (); below. |
19021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19022 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 19023 | |
bec39cab AC |
19024 | #ifdef __STDC__ |
19025 | # include <limits.h> | |
19026 | #else | |
19027 | # include <assert.h> | |
19028 | #endif | |
97bf5e38 | 19029 | |
bec39cab AC |
19030 | #undef $ac_func |
19031 | ||
b4e70030 | 19032 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19033 | #ifdef __cplusplus |
19034 | extern "C" | |
b4e70030 | 19035 | { |
bec39cab | 19036 | #endif |
b4e70030 JB |
19037 | /* We use char because int might match the return type of a gcc2 |
19038 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 19039 | char $ac_func (); |
97bf5e38 MK |
19040 | /* The GNU C library defines this for functions which it implements |
19041 | to always fail with ENOSYS. Some functions are actually named | |
19042 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19043 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 19044 | choke me |
b4e70030 JB |
19045 | #else |
19046 | char (*f) () = $ac_func; | |
19047 | #endif | |
19048 | #ifdef __cplusplus | |
19049 | } | |
c906108c | 19050 | #endif |
97bf5e38 | 19051 | |
bec39cab AC |
19052 | int |
19053 | main () | |
19054 | { | |
b4e70030 | 19055 | return f != $ac_func; |
bec39cab AC |
19056 | ; |
19057 | return 0; | |
19058 | } | |
19059 | _ACEOF | |
19060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19062 | (eval $ac_link) 2>conftest.er1 | |
19063 | ac_status=$? | |
19064 | grep -v '^ *+' conftest.er1 >conftest.err | |
19065 | rm -f conftest.er1 | |
19066 | cat conftest.err >&5 | |
19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19068 | (exit $ac_status); } && | |
b4e70030 JB |
19069 | { ac_try='test -z "$ac_c_werror_flag" |
19070 | || test ! -s conftest.err' | |
bec39cab AC |
19071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19072 | (eval $ac_try) 2>&5 | |
19073 | ac_status=$? | |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19075 | (exit $ac_status); }; } && | |
19076 | { ac_try='test -s conftest$ac_exeext' | |
19077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19078 | (eval $ac_try) 2>&5 | |
19079 | ac_status=$? | |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19081 | (exit $ac_status); }; }; then | |
19082 | eval "$as_ac_var=yes" | |
19083 | else | |
19084 | echo "$as_me: failed program was:" >&5 | |
19085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19086 | ||
b4e70030 | 19087 | eval "$as_ac_var=no" |
bec39cab AC |
19088 | fi |
19089 | rm -f conftest.err conftest.$ac_objext \ | |
19090 | conftest$ac_exeext conftest.$ac_ext | |
19091 | fi | |
b4e70030 JB |
19092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19093 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
19094 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19095 | cat >>confdefs.h <<_ACEOF | |
19096 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19097 | _ACEOF | |
c906108c | 19098 | |
c906108c | 19099 | fi |
97bf5e38 | 19100 | done |
c906108c | 19101 | |
bec39cab | 19102 | |
a3828db0 | 19103 | for ac_func in poll |
97bf5e38 | 19104 | do |
bec39cab | 19105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
19106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19108 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19110 | else | |
19111 | cat >conftest.$ac_ext <<_ACEOF | |
19112 | /* confdefs.h. */ | |
19113 | _ACEOF | |
19114 | cat confdefs.h >>conftest.$ac_ext | |
19115 | cat >>conftest.$ac_ext <<_ACEOF | |
19116 | /* end confdefs.h. */ | |
19117 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19118 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19119 | #define $ac_func innocuous_$ac_func | |
19120 | ||
97bf5e38 | 19121 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19122 | which can conflict with char $ac_func (); below. |
19123 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19124 | <limits.h> exists even on freestanding compilers. */ | |
19125 | ||
19126 | #ifdef __STDC__ | |
19127 | # include <limits.h> | |
19128 | #else | |
19129 | # include <assert.h> | |
19130 | #endif | |
c906108c | 19131 | |
bec39cab | 19132 | #undef $ac_func |
97bf5e38 | 19133 | |
b4e70030 | 19134 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19135 | #ifdef __cplusplus |
19136 | extern "C" | |
b4e70030 | 19137 | { |
bec39cab | 19138 | #endif |
b4e70030 JB |
19139 | /* We use char because int might match the return type of a gcc2 |
19140 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 19141 | char $ac_func (); |
97bf5e38 MK |
19142 | /* The GNU C library defines this for functions which it implements |
19143 | to always fail with ENOSYS. Some functions are actually named | |
19144 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 19146 | choke me |
b4e70030 JB |
19147 | #else |
19148 | char (*f) () = $ac_func; | |
19149 | #endif | |
19150 | #ifdef __cplusplus | |
19151 | } | |
c906108c | 19152 | #endif |
97bf5e38 | 19153 | |
bec39cab AC |
19154 | int |
19155 | main () | |
19156 | { | |
b4e70030 | 19157 | return f != $ac_func; |
bec39cab AC |
19158 | ; |
19159 | return 0; | |
19160 | } | |
19161 | _ACEOF | |
19162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19164 | (eval $ac_link) 2>conftest.er1 | |
19165 | ac_status=$? | |
19166 | grep -v '^ *+' conftest.er1 >conftest.err | |
19167 | rm -f conftest.er1 | |
19168 | cat conftest.err >&5 | |
19169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19170 | (exit $ac_status); } && | |
b4e70030 JB |
19171 | { ac_try='test -z "$ac_c_werror_flag" |
19172 | || test ! -s conftest.err' | |
bec39cab AC |
19173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19174 | (eval $ac_try) 2>&5 | |
19175 | ac_status=$? | |
19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19177 | (exit $ac_status); }; } && | |
19178 | { ac_try='test -s conftest$ac_exeext' | |
19179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19180 | (eval $ac_try) 2>&5 | |
19181 | ac_status=$? | |
19182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19183 | (exit $ac_status); }; }; then | |
19184 | eval "$as_ac_var=yes" | |
19185 | else | |
19186 | echo "$as_me: failed program was:" >&5 | |
19187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19188 | ||
b4e70030 | 19189 | eval "$as_ac_var=no" |
bec39cab AC |
19190 | fi |
19191 | rm -f conftest.err conftest.$ac_objext \ | |
19192 | conftest$ac_exeext conftest.$ac_ext | |
19193 | fi | |
b4e70030 JB |
19194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19195 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
19196 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19197 | cat >>confdefs.h <<_ACEOF | |
19198 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19199 | _ACEOF | |
c906108c | 19200 | |
c906108c | 19201 | fi |
97bf5e38 | 19202 | done |
c906108c | 19203 | |
bec39cab | 19204 | |
a3828db0 | 19205 | for ac_func in pread64 |
97bf5e38 | 19206 | do |
bec39cab | 19207 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
19208 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19209 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19210 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19212 | else | |
19213 | cat >conftest.$ac_ext <<_ACEOF | |
19214 | /* confdefs.h. */ | |
19215 | _ACEOF | |
19216 | cat confdefs.h >>conftest.$ac_ext | |
19217 | cat >>conftest.$ac_ext <<_ACEOF | |
19218 | /* end confdefs.h. */ | |
19219 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19221 | #define $ac_func innocuous_$ac_func | |
19222 | ||
97bf5e38 | 19223 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19224 | which can conflict with char $ac_func (); below. |
19225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19226 | <limits.h> exists even on freestanding compilers. */ | |
19227 | ||
19228 | #ifdef __STDC__ | |
19229 | # include <limits.h> | |
19230 | #else | |
19231 | # include <assert.h> | |
19232 | #endif | |
c906108c | 19233 | |
bec39cab | 19234 | #undef $ac_func |
97bf5e38 | 19235 | |
b4e70030 | 19236 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19237 | #ifdef __cplusplus |
19238 | extern "C" | |
b4e70030 | 19239 | { |
bec39cab | 19240 | #endif |
b4e70030 JB |
19241 | /* We use char because int might match the return type of a gcc2 |
19242 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 19243 | char $ac_func (); |
97bf5e38 MK |
19244 | /* The GNU C library defines this for functions which it implements |
19245 | to always fail with ENOSYS. Some functions are actually named | |
19246 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 19248 | choke me |
b4e70030 JB |
19249 | #else |
19250 | char (*f) () = $ac_func; | |
19251 | #endif | |
19252 | #ifdef __cplusplus | |
19253 | } | |
c906108c | 19254 | #endif |
97bf5e38 | 19255 | |
bec39cab AC |
19256 | int |
19257 | main () | |
19258 | { | |
b4e70030 | 19259 | return f != $ac_func; |
bec39cab AC |
19260 | ; |
19261 | return 0; | |
19262 | } | |
19263 | _ACEOF | |
19264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19266 | (eval $ac_link) 2>conftest.er1 | |
19267 | ac_status=$? | |
19268 | grep -v '^ *+' conftest.er1 >conftest.err | |
19269 | rm -f conftest.er1 | |
19270 | cat conftest.err >&5 | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); } && | |
b4e70030 JB |
19273 | { ac_try='test -z "$ac_c_werror_flag" |
19274 | || test ! -s conftest.err' | |
bec39cab AC |
19275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19276 | (eval $ac_try) 2>&5 | |
19277 | ac_status=$? | |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19279 | (exit $ac_status); }; } && | |
19280 | { ac_try='test -s conftest$ac_exeext' | |
19281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19282 | (eval $ac_try) 2>&5 | |
19283 | ac_status=$? | |
19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19285 | (exit $ac_status); }; }; then | |
19286 | eval "$as_ac_var=yes" | |
19287 | else | |
19288 | echo "$as_me: failed program was:" >&5 | |
19289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19290 | ||
b4e70030 | 19291 | eval "$as_ac_var=no" |
bec39cab AC |
19292 | fi |
19293 | rm -f conftest.err conftest.$ac_objext \ | |
19294 | conftest$ac_exeext conftest.$ac_ext | |
19295 | fi | |
b4e70030 JB |
19296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
19298 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19299 | cat >>confdefs.h <<_ACEOF | |
19300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19301 | _ACEOF | |
c906108c | 19302 | |
c906108c | 19303 | fi |
97bf5e38 | 19304 | done |
c906108c | 19305 | |
bec39cab | 19306 | |
a3828db0 | 19307 | for ac_func in sbrk |
b757528f | 19308 | do |
bec39cab | 19309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
19310 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19312 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19314 | else | |
19315 | cat >conftest.$ac_ext <<_ACEOF | |
19316 | /* confdefs.h. */ | |
19317 | _ACEOF | |
19318 | cat confdefs.h >>conftest.$ac_ext | |
19319 | cat >>conftest.$ac_ext <<_ACEOF | |
19320 | /* end confdefs.h. */ | |
19321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19323 | #define $ac_func innocuous_$ac_func | |
19324 | ||
b757528f | 19325 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19326 | which can conflict with char $ac_func (); below. |
19327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19328 | <limits.h> exists even on freestanding compilers. */ | |
19329 | ||
19330 | #ifdef __STDC__ | |
19331 | # include <limits.h> | |
19332 | #else | |
19333 | # include <assert.h> | |
19334 | #endif | |
b757528f | 19335 | |
bec39cab | 19336 | #undef $ac_func |
b757528f | 19337 | |
b4e70030 | 19338 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19339 | #ifdef __cplusplus |
19340 | extern "C" | |
b4e70030 | 19341 | { |
bec39cab | 19342 | #endif |
b4e70030 JB |
19343 | /* We use char because int might match the return type of a gcc2 |
19344 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 19345 | char $ac_func (); |
b757528f JJ |
19346 | /* The GNU C library defines this for functions which it implements |
19347 | to always fail with ENOSYS. Some functions are actually named | |
19348 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 19350 | choke me |
b4e70030 JB |
19351 | #else |
19352 | char (*f) () = $ac_func; | |
19353 | #endif | |
19354 | #ifdef __cplusplus | |
19355 | } | |
b757528f JJ |
19356 | #endif |
19357 | ||
bec39cab AC |
19358 | int |
19359 | main () | |
19360 | { | |
b4e70030 | 19361 | return f != $ac_func; |
bec39cab AC |
19362 | ; |
19363 | return 0; | |
19364 | } | |
19365 | _ACEOF | |
19366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19368 | (eval $ac_link) 2>conftest.er1 | |
19369 | ac_status=$? | |
19370 | grep -v '^ *+' conftest.er1 >conftest.err | |
19371 | rm -f conftest.er1 | |
19372 | cat conftest.err >&5 | |
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19374 | (exit $ac_status); } && | |
b4e70030 JB |
19375 | { ac_try='test -z "$ac_c_werror_flag" |
19376 | || test ! -s conftest.err' | |
bec39cab AC |
19377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19378 | (eval $ac_try) 2>&5 | |
19379 | ac_status=$? | |
19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19381 | (exit $ac_status); }; } && | |
19382 | { ac_try='test -s conftest$ac_exeext' | |
19383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19384 | (eval $ac_try) 2>&5 | |
19385 | ac_status=$? | |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19387 | (exit $ac_status); }; }; then | |
19388 | eval "$as_ac_var=yes" | |
19389 | else | |
19390 | echo "$as_me: failed program was:" >&5 | |
19391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19392 | ||
b4e70030 | 19393 | eval "$as_ac_var=no" |
bec39cab AC |
19394 | fi |
19395 | rm -f conftest.err conftest.$ac_objext \ | |
19396 | conftest$ac_exeext conftest.$ac_ext | |
19397 | fi | |
b4e70030 JB |
19398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19399 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
19400 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19401 | cat >>confdefs.h <<_ACEOF | |
19402 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19403 | _ACEOF | |
b757528f | 19404 | |
b757528f JJ |
19405 | fi |
19406 | done | |
19407 | ||
bec39cab | 19408 | |
a3828db0 | 19409 | |
83116857 TJB |
19410 | |
19411 | for ac_func in setpgid setpgrp setsid | |
bcb3dc3d | 19412 | do |
bec39cab | 19413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
19414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19418 | else | |
19419 | cat >conftest.$ac_ext <<_ACEOF | |
19420 | /* confdefs.h. */ | |
19421 | _ACEOF | |
19422 | cat confdefs.h >>conftest.$ac_ext | |
19423 | cat >>conftest.$ac_ext <<_ACEOF | |
19424 | /* end confdefs.h. */ | |
19425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19427 | #define $ac_func innocuous_$ac_func | |
19428 | ||
bcb3dc3d | 19429 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19430 | which can conflict with char $ac_func (); below. |
19431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19432 | <limits.h> exists even on freestanding compilers. */ | |
19433 | ||
19434 | #ifdef __STDC__ | |
19435 | # include <limits.h> | |
19436 | #else | |
19437 | # include <assert.h> | |
19438 | #endif | |
bcb3dc3d | 19439 | |
bec39cab | 19440 | #undef $ac_func |
bcb3dc3d | 19441 | |
b4e70030 | 19442 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19443 | #ifdef __cplusplus |
19444 | extern "C" | |
b4e70030 | 19445 | { |
bec39cab | 19446 | #endif |
b4e70030 JB |
19447 | /* We use char because int might match the return type of a gcc2 |
19448 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 19449 | char $ac_func (); |
bcb3dc3d MK |
19450 | /* The GNU C library defines this for functions which it implements |
19451 | to always fail with ENOSYS. Some functions are actually named | |
19452 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 19454 | choke me |
b4e70030 JB |
19455 | #else |
19456 | char (*f) () = $ac_func; | |
19457 | #endif | |
19458 | #ifdef __cplusplus | |
19459 | } | |
bcb3dc3d MK |
19460 | #endif |
19461 | ||
bec39cab AC |
19462 | int |
19463 | main () | |
19464 | { | |
b4e70030 | 19465 | return f != $ac_func; |
bec39cab AC |
19466 | ; |
19467 | return 0; | |
19468 | } | |
19469 | _ACEOF | |
19470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19472 | (eval $ac_link) 2>conftest.er1 | |
19473 | ac_status=$? | |
19474 | grep -v '^ *+' conftest.er1 >conftest.err | |
19475 | rm -f conftest.er1 | |
19476 | cat conftest.err >&5 | |
19477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19478 | (exit $ac_status); } && | |
b4e70030 JB |
19479 | { ac_try='test -z "$ac_c_werror_flag" |
19480 | || test ! -s conftest.err' | |
bec39cab AC |
19481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19482 | (eval $ac_try) 2>&5 | |
19483 | ac_status=$? | |
19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19485 | (exit $ac_status); }; } && | |
19486 | { ac_try='test -s conftest$ac_exeext' | |
19487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19488 | (eval $ac_try) 2>&5 | |
19489 | ac_status=$? | |
19490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19491 | (exit $ac_status); }; }; then | |
19492 | eval "$as_ac_var=yes" | |
19493 | else | |
19494 | echo "$as_me: failed program was:" >&5 | |
19495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19496 | ||
b4e70030 | 19497 | eval "$as_ac_var=no" |
bec39cab AC |
19498 | fi |
19499 | rm -f conftest.err conftest.$ac_objext \ | |
19500 | conftest$ac_exeext conftest.$ac_ext | |
19501 | fi | |
b4e70030 JB |
19502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
19504 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19505 | cat >>confdefs.h <<_ACEOF | |
19506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19507 | _ACEOF | |
bcb3dc3d | 19508 | |
bcb3dc3d MK |
19509 | fi |
19510 | done | |
19511 | ||
bec39cab | 19512 | |
a3828db0 MK |
19513 | |
19514 | ||
19515 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 19516 | do |
bec39cab | 19517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
19518 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19520 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19522 | else | |
19523 | cat >conftest.$ac_ext <<_ACEOF | |
19524 | /* confdefs.h. */ | |
19525 | _ACEOF | |
19526 | cat confdefs.h >>conftest.$ac_ext | |
19527 | cat >>conftest.$ac_ext <<_ACEOF | |
19528 | /* end confdefs.h. */ | |
19529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19531 | #define $ac_func innocuous_$ac_func | |
19532 | ||
8b9cf735 | 19533 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19534 | which can conflict with char $ac_func (); below. |
19535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19536 | <limits.h> exists even on freestanding compilers. */ | |
19537 | ||
19538 | #ifdef __STDC__ | |
19539 | # include <limits.h> | |
19540 | #else | |
19541 | # include <assert.h> | |
19542 | #endif | |
8b9cf735 | 19543 | |
bec39cab | 19544 | #undef $ac_func |
8b9cf735 | 19545 | |
b4e70030 | 19546 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
19547 | #ifdef __cplusplus |
19548 | extern "C" | |
b4e70030 | 19549 | { |
a3828db0 | 19550 | #endif |
b4e70030 JB |
19551 | /* We use char because int might match the return type of a gcc2 |
19552 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19553 | char $ac_func (); |
19554 | /* The GNU C library defines this for functions which it implements | |
19555 | to always fail with ENOSYS. Some functions are actually named | |
19556 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 19558 | choke me |
b4e70030 JB |
19559 | #else |
19560 | char (*f) () = $ac_func; | |
19561 | #endif | |
19562 | #ifdef __cplusplus | |
19563 | } | |
a3828db0 MK |
19564 | #endif |
19565 | ||
bec39cab AC |
19566 | int |
19567 | main () | |
19568 | { | |
b4e70030 | 19569 | return f != $ac_func; |
bec39cab AC |
19570 | ; |
19571 | return 0; | |
19572 | } | |
19573 | _ACEOF | |
a3828db0 MK |
19574 | rm -f conftest.$ac_objext conftest$ac_exeext |
19575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19576 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19577 | ac_status=$? |
19578 | grep -v '^ *+' conftest.er1 >conftest.err | |
19579 | rm -f conftest.er1 | |
19580 | cat conftest.err >&5 | |
19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19582 | (exit $ac_status); } && | |
b4e70030 JB |
19583 | { ac_try='test -z "$ac_c_werror_flag" |
19584 | || test ! -s conftest.err' | |
bec39cab AC |
19585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19586 | (eval $ac_try) 2>&5 | |
19587 | ac_status=$? | |
19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19589 | (exit $ac_status); }; } && | |
a3828db0 | 19590 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19592 | (eval $ac_try) 2>&5 | |
19593 | ac_status=$? | |
19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19595 | (exit $ac_status); }; }; then | |
a3828db0 | 19596 | eval "$as_ac_var=yes" |
086ec9eb | 19597 | else |
bec39cab AC |
19598 | echo "$as_me: failed program was:" >&5 |
19599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19600 | ||
b4e70030 | 19601 | eval "$as_ac_var=no" |
a3828db0 MK |
19602 | fi |
19603 | rm -f conftest.err conftest.$ac_objext \ | |
19604 | conftest$ac_exeext conftest.$ac_ext | |
19605 | fi | |
b4e70030 JB |
19606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19607 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
19608 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19609 | cat >>confdefs.h <<_ACEOF | |
19610 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19611 | _ACEOF | |
19612 | ||
086ec9eb | 19613 | fi |
a3828db0 MK |
19614 | done |
19615 | ||
19616 | ||
19617 | for ac_func in socketpair | |
19618 | do | |
19619 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
19620 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19621 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19622 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
19623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19624 | else | |
19625 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
19626 | /* confdefs.h. */ |
19627 | _ACEOF | |
19628 | cat confdefs.h >>conftest.$ac_ext | |
19629 | cat >>conftest.$ac_ext <<_ACEOF | |
19630 | /* end confdefs.h. */ | |
a3828db0 MK |
19631 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19632 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19633 | #define $ac_func innocuous_$ac_func | |
19634 | ||
19635 | /* System header to define __stub macros and hopefully few prototypes, | |
19636 | which can conflict with char $ac_func (); below. | |
19637 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19638 | <limits.h> exists even on freestanding compilers. */ | |
19639 | ||
19640 | #ifdef __STDC__ | |
19641 | # include <limits.h> | |
19642 | #else | |
19643 | # include <assert.h> | |
19644 | #endif | |
19645 | ||
19646 | #undef $ac_func | |
19647 | ||
b4e70030 | 19648 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
19649 | #ifdef __cplusplus |
19650 | extern "C" | |
b4e70030 | 19651 | { |
a3828db0 | 19652 | #endif |
b4e70030 JB |
19653 | /* We use char because int might match the return type of a gcc2 |
19654 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19655 | char $ac_func (); |
19656 | /* The GNU C library defines this for functions which it implements | |
19657 | to always fail with ENOSYS. Some functions are actually named | |
19658 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 19660 | choke me |
b4e70030 JB |
19661 | #else |
19662 | char (*f) () = $ac_func; | |
19663 | #endif | |
19664 | #ifdef __cplusplus | |
19665 | } | |
a3828db0 MK |
19666 | #endif |
19667 | ||
bec39cab AC |
19668 | int |
19669 | main () | |
19670 | { | |
b4e70030 | 19671 | return f != $ac_func; |
bec39cab AC |
19672 | ; |
19673 | return 0; | |
19674 | } | |
19675 | _ACEOF | |
a3828db0 MK |
19676 | rm -f conftest.$ac_objext conftest$ac_exeext |
19677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19678 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19679 | ac_status=$? |
19680 | grep -v '^ *+' conftest.er1 >conftest.err | |
19681 | rm -f conftest.er1 | |
19682 | cat conftest.err >&5 | |
19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19684 | (exit $ac_status); } && | |
b4e70030 JB |
19685 | { ac_try='test -z "$ac_c_werror_flag" |
19686 | || test ! -s conftest.err' | |
bec39cab AC |
19687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19688 | (eval $ac_try) 2>&5 | |
19689 | ac_status=$? | |
19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19691 | (exit $ac_status); }; } && | |
a3828db0 | 19692 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19694 | (eval $ac_try) 2>&5 | |
19695 | ac_status=$? | |
19696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19697 | (exit $ac_status); }; }; then | |
a3828db0 | 19698 | eval "$as_ac_var=yes" |
086ec9eb | 19699 | else |
bec39cab AC |
19700 | echo "$as_me: failed program was:" >&5 |
19701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19702 | ||
b4e70030 | 19703 | eval "$as_ac_var=no" |
086ec9eb | 19704 | fi |
a3828db0 MK |
19705 | rm -f conftest.err conftest.$ac_objext \ |
19706 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 19707 | fi |
b4e70030 JB |
19708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19709 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
19710 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19711 | cat >>confdefs.h <<_ACEOF | |
19712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19713 | _ACEOF |
086ec9eb MK |
19714 | |
19715 | fi | |
a3828db0 | 19716 | done |
086ec9eb | 19717 | |
a3828db0 MK |
19718 | |
19719 | for ac_func in syscall | |
19720 | do | |
19721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
19722 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19724 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 19725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
19726 | else |
19727 | cat >conftest.$ac_ext <<_ACEOF | |
19728 | /* confdefs.h. */ | |
19729 | _ACEOF | |
19730 | cat confdefs.h >>conftest.$ac_ext | |
19731 | cat >>conftest.$ac_ext <<_ACEOF | |
19732 | /* end confdefs.h. */ | |
a3828db0 MK |
19733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19735 | #define $ac_func innocuous_$ac_func | |
19736 | ||
19737 | /* System header to define __stub macros and hopefully few prototypes, | |
19738 | which can conflict with char $ac_func (); below. | |
19739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19740 | <limits.h> exists even on freestanding compilers. */ | |
19741 | ||
19742 | #ifdef __STDC__ | |
19743 | # include <limits.h> | |
19744 | #else | |
19745 | # include <assert.h> | |
19746 | #endif | |
19747 | ||
19748 | #undef $ac_func | |
19749 | ||
b4e70030 | 19750 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
19751 | #ifdef __cplusplus |
19752 | extern "C" | |
b4e70030 | 19753 | { |
a3828db0 | 19754 | #endif |
b4e70030 JB |
19755 | /* We use char because int might match the return type of a gcc2 |
19756 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19757 | char $ac_func (); |
19758 | /* The GNU C library defines this for functions which it implements | |
19759 | to always fail with ENOSYS. Some functions are actually named | |
19760 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19761 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 19762 | choke me |
b4e70030 JB |
19763 | #else |
19764 | char (*f) () = $ac_func; | |
19765 | #endif | |
19766 | #ifdef __cplusplus | |
19767 | } | |
c906108c | 19768 | #endif |
97bf5e38 | 19769 | |
bec39cab AC |
19770 | int |
19771 | main () | |
97bf5e38 | 19772 | { |
b4e70030 | 19773 | return f != $ac_func; |
bec39cab AC |
19774 | ; |
19775 | return 0; | |
97bf5e38 | 19776 | } |
bec39cab | 19777 | _ACEOF |
a3828db0 | 19778 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 19779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 19780 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 19781 | ac_status=$? |
a3828db0 MK |
19782 | grep -v '^ *+' conftest.er1 >conftest.err |
19783 | rm -f conftest.er1 | |
19784 | cat conftest.err >&5 | |
bec39cab | 19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 19786 | (exit $ac_status); } && |
b4e70030 JB |
19787 | { ac_try='test -z "$ac_c_werror_flag" |
19788 | || test ! -s conftest.err' | |
a3828db0 MK |
19789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19790 | (eval $ac_try) 2>&5 | |
19791 | ac_status=$? | |
19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19793 | (exit $ac_status); }; } && | |
19794 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19796 | (eval $ac_try) 2>&5 | |
19797 | ac_status=$? | |
19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19799 | (exit $ac_status); }; }; then | |
a3828db0 | 19800 | eval "$as_ac_var=yes" |
c906108c | 19801 | else |
a3828db0 | 19802 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
19803 | sed 's/^/| /' conftest.$ac_ext >&5 |
19804 | ||
b4e70030 | 19805 | eval "$as_ac_var=no" |
97bf5e38 | 19806 | fi |
a3828db0 MK |
19807 | rm -f conftest.err conftest.$ac_objext \ |
19808 | conftest$ac_exeext conftest.$ac_ext | |
19809 | fi | |
b4e70030 JB |
19810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19811 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
19812 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19813 | cat >>confdefs.h <<_ACEOF | |
19814 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19815 | _ACEOF |
c906108c SS |
19816 | |
19817 | fi | |
a3828db0 | 19818 | done |
c906108c | 19819 | |
a3828db0 MK |
19820 | |
19821 | for ac_func in ttrace | |
19822 | do | |
19823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
19824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 19827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 19828 | else |
bec39cab AC |
19829 | cat >conftest.$ac_ext <<_ACEOF |
19830 | /* confdefs.h. */ | |
19831 | _ACEOF | |
19832 | cat confdefs.h >>conftest.$ac_ext | |
19833 | cat >>conftest.$ac_ext <<_ACEOF | |
19834 | /* end confdefs.h. */ | |
a3828db0 MK |
19835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19837 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 19838 | |
a3828db0 MK |
19839 | /* System header to define __stub macros and hopefully few prototypes, |
19840 | which can conflict with char $ac_func (); below. | |
19841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19842 | <limits.h> exists even on freestanding compilers. */ | |
19843 | ||
19844 | #ifdef __STDC__ | |
19845 | # include <limits.h> | |
19846 | #else | |
19847 | # include <assert.h> | |
19848 | #endif | |
19849 | ||
19850 | #undef $ac_func | |
19851 | ||
b4e70030 | 19852 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
19853 | #ifdef __cplusplus |
19854 | extern "C" | |
b4e70030 | 19855 | { |
a3828db0 | 19856 | #endif |
b4e70030 JB |
19857 | /* We use char because int might match the return type of a gcc2 |
19858 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19859 | char $ac_func (); |
19860 | /* The GNU C library defines this for functions which it implements | |
19861 | to always fail with ENOSYS. Some functions are actually named | |
19862 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 19864 | choke me |
b4e70030 JB |
19865 | #else |
19866 | char (*f) () = $ac_func; | |
19867 | #endif | |
19868 | #ifdef __cplusplus | |
19869 | } | |
a3828db0 | 19870 | #endif |
97bf5e38 | 19871 | |
bec39cab AC |
19872 | int |
19873 | main () | |
19874 | { | |
b4e70030 | 19875 | return f != $ac_func; |
bec39cab AC |
19876 | ; |
19877 | return 0; | |
19878 | } | |
19879 | _ACEOF | |
a3828db0 MK |
19880 | rm -f conftest.$ac_objext conftest$ac_exeext |
19881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19882 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19883 | ac_status=$? |
19884 | grep -v '^ *+' conftest.er1 >conftest.err | |
19885 | rm -f conftest.er1 | |
19886 | cat conftest.err >&5 | |
19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19888 | (exit $ac_status); } && | |
b4e70030 JB |
19889 | { ac_try='test -z "$ac_c_werror_flag" |
19890 | || test ! -s conftest.err' | |
bec39cab AC |
19891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19892 | (eval $ac_try) 2>&5 | |
19893 | ac_status=$? | |
19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19895 | (exit $ac_status); }; } && | |
a3828db0 | 19896 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19898 | (eval $ac_try) 2>&5 | |
19899 | ac_status=$? | |
19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19901 | (exit $ac_status); }; }; then | |
a3828db0 | 19902 | eval "$as_ac_var=yes" |
b83266a0 | 19903 | else |
bec39cab AC |
19904 | echo "$as_me: failed program was:" >&5 |
19905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19906 | ||
b4e70030 | 19907 | eval "$as_ac_var=no" |
b83266a0 | 19908 | fi |
a3828db0 MK |
19909 | rm -f conftest.err conftest.$ac_objext \ |
19910 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 19911 | fi |
b4e70030 JB |
19912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19913 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
19914 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19915 | cat >>confdefs.h <<_ACEOF | |
19916 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19917 | _ACEOF |
b83266a0 | 19918 | |
97bf5e38 | 19919 | fi |
a3828db0 | 19920 | done |
b83266a0 | 19921 | |
a3828db0 MK |
19922 | |
19923 | for ac_func in wborder | |
19924 | do | |
19925 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
19926 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19927 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19928 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
19929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19930 | else | |
19931 | cat >conftest.$ac_ext <<_ACEOF | |
19932 | /* confdefs.h. */ | |
19933 | _ACEOF | |
19934 | cat confdefs.h >>conftest.$ac_ext | |
19935 | cat >>conftest.$ac_ext <<_ACEOF | |
19936 | /* end confdefs.h. */ | |
a3828db0 MK |
19937 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19938 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19939 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 19940 | |
a3828db0 MK |
19941 | /* System header to define __stub macros and hopefully few prototypes, |
19942 | which can conflict with char $ac_func (); below. | |
19943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19944 | <limits.h> exists even on freestanding compilers. */ | |
19945 | ||
19946 | #ifdef __STDC__ | |
19947 | # include <limits.h> | |
19948 | #else | |
19949 | # include <assert.h> | |
19950 | #endif | |
19951 | ||
19952 | #undef $ac_func | |
19953 | ||
b4e70030 | 19954 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
19955 | #ifdef __cplusplus |
19956 | extern "C" | |
b4e70030 | 19957 | { |
a3828db0 | 19958 | #endif |
b4e70030 JB |
19959 | /* We use char because int might match the return type of a gcc2 |
19960 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19961 | char $ac_func (); |
19962 | /* The GNU C library defines this for functions which it implements | |
19963 | to always fail with ENOSYS. Some functions are actually named | |
19964 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 19965 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 19966 | choke me |
b4e70030 JB |
19967 | #else |
19968 | char (*f) () = $ac_func; | |
19969 | #endif | |
19970 | #ifdef __cplusplus | |
19971 | } | |
a3828db0 | 19972 | #endif |
97bf5e38 | 19973 | |
bec39cab AC |
19974 | int |
19975 | main () | |
19976 | { | |
b4e70030 | 19977 | return f != $ac_func; |
bec39cab AC |
19978 | ; |
19979 | return 0; | |
19980 | } | |
19981 | _ACEOF | |
a3828db0 MK |
19982 | rm -f conftest.$ac_objext conftest$ac_exeext |
19983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19984 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19985 | ac_status=$? |
19986 | grep -v '^ *+' conftest.er1 >conftest.err | |
19987 | rm -f conftest.er1 | |
19988 | cat conftest.err >&5 | |
19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19990 | (exit $ac_status); } && | |
b4e70030 JB |
19991 | { ac_try='test -z "$ac_c_werror_flag" |
19992 | || test ! -s conftest.err' | |
bec39cab AC |
19993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19994 | (eval $ac_try) 2>&5 | |
19995 | ac_status=$? | |
19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19997 | (exit $ac_status); }; } && | |
a3828db0 | 19998 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20000 | (eval $ac_try) 2>&5 | |
20001 | ac_status=$? | |
20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20003 | (exit $ac_status); }; }; then | |
a3828db0 | 20004 | eval "$as_ac_var=yes" |
a4db0f07 | 20005 | else |
bec39cab AC |
20006 | echo "$as_me: failed program was:" >&5 |
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20008 | ||
b4e70030 | 20009 | eval "$as_ac_var=no" |
a4db0f07 | 20010 | fi |
a3828db0 MK |
20011 | rm -f conftest.err conftest.$ac_objext \ |
20012 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 20013 | fi |
b4e70030 JB |
20014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
20015 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
20016 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20017 | cat >>confdefs.h <<_ACEOF | |
20018 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 20019 | _ACEOF |
a4db0f07 RH |
20020 | |
20021 | fi | |
a3828db0 | 20022 | done |
c906108c | 20023 | |
06825bd1 | 20024 | |
a3828db0 MK |
20025 | # Check the return and argument types of ptrace. No canned test for |
20026 | # this, so roll our own. | |
20027 | gdb_ptrace_headers=' | |
20028 | #if HAVE_SYS_TYPES_H | |
20029 | # include <sys/types.h> | |
20030 | #endif | |
20031 | #if HAVE_SYS_PTRACE_H | |
20032 | # include <sys/ptrace.h> | |
20033 | #endif | |
20034 | #if HAVE_UNISTD_H | |
20035 | # include <unistd.h> | |
20036 | #endif | |
20037 | ' | |
20038 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
20039 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
20040 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 20041 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
20042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20043 | else | |
20044 | cat >conftest.$ac_ext <<_ACEOF | |
20045 | /* confdefs.h. */ | |
20046 | _ACEOF | |
20047 | cat confdefs.h >>conftest.$ac_ext | |
20048 | cat >>conftest.$ac_ext <<_ACEOF | |
20049 | /* end confdefs.h. */ | |
a3828db0 MK |
20050 | $gdb_ptrace_headers |
20051 | ||
bec39cab AC |
20052 | int |
20053 | main () | |
20054 | { | |
a3828db0 MK |
20055 | #ifndef ptrace |
20056 | char *p = (char *) ptrace; | |
06825bd1 | 20057 | #endif |
a3828db0 | 20058 | |
bec39cab AC |
20059 | ; |
20060 | return 0; | |
20061 | } | |
20062 | _ACEOF | |
20063 | rm -f conftest.$ac_objext | |
20064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20065 | (eval $ac_compile) 2>conftest.er1 | |
20066 | ac_status=$? | |
20067 | grep -v '^ *+' conftest.er1 >conftest.err | |
20068 | rm -f conftest.er1 | |
20069 | cat conftest.err >&5 | |
20070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20071 | (exit $ac_status); } && | |
b4e70030 JB |
20072 | { ac_try='test -z "$ac_c_werror_flag" |
20073 | || test ! -s conftest.err' | |
bec39cab AC |
20074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20075 | (eval $ac_try) 2>&5 | |
20076 | ac_status=$? | |
20077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20078 | (exit $ac_status); }; } && | |
20079 | { ac_try='test -s conftest.$ac_objext' | |
20080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20081 | (eval $ac_try) 2>&5 | |
20082 | ac_status=$? | |
20083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20084 | (exit $ac_status); }; }; then | |
a3828db0 | 20085 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 20086 | else |
bec39cab AC |
20087 | echo "$as_me: failed program was:" >&5 |
20088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20089 | ||
b4e70030 | 20090 | ac_cv_have_decl_ptrace=no |
06825bd1 | 20091 | fi |
bec39cab | 20092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 20093 | fi |
b4e70030 JB |
20094 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
20095 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 20096 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 20097 | |
a3828db0 MK |
20098 | cat >>confdefs.h <<_ACEOF |
20099 | #define HAVE_DECL_PTRACE 1 | |
20100 | _ACEOF | |
bec39cab | 20101 | |
bec39cab | 20102 | |
a3828db0 MK |
20103 | else |
20104 | cat >>confdefs.h <<_ACEOF | |
20105 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 20106 | _ACEOF |
06825bd1 | 20107 | |
a3828db0 MK |
20108 | |
20109 | : ${gdb_cv_func_ptrace_ret='int'} | |
20110 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
20111 | ||
06825bd1 MK |
20112 | fi |
20113 | ||
a3828db0 | 20114 | |
064ef605 DJ |
20115 | # Check return type. Varargs (used on GNU/Linux) conflict with the |
20116 | # empty argument list, so check for that explicitly. | |
b4e70030 JB |
20117 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
20118 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 20119 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20121 | else | |
20122 | cat >conftest.$ac_ext <<_ACEOF | |
20123 | /* confdefs.h. */ | |
20124 | _ACEOF | |
20125 | cat confdefs.h >>conftest.$ac_ext | |
20126 | cat >>conftest.$ac_ext <<_ACEOF | |
20127 | /* end confdefs.h. */ | |
a3828db0 | 20128 | $gdb_ptrace_headers |
bec39cab AC |
20129 | int |
20130 | main () | |
20131 | { | |
064ef605 DJ |
20132 | extern long ptrace (enum __ptrace_request, ...); |
20133 | ; | |
20134 | return 0; | |
20135 | } | |
20136 | _ACEOF | |
20137 | rm -f conftest.$ac_objext | |
20138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20139 | (eval $ac_compile) 2>conftest.er1 | |
20140 | ac_status=$? | |
20141 | grep -v '^ *+' conftest.er1 >conftest.err | |
20142 | rm -f conftest.er1 | |
20143 | cat conftest.err >&5 | |
20144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20145 | (exit $ac_status); } && | |
20146 | { ac_try='test -z "$ac_c_werror_flag" | |
20147 | || test ! -s conftest.err' | |
20148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20149 | (eval $ac_try) 2>&5 | |
20150 | ac_status=$? | |
20151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20152 | (exit $ac_status); }; } && | |
20153 | { ac_try='test -s conftest.$ac_objext' | |
20154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20155 | (eval $ac_try) 2>&5 | |
20156 | ac_status=$? | |
20157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20158 | (exit $ac_status); }; }; then | |
20159 | gdb_cv_func_ptrace_ret='long' | |
20160 | else | |
20161 | echo "$as_me: failed program was:" >&5 | |
20162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20163 | ||
20164 | cat >conftest.$ac_ext <<_ACEOF | |
20165 | /* confdefs.h. */ | |
20166 | _ACEOF | |
20167 | cat confdefs.h >>conftest.$ac_ext | |
20168 | cat >>conftest.$ac_ext <<_ACEOF | |
20169 | /* end confdefs.h. */ | |
20170 | $gdb_ptrace_headers | |
20171 | int | |
20172 | main () | |
20173 | { | |
a3828db0 | 20174 | extern int ptrace (); |
bec39cab AC |
20175 | ; |
20176 | return 0; | |
20177 | } | |
20178 | _ACEOF | |
20179 | rm -f conftest.$ac_objext | |
20180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20181 | (eval $ac_compile) 2>conftest.er1 | |
20182 | ac_status=$? | |
20183 | grep -v '^ *+' conftest.er1 >conftest.err | |
20184 | rm -f conftest.er1 | |
20185 | cat conftest.err >&5 | |
20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20187 | (exit $ac_status); } && | |
b4e70030 JB |
20188 | { ac_try='test -z "$ac_c_werror_flag" |
20189 | || test ! -s conftest.err' | |
bec39cab AC |
20190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20191 | (eval $ac_try) 2>&5 | |
20192 | ac_status=$? | |
20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20194 | (exit $ac_status); }; } && | |
20195 | { ac_try='test -s conftest.$ac_objext' | |
20196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20197 | (eval $ac_try) 2>&5 | |
20198 | ac_status=$? | |
20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20200 | (exit $ac_status); }; }; then | |
a3828db0 | 20201 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 20202 | else |
bec39cab AC |
20203 | echo "$as_me: failed program was:" >&5 |
20204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20205 | ||
b4e70030 | 20206 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 20207 | fi |
bec39cab | 20208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 20209 | fi |
064ef605 DJ |
20210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20211 | fi | |
b4e70030 JB |
20212 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
20213 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 20214 | |
a3828db0 MK |
20215 | cat >>confdefs.h <<_ACEOF |
20216 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 20217 | _ACEOF |
70f9f479 | 20218 | |
a3828db0 | 20219 | # Check argument types. |
b4e70030 JB |
20220 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
20221 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 20222 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
20223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20224 | else | |
a3828db0 | 20225 | |
064ef605 DJ |
20226 | cat >conftest.$ac_ext <<_ACEOF |
20227 | /* confdefs.h. */ | |
20228 | _ACEOF | |
20229 | cat confdefs.h >>conftest.$ac_ext | |
20230 | cat >>conftest.$ac_ext <<_ACEOF | |
20231 | /* end confdefs.h. */ | |
20232 | $gdb_ptrace_headers | |
20233 | int | |
20234 | main () | |
20235 | { | |
20236 | extern long ptrace (enum __ptrace_request, ...); | |
20237 | ; | |
20238 | return 0; | |
20239 | } | |
20240 | _ACEOF | |
20241 | rm -f conftest.$ac_objext | |
20242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20243 | (eval $ac_compile) 2>conftest.er1 | |
20244 | ac_status=$? | |
20245 | grep -v '^ *+' conftest.er1 >conftest.err | |
20246 | rm -f conftest.er1 | |
20247 | cat conftest.err >&5 | |
20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20249 | (exit $ac_status); } && | |
20250 | { ac_try='test -z "$ac_c_werror_flag" | |
20251 | || test ! -s conftest.err' | |
20252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20253 | (eval $ac_try) 2>&5 | |
20254 | ac_status=$? | |
20255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20256 | (exit $ac_status); }; } && | |
20257 | { ac_try='test -s conftest.$ac_objext' | |
20258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20259 | (eval $ac_try) 2>&5 | |
20260 | ac_status=$? | |
20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20262 | (exit $ac_status); }; }; then | |
20263 | gdb_cv_func_ptrace_args='int,int,long,long' | |
20264 | else | |
20265 | echo "$as_me: failed program was:" >&5 | |
20266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20267 | ||
20268 | ||
a3828db0 MK |
20269 | for gdb_arg1 in 'int' 'long'; do |
20270 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
5ed10e6e | 20271 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
a3828db0 MK |
20272 | for gdb_arg4 in 'int' 'long'; do |
20273 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
20274 | /* confdefs.h. */ |
20275 | _ACEOF | |
20276 | cat confdefs.h >>conftest.$ac_ext | |
20277 | cat >>conftest.$ac_ext <<_ACEOF | |
20278 | /* end confdefs.h. */ | |
a3828db0 | 20279 | $gdb_ptrace_headers |
bec39cab AC |
20280 | int |
20281 | main () | |
20282 | { | |
a3828db0 MK |
20283 | |
20284 | extern $gdb_cv_func_ptrace_ret | |
20285 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
20286 | ||
bec39cab AC |
20287 | ; |
20288 | return 0; | |
20289 | } | |
20290 | _ACEOF | |
20291 | rm -f conftest.$ac_objext | |
20292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20293 | (eval $ac_compile) 2>conftest.er1 | |
20294 | ac_status=$? | |
20295 | grep -v '^ *+' conftest.er1 >conftest.err | |
20296 | rm -f conftest.er1 | |
20297 | cat conftest.err >&5 | |
20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20299 | (exit $ac_status); } && | |
b4e70030 JB |
20300 | { ac_try='test -z "$ac_c_werror_flag" |
20301 | || test ! -s conftest.err' | |
bec39cab AC |
20302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20303 | (eval $ac_try) 2>&5 | |
20304 | ac_status=$? | |
20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20306 | (exit $ac_status); }; } && | |
20307 | { ac_try='test -s conftest.$ac_objext' | |
20308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20309 | (eval $ac_try) 2>&5 | |
20310 | ac_status=$? | |
20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20312 | (exit $ac_status); }; }; then | |
a3828db0 MK |
20313 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
20314 | break 4; | |
5c7f2947 | 20315 | else |
bec39cab AC |
20316 | echo "$as_me: failed program was:" >&5 |
20317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20318 | ||
5c7f2947 | 20319 | fi |
bec39cab | 20320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
20321 | for gdb_arg5 in 'int *' 'int' 'long'; do |
20322 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
20323 | /* confdefs.h. */ |
20324 | _ACEOF | |
20325 | cat confdefs.h >>conftest.$ac_ext | |
20326 | cat >>conftest.$ac_ext <<_ACEOF | |
20327 | /* end confdefs.h. */ | |
a3828db0 | 20328 | $gdb_ptrace_headers |
bec39cab AC |
20329 | int |
20330 | main () | |
20331 | { | |
a3828db0 MK |
20332 | |
20333 | extern $gdb_cv_func_ptrace_ret | |
20334 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
20335 | ||
bec39cab AC |
20336 | ; |
20337 | return 0; | |
20338 | } | |
20339 | _ACEOF | |
20340 | rm -f conftest.$ac_objext | |
20341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20342 | (eval $ac_compile) 2>conftest.er1 | |
20343 | ac_status=$? | |
20344 | grep -v '^ *+' conftest.er1 >conftest.err | |
20345 | rm -f conftest.er1 | |
20346 | cat conftest.err >&5 | |
20347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20348 | (exit $ac_status); } && | |
b4e70030 JB |
20349 | { ac_try='test -z "$ac_c_werror_flag" |
20350 | || test ! -s conftest.err' | |
bec39cab AC |
20351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20352 | (eval $ac_try) 2>&5 | |
20353 | ac_status=$? | |
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20355 | (exit $ac_status); }; } && | |
20356 | { ac_try='test -s conftest.$ac_objext' | |
20357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20358 | (eval $ac_try) 2>&5 | |
20359 | ac_status=$? | |
20360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20361 | (exit $ac_status); }; }; then | |
a3828db0 MK |
20362 | |
20363 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
20364 | break 5; | |
78434e59 | 20365 | else |
bec39cab AC |
20366 | echo "$as_me: failed program was:" >&5 |
20367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20368 | ||
78434e59 | 20369 | fi |
bec39cab | 20370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
20371 | done |
20372 | done | |
20373 | done | |
20374 | done | |
20375 | done | |
20376 | # Provide a safe default value. | |
20377 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
20378 | ||
064ef605 DJ |
20379 | fi |
20380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
78434e59 | 20381 | fi |
b4e70030 JB |
20382 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
20383 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
20384 | ac_save_IFS=$IFS; IFS=',' |
20385 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
20386 | IFS=$ac_save_IFS | |
20387 | shift | |
bec39cab | 20388 | |
a3828db0 MK |
20389 | cat >>confdefs.h <<_ACEOF |
20390 | #define PTRACE_TYPE_ARG3 $3 | |
20391 | _ACEOF | |
20392 | ||
20393 | if test -n "$5"; then | |
20394 | ||
20395 | cat >>confdefs.h <<_ACEOF | |
20396 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 20397 | _ACEOF |
78434e59 MK |
20398 | |
20399 | fi | |
20400 | ||
a3828db0 | 20401 | if test "$cross_compiling" = no; then |
b4e70030 JB |
20402 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
20403 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 20404 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 20405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
20406 | else |
20407 | if test "$cross_compiling" = yes; then | |
20408 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
20409 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
20410 | { (exit 1); exit 1; }; } | |
bec39cab AC |
20411 | else |
20412 | cat >conftest.$ac_ext <<_ACEOF | |
20413 | /* confdefs.h. */ | |
20414 | _ACEOF | |
20415 | cat confdefs.h >>conftest.$ac_ext | |
20416 | cat >>conftest.$ac_ext <<_ACEOF | |
20417 | /* end confdefs.h. */ | |
b4e70030 JB |
20418 | #if HAVE_UNISTD_H |
20419 | # include <unistd.h> | |
20420 | #endif | |
20421 | ||
bec39cab AC |
20422 | int |
20423 | main () | |
20424 | { | |
a3828db0 MK |
20425 | /* If this system has a BSD-style setpgrp which takes arguments, |
20426 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
20427 | exit successfully. */ | |
b4e70030 | 20428 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
20429 | ; |
20430 | return 0; | |
20431 | } | |
20432 | _ACEOF | |
a3828db0 MK |
20433 | rm -f conftest$ac_exeext |
20434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20435 | (eval $ac_link) 2>&5 | |
bec39cab AC |
20436 | ac_status=$? |
20437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 20438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
20439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20440 | (eval $ac_try) 2>&5 | |
20441 | ac_status=$? | |
20442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20443 | (exit $ac_status); }; }; then | |
a3828db0 | 20444 | ac_cv_func_setpgrp_void=no |
c906108c | 20445 | else |
a3828db0 MK |
20446 | echo "$as_me: program exited with status $ac_status" >&5 |
20447 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
20448 | sed 's/^/| /' conftest.$ac_ext >&5 |
20449 | ||
a3828db0 MK |
20450 | ( exit $ac_status ) |
20451 | ac_cv_func_setpgrp_void=yes | |
c906108c | 20452 | fi |
b4e70030 | 20453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20454 | fi |
a3828db0 | 20455 | fi |
b4e70030 JB |
20456 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
20457 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
20458 | if test $ac_cv_func_setpgrp_void = yes; then |
20459 | ||
20460 | cat >>confdefs.h <<\_ACEOF | |
20461 | #define SETPGRP_VOID 1 | |
bec39cab | 20462 | _ACEOF |
97bf5e38 MK |
20463 | |
20464 | fi | |
a3828db0 MK |
20465 | |
20466 | else | |
b4e70030 JB |
20467 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
20468 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 20469 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 20470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20471 | else |
bec39cab AC |
20472 | cat >conftest.$ac_ext <<_ACEOF |
20473 | /* confdefs.h. */ | |
20474 | _ACEOF | |
20475 | cat confdefs.h >>conftest.$ac_ext | |
20476 | cat >>conftest.$ac_ext <<_ACEOF | |
20477 | /* end confdefs.h. */ | |
a3828db0 MK |
20478 | |
20479 | #include <unistd.h> | |
20480 | ||
bec39cab AC |
20481 | int |
20482 | main () | |
20483 | { | |
a3828db0 MK |
20484 | |
20485 | if (setpgrp(1,1) == -1) | |
20486 | exit (0); | |
20487 | else | |
20488 | exit (1); | |
20489 | ||
bec39cab AC |
20490 | ; |
20491 | return 0; | |
20492 | } | |
20493 | _ACEOF | |
20494 | rm -f conftest.$ac_objext | |
20495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20496 | (eval $ac_compile) 2>conftest.er1 | |
20497 | ac_status=$? | |
20498 | grep -v '^ *+' conftest.er1 >conftest.err | |
20499 | rm -f conftest.er1 | |
20500 | cat conftest.err >&5 | |
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20502 | (exit $ac_status); } && | |
b4e70030 JB |
20503 | { ac_try='test -z "$ac_c_werror_flag" |
20504 | || test ! -s conftest.err' | |
bec39cab AC |
20505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20506 | (eval $ac_try) 2>&5 | |
20507 | ac_status=$? | |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); }; } && | |
20510 | { ac_try='test -s conftest.$ac_objext' | |
20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20512 | (eval $ac_try) 2>&5 | |
20513 | ac_status=$? | |
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20515 | (exit $ac_status); }; }; then | |
a3828db0 | 20516 | ac_cv_func_setpgrp_void=no |
c906108c | 20517 | else |
bec39cab AC |
20518 | echo "$as_me: failed program was:" >&5 |
20519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20520 | ||
b4e70030 | 20521 | ac_cv_func_setpgrp_void=yes |
c906108c | 20522 | fi |
bec39cab | 20523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20524 | fi |
b4e70030 JB |
20525 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
20526 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 20527 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 20528 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 20529 | #define SETPGRP_VOID 1 |
bec39cab | 20530 | _ACEOF |
c3f6f71d | 20531 | |
a3828db0 | 20532 | fi |
c906108c SS |
20533 | fi |
20534 | ||
a3828db0 MK |
20535 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
20536 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
20537 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
20538 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 20539 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
20540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20541 | else | |
20542 | cat >conftest.$ac_ext <<_ACEOF | |
20543 | /* confdefs.h. */ | |
20544 | _ACEOF | |
20545 | cat confdefs.h >>conftest.$ac_ext | |
20546 | cat >>conftest.$ac_ext <<_ACEOF | |
20547 | /* end confdefs.h. */ | |
a3828db0 MK |
20548 | |
20549 | #include <setjmp.h> | |
20550 | ||
bec39cab AC |
20551 | int |
20552 | main () | |
20553 | { | |
a3828db0 | 20554 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
20555 | ; |
20556 | return 0; | |
20557 | } | |
20558 | _ACEOF | |
20559 | rm -f conftest.$ac_objext | |
20560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20561 | (eval $ac_compile) 2>conftest.er1 | |
20562 | ac_status=$? | |
20563 | grep -v '^ *+' conftest.er1 >conftest.err | |
20564 | rm -f conftest.er1 | |
20565 | cat conftest.err >&5 | |
20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20567 | (exit $ac_status); } && | |
b4e70030 JB |
20568 | { ac_try='test -z "$ac_c_werror_flag" |
20569 | || test ! -s conftest.err' | |
bec39cab AC |
20570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20571 | (eval $ac_try) 2>&5 | |
20572 | ac_status=$? | |
20573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20574 | (exit $ac_status); }; } && | |
20575 | { ac_try='test -s conftest.$ac_objext' | |
20576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20577 | (eval $ac_try) 2>&5 | |
20578 | ac_status=$? | |
20579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20580 | (exit $ac_status); }; }; then | |
a3828db0 | 20581 | gdb_cv_func_sigsetjmp=yes |
c906108c | 20582 | else |
bec39cab AC |
20583 | echo "$as_me: failed program was:" >&5 |
20584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20585 | ||
b4e70030 | 20586 | gdb_cv_func_sigsetjmp=no |
c906108c | 20587 | fi |
bec39cab | 20588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20589 | fi |
b4e70030 JB |
20590 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
20591 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 20592 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 20593 | |
a3828db0 MK |
20594 | cat >>confdefs.h <<\_ACEOF |
20595 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 20596 | _ACEOF |
c906108c | 20597 | |
97bf5e38 | 20598 | fi |
c906108c | 20599 | |
a3828db0 MK |
20600 | # Assume we'll default to using the included libiberty regex. |
20601 | gdb_use_included_regex=yes | |
20602 | ||
20603 | # However, if the system regex is GNU regex, then default to *not* | |
20604 | # using the included regex. | |
b4e70030 JB |
20605 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
20606 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 20607 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20609 | else | |
20610 | cat >conftest.$ac_ext <<_ACEOF | |
20611 | /* confdefs.h. */ | |
20612 | _ACEOF | |
20613 | cat confdefs.h >>conftest.$ac_ext | |
20614 | cat >>conftest.$ac_ext <<_ACEOF | |
20615 | /* end confdefs.h. */ | |
a3828db0 | 20616 | #include <gnu-versions.h> |
bec39cab AC |
20617 | int |
20618 | main () | |
20619 | { | |
a3828db0 MK |
20620 | #define REGEX_INTERFACE_VERSION 1 |
20621 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
20622 | # error "Version mismatch" | |
20623 | #endif | |
bec39cab AC |
20624 | ; |
20625 | return 0; | |
20626 | } | |
20627 | _ACEOF | |
20628 | rm -f conftest.$ac_objext | |
20629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20630 | (eval $ac_compile) 2>conftest.er1 | |
20631 | ac_status=$? | |
20632 | grep -v '^ *+' conftest.er1 >conftest.err | |
20633 | rm -f conftest.er1 | |
20634 | cat conftest.err >&5 | |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20636 | (exit $ac_status); } && | |
b4e70030 JB |
20637 | { ac_try='test -z "$ac_c_werror_flag" |
20638 | || test ! -s conftest.err' | |
bec39cab AC |
20639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20640 | (eval $ac_try) 2>&5 | |
20641 | ac_status=$? | |
20642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20643 | (exit $ac_status); }; } && | |
20644 | { ac_try='test -s conftest.$ac_objext' | |
20645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20646 | (eval $ac_try) 2>&5 | |
20647 | ac_status=$? | |
20648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20649 | (exit $ac_status); }; }; then | |
a3828db0 | 20650 | gdb_cv_have_gnu_regex=yes |
c906108c | 20651 | else |
bec39cab AC |
20652 | echo "$as_me: failed program was:" >&5 |
20653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20654 | ||
b4e70030 | 20655 | gdb_cv_have_gnu_regex=no |
c906108c | 20656 | fi |
bec39cab | 20657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20658 | fi |
b4e70030 JB |
20659 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
20660 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
20661 | if test $gdb_cv_have_gnu_regex = yes; then |
20662 | gdb_use_included_regex=no | |
20663 | fi | |
c906108c | 20664 | |
a3828db0 | 20665 | |
b4e70030 | 20666 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 20667 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
20668 | withval="$with_included_regex" |
20669 | gdb_with_regex=$withval | |
a3828db0 MK |
20670 | else |
20671 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 20672 | fi; |
a3828db0 MK |
20673 | if test "$gdb_with_regex" = yes; then |
20674 | ||
20675 | cat >>confdefs.h <<\_ACEOF | |
20676 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 20677 | _ACEOF |
c906108c | 20678 | |
97bf5e38 | 20679 | fi |
c906108c | 20680 | |
5c45e068 | 20681 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
20682 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
20683 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 20684 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
20685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20686 | else | |
20687 | cat >conftest.$ac_ext <<_ACEOF | |
20688 | /* confdefs.h. */ | |
20689 | _ACEOF | |
20690 | cat confdefs.h >>conftest.$ac_ext | |
20691 | cat >>conftest.$ac_ext <<_ACEOF | |
20692 | /* end confdefs.h. */ | |
a3828db0 MK |
20693 | #include <sys/param.h> |
20694 | #include <sys/proc.h> | |
5c45e068 MK |
20695 | |
20696 | ||
bec39cab AC |
20697 | int |
20698 | main () | |
20699 | { | |
5c45e068 MK |
20700 | static struct thread ac_aggr; |
20701 | if (ac_aggr.td_pcb) | |
20702 | return 0; | |
bec39cab AC |
20703 | ; |
20704 | return 0; | |
20705 | } | |
20706 | _ACEOF | |
20707 | rm -f conftest.$ac_objext | |
20708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20709 | (eval $ac_compile) 2>conftest.er1 | |
20710 | ac_status=$? | |
20711 | grep -v '^ *+' conftest.er1 >conftest.err | |
20712 | rm -f conftest.er1 | |
20713 | cat conftest.err >&5 | |
20714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20715 | (exit $ac_status); } && | |
b4e70030 JB |
20716 | { ac_try='test -z "$ac_c_werror_flag" |
20717 | || test ! -s conftest.err' | |
bec39cab AC |
20718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20719 | (eval $ac_try) 2>&5 | |
20720 | ac_status=$? | |
20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20722 | (exit $ac_status); }; } && | |
20723 | { ac_try='test -s conftest.$ac_objext' | |
20724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20725 | (eval $ac_try) 2>&5 | |
20726 | ac_status=$? | |
20727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20728 | (exit $ac_status); }; }; then | |
5c45e068 | 20729 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 20730 | else |
bec39cab AC |
20731 | echo "$as_me: failed program was:" >&5 |
20732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20733 | ||
b4e70030 | 20734 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
20735 | /* confdefs.h. */ |
20736 | _ACEOF | |
20737 | cat confdefs.h >>conftest.$ac_ext | |
20738 | cat >>conftest.$ac_ext <<_ACEOF | |
20739 | /* end confdefs.h. */ | |
20740 | #include <sys/param.h> | |
20741 | #include <sys/proc.h> | |
20742 | ||
20743 | ||
20744 | int | |
20745 | main () | |
20746 | { | |
20747 | static struct thread ac_aggr; | |
20748 | if (sizeof ac_aggr.td_pcb) | |
20749 | return 0; | |
20750 | ; | |
20751 | return 0; | |
20752 | } | |
20753 | _ACEOF | |
20754 | rm -f conftest.$ac_objext | |
20755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20756 | (eval $ac_compile) 2>conftest.er1 | |
20757 | ac_status=$? | |
20758 | grep -v '^ *+' conftest.er1 >conftest.err | |
20759 | rm -f conftest.er1 | |
20760 | cat conftest.err >&5 | |
20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20762 | (exit $ac_status); } && | |
b4e70030 JB |
20763 | { ac_try='test -z "$ac_c_werror_flag" |
20764 | || test ! -s conftest.err' | |
5c45e068 MK |
20765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20766 | (eval $ac_try) 2>&5 | |
20767 | ac_status=$? | |
20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20769 | (exit $ac_status); }; } && | |
20770 | { ac_try='test -s conftest.$ac_objext' | |
20771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20772 | (eval $ac_try) 2>&5 | |
20773 | ac_status=$? | |
20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20775 | (exit $ac_status); }; }; then | |
20776 | ac_cv_member_struct_thread_td_pcb=yes | |
20777 | else | |
20778 | echo "$as_me: failed program was:" >&5 | |
20779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20780 | ||
b4e70030 | 20781 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
20782 | fi |
20783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 20784 | fi |
bec39cab | 20785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20786 | fi |
b4e70030 JB |
20787 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
20788 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 20789 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 20790 | |
5c45e068 | 20791 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 20792 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 20793 | _ACEOF |
c906108c | 20794 | |
5c45e068 | 20795 | |
97bf5e38 | 20796 | fi |
c906108c | 20797 | |
5c45e068 | 20798 | |
a3828db0 | 20799 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
20800 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
20801 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 20802 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
20803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20804 | else | |
20805 | cat >conftest.$ac_ext <<_ACEOF | |
20806 | /* confdefs.h. */ | |
20807 | _ACEOF | |
20808 | cat confdefs.h >>conftest.$ac_ext | |
20809 | cat >>conftest.$ac_ext <<_ACEOF | |
20810 | /* end confdefs.h. */ | |
a3828db0 MK |
20811 | #include <sys/param.h> |
20812 | #include <sys/lwp.h> | |
bec39cab AC |
20813 | int |
20814 | main () | |
20815 | { | |
a3828db0 | 20816 | struct lwp l; |
bec39cab AC |
20817 | ; |
20818 | return 0; | |
20819 | } | |
20820 | _ACEOF | |
20821 | rm -f conftest.$ac_objext | |
20822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20823 | (eval $ac_compile) 2>conftest.er1 | |
20824 | ac_status=$? | |
20825 | grep -v '^ *+' conftest.er1 >conftest.err | |
20826 | rm -f conftest.er1 | |
20827 | cat conftest.err >&5 | |
20828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20829 | (exit $ac_status); } && | |
b4e70030 JB |
20830 | { ac_try='test -z "$ac_c_werror_flag" |
20831 | || test ! -s conftest.err' | |
bec39cab AC |
20832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20833 | (eval $ac_try) 2>&5 | |
20834 | ac_status=$? | |
20835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20836 | (exit $ac_status); }; } && | |
20837 | { ac_try='test -s conftest.$ac_objext' | |
20838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20839 | (eval $ac_try) 2>&5 | |
20840 | ac_status=$? | |
20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 | (exit $ac_status); }; }; then | |
a3828db0 | 20843 | gdb_cv_struct_lwp=yes |
c906108c | 20844 | else |
bec39cab AC |
20845 | echo "$as_me: failed program was:" >&5 |
20846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20847 | ||
b4e70030 | 20848 | gdb_cv_struct_lwp=no |
c906108c | 20849 | fi |
bec39cab | 20850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20851 | fi |
b4e70030 JB |
20852 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
20853 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 20854 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 20855 | |
a3828db0 MK |
20856 | cat >>confdefs.h <<\_ACEOF |
20857 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 20858 | _ACEOF |
c906108c | 20859 | |
97bf5e38 | 20860 | fi |
c906108c | 20861 | |
a3828db0 | 20862 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
20863 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
20864 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 20865 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
20866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20867 | else | |
20868 | cat >conftest.$ac_ext <<_ACEOF | |
20869 | /* confdefs.h. */ | |
20870 | _ACEOF | |
20871 | cat confdefs.h >>conftest.$ac_ext | |
20872 | cat >>conftest.$ac_ext <<_ACEOF | |
20873 | /* end confdefs.h. */ | |
a3828db0 MK |
20874 | #include <sys/types.h> |
20875 | #include <machine/reg.h> | |
bec39cab AC |
20876 | int |
20877 | main () | |
20878 | { | |
a3828db0 | 20879 | struct reg r; |
bec39cab AC |
20880 | ; |
20881 | return 0; | |
20882 | } | |
20883 | _ACEOF | |
20884 | rm -f conftest.$ac_objext | |
20885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20886 | (eval $ac_compile) 2>conftest.er1 | |
20887 | ac_status=$? | |
20888 | grep -v '^ *+' conftest.er1 >conftest.err | |
20889 | rm -f conftest.er1 | |
20890 | cat conftest.err >&5 | |
20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20892 | (exit $ac_status); } && | |
b4e70030 JB |
20893 | { ac_try='test -z "$ac_c_werror_flag" |
20894 | || test ! -s conftest.err' | |
bec39cab AC |
20895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20896 | (eval $ac_try) 2>&5 | |
20897 | ac_status=$? | |
20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20899 | (exit $ac_status); }; } && | |
20900 | { ac_try='test -s conftest.$ac_objext' | |
20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20902 | (eval $ac_try) 2>&5 | |
20903 | ac_status=$? | |
20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20905 | (exit $ac_status); }; }; then | |
a3828db0 | 20906 | gdb_cv_struct_reg=yes |
27ca5dad | 20907 | else |
bec39cab AC |
20908 | echo "$as_me: failed program was:" >&5 |
20909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20910 | ||
b4e70030 | 20911 | gdb_cv_struct_reg=no |
27ca5dad | 20912 | fi |
bec39cab | 20913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 20914 | fi |
b4e70030 JB |
20915 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
20916 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 20917 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
20918 | |
20919 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20920 | #define HAVE_STRUCT_REG 1 |
bec39cab | 20921 | _ACEOF |
27ca5dad MC |
20922 | |
20923 | fi | |
97bf5e38 | 20924 | |
a3828db0 MK |
20925 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
20926 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
20927 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
20928 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 20929 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 20930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 20931 | else |
bec39cab AC |
20932 | cat >conftest.$ac_ext <<_ACEOF |
20933 | /* confdefs.h. */ | |
20934 | _ACEOF | |
20935 | cat confdefs.h >>conftest.$ac_ext | |
20936 | cat >>conftest.$ac_ext <<_ACEOF | |
20937 | /* end confdefs.h. */ | |
a3828db0 | 20938 | #include <machine/reg.h> |
5c45e068 MK |
20939 | |
20940 | int | |
20941 | main () | |
20942 | { | |
20943 | static struct reg ac_aggr; | |
20944 | if (ac_aggr.r_fs) | |
20945 | return 0; | |
20946 | ; | |
20947 | return 0; | |
20948 | } | |
20949 | _ACEOF | |
20950 | rm -f conftest.$ac_objext | |
20951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20952 | (eval $ac_compile) 2>conftest.er1 | |
20953 | ac_status=$? | |
20954 | grep -v '^ *+' conftest.er1 >conftest.err | |
20955 | rm -f conftest.er1 | |
20956 | cat conftest.err >&5 | |
20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20958 | (exit $ac_status); } && | |
b4e70030 JB |
20959 | { ac_try='test -z "$ac_c_werror_flag" |
20960 | || test ! -s conftest.err' | |
5c45e068 MK |
20961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20962 | (eval $ac_try) 2>&5 | |
20963 | ac_status=$? | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); }; } && | |
20966 | { ac_try='test -s conftest.$ac_objext' | |
20967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20968 | (eval $ac_try) 2>&5 | |
20969 | ac_status=$? | |
20970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20971 | (exit $ac_status); }; }; then | |
20972 | ac_cv_member_struct_reg_r_fs=yes | |
20973 | else | |
20974 | echo "$as_me: failed program was:" >&5 | |
20975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20976 | ||
b4e70030 | 20977 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
20978 | /* confdefs.h. */ |
20979 | _ACEOF | |
20980 | cat confdefs.h >>conftest.$ac_ext | |
20981 | cat >>conftest.$ac_ext <<_ACEOF | |
20982 | /* end confdefs.h. */ | |
20983 | #include <machine/reg.h> | |
20984 | ||
bec39cab AC |
20985 | int |
20986 | main () | |
20987 | { | |
5c45e068 MK |
20988 | static struct reg ac_aggr; |
20989 | if (sizeof ac_aggr.r_fs) | |
20990 | return 0; | |
bec39cab AC |
20991 | ; |
20992 | return 0; | |
20993 | } | |
20994 | _ACEOF | |
20995 | rm -f conftest.$ac_objext | |
20996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20997 | (eval $ac_compile) 2>conftest.er1 | |
20998 | ac_status=$? | |
20999 | grep -v '^ *+' conftest.er1 >conftest.err | |
21000 | rm -f conftest.er1 | |
21001 | cat conftest.err >&5 | |
21002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21003 | (exit $ac_status); } && | |
b4e70030 JB |
21004 | { ac_try='test -z "$ac_c_werror_flag" |
21005 | || test ! -s conftest.err' | |
bec39cab AC |
21006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21007 | (eval $ac_try) 2>&5 | |
21008 | ac_status=$? | |
21009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21010 | (exit $ac_status); }; } && | |
21011 | { ac_try='test -s conftest.$ac_objext' | |
21012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21013 | (eval $ac_try) 2>&5 | |
21014 | ac_status=$? | |
21015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21016 | (exit $ac_status); }; }; then | |
5c45e068 | 21017 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 21018 | else |
bec39cab AC |
21019 | echo "$as_me: failed program was:" >&5 |
21020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21021 | ||
b4e70030 | 21022 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 21023 | fi |
bec39cab | 21024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 21025 | fi |
5c45e068 MK |
21026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21027 | fi | |
b4e70030 JB |
21028 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
21029 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
21030 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
21031 | ||
21032 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 21033 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 21034 | _ACEOF |
3862412b | 21035 | |
5c45e068 | 21036 | |
97bf5e38 | 21037 | fi |
b4e70030 JB |
21038 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
21039 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 21040 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 21041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 21042 | else |
bec39cab AC |
21043 | cat >conftest.$ac_ext <<_ACEOF |
21044 | /* confdefs.h. */ | |
21045 | _ACEOF | |
21046 | cat confdefs.h >>conftest.$ac_ext | |
21047 | cat >>conftest.$ac_ext <<_ACEOF | |
21048 | /* end confdefs.h. */ | |
a3828db0 | 21049 | #include <machine/reg.h> |
5c45e068 | 21050 | |
bec39cab AC |
21051 | int |
21052 | main () | |
21053 | { | |
5c45e068 MK |
21054 | static struct reg ac_aggr; |
21055 | if (ac_aggr.r_gs) | |
21056 | return 0; | |
bec39cab AC |
21057 | ; |
21058 | return 0; | |
21059 | } | |
21060 | _ACEOF | |
21061 | rm -f conftest.$ac_objext | |
21062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21063 | (eval $ac_compile) 2>conftest.er1 | |
21064 | ac_status=$? | |
21065 | grep -v '^ *+' conftest.er1 >conftest.err | |
21066 | rm -f conftest.er1 | |
21067 | cat conftest.err >&5 | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); } && | |
b4e70030 JB |
21070 | { ac_try='test -z "$ac_c_werror_flag" |
21071 | || test ! -s conftest.err' | |
bec39cab AC |
21072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21073 | (eval $ac_try) 2>&5 | |
21074 | ac_status=$? | |
21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21076 | (exit $ac_status); }; } && | |
21077 | { ac_try='test -s conftest.$ac_objext' | |
21078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21079 | (eval $ac_try) 2>&5 | |
21080 | ac_status=$? | |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21082 | (exit $ac_status); }; }; then | |
5c45e068 | 21083 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 21084 | else |
bec39cab AC |
21085 | echo "$as_me: failed program was:" >&5 |
21086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21087 | ||
b4e70030 | 21088 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
21089 | /* confdefs.h. */ |
21090 | _ACEOF | |
21091 | cat confdefs.h >>conftest.$ac_ext | |
21092 | cat >>conftest.$ac_ext <<_ACEOF | |
21093 | /* end confdefs.h. */ | |
21094 | #include <machine/reg.h> | |
21095 | ||
21096 | int | |
21097 | main () | |
21098 | { | |
21099 | static struct reg ac_aggr; | |
21100 | if (sizeof ac_aggr.r_gs) | |
21101 | return 0; | |
21102 | ; | |
21103 | return 0; | |
21104 | } | |
21105 | _ACEOF | |
21106 | rm -f conftest.$ac_objext | |
21107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21108 | (eval $ac_compile) 2>conftest.er1 | |
21109 | ac_status=$? | |
21110 | grep -v '^ *+' conftest.er1 >conftest.err | |
21111 | rm -f conftest.er1 | |
21112 | cat conftest.err >&5 | |
21113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21114 | (exit $ac_status); } && | |
b4e70030 JB |
21115 | { ac_try='test -z "$ac_c_werror_flag" |
21116 | || test ! -s conftest.err' | |
5c45e068 MK |
21117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21118 | (eval $ac_try) 2>&5 | |
21119 | ac_status=$? | |
21120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21121 | (exit $ac_status); }; } && | |
21122 | { ac_try='test -s conftest.$ac_objext' | |
21123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21124 | (eval $ac_try) 2>&5 | |
21125 | ac_status=$? | |
21126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21127 | (exit $ac_status); }; }; then | |
21128 | ac_cv_member_struct_reg_r_gs=yes | |
21129 | else | |
21130 | echo "$as_me: failed program was:" >&5 | |
21131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21132 | ||
b4e70030 | 21133 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 21134 | fi |
bec39cab | 21135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 21136 | fi |
5c45e068 MK |
21137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21138 | fi | |
b4e70030 JB |
21139 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
21140 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
21141 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
21142 | ||
21143 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 21144 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 21145 | _ACEOF |
3862412b | 21146 | |
5c45e068 | 21147 | |
97bf5e38 | 21148 | fi |
3862412b | 21149 | |
5c45e068 | 21150 | |
a3828db0 | 21151 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
21152 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
21153 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 21154 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 21155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 21156 | else |
bec39cab AC |
21157 | cat >conftest.$ac_ext <<_ACEOF |
21158 | /* confdefs.h. */ | |
21159 | _ACEOF | |
21160 | cat confdefs.h >>conftest.$ac_ext | |
21161 | cat >>conftest.$ac_ext <<_ACEOF | |
21162 | /* end confdefs.h. */ | |
a3828db0 | 21163 | #include <sys/ptrace.h> |
bec39cab AC |
21164 | int |
21165 | main () | |
21166 | { | |
a3828db0 | 21167 | PTRACE_GETREGS; |
bec39cab AC |
21168 | ; |
21169 | return 0; | |
21170 | } | |
21171 | _ACEOF | |
21172 | rm -f conftest.$ac_objext | |
21173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21174 | (eval $ac_compile) 2>conftest.er1 | |
21175 | ac_status=$? | |
21176 | grep -v '^ *+' conftest.er1 >conftest.err | |
21177 | rm -f conftest.er1 | |
21178 | cat conftest.err >&5 | |
21179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21180 | (exit $ac_status); } && | |
b4e70030 JB |
21181 | { ac_try='test -z "$ac_c_werror_flag" |
21182 | || test ! -s conftest.err' | |
bec39cab AC |
21183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21184 | (eval $ac_try) 2>&5 | |
21185 | ac_status=$? | |
21186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21187 | (exit $ac_status); }; } && | |
21188 | { ac_try='test -s conftest.$ac_objext' | |
21189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21190 | (eval $ac_try) 2>&5 | |
21191 | ac_status=$? | |
21192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21193 | (exit $ac_status); }; }; then | |
a3828db0 | 21194 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 21195 | else |
bec39cab AC |
21196 | echo "$as_me: failed program was:" >&5 |
21197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21198 | ||
b4e70030 | 21199 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 21200 | fi |
bec39cab | 21201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
21202 | fi |
21203 | ||
b4e70030 JB |
21204 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
21205 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 21206 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
21207 | |
21208 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 21209 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 21210 | _ACEOF |
451928c5 | 21211 | |
97bf5e38 | 21212 | fi |
451928c5 | 21213 | |
a3828db0 | 21214 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
21215 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
21216 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 21217 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 21218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 21219 | else |
bec39cab AC |
21220 | cat >conftest.$ac_ext <<_ACEOF |
21221 | /* confdefs.h. */ | |
21222 | _ACEOF | |
21223 | cat confdefs.h >>conftest.$ac_ext | |
21224 | cat >>conftest.$ac_ext <<_ACEOF | |
21225 | /* end confdefs.h. */ | |
a3828db0 | 21226 | #include <sys/ptrace.h> |
bec39cab AC |
21227 | int |
21228 | main () | |
21229 | { | |
a3828db0 | 21230 | PTRACE_GETFPXREGS; |
bec39cab AC |
21231 | ; |
21232 | return 0; | |
21233 | } | |
21234 | _ACEOF | |
21235 | rm -f conftest.$ac_objext | |
21236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21237 | (eval $ac_compile) 2>conftest.er1 | |
21238 | ac_status=$? | |
21239 | grep -v '^ *+' conftest.er1 >conftest.err | |
21240 | rm -f conftest.er1 | |
21241 | cat conftest.err >&5 | |
21242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21243 | (exit $ac_status); } && | |
b4e70030 JB |
21244 | { ac_try='test -z "$ac_c_werror_flag" |
21245 | || test ! -s conftest.err' | |
bec39cab AC |
21246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21247 | (eval $ac_try) 2>&5 | |
21248 | ac_status=$? | |
21249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21250 | (exit $ac_status); }; } && | |
21251 | { ac_try='test -s conftest.$ac_objext' | |
21252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21253 | (eval $ac_try) 2>&5 | |
21254 | ac_status=$? | |
21255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21256 | (exit $ac_status); }; }; then | |
a3828db0 | 21257 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 21258 | else |
bec39cab AC |
21259 | echo "$as_me: failed program was:" >&5 |
21260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21261 | ||
b4e70030 | 21262 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 21263 | fi |
bec39cab | 21264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
21265 | fi |
21266 | ||
b4e70030 JB |
21267 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
21268 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 21269 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
21270 | |
21271 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 21272 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 21273 | _ACEOF |
451928c5 | 21274 | |
97bf5e38 | 21275 | fi |
451928c5 | 21276 | |
a3828db0 | 21277 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
21278 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
21279 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 21280 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 21281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 21282 | else |
bec39cab AC |
21283 | cat >conftest.$ac_ext <<_ACEOF |
21284 | /* confdefs.h. */ | |
21285 | _ACEOF | |
21286 | cat confdefs.h >>conftest.$ac_ext | |
21287 | cat >>conftest.$ac_ext <<_ACEOF | |
21288 | /* end confdefs.h. */ | |
a3828db0 MK |
21289 | #include <sys/types.h> |
21290 | #include <sys/ptrace.h> | |
bec39cab AC |
21291 | int |
21292 | main () | |
21293 | { | |
a3828db0 | 21294 | PT_GETDBREGS; |
bec39cab AC |
21295 | ; |
21296 | return 0; | |
21297 | } | |
21298 | _ACEOF | |
21299 | rm -f conftest.$ac_objext | |
21300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21301 | (eval $ac_compile) 2>conftest.er1 | |
21302 | ac_status=$? | |
21303 | grep -v '^ *+' conftest.er1 >conftest.err | |
21304 | rm -f conftest.er1 | |
21305 | cat conftest.err >&5 | |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21307 | (exit $ac_status); } && | |
b4e70030 JB |
21308 | { ac_try='test -z "$ac_c_werror_flag" |
21309 | || test ! -s conftest.err' | |
bec39cab AC |
21310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21311 | (eval $ac_try) 2>&5 | |
21312 | ac_status=$? | |
21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21314 | (exit $ac_status); }; } && | |
21315 | { ac_try='test -s conftest.$ac_objext' | |
21316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21317 | (eval $ac_try) 2>&5 | |
21318 | ac_status=$? | |
21319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21320 | (exit $ac_status); }; }; then | |
a3828db0 | 21321 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 21322 | else |
bec39cab AC |
21323 | echo "$as_me: failed program was:" >&5 |
21324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21325 | ||
b4e70030 | 21326 | gdb_cv_have_pt_getdbregs=no |
3862412b | 21327 | fi |
bec39cab | 21328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
21329 | fi |
21330 | ||
b4e70030 JB |
21331 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
21332 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 21333 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
21334 | |
21335 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 21336 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 21337 | _ACEOF |
3862412b | 21338 | |
97bf5e38 | 21339 | fi |
3862412b | 21340 | |
a3828db0 | 21341 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
21342 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
21343 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 21344 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 21345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 21346 | else |
bec39cab AC |
21347 | cat >conftest.$ac_ext <<_ACEOF |
21348 | /* confdefs.h. */ | |
21349 | _ACEOF | |
21350 | cat confdefs.h >>conftest.$ac_ext | |
21351 | cat >>conftest.$ac_ext <<_ACEOF | |
21352 | /* end confdefs.h. */ | |
a3828db0 MK |
21353 | #include <sys/types.h> |
21354 | #include <sys/ptrace.h> | |
bec39cab AC |
21355 | int |
21356 | main () | |
21357 | { | |
a3828db0 | 21358 | PT_GETXMMREGS; |
bec39cab AC |
21359 | ; |
21360 | return 0; | |
21361 | } | |
21362 | _ACEOF | |
21363 | rm -f conftest.$ac_objext | |
21364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21365 | (eval $ac_compile) 2>conftest.er1 | |
21366 | ac_status=$? | |
21367 | grep -v '^ *+' conftest.er1 >conftest.err | |
21368 | rm -f conftest.er1 | |
21369 | cat conftest.err >&5 | |
21370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21371 | (exit $ac_status); } && | |
b4e70030 JB |
21372 | { ac_try='test -z "$ac_c_werror_flag" |
21373 | || test ! -s conftest.err' | |
bec39cab AC |
21374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21375 | (eval $ac_try) 2>&5 | |
21376 | ac_status=$? | |
21377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21378 | (exit $ac_status); }; } && | |
21379 | { ac_try='test -s conftest.$ac_objext' | |
21380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21381 | (eval $ac_try) 2>&5 | |
21382 | ac_status=$? | |
21383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21384 | (exit $ac_status); }; }; then | |
a3828db0 | 21385 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 21386 | else |
bec39cab AC |
21387 | echo "$as_me: failed program was:" >&5 |
21388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21389 | ||
b4e70030 | 21390 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 21391 | fi |
bec39cab | 21392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
21393 | fi |
21394 | ||
b4e70030 JB |
21395 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
21396 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 21397 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
21398 | |
21399 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 21400 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 21401 | _ACEOF |
3862412b | 21402 | |
97bf5e38 | 21403 | fi |
3862412b | 21404 | |
eb368090 | 21405 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
21406 | |
21407 | if test "${target}" = "${host}"; then | |
21408 | case "${host}" in | |
97bf5e38 | 21409 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
21410 | |
21411 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21412 | #define NEW_PROC_API 1 |
bec39cab | 21413 | _ACEOF |
97bf5e38 MK |
21414 | |
21415 | ;; | |
c162e8c9 | 21416 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
60ca704f SE |
21417 | |
21418 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21419 | #define NEW_PROC_API 1 |
bec39cab | 21420 | _ACEOF |
c960c18f AC |
21421 | |
21422 | ;; | |
21423 | mips-sgi-irix5*) | |
21424 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
21425 | |
21426 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 21427 | #define _KMEMUSER 1 |
bec39cab | 21428 | _ACEOF |
97bf5e38 MK |
21429 | |
21430 | ;; | |
21431 | esac | |
21432 | fi | |
21433 | ||
21434 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
21435 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
21436 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21437 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
21438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21439 | else | |
21440 | cat >conftest.$ac_ext <<_ACEOF | |
21441 | /* confdefs.h. */ | |
21442 | _ACEOF | |
21443 | cat confdefs.h >>conftest.$ac_ext | |
21444 | cat >>conftest.$ac_ext <<_ACEOF | |
21445 | /* end confdefs.h. */ | |
596c9d4b KB |
21446 | |
21447 | #define _SYSCALL32 | |
21448 | #include <sys/procfs.h> | |
bec39cab AC |
21449 | int |
21450 | main () | |
21451 | { | |
97bf5e38 | 21452 | pstatus_t avar |
bec39cab AC |
21453 | ; |
21454 | return 0; | |
21455 | } | |
21456 | _ACEOF | |
21457 | rm -f conftest.$ac_objext | |
21458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21459 | (eval $ac_compile) 2>conftest.er1 | |
21460 | ac_status=$? | |
21461 | grep -v '^ *+' conftest.er1 >conftest.err | |
21462 | rm -f conftest.er1 | |
21463 | cat conftest.err >&5 | |
21464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21465 | (exit $ac_status); } && | |
b4e70030 JB |
21466 | { ac_try='test -z "$ac_c_werror_flag" |
21467 | || test ! -s conftest.err' | |
bec39cab AC |
21468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21469 | (eval $ac_try) 2>&5 | |
21470 | ac_status=$? | |
21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21472 | (exit $ac_status); }; } && | |
21473 | { ac_try='test -s conftest.$ac_objext' | |
21474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21475 | (eval $ac_try) 2>&5 | |
21476 | ac_status=$? | |
21477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21478 | (exit $ac_status); }; }; then | |
97bf5e38 | 21479 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 21480 | else |
bec39cab AC |
21481 | echo "$as_me: failed program was:" >&5 |
21482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21483 | ||
b4e70030 | 21484 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 21485 | |
596c9d4b | 21486 | fi |
bec39cab | 21487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21488 | fi |
21489 | ||
97bf5e38 | 21490 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
21491 | |
21492 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21493 | #define HAVE_PSTATUS_T 1 |
bec39cab | 21494 | _ACEOF |
596c9d4b KB |
21495 | |
21496 | fi | |
b4e70030 JB |
21497 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
21498 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 21499 | |
b4e70030 JB |
21500 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
21501 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21502 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
21503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 21504 | else |
bec39cab AC |
21505 | cat >conftest.$ac_ext <<_ACEOF |
21506 | /* confdefs.h. */ | |
21507 | _ACEOF | |
21508 | cat confdefs.h >>conftest.$ac_ext | |
21509 | cat >>conftest.$ac_ext <<_ACEOF | |
21510 | /* end confdefs.h. */ | |
596c9d4b KB |
21511 | |
21512 | #define _SYSCALL32 | |
21513 | #include <sys/procfs.h> | |
bec39cab AC |
21514 | int |
21515 | main () | |
21516 | { | |
97bf5e38 | 21517 | prrun_t avar |
bec39cab AC |
21518 | ; |
21519 | return 0; | |
21520 | } | |
21521 | _ACEOF | |
21522 | rm -f conftest.$ac_objext | |
21523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21524 | (eval $ac_compile) 2>conftest.er1 | |
21525 | ac_status=$? | |
21526 | grep -v '^ *+' conftest.er1 >conftest.err | |
21527 | rm -f conftest.er1 | |
21528 | cat conftest.err >&5 | |
21529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21530 | (exit $ac_status); } && | |
b4e70030 JB |
21531 | { ac_try='test -z "$ac_c_werror_flag" |
21532 | || test ! -s conftest.err' | |
bec39cab AC |
21533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21534 | (eval $ac_try) 2>&5 | |
21535 | ac_status=$? | |
21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21537 | (exit $ac_status); }; } && | |
21538 | { ac_try='test -s conftest.$ac_objext' | |
21539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21540 | (eval $ac_try) 2>&5 | |
21541 | ac_status=$? | |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21543 | (exit $ac_status); }; }; then | |
97bf5e38 | 21544 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 21545 | else |
bec39cab AC |
21546 | echo "$as_me: failed program was:" >&5 |
21547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21548 | ||
b4e70030 | 21549 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 21550 | |
596c9d4b | 21551 | fi |
bec39cab | 21552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21553 | fi |
21554 | ||
97bf5e38 | 21555 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
21556 | |
21557 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21558 | #define HAVE_PRRUN_T 1 |
bec39cab | 21559 | _ACEOF |
596c9d4b KB |
21560 | |
21561 | fi | |
b4e70030 JB |
21562 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
21563 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 21564 | |
b4e70030 JB |
21565 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
21566 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21567 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
21568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 21569 | else |
bec39cab AC |
21570 | cat >conftest.$ac_ext <<_ACEOF |
21571 | /* confdefs.h. */ | |
21572 | _ACEOF | |
21573 | cat confdefs.h >>conftest.$ac_ext | |
21574 | cat >>conftest.$ac_ext <<_ACEOF | |
21575 | /* end confdefs.h. */ | |
596c9d4b KB |
21576 | |
21577 | #define _SYSCALL32 | |
21578 | #include <sys/procfs.h> | |
bec39cab AC |
21579 | int |
21580 | main () | |
21581 | { | |
97bf5e38 | 21582 | gregset_t avar |
bec39cab AC |
21583 | ; |
21584 | return 0; | |
21585 | } | |
21586 | _ACEOF | |
21587 | rm -f conftest.$ac_objext | |
21588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21589 | (eval $ac_compile) 2>conftest.er1 | |
21590 | ac_status=$? | |
21591 | grep -v '^ *+' conftest.er1 >conftest.err | |
21592 | rm -f conftest.er1 | |
21593 | cat conftest.err >&5 | |
21594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21595 | (exit $ac_status); } && | |
b4e70030 JB |
21596 | { ac_try='test -z "$ac_c_werror_flag" |
21597 | || test ! -s conftest.err' | |
bec39cab AC |
21598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21599 | (eval $ac_try) 2>&5 | |
21600 | ac_status=$? | |
21601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21602 | (exit $ac_status); }; } && | |
21603 | { ac_try='test -s conftest.$ac_objext' | |
21604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21605 | (eval $ac_try) 2>&5 | |
21606 | ac_status=$? | |
21607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21608 | (exit $ac_status); }; }; then | |
97bf5e38 | 21609 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 21610 | else |
bec39cab AC |
21611 | echo "$as_me: failed program was:" >&5 |
21612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21613 | ||
b4e70030 | 21614 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 21615 | |
596c9d4b | 21616 | fi |
bec39cab | 21617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21618 | fi |
21619 | ||
97bf5e38 | 21620 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
21621 | |
21622 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21623 | #define HAVE_GREGSET_T 1 |
bec39cab | 21624 | _ACEOF |
596c9d4b KB |
21625 | |
21626 | fi | |
b4e70030 JB |
21627 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
21628 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 21629 | |
b4e70030 JB |
21630 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
21631 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21632 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
21633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 21634 | else |
bec39cab AC |
21635 | cat >conftest.$ac_ext <<_ACEOF |
21636 | /* confdefs.h. */ | |
21637 | _ACEOF | |
21638 | cat confdefs.h >>conftest.$ac_ext | |
21639 | cat >>conftest.$ac_ext <<_ACEOF | |
21640 | /* end confdefs.h. */ | |
97bf5e38 MK |
21641 | |
21642 | #define _SYSCALL32 | |
d84dd0c5 | 21643 | #include <sys/procfs.h> |
bec39cab AC |
21644 | int |
21645 | main () | |
21646 | { | |
97bf5e38 | 21647 | fpregset_t avar |
bec39cab AC |
21648 | ; |
21649 | return 0; | |
21650 | } | |
21651 | _ACEOF | |
21652 | rm -f conftest.$ac_objext | |
21653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21654 | (eval $ac_compile) 2>conftest.er1 | |
21655 | ac_status=$? | |
21656 | grep -v '^ *+' conftest.er1 >conftest.err | |
21657 | rm -f conftest.er1 | |
21658 | cat conftest.err >&5 | |
21659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21660 | (exit $ac_status); } && | |
b4e70030 JB |
21661 | { ac_try='test -z "$ac_c_werror_flag" |
21662 | || test ! -s conftest.err' | |
bec39cab AC |
21663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21664 | (eval $ac_try) 2>&5 | |
21665 | ac_status=$? | |
21666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21667 | (exit $ac_status); }; } && | |
21668 | { ac_try='test -s conftest.$ac_objext' | |
21669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21670 | (eval $ac_try) 2>&5 | |
21671 | ac_status=$? | |
21672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21673 | (exit $ac_status); }; }; then | |
97bf5e38 | 21674 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 21675 | else |
bec39cab AC |
21676 | echo "$as_me: failed program was:" >&5 |
21677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21678 | ||
b4e70030 | 21679 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 21680 | |
d84dd0c5 | 21681 | fi |
bec39cab | 21682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
21683 | fi |
21684 | ||
97bf5e38 | 21685 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
21686 | |
21687 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21688 | #define HAVE_FPREGSET_T 1 |
bec39cab | 21689 | _ACEOF |
d84dd0c5 | 21690 | |
97bf5e38 | 21691 | fi |
b4e70030 JB |
21692 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
21693 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 21694 | |
b4e70030 JB |
21695 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
21696 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21697 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
21698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21699 | else |
bec39cab AC |
21700 | cat >conftest.$ac_ext <<_ACEOF |
21701 | /* confdefs.h. */ | |
21702 | _ACEOF | |
21703 | cat confdefs.h >>conftest.$ac_ext | |
21704 | cat >>conftest.$ac_ext <<_ACEOF | |
21705 | /* end confdefs.h. */ | |
c906108c | 21706 | |
97bf5e38 MK |
21707 | #define _SYSCALL32 |
21708 | #include <sys/procfs.h> | |
bec39cab AC |
21709 | int |
21710 | main () | |
21711 | { | |
97bf5e38 | 21712 | prgregset_t avar |
bec39cab AC |
21713 | ; |
21714 | return 0; | |
21715 | } | |
21716 | _ACEOF | |
21717 | rm -f conftest.$ac_objext | |
21718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21719 | (eval $ac_compile) 2>conftest.er1 | |
21720 | ac_status=$? | |
21721 | grep -v '^ *+' conftest.er1 >conftest.err | |
21722 | rm -f conftest.er1 | |
21723 | cat conftest.err >&5 | |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21725 | (exit $ac_status); } && | |
b4e70030 JB |
21726 | { ac_try='test -z "$ac_c_werror_flag" |
21727 | || test ! -s conftest.err' | |
bec39cab AC |
21728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21729 | (eval $ac_try) 2>&5 | |
21730 | ac_status=$? | |
21731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21732 | (exit $ac_status); }; } && | |
21733 | { ac_try='test -s conftest.$ac_objext' | |
21734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21735 | (eval $ac_try) 2>&5 | |
21736 | ac_status=$? | |
21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21738 | (exit $ac_status); }; }; then | |
97bf5e38 | 21739 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 21740 | else |
bec39cab AC |
21741 | echo "$as_me: failed program was:" >&5 |
21742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21743 | ||
b4e70030 | 21744 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 21745 | |
c906108c | 21746 | fi |
bec39cab | 21747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21748 | fi |
21749 | ||
97bf5e38 | 21750 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
21751 | |
21752 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21753 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 21754 | _ACEOF |
c906108c | 21755 | |
97bf5e38 | 21756 | fi |
b4e70030 JB |
21757 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
21758 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 21759 | |
b4e70030 JB |
21760 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
21761 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21762 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
21763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21764 | else |
bec39cab AC |
21765 | cat >conftest.$ac_ext <<_ACEOF |
21766 | /* confdefs.h. */ | |
21767 | _ACEOF | |
21768 | cat confdefs.h >>conftest.$ac_ext | |
21769 | cat >>conftest.$ac_ext <<_ACEOF | |
21770 | /* end confdefs.h. */ | |
97bf5e38 MK |
21771 | |
21772 | #define _SYSCALL32 | |
21773 | #include <sys/procfs.h> | |
bec39cab AC |
21774 | int |
21775 | main () | |
21776 | { | |
97bf5e38 | 21777 | prfpregset_t avar |
bec39cab AC |
21778 | ; |
21779 | return 0; | |
21780 | } | |
21781 | _ACEOF | |
21782 | rm -f conftest.$ac_objext | |
21783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21784 | (eval $ac_compile) 2>conftest.er1 | |
21785 | ac_status=$? | |
21786 | grep -v '^ *+' conftest.er1 >conftest.err | |
21787 | rm -f conftest.er1 | |
21788 | cat conftest.err >&5 | |
21789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21790 | (exit $ac_status); } && | |
b4e70030 JB |
21791 | { ac_try='test -z "$ac_c_werror_flag" |
21792 | || test ! -s conftest.err' | |
bec39cab AC |
21793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21794 | (eval $ac_try) 2>&5 | |
21795 | ac_status=$? | |
21796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21797 | (exit $ac_status); }; } && | |
21798 | { ac_try='test -s conftest.$ac_objext' | |
21799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21800 | (eval $ac_try) 2>&5 | |
21801 | ac_status=$? | |
21802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21803 | (exit $ac_status); }; }; then | |
97bf5e38 | 21804 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 21805 | else |
bec39cab AC |
21806 | echo "$as_me: failed program was:" >&5 |
21807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21808 | ||
b4e70030 | 21809 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 21810 | |
d45fe813 | 21811 | fi |
bec39cab | 21812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21813 | fi |
21814 | ||
97bf5e38 | 21815 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
21816 | |
21817 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21818 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 21819 | _ACEOF |
d45fe813 | 21820 | |
97bf5e38 | 21821 | fi |
b4e70030 JB |
21822 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
21823 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 21824 | |
b4e70030 JB |
21825 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
21826 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21827 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
21828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21829 | else |
bec39cab AC |
21830 | cat >conftest.$ac_ext <<_ACEOF |
21831 | /* confdefs.h. */ | |
21832 | _ACEOF | |
21833 | cat confdefs.h >>conftest.$ac_ext | |
21834 | cat >>conftest.$ac_ext <<_ACEOF | |
21835 | /* end confdefs.h. */ | |
97bf5e38 MK |
21836 | |
21837 | #define _SYSCALL32 | |
21838 | #include <sys/procfs.h> | |
bec39cab AC |
21839 | int |
21840 | main () | |
21841 | { | |
97bf5e38 | 21842 | prgregset32_t avar |
bec39cab AC |
21843 | ; |
21844 | return 0; | |
21845 | } | |
21846 | _ACEOF | |
21847 | rm -f conftest.$ac_objext | |
21848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21849 | (eval $ac_compile) 2>conftest.er1 | |
21850 | ac_status=$? | |
21851 | grep -v '^ *+' conftest.er1 >conftest.err | |
21852 | rm -f conftest.er1 | |
21853 | cat conftest.err >&5 | |
21854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21855 | (exit $ac_status); } && | |
b4e70030 JB |
21856 | { ac_try='test -z "$ac_c_werror_flag" |
21857 | || test ! -s conftest.err' | |
bec39cab AC |
21858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21859 | (eval $ac_try) 2>&5 | |
21860 | ac_status=$? | |
21861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21862 | (exit $ac_status); }; } && | |
21863 | { ac_try='test -s conftest.$ac_objext' | |
21864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21865 | (eval $ac_try) 2>&5 | |
21866 | ac_status=$? | |
21867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21868 | (exit $ac_status); }; }; then | |
97bf5e38 | 21869 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 21870 | else |
bec39cab AC |
21871 | echo "$as_me: failed program was:" >&5 |
21872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21873 | ||
b4e70030 | 21874 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 21875 | |
d45fe813 | 21876 | fi |
bec39cab | 21877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21878 | fi |
21879 | ||
97bf5e38 | 21880 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
21881 | |
21882 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21883 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 21884 | _ACEOF |
d45fe813 | 21885 | |
97bf5e38 | 21886 | fi |
b4e70030 JB |
21887 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
21888 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 21889 | |
b4e70030 JB |
21890 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
21891 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21892 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
21893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21894 | else |
bec39cab AC |
21895 | cat >conftest.$ac_ext <<_ACEOF |
21896 | /* confdefs.h. */ | |
21897 | _ACEOF | |
21898 | cat confdefs.h >>conftest.$ac_ext | |
21899 | cat >>conftest.$ac_ext <<_ACEOF | |
21900 | /* end confdefs.h. */ | |
97bf5e38 MK |
21901 | |
21902 | #define _SYSCALL32 | |
21903 | #include <sys/procfs.h> | |
bec39cab AC |
21904 | int |
21905 | main () | |
21906 | { | |
97bf5e38 | 21907 | prfpregset32_t avar |
bec39cab AC |
21908 | ; |
21909 | return 0; | |
21910 | } | |
21911 | _ACEOF | |
21912 | rm -f conftest.$ac_objext | |
21913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21914 | (eval $ac_compile) 2>conftest.er1 | |
21915 | ac_status=$? | |
21916 | grep -v '^ *+' conftest.er1 >conftest.err | |
21917 | rm -f conftest.er1 | |
21918 | cat conftest.err >&5 | |
21919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21920 | (exit $ac_status); } && | |
b4e70030 JB |
21921 | { ac_try='test -z "$ac_c_werror_flag" |
21922 | || test ! -s conftest.err' | |
bec39cab AC |
21923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21924 | (eval $ac_try) 2>&5 | |
21925 | ac_status=$? | |
21926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21927 | (exit $ac_status); }; } && | |
21928 | { ac_try='test -s conftest.$ac_objext' | |
21929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21930 | (eval $ac_try) 2>&5 | |
21931 | ac_status=$? | |
21932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21933 | (exit $ac_status); }; }; then | |
97bf5e38 | 21934 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 21935 | else |
bec39cab AC |
21936 | echo "$as_me: failed program was:" >&5 |
21937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21938 | ||
b4e70030 | 21939 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 21940 | |
d45fe813 | 21941 | fi |
bec39cab | 21942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21943 | fi |
21944 | ||
97bf5e38 | 21945 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
21946 | |
21947 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21948 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 21949 | _ACEOF |
d45fe813 | 21950 | |
97bf5e38 | 21951 | fi |
b4e70030 JB |
21952 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
21953 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 21954 | |
b4e70030 JB |
21955 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
21956 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
21957 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
21958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21959 | else |
bec39cab AC |
21960 | cat >conftest.$ac_ext <<_ACEOF |
21961 | /* confdefs.h. */ | |
21962 | _ACEOF | |
21963 | cat confdefs.h >>conftest.$ac_ext | |
21964 | cat >>conftest.$ac_ext <<_ACEOF | |
21965 | /* end confdefs.h. */ | |
97bf5e38 | 21966 | |
d45fe813 | 21967 | #define _SYSCALL32 |
97bf5e38 | 21968 | #include <sys/procfs.h> |
bec39cab AC |
21969 | int |
21970 | main () | |
21971 | { | |
97bf5e38 | 21972 | lwpid_t avar |
bec39cab AC |
21973 | ; |
21974 | return 0; | |
21975 | } | |
21976 | _ACEOF | |
21977 | rm -f conftest.$ac_objext | |
21978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21979 | (eval $ac_compile) 2>conftest.er1 | |
21980 | ac_status=$? | |
21981 | grep -v '^ *+' conftest.er1 >conftest.err | |
21982 | rm -f conftest.er1 | |
21983 | cat conftest.err >&5 | |
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21985 | (exit $ac_status); } && | |
b4e70030 JB |
21986 | { ac_try='test -z "$ac_c_werror_flag" |
21987 | || test ! -s conftest.err' | |
bec39cab AC |
21988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21989 | (eval $ac_try) 2>&5 | |
21990 | ac_status=$? | |
21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21992 | (exit $ac_status); }; } && | |
21993 | { ac_try='test -s conftest.$ac_objext' | |
21994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21995 | (eval $ac_try) 2>&5 | |
21996 | ac_status=$? | |
21997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21998 | (exit $ac_status); }; }; then | |
97bf5e38 | 21999 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 22000 | else |
bec39cab AC |
22001 | echo "$as_me: failed program was:" >&5 |
22002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22003 | ||
b4e70030 | 22004 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 22005 | |
d45fe813 | 22006 | fi |
bec39cab | 22007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
22008 | fi |
22009 | ||
97bf5e38 | 22010 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
22011 | |
22012 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22013 | #define HAVE_LWPID_T 1 |
bec39cab | 22014 | _ACEOF |
d45fe813 | 22015 | |
97bf5e38 | 22016 | fi |
b4e70030 JB |
22017 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
22018 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 22019 | |
b4e70030 JB |
22020 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
22021 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22022 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
22023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22024 | else |
bec39cab AC |
22025 | cat >conftest.$ac_ext <<_ACEOF |
22026 | /* confdefs.h. */ | |
22027 | _ACEOF | |
22028 | cat confdefs.h >>conftest.$ac_ext | |
22029 | cat >>conftest.$ac_ext <<_ACEOF | |
22030 | /* end confdefs.h. */ | |
c906108c | 22031 | |
97bf5e38 MK |
22032 | #define _SYSCALL32 |
22033 | #include <sys/procfs.h> | |
bec39cab AC |
22034 | int |
22035 | main () | |
22036 | { | |
97bf5e38 | 22037 | psaddr_t avar |
bec39cab AC |
22038 | ; |
22039 | return 0; | |
22040 | } | |
22041 | _ACEOF | |
22042 | rm -f conftest.$ac_objext | |
22043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22044 | (eval $ac_compile) 2>conftest.er1 | |
22045 | ac_status=$? | |
22046 | grep -v '^ *+' conftest.er1 >conftest.err | |
22047 | rm -f conftest.er1 | |
22048 | cat conftest.err >&5 | |
22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22050 | (exit $ac_status); } && | |
b4e70030 JB |
22051 | { ac_try='test -z "$ac_c_werror_flag" |
22052 | || test ! -s conftest.err' | |
bec39cab AC |
22053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22054 | (eval $ac_try) 2>&5 | |
22055 | ac_status=$? | |
22056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22057 | (exit $ac_status); }; } && | |
22058 | { ac_try='test -s conftest.$ac_objext' | |
22059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22060 | (eval $ac_try) 2>&5 | |
22061 | ac_status=$? | |
22062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22063 | (exit $ac_status); }; }; then | |
97bf5e38 | 22064 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 22065 | else |
bec39cab AC |
22066 | echo "$as_me: failed program was:" >&5 |
22067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22068 | ||
b4e70030 | 22069 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 22070 | |
c906108c | 22071 | fi |
bec39cab | 22072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22073 | fi |
22074 | ||
97bf5e38 | 22075 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
22076 | |
22077 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22078 | #define HAVE_PSADDR_T 1 |
bec39cab | 22079 | _ACEOF |
c906108c | 22080 | |
97bf5e38 | 22081 | fi |
b4e70030 JB |
22082 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
22083 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 22084 | |
b4e70030 JB |
22085 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
22086 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22087 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22089 | else |
bec39cab AC |
22090 | cat >conftest.$ac_ext <<_ACEOF |
22091 | /* confdefs.h. */ | |
22092 | _ACEOF | |
22093 | cat confdefs.h >>conftest.$ac_ext | |
22094 | cat >>conftest.$ac_ext <<_ACEOF | |
22095 | /* end confdefs.h. */ | |
c906108c | 22096 | |
97bf5e38 MK |
22097 | #define _SYSCALL32 |
22098 | #include <sys/procfs.h> | |
bec39cab AC |
22099 | int |
22100 | main () | |
22101 | { | |
97bf5e38 | 22102 | prsysent_t avar |
bec39cab AC |
22103 | ; |
22104 | return 0; | |
22105 | } | |
22106 | _ACEOF | |
22107 | rm -f conftest.$ac_objext | |
22108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22109 | (eval $ac_compile) 2>conftest.er1 | |
22110 | ac_status=$? | |
22111 | grep -v '^ *+' conftest.er1 >conftest.err | |
22112 | rm -f conftest.er1 | |
22113 | cat conftest.err >&5 | |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22115 | (exit $ac_status); } && | |
b4e70030 JB |
22116 | { ac_try='test -z "$ac_c_werror_flag" |
22117 | || test ! -s conftest.err' | |
bec39cab AC |
22118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22119 | (eval $ac_try) 2>&5 | |
22120 | ac_status=$? | |
22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22122 | (exit $ac_status); }; } && | |
22123 | { ac_try='test -s conftest.$ac_objext' | |
22124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22125 | (eval $ac_try) 2>&5 | |
22126 | ac_status=$? | |
22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22128 | (exit $ac_status); }; }; then | |
97bf5e38 | 22129 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 22130 | else |
bec39cab AC |
22131 | echo "$as_me: failed program was:" >&5 |
22132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22133 | ||
b4e70030 | 22134 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 22135 | |
c906108c | 22136 | fi |
bec39cab | 22137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22138 | fi |
22139 | ||
97bf5e38 | 22140 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
22141 | |
22142 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22143 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 22144 | _ACEOF |
c906108c | 22145 | |
97bf5e38 | 22146 | fi |
b4e70030 JB |
22147 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
22148 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 22149 | |
b4e70030 JB |
22150 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
22151 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22152 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
22153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22154 | else |
bec39cab AC |
22155 | cat >conftest.$ac_ext <<_ACEOF |
22156 | /* confdefs.h. */ | |
22157 | _ACEOF | |
22158 | cat confdefs.h >>conftest.$ac_ext | |
22159 | cat >>conftest.$ac_ext <<_ACEOF | |
22160 | /* end confdefs.h. */ | |
c906108c | 22161 | |
97bf5e38 MK |
22162 | #define _SYSCALL32 |
22163 | #include <sys/procfs.h> | |
bec39cab AC |
22164 | int |
22165 | main () | |
22166 | { | |
97bf5e38 | 22167 | pr_sigset_t avar |
bec39cab AC |
22168 | ; |
22169 | return 0; | |
22170 | } | |
22171 | _ACEOF | |
22172 | rm -f conftest.$ac_objext | |
22173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22174 | (eval $ac_compile) 2>conftest.er1 | |
22175 | ac_status=$? | |
22176 | grep -v '^ *+' conftest.er1 >conftest.err | |
22177 | rm -f conftest.er1 | |
22178 | cat conftest.err >&5 | |
22179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22180 | (exit $ac_status); } && | |
b4e70030 JB |
22181 | { ac_try='test -z "$ac_c_werror_flag" |
22182 | || test ! -s conftest.err' | |
bec39cab AC |
22183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22184 | (eval $ac_try) 2>&5 | |
22185 | ac_status=$? | |
22186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22187 | (exit $ac_status); }; } && | |
22188 | { ac_try='test -s conftest.$ac_objext' | |
22189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22190 | (eval $ac_try) 2>&5 | |
22191 | ac_status=$? | |
22192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22193 | (exit $ac_status); }; }; then | |
97bf5e38 | 22194 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 22195 | else |
bec39cab AC |
22196 | echo "$as_me: failed program was:" >&5 |
22197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22198 | ||
b4e70030 | 22199 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 22200 | |
c906108c | 22201 | fi |
bec39cab | 22202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22203 | fi |
22204 | ||
97bf5e38 | 22205 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
22206 | |
22207 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22208 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 22209 | _ACEOF |
c906108c | 22210 | |
97bf5e38 | 22211 | fi |
b4e70030 JB |
22212 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
22213 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 22214 | |
b4e70030 JB |
22215 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
22216 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22217 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
22218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22219 | else |
bec39cab AC |
22220 | cat >conftest.$ac_ext <<_ACEOF |
22221 | /* confdefs.h. */ | |
22222 | _ACEOF | |
22223 | cat confdefs.h >>conftest.$ac_ext | |
22224 | cat >>conftest.$ac_ext <<_ACEOF | |
22225 | /* end confdefs.h. */ | |
c906108c | 22226 | |
97bf5e38 MK |
22227 | #define _SYSCALL32 |
22228 | #include <sys/procfs.h> | |
bec39cab AC |
22229 | int |
22230 | main () | |
22231 | { | |
97bf5e38 | 22232 | pr_sigaction64_t avar |
bec39cab AC |
22233 | ; |
22234 | return 0; | |
22235 | } | |
22236 | _ACEOF | |
22237 | rm -f conftest.$ac_objext | |
22238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22239 | (eval $ac_compile) 2>conftest.er1 | |
22240 | ac_status=$? | |
22241 | grep -v '^ *+' conftest.er1 >conftest.err | |
22242 | rm -f conftest.er1 | |
22243 | cat conftest.err >&5 | |
22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22245 | (exit $ac_status); } && | |
b4e70030 JB |
22246 | { ac_try='test -z "$ac_c_werror_flag" |
22247 | || test ! -s conftest.err' | |
bec39cab AC |
22248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22249 | (eval $ac_try) 2>&5 | |
22250 | ac_status=$? | |
22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22252 | (exit $ac_status); }; } && | |
22253 | { ac_try='test -s conftest.$ac_objext' | |
22254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22255 | (eval $ac_try) 2>&5 | |
22256 | ac_status=$? | |
22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22258 | (exit $ac_status); }; }; then | |
97bf5e38 | 22259 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 22260 | else |
bec39cab AC |
22261 | echo "$as_me: failed program was:" >&5 |
22262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22263 | ||
b4e70030 | 22264 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 22265 | |
c906108c | 22266 | fi |
bec39cab | 22267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22268 | fi |
22269 | ||
97bf5e38 | 22270 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
22271 | |
22272 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22273 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 22274 | _ACEOF |
c906108c | 22275 | |
97bf5e38 | 22276 | fi |
b4e70030 JB |
22277 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
22278 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 22279 | |
b4e70030 JB |
22280 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
22281 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22282 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
22283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 22284 | else |
bec39cab AC |
22285 | cat >conftest.$ac_ext <<_ACEOF |
22286 | /* confdefs.h. */ | |
22287 | _ACEOF | |
22288 | cat confdefs.h >>conftest.$ac_ext | |
22289 | cat >>conftest.$ac_ext <<_ACEOF | |
22290 | /* end confdefs.h. */ | |
97bf5e38 MK |
22291 | |
22292 | #define _SYSCALL32 | |
22293 | #include <sys/procfs.h> | |
bec39cab AC |
22294 | int |
22295 | main () | |
22296 | { | |
97bf5e38 | 22297 | pr_siginfo64_t avar |
bec39cab AC |
22298 | ; |
22299 | return 0; | |
22300 | } | |
22301 | _ACEOF | |
22302 | rm -f conftest.$ac_objext | |
22303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22304 | (eval $ac_compile) 2>conftest.er1 | |
22305 | ac_status=$? | |
22306 | grep -v '^ *+' conftest.er1 >conftest.err | |
22307 | rm -f conftest.er1 | |
22308 | cat conftest.err >&5 | |
22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22310 | (exit $ac_status); } && | |
b4e70030 JB |
22311 | { ac_try='test -z "$ac_c_werror_flag" |
22312 | || test ! -s conftest.err' | |
bec39cab AC |
22313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22314 | (eval $ac_try) 2>&5 | |
22315 | ac_status=$? | |
22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22317 | (exit $ac_status); }; } && | |
22318 | { ac_try='test -s conftest.$ac_objext' | |
22319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22320 | (eval $ac_try) 2>&5 | |
22321 | ac_status=$? | |
22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22323 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22324 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
22325 | else | |
bec39cab AC |
22326 | echo "$as_me: failed program was:" >&5 |
22327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22328 | ||
b4e70030 | 22329 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 22330 | |
97bf5e38 | 22331 | fi |
bec39cab | 22332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 22333 | fi |
c906108c | 22334 | |
97bf5e38 | 22335 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
22336 | |
22337 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22338 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 22339 | _ACEOF |
c906108c | 22340 | |
97bf5e38 | 22341 | fi |
b4e70030 JB |
22342 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
22343 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
22344 | |
22345 | ||
97bf5e38 MK |
22346 | |
22347 | ||
22348 | ||
97bf5e38 | 22349 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
22350 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
22351 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
22352 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
22353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
22354 | else |
22355 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 22356 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 22357 | else |
bec39cab AC |
22358 | cat >conftest.$ac_ext <<_ACEOF |
22359 | /* confdefs.h. */ | |
22360 | _ACEOF | |
22361 | cat confdefs.h >>conftest.$ac_ext | |
22362 | cat >>conftest.$ac_ext <<_ACEOF | |
22363 | /* end confdefs.h. */ | |
97bf5e38 MK |
22364 | #include <sys/procfs.h> |
22365 | int main () | |
22366 | { | |
22367 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
22368 | return 1; | |
22369 | return 0; | |
22370 | } | |
bec39cab AC |
22371 | _ACEOF |
22372 | rm -f conftest$ac_exeext | |
22373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22374 | (eval $ac_link) 2>&5 | |
22375 | ac_status=$? | |
22376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22379 | (eval $ac_try) 2>&5 | |
22380 | ac_status=$? | |
22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22382 | (exit $ac_status); }; }; then | |
97bf5e38 | 22383 | gdb_cv_prfpregset_t_broken=no |
c906108c | 22384 | else |
bec39cab AC |
22385 | echo "$as_me: program exited with status $ac_status" >&5 |
22386 | echo "$as_me: failed program was:" >&5 | |
22387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22388 | ||
22389 | ( exit $ac_status ) | |
22390 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 22391 | fi |
b4e70030 | 22392 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 22393 | fi |
c906108c SS |
22394 | fi |
22395 | ||
b4e70030 JB |
22396 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
22397 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 22398 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
22399 | |
22400 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22401 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 22402 | _ACEOF |
c906108c | 22403 | |
97bf5e38 MK |
22404 | fi |
22405 | fi | |
c906108c | 22406 | |
bec39cab | 22407 | |
b4e70030 JB |
22408 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
22409 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
22410 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
22411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22412 | else |
bec39cab AC |
22413 | cat >conftest.$ac_ext <<_ACEOF |
22414 | /* confdefs.h. */ | |
22415 | _ACEOF | |
22416 | cat confdefs.h >>conftest.$ac_ext | |
22417 | cat >>conftest.$ac_ext <<_ACEOF | |
22418 | /* end confdefs.h. */ | |
97bf5e38 MK |
22419 | #include <unistd.h> |
22420 | #include <sys/types.h> | |
22421 | #include <sys/procfs.h> | |
22422 | ||
bec39cab AC |
22423 | int |
22424 | main () | |
22425 | { | |
97bf5e38 MK |
22426 | |
22427 | int dummy;; | |
22428 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
22429 | |
22430 | ; | |
22431 | return 0; | |
22432 | } | |
22433 | _ACEOF | |
22434 | rm -f conftest.$ac_objext | |
22435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22436 | (eval $ac_compile) 2>conftest.er1 | |
22437 | ac_status=$? | |
22438 | grep -v '^ *+' conftest.er1 >conftest.err | |
22439 | rm -f conftest.er1 | |
22440 | cat conftest.err >&5 | |
22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22442 | (exit $ac_status); } && | |
b4e70030 JB |
22443 | { ac_try='test -z "$ac_c_werror_flag" |
22444 | || test ! -s conftest.err' | |
bec39cab AC |
22445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22446 | (eval $ac_try) 2>&5 | |
22447 | ac_status=$? | |
22448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22449 | (exit $ac_status); }; } && | |
22450 | { ac_try='test -s conftest.$ac_objext' | |
22451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22452 | (eval $ac_try) 2>&5 | |
22453 | ac_status=$? | |
22454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22455 | (exit $ac_status); }; }; then | |
97bf5e38 | 22456 | gdb_cv_have_procfs_piocset=yes |
c906108c | 22457 | else |
bec39cab AC |
22458 | echo "$as_me: failed program was:" >&5 |
22459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22460 | ||
b4e70030 | 22461 | gdb_cv_have_procfs_piocset=no |
c906108c | 22462 | fi |
bec39cab | 22463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 22464 | fi |
97bf5e38 | 22465 | |
b4e70030 JB |
22466 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
22467 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 22468 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
22469 | |
22470 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22471 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 22472 | _ACEOF |
97bf5e38 MK |
22473 | |
22474 | fi | |
c906108c | 22475 | fi |
c906108c | 22476 | |
97bf5e38 | 22477 | if test ${host} = ${target} ; then |
bec39cab | 22478 | |
b4e70030 JB |
22479 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
22480 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
22481 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
22482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22483 | else | |
22484 | cat >conftest.$ac_ext <<_ACEOF | |
22485 | /* confdefs.h. */ | |
22486 | _ACEOF | |
22487 | cat confdefs.h >>conftest.$ac_ext | |
22488 | cat >>conftest.$ac_ext <<_ACEOF | |
22489 | /* end confdefs.h. */ | |
97bf5e38 | 22490 | #include <link.h> |
bec39cab AC |
22491 | int |
22492 | main () | |
22493 | { | |
97bf5e38 | 22494 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
22495 | ; |
22496 | return 0; | |
22497 | } | |
22498 | _ACEOF | |
22499 | rm -f conftest.$ac_objext | |
22500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22501 | (eval $ac_compile) 2>conftest.er1 | |
22502 | ac_status=$? | |
22503 | grep -v '^ *+' conftest.er1 >conftest.err | |
22504 | rm -f conftest.er1 | |
22505 | cat conftest.err >&5 | |
22506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22507 | (exit $ac_status); } && | |
b4e70030 JB |
22508 | { ac_try='test -z "$ac_c_werror_flag" |
22509 | || test ! -s conftest.err' | |
bec39cab AC |
22510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22511 | (eval $ac_try) 2>&5 | |
22512 | ac_status=$? | |
22513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22514 | (exit $ac_status); }; } && | |
22515 | { ac_try='test -s conftest.$ac_objext' | |
22516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22517 | (eval $ac_try) 2>&5 | |
22518 | ac_status=$? | |
22519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22520 | (exit $ac_status); }; }; then | |
97bf5e38 | 22521 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 22522 | else |
bec39cab AC |
22523 | echo "$as_me: failed program was:" >&5 |
22524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22525 | ||
b4e70030 | 22526 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 22527 | fi |
bec39cab | 22528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22529 | fi |
22530 | ||
b4e70030 JB |
22531 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
22532 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 22533 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
22534 | |
22535 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22536 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 22537 | _ACEOF |
97bf5e38 MK |
22538 | |
22539 | fi | |
22540 | ||
bec39cab | 22541 | |
b4e70030 JB |
22542 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
22543 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
22544 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
22545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22546 | else |
bec39cab AC |
22547 | cat >conftest.$ac_ext <<_ACEOF |
22548 | /* confdefs.h. */ | |
22549 | _ACEOF | |
22550 | cat confdefs.h >>conftest.$ac_ext | |
22551 | cat >>conftest.$ac_ext <<_ACEOF | |
22552 | /* end confdefs.h. */ | |
97bf5e38 MK |
22553 | #include <sys/types.h> |
22554 | #include <link.h> | |
bec39cab AC |
22555 | int |
22556 | main () | |
22557 | { | |
97bf5e38 | 22558 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
22559 | ; |
22560 | return 0; | |
22561 | } | |
22562 | _ACEOF | |
22563 | rm -f conftest.$ac_objext | |
22564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22565 | (eval $ac_compile) 2>conftest.er1 | |
22566 | ac_status=$? | |
22567 | grep -v '^ *+' conftest.er1 >conftest.err | |
22568 | rm -f conftest.er1 | |
22569 | cat conftest.err >&5 | |
22570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22571 | (exit $ac_status); } && | |
b4e70030 JB |
22572 | { ac_try='test -z "$ac_c_werror_flag" |
22573 | || test ! -s conftest.err' | |
bec39cab AC |
22574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22575 | (eval $ac_try) 2>&5 | |
22576 | ac_status=$? | |
22577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22578 | (exit $ac_status); }; } && | |
22579 | { ac_try='test -s conftest.$ac_objext' | |
22580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22581 | (eval $ac_try) 2>&5 | |
22582 | ac_status=$? | |
22583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22584 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22585 | gdb_cv_have_struct_link_map_with_lm_members=yes |
22586 | else | |
bec39cab AC |
22587 | echo "$as_me: failed program was:" >&5 |
22588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22589 | ||
b4e70030 | 22590 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 22591 | fi |
bec39cab | 22592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 22593 | fi |
c906108c | 22594 | |
b4e70030 JB |
22595 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
22596 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 22597 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
22598 | |
22599 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22600 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 22601 | _ACEOF |
97bf5e38 MK |
22602 | |
22603 | fi | |
22604 | ||
bec39cab | 22605 | |
b4e70030 JB |
22606 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
22607 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
22608 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
22609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22610 | else |
bec39cab AC |
22611 | cat >conftest.$ac_ext <<_ACEOF |
22612 | /* confdefs.h. */ | |
22613 | _ACEOF | |
22614 | cat confdefs.h >>conftest.$ac_ext | |
22615 | cat >>conftest.$ac_ext <<_ACEOF | |
22616 | /* end confdefs.h. */ | |
97bf5e38 MK |
22617 | #include <sys/types.h> |
22618 | #ifdef HAVE_NLIST_H | |
22619 | #include <nlist.h> | |
22620 | #endif | |
22621 | #include <link.h> | |
bec39cab AC |
22622 | int |
22623 | main () | |
22624 | { | |
97bf5e38 | 22625 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
22626 | ; |
22627 | return 0; | |
22628 | } | |
22629 | _ACEOF | |
22630 | rm -f conftest.$ac_objext | |
22631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22632 | (eval $ac_compile) 2>conftest.er1 | |
22633 | ac_status=$? | |
22634 | grep -v '^ *+' conftest.er1 >conftest.err | |
22635 | rm -f conftest.er1 | |
22636 | cat conftest.err >&5 | |
22637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22638 | (exit $ac_status); } && | |
b4e70030 JB |
22639 | { ac_try='test -z "$ac_c_werror_flag" |
22640 | || test ! -s conftest.err' | |
bec39cab AC |
22641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22642 | (eval $ac_try) 2>&5 | |
22643 | ac_status=$? | |
22644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22645 | (exit $ac_status); }; } && | |
22646 | { ac_try='test -s conftest.$ac_objext' | |
22647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22648 | (eval $ac_try) 2>&5 | |
22649 | ac_status=$? | |
22650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22651 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22652 | gdb_cv_have_struct_so_map_with_som_members=yes |
22653 | else | |
bec39cab AC |
22654 | echo "$as_me: failed program was:" >&5 |
22655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22656 | ||
b4e70030 | 22657 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 22658 | fi |
bec39cab | 22659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22660 | fi |
c906108c | 22661 | |
b4e70030 JB |
22662 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
22663 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 22664 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
22665 | |
22666 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22667 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 22668 | _ACEOF |
c906108c | 22669 | |
97bf5e38 | 22670 | fi |
c906108c | 22671 | |
bec39cab | 22672 | |
b4e70030 JB |
22673 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
22674 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
22675 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
22676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 22677 | else |
bec39cab AC |
22678 | cat >conftest.$ac_ext <<_ACEOF |
22679 | /* confdefs.h. */ | |
22680 | _ACEOF | |
22681 | cat confdefs.h >>conftest.$ac_ext | |
22682 | cat >>conftest.$ac_ext <<_ACEOF | |
22683 | /* end confdefs.h. */ | |
97bf5e38 MK |
22684 | #define _SYSCALL32 |
22685 | #include <sys/link.h> | |
bec39cab AC |
22686 | int |
22687 | main () | |
22688 | { | |
97bf5e38 | 22689 | struct link_map32 l; |
bec39cab AC |
22690 | ; |
22691 | return 0; | |
22692 | } | |
22693 | _ACEOF | |
22694 | rm -f conftest.$ac_objext | |
22695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22696 | (eval $ac_compile) 2>conftest.er1 | |
22697 | ac_status=$? | |
22698 | grep -v '^ *+' conftest.er1 >conftest.err | |
22699 | rm -f conftest.er1 | |
22700 | cat conftest.err >&5 | |
22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22702 | (exit $ac_status); } && | |
b4e70030 JB |
22703 | { ac_try='test -z "$ac_c_werror_flag" |
22704 | || test ! -s conftest.err' | |
bec39cab AC |
22705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22706 | (eval $ac_try) 2>&5 | |
22707 | ac_status=$? | |
22708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22709 | (exit $ac_status); }; } && | |
22710 | { ac_try='test -s conftest.$ac_objext' | |
22711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22712 | (eval $ac_try) 2>&5 | |
22713 | ac_status=$? | |
22714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22715 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22716 | gdb_cv_have_struct_link_map32=yes |
22717 | else | |
bec39cab AC |
22718 | echo "$as_me: failed program was:" >&5 |
22719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22720 | ||
b4e70030 | 22721 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 22722 | fi |
bec39cab | 22723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22724 | fi |
c906108c | 22725 | |
b4e70030 JB |
22726 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
22727 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 22728 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
22729 | |
22730 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22731 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 22732 | _ACEOF |
c906108c | 22733 | |
60ca704f SE |
22734 | |
22735 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22736 | #define _SYSCALL32 1 |
bec39cab | 22737 | _ACEOF |
c906108c | 22738 | |
97bf5e38 MK |
22739 | fi |
22740 | fi | |
c906108c | 22741 | |
bc8bcb4b | 22742 | # Check if the compiler supports the `long long' type. |
c906108c | 22743 | |
b4e70030 JB |
22744 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
22745 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
22746 | if test "${gdb_cv_c_long_long+set}" = set; then |
22747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 22748 | else |
bec39cab AC |
22749 | cat >conftest.$ac_ext <<_ACEOF |
22750 | /* confdefs.h. */ | |
22751 | _ACEOF | |
22752 | cat confdefs.h >>conftest.$ac_ext | |
22753 | cat >>conftest.$ac_ext <<_ACEOF | |
22754 | /* end confdefs.h. */ | |
bc8bcb4b | 22755 | extern long long foo; |
bec39cab AC |
22756 | int |
22757 | main () | |
22758 | { | |
bc8bcb4b | 22759 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
22760 | ; |
22761 | return 0; | |
22762 | } | |
22763 | _ACEOF | |
22764 | rm -f conftest.$ac_objext | |
22765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22766 | (eval $ac_compile) 2>conftest.er1 | |
22767 | ac_status=$? | |
22768 | grep -v '^ *+' conftest.er1 >conftest.err | |
22769 | rm -f conftest.er1 | |
22770 | cat conftest.err >&5 | |
22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22772 | (exit $ac_status); } && | |
b4e70030 JB |
22773 | { ac_try='test -z "$ac_c_werror_flag" |
22774 | || test ! -s conftest.err' | |
bec39cab AC |
22775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22776 | (eval $ac_try) 2>&5 | |
22777 | ac_status=$? | |
22778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 | (exit $ac_status); }; } && | |
22780 | { ac_try='test -s conftest.$ac_objext' | |
22781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22782 | (eval $ac_try) 2>&5 | |
22783 | ac_status=$? | |
22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22785 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22786 | gdb_cv_c_long_long=yes |
22787 | else | |
bec39cab AC |
22788 | echo "$as_me: failed program was:" >&5 |
22789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22790 | ||
b4e70030 | 22791 | gdb_cv_c_long_long=no |
97bf5e38 | 22792 | fi |
bec39cab | 22793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22794 | fi |
b4e70030 JB |
22795 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
22796 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 22797 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
22798 | |
22799 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22800 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 22801 | _ACEOF |
97bf5e38 MK |
22802 | |
22803 | fi | |
22804 | ||
bc8bcb4b | 22805 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 22806 | |
b4e70030 JB |
22807 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
22808 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
22809 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
22810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
22811 | else |
22812 | if test "$cross_compiling" = yes; then | |
22813 | gdb_cv_printf_has_long_long=no | |
22814 | else | |
bec39cab AC |
22815 | cat >conftest.$ac_ext <<_ACEOF |
22816 | /* confdefs.h. */ | |
22817 | _ACEOF | |
22818 | cat confdefs.h >>conftest.$ac_ext | |
22819 | cat >>conftest.$ac_ext <<_ACEOF | |
22820 | /* end confdefs.h. */ | |
bc8bcb4b MK |
22821 | $ac_includes_default |
22822 | int | |
22823 | main () | |
22824 | { | |
22825 | char buf[32]; | |
97bf5e38 MK |
22826 | long long l = 0; |
22827 | l = (l << 16) + 0x0123; | |
22828 | l = (l << 16) + 0x4567; | |
22829 | l = (l << 16) + 0x89ab; | |
22830 | l = (l << 16) + 0xcdef; | |
22831 | sprintf (buf, "0x%016llx", l); | |
22832 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
22833 | ; |
22834 | return 0; | |
c906108c | 22835 | } |
bec39cab AC |
22836 | _ACEOF |
22837 | rm -f conftest$ac_exeext | |
22838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22839 | (eval $ac_link) 2>&5 | |
22840 | ac_status=$? | |
22841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22844 | (eval $ac_try) 2>&5 | |
22845 | ac_status=$? | |
22846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22847 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22848 | gdb_cv_printf_has_long_long=yes |
22849 | else | |
bec39cab AC |
22850 | echo "$as_me: program exited with status $ac_status" >&5 |
22851 | echo "$as_me: failed program was:" >&5 | |
22852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22853 | ||
22854 | ( exit $ac_status ) | |
22855 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 22856 | fi |
b4e70030 | 22857 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22858 | fi |
97bf5e38 | 22859 | fi |
b4e70030 JB |
22860 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
22861 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 22862 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
22863 | |
22864 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22865 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 22866 | _ACEOF |
97bf5e38 MK |
22867 | |
22868 | fi | |
97bf5e38 | 22869 | |
1a619819 LM |
22870 | # Check if the compiler and runtime support printing decfloats. |
22871 | ||
22872 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 | |
22873 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 | |
22874 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then | |
22875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22876 | else | |
22877 | if test "$cross_compiling" = yes; then | |
22878 | gdb_cv_printf_has_decfloat=no | |
22879 | else | |
22880 | cat >conftest.$ac_ext <<_ACEOF | |
22881 | /* confdefs.h. */ | |
22882 | _ACEOF | |
22883 | cat confdefs.h >>conftest.$ac_ext | |
22884 | cat >>conftest.$ac_ext <<_ACEOF | |
22885 | /* end confdefs.h. */ | |
22886 | $ac_includes_default | |
22887 | int | |
22888 | main () | |
22889 | { | |
22890 | char buf[64]; | |
22891 | _Decimal32 d32 = 1.2345df; | |
22892 | _Decimal64 d64 = 1.2345dd; | |
22893 | _Decimal128 d128 = 1.2345dl; | |
22894 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); | |
22895 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); | |
22896 | ; | |
22897 | return 0; | |
22898 | } | |
22899 | _ACEOF | |
22900 | rm -f conftest$ac_exeext | |
22901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22902 | (eval $ac_link) 2>&5 | |
22903 | ac_status=$? | |
22904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22905 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22907 | (eval $ac_try) 2>&5 | |
22908 | ac_status=$? | |
22909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22910 | (exit $ac_status); }; }; then | |
22911 | gdb_cv_printf_has_decfloat=yes | |
22912 | else | |
22913 | echo "$as_me: program exited with status $ac_status" >&5 | |
22914 | echo "$as_me: failed program was:" >&5 | |
22915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22916 | ||
22917 | ( exit $ac_status ) | |
22918 | gdb_cv_printf_has_decfloat=no | |
22919 | fi | |
22920 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22921 | fi | |
22922 | fi | |
22923 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 | |
22924 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 | |
22925 | if test $gdb_cv_printf_has_decfloat = yes; then | |
22926 | ||
22927 | cat >>confdefs.h <<\_ACEOF | |
22928 | #define PRINTF_HAS_DECFLOAT 1 | |
22929 | _ACEOF | |
22930 | ||
22931 | fi | |
22932 | ||
bc8bcb4b MK |
22933 | # Check if the compiler supports the `long double' type. We can't use |
22934 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
22935 | # constants defined in <float.h> that fail on some systems, | |
22936 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 22937 | |
b4e70030 JB |
22938 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
22939 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 22940 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 22941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 22942 | else |
bec39cab AC |
22943 | cat >conftest.$ac_ext <<_ACEOF |
22944 | /* confdefs.h. */ | |
22945 | _ACEOF | |
22946 | cat confdefs.h >>conftest.$ac_ext | |
22947 | cat >>conftest.$ac_ext <<_ACEOF | |
22948 | /* end confdefs.h. */ | |
97bf5e38 | 22949 | long double foo; |
bec39cab AC |
22950 | _ACEOF |
22951 | rm -f conftest.$ac_objext | |
22952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22953 | (eval $ac_compile) 2>conftest.er1 | |
22954 | ac_status=$? | |
22955 | grep -v '^ *+' conftest.er1 >conftest.err | |
22956 | rm -f conftest.er1 | |
22957 | cat conftest.err >&5 | |
22958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22959 | (exit $ac_status); } && | |
b4e70030 JB |
22960 | { ac_try='test -z "$ac_c_werror_flag" |
22961 | || test ! -s conftest.err' | |
bec39cab AC |
22962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22963 | (eval $ac_try) 2>&5 | |
22964 | ac_status=$? | |
22965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22966 | (exit $ac_status); }; } && | |
22967 | { ac_try='test -s conftest.$ac_objext' | |
22968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22969 | (eval $ac_try) 2>&5 | |
22970 | ac_status=$? | |
22971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22972 | (exit $ac_status); }; }; then | |
bc8bcb4b | 22973 | gdb_cv_c_long_double=yes |
97bf5e38 | 22974 | else |
bec39cab AC |
22975 | echo "$as_me: failed program was:" >&5 |
22976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22977 | ||
b4e70030 | 22978 | gdb_cv_c_long_double=no |
97bf5e38 | 22979 | fi |
bec39cab | 22980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22981 | fi |
b4e70030 JB |
22982 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
22983 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 22984 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 22985 | |
bc8bcb4b | 22986 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 22987 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 22988 | _ACEOF |
97bf5e38 MK |
22989 | |
22990 | fi | |
22991 | ||
bc8bcb4b | 22992 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 22993 | |
b4e70030 JB |
22994 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
22995 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
22996 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
22997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
22998 | else |
22999 | if test "$cross_compiling" = yes; then | |
23000 | gdb_cv_printf_has_long_double=no | |
23001 | else | |
bec39cab AC |
23002 | cat >conftest.$ac_ext <<_ACEOF |
23003 | /* confdefs.h. */ | |
23004 | _ACEOF | |
23005 | cat confdefs.h >>conftest.$ac_ext | |
23006 | cat >>conftest.$ac_ext <<_ACEOF | |
23007 | /* end confdefs.h. */ | |
bc8bcb4b MK |
23008 | $ac_includes_default |
23009 | int | |
23010 | main () | |
23011 | { | |
23012 | char buf[16]; | |
97bf5e38 MK |
23013 | long double f = 3.141592653; |
23014 | sprintf (buf, "%Lg", f); | |
23015 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
23016 | ; |
23017 | return 0; | |
97bf5e38 | 23018 | } |
bec39cab AC |
23019 | _ACEOF |
23020 | rm -f conftest$ac_exeext | |
23021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23022 | (eval $ac_link) 2>&5 | |
23023 | ac_status=$? | |
23024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23027 | (eval $ac_try) 2>&5 | |
23028 | ac_status=$? | |
23029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23030 | (exit $ac_status); }; }; then | |
97bf5e38 | 23031 | gdb_cv_printf_has_long_double=yes |
c906108c | 23032 | else |
bec39cab AC |
23033 | echo "$as_me: program exited with status $ac_status" >&5 |
23034 | echo "$as_me: failed program was:" >&5 | |
23035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23036 | ||
23037 | ( exit $ac_status ) | |
23038 | gdb_cv_printf_has_long_double=no | |
c906108c | 23039 | fi |
b4e70030 | 23040 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 23041 | fi |
c906108c | 23042 | fi |
b4e70030 JB |
23043 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
23044 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 23045 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
23046 | |
23047 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 23048 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 23049 | _ACEOF |
97bf5e38 MK |
23050 | |
23051 | fi | |
97bf5e38 | 23052 | |
bc8bcb4b | 23053 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 23054 | |
b4e70030 JB |
23055 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
23056 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
23057 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
23058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
23059 | else |
23060 | if test "$cross_compiling" = yes; then | |
23061 | gdb_cv_scanf_has_long_double=no | |
23062 | else | |
bec39cab AC |
23063 | cat >conftest.$ac_ext <<_ACEOF |
23064 | /* confdefs.h. */ | |
23065 | _ACEOF | |
23066 | cat confdefs.h >>conftest.$ac_ext | |
23067 | cat >>conftest.$ac_ext <<_ACEOF | |
23068 | /* end confdefs.h. */ | |
bc8bcb4b MK |
23069 | #include <stdio.h> |
23070 | int | |
23071 | main () | |
23072 | { | |
23073 | char *buf = "3.141592653"; | |
97bf5e38 MK |
23074 | long double f = 0; |
23075 | sscanf (buf, "%Lg", &f); | |
23076 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
23077 | ; |
23078 | return 0; | |
97bf5e38 | 23079 | } |
bec39cab AC |
23080 | _ACEOF |
23081 | rm -f conftest$ac_exeext | |
23082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23083 | (eval $ac_link) 2>&5 | |
23084 | ac_status=$? | |
23085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23088 | (eval $ac_try) 2>&5 | |
23089 | ac_status=$? | |
23090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23091 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
23092 | gdb_cv_scanf_has_long_double=yes |
23093 | else | |
bec39cab AC |
23094 | echo "$as_me: program exited with status $ac_status" >&5 |
23095 | echo "$as_me: failed program was:" >&5 | |
23096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23097 | ||
23098 | ( exit $ac_status ) | |
23099 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 23100 | fi |
b4e70030 | 23101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 23102 | fi |
c906108c | 23103 | fi |
b4e70030 JB |
23104 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
23105 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 23106 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
23107 | |
23108 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 23109 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 23110 | _ACEOF |
97bf5e38 MK |
23111 | |
23112 | fi | |
c906108c | 23113 | |
438013df AO |
23114 | case ${host_os} in |
23115 | aix*) | |
b4e70030 JB |
23116 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
23117 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
23118 | if test "${gdb_cv_bigtoc+set}" = set; then |
23119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 23120 | else |
bec39cab | 23121 | |
438013df AO |
23122 | SAVE_LDFLAGS=$LDFLAGS |
23123 | ||
23124 | case $GCC in | |
23125 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
23126 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
23127 | esac | |
23128 | ||
23129 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
23130 | cat >conftest.$ac_ext <<_ACEOF |
23131 | /* confdefs.h. */ | |
23132 | _ACEOF | |
23133 | cat confdefs.h >>conftest.$ac_ext | |
23134 | cat >>conftest.$ac_ext <<_ACEOF | |
23135 | /* end confdefs.h. */ | |
438013df | 23136 | |
bec39cab AC |
23137 | int |
23138 | main () | |
23139 | { | |
438013df | 23140 | int i; |
bec39cab AC |
23141 | ; |
23142 | return 0; | |
23143 | } | |
23144 | _ACEOF | |
23145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23147 | (eval $ac_link) 2>conftest.er1 | |
23148 | ac_status=$? | |
23149 | grep -v '^ *+' conftest.er1 >conftest.err | |
23150 | rm -f conftest.er1 | |
23151 | cat conftest.err >&5 | |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23153 | (exit $ac_status); } && | |
b4e70030 JB |
23154 | { ac_try='test -z "$ac_c_werror_flag" |
23155 | || test ! -s conftest.err' | |
bec39cab AC |
23156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23157 | (eval $ac_try) 2>&5 | |
23158 | ac_status=$? | |
23159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23160 | (exit $ac_status); }; } && | |
23161 | { ac_try='test -s conftest$ac_exeext' | |
23162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23163 | (eval $ac_try) 2>&5 | |
23164 | ac_status=$? | |
23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23166 | (exit $ac_status); }; }; then | |
438013df AO |
23167 | : |
23168 | else | |
bec39cab AC |
23169 | echo "$as_me: failed program was:" >&5 |
23170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23171 | ||
b4e70030 | 23172 | gdb_cv_bigtoc= |
438013df | 23173 | fi |
bec39cab AC |
23174 | rm -f conftest.err conftest.$ac_objext \ |
23175 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 23176 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 23177 | |
bec39cab | 23178 | fi |
b4e70030 JB |
23179 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
23180 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
23181 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
23182 | ;; | |
23183 | esac | |
23184 | ||
c906108c SS |
23185 | |
23186 | ||
23187 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
23188 | case ${host_os} in | |
23189 | hpux*) | |
b4e70030 JB |
23190 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
23191 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
23192 | if test -f /usr/include/dce/cma_config.h ; then |
23193 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
23194 | echo "$as_me:$LINENO: result: yes" >&5 |
23195 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
23196 | |
23197 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 23198 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 23199 | _ACEOF |
c906108c | 23200 | |
3483b318 | 23201 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
23202 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
23203 | else | |
b4e70030 JB |
23204 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
23205 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
23206 | fi |
23207 | else | |
b4e70030 JB |
23208 | echo "$as_me:$LINENO: result: no" >&5 |
23209 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
23210 | fi |
23211 | ;; | |
23212 | solaris*) | |
d92419e5 JB |
23213 | # See if thread_db library is around for Solaris thread debugging. |
23214 | # Note that we must explicitly test for version 1 of the library | |
23215 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
23216 | # the same API. | |
b4e70030 JB |
23217 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
23218 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 23219 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
23220 | echo "$as_me:$LINENO: result: yes" >&5 |
23221 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
23222 | |
23223 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 23224 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 23225 | _ACEOF |
c906108c | 23226 | |
3483b318 | 23227 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 23228 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 23229 | |
b4e70030 JB |
23230 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
23231 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
23232 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
23233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 23234 | else |
bec39cab | 23235 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 23236 | LIBS="-ldl $LIBS" |
bec39cab AC |
23237 | cat >conftest.$ac_ext <<_ACEOF |
23238 | /* confdefs.h. */ | |
23239 | _ACEOF | |
23240 | cat confdefs.h >>conftest.$ac_ext | |
23241 | cat >>conftest.$ac_ext <<_ACEOF | |
23242 | /* end confdefs.h. */ | |
23243 | ||
b4e70030 | 23244 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
23245 | #ifdef __cplusplus |
23246 | extern "C" | |
23247 | #endif | |
b4e70030 JB |
23248 | /* We use char because int might match the return type of a gcc2 |
23249 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
23250 | char dlopen (); |
23251 | int | |
23252 | main () | |
23253 | { | |
b4e70030 | 23254 | dlopen (); |
bec39cab AC |
23255 | ; |
23256 | return 0; | |
23257 | } | |
23258 | _ACEOF | |
23259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23261 | (eval $ac_link) 2>conftest.er1 | |
23262 | ac_status=$? | |
23263 | grep -v '^ *+' conftest.er1 >conftest.err | |
23264 | rm -f conftest.er1 | |
23265 | cat conftest.err >&5 | |
23266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23267 | (exit $ac_status); } && | |
b4e70030 JB |
23268 | { ac_try='test -z "$ac_c_werror_flag" |
23269 | || test ! -s conftest.err' | |
bec39cab AC |
23270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23271 | (eval $ac_try) 2>&5 | |
23272 | ac_status=$? | |
23273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23274 | (exit $ac_status); }; } && | |
23275 | { ac_try='test -s conftest$ac_exeext' | |
23276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23277 | (eval $ac_try) 2>&5 | |
23278 | ac_status=$? | |
23279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23280 | (exit $ac_status); }; }; then | |
23281 | ac_cv_lib_dl_dlopen=yes | |
23282 | else | |
23283 | echo "$as_me: failed program was:" >&5 | |
23284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23285 | ||
b4e70030 | 23286 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
23287 | fi |
23288 | rm -f conftest.err conftest.$ac_objext \ | |
23289 | conftest$ac_exeext conftest.$ac_ext | |
23290 | LIBS=$ac_check_lib_save_LIBS | |
23291 | fi | |
b4e70030 JB |
23292 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
23293 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
23294 | if test $ac_cv_lib_dl_dlopen = yes; then |
23295 | cat >>confdefs.h <<_ACEOF | |
23296 | #define HAVE_LIBDL 1 | |
23297 | _ACEOF | |
c906108c SS |
23298 | |
23299 | LIBS="-ldl $LIBS" | |
23300 | ||
c906108c SS |
23301 | fi |
23302 | ||
23303 | if test "$GCC" = "yes" ; then | |
23304 | # The GNU linker requires the -export-dynamic option to make | |
23305 | # all symbols visible in the dynamic symbol table. | |
23306 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
23307 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
23308 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 23309 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
23310 | cat >conftest.$ac_ext <<_ACEOF |
23311 | /* confdefs.h. */ | |
23312 | _ACEOF | |
23313 | cat confdefs.h >>conftest.$ac_ext | |
23314 | cat >>conftest.$ac_ext <<_ACEOF | |
23315 | /* end confdefs.h. */ | |
c906108c | 23316 | |
bec39cab AC |
23317 | int |
23318 | main () | |
23319 | { | |
c906108c | 23320 | int i; |
bec39cab AC |
23321 | ; |
23322 | return 0; | |
23323 | } | |
23324 | _ACEOF | |
23325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23327 | (eval $ac_link) 2>conftest.er1 | |
23328 | ac_status=$? | |
23329 | grep -v '^ *+' conftest.er1 >conftest.err | |
23330 | rm -f conftest.er1 | |
23331 | cat conftest.err >&5 | |
23332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23333 | (exit $ac_status); } && | |
b4e70030 JB |
23334 | { ac_try='test -z "$ac_c_werror_flag" |
23335 | || test ! -s conftest.err' | |
bec39cab AC |
23336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23337 | (eval $ac_try) 2>&5 | |
23338 | ac_status=$? | |
23339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23340 | (exit $ac_status); }; } && | |
23341 | { ac_try='test -s conftest$ac_exeext' | |
23342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23343 | (eval $ac_try) 2>&5 | |
23344 | ac_status=$? | |
23345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23346 | (exit $ac_status); }; }; then | |
c906108c SS |
23347 | found=yes |
23348 | else | |
bec39cab AC |
23349 | echo "$as_me: failed program was:" >&5 |
23350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23351 | ||
b4e70030 | 23352 | found=no |
c906108c | 23353 | fi |
bec39cab AC |
23354 | rm -f conftest.err conftest.$ac_objext \ |
23355 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 23356 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
23357 | echo "$as_me:$LINENO: result: $found" >&5 |
23358 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
23359 | if test $found = yes; then |
23360 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
23361 | fi | |
23362 | fi | |
23363 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
23364 | # at one point. | |
b4e70030 JB |
23365 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
23366 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
23367 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
23368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 23369 | else |
bec39cab AC |
23370 | |
23371 | cat >conftest.$ac_ext <<_ACEOF | |
23372 | /* confdefs.h. */ | |
23373 | _ACEOF | |
23374 | cat confdefs.h >>conftest.$ac_ext | |
23375 | cat >>conftest.$ac_ext <<_ACEOF | |
23376 | /* end confdefs.h. */ | |
c906108c SS |
23377 | |
23378 | #include <proc_service.h> | |
23379 | ps_err_e ps_pdwrite | |
23380 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 23381 | |
bec39cab AC |
23382 | int |
23383 | main () | |
23384 | { | |
23385 | ||
23386 | ; | |
23387 | return 0; | |
23388 | } | |
23389 | _ACEOF | |
23390 | rm -f conftest.$ac_objext | |
23391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23392 | (eval $ac_compile) 2>conftest.er1 | |
23393 | ac_status=$? | |
23394 | grep -v '^ *+' conftest.er1 >conftest.err | |
23395 | rm -f conftest.er1 | |
23396 | cat conftest.err >&5 | |
23397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23398 | (exit $ac_status); } && | |
b4e70030 JB |
23399 | { ac_try='test -z "$ac_c_werror_flag" |
23400 | || test ! -s conftest.err' | |
bec39cab AC |
23401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23402 | (eval $ac_try) 2>&5 | |
23403 | ac_status=$? | |
23404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23405 | (exit $ac_status); }; } && | |
23406 | { ac_try='test -s conftest.$ac_objext' | |
23407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23408 | (eval $ac_try) 2>&5 | |
23409 | ac_status=$? | |
23410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23411 | (exit $ac_status); }; }; then | |
c906108c SS |
23412 | gdb_cv_proc_service_is_old=no |
23413 | else | |
bec39cab AC |
23414 | echo "$as_me: failed program was:" >&5 |
23415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23416 | ||
b4e70030 | 23417 | gdb_cv_proc_service_is_old=yes |
c906108c | 23418 | fi |
bec39cab AC |
23419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23420 | ||
c906108c SS |
23421 | fi |
23422 | ||
b4e70030 JB |
23423 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
23424 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 23425 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
23426 | |
23427 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 23428 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 23429 | _ACEOF |
c906108c SS |
23430 | |
23431 | fi | |
23432 | else | |
b4e70030 JB |
23433 | echo "$as_me:$LINENO: result: no" >&5 |
23434 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
23435 | fi |
23436 | ;; | |
d92419e5 | 23437 | aix*) |
b4e70030 JB |
23438 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
23439 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
23440 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
23441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23442 | else | |
23443 | cat >conftest.$ac_ext <<_ACEOF | |
23444 | /* confdefs.h. */ | |
23445 | _ACEOF | |
23446 | cat confdefs.h >>conftest.$ac_ext | |
23447 | cat >>conftest.$ac_ext <<_ACEOF | |
23448 | /* end confdefs.h. */ | |
d92419e5 | 23449 | #include <sys/pthdebug.h> |
bec39cab AC |
23450 | int |
23451 | main () | |
23452 | { | |
d92419e5 JB |
23453 | #ifndef PTHDB_VERSION_3 |
23454 | #error | |
23455 | #endif | |
bec39cab AC |
23456 | ; |
23457 | return 0; | |
23458 | } | |
23459 | _ACEOF | |
23460 | rm -f conftest.$ac_objext | |
23461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23462 | (eval $ac_compile) 2>conftest.er1 | |
23463 | ac_status=$? | |
23464 | grep -v '^ *+' conftest.er1 >conftest.err | |
23465 | rm -f conftest.er1 | |
23466 | cat conftest.err >&5 | |
23467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23468 | (exit $ac_status); } && | |
b4e70030 JB |
23469 | { ac_try='test -z "$ac_c_werror_flag" |
23470 | || test ! -s conftest.err' | |
bec39cab AC |
23471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23472 | (eval $ac_try) 2>&5 | |
23473 | ac_status=$? | |
23474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23475 | (exit $ac_status); }; } && | |
23476 | { ac_try='test -s conftest.$ac_objext' | |
23477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23478 | (eval $ac_try) 2>&5 | |
23479 | ac_status=$? | |
23480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23481 | (exit $ac_status); }; }; then | |
d92419e5 JB |
23482 | gdb_cv_have_aix_thread_debug=yes |
23483 | else | |
bec39cab AC |
23484 | echo "$as_me: failed program was:" >&5 |
23485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23486 | ||
b4e70030 | 23487 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 23488 | fi |
bec39cab | 23489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
23490 | fi |
23491 | ||
b4e70030 JB |
23492 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
23493 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
23494 | if test $gdb_cv_have_aix_thread_debug = yes; then |
23495 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 23496 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
23497 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
23498 | fi | |
23499 | ;; | |
c906108c | 23500 | esac |
bec39cab | 23501 | |
c906108c SS |
23502 | fi |
23503 | ||
3f47be5c | 23504 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
23505 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
23506 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
23507 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
23508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23509 | else | |
23510 | cat >conftest.$ac_ext <<_ACEOF | |
23511 | /* confdefs.h. */ | |
23512 | _ACEOF | |
23513 | cat confdefs.h >>conftest.$ac_ext | |
23514 | cat >>conftest.$ac_ext <<_ACEOF | |
23515 | /* end confdefs.h. */ | |
3f47be5c | 23516 | #include <thread_db.h> |
bec39cab AC |
23517 | int |
23518 | main () | |
23519 | { | |
3f47be5c | 23520 | int i = TD_NOTALLOC; |
bec39cab AC |
23521 | ; |
23522 | return 0; | |
23523 | } | |
23524 | _ACEOF | |
23525 | rm -f conftest.$ac_objext | |
23526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23527 | (eval $ac_compile) 2>conftest.er1 | |
23528 | ac_status=$? | |
23529 | grep -v '^ *+' conftest.er1 >conftest.err | |
23530 | rm -f conftest.er1 | |
23531 | cat conftest.err >&5 | |
23532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23533 | (exit $ac_status); } && | |
b4e70030 JB |
23534 | { ac_try='test -z "$ac_c_werror_flag" |
23535 | || test ! -s conftest.err' | |
bec39cab AC |
23536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23537 | (eval $ac_try) 2>&5 | |
23538 | ac_status=$? | |
23539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23540 | (exit $ac_status); }; } && | |
23541 | { ac_try='test -s conftest.$ac_objext' | |
23542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23543 | (eval $ac_try) 2>&5 | |
23544 | ac_status=$? | |
23545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23546 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
23547 | gdb_cv_thread_db_h_has_td_notalloc=yes |
23548 | else | |
bec39cab AC |
23549 | echo "$as_me: failed program was:" >&5 |
23550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23551 | ||
b4e70030 | 23552 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 23553 | |
3f47be5c | 23554 | fi |
bec39cab | 23555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 23556 | |
bec39cab | 23557 | fi |
b4e70030 JB |
23558 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
23559 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
23560 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
23561 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
23562 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
23563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23564 | else | |
23565 | cat >conftest.$ac_ext <<_ACEOF | |
23566 | /* confdefs.h. */ | |
23567 | _ACEOF | |
23568 | cat confdefs.h >>conftest.$ac_ext | |
23569 | cat >>conftest.$ac_ext <<_ACEOF | |
23570 | /* end confdefs.h. */ | |
23571 | #include <thread_db.h> | |
23572 | int | |
23573 | main () | |
23574 | { | |
23575 | int i = TD_VERSION; | |
23576 | ; | |
23577 | return 0; | |
23578 | } | |
23579 | _ACEOF | |
23580 | rm -f conftest.$ac_objext | |
23581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23582 | (eval $ac_compile) 2>conftest.er1 | |
23583 | ac_status=$? | |
23584 | grep -v '^ *+' conftest.er1 >conftest.err | |
23585 | rm -f conftest.er1 | |
23586 | cat conftest.err >&5 | |
23587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23588 | (exit $ac_status); } && | |
23589 | { ac_try='test -z "$ac_c_werror_flag" | |
23590 | || test ! -s conftest.err' | |
23591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23592 | (eval $ac_try) 2>&5 | |
23593 | ac_status=$? | |
23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23595 | (exit $ac_status); }; } && | |
23596 | { ac_try='test -s conftest.$ac_objext' | |
23597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23598 | (eval $ac_try) 2>&5 | |
23599 | ac_status=$? | |
23600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23601 | (exit $ac_status); }; }; then | |
23602 | gdb_cv_thread_db_h_has_td_version=yes | |
23603 | else | |
23604 | echo "$as_me: failed program was:" >&5 | |
23605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23606 | ||
23607 | gdb_cv_thread_db_h_has_td_version=no | |
23608 | ||
23609 | fi | |
23610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23611 | ||
23612 | fi | |
23613 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
23614 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
23615 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
23616 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
23617 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
23618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23619 | else | |
23620 | cat >conftest.$ac_ext <<_ACEOF | |
23621 | /* confdefs.h. */ | |
23622 | _ACEOF | |
23623 | cat confdefs.h >>conftest.$ac_ext | |
23624 | cat >>conftest.$ac_ext <<_ACEOF | |
23625 | /* end confdefs.h. */ | |
23626 | #include <thread_db.h> | |
23627 | int | |
23628 | main () | |
23629 | { | |
23630 | int i = TD_NOTLS; | |
23631 | ; | |
23632 | return 0; | |
23633 | } | |
23634 | _ACEOF | |
23635 | rm -f conftest.$ac_objext | |
23636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23637 | (eval $ac_compile) 2>conftest.er1 | |
23638 | ac_status=$? | |
23639 | grep -v '^ *+' conftest.er1 >conftest.err | |
23640 | rm -f conftest.er1 | |
23641 | cat conftest.err >&5 | |
23642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23643 | (exit $ac_status); } && | |
23644 | { ac_try='test -z "$ac_c_werror_flag" | |
23645 | || test ! -s conftest.err' | |
23646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23647 | (eval $ac_try) 2>&5 | |
23648 | ac_status=$? | |
23649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23650 | (exit $ac_status); }; } && | |
23651 | { ac_try='test -s conftest.$ac_objext' | |
23652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23653 | (eval $ac_try) 2>&5 | |
23654 | ac_status=$? | |
23655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23656 | (exit $ac_status); }; }; then | |
23657 | gdb_cv_thread_db_h_has_td_notls=yes | |
23658 | else | |
23659 | echo "$as_me: failed program was:" >&5 | |
23660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23661 | ||
23662 | gdb_cv_thread_db_h_has_td_notls=no | |
23663 | ||
23664 | fi | |
23665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23666 | ||
23667 | fi | |
23668 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
23669 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
23670 | fi |
23671 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
23672 | |
23673 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 23674 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 23675 | _ACEOF |
3f47be5c | 23676 | |
59f80f10 DJ |
23677 | fi |
23678 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
23679 | ||
23680 | cat >>confdefs.h <<\_ACEOF | |
23681 | #define THREAD_DB_HAS_TD_VERSION 1 | |
23682 | _ACEOF | |
23683 | ||
23684 | fi | |
23685 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
23686 | ||
23687 | cat >>confdefs.h <<\_ACEOF | |
23688 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
23689 | _ACEOF | |
23690 | ||
3f47be5c EZ |
23691 | fi |
23692 | ||
b757528f | 23693 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
23694 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
23695 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
23696 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
23697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23698 | else | |
23699 | cat >conftest.$ac_ext <<_ACEOF | |
23700 | /* confdefs.h. */ | |
23701 | _ACEOF | |
23702 | cat confdefs.h >>conftest.$ac_ext | |
23703 | cat >>conftest.$ac_ext <<_ACEOF | |
23704 | /* end confdefs.h. */ | |
b757528f | 23705 | #include <sys/syscall.h> |
bec39cab AC |
23706 | int |
23707 | main () | |
23708 | { | |
b757528f | 23709 | int i = __NR_tkill; |
bec39cab AC |
23710 | ; |
23711 | return 0; | |
23712 | } | |
23713 | _ACEOF | |
23714 | rm -f conftest.$ac_objext | |
23715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23716 | (eval $ac_compile) 2>conftest.er1 | |
23717 | ac_status=$? | |
23718 | grep -v '^ *+' conftest.er1 >conftest.err | |
23719 | rm -f conftest.er1 | |
23720 | cat conftest.err >&5 | |
23721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23722 | (exit $ac_status); } && | |
b4e70030 JB |
23723 | { ac_try='test -z "$ac_c_werror_flag" |
23724 | || test ! -s conftest.err' | |
bec39cab AC |
23725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23726 | (eval $ac_try) 2>&5 | |
23727 | ac_status=$? | |
23728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23729 | (exit $ac_status); }; } && | |
23730 | { ac_try='test -s conftest.$ac_objext' | |
23731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23732 | (eval $ac_try) 2>&5 | |
23733 | ac_status=$? | |
23734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23735 | (exit $ac_status); }; }; then | |
b757528f JJ |
23736 | gdb_cv_sys_syscall_h_has_tkill=yes |
23737 | else | |
bec39cab AC |
23738 | echo "$as_me: failed program was:" >&5 |
23739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23740 | ||
b4e70030 | 23741 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 23742 | |
b757528f | 23743 | fi |
bec39cab | 23744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 23745 | |
bec39cab | 23746 | fi |
b4e70030 JB |
23747 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
23748 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
23749 | fi |
23750 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
23751 | |
23752 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 23753 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 23754 | _ACEOF |
b757528f JJ |
23755 | |
23756 | fi | |
23757 | ||
10568435 JK |
23758 | echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5 |
23759 | echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6 | |
23760 | if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then | |
23761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23762 | else | |
23763 | cat >conftest.$ac_ext <<_ACEOF | |
23764 | /* confdefs.h. */ | |
23765 | _ACEOF | |
23766 | cat confdefs.h >>conftest.$ac_ext | |
23767 | cat >>conftest.$ac_ext <<_ACEOF | |
23768 | /* end confdefs.h. */ | |
23769 | #include <sys/personality.h> | |
23770 | ||
23771 | int | |
23772 | main () | |
23773 | { | |
23774 | #ifndef ADDR_NO_RANDOMIZE | |
23775 | char *p = (char *) ADDR_NO_RANDOMIZE; | |
23776 | #endif | |
23777 | ||
23778 | ; | |
23779 | return 0; | |
23780 | } | |
23781 | _ACEOF | |
23782 | rm -f conftest.$ac_objext | |
23783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23784 | (eval $ac_compile) 2>conftest.er1 | |
23785 | ac_status=$? | |
23786 | grep -v '^ *+' conftest.er1 >conftest.err | |
23787 | rm -f conftest.er1 | |
23788 | cat conftest.err >&5 | |
23789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23790 | (exit $ac_status); } && | |
23791 | { ac_try='test -z "$ac_c_werror_flag" | |
23792 | || test ! -s conftest.err' | |
23793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23794 | (eval $ac_try) 2>&5 | |
23795 | ac_status=$? | |
23796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23797 | (exit $ac_status); }; } && | |
23798 | { ac_try='test -s conftest.$ac_objext' | |
23799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23800 | (eval $ac_try) 2>&5 | |
23801 | ac_status=$? | |
23802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23803 | (exit $ac_status); }; }; then | |
23804 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes | |
23805 | else | |
23806 | echo "$as_me: failed program was:" >&5 | |
23807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23808 | ||
23809 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=no | |
23810 | fi | |
23811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23812 | fi | |
23813 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5 | |
23814 | echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6 | |
23815 | if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then | |
23816 | ||
23817 | cat >>confdefs.h <<_ACEOF | |
23818 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 1 | |
23819 | _ACEOF | |
23820 | ||
23821 | ||
23822 | else | |
23823 | cat >>confdefs.h <<_ACEOF | |
23824 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 0 | |
23825 | _ACEOF | |
23826 | ||
23827 | ||
23828 | fi | |
23829 | ||
23830 | ||
23831 | ||
23832 | if test "$cross_compiling" = yes; then | |
23833 | cat >conftest.$ac_ext <<_ACEOF | |
23834 | /* confdefs.h. */ | |
23835 | _ACEOF | |
23836 | cat confdefs.h >>conftest.$ac_ext | |
23837 | cat >>conftest.$ac_ext <<_ACEOF | |
23838 | /* end confdefs.h. */ | |
23839 | #include <sys/personality.h> | |
23840 | int | |
23841 | main () | |
23842 | { | |
23843 | ||
23844 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
23845 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
23846 | # endif | |
23847 | /* Test the flag could be set and stays set. */ | |
23848 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
23849 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
23850 | return 1 | |
23851 | ; | |
23852 | return 0; | |
23853 | } | |
23854 | _ACEOF | |
23855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23857 | (eval $ac_link) 2>conftest.er1 | |
23858 | ac_status=$? | |
23859 | grep -v '^ *+' conftest.er1 >conftest.err | |
23860 | rm -f conftest.er1 | |
23861 | cat conftest.err >&5 | |
23862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23863 | (exit $ac_status); } && | |
23864 | { ac_try='test -z "$ac_c_werror_flag" | |
23865 | || test ! -s conftest.err' | |
23866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23867 | (eval $ac_try) 2>&5 | |
23868 | ac_status=$? | |
23869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23870 | (exit $ac_status); }; } && | |
23871 | { ac_try='test -s conftest$ac_exeext' | |
23872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23873 | (eval $ac_try) 2>&5 | |
23874 | ac_status=$? | |
23875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23876 | (exit $ac_status); }; }; then | |
23877 | have_personality=true | |
23878 | else | |
23879 | echo "$as_me: failed program was:" >&5 | |
23880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23881 | ||
23882 | have_personality=false | |
23883 | fi | |
23884 | rm -f conftest.err conftest.$ac_objext \ | |
23885 | conftest$ac_exeext conftest.$ac_ext | |
23886 | else | |
23887 | cat >conftest.$ac_ext <<_ACEOF | |
23888 | /* confdefs.h. */ | |
23889 | _ACEOF | |
23890 | cat confdefs.h >>conftest.$ac_ext | |
23891 | cat >>conftest.$ac_ext <<_ACEOF | |
23892 | /* end confdefs.h. */ | |
23893 | #include <sys/personality.h> | |
23894 | int | |
23895 | main () | |
23896 | { | |
23897 | ||
23898 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
23899 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
23900 | # endif | |
23901 | /* Test the flag could be set and stays set. */ | |
23902 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
23903 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
23904 | return 1 | |
23905 | ; | |
23906 | return 0; | |
23907 | } | |
23908 | _ACEOF | |
23909 | rm -f conftest$ac_exeext | |
23910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23911 | (eval $ac_link) 2>&5 | |
23912 | ac_status=$? | |
23913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23914 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23916 | (eval $ac_try) 2>&5 | |
23917 | ac_status=$? | |
23918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23919 | (exit $ac_status); }; }; then | |
23920 | have_personality=true | |
23921 | else | |
23922 | echo "$as_me: program exited with status $ac_status" >&5 | |
23923 | echo "$as_me: failed program was:" >&5 | |
23924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23925 | ||
23926 | ( exit $ac_status ) | |
23927 | have_personality=false | |
23928 | fi | |
23929 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23930 | fi | |
23931 | if $have_personality | |
23932 | then | |
23933 | ||
23934 | cat >>confdefs.h <<\_ACEOF | |
23935 | #define HAVE_PERSONALITY 1 | |
23936 | _ACEOF | |
23937 | ||
23938 | fi | |
23939 | ||
fb40c209 | 23940 | |
bec39cab | 23941 | |
b4e70030 | 23942 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 23943 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
23944 | withval="$with_sysroot" |
23945 | ||
030292b7 | 23946 | case ${with_sysroot} in |
715d1656 | 23947 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
23948 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
23949 | esac | |
23950 | ||
23951 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
23952 | ||
07abfebf RS |
23953 | if test "x$prefix" = xNONE; then |
23954 | test_prefix=/usr/local | |
23955 | else | |
23956 | test_prefix=$prefix | |
23957 | fi | |
aa28a74e | 23958 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 23959 | test_exec_prefix=$test_prefix |
030292b7 | 23960 | else |
07abfebf | 23961 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
23962 | fi |
23963 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 23964 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
23965 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
23966 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 23967 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
23968 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
23969 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
23970 | ;; | |
23971 | esac | |
23972 | ||
23973 | else | |
bec39cab | 23974 | |
030292b7 DJ |
23975 | TARGET_SYSTEM_ROOT= |
23976 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
23977 | ||
b4e70030 | 23978 | fi; |
030292b7 DJ |
23979 | |
23980 | ||
23981 | ||
b4e70030 | 23982 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 23983 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
23984 | enableval="$enable_werror" |
23985 | case "${enableval}" in | |
094a342e MK |
23986 | yes | y) ERROR_ON_WARNING="yes" ;; |
23987 | no | n) ERROR_ON_WARNING="no" ;; | |
23988 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
23989 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
23990 | { (exit 1); exit 1; }; } ;; | |
23991 | esac | |
b4e70030 | 23992 | fi; |
094a342e MK |
23993 | |
23994 | # Enable -Werror by default when using gcc | |
23995 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
23996 | ERROR_ON_WARNING=yes | |
23997 | fi | |
23998 | ||
23999 | WERROR_CFLAGS="" | |
24000 | if test "${ERROR_ON_WARNING}" = yes ; then | |
24001 | WERROR_CFLAGS="-Werror" | |
24002 | fi | |
24003 | ||
aa79a185 DJ |
24004 | # The entries after -Wno-pointer-sign are disabled warnings which may |
24005 | # be enabled in the future, which can not currently be used to build | |
24006 | # GDB. | |
24007 | # NOTE: If you change this list, remember to update | |
3b851bce | 24008 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
24009 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
24010 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 24011 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 24012 | |
3526781e DJ |
24013 | # Enable -Wno-format by default when using gcc on mingw since many |
24014 | # GCC versions complain about %I64. | |
24015 | case "${host}" in | |
24016 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
24017 | esac | |
24018 | ||
b4e70030 | 24019 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 24020 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
24021 | enableval="$enable_build_warnings" |
24022 | case "${enableval}" in | |
c906108c SS |
24023 | yes) ;; |
24024 | no) build_warnings="-w";; | |
24025 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
24026 | build_warnings="${build_warnings} ${t}";; | |
24027 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
24028 | build_warnings="${t} ${build_warnings}";; | |
24029 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
24030 | esac | |
d4f3574e | 24031 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 24032 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 24033 | fi |
b4e70030 | 24034 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 24035 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
24036 | enableval="$enable_gdb_build_warnings" |
24037 | case "${enableval}" in | |
3b851bce AC |
24038 | yes) ;; |
24039 | no) build_warnings="-w";; | |
24040 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
24041 | build_warnings="${build_warnings} ${t}";; | |
24042 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
24043 | build_warnings="${t} ${build_warnings}";; | |
24044 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
24045 | esac | |
24046 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
24047 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
24048 | fi | |
b4e70030 | 24049 | fi; WARN_CFLAGS="" |
c906108c SS |
24050 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
24051 | then | |
b4e70030 JB |
24052 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
24053 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
24054 | # Separate out the -Werror flag as some files just cannot be |
24055 | # compiled with it enabled. | |
24056 | for w in ${build_warnings}; do | |
24057 | case $w in | |
24058 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
24059 | *) # Check that GCC accepts it | |
4536bbc6 AC |
24060 | saved_CFLAGS="$CFLAGS" |
24061 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
24062 | cat >conftest.$ac_ext <<_ACEOF |
24063 | /* confdefs.h. */ | |
24064 | _ACEOF | |
24065 | cat confdefs.h >>conftest.$ac_ext | |
24066 | cat >>conftest.$ac_ext <<_ACEOF | |
24067 | /* end confdefs.h. */ | |
4536bbc6 | 24068 | |
bec39cab AC |
24069 | int |
24070 | main () | |
24071 | { | |
4536bbc6 | 24072 | |
bec39cab AC |
24073 | ; |
24074 | return 0; | |
24075 | } | |
24076 | _ACEOF | |
24077 | rm -f conftest.$ac_objext | |
24078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24079 | (eval $ac_compile) 2>conftest.er1 | |
24080 | ac_status=$? | |
24081 | grep -v '^ *+' conftest.er1 >conftest.err | |
24082 | rm -f conftest.er1 | |
24083 | cat conftest.err >&5 | |
24084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24085 | (exit $ac_status); } && | |
b4e70030 JB |
24086 | { ac_try='test -z "$ac_c_werror_flag" |
24087 | || test ! -s conftest.err' | |
bec39cab AC |
24088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24089 | (eval $ac_try) 2>&5 | |
24090 | ac_status=$? | |
24091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24092 | (exit $ac_status); }; } && | |
24093 | { ac_try='test -s conftest.$ac_objext' | |
24094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24095 | (eval $ac_try) 2>&5 | |
24096 | ac_status=$? | |
24097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24098 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
24099 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
24100 | else | |
bec39cab AC |
24101 | echo "$as_me: failed program was:" >&5 |
24102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24103 | ||
4536bbc6 | 24104 | fi |
bec39cab | 24105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 24106 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
24107 | esac |
24108 | done | |
aa79a185 DJ |
24109 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
24110 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
24111 | fi |
24112 | ||
24113 | ||
104c1213 | 24114 | |
7a292a7a | 24115 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
24116 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
24117 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
24118 | if test "${gdb_cv_os_cygwin+set}" = set; then |
24119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24120 | else | |
24121 | cat >conftest.$ac_ext <<_ACEOF | |
24122 | /* confdefs.h. */ | |
24123 | _ACEOF | |
24124 | cat confdefs.h >>conftest.$ac_ext | |
24125 | cat >>conftest.$ac_ext <<_ACEOF | |
24126 | /* end confdefs.h. */ | |
7a292a7a SS |
24127 | |
24128 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
24129 | lose | |
24130 | #endif | |
bec39cab | 24131 | _ACEOF |
7a292a7a | 24132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 24133 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
24134 | gdb_cv_os_cygwin=yes |
24135 | else | |
7a292a7a SS |
24136 | gdb_cv_os_cygwin=no |
24137 | fi | |
24138 | rm -f conftest* | |
24139 | ||
24140 | fi | |
b4e70030 JB |
24141 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
24142 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 24143 | |
aff38e61 | 24144 | |
3eb25fda | 24145 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 24146 | case ${host} in |
95cbc983 AC |
24147 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
24148 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 24149 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
24150 | esac |
24151 | ||
24152 | ||
cd0fc7c3 SS |
24153 | # libreadline needs libuser32.a in a cygwin environment |
24154 | WIN32LIBS= | |
24155 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
24156 | WIN32LIBS="-luser32" |
24157 | case "${target}" in | |
24158 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
24159 | ;; | |
24160 | esac | |
cd0fc7c3 | 24161 | fi |
c906108c | 24162 | |
b4505029 MM |
24163 | # The ser-tcp.c module requires sockets. |
24164 | case ${host} in | |
24165 | *mingw32*) | |
24166 | ||
24167 | cat >>confdefs.h <<\_ACEOF | |
24168 | #define USE_WIN32API 1 | |
24169 | _ACEOF | |
24170 | ||
24171 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
24172 | ;; | |
24173 | esac | |
24174 | ||
7a292a7a | 24175 | |
31d99776 DJ |
24176 | # Add ELF support to GDB, but only if BFD includes ELF support. |
24177 | OLD_CFLAGS=$CFLAGS | |
24178 | OLD_LDFLAGS=$LDFLAGS | |
24179 | OLD_LIBS=$LIBS | |
cab58a69 | 24180 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 | 24181 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
7b3200f9 | 24182 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
0f72fb1c | 24183 | LIBS="-lbfd -liberty $intl $LIBS" |
31d99776 DJ |
24184 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
24185 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
24186 | if test "${gdb_cv_var_elf+set}" = set; then | |
24187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24188 | else | |
24189 | cat >conftest.$ac_ext <<_ACEOF | |
24190 | /* confdefs.h. */ | |
24191 | _ACEOF | |
24192 | cat confdefs.h >>conftest.$ac_ext | |
24193 | cat >>conftest.$ac_ext <<_ACEOF | |
24194 | /* end confdefs.h. */ | |
24195 | #include <stdlib.h> | |
24196 | #include "bfd.h" | |
24197 | #include "elf-bfd.h" | |
24198 | ||
24199 | int | |
24200 | main () | |
24201 | { | |
24202 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
24203 | ; | |
24204 | return 0; | |
24205 | } | |
24206 | _ACEOF | |
24207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24209 | (eval $ac_link) 2>conftest.er1 | |
24210 | ac_status=$? | |
24211 | grep -v '^ *+' conftest.er1 >conftest.err | |
24212 | rm -f conftest.er1 | |
24213 | cat conftest.err >&5 | |
24214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24215 | (exit $ac_status); } && | |
24216 | { ac_try='test -z "$ac_c_werror_flag" | |
24217 | || test ! -s conftest.err' | |
24218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24219 | (eval $ac_try) 2>&5 | |
24220 | ac_status=$? | |
24221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24222 | (exit $ac_status); }; } && | |
24223 | { ac_try='test -s conftest$ac_exeext' | |
24224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24225 | (eval $ac_try) 2>&5 | |
24226 | ac_status=$? | |
24227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24228 | (exit $ac_status); }; }; then | |
24229 | gdb_cv_var_elf=yes | |
24230 | else | |
24231 | echo "$as_me: failed program was:" >&5 | |
24232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24233 | ||
24234 | gdb_cv_var_elf=no | |
24235 | fi | |
24236 | rm -f conftest.err conftest.$ac_objext \ | |
24237 | conftest$ac_exeext conftest.$ac_ext | |
24238 | fi | |
24239 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
24240 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
24241 | if test $gdb_cv_var_elf = yes; then | |
24242 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
24243 | ||
24244 | cat >>confdefs.h <<\_ACEOF | |
24245 | #define HAVE_ELF 1 | |
24246 | _ACEOF | |
24247 | ||
24248 | fi | |
24249 | CFLAGS=$OLD_CFLAGS | |
24250 | LDFLAGS=$OLD_LDFLAGS | |
24251 | LIBS=$OLD_LIBS | |
24252 | ||
121ce6e5 DJ |
24253 | # Add any host-specific objects to GDB. |
24254 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
24255 | ||
3fc11d3e JM |
24256 | LIBGUI="../libgui/src/libgui.a" |
24257 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
24258 | ||
24259 | ||
7a292a7a | 24260 | |
3fc11d3e JM |
24261 | WIN32LDAPP= |
24262 | ||
24263 | ||
24264 | ||
d91670b9 | 24265 | case "${host}" in |
686a5eed | 24266 | *-*-cygwin* | *-*-mingw* ) |
d91670b9 CV |
24267 | configdir="win" |
24268 | ;; | |
24269 | *) | |
24270 | configdir="unix" | |
24271 | ;; | |
24272 | esac | |
3fc11d3e JM |
24273 | |
24274 | GDBTKLIBS= | |
24275 | if test "${enable_gdbtk}" = "yes"; then | |
24276 | ||
d1c3b63a KS |
24277 | # Gdbtk must have an absolute path to srcdir in order to run |
24278 | # properly when not installed. | |
24279 | here=`pwd` | |
24280 | cd ${srcdir} | |
24281 | GDBTK_SRC_DIR=`pwd` | |
24282 | cd $here | |
24283 | ||
bec39cab | 24284 | |
5062cc19 KS |
24285 | # |
24286 | # Ok, lets find the tcl configuration | |
24287 | # First, look for one uninstalled. | |
24288 | # the alternative search directory is invoked by --with-tcl | |
24289 | # | |
3fc11d3e | 24290 | |
5062cc19 KS |
24291 | if test x"${no_tcl}" = x ; then |
24292 | # we reset no_tcl in case something fails here | |
24293 | no_tcl=true | |
bec39cab | 24294 | |
5062cc19 KS |
24295 | # Check whether --with-tcl or --without-tcl was given. |
24296 | if test "${with_tcl+set}" = set; then | |
24297 | withval="$with_tcl" | |
b4e70030 JB |
24298 | with_tclconfig=${withval} |
24299 | fi; | |
5062cc19 | 24300 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
b4e70030 | 24301 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
5062cc19 | 24302 | if test "${ac_cv_c_tclconfig+set}" = set; then |
bec39cab | 24303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3fc11d3e | 24304 | else |
bec39cab | 24305 | |
3fc11d3e | 24306 | |
5062cc19 KS |
24307 | # First check to see if --with-tcl was specified. |
24308 | case "${host}" in | |
24309 | *-*-cygwin*) platDir="win" ;; | |
24310 | *) platDir="unix" ;; | |
24311 | esac | |
24312 | if test x"${with_tclconfig}" != x ; then | |
24313 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
24314 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
24315 | else | |
24316 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 | |
bec39cab AC |
24317 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
24318 | { (exit 1); exit 1; }; } | |
5062cc19 KS |
24319 | fi |
24320 | fi | |
24321 | ||
24322 | # then check for a private Tcl installation | |
24323 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
24324 | for i in \ | |
24325 | ../tcl \ | |
24326 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24327 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ | |
24328 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ | |
24329 | ../../tcl \ | |
24330 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24331 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ | |
24332 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ | |
24333 | ../../../tcl \ | |
24334 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24335 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ | |
24336 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
24337 | if test -f "$i/$platDir/tclConfig.sh" ; then | |
24338 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
24339 | break | |
24340 | fi | |
24341 | done | |
24342 | fi | |
24343 | ||
24344 | # on Darwin, check in Framework installation locations | |
24345 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then | |
24346 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
24347 | `ls -d /Library/Frameworks 2>/dev/null` \ | |
24348 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
24349 | `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
24350 | ; do | |
24351 | if test -f "$i/Tcl.framework/tclConfig.sh" ; then | |
24352 | ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` | |
24353 | break | |
24354 | fi | |
24355 | done | |
24356 | fi | |
24357 | ||
24358 | # check in a few common install locations | |
24359 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
24360 | for i in `ls -d ${libdir} 2>/dev/null` \ | |
24361 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
24362 | `ls -d ${prefix}/lib 2>/dev/null` \ | |
24363 | `ls -d /usr/local/lib 2>/dev/null` \ | |
24364 | `ls -d /usr/contrib/lib 2>/dev/null` \ | |
24365 | `ls -d /usr/lib 2>/dev/null` \ | |
24366 | ; do | |
24367 | if test -f "$i/tclConfig.sh" ; then | |
24368 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
24369 | break | |
24370 | fi | |
24371 | done | |
24372 | fi | |
3fc11d3e | 24373 | |
5062cc19 KS |
24374 | # check in a few other private locations |
24375 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
24376 | for i in \ | |
24377 | ${srcdir}/../tcl \ | |
24378 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24379 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ | |
24380 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
24381 | if test -f "$i/$platDir/tclConfig.sh" ; then | |
24382 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
24383 | break | |
24384 | fi | |
24385 | done | |
24386 | fi | |
bec39cab | 24387 | |
3fc11d3e JM |
24388 | fi |
24389 | ||
5062cc19 KS |
24390 | |
24391 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
24392 | TCL_BIN_DIR="# no Tcl configs found" | |
24393 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 | |
bec39cab | 24394 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
5062cc19 KS |
24395 | exit 0 |
24396 | else | |
24397 | no_tcl= | |
24398 | TCL_BIN_DIR=${ac_cv_c_tclconfig} | |
24399 | echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
24400 | echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 | |
24401 | fi | |
24402 | fi | |
3fc11d3e JM |
24403 | |
24404 | if test -z "${no_tcl}"; then | |
bec39cab | 24405 | |
5062cc19 KS |
24406 | echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
24407 | echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 | |
bec39cab | 24408 | |
5062cc19 KS |
24409 | if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then |
24410 | echo "$as_me:$LINENO: result: loading" >&5 | |
24411 | echo "${ECHO_T}loading" >&6 | |
24412 | . ${TCL_BIN_DIR}/tclConfig.sh | |
24413 | else | |
24414 | echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
24415 | echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 | |
24416 | fi | |
bec39cab | 24417 | |
5062cc19 KS |
24418 | # eval is required to do the TCL_DBGX substitution |
24419 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" | |
24420 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" | |
24421 | ||
24422 | # If the TCL_BIN_DIR is the build directory (not the install directory), | |
24423 | # then set the common variable name to the value of the build variables. | |
24424 | # For example, the variable TCL_LIB_SPEC will be set to the value | |
24425 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC | |
24426 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an | |
24427 | # installed and uninstalled version of Tcl. | |
24428 | if test -f ${TCL_BIN_DIR}/Makefile ; then | |
24429 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} | |
24430 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} | |
24431 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} | |
24432 | elif test "`uname -s`" = "Darwin"; then | |
24433 | # If Tcl was built as a framework, attempt to use the libraries | |
24434 | # from the framework at the given location so that linking works | |
24435 | # against Tcl.framework installed in an arbitary location. | |
24436 | case ${TCL_DEFS} in | |
24437 | *TCL_FRAMEWORK*) | |
24438 | if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then | |
24439 | for i in "`cd ${TCL_BIN_DIR}; pwd`" \ | |
24440 | "`cd ${TCL_BIN_DIR}/../..; pwd`"; do | |
24441 | if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then | |
24442 | TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" | |
24443 | break | |
24444 | fi | |
24445 | done | |
24446 | fi | |
24447 | if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then | |
24448 | TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" | |
24449 | TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" | |
24450 | fi | |
24451 | ;; | |
24452 | esac | |
24453 | fi | |
bec39cab | 24454 | |
5062cc19 KS |
24455 | # eval is required to do the TCL_DBGX substitution |
24456 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" | |
24457 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" | |
24458 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" | |
24459 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" | |
bec39cab AC |
24460 | |
24461 | ||
24462 | ||
24463 | ||
24464 | ||
24465 | ||
24466 | ||
24467 | ||
24468 | ||
24469 | ||
24470 | ||
24471 | ||
24472 | ||
24473 | ||
3fc11d3e | 24474 | |
5062cc19 KS |
24475 | # Check for in-tree tcl |
24476 | here=`pwd` | |
24477 | cd ${srcdir}/.. | |
24478 | topdir=`pwd` | |
24479 | cd ${here} | |
bec39cab | 24480 | |
5062cc19 KS |
24481 | intree="no" |
24482 | if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then | |
24483 | intree="yes" | |
24484 | fi | |
bec39cab | 24485 | |
5062cc19 KS |
24486 | # Find Tcl private headers |
24487 | if test x"${intree}" = xno; then | |
3fc11d3e | 24488 | |
5062cc19 KS |
24489 | echo "$as_me:$LINENO: checking for Tcl private headers" >&5 |
24490 | echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6 | |
24491 | private_dir="" | |
24492 | dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//` | |
24493 | if test -f ${dir}/tclInt.h ; then | |
24494 | private_dir=${dir} | |
3fc11d3e JM |
24495 | fi |
24496 | ||
5062cc19 KS |
24497 | if test x"${private_dir}" = x; then |
24498 | { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5 | |
24499 | echo "$as_me: error: could not find private Tcl headers" >&2;} | |
24500 | { (exit 1); exit 1; }; } | |
3fc11d3e | 24501 | else |
5062cc19 KS |
24502 | TCL_PRIVATE_INCLUDE="-I${private_dir}" |
24503 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 | |
24504 | echo "${ECHO_T}${private_dir}" >&6 | |
3fc11d3e | 24505 | fi |
3fc11d3e | 24506 | |
5062cc19 KS |
24507 | TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}" |
24508 | TCL_LIBRARY="${TCL_LIB_SPEC}" | |
24509 | TCL_DEPS="" | |
24510 | else | |
24511 | # If building tcl in the same src tree, private headers | |
24512 | # are not needed, but we need to be sure to use the right | |
24513 | # headers library | |
24514 | TCL_INCLUDE="-I${TCL_SRC_DIR}/generic" | |
24515 | TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}" | |
24516 | TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}" | |
24517 | fi | |
3fc11d3e | 24518 | |
dd2504ab | 24519 | |
dd2504ab | 24520 | |
dd2504ab | 24521 | |
3fc11d3e JM |
24522 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
24523 | # point to doing Tcl. | |
24524 | if test -z "${no_tk}"; then | |
bec39cab | 24525 | |
5062cc19 KS |
24526 | # |
24527 | # Ok, lets find the tk configuration | |
24528 | # First, look for one uninstalled. | |
24529 | # the alternative search directory is invoked by --with-tk | |
24530 | # | |
3fc11d3e | 24531 | |
5062cc19 KS |
24532 | if test x"${no_tk}" = x ; then |
24533 | # we reset no_tk in case something fails here | |
24534 | no_tk=true | |
bec39cab | 24535 | |
5062cc19 KS |
24536 | # Check whether --with-tk or --without-tk was given. |
24537 | if test "${with_tk+set}" = set; then | |
24538 | withval="$with_tk" | |
24539 | with_tkconfig=${withval} | |
b4e70030 | 24540 | fi; |
5062cc19 KS |
24541 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
24542 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
24543 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
bec39cab AC |
24544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24545 | else | |
3fc11d3e JM |
24546 | |
24547 | ||
5062cc19 KS |
24548 | # First check to see if --with-tkconfig was specified. |
24549 | if test x"${with_tkconfig}" != x ; then | |
24550 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
24551 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
24552 | else | |
24553 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 | |
24554 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
bec39cab | 24555 | { (exit 1); exit 1; }; } |
5062cc19 KS |
24556 | fi |
24557 | fi | |
3fc11d3e | 24558 | |
5062cc19 KS |
24559 | # then check for a private Tk library |
24560 | case "${host}" in | |
24561 | *-*-cygwin*) platDir="win" ;; | |
24562 | *) platDir="unix" ;; | |
24563 | esac | |
24564 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
24565 | for i in \ | |
24566 | ../tk \ | |
24567 | `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24568 | `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ | |
24569 | `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ | |
24570 | ../../tk \ | |
24571 | `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24572 | `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ | |
24573 | `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ | |
24574 | ../../../tk \ | |
24575 | `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24576 | `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ | |
24577 | `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do | |
24578 | if test -f "$i/$platDir/tkConfig.sh" ; then | |
24579 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
24580 | break | |
24581 | fi | |
24582 | done | |
24583 | fi | |
24584 | ||
24585 | # on Darwin, check in Framework installation locations | |
24586 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then | |
24587 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
24588 | `ls -d /Library/Frameworks 2>/dev/null` \ | |
24589 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
24590 | `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
24591 | ; do | |
24592 | if test -f "$i/Tk.framework/tkConfig.sh" ; then | |
24593 | ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` | |
24594 | break | |
24595 | fi | |
24596 | done | |
24597 | fi | |
24598 | ||
24599 | # check in a few common install locations | |
24600 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
24601 | for i in `ls -d ${libdir} 2>/dev/null` \ | |
24602 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
24603 | `ls -d ${prefix}/lib 2>/dev/null` \ | |
24604 | `ls -d /usr/local/lib 2>/dev/null` \ | |
24605 | `ls -d /usr/contrib/lib 2>/dev/null` \ | |
24606 | `ls -d /usr/lib 2>/dev/null` \ | |
24607 | ; do | |
24608 | if test -f "$i/tkConfig.sh" ; then | |
24609 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
24610 | break | |
24611 | fi | |
24612 | done | |
24613 | fi | |
24614 | # check in a few other private locations | |
24615 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
24616 | for i in \ | |
24617 | ${srcdir}/../tk \ | |
24618 | `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
24619 | `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ | |
24620 | `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do | |
24621 | if test -f "$i/$platDir/tkConfig.sh" ; then | |
24622 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
24623 | break | |
24624 | fi | |
24625 | done | |
24626 | fi | |
3fc11d3e | 24627 | |
3fc11d3e JM |
24628 | fi |
24629 | ||
24630 | ||
5062cc19 KS |
24631 | if test x"${ac_cv_c_tkconfig}" = x ; then |
24632 | TK_BIN_DIR="# no Tk configs found" | |
24633 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 | |
24634 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
24635 | exit 0 | |
24636 | else | |
24637 | no_tk= | |
24638 | TK_BIN_DIR=${ac_cv_c_tkconfig} | |
24639 | echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 | |
24640 | echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6 | |
24641 | fi | |
3fc11d3e | 24642 | fi |
dd2504ab | 24643 | |
dd2504ab | 24644 | |
5062cc19 KS |
24645 | echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 |
24646 | echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6 | |
dd2504ab | 24647 | |
5062cc19 KS |
24648 | if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then |
24649 | echo "$as_me:$LINENO: result: loading" >&5 | |
24650 | echo "${ECHO_T}loading" >&6 | |
24651 | . ${TK_BIN_DIR}/tkConfig.sh | |
3fc11d3e | 24652 | else |
5062cc19 KS |
24653 | echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 |
24654 | echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6 | |
3fc11d3e | 24655 | fi |
bec39cab | 24656 | |
5062cc19 KS |
24657 | # eval is required to do the TK_DBGX substitution |
24658 | eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" | |
24659 | eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" | |
24660 | ||
24661 | # If the TK_BIN_DIR is the build directory (not the install directory), | |
24662 | # then set the common variable name to the value of the build variables. | |
24663 | # For example, the variable TK_LIB_SPEC will be set to the value | |
24664 | # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC | |
24665 | # instead of TK_BUILD_LIB_SPEC since it will work with both an | |
24666 | # installed and uninstalled version of Tcl. | |
24667 | if test -f ${TK_BIN_DIR}/Makefile ; then | |
24668 | TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} | |
24669 | TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} | |
24670 | TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} | |
24671 | elif test "`uname -s`" = "Darwin"; then | |
24672 | # If Tk was built as a framework, attempt to use the libraries | |
24673 | # from the framework at the given location so that linking works | |
24674 | # against Tk.framework installed in an arbitary location. | |
24675 | case ${TK_DEFS} in | |
24676 | *TK_FRAMEWORK*) | |
24677 | if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then | |
24678 | for i in "`cd ${TK_BIN_DIR}; pwd`" \ | |
24679 | "`cd ${TK_BIN_DIR}/../..; pwd`"; do | |
24680 | if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then | |
24681 | TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" | |
24682 | break | |
24683 | fi | |
24684 | done | |
24685 | fi | |
24686 | if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then | |
24687 | TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" | |
24688 | TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" | |
24689 | fi | |
24690 | ;; | |
24691 | esac | |
3fc11d3e JM |
24692 | fi |
24693 | ||
5062cc19 KS |
24694 | # eval is required to do the TK_DBGX substitution |
24695 | eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" | |
24696 | eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" | |
24697 | eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" | |
24698 | eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" | |
3fc11d3e | 24699 | |
3fc11d3e JM |
24700 | |
24701 | ||
bec39cab AC |
24702 | |
24703 | ||
24704 | ||
24705 | ||
24706 | ||
24707 | ||
24708 | ||
3fc11d3e | 24709 | |
3fc11d3e | 24710 | |
bec39cab | 24711 | |
bec39cab | 24712 | |
5062cc19 KS |
24713 | # Check for in-tree Tk |
24714 | intree="no" | |
24715 | if test "${TK_SRC_DIR}" = "${topdir}/tk"; then | |
24716 | intree="yes" | |
24717 | fi | |
3fc11d3e | 24718 | |
5062cc19 KS |
24719 | # Find Tk private headers |
24720 | if test x"${intree}" = xno; then | |
3fc11d3e | 24721 | |
5062cc19 KS |
24722 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
24723 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
24724 | private_dir="" | |
24725 | dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//` | |
24726 | if test -f ${dir}/tkInt.h; then | |
24727 | private_dir=${dir} | |
3fc11d3e | 24728 | fi |
bec39cab | 24729 | |
5062cc19 KS |
24730 | if test x"${private_dir}" = x; then |
24731 | { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5 | |
24732 | echo "$as_me: error: could not find Tk private headers" >&2;} | |
24733 | { (exit 1); exit 1; }; } | |
3fc11d3e | 24734 | else |
5062cc19 KS |
24735 | TK_PRIVATE_INCLUDE="-I${private_dir}" |
24736 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 | |
24737 | echo "${ECHO_T}${private_dir}" >&6 | |
3fc11d3e | 24738 | fi |
3fc11d3e | 24739 | |
5062cc19 KS |
24740 | TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}" |
24741 | TK_LIBRARY=${TK_LIB_SPEC} | |
24742 | TK_DEPS="" | |
24743 | else | |
24744 | TK_INCLUDE="-I${TK_SRC_DIR}/generic" | |
24745 | TK_LIBRARY="${TK_BUILD_LIB_SPEC}" | |
24746 | TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}" | |
24747 | fi | |
3fc11d3e JM |
24748 | |
24749 | ||
3fc11d3e JM |
24750 | |
24751 | ||
3fc11d3e | 24752 | |
4226a5a5 | 24753 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
24754 | |
24755 | # Include some libraries that Tcl and Tk want. | |
5062cc19 | 24756 | TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
24757 | # Yes, the ordering seems wrong here. But it isn't. |
24758 | # TK_LIBS is the list of libraries that need to be linked | |
24759 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
24760 | # were in LIBS then any link tests after this point would | |
24761 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
24762 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
24763 | |
24764 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
24765 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
24766 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
24767 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
24768 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
24769 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
24770 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
24771 | |
24772 | if test x$gdb_cv_os_cygwin = xyes; then | |
24773 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
24774 | WIN32LDAPP="-Wl,--subsystem,console" | |
24775 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
24776 | fi | |
24777 | fi | |
24778 | fi | |
ffc6a242 | 24779 | |
b4e70030 JB |
24780 | |
24781 | ||
24782 | subdirs="$subdirs gdbtk" | |
3ace7edb | 24783 | |
3fc11d3e JM |
24784 | fi |
24785 | ||
24786 | ||
24787 | ||
24788 | ||
24789 | ||
24790 | ||
24791 | ||
24792 | ||
b4e70030 JB |
24793 | echo "$as_me:$LINENO: checking for X" >&5 |
24794 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 24795 | |
c906108c | 24796 | |
b4e70030 | 24797 | # Check whether --with-x or --without-x was given. |
c906108c | 24798 | if test "${with_x+set}" = set; then |
b4e70030 | 24799 | withval="$with_x" |
c906108c | 24800 | |
b4e70030 | 24801 | fi; |
c906108c SS |
24802 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
24803 | if test "x$with_x" = xno; then | |
24804 | # The user explicitly disabled X. | |
24805 | have_x=disabled | |
24806 | else | |
24807 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24808 | # Both variables are already set. | |
24809 | have_x=yes | |
24810 | else | |
bec39cab AC |
24811 | if test "${ac_cv_have_x+set}" = set; then |
24812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
24813 | else |
24814 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 24815 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 24816 | rm -fr conftest.dir |
bec39cab AC |
24817 | if mkdir conftest.dir; then |
24818 | cd conftest.dir | |
c906108c | 24819 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 24820 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
24821 | acfindx: |
24822 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 24823 | _ACEOF |
b4e70030 | 24824 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
24825 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
24826 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24827 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24828 | for ac_extension in a so sl; do | |
24829 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
24830 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24831 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
24832 | fi |
24833 | done | |
24834 | # Screen out bogus values from the imake configuration. They are | |
24835 | # bogus both because they are the default anyway, and because | |
24836 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 24837 | case $ac_im_incroot in |
b4e70030 | 24838 | /usr/include) ;; |
bec39cab | 24839 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 24840 | esac |
bec39cab | 24841 | case $ac_im_usrlibdir in |
c906108c | 24842 | /usr/lib | /lib) ;; |
bec39cab | 24843 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
24844 | esac |
24845 | fi | |
24846 | cd .. | |
b4e70030 | 24847 | rm -fr conftest.dir |
c906108c SS |
24848 | fi |
24849 | ||
bec39cab AC |
24850 | # Standard set of common directories for X headers. |
24851 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24852 | ac_x_header_dirs=' | |
24853 | /usr/X11/include | |
24854 | /usr/X11R6/include | |
24855 | /usr/X11R5/include | |
24856 | /usr/X11R4/include | |
24857 | ||
24858 | /usr/include/X11 | |
24859 | /usr/include/X11R6 | |
24860 | /usr/include/X11R5 | |
24861 | /usr/include/X11R4 | |
24862 | ||
24863 | /usr/local/X11/include | |
24864 | /usr/local/X11R6/include | |
24865 | /usr/local/X11R5/include | |
24866 | /usr/local/X11R4/include | |
24867 | ||
24868 | /usr/local/include/X11 | |
24869 | /usr/local/include/X11R6 | |
24870 | /usr/local/include/X11R5 | |
24871 | /usr/local/include/X11R4 | |
24872 | ||
24873 | /usr/X386/include | |
24874 | /usr/x386/include | |
24875 | /usr/XFree86/include/X11 | |
24876 | ||
24877 | /usr/include | |
24878 | /usr/local/include | |
24879 | /usr/unsupported/include | |
24880 | /usr/athena/include | |
24881 | /usr/local/x11r5/include | |
24882 | /usr/lpp/Xamples/include | |
24883 | ||
24884 | /usr/openwin/include | |
24885 | /usr/openwin/share/include' | |
24886 | ||
24887 | if test "$ac_x_includes" = no; then | |
59f80f10 | 24888 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 24889 | # First, try using that file with no special directory specified. |
bec39cab AC |
24890 | cat >conftest.$ac_ext <<_ACEOF |
24891 | /* confdefs.h. */ | |
24892 | _ACEOF | |
24893 | cat confdefs.h >>conftest.$ac_ext | |
24894 | cat >>conftest.$ac_ext <<_ACEOF | |
24895 | /* end confdefs.h. */ | |
59f80f10 | 24896 | #include <X11/Intrinsic.h> |
bec39cab AC |
24897 | _ACEOF |
24898 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24899 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24900 | ac_status=$? | |
24901 | grep -v '^ *+' conftest.er1 >conftest.err | |
24902 | rm -f conftest.er1 | |
24903 | cat conftest.err >&5 | |
24904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24905 | (exit $ac_status); } >/dev/null; then | |
24906 | if test -s conftest.err; then | |
24907 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24908 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24909 | else | |
24910 | ac_cpp_err= | |
24911 | fi | |
24912 | else | |
24913 | ac_cpp_err=yes | |
24914 | fi | |
24915 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
24916 | # We can compile using X headers with no special include directory. |
24917 | ac_x_includes= | |
24918 | else | |
bec39cab AC |
24919 | echo "$as_me: failed program was:" >&5 |
24920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24921 | ||
24922 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 24923 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
24924 | ac_x_includes=$ac_dir |
24925 | break | |
24926 | fi | |
24927 | done | |
c906108c | 24928 | fi |
bec39cab AC |
24929 | rm -f conftest.err conftest.$ac_ext |
24930 | fi # $ac_x_includes = no | |
c906108c | 24931 | |
bec39cab | 24932 | if test "$ac_x_libraries" = no; then |
c906108c | 24933 | # Check for the libraries. |
c906108c SS |
24934 | # See if we find them without any special options. |
24935 | # Don't add to $LIBS permanently. | |
bec39cab | 24936 | ac_save_LIBS=$LIBS |
4e8d927d | 24937 | LIBS="-lXt $LIBS" |
bec39cab AC |
24938 | cat >conftest.$ac_ext <<_ACEOF |
24939 | /* confdefs.h. */ | |
24940 | _ACEOF | |
24941 | cat confdefs.h >>conftest.$ac_ext | |
24942 | cat >>conftest.$ac_ext <<_ACEOF | |
24943 | /* end confdefs.h. */ | |
59f80f10 | 24944 | #include <X11/Intrinsic.h> |
bec39cab AC |
24945 | int |
24946 | main () | |
24947 | { | |
59f80f10 | 24948 | XtMalloc (0) |
bec39cab AC |
24949 | ; |
24950 | return 0; | |
24951 | } | |
24952 | _ACEOF | |
24953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24955 | (eval $ac_link) 2>conftest.er1 | |
24956 | ac_status=$? | |
24957 | grep -v '^ *+' conftest.er1 >conftest.err | |
24958 | rm -f conftest.er1 | |
24959 | cat conftest.err >&5 | |
24960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24961 | (exit $ac_status); } && | |
b4e70030 JB |
24962 | { ac_try='test -z "$ac_c_werror_flag" |
24963 | || test ! -s conftest.err' | |
bec39cab AC |
24964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24965 | (eval $ac_try) 2>&5 | |
24966 | ac_status=$? | |
24967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24968 | (exit $ac_status); }; } && | |
24969 | { ac_try='test -s conftest$ac_exeext' | |
24970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24971 | (eval $ac_try) 2>&5 | |
24972 | ac_status=$? | |
24973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24974 | (exit $ac_status); }; }; then | |
24975 | LIBS=$ac_save_LIBS | |
c906108c SS |
24976 | # We can link X programs with no special library path. |
24977 | ac_x_libraries= | |
24978 | else | |
bec39cab AC |
24979 | echo "$as_me: failed program was:" >&5 |
24980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24981 | ||
b4e70030 | 24982 | LIBS=$ac_save_LIBS |
bec39cab | 24983 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 24984 | do |
bec39cab | 24985 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 24986 | for ac_extension in a so sl; do |
b4e70030 | 24987 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
24988 | ac_x_libraries=$ac_dir |
24989 | break 2 | |
24990 | fi | |
24991 | done | |
24992 | done | |
24993 | fi | |
bec39cab AC |
24994 | rm -f conftest.err conftest.$ac_objext \ |
24995 | conftest$ac_exeext conftest.$ac_ext | |
24996 | fi # $ac_x_libraries = no | |
c906108c | 24997 | |
bec39cab | 24998 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
24999 | # Didn't find X anywhere. Cache the known absence of X. |
25000 | ac_cv_have_x="have_x=no" | |
25001 | else | |
25002 | # Record where we found X for the cache. | |
25003 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 25004 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
25005 | fi |
25006 | fi | |
bec39cab | 25007 | |
c906108c SS |
25008 | fi |
25009 | eval "$ac_cv_have_x" | |
25010 | fi # $with_x != no | |
25011 | ||
25012 | if test "$have_x" != yes; then | |
b4e70030 JB |
25013 | echo "$as_me:$LINENO: result: $have_x" >&5 |
25014 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
25015 | no_x=yes |
25016 | else | |
25017 | # If each of the values was on the command line, it overrides each guess. | |
25018 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
25019 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
25020 | # Update the cache value to reflect the command line values. | |
25021 | ac_cv_have_x="have_x=yes \ | |
25022 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
25023 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
25024 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
25025 | fi |
25026 | ||
25027 | ||
9cc52bde MK |
25028 | # Check whether we should enable the TUI, but only do so if we really |
25029 | # can. | |
3ca64bd3 | 25030 | if test x"$enable_tui" != xno; then |
9cc52bde MK |
25031 | if test -d $srcdir/tui; then |
25032 | if test "$ac_cv_search_waddstr" != no; then | |
25033 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
25034 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
25035 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
9cc52bde MK |
25036 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
25037 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
25038 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
25039 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
25040 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
25041 | else | |
3ca64bd3 JK |
25042 | if test x"$enable_tui" = xyes; then |
25043 | { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5 | |
25044 | echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;} | |
25045 | { (exit 1); exit 1; }; } | |
25046 | else | |
25047 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 | |
bec39cab | 25048 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} |
3ca64bd3 | 25049 | fi |
9cc52bde MK |
25050 | fi |
25051 | fi | |
25052 | fi | |
25053 | ||
bec39cab | 25054 | # Unlike the sim directory, whether a simulator is linked is controlled by |
9b624dbe | 25055 | # presence of a gdb_sim definition in the target configure.tgt entry. |
7a292a7a SS |
25056 | # This code just checks for a few cases where we'd like to ignore those |
25057 | # definitions, even when they're present in the '.mt' file. These cases | |
25058 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 25059 | # not part of the source tree. |
7a292a7a | 25060 | # |
b4e70030 | 25061 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 25062 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
25063 | enableval="$enable_sim" |
25064 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
25065 | echo "enableval = ${enableval}"; |
25066 | case "${enableval}" in | |
25067 | yes) ignore_sim=false ;; | |
25068 | no) ignore_sim=true ;; | |
25069 | *) ignore_sim=false ;; | |
25070 | esac | |
25071 | else | |
25072 | ignore_sim=false | |
b4e70030 | 25073 | fi; |
7a292a7a SS |
25074 | |
25075 | if test ! -d "${srcdir}/../sim"; then | |
25076 | ignore_sim=true | |
25077 | fi | |
25078 | ||
9b624dbe UW |
25079 | SIM= |
25080 | SIM_OBS= | |
25081 | if test "${ignore_sim}" = "false"; then | |
25082 | if test x"${gdb_sim}" != x ; then | |
25083 | SIM="${gdb_sim}" | |
25084 | SIM_OBS="remote-sim.o" | |
60ca704f SE |
25085 | |
25086 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 25087 | #define WITH_SIM 1 |
bec39cab | 25088 | _ACEOF |
7a292a7a | 25089 | |
9b624dbe | 25090 | fi |
7a292a7a SS |
25091 | fi |
25092 | ||
25093 | ||
25094 | ||
c906108c SS |
25095 | |
25096 | ||
25097 | ||
25098 | ||
25099 | ||
25100 | ||
dfcd3bfb | 25101 | |
e56ac5c3 AC |
25102 | |
25103 | ||
b3a90332 AC |
25104 | |
25105 | ||
c35f4ffc | 25106 | # List of host floatformats. |
bec39cab AC |
25107 | |
25108 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 25109 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 25110 | _ACEOF |
c35f4ffc | 25111 | |
bec39cab AC |
25112 | |
25113 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 25114 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
25115 | _ACEOF |
25116 | ||
c35f4ffc | 25117 | |
bec39cab | 25118 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 25119 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 25120 | _ACEOF |
c35f4ffc AC |
25121 | |
25122 | ||
c906108c SS |
25123 | # target_subdir is used by the testsuite to find the target libraries. |
25124 | target_subdir= | |
25125 | if test "${host}" != "${target}"; then | |
25126 | target_subdir="${target_alias}/" | |
25127 | fi | |
25128 | ||
25129 | ||
25130 | frags= | |
771b4502 | 25131 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
25132 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
25133 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
25134 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
25135 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
25136 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
25137 | fi |
25138 | frags="$frags $host_makefile_frag" | |
25139 | else | |
25140 | host_makefile_frag=/dev/null | |
c906108c | 25141 | fi |
c906108c | 25142 | |
c906108c SS |
25143 | |
25144 | ||
25145 | ||
771b4502 | 25146 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
25147 | # We pick this up from the host configuration file (.mh) because we |
25148 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
25149 | nativefile=`sed -n ' |
25150 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
25151 | ' ${host_makefile_frag}` | |
c906108c SS |
25152 | fi |
25153 | ||
25154 | ||
b00a8037 | 25155 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
25156 | |
25157 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 25158 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 25159 | _ACEOF |
b00a8037 DJ |
25160 | |
25161 | fi | |
25162 | ||
8dcde887 | 25163 | # Enable multi-ice-gdb-server. |
b4e70030 | 25164 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 25165 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
25166 | enableval="$enable_multi_ice" |
25167 | case $enableval in | |
8dcde887 MK |
25168 | yes | no) |
25169 | ;; | |
bec39cab AC |
25170 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
25171 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
25172 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 25173 | esac |
b4e70030 | 25174 | fi; |
4e8d927d | 25175 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
25176 | |
25177 | ||
25178 | subdirs="$subdirs multi-ice" | |
3ace7edb | 25179 | |
a85f51e7 DJ |
25180 | fi |
25181 | ||
a13e2c95 UW |
25182 | # We only build gdbserver automatically in a native configuration. |
25183 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
25184 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
25185 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 25186 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
25187 | echo "$as_me:$LINENO: result: yes" >&5 |
25188 | echo "${ECHO_T}yes" >&6 | |
25189 | ||
25190 | ||
25191 | subdirs="$subdirs gdbserver" | |
3ace7edb | 25192 | |
8dcde887 | 25193 | else |
b4e70030 JB |
25194 | echo "$as_me:$LINENO: result: no" >&5 |
25195 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
25196 | fi |
25197 | fi | |
25198 | ||
db985757 | 25199 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
2c0fc042 | 25200 | # to an empty version. |
c906108c SS |
25201 | |
25202 | files= | |
25203 | links= | |
5a2402b8 | 25204 | |
c906108c | 25205 | rm -f nm.h |
5a2402b8 | 25206 | nm_h="" |
c906108c | 25207 | if test "${nativefile}" != ""; then |
5a2402b8 | 25208 | nm_h=nm.h |
0f475e27 AC |
25209 | case "${nativefile}" in |
25210 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
25211 | * ) GDB_NM_FILE="${nativefile}" | |
25212 | esac | |
5a2402b8 AC |
25213 | files="${files} ${GDB_NM_FILE}" |
25214 | links="${links} nm.h" | |
60ca704f SE |
25215 | |
25216 | cat >>confdefs.h <<_ACEOF | |
b78960be | 25217 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 25218 | _ACEOF |
5a2402b8 | 25219 | |
c906108c | 25220 | fi |
5a2402b8 AC |
25221 | |
25222 | ||
bec39cab AC |
25223 | ac_sources="$files" |
25224 | ac_dests="$links" | |
25225 | while test -n "$ac_sources"; do | |
25226 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
25227 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
25228 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
25229 | done | |
b4e70030 | 25230 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
25231 | |
25232 | ||
c906108c SS |
25233 | |
25234 | ||
c906108c | 25235 | |
c906108c | 25236 | |
bec39cab AC |
25237 | cat >>confdefs.h <<\_ACEOF |
25238 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
25239 | _ACEOF | |
c906108c | 25240 | |
234b45d4 | 25241 | |
234b45d4 KB |
25242 | |
25243 | ||
25244 | ||
b4e70030 | 25245 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 25246 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
25247 | withval="$with_libiconv_prefix" |
25248 | ||
234b45d4 KB |
25249 | for dir in `echo "$withval" | tr : ' '`; do |
25250 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
25251 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
25252 | done | |
234b45d4 | 25253 | |
b4e70030 | 25254 | fi; |
234b45d4 | 25255 | |
b4e70030 JB |
25256 | echo "$as_me:$LINENO: checking for iconv" >&5 |
25257 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
25258 | if test "${am_cv_func_iconv+set}" = set; then |
25259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 25260 | else |
bec39cab | 25261 | |
234b45d4 KB |
25262 | am_cv_func_iconv="no, consider installing GNU libiconv" |
25263 | am_cv_lib_iconv=no | |
bec39cab AC |
25264 | cat >conftest.$ac_ext <<_ACEOF |
25265 | /* confdefs.h. */ | |
25266 | _ACEOF | |
25267 | cat confdefs.h >>conftest.$ac_ext | |
25268 | cat >>conftest.$ac_ext <<_ACEOF | |
25269 | /* end confdefs.h. */ | |
234b45d4 KB |
25270 | #include <stdlib.h> |
25271 | #include <iconv.h> | |
bec39cab AC |
25272 | int |
25273 | main () | |
25274 | { | |
234b45d4 KB |
25275 | iconv_t cd = iconv_open("",""); |
25276 | iconv(cd,NULL,NULL,NULL,NULL); | |
25277 | iconv_close(cd); | |
bec39cab AC |
25278 | ; |
25279 | return 0; | |
25280 | } | |
25281 | _ACEOF | |
25282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25284 | (eval $ac_link) 2>conftest.er1 | |
25285 | ac_status=$? | |
25286 | grep -v '^ *+' conftest.er1 >conftest.err | |
25287 | rm -f conftest.er1 | |
25288 | cat conftest.err >&5 | |
25289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25290 | (exit $ac_status); } && | |
b4e70030 JB |
25291 | { ac_try='test -z "$ac_c_werror_flag" |
25292 | || test ! -s conftest.err' | |
bec39cab AC |
25293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25294 | (eval $ac_try) 2>&5 | |
25295 | ac_status=$? | |
25296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25297 | (exit $ac_status); }; } && | |
25298 | { ac_try='test -s conftest$ac_exeext' | |
25299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25300 | (eval $ac_try) 2>&5 | |
25301 | ac_status=$? | |
25302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25303 | (exit $ac_status); }; }; then | |
234b45d4 KB |
25304 | am_cv_func_iconv=yes |
25305 | else | |
bec39cab AC |
25306 | echo "$as_me: failed program was:" >&5 |
25307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25308 | ||
234b45d4 | 25309 | fi |
bec39cab AC |
25310 | rm -f conftest.err conftest.$ac_objext \ |
25311 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
25312 | if test "$am_cv_func_iconv" != yes; then |
25313 | am_save_LIBS="$LIBS" | |
25314 | LIBS="$LIBS -liconv" | |
bec39cab AC |
25315 | cat >conftest.$ac_ext <<_ACEOF |
25316 | /* confdefs.h. */ | |
25317 | _ACEOF | |
25318 | cat confdefs.h >>conftest.$ac_ext | |
25319 | cat >>conftest.$ac_ext <<_ACEOF | |
25320 | /* end confdefs.h. */ | |
234b45d4 KB |
25321 | #include <stdlib.h> |
25322 | #include <iconv.h> | |
bec39cab AC |
25323 | int |
25324 | main () | |
25325 | { | |
234b45d4 KB |
25326 | iconv_t cd = iconv_open("",""); |
25327 | iconv(cd,NULL,NULL,NULL,NULL); | |
25328 | iconv_close(cd); | |
bec39cab AC |
25329 | ; |
25330 | return 0; | |
25331 | } | |
25332 | _ACEOF | |
25333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25335 | (eval $ac_link) 2>conftest.er1 | |
25336 | ac_status=$? | |
25337 | grep -v '^ *+' conftest.er1 >conftest.err | |
25338 | rm -f conftest.er1 | |
25339 | cat conftest.err >&5 | |
25340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25341 | (exit $ac_status); } && | |
b4e70030 JB |
25342 | { ac_try='test -z "$ac_c_werror_flag" |
25343 | || test ! -s conftest.err' | |
bec39cab AC |
25344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25345 | (eval $ac_try) 2>&5 | |
25346 | ac_status=$? | |
25347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25348 | (exit $ac_status); }; } && | |
25349 | { ac_try='test -s conftest$ac_exeext' | |
25350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25351 | (eval $ac_try) 2>&5 | |
25352 | ac_status=$? | |
25353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25354 | (exit $ac_status); }; }; then | |
234b45d4 KB |
25355 | am_cv_lib_iconv=yes |
25356 | am_cv_func_iconv=yes | |
25357 | else | |
bec39cab AC |
25358 | echo "$as_me: failed program was:" >&5 |
25359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25360 | ||
234b45d4 | 25361 | fi |
bec39cab AC |
25362 | rm -f conftest.err conftest.$ac_objext \ |
25363 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
25364 | LIBS="$am_save_LIBS" |
25365 | fi | |
bec39cab AC |
25366 | |
25367 | fi | |
b4e70030 JB |
25368 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
25369 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
25370 | if test "$am_cv_func_iconv" = yes; then |
25371 | ||
25372 | cat >>confdefs.h <<\_ACEOF | |
25373 | #define HAVE_ICONV 1 | |
25374 | _ACEOF | |
25375 | ||
b4e70030 JB |
25376 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
25377 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
25378 | if test "${am_cv_proto_iconv+set}" = set; then |
25379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25380 | else | |
25381 | ||
25382 | cat >conftest.$ac_ext <<_ACEOF | |
25383 | /* confdefs.h. */ | |
25384 | _ACEOF | |
25385 | cat confdefs.h >>conftest.$ac_ext | |
25386 | cat >>conftest.$ac_ext <<_ACEOF | |
25387 | /* end confdefs.h. */ | |
25388 | ||
25389 | #include <stdlib.h> | |
25390 | #include <iconv.h> | |
25391 | extern | |
25392 | #ifdef __cplusplus | |
25393 | "C" | |
25394 | #endif | |
25395 | #if defined(__STDC__) || defined(__cplusplus) | |
25396 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
25397 | #else | |
25398 | size_t iconv(); | |
25399 | #endif | |
25400 | ||
25401 | int | |
25402 | main () | |
25403 | { | |
25404 | ||
25405 | ; | |
25406 | return 0; | |
25407 | } | |
25408 | _ACEOF | |
25409 | rm -f conftest.$ac_objext | |
25410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25411 | (eval $ac_compile) 2>conftest.er1 | |
25412 | ac_status=$? | |
25413 | grep -v '^ *+' conftest.er1 >conftest.err | |
25414 | rm -f conftest.er1 | |
25415 | cat conftest.err >&5 | |
25416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25417 | (exit $ac_status); } && | |
b4e70030 JB |
25418 | { ac_try='test -z "$ac_c_werror_flag" |
25419 | || test ! -s conftest.err' | |
bec39cab AC |
25420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25421 | (eval $ac_try) 2>&5 | |
25422 | ac_status=$? | |
25423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25424 | (exit $ac_status); }; } && | |
25425 | { ac_try='test -s conftest.$ac_objext' | |
25426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25427 | (eval $ac_try) 2>&5 | |
25428 | ac_status=$? | |
25429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25430 | (exit $ac_status); }; }; then | |
25431 | am_cv_proto_iconv_arg1="" | |
25432 | else | |
25433 | echo "$as_me: failed program was:" >&5 | |
25434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25435 | ||
b4e70030 | 25436 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
25437 | fi |
25438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25439 | 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);" | |
25440 | fi | |
25441 | ||
25442 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 25443 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
25444 | }$am_cv_proto_iconv" >&5 |
25445 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 25446 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
25447 | |
25448 | cat >>confdefs.h <<_ACEOF | |
25449 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
25450 | _ACEOF | |
25451 | ||
25452 | fi | |
25453 | LIBICONV= | |
25454 | if test "$am_cv_lib_iconv" = yes; then | |
25455 | LIBICONV="-liconv" | |
25456 | fi | |
25457 | ||
25458 | ||
25459 | ||
e28b3332 | 25460 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile" |
b4e70030 | 25461 | ac_config_commands="$ac_config_commands default" |
bec39cab AC |
25462 | cat >confcache <<\_ACEOF |
25463 | # This file is a shell script that caches the results of configure | |
25464 | # tests run on this system so they can be shared between configure | |
25465 | # scripts and configure runs, see configure's option --config-cache. | |
25466 | # It is not useful on other systems. If it contains results you don't | |
25467 | # want to keep, you may remove or edit it. | |
25468 | # | |
25469 | # config.status only pays attention to the cache file if you give it | |
25470 | # the --recheck option to rerun configure. | |
25471 | # | |
25472 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25473 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25474 | # following values. | |
25475 | ||
25476 | _ACEOF | |
25477 | ||
25478 | # The following way of writing the cache mishandles newlines in values, | |
25479 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 25480 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
25481 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25482 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 25483 | { |
bec39cab | 25484 | (set) 2>&1 | |
b4e70030 JB |
25485 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
25486 | *ac_space=\ *) | |
bec39cab AC |
25487 | # `set' does not quote correctly, so add quotes (double-quote |
25488 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25489 | sed -n \ | |
25490 | "s/'/'\\\\''/g; | |
25491 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 25492 | ;; |
bec39cab AC |
25493 | *) |
25494 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
25495 | sed -n \ |
25496 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 25497 | ;; |
b4e70030 JB |
25498 | esac; |
25499 | } | | |
bec39cab AC |
25500 | sed ' |
25501 | t clear | |
b4e70030 | 25502 | : clear |
bec39cab AC |
25503 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25504 | t end | |
b4e70030 JB |
25505 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25506 | : end' >>confcache | |
bec39cab AC |
25507 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
25508 | if test -w $cache_file; then | |
b4e70030 | 25509 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
25510 | cat confcache >$cache_file |
25511 | else | |
b4e70030 | 25512 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
25513 | fi |
25514 | fi | |
25515 | rm -f confcache | |
25516 | ||
25517 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25518 | # Let make expand exec_prefix. | |
25519 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25520 | ||
b4e70030 JB |
25521 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
25522 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25523 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25524 | # (actually we leave an empty line to preserve line numbers). | |
25525 | if test "x$srcdir" = x.; then | |
25526 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25527 | s/:*\$(srcdir):*/:/; | |
25528 | s/:*\${srcdir}:*/:/; | |
25529 | s/:*@srcdir@:*/:/; | |
25530 | s/^\([^=]*=[ ]*\):*/\1/; | |
25531 | s/:*$//; | |
25532 | s/^[^=]*=[ ]*$//; | |
25533 | }' | |
25534 | fi | |
25535 | ||
bec39cab AC |
25536 | DEFS=-DHAVE_CONFIG_H |
25537 | ||
25538 | ac_libobjs= | |
25539 | ac_ltlibobjs= | |
25540 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25541 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
25542 | ac_i=`echo "$ac_i" | |
25543 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
25544 | # 2. Add them. | |
25545 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
25546 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
25547 | done |
25548 | LIBOBJS=$ac_libobjs | |
25549 | ||
25550 | LTLIBOBJS=$ac_ltlibobjs | |
25551 | ||
25552 | ||
85981d60 AC |
25553 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
25554 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25555 | Usually this means the macro was only invoked conditionally." >&5 | |
25556 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25557 | Usually this means the macro was only invoked conditionally." >&2;} | |
25558 | { (exit 1); exit 1; }; } | |
25559 | fi | |
783e057b DJ |
25560 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
25561 | { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
25562 | Usually this means the macro was only invoked conditionally." >&5 | |
25563 | echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
25564 | Usually this means the macro was only invoked conditionally." >&2;} | |
25565 | { (exit 1); exit 1; }; } | |
25566 | fi | |
25567 | ||
25568 | gl_libobjs= | |
25569 | gl_ltlibobjs= | |
25570 | if test -n "$gl_LIBOBJS"; then | |
25571 | # Remove the extension. | |
25572 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
25573 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
25574 | gl_libobjs="$gl_libobjs $i.$ac_objext" | |
25575 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
25576 | done | |
25577 | fi | |
25578 | gl_LIBOBJS=$gl_libobjs | |
25579 | ||
25580 | gl_LTLIBOBJS=$gl_ltlibobjs | |
25581 | ||
25582 | ||
25583 | ||
25584 | gltests_libobjs= | |
25585 | gltests_ltlibobjs= | |
25586 | if test -n "$gltests_LIBOBJS"; then | |
25587 | # Remove the extension. | |
25588 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
25589 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
25590 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
25591 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
25592 | done | |
25593 | fi | |
25594 | gltests_LIBOBJS=$gltests_libobjs | |
25595 | ||
25596 | gltests_LTLIBOBJS=$gltests_ltlibobjs | |
25597 | ||
25598 | ||
e28b3332 DJ |
25599 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
25600 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
25601 | Usually this means the macro was only invoked conditionally." >&5 | |
25602 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
25603 | Usually this means the macro was only invoked conditionally." >&2;} | |
25604 | { (exit 1); exit 1; }; } | |
25605 | fi | |
25606 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
25607 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
25608 | Usually this means the macro was only invoked conditionally." >&5 | |
25609 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
25610 | Usually this means the macro was only invoked conditionally." >&2;} | |
25611 | { (exit 1); exit 1; }; } | |
25612 | fi | |
bec39cab AC |
25613 | |
25614 | : ${CONFIG_STATUS=./config.status} | |
25615 | ac_clean_files_save=$ac_clean_files | |
25616 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25617 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25618 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25619 | cat >$CONFIG_STATUS <<_ACEOF | |
25620 | #! $SHELL | |
25621 | # Generated by $as_me. | |
25622 | # Run this file to recreate the current configuration. | |
25623 | # Compiler output produced by configure, useful for debugging | |
25624 | # configure, is in config.log if it exists. | |
25625 | ||
25626 | debug=false | |
25627 | ac_cs_recheck=false | |
25628 | ac_cs_silent=false | |
25629 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25630 | _ACEOF | |
25631 | ||
25632 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25633 | ## --------------------- ## | |
25634 | ## M4sh Initialization. ## | |
25635 | ## --------------------- ## | |
25636 | ||
25637 | # Be Bourne compatible | |
25638 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25639 | emulate sh | |
25640 | NULLCMD=: | |
25641 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
25642 | # is contrary to our usage. Disable this feature. | |
25643 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
25644 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
25645 | set -o posix | |
bec39cab AC |
25646 | fi |
25647 | DUALCASE=1; export DUALCASE # for MKS sh | |
25648 | ||
25649 | # Support unset when possible. | |
25650 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
25651 | as_unset=unset | |
25652 | else | |
25653 | as_unset=false | |
25654 | fi | |
25655 | ||
25656 | ||
25657 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 25658 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
25659 | PS1='$ ' |
25660 | PS2='> ' | |
25661 | PS4='+ ' | |
25662 | ||
25663 | # NLS nuisances. | |
25664 | for as_var in \ | |
25665 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
25666 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
25667 | LC_TELEPHONE LC_TIME | |
25668 | do | |
25669 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
25670 | eval $as_var=C; export $as_var | |
25671 | else | |
b4e70030 | 25672 | $as_unset $as_var |
bec39cab AC |
25673 | fi |
25674 | done | |
25675 | ||
25676 | # Required to use basename. | |
b4e70030 | 25677 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
25678 | as_expr=expr |
25679 | else | |
25680 | as_expr=false | |
25681 | fi | |
25682 | ||
b4e70030 | 25683 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
25684 | as_basename=basename |
25685 | else | |
25686 | as_basename=false | |
25687 | fi | |
25688 | ||
25689 | ||
25690 | # Name of the executable. | |
b4e70030 | 25691 | as_me=`$as_basename "$0" || |
bec39cab AC |
25692 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25693 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25694 | X"$0" : 'X\(/\)$' \| \ |
25695 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25696 | echo X/"$0" | |
b4e70030 JB |
25697 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
25698 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
25699 | /^X\/\(\/\).*/{ s//\1/; q; } | |
25700 | s/.*/./; q'` | |
bec39cab | 25701 | |
b4e70030 JB |
25702 | |
25703 | # PATH needs CR, and LINENO needs CR and PATH. | |
25704 | # Avoid depending upon Character Ranges. | |
25705 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25706 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25707 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25708 | as_cr_digits='0123456789' | |
25709 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25710 | ||
25711 | # The user is always right. | |
25712 | if test "${PATH_SEPARATOR+set}" != set; then | |
25713 | echo "#! /bin/sh" >conf$$.sh | |
25714 | echo "exit 0" >>conf$$.sh | |
25715 | chmod +x conf$$.sh | |
25716 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
25717 | PATH_SEPARATOR=';' | |
25718 | else | |
25719 | PATH_SEPARATOR=: | |
25720 | fi | |
25721 | rm -f conf$$.sh | |
25722 | fi | |
bec39cab AC |
25723 | |
25724 | ||
b4e70030 JB |
25725 | as_lineno_1=$LINENO |
25726 | as_lineno_2=$LINENO | |
25727 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25728 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25729 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
25730 | # Find who we are. Look in the path if we contain no path at all | |
25731 | # relative or not. | |
25732 | case $0 in | |
25733 | *[\\/]* ) as_myself=$0 ;; | |
25734 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25735 | for as_dir in $PATH | |
25736 | do | |
25737 | IFS=$as_save_IFS | |
25738 | test -z "$as_dir" && as_dir=. | |
25739 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25740 | done | |
bec39cab | 25741 | |
b4e70030 JB |
25742 | ;; |
25743 | esac | |
25744 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25745 | # in which case we are not to be found in the path. | |
25746 | if test "x$as_myself" = x; then | |
25747 | as_myself=$0 | |
25748 | fi | |
25749 | if test ! -f "$as_myself"; then | |
25750 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
25751 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
25752 | { (exit 1); exit 1; }; } | |
25753 | fi | |
25754 | case $CONFIG_SHELL in | |
25755 | '') | |
25756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25757 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25758 | do | |
25759 | IFS=$as_save_IFS | |
25760 | test -z "$as_dir" && as_dir=. | |
25761 | for as_base in sh bash ksh sh5; do | |
25762 | case $as_dir in | |
25763 | /*) | |
25764 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
25765 | as_lineno_1=$LINENO |
25766 | as_lineno_2=$LINENO | |
b4e70030 | 25767 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 25768 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
25769 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
25770 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
25771 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
25772 | CONFIG_SHELL=$as_dir/$as_base | |
25773 | export CONFIG_SHELL | |
25774 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
25775 | fi;; | |
25776 | esac | |
25777 | done | |
25778 | done | |
25779 | ;; | |
25780 | esac | |
bec39cab AC |
25781 | |
25782 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25783 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
25784 | # line-number line before each line; the second 'sed' does the real |
25785 | # work. The second script uses 'N' to pair each line-number line | |
25786 | # with the numbered line, and appends trailing '-' during | |
25787 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 25788 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
25789 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
25790 | sed '=' <$as_myself | | |
bec39cab AC |
25791 | sed ' |
25792 | N | |
b4e70030 JB |
25793 | s,$,-, |
25794 | : loop | |
25795 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 25796 | t loop |
b4e70030 JB |
25797 | s,-$,, |
25798 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 25799 | ' >$as_me.lineno && |
b4e70030 JB |
25800 | chmod +x $as_me.lineno || |
25801 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
25802 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
25803 | { (exit 1); exit 1; }; } |
25804 | ||
25805 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25806 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
25807 | # original and so on. Autoconf is especially sensible to this). |
25808 | . ./$as_me.lineno | |
bec39cab AC |
25809 | # Exit status is that of the last command. |
25810 | exit | |
25811 | } | |
25812 | ||
25813 | ||
b4e70030 JB |
25814 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
25815 | *c*,-n*) ECHO_N= ECHO_C=' | |
25816 | ' ECHO_T=' ' ;; | |
25817 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
25818 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
25819 | esac |
25820 | ||
b4e70030 | 25821 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
25822 | as_expr=expr |
25823 | else | |
25824 | as_expr=false | |
25825 | fi | |
25826 | ||
25827 | rm -f conf$$ conf$$.exe conf$$.file | |
25828 | echo >conf$$.file | |
25829 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
25830 | # We could just check for DJGPP; but this test a) works b) is more generic |
25831 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
25832 | if test -f conf$$.exe; then | |
25833 | # Don't use ln at all; we don't have any links | |
bec39cab | 25834 | as_ln_s='cp -p' |
b4e70030 JB |
25835 | else |
25836 | as_ln_s='ln -s' | |
25837 | fi | |
bec39cab AC |
25838 | elif ln conf$$.file conf$$ 2>/dev/null; then |
25839 | as_ln_s=ln | |
25840 | else | |
25841 | as_ln_s='cp -p' | |
25842 | fi | |
b4e70030 | 25843 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
25844 | |
25845 | if mkdir -p . 2>/dev/null; then | |
25846 | as_mkdir_p=: | |
25847 | else | |
25848 | test -d ./-p && rmdir ./-p | |
25849 | as_mkdir_p=false | |
25850 | fi | |
25851 | ||
b4e70030 | 25852 | as_executable_p="test -f" |
bec39cab AC |
25853 | |
25854 | # Sed expression to map a string onto a valid CPP name. | |
25855 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25856 | ||
25857 | # Sed expression to map a string onto a valid variable name. | |
25858 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25859 | ||
25860 | ||
b4e70030 JB |
25861 | # IFS |
25862 | # We need space, tab and new line, in precisely that order. | |
25863 | as_nl=' | |
25864 | ' | |
25865 | IFS=" $as_nl" | |
25866 | ||
25867 | # CDPATH. | |
25868 | $as_unset CDPATH | |
25869 | ||
bec39cab AC |
25870 | exec 6>&1 |
25871 | ||
b4e70030 | 25872 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 25873 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
25874 | # values after options handling. Logging --version etc. is OK. |
25875 | exec 5>>config.log | |
25876 | { | |
25877 | echo | |
25878 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25879 | ## Running $as_me. ## | |
25880 | _ASBOX | |
25881 | } >&5 | |
25882 | cat >&5 <<_CSEOF | |
25883 | ||
bec39cab | 25884 | This file was extended by $as_me, which was |
b4e70030 | 25885 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
25886 | |
25887 | CONFIG_FILES = $CONFIG_FILES | |
25888 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25889 | CONFIG_LINKS = $CONFIG_LINKS | |
25890 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25891 | $ $0 $@ | |
25892 | ||
b4e70030 JB |
25893 | _CSEOF |
25894 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
25895 | echo >&5 | |
bec39cab AC |
25896 | _ACEOF |
25897 | ||
25898 | # Files that config.status was made for. | |
b4e70030 JB |
25899 | if test -n "$ac_config_files"; then |
25900 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
25901 | fi | |
234b45d4 | 25902 | |
b4e70030 JB |
25903 | if test -n "$ac_config_headers"; then |
25904 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
25905 | fi | |
25906 | ||
25907 | if test -n "$ac_config_links"; then | |
25908 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
25909 | fi | |
25910 | ||
25911 | if test -n "$ac_config_commands"; then | |
25912 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
25913 | fi | |
234b45d4 | 25914 | |
bec39cab | 25915 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 25916 | |
bec39cab AC |
25917 | ac_cs_usage="\ |
25918 | \`$as_me' instantiates files from templates according to the | |
25919 | current configuration. | |
234b45d4 | 25920 | |
bec39cab | 25921 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 25922 | |
bec39cab AC |
25923 | -h, --help print this help, then exit |
25924 | -V, --version print version number, then exit | |
25925 | -q, --quiet do not print progress messages | |
25926 | -d, --debug don't remove temporary files | |
25927 | --recheck update $as_me by reconfiguring in the same conditions | |
25928 | --file=FILE[:TEMPLATE] | |
25929 | instantiate the configuration file FILE | |
25930 | --header=FILE[:TEMPLATE] | |
25931 | instantiate the configuration header FILE | |
234b45d4 | 25932 | |
bec39cab AC |
25933 | Configuration files: |
25934 | $config_files | |
234b45d4 | 25935 | |
bec39cab AC |
25936 | Configuration headers: |
25937 | $config_headers | |
234b45d4 | 25938 | |
bec39cab AC |
25939 | Configuration links: |
25940 | $config_links | |
234b45d4 | 25941 | |
bec39cab AC |
25942 | Configuration commands: |
25943 | $config_commands | |
25944 | ||
25945 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 25946 | _ACEOF |
b4e70030 | 25947 | |
bec39cab AC |
25948 | cat >>$CONFIG_STATUS <<_ACEOF |
25949 | ac_cs_version="\\ | |
25950 | config.status | |
b4e70030 | 25951 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
25952 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
25953 | ||
b4e70030 | 25954 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
25955 | This config.status script is free software; the Free Software Foundation |
25956 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
25957 | srcdir=$srcdir |
25958 | INSTALL="$INSTALL" | |
bec39cab AC |
25959 | _ACEOF |
25960 | ||
25961 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25962 | # If no file are specified by the user, then we need to provide default | |
25963 | # value. By we need to know if files were specified by the user. | |
25964 | ac_need_defaults=: | |
25965 | while test $# != 0 | |
25966 | do | |
25967 | case $1 in | |
25968 | --*=*) | |
b4e70030 JB |
25969 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
25970 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 25971 | ac_shift=: |
c906108c | 25972 | ;; |
b4e70030 | 25973 | -*) |
bec39cab AC |
25974 | ac_option=$1 |
25975 | ac_optarg=$2 | |
25976 | ac_shift=shift | |
c906108c | 25977 | ;; |
b4e70030 JB |
25978 | *) # This is not an option, so the user has probably given explicit |
25979 | # arguments. | |
25980 | ac_option=$1 | |
25981 | ac_need_defaults=false;; | |
bec39cab | 25982 | esac |
c906108c | 25983 | |
bec39cab AC |
25984 | case $ac_option in |
25985 | # Handling of the options. | |
b4e70030 JB |
25986 | _ACEOF |
25987 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
25988 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25989 | ac_cs_recheck=: ;; | |
b4e70030 JB |
25990 | --version | --vers* | -V ) |
25991 | echo "$ac_cs_version"; exit 0 ;; | |
25992 | --he | --h) | |
25993 | # Conflict between --help and --header | |
25994 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
25995 | Try \`$0 --help' for more information." >&5 | |
25996 | echo "$as_me: error: ambiguous option: $1 | |
25997 | Try \`$0 --help' for more information." >&2;} | |
25998 | { (exit 1); exit 1; }; };; | |
25999 | --help | --hel | -h ) | |
26000 | echo "$ac_cs_usage"; exit 0 ;; | |
26001 | --debug | --d* | -d ) | |
bec39cab AC |
26002 | debug=: ;; |
26003 | --file | --fil | --fi | --f ) | |
26004 | $ac_shift | |
26005 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
26006 | ac_need_defaults=false;; | |
26007 | --header | --heade | --head | --hea ) | |
26008 | $ac_shift | |
26009 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
26010 | ac_need_defaults=false;; | |
26011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
26012 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
26013 | ac_cs_silent=: ;; | |
c906108c | 26014 | |
bec39cab | 26015 | # This is an error. |
b4e70030 JB |
26016 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
26017 | Try \`$0 --help' for more information." >&5 | |
26018 | echo "$as_me: error: unrecognized option: $1 | |
26019 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 26020 | { (exit 1); exit 1; }; } ;; |
c906108c | 26021 | |
b4e70030 | 26022 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 26023 | |
bec39cab AC |
26024 | esac |
26025 | shift | |
26026 | done | |
c906108c | 26027 | |
bec39cab | 26028 | ac_configure_extra_args= |
c906108c | 26029 | |
bec39cab AC |
26030 | if $ac_cs_silent; then |
26031 | exec 6>/dev/null | |
26032 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
26033 | fi | |
c906108c | 26034 | |
bec39cab AC |
26035 | _ACEOF |
26036 | cat >>$CONFIG_STATUS <<_ACEOF | |
26037 | if \$ac_cs_recheck; then | |
b4e70030 JB |
26038 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
26039 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
26040 | fi |
26041 | ||
26042 | _ACEOF | |
26043 | ||
26044 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 26045 | # |
b4e70030 | 26046 | # INIT-COMMANDS section. |
c906108c | 26047 | # |
c906108c | 26048 | |
e28b3332 | 26049 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
b4e70030 | 26050 | |
bec39cab | 26051 | gdb_host_cpu=$gdb_host_cpu |
bec39cab AC |
26052 | nativefile=$nativefile |
26053 | ||
26054 | ||
26055 | _ACEOF | |
26056 | ||
4e8d927d | 26057 | |
b4e70030 JB |
26058 | |
26059 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 26060 | for ac_config_target in $ac_config_targets |
c906108c | 26061 | do |
b4e70030 JB |
26062 | case "$ac_config_target" in |
26063 | # Handling of arguments. | |
26064 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
26065 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
e28b3332 | 26066 | "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; |
b4e70030 | 26067 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
e28b3332 | 26068 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
b4e70030 JB |
26069 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
26070 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
26071 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
26072 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
26073 | { (exit 1); exit 1; }; };; | |
c906108c SS |
26074 | esac |
26075 | done | |
26076 | ||
bec39cab AC |
26077 | # If the user did not use the arguments to specify the items to instantiate, |
26078 | # then the envvar interface is used. Set only those that are not. | |
26079 | # We use the long form for the default assignment because of an extremely | |
26080 | # bizarre bug on SunOS 4.1.3. | |
26081 | if $ac_need_defaults; then | |
26082 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
26083 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
26084 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
26085 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
26086 | fi | |
26087 | ||
b4e70030 JB |
26088 | # Have a temporary directory for convenience. Make it in the build tree |
26089 | # simply because there is no reason to put it here, and in addition, | |
26090 | # creating and moving files from /tmp can sometimes cause problems. | |
26091 | # Create a temporary directory, and hook for its removal unless debugging. | |
26092 | $debug || | |
26093 | { | |
26094 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
26095 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
26096 | } | |
4e8d927d | 26097 | |
b4e70030 | 26098 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 26099 | |
b4e70030 JB |
26100 | { |
26101 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
26102 | test -n "$tmp" && test -d "$tmp" | |
26103 | } || | |
26104 | { | |
26105 | tmp=./confstat$$-$RANDOM | |
26106 | (umask 077 && mkdir $tmp) | |
26107 | } || | |
26108 | { | |
26109 | echo "$me: cannot create a temporary directory in ." >&2 | |
26110 | { (exit 1); exit 1; } | |
26111 | } | |
4e8d927d | 26112 | |
b4e70030 | 26113 | _ACEOF |
4e8d927d | 26114 | |
b4e70030 | 26115 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 26116 | |
b4e70030 JB |
26117 | # |
26118 | # CONFIG_FILES section. | |
26119 | # | |
4e8d927d | 26120 | |
b4e70030 JB |
26121 | # No need to generate the scripts if there are no CONFIG_FILES. |
26122 | # This happens for instance when ./config.status config.h | |
26123 | if test -n "\$CONFIG_FILES"; then | |
26124 | # Protect against being on the right side of a sed subst in config.status. | |
26125 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
26126 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
26127 | s,@SHELL@,$SHELL,;t t | |
26128 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
26129 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
26130 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
26131 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
26132 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
26133 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
26134 | s,@exec_prefix@,$exec_prefix,;t t | |
26135 | s,@prefix@,$prefix,;t t | |
26136 | s,@program_transform_name@,$program_transform_name,;t t | |
26137 | s,@bindir@,$bindir,;t t | |
26138 | s,@sbindir@,$sbindir,;t t | |
26139 | s,@libexecdir@,$libexecdir,;t t | |
26140 | s,@datadir@,$datadir,;t t | |
26141 | s,@sysconfdir@,$sysconfdir,;t t | |
26142 | s,@sharedstatedir@,$sharedstatedir,;t t | |
26143 | s,@localstatedir@,$localstatedir,;t t | |
26144 | s,@libdir@,$libdir,;t t | |
26145 | s,@includedir@,$includedir,;t t | |
26146 | s,@oldincludedir@,$oldincludedir,;t t | |
26147 | s,@infodir@,$infodir,;t t | |
26148 | s,@mandir@,$mandir,;t t | |
26149 | s,@build_alias@,$build_alias,;t t | |
26150 | s,@host_alias@,$host_alias,;t t | |
26151 | s,@target_alias@,$target_alias,;t t | |
26152 | s,@DEFS@,$DEFS,;t t | |
26153 | s,@ECHO_C@,$ECHO_C,;t t | |
26154 | s,@ECHO_N@,$ECHO_N,;t t | |
26155 | s,@ECHO_T@,$ECHO_T,;t t | |
26156 | s,@LIBS@,$LIBS,;t t | |
26157 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
26158 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
26159 | s,@MAINT@,$MAINT,;t t | |
26160 | s,@CC@,$CC,;t t | |
26161 | s,@CFLAGS@,$CFLAGS,;t t | |
26162 | s,@LDFLAGS@,$LDFLAGS,;t t | |
26163 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
26164 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
26165 | s,@EXEEXT@,$EXEEXT,;t t | |
26166 | s,@OBJEXT@,$OBJEXT,;t t | |
26167 | s,@CPP@,$CPP,;t t | |
26168 | s,@EGREP@,$EGREP,;t t | |
783e057b DJ |
26169 | s,@RANLIB@,$RANLIB,;t t |
26170 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
26171 | s,@build@,$build,;t t |
26172 | s,@build_cpu@,$build_cpu,;t t | |
26173 | s,@build_vendor@,$build_vendor,;t t | |
26174 | s,@build_os@,$build_os,;t t | |
26175 | s,@host@,$host,;t t | |
26176 | s,@host_cpu@,$host_cpu,;t t | |
26177 | s,@host_vendor@,$host_vendor,;t t | |
26178 | s,@host_os@,$host_os,;t t | |
26179 | s,@target@,$target,;t t | |
26180 | s,@target_cpu@,$target_cpu,;t t | |
26181 | s,@target_vendor@,$target_vendor,;t t | |
26182 | s,@target_os@,$target_os,;t t | |
b4e70030 | 26183 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
26184 | s,@LIBINTL@,$LIBINTL,;t t |
26185 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
26186 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 26187 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
26188 | s,@GMSGFMT@,$GMSGFMT,;t t |
26189 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 26190 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 26191 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 26192 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
26193 | s,@GENCAT@,$GENCAT,;t t |
26194 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 | 26195 | s,@localedir@,$localedir,;t t |
783e057b DJ |
26196 | s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t |
26197 | s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t | |
26198 | s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t | |
26199 | s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t | |
26200 | s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t | |
26201 | s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t | |
26202 | s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t | |
26203 | s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t | |
26204 | s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t | |
26205 | s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t | |
26206 | s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t | |
26207 | s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t | |
26208 | s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t | |
26209 | s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t | |
26210 | s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t | |
26211 | s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t | |
26212 | s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t | |
26213 | s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t | |
26214 | s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t | |
26215 | s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t | |
26216 | s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t | |
26217 | s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t | |
26218 | s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t | |
26219 | s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t | |
26220 | s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t | |
26221 | s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t | |
26222 | s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t | |
26223 | s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t | |
26224 | s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t | |
26225 | s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t | |
26226 | s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t | |
26227 | s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t | |
26228 | s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t | |
26229 | s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t | |
26230 | s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t | |
26231 | s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t | |
26232 | s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t | |
26233 | s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t | |
26234 | s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t | |
26235 | s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t | |
26236 | s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t | |
26237 | s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t | |
26238 | s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t | |
26239 | s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t | |
26240 | s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t | |
26241 | s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t | |
26242 | s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t | |
26243 | s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t | |
26244 | s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t | |
26245 | s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t | |
26246 | s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t | |
26247 | s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t | |
26248 | s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t | |
26249 | s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t | |
26250 | s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t | |
26251 | s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t | |
26252 | s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t | |
26253 | s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t | |
26254 | s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t | |
26255 | s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t | |
26256 | s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t | |
26257 | s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t | |
26258 | s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t | |
26259 | s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t | |
26260 | s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t | |
26261 | s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t | |
26262 | s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t | |
26263 | s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t | |
26264 | s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t | |
26265 | s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t | |
26266 | s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t | |
26267 | s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t | |
26268 | s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t | |
26269 | s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t | |
26270 | s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t | |
26271 | s,@STDINT_H@,$STDINT_H,;t t | |
26272 | s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t | |
26273 | s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t | |
26274 | s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t | |
26275 | s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t | |
26276 | s,@WCHAR_H@,$WCHAR_H,;t t | |
26277 | s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t | |
26278 | s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t | |
26279 | s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t | |
26280 | s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t | |
d5af19ba | 26281 | s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t |
b4e70030 | 26282 | s,@PACKAGE@,$PACKAGE,;t t |
b4e70030 JB |
26283 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
26284 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
26285 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
e28b3332 DJ |
26286 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
26287 | s,@VERSION@,$VERSION,;t t | |
26288 | s,@ACLOCAL@,$ACLOCAL,;t t | |
26289 | s,@AUTOCONF@,$AUTOCONF,;t t | |
26290 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
26291 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
26292 | s,@MAKEINFO@,$MAKEINFO,;t t | |
26293 | s,@install_sh@,$install_sh,;t t | |
26294 | s,@STRIP@,$STRIP,;t t | |
26295 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
26296 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
26297 | s,@mkdir_p@,$mkdir_p,;t t | |
26298 | s,@AWK@,$AWK,;t t | |
26299 | s,@SET_MAKE@,$SET_MAKE,;t t | |
26300 | s,@am__leading_dot@,$am__leading_dot,;t t | |
26301 | s,@AMTAR@,$AMTAR,;t t | |
26302 | s,@am__tar@,$am__tar,;t t | |
26303 | s,@am__untar@,$am__untar,;t t | |
26304 | s,@DEPDIR@,$DEPDIR,;t t | |
26305 | s,@am__include@,$am__include,;t t | |
26306 | s,@am__quote@,$am__quote,;t t | |
26307 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
26308 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
26309 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
26310 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
26311 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
26312 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
26313 | s,@subdirs@,$subdirs,;t t | |
26314 | s,@TARGET_OBS@,$TARGET_OBS,;t t | |
c16158bc JM |
26315 | s,@PKGVERSION@,$PKGVERSION,;t t |
26316 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t | |
26317 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
b4e70030 JB |
26318 | s,@LN_S@,$LN_S,;t t |
26319 | s,@YACC@,$YACC,;t t | |
26320 | s,@AR@,$AR,;t t | |
26321 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
26322 | s,@DLLTOOL@,$DLLTOOL,;t t | |
26323 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
26324 | s,@WINDRES@,$WINDRES,;t t | |
26325 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
26326 | s,@MIG@,$MIG,;t t | |
26327 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
26328 | s,@READLINE@,$READLINE,;t t |
26329 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
26330 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
26331 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
26332 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
26333 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 26334 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
26335 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
26336 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
26337 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
26338 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
26339 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
26340 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
26341 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
26342 | s,@LIBGUI@,$LIBGUI,;t t | |
26343 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
26344 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
26345 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
5062cc19 KS |
26346 | s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t |
26347 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t | |
26348 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t | |
26349 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t | |
26350 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t | |
b4e70030 | 26351 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
5062cc19 KS |
26352 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
26353 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t | |
26354 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t | |
26355 | s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t | |
26356 | s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t | |
26357 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
b4e70030 | 26358 | s,@TK_VERSION@,$TK_VERSION,;t t |
5062cc19 KS |
26359 | s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t |
26360 | s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t | |
26361 | s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t | |
26362 | s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t | |
b4e70030 | 26363 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
5062cc19 KS |
26364 | s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t |
26365 | s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t | |
26366 | s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t | |
26367 | s,@TK_INCLUDE@,$TK_INCLUDE,;t t | |
26368 | s,@TK_LIBRARY@,$TK_LIBRARY,;t t | |
26369 | s,@TK_DEPS@,$TK_DEPS,;t t | |
26370 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
b4e70030 JB |
26371 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
26372 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
26373 | s,@X_LIBS@,$X_LIBS,;t t | |
b4e70030 JB |
26374 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
26375 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
26376 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
9b624dbe UW |
26377 | s,@SIM@,$SIM,;t t |
26378 | s,@SIM_OBS@,$SIM_OBS,;t t | |
b4e70030 JB |
26379 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
26380 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
26381 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
26382 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
26383 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
26384 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
26385 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
26386 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
26387 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
26388 | s,@target_subdir@,$target_subdir,;t t | |
26389 | s,@frags@,$frags,;t t | |
b4e70030 JB |
26390 | s,@nm_h@,$nm_h,;t t |
26391 | s,@LIBICONV@,$LIBICONV,;t t | |
26392 | s,@LIBOBJS@,$LIBOBJS,;t t | |
26393 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
783e057b DJ |
26394 | s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t |
26395 | s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t | |
26396 | s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t | |
26397 | s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t | |
b4e70030 JB |
26398 | /@host_makefile_frag@/r $host_makefile_frag |
26399 | s,@host_makefile_frag@,,;t t | |
b4e70030 JB |
26400 | CEOF |
26401 | ||
26402 | _ACEOF | |
26403 | ||
26404 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26405 | # Split the substitutions into bite-sized pieces for seds with | |
26406 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
26407 | ac_max_sed_lines=48 | |
26408 | ac_sed_frag=1 # Number of current file. | |
26409 | ac_beg=1 # First line for current file. | |
26410 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
26411 | ac_more_lines=: | |
26412 | ac_sed_cmds= | |
26413 | while $ac_more_lines; do | |
26414 | if test $ac_beg -gt 1; then | |
26415 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
26416 | else | |
26417 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 26418 | fi |
b4e70030 JB |
26419 | if test ! -s $tmp/subs.frag; then |
26420 | ac_more_lines=false | |
26421 | else | |
26422 | # The purpose of the label and of the branching condition is to | |
26423 | # speed up the sed processing (if there are no `@' at all, there | |
26424 | # is no need to browse any of the substitutions). | |
26425 | # These are the two extra sed commands mentioned above. | |
26426 | (echo ':t | |
26427 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
26428 | if test -z "$ac_sed_cmds"; then | |
26429 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
26430 | else | |
26431 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
26432 | fi | |
26433 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
26434 | ac_beg=$ac_end | |
26435 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
26436 | fi | |
26437 | done | |
26438 | if test -z "$ac_sed_cmds"; then | |
26439 | ac_sed_cmds=cat | |
26440 | fi | |
26441 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 26442 | |
b4e70030 JB |
26443 | _ACEOF |
26444 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26445 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
26446 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
26447 | case $ac_file in | |
26448 | - | *:- | *:-:* ) # input from stdin | |
26449 | cat >$tmp/stdin | |
26450 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26451 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26452 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26453 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26454 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
26455 | esac |
26456 | ||
b4e70030 JB |
26457 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
26458 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
26459 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26460 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26461 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
26462 | X"$ac_file" : 'X\(/\)' \| \ |
26463 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 26464 | echo X"$ac_file" | |
b4e70030 JB |
26465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26466 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26467 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26468 | /^X\(\/\).*/{ s//\1/; q; } | |
26469 | s/.*/./; q'` | |
26470 | { if $as_mkdir_p; then | |
26471 | mkdir -p "$ac_dir" | |
26472 | else | |
26473 | as_dir="$ac_dir" | |
bec39cab | 26474 | as_dirs= |
b4e70030 JB |
26475 | while test ! -d "$as_dir"; do |
26476 | as_dirs="$as_dir $as_dirs" | |
26477 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
26478 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26479 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26480 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
26481 | X"$as_dir" : 'X\(/\)' \| \ |
26482 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 26483 | echo X"$as_dir" | |
b4e70030 JB |
26484 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26485 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26486 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26487 | /^X\(\/\).*/{ s//\1/; q; } | |
26488 | s/.*/./; q'` | |
bec39cab | 26489 | done |
b4e70030 JB |
26490 | test ! -n "$as_dirs" || mkdir $as_dirs |
26491 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26492 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 26493 | { (exit 1); exit 1; }; }; } |
b4e70030 | 26494 | |
bec39cab AC |
26495 | ac_builddir=. |
26496 | ||
b4e70030 | 26497 | if test "$ac_dir" != .; then |
bec39cab | 26498 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
26499 | # A "../" for each directory in $ac_dir_suffix. |
26500 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26501 | else | |
26502 | ac_dir_suffix= ac_top_builddir= | |
26503 | fi | |
bec39cab AC |
26504 | |
26505 | case $srcdir in | |
b4e70030 | 26506 | .) # No --srcdir option. We are building in place. |
bec39cab | 26507 | ac_srcdir=. |
b4e70030 JB |
26508 | if test -z "$ac_top_builddir"; then |
26509 | ac_top_srcdir=. | |
26510 | else | |
26511 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26512 | fi ;; | |
26513 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 26514 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
26515 | ac_top_srcdir=$srcdir ;; |
26516 | *) # Relative path. | |
26517 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26518 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
26519 | esac |
26520 | ||
b4e70030 JB |
26521 | # Do not use `cd foo && pwd` to compute absolute paths, because |
26522 | # the directories may not exist. | |
26523 | case `pwd` in | |
26524 | .) ac_abs_builddir="$ac_dir";; | |
26525 | *) | |
26526 | case "$ac_dir" in | |
26527 | .) ac_abs_builddir=`pwd`;; | |
26528 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
26529 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
26530 | esac;; | |
26531 | esac | |
26532 | case $ac_abs_builddir in | |
26533 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26534 | *) | |
26535 | case ${ac_top_builddir}. in | |
26536 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26537 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26538 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26539 | esac;; | |
26540 | esac | |
26541 | case $ac_abs_builddir in | |
26542 | .) ac_abs_srcdir=$ac_srcdir;; | |
26543 | *) | |
26544 | case $ac_srcdir in | |
26545 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26546 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26547 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26548 | esac;; | |
26549 | esac | |
26550 | case $ac_abs_builddir in | |
26551 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26552 | *) | |
26553 | case $ac_top_srcdir in | |
26554 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
26555 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26556 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
26557 | esac;; | |
26558 | esac | |
c906108c | 26559 | |
c906108c | 26560 | |
bec39cab AC |
26561 | case $INSTALL in |
26562 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 26563 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 26564 | esac |
121ce6e5 | 26565 | |
b4e70030 JB |
26566 | if test x"$ac_file" != x-; then |
26567 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26568 | echo "$as_me: creating $ac_file" >&6;} | |
26569 | rm -f "$ac_file" | |
26570 | fi | |
26571 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26572 | # use $as_me), people would be surprised to read: | |
26573 | # /* config.h. Generated by config.status. */ | |
26574 | if test x"$ac_file" = x-; then | |
26575 | configure_input= | |
26576 | else | |
26577 | configure_input="$ac_file. " | |
26578 | fi | |
26579 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
26580 | sed 's,.*/,,'` by configure." | |
26581 | ||
26582 | # First look for the input files in the build tree, otherwise in the | |
26583 | # src tree. | |
26584 | ac_file_inputs=`IFS=: | |
26585 | for f in $ac_file_in; do | |
26586 | case $f in | |
26587 | -) echo $tmp/stdin ;; | |
26588 | [\\/$]*) | |
26589 | # Absolute (can't be DOS-style, as IFS=:) | |
26590 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26591 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26592 | { (exit 1); exit 1; }; } | |
26593 | echo "$f";; | |
26594 | *) # Relative | |
26595 | if test -f "$f"; then | |
26596 | # Build tree | |
26597 | echo "$f" | |
26598 | elif test -f "$srcdir/$f"; then | |
26599 | # Source tree | |
26600 | echo "$srcdir/$f" | |
26601 | else | |
26602 | # /dev/null tree | |
26603 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26604 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26605 | { (exit 1); exit 1; }; } | |
26606 | fi;; | |
26607 | esac | |
26608 | done` || { (exit 1); exit 1; } | |
4e8d927d | 26609 | _ACEOF |
bec39cab AC |
26610 | cat >>$CONFIG_STATUS <<_ACEOF |
26611 | sed "$ac_vpsub | |
26612 | $extrasub | |
26613 | _ACEOF | |
26614 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26615 | :t | |
26616 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
26617 | s,@configure_input@,$configure_input,;t t |
26618 | s,@srcdir@,$ac_srcdir,;t t | |
26619 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
26620 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
26621 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
26622 | s,@builddir@,$ac_builddir,;t t | |
26623 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
26624 | s,@top_builddir@,$ac_top_builddir,;t t | |
26625 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
26626 | s,@INSTALL@,$ac_INSTALL,;t t | |
26627 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
26628 | rm -f $tmp/stdin | |
26629 | if test x"$ac_file" != x-; then | |
26630 | mv $tmp/out $ac_file | |
26631 | else | |
26632 | cat $tmp/out | |
26633 | rm -f $tmp/out | |
26634 | fi | |
26635 | ||
26636 | done | |
26637 | _ACEOF | |
26638 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26639 | ||
26640 | # | |
26641 | # CONFIG_HEADER section. | |
26642 | # | |
26643 | ||
26644 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
26645 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
26646 | # | |
26647 | # ac_d sets the value in "#define NAME VALUE" lines. | |
26648 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
26649 | ac_dB='[ ].*$,\1#\2' | |
26650 | ac_dC=' ' | |
26651 | ac_dD=',;t' | |
26652 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
26653 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
26654 | ac_uB='$,\1#\2define\3' | |
26655 | ac_uC=' ' | |
26656 | ac_uD=',;t' | |
26657 | ||
26658 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
26659 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 26660 | case $ac_file in |
b4e70030 JB |
26661 | - | *:- | *:-:* ) # input from stdin |
26662 | cat >$tmp/stdin | |
26663 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26664 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26665 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26666 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26667 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 26668 | esac |
b4e70030 JB |
26669 | |
26670 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26671 | echo "$as_me: creating $ac_file" >&6;} | |
26672 | ||
26673 | # First look for the input files in the build tree, otherwise in the | |
26674 | # src tree. | |
26675 | ac_file_inputs=`IFS=: | |
26676 | for f in $ac_file_in; do | |
26677 | case $f in | |
26678 | -) echo $tmp/stdin ;; | |
26679 | [\\/$]*) | |
26680 | # Absolute (can't be DOS-style, as IFS=:) | |
26681 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26682 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26683 | { (exit 1); exit 1; }; } | |
26684 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
26685 | echo "$f";; | |
26686 | *) # Relative | |
26687 | if test -f "$f"; then | |
26688 | # Build tree | |
26689 | echo "$f" | |
26690 | elif test -f "$srcdir/$f"; then | |
26691 | # Source tree | |
26692 | echo "$srcdir/$f" | |
26693 | else | |
26694 | # /dev/null tree | |
26695 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26696 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26697 | { (exit 1); exit 1; }; } | |
26698 | fi;; | |
26699 | esac | |
26700 | done` || { (exit 1); exit 1; } | |
26701 | # Remove the trailing spaces. | |
26702 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
26703 | ||
26704 | _ACEOF | |
26705 | ||
26706 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
26707 | # `conftest.undefs', that substitutes the proper values into | |
26708 | # config.h.in to produce config.h. The first handles `#define' | |
26709 | # templates, and the second `#undef' templates. | |
26710 | # And first: Protect against being on the right side of a sed subst in | |
26711 | # config.status. Protect against being in an unquoted here document | |
26712 | # in config.status. | |
26713 | rm -f conftest.defines conftest.undefs | |
26714 | # Using a here document instead of a string reduces the quoting nightmare. | |
26715 | # Putting comments in sed scripts is not portable. | |
26716 | # | |
26717 | # `end' is used to avoid that the second main sed command (meant for | |
26718 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
26719 | # See the Autoconf documentation for `clear'. | |
26720 | cat >confdef2sed.sed <<\_ACEOF | |
26721 | s/[\\&,]/\\&/g | |
26722 | s,[\\$`],\\&,g | |
26723 | t clear | |
26724 | : clear | |
26725 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
26726 | t end | |
26727 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
26728 | : end | |
26729 | _ACEOF | |
26730 | # If some macros were called several times there might be several times | |
26731 | # the same #defines, which is useless. Nevertheless, we may not want to | |
26732 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
26733 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
26734 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
26735 | rm -f confdef2sed.sed | |
26736 | ||
26737 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
26738 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
26739 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
26740 | cat >>conftest.undefs <<\_ACEOF |
26741 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
26742 | _ACEOF | |
26743 | ||
26744 | # Break up conftest.defines because some shells have a limit on the size | |
26745 | # of here documents, and old seds have small limits too (100 cmds). | |
26746 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
26747 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
26748 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
26749 | echo ' :' >>$CONFIG_STATUS | |
26750 | rm -f conftest.tail | |
26751 | while grep . conftest.defines >/dev/null | |
bec39cab | 26752 | do |
b4e70030 JB |
26753 | # Write a limited-size here document to $tmp/defines.sed. |
26754 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
26755 | # Speed up: don't consider the non `#define' lines. | |
26756 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
26757 | # Work around the forget-to-reset-the-flag bug. | |
26758 | echo 't clr' >>$CONFIG_STATUS | |
26759 | echo ': clr' >>$CONFIG_STATUS | |
26760 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 26761 | echo 'CEOF |
b4e70030 JB |
26762 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
26763 | rm -f $tmp/in | |
26764 | mv $tmp/out $tmp/in | |
26765 | ' >>$CONFIG_STATUS | |
26766 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
26767 | rm -f conftest.defines |
26768 | mv conftest.tail conftest.defines | |
26769 | done | |
b4e70030 JB |
26770 | rm -f conftest.defines |
26771 | echo ' fi # grep' >>$CONFIG_STATUS | |
26772 | echo >>$CONFIG_STATUS | |
26773 | ||
26774 | # Break up conftest.undefs because some shells have a limit on the size | |
26775 | # of here documents, and old seds have small limits too (100 cmds). | |
26776 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
26777 | rm -f conftest.tail | |
26778 | while grep . conftest.undefs >/dev/null | |
26779 | do | |
26780 | # Write a limited-size here document to $tmp/undefs.sed. | |
26781 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
26782 | # Speed up: don't consider the non `#undef' | |
26783 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
26784 | # Work around the forget-to-reset-the-flag bug. | |
26785 | echo 't clr' >>$CONFIG_STATUS | |
26786 | echo ': clr' >>$CONFIG_STATUS | |
26787 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
26788 | echo 'CEOF | |
26789 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
26790 | rm -f $tmp/in | |
26791 | mv $tmp/out $tmp/in | |
26792 | ' >>$CONFIG_STATUS | |
26793 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
26794 | rm -f conftest.undefs | |
26795 | mv conftest.tail conftest.undefs | |
26796 | done | |
26797 | rm -f conftest.undefs | |
bec39cab AC |
26798 | |
26799 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
26800 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
26801 | # use $as_me), people would be surprised to read: | |
26802 | # /* config.h. Generated by config.status. */ | |
26803 | if test x"$ac_file" = x-; then | |
26804 | echo "/* Generated by configure. */" >$tmp/config.h | |
26805 | else | |
26806 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
26807 | fi | |
26808 | cat $tmp/in >>$tmp/config.h | |
26809 | rm -f $tmp/in | |
bec39cab | 26810 | if test x"$ac_file" != x-; then |
b4e70030 | 26811 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
26812 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
26813 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26814 | else | |
b4e70030 JB |
26815 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
26816 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26817 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26818 | X"$ac_file" : 'X\(//\)$' \| \ | |
26819 | X"$ac_file" : 'X\(/\)' \| \ | |
26820 | . : '\(.\)' 2>/dev/null || | |
26821 | echo X"$ac_file" | | |
26822 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26823 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26824 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26825 | /^X\(\/\).*/{ s//\1/; q; } | |
26826 | s/.*/./; q'` | |
26827 | { if $as_mkdir_p; then | |
26828 | mkdir -p "$ac_dir" | |
26829 | else | |
26830 | as_dir="$ac_dir" | |
26831 | as_dirs= | |
26832 | while test ! -d "$as_dir"; do | |
26833 | as_dirs="$as_dir $as_dirs" | |
26834 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26835 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26836 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26837 | X"$as_dir" : 'X\(//\)$' \| \ | |
26838 | X"$as_dir" : 'X\(/\)' \| \ | |
26839 | . : '\(.\)' 2>/dev/null || | |
26840 | echo X"$as_dir" | | |
26841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26842 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26843 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26844 | /^X\(\/\).*/{ s//\1/; q; } | |
26845 | s/.*/./; q'` | |
26846 | done | |
26847 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26848 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26849 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26850 | { (exit 1); exit 1; }; }; } | |
26851 | ||
bec39cab | 26852 | rm -f $ac_file |
b4e70030 | 26853 | mv $tmp/config.h $ac_file |
bec39cab AC |
26854 | fi |
26855 | else | |
b4e70030 JB |
26856 | cat $tmp/config.h |
26857 | rm -f $tmp/config.h | |
bec39cab | 26858 | fi |
e28b3332 DJ |
26859 | # Compute $ac_file's index in $config_headers. |
26860 | _am_stamp_count=1 | |
26861 | for _am_header in $config_headers :; do | |
26862 | case $_am_header in | |
26863 | $ac_file | $ac_file:* ) | |
26864 | break ;; | |
26865 | * ) | |
26866 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
26867 | esac | |
26868 | done | |
26869 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
26870 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26871 | X$ac_file : 'X\(//\)[^/]' \| \ | |
26872 | X$ac_file : 'X\(//\)$' \| \ | |
26873 | X$ac_file : 'X\(/\)' \| \ | |
26874 | . : '\(.\)' 2>/dev/null || | |
26875 | echo X$ac_file | | |
26876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26878 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26879 | /^X\(\/\).*/{ s//\1/; q; } | |
26880 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
b4e70030 JB |
26881 | done |
26882 | _ACEOF | |
26883 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26884 | ||
26885 | # | |
26886 | # CONFIG_LINKS section. | |
26887 | # | |
26888 | ||
26889 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
26890 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
26891 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 26892 | |
b4e70030 JB |
26893 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
26894 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
26895 | |
26896 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
26897 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
26898 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
26899 | { (exit 1); exit 1; }; } | |
c906108c | 26900 | fi |
b4e70030 JB |
26901 | rm -f $ac_dest |
26902 | ||
26903 | # Make relative symlinks. | |
26904 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
26905 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26906 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
26907 | X"$ac_dest" : 'X\(//\)$' \| \ | |
26908 | X"$ac_dest" : 'X\(/\)' \| \ | |
26909 | . : '\(.\)' 2>/dev/null || | |
26910 | echo X"$ac_dest" | | |
26911 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26912 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26913 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26914 | /^X\(\/\).*/{ s//\1/; q; } | |
26915 | s/.*/./; q'` | |
26916 | { if $as_mkdir_p; then | |
26917 | mkdir -p "$ac_dest_dir" | |
26918 | else | |
26919 | as_dir="$ac_dest_dir" | |
26920 | as_dirs= | |
26921 | while test ! -d "$as_dir"; do | |
26922 | as_dirs="$as_dir $as_dirs" | |
26923 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26924 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26925 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26926 | X"$as_dir" : 'X\(//\)$' \| \ | |
26927 | X"$as_dir" : 'X\(/\)' \| \ | |
26928 | . : '\(.\)' 2>/dev/null || | |
26929 | echo X"$as_dir" | | |
26930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26931 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26932 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26933 | /^X\(\/\).*/{ s//\1/; q; } | |
26934 | s/.*/./; q'` | |
26935 | done | |
26936 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26937 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
26938 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
26939 | { (exit 1); exit 1; }; }; } | |
26940 | ||
26941 | ac_builddir=. | |
26942 | ||
26943 | if test "$ac_dest_dir" != .; then | |
26944 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
26945 | # A "../" for each directory in $ac_dir_suffix. | |
26946 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26947 | else | |
26948 | ac_dir_suffix= ac_top_builddir= | |
26949 | fi | |
26950 | ||
26951 | case $srcdir in | |
26952 | .) # No --srcdir option. We are building in place. | |
26953 | ac_srcdir=. | |
26954 | if test -z "$ac_top_builddir"; then | |
26955 | ac_top_srcdir=. | |
26956 | else | |
26957 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26958 | fi ;; | |
26959 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
26960 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26961 | ac_top_srcdir=$srcdir ;; | |
26962 | *) # Relative path. | |
26963 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26964 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26965 | esac | |
26966 | ||
26967 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
26968 | # the directories may not exist. | |
26969 | case `pwd` in | |
26970 | .) ac_abs_builddir="$ac_dest_dir";; | |
26971 | *) | |
26972 | case "$ac_dest_dir" in | |
26973 | .) ac_abs_builddir=`pwd`;; | |
26974 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
26975 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
26976 | esac;; | |
26977 | esac | |
26978 | case $ac_abs_builddir in | |
26979 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26980 | *) | |
26981 | case ${ac_top_builddir}. in | |
26982 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26983 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26984 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26985 | esac;; | |
26986 | esac | |
26987 | case $ac_abs_builddir in | |
26988 | .) ac_abs_srcdir=$ac_srcdir;; | |
26989 | *) | |
26990 | case $ac_srcdir in | |
26991 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26992 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26993 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26994 | esac;; | |
26995 | esac | |
26996 | case $ac_abs_builddir in | |
26997 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26998 | *) | |
26999 | case $ac_top_srcdir in | |
27000 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
27001 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27002 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
27003 | esac;; | |
27004 | esac | |
27005 | ||
bec39cab AC |
27006 | |
27007 | case $srcdir in | |
27008 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 27009 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 27010 | esac |
b4e70030 JB |
27011 | |
27012 | # Try a symlink, then a hard link, then a copy. | |
27013 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
27014 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
27015 | cp -p $srcdir/$ac_source $ac_dest || | |
27016 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
27017 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 27018 | { (exit 1); exit 1; }; } |
b4e70030 JB |
27019 | done |
27020 | _ACEOF | |
27021 | cat >>$CONFIG_STATUS <<\_ACEOF | |
27022 | ||
27023 | # | |
27024 | # CONFIG_COMMANDS section. | |
27025 | # | |
27026 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
27027 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
27028 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
27029 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
27030 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27031 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
27032 | X"$ac_dest" : 'X\(//\)$' \| \ | |
27033 | X"$ac_dest" : 'X\(/\)' \| \ | |
27034 | . : '\(.\)' 2>/dev/null || | |
27035 | echo X"$ac_dest" | | |
27036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27037 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27038 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27039 | /^X\(\/\).*/{ s//\1/; q; } | |
27040 | s/.*/./; q'` | |
27041 | { if $as_mkdir_p; then | |
27042 | mkdir -p "$ac_dir" | |
27043 | else | |
27044 | as_dir="$ac_dir" | |
27045 | as_dirs= | |
27046 | while test ! -d "$as_dir"; do | |
27047 | as_dirs="$as_dir $as_dirs" | |
27048 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
27049 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27050 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27051 | X"$as_dir" : 'X\(//\)$' \| \ | |
27052 | X"$as_dir" : 'X\(/\)' \| \ | |
27053 | . : '\(.\)' 2>/dev/null || | |
27054 | echo X"$as_dir" | | |
27055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27056 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27057 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27058 | /^X\(\/\).*/{ s//\1/; q; } | |
27059 | s/.*/./; q'` | |
27060 | done | |
27061 | test ! -n "$as_dirs" || mkdir $as_dirs | |
27062 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
27063 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
27064 | { (exit 1); exit 1; }; }; } | |
27065 | ||
27066 | ac_builddir=. | |
27067 | ||
27068 | if test "$ac_dir" != .; then | |
27069 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
27070 | # A "../" for each directory in $ac_dir_suffix. | |
27071 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
27072 | else | |
27073 | ac_dir_suffix= ac_top_builddir= | |
27074 | fi | |
27075 | ||
27076 | case $srcdir in | |
27077 | .) # No --srcdir option. We are building in place. | |
27078 | ac_srcdir=. | |
27079 | if test -z "$ac_top_builddir"; then | |
27080 | ac_top_srcdir=. | |
27081 | else | |
27082 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
27083 | fi ;; | |
27084 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
27085 | ac_srcdir=$srcdir$ac_dir_suffix; | |
27086 | ac_top_srcdir=$srcdir ;; | |
27087 | *) # Relative path. | |
27088 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
27089 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
27090 | esac | |
27091 | ||
27092 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
27093 | # the directories may not exist. | |
27094 | case `pwd` in | |
27095 | .) ac_abs_builddir="$ac_dir";; | |
27096 | *) | |
27097 | case "$ac_dir" in | |
27098 | .) ac_abs_builddir=`pwd`;; | |
27099 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
27100 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
27101 | esac;; | |
27102 | esac | |
27103 | case $ac_abs_builddir in | |
27104 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27105 | *) | |
27106 | case ${ac_top_builddir}. in | |
27107 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
27108 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27109 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
27110 | esac;; | |
27111 | esac | |
27112 | case $ac_abs_builddir in | |
27113 | .) ac_abs_srcdir=$ac_srcdir;; | |
27114 | *) | |
27115 | case $ac_srcdir in | |
27116 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
27117 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
27118 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
27119 | esac;; | |
27120 | esac | |
27121 | case $ac_abs_builddir in | |
27122 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27123 | *) | |
27124 | case $ac_top_srcdir in | |
27125 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
27126 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27127 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
27128 | esac;; | |
27129 | esac | |
bec39cab | 27130 | |
bec39cab | 27131 | |
b4e70030 JB |
27132 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
27133 | echo "$as_me: executing $ac_dest commands" >&6;} | |
27134 | case $ac_dest in | |
e28b3332 DJ |
27135 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
27136 | # Strip MF so we end up with the name of the file. | |
27137 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
27138 | # Check whether this is an Automake generated Makefile or not. | |
27139 | # We used to match only the files named `Makefile.in', but | |
27140 | # some people rename them; so instead we look at the file content. | |
27141 | # Grep'ing the first line is not enough: some people post-process | |
27142 | # each Makefile.in and add a new line on top of each file to say so. | |
27143 | # So let's grep whole file. | |
27144 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
27145 | dirpart=`(dirname "$mf") 2>/dev/null || | |
27146 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27147 | X"$mf" : 'X\(//\)[^/]' \| \ | |
27148 | X"$mf" : 'X\(//\)$' \| \ | |
27149 | X"$mf" : 'X\(/\)' \| \ | |
27150 | . : '\(.\)' 2>/dev/null || | |
27151 | echo X"$mf" | | |
27152 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27153 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27154 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27155 | /^X\(\/\).*/{ s//\1/; q; } | |
27156 | s/.*/./; q'` | |
27157 | else | |
27158 | continue | |
27159 | fi | |
27160 | # Extract the definition of DEPDIR, am__include, and am__quote | |
27161 | # from the Makefile without running `make'. | |
27162 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
27163 | test -z "$DEPDIR" && continue | |
27164 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
27165 | test -z "am__include" && continue | |
27166 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
27167 | # When using ansi2knr, U may be empty or an underscore; expand it | |
27168 | U=`sed -n 's/^U = //p' < "$mf"` | |
27169 | # Find all dependency output files, they are included files with | |
27170 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
27171 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
27172 | # expansion. | |
27173 | for file in `sed -n " | |
27174 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
27175 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
27176 | # Make sure the directory exists. | |
27177 | test -f "$dirpart/$file" && continue | |
27178 | fdir=`(dirname "$file") 2>/dev/null || | |
27179 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27180 | X"$file" : 'X\(//\)[^/]' \| \ | |
27181 | X"$file" : 'X\(//\)$' \| \ | |
27182 | X"$file" : 'X\(/\)' \| \ | |
27183 | . : '\(.\)' 2>/dev/null || | |
27184 | echo X"$file" | | |
27185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27186 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27187 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27188 | /^X\(\/\).*/{ s//\1/; q; } | |
27189 | s/.*/./; q'` | |
27190 | { if $as_mkdir_p; then | |
27191 | mkdir -p $dirpart/$fdir | |
27192 | else | |
27193 | as_dir=$dirpart/$fdir | |
27194 | as_dirs= | |
27195 | while test ! -d "$as_dir"; do | |
27196 | as_dirs="$as_dir $as_dirs" | |
27197 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
27198 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27199 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27200 | X"$as_dir" : 'X\(//\)$' \| \ | |
27201 | X"$as_dir" : 'X\(/\)' \| \ | |
27202 | . : '\(.\)' 2>/dev/null || | |
27203 | echo X"$as_dir" | | |
27204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27205 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27206 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27207 | /^X\(\/\).*/{ s//\1/; q; } | |
27208 | s/.*/./; q'` | |
27209 | done | |
27210 | test ! -n "$as_dirs" || mkdir $as_dirs | |
27211 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
27212 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
27213 | { (exit 1); exit 1; }; }; } | |
27214 | ||
27215 | # echo "creating $dirpart/$file" | |
27216 | echo '# dummy' > "$dirpart/$file" | |
27217 | done | |
27218 | done | |
4e8d927d | 27219 | ;; |
b4e70030 | 27220 | default ) |
c906108c | 27221 | |
db985757 | 27222 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
c906108c SS |
27223 | mv -f Makefile.tmp Makefile |
27224 | ||
2acceee2 | 27225 | |
c906108c SS |
27226 | case x$CONFIG_HEADERS in |
27227 | xconfig.h:config.in) | |
27228 | echo > stamp-h ;; | |
27229 | esac | |
bec39cab AC |
27230 | ;; |
27231 | esac | |
b4e70030 JB |
27232 | done |
27233 | _ACEOF | |
c906108c | 27234 | |
b4e70030 | 27235 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
27236 | |
27237 | { (exit 0); exit 0; } | |
27238 | _ACEOF | |
c906108c | 27239 | chmod +x $CONFIG_STATUS |
bec39cab AC |
27240 | ac_clean_files=$ac_clean_files_save |
27241 | ||
27242 | ||
27243 | # configure is writing to config.log, and then calls config.status. | |
27244 | # config.status does its own redirection, appending to config.log. | |
27245 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
27246 | # by configure, so config.status won't be able to write to it; its | |
27247 | # output is simply discarded. So we exec the FD to /dev/null, | |
27248 | # effectively closing config.log, so it can be properly (re)opened and | |
27249 | # appended to by config.status. When coming back to configure, we | |
27250 | # need to make the FD available again. | |
27251 | if test "$no_create" != yes; then | |
27252 | ac_cs_success=: | |
27253 | ac_config_status_args= | |
27254 | test "$silent" = yes && | |
27255 | ac_config_status_args="$ac_config_status_args --quiet" | |
27256 | exec 5>/dev/null | |
27257 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
27258 | exec 5>>config.log | |
27259 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
27260 | # would make configure fail if this is the last instruction. | |
27261 | $ac_cs_success || { (exit 1); exit 1; } | |
27262 | fi | |
c906108c | 27263 | |
bec39cab | 27264 | # |
fdc59709 | 27265 | # CONFIG_SUBDIRS section, as fixed in confsubdir.m4. |
bec39cab | 27266 | # |
c906108c SS |
27267 | if test "$no_recursion" != yes; then |
27268 | ||
27269 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
27270 | ac_sub_configure_args= | |
27271 | ac_prev= | |
fdc59709 PB |
27272 | eval "set x $ac_configure_args" |
27273 | shift | |
27274 | for ac_arg | |
27275 | do | |
c906108c SS |
27276 | if test -n "$ac_prev"; then |
27277 | ac_prev= | |
27278 | continue | |
27279 | fi | |
bec39cab | 27280 | case $ac_arg in |
c906108c SS |
27281 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
27282 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
27283 | ac_prev=cache_file ;; | |
27284 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
27285 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
27286 | | --c=*) | |
27287 | ;; | |
27288 | --config-cache | -C) | |
c906108c SS |
27289 | ;; |
27290 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
27291 | ac_prev=srcdir ;; | |
27292 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
27293 | ;; | |
bec39cab AC |
27294 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
27295 | ac_prev=prefix ;; | |
27296 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
27297 | ;; | |
fdc59709 PB |
27298 | *) |
27299 | case $ac_arg in | |
27300 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27301 | esac | |
27302 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
c906108c SS |
27303 | esac |
27304 | done | |
27305 | ||
bec39cab AC |
27306 | # Always prepend --prefix to ensure using the same prefix |
27307 | # in subdir configurations. | |
fdc59709 PB |
27308 | ac_arg="--prefix=$prefix" |
27309 | case $ac_arg in | |
27310 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27311 | esac | |
27312 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | |
bec39cab | 27313 | |
b4e70030 | 27314 | ac_popdir=`pwd` |
bec39cab | 27315 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
27316 | |
27317 | # Do not complain, so a configure script can configure whichever | |
27318 | # parts of a large source tree are present. | |
fdc59709 | 27319 | test -d "$srcdir/$ac_dir" || continue |
c906108c | 27320 | |
b4e70030 JB |
27321 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
27322 | echo "$as_me: configuring in $ac_dir" >&6;} | |
27323 | { if $as_mkdir_p; then | |
27324 | mkdir -p "$ac_dir" | |
27325 | else | |
27326 | as_dir="$ac_dir" | |
bec39cab | 27327 | as_dirs= |
b4e70030 JB |
27328 | while test ! -d "$as_dir"; do |
27329 | as_dirs="$as_dir $as_dirs" | |
27330 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
27331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27332 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27333 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
27334 | X"$as_dir" : 'X\(/\)' \| \ |
27335 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 27336 | echo X"$as_dir" | |
b4e70030 JB |
27337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
27338 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27339 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27340 | /^X\(\/\).*/{ s//\1/; q; } | |
27341 | s/.*/./; q'` | |
bec39cab | 27342 | done |
b4e70030 JB |
27343 | test ! -n "$as_dirs" || mkdir $as_dirs |
27344 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
27345 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 27346 | { (exit 1); exit 1; }; }; } |
b4e70030 | 27347 | |
bec39cab AC |
27348 | ac_builddir=. |
27349 | ||
b4e70030 | 27350 | if test "$ac_dir" != .; then |
bec39cab | 27351 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
27352 | # A "../" for each directory in $ac_dir_suffix. |
27353 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
27354 | else | |
27355 | ac_dir_suffix= ac_top_builddir= | |
27356 | fi | |
bec39cab AC |
27357 | |
27358 | case $srcdir in | |
b4e70030 | 27359 | .) # No --srcdir option. We are building in place. |
bec39cab | 27360 | ac_srcdir=. |
b4e70030 JB |
27361 | if test -z "$ac_top_builddir"; then |
27362 | ac_top_srcdir=. | |
27363 | else | |
27364 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
27365 | fi ;; | |
27366 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 27367 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
27368 | ac_top_srcdir=$srcdir ;; |
27369 | *) # Relative path. | |
27370 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
27371 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
27372 | esac | |
27373 | ||
27374 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
27375 | # the directories may not exist. | |
27376 | case `pwd` in | |
27377 | .) ac_abs_builddir="$ac_dir";; | |
27378 | *) | |
27379 | case "$ac_dir" in | |
27380 | .) ac_abs_builddir=`pwd`;; | |
27381 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
27382 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
27383 | esac;; | |
27384 | esac | |
27385 | case $ac_abs_builddir in | |
27386 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27387 | *) | |
27388 | case ${ac_top_builddir}. in | |
27389 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
27390 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27391 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
27392 | esac;; | |
27393 | esac | |
27394 | case $ac_abs_builddir in | |
27395 | .) ac_abs_srcdir=$ac_srcdir;; | |
27396 | *) | |
27397 | case $ac_srcdir in | |
27398 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
27399 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
27400 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
27401 | esac;; | |
27402 | esac | |
27403 | case $ac_abs_builddir in | |
27404 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27405 | *) | |
27406 | case $ac_top_srcdir in | |
27407 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
27408 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27409 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
27410 | esac;; | |
bec39cab | 27411 | esac |
c906108c | 27412 | |
c906108c | 27413 | |
fdc59709 | 27414 | cd "$ac_dir" |
c906108c SS |
27415 | |
27416 | # Check for guested configure; otherwise get Cygnus style configure. | |
fdc59709 PB |
27417 | if test -f "$ac_srcdir/configure.gnu"; then |
27418 | ac_sub_configure=$ac_srcdir/configure.gnu | |
27419 | elif test -f "$ac_srcdir/configure"; then | |
27420 | ac_sub_configure=$ac_srcdir/configure | |
27421 | elif test -f "$ac_srcdir/configure.in"; then | |
27422 | # This should be Cygnus configure. | |
27423 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 27424 | else |
bec39cab AC |
27425 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
27426 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
27427 | ac_sub_configure= |
27428 | fi | |
27429 | ||
27430 | # The recursion is here. | |
27431 | if test -n "$ac_sub_configure"; then | |
c906108c | 27432 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
27433 | case $cache_file in |
27434 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
27435 | *) # Relative path. |
27436 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 27437 | esac |
c906108c | 27438 | |
fdc59709 PB |
27439 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
27440 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 27441 | # The eval makes quoting arguments work. |
fdc59709 PB |
27442 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
27443 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
bec39cab AC |
27444 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
27445 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
27446 | { (exit 1); exit 1; }; } | |
c906108c SS |
27447 | fi |
27448 | ||
fdc59709 | 27449 | cd "$ac_popdir" |
c906108c SS |
27450 | done |
27451 | fi | |
27452 | ||
27453 | ||
27454 | exit 0 |