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" | |
783e057b | 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 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 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_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS 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' |
c906108c SS |
319 | |
320 | # Initialize some variables set by options. | |
bec39cab AC |
321 | ac_init_help= |
322 | ac_init_version=false | |
c906108c SS |
323 | # The variables have the same names as the options, with |
324 | # dashes changed to underlines. | |
bec39cab | 325 | cache_file=/dev/null |
c906108c | 326 | exec_prefix=NONE |
c906108c | 327 | no_create= |
c906108c SS |
328 | no_recursion= |
329 | prefix=NONE | |
330 | program_prefix=NONE | |
331 | program_suffix=NONE | |
332 | program_transform_name=s,x,x, | |
333 | silent= | |
334 | site= | |
335 | srcdir= | |
c906108c SS |
336 | verbose= |
337 | x_includes=NONE | |
338 | x_libraries=NONE | |
bec39cab AC |
339 | |
340 | # Installation directory options. | |
341 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
342 | # and all the variables that are supposed to be based on exec_prefix | |
343 | # by default will actually change. | |
344 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
345 | bindir='${exec_prefix}/bin' |
346 | sbindir='${exec_prefix}/sbin' | |
347 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 348 | datadir='${prefix}/share' |
c906108c SS |
349 | sysconfdir='${prefix}/etc' |
350 | sharedstatedir='${prefix}/com' | |
351 | localstatedir='${prefix}/var' | |
b4e70030 | 352 | libdir='${exec_prefix}/lib' |
c906108c SS |
353 | includedir='${prefix}/include' |
354 | oldincludedir='/usr/include' | |
b4e70030 JB |
355 | infodir='${prefix}/info' |
356 | mandir='${prefix}/man' | |
c906108c | 357 | |
c906108c SS |
358 | ac_prev= |
359 | for ac_option | |
360 | do | |
c906108c SS |
361 | # If the previous option needs an argument, assign it. |
362 | if test -n "$ac_prev"; then | |
b4e70030 | 363 | eval "$ac_prev=\$ac_option" |
c906108c SS |
364 | ac_prev= |
365 | continue | |
366 | fi | |
367 | ||
b4e70030 | 368 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
369 | |
370 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
371 | ||
b4e70030 | 372 | case $ac_option in |
c906108c SS |
373 | |
374 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
375 | ac_prev=bindir ;; | |
376 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 377 | bindir=$ac_optarg ;; |
c906108c SS |
378 | |
379 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 380 | ac_prev=build_alias ;; |
c906108c | 381 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 382 | build_alias=$ac_optarg ;; |
c906108c SS |
383 | |
384 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
385 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
386 | ac_prev=cache_file ;; | |
387 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
388 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
389 | cache_file=$ac_optarg ;; |
390 | ||
391 | --config-cache | -C) | |
392 | cache_file=config.cache ;; | |
c906108c | 393 | |
b4e70030 | 394 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 395 | ac_prev=datadir ;; |
b4e70030 JB |
396 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
397 | | --da=*) | |
bec39cab | 398 | datadir=$ac_optarg ;; |
c906108c SS |
399 | |
400 | -disable-* | --disable-*) | |
bec39cab | 401 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 402 | # Reject names that are not valid shell variable names. |
bec39cab AC |
403 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
404 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
405 | { (exit 1); exit 1; }; } | |
406 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 | 407 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
408 | |
409 | -enable-* | --enable-*) | |
bec39cab | 410 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 411 | # Reject names that are not valid shell variable names. |
bec39cab AC |
412 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
413 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
414 | { (exit 1); exit 1; }; } | |
415 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 JB |
416 | case $ac_option in |
417 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
418 | *) ac_optarg=yes ;; | |
419 | esac | |
420 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
421 | |
422 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
423 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
424 | | --exec | --exe | --ex) | |
425 | ac_prev=exec_prefix ;; | |
426 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
427 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
428 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 429 | exec_prefix=$ac_optarg ;; |
c906108c SS |
430 | |
431 | -gas | --gas | --ga | --g) | |
432 | # Obsolete; use --with-gas. | |
433 | with_gas=yes ;; | |
434 | ||
bec39cab AC |
435 | -help | --help | --hel | --he | -h) |
436 | ac_init_help=long ;; | |
437 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
438 | ac_init_help=recursive ;; | |
439 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
440 | ac_init_help=short ;; | |
c906108c SS |
441 | |
442 | -host | --host | --hos | --ho) | |
bec39cab | 443 | ac_prev=host_alias ;; |
c906108c | 444 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 445 | host_alias=$ac_optarg ;; |
c906108c SS |
446 | |
447 | -includedir | --includedir | --includedi | --included | --include \ | |
448 | | --includ | --inclu | --incl | --inc) | |
449 | ac_prev=includedir ;; | |
450 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
451 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 452 | includedir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
455 | ac_prev=infodir ;; | |
456 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 457 | infodir=$ac_optarg ;; |
c906108c SS |
458 | |
459 | -libdir | --libdir | --libdi | --libd) | |
460 | ac_prev=libdir ;; | |
461 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 462 | libdir=$ac_optarg ;; |
c906108c SS |
463 | |
464 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
465 | | --libexe | --libex | --libe) | |
466 | ac_prev=libexecdir ;; | |
467 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
468 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 469 | libexecdir=$ac_optarg ;; |
c906108c SS |
470 | |
471 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
472 | | --localstate | --localstat | --localsta | --localst \ |
473 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
474 | ac_prev=localstatedir ;; |
475 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
476 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
477 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 478 | localstatedir=$ac_optarg ;; |
c906108c SS |
479 | |
480 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
481 | ac_prev=mandir ;; | |
482 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 483 | mandir=$ac_optarg ;; |
c906108c SS |
484 | |
485 | -nfp | --nfp | --nf) | |
486 | # Obsolete; use --without-fp. | |
487 | with_fp=no ;; | |
488 | ||
489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 490 | | --no-cr | --no-c | -n) |
c906108c SS |
491 | no_create=yes ;; |
492 | ||
493 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
494 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
495 | no_recursion=yes ;; | |
496 | ||
497 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
498 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
499 | | --oldin | --oldi | --old | --ol | --o) | |
500 | ac_prev=oldincludedir ;; | |
501 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
502 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
503 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 504 | oldincludedir=$ac_optarg ;; |
c906108c SS |
505 | |
506 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
507 | ac_prev=prefix ;; | |
508 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 509 | prefix=$ac_optarg ;; |
c906108c SS |
510 | |
511 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
512 | | --program-pre | --program-pr | --program-p) | |
513 | ac_prev=program_prefix ;; | |
514 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
515 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 516 | program_prefix=$ac_optarg ;; |
c906108c SS |
517 | |
518 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
519 | | --program-suf | --program-su | --program-s) | |
520 | ac_prev=program_suffix ;; | |
521 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
522 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 523 | program_suffix=$ac_optarg ;; |
c906108c SS |
524 | |
525 | -program-transform-name | --program-transform-name \ | |
526 | | --program-transform-nam | --program-transform-na \ | |
527 | | --program-transform-n | --program-transform- \ | |
528 | | --program-transform | --program-transfor \ | |
529 | | --program-transfo | --program-transf \ | |
530 | | --program-trans | --program-tran \ | |
531 | | --progr-tra | --program-tr | --program-t) | |
532 | ac_prev=program_transform_name ;; | |
533 | -program-transform-name=* | --program-transform-name=* \ | |
534 | | --program-transform-nam=* | --program-transform-na=* \ | |
535 | | --program-transform-n=* | --program-transform-=* \ | |
536 | | --program-transform=* | --program-transfor=* \ | |
537 | | --program-transfo=* | --program-transf=* \ | |
538 | | --program-trans=* | --program-tran=* \ | |
539 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 540 | program_transform_name=$ac_optarg ;; |
c906108c SS |
541 | |
542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
543 | | -silent | --silent | --silen | --sile | --sil) | |
544 | silent=yes ;; | |
545 | ||
546 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
547 | ac_prev=sbindir ;; | |
548 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
549 | | --sbi=* | --sb=*) | |
bec39cab | 550 | sbindir=$ac_optarg ;; |
c906108c SS |
551 | |
552 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
553 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
554 | | --sharedst | --shareds | --shared | --share | --shar \ | |
555 | | --sha | --sh) | |
556 | ac_prev=sharedstatedir ;; | |
557 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
558 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
559 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
560 | | --sha=* | --sh=*) | |
bec39cab | 561 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
562 | |
563 | -site | --site | --sit) | |
564 | ac_prev=site ;; | |
565 | -site=* | --site=* | --sit=*) | |
bec39cab | 566 | site=$ac_optarg ;; |
3ace7edb | 567 | |
c906108c SS |
568 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
569 | ac_prev=srcdir ;; | |
570 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 571 | srcdir=$ac_optarg ;; |
c906108c SS |
572 | |
573 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
574 | | --syscon | --sysco | --sysc | --sys | --sy) | |
575 | ac_prev=sysconfdir ;; | |
576 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
577 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 578 | sysconfdir=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 581 | ac_prev=target_alias ;; |
c906108c | 582 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 583 | target_alias=$ac_optarg ;; |
c906108c SS |
584 | |
585 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
586 | verbose=yes ;; | |
587 | ||
bec39cab AC |
588 | -version | --version | --versio | --versi | --vers | -V) |
589 | ac_init_version=: ;; | |
c906108c SS |
590 | |
591 | -with-* | --with-*) | |
bec39cab | 592 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 593 | # Reject names that are not valid shell variable names. |
bec39cab AC |
594 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
595 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
596 | { (exit 1); exit 1; }; } | |
c906108c | 597 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
598 | case $ac_option in |
599 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
600 | *) ac_optarg=yes ;; | |
601 | esac | |
602 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
603 | |
604 | -without-* | --without-*) | |
bec39cab | 605 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 606 | # Reject names that are not valid shell variable names. |
bec39cab AC |
607 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
608 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
609 | { (exit 1); exit 1; }; } | |
610 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
b4e70030 | 611 | eval "with_$ac_package=no" ;; |
c906108c SS |
612 | |
613 | --x) | |
614 | # Obsolete; use --with-x. | |
615 | with_x=yes ;; | |
616 | ||
617 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
618 | | --x-incl | --x-inc | --x-in | --x-i) | |
619 | ac_prev=x_includes ;; | |
620 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
621 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 622 | x_includes=$ac_optarg ;; |
c906108c SS |
623 | |
624 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
625 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
626 | ac_prev=x_libraries ;; | |
627 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
628 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 629 | x_libraries=$ac_optarg ;; |
c906108c | 630 | |
bec39cab AC |
631 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
632 | Try \`$0 --help' for more information." >&2 | |
633 | { (exit 1); exit 1; }; } | |
c906108c SS |
634 | ;; |
635 | ||
bec39cab AC |
636 | *=*) |
637 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
638 | # Reject names that are not valid shell variable names. | |
639 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
640 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
641 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
642 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
643 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
644 | export $ac_envvar ;; |
645 | ||
c906108c | 646 | *) |
bec39cab AC |
647 | # FIXME: should be removed in autoconf 3.0. |
648 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
649 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
650 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
651 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
652 | ;; |
653 | ||
654 | esac | |
655 | done | |
656 | ||
657 | if test -n "$ac_prev"; then | |
bec39cab AC |
658 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
659 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
660 | { (exit 1); exit 1; }; } | |
c906108c | 661 | fi |
c906108c | 662 | |
b4e70030 JB |
663 | # Be sure to have absolute paths. |
664 | for ac_var in exec_prefix prefix | |
c906108c | 665 | do |
b4e70030 | 666 | eval ac_val=$`echo $ac_var` |
bec39cab | 667 | case $ac_val in |
b4e70030 JB |
668 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
669 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
670 | { (exit 1); exit 1; }; };; | |
671 | esac | |
672 | done | |
673 | ||
674 | # Be sure to have absolute paths. | |
675 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
676 | localstatedir libdir includedir oldincludedir infodir mandir | |
677 | do | |
678 | eval ac_val=$`echo $ac_var` | |
679 | case $ac_val in | |
680 | [\\/$]* | ?:[\\/]* ) ;; | |
681 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
682 | { (exit 1); exit 1; }; };; | |
c906108c SS |
683 | esac |
684 | done | |
685 | ||
bec39cab AC |
686 | # There might be people who depend on the old broken behavior: `$host' |
687 | # used to hold the argument of --host etc. | |
688 | # FIXME: To remove some day. | |
689 | build=$build_alias | |
690 | host=$host_alias | |
691 | target=$target_alias | |
692 | ||
693 | # FIXME: To remove some day. | |
694 | if test "x$host_alias" != x; then | |
695 | if test "x$build_alias" = x; then | |
696 | cross_compiling=maybe | |
697 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
698 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
699 | elif test "x$build_alias" != "x$host_alias"; then | |
700 | cross_compiling=yes | |
701 | fi | |
702 | fi | |
c906108c | 703 | |
bec39cab AC |
704 | ac_tool_prefix= |
705 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
706 | ||
707 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 708 | |
c906108c SS |
709 | |
710 | # Find the source files, if location was not specified. | |
711 | if test -z "$srcdir"; then | |
712 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
713 | # Try the directory containing this script, then its parent. |
714 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
715 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
716 | X"$0" : 'X\(//\)[^/]' \| \ | |
717 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
718 | X"$0" : 'X\(/\)' \| \ |
719 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 720 | echo X"$0" | |
b4e70030 JB |
721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
723 | /^X\(\/\/\)$/{ s//\1/; q; } | |
724 | /^X\(\/\).*/{ s//\1/; q; } | |
725 | s/.*/./; q'` | |
c906108c | 726 | srcdir=$ac_confdir |
b4e70030 | 727 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
728 | srcdir=.. |
729 | fi | |
730 | else | |
731 | ac_srcdir_defaulted=no | |
732 | fi | |
b4e70030 JB |
733 | if test ! -r $srcdir/$ac_unique_file; then |
734 | if test "$ac_srcdir_defaulted" = yes; then | |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
736 | { (exit 1); exit 1; }; } | |
737 | else | |
738 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 739 | { (exit 1); exit 1; }; } |
b4e70030 | 740 | fi |
c906108c | 741 | fi |
b4e70030 JB |
742 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
743 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 744 | { (exit 1); exit 1; }; } |
b4e70030 JB |
745 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
746 | ac_env_build_alias_set=${build_alias+set} | |
747 | ac_env_build_alias_value=$build_alias | |
748 | ac_cv_env_build_alias_set=${build_alias+set} | |
749 | ac_cv_env_build_alias_value=$build_alias | |
750 | ac_env_host_alias_set=${host_alias+set} | |
751 | ac_env_host_alias_value=$host_alias | |
752 | ac_cv_env_host_alias_set=${host_alias+set} | |
753 | ac_cv_env_host_alias_value=$host_alias | |
754 | ac_env_target_alias_set=${target_alias+set} | |
755 | ac_env_target_alias_value=$target_alias | |
756 | ac_cv_env_target_alias_set=${target_alias+set} | |
757 | ac_cv_env_target_alias_value=$target_alias | |
758 | ac_env_CC_set=${CC+set} | |
759 | ac_env_CC_value=$CC | |
760 | ac_cv_env_CC_set=${CC+set} | |
761 | ac_cv_env_CC_value=$CC | |
762 | ac_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_env_CFLAGS_value=$CFLAGS | |
764 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
765 | ac_cv_env_CFLAGS_value=$CFLAGS | |
766 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
769 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
770 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
773 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
774 | ac_env_CPP_set=${CPP+set} | |
775 | ac_env_CPP_value=$CPP | |
776 | ac_cv_env_CPP_set=${CPP+set} | |
777 | ac_cv_env_CPP_value=$CPP | |
c906108c | 778 | |
bec39cab AC |
779 | # |
780 | # Report the --help message. | |
781 | # | |
782 | if test "$ac_init_help" = "long"; then | |
783 | # Omit some internal or obsolete options to make the list less imposing. | |
784 | # This message is too long to be a string in the A/UX 3.1 sh. | |
785 | cat <<_ACEOF | |
786 | \`configure' configures this package to adapt to many kinds of systems. | |
787 | ||
788 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
789 | ||
790 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
791 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
792 | ||
793 | Defaults for the options are specified in brackets. | |
794 | ||
795 | Configuration: | |
796 | -h, --help display this help and exit | |
797 | --help=short display options specific to this package | |
798 | --help=recursive display the short help of all the included packages | |
799 | -V, --version display version information and exit | |
800 | -q, --quiet, --silent do not print \`checking...' messages | |
801 | --cache-file=FILE cache test results in FILE [disabled] | |
802 | -C, --config-cache alias for \`--cache-file=config.cache' | |
803 | -n, --no-create do not create output files | |
804 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
805 | ||
b4e70030 JB |
806 | _ACEOF |
807 | ||
808 | cat <<_ACEOF | |
bec39cab AC |
809 | Installation directories: |
810 | --prefix=PREFIX install architecture-independent files in PREFIX | |
811 | [$ac_default_prefix] | |
812 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
813 | [PREFIX] | |
814 | ||
815 | By default, \`make install' will install all the files in | |
816 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
817 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
818 | for instance \`--prefix=\$HOME'. | |
819 | ||
820 | For better control, use the options below. | |
821 | ||
822 | Fine tuning of the installation directories: | |
823 | --bindir=DIR user executables [EPREFIX/bin] | |
824 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
825 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b4e70030 | 826 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
827 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
828 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
829 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
830 | --libdir=DIR object code libraries [EPREFIX/lib] | |
831 | --includedir=DIR C header files [PREFIX/include] | |
832 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
b4e70030 JB |
833 | --infodir=DIR info documentation [PREFIX/info] |
834 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
835 | _ACEOF |
836 | ||
837 | cat <<\_ACEOF | |
838 | ||
839 | Program names: | |
840 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
841 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
842 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
843 | ||
844 | X features: | |
845 | --x-includes=DIR X include files are in DIR | |
846 | --x-libraries=DIR X library files are in DIR | |
847 | ||
848 | System types: | |
849 | --build=BUILD configure for building on BUILD [guessed] | |
850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
851 | --target=TARGET configure for building compilers for TARGET [HOST] | |
852 | _ACEOF | |
853 | fi | |
854 | ||
855 | if test -n "$ac_init_help"; then | |
856 | ||
857 | cat <<\_ACEOF | |
858 | ||
859 | Optional Features: | |
860 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
861 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
862 | --enable-maintainer-mode enable make rules and dependencies not useful |
863 | (and sometimes confusing) to the casual installer | |
e28b3332 DJ |
864 | --disable-dependency-tracking speeds up one-time build |
865 | --enable-dependency-tracking do not reject slow dependency extractors | |
d0c678e6 | 866 | --enable-targets alternative target configurations |
c0993dbe | 867 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
bec39cab AC |
868 | --disable-gdbcli disable command-line interface (CLI) |
869 | --disable-gdbmi disable machine-interface (MI) | |
870 | --enable-tui enable full-screen terminal user interface (TUI) | |
871 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
872 | --enable-profiling enable profiling of GDB | |
3841debe | 873 | --disable-rpath do not hardcode runtime library paths |
094a342e | 874 | --enable-werror treat compile warnings as errors |
bec39cab AC |
875 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
876 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
877 | --enable-sim Link gdb with simulator | |
878 | --enable-multi-ice build the multi-ice-gdb-server | |
879 | ||
880 | Optional Packages: | |
881 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
882 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
883 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
884 | --with-libunwind Use libunwind frame unwinding support | |
6a30b0a5 | 885 | --with-system-readline use installed readline library |
5c39566f | 886 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
887 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
888 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
889 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
890 | --without-included-regex don't use included regex; this is the default |
891 | on systems with version 2 of the GNU C library | |
892 | (use with caution on other system) | |
893 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
894 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
895 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
896 | --with-tclinclude=DIR Directory where tcl private headers are | |
897 | --with-tkinclude=DIR Directory where tk private headers are | |
898 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
899 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
900 | --with-x use the X Window System | |
901 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
902 | ||
903 | Some influential environment variables: | |
904 | CC C compiler command | |
905 | CFLAGS C compiler flags | |
906 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
907 | nonstandard directory <lib dir> | |
b4e70030 JB |
908 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
909 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
910 | CPP C preprocessor |
911 | ||
912 | Use these variables to override the choices made by `configure' or to help | |
913 | it to find libraries and programs with nonstandard names/locations. | |
914 | ||
915 | _ACEOF | |
916 | fi | |
917 | ||
918 | if test "$ac_init_help" = "recursive"; then | |
919 | # If there are subdirs, report their specific --help. | |
b4e70030 | 920 | ac_popdir=`pwd` |
bec39cab AC |
921 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
922 | test -d $ac_dir || continue | |
923 | ac_builddir=. | |
924 | ||
b4e70030 | 925 | if test "$ac_dir" != .; then |
bec39cab | 926 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
927 | # A "../" for each directory in $ac_dir_suffix. |
928 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
929 | else | |
930 | ac_dir_suffix= ac_top_builddir= | |
931 | fi | |
bec39cab AC |
932 | |
933 | case $srcdir in | |
b4e70030 | 934 | .) # No --srcdir option. We are building in place. |
bec39cab | 935 | ac_srcdir=. |
b4e70030 JB |
936 | if test -z "$ac_top_builddir"; then |
937 | ac_top_srcdir=. | |
938 | else | |
939 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
940 | fi ;; | |
941 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 942 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
943 | ac_top_srcdir=$srcdir ;; |
944 | *) # Relative path. | |
945 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
946 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
947 | esac | |
948 | ||
949 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
950 | # the directories may not exist. | |
951 | case `pwd` in | |
952 | .) ac_abs_builddir="$ac_dir";; | |
953 | *) | |
954 | case "$ac_dir" in | |
955 | .) ac_abs_builddir=`pwd`;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
957 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
958 | esac;; | |
959 | esac | |
960 | case $ac_abs_builddir in | |
961 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
962 | *) | |
963 | case ${ac_top_builddir}. in | |
964 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
965 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
966 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
967 | esac;; | |
968 | esac | |
969 | case $ac_abs_builddir in | |
970 | .) ac_abs_srcdir=$ac_srcdir;; | |
971 | *) | |
972 | case $ac_srcdir in | |
973 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
974 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
975 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
976 | esac;; | |
977 | esac | |
978 | case $ac_abs_builddir in | |
979 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
980 | *) | |
981 | case $ac_top_srcdir in | |
982 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
983 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
984 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
985 | esac;; | |
bec39cab AC |
986 | esac |
987 | ||
b4e70030 JB |
988 | cd $ac_dir |
989 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 990 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 991 | echo |
bec39cab AC |
992 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
993 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 994 | echo |
bec39cab | 995 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
996 | elif test -f $ac_srcdir/configure.ac || |
997 | test -f $ac_srcdir/configure.in; then | |
998 | echo | |
999 | $ac_configure --help | |
3ace7edb | 1000 | else |
bec39cab | 1001 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
1002 | fi |
1003 | cd $ac_popdir | |
bec39cab AC |
1004 | done |
1005 | fi | |
1006 | ||
b4e70030 | 1007 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1008 | if $ac_init_version; then |
1009 | cat <<\_ACEOF | |
1010 | ||
b4e70030 | 1011 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1012 | This configure script is free software; the Free Software Foundation |
1013 | gives unlimited permission to copy, distribute and modify it. | |
1014 | _ACEOF | |
b4e70030 | 1015 | exit 0 |
bec39cab | 1016 | fi |
b4e70030 JB |
1017 | exec 5>config.log |
1018 | cat >&5 <<_ACEOF | |
bec39cab AC |
1019 | This file contains any messages produced by compilers while |
1020 | running configure, to aid debugging if configure makes a mistake. | |
1021 | ||
1022 | It was created by $as_me, which was | |
b4e70030 | 1023 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1024 | |
1025 | $ $0 $@ | |
1026 | ||
1027 | _ACEOF | |
1028 | { | |
1029 | cat <<_ASUNAME | |
1030 | ## --------- ## | |
1031 | ## Platform. ## | |
1032 | ## --------- ## | |
1033 | ||
1034 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1035 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1036 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1037 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1038 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1039 | ||
1040 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1041 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1042 | ||
1043 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1044 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1045 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1046 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1047 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1048 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1049 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1050 | ||
1051 | _ASUNAME | |
1052 | ||
1053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1054 | for as_dir in $PATH | |
1055 | do | |
1056 | IFS=$as_save_IFS | |
1057 | test -z "$as_dir" && as_dir=. | |
1058 | echo "PATH: $as_dir" | |
1059 | done | |
1060 | ||
1061 | } >&5 | |
1062 | ||
1063 | cat >&5 <<_ACEOF | |
1064 | ||
1065 | ||
1066 | ## ----------- ## | |
1067 | ## Core tests. ## | |
1068 | ## ----------- ## | |
1069 | ||
1070 | _ACEOF | |
1071 | ||
1072 | ||
1073 | # Keep a trace of the command line. | |
1074 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1075 | # Strip out --silent because we don't want to record it for future runs. | |
1076 | # Also quote any args containing shell meta-characters. | |
1077 | # Make two passes to allow for proper duplicate-argument suppression. | |
1078 | ac_configure_args= | |
1079 | ac_configure_args0= | |
1080 | ac_configure_args1= | |
1081 | ac_sep= | |
1082 | ac_must_keep_next=false | |
1083 | for ac_pass in 1 2 | |
1084 | do | |
1085 | for ac_arg | |
1086 | do | |
1087 | case $ac_arg in | |
1088 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1090 | | -silent | --silent | --silen | --sile | --sil) | |
1091 | continue ;; | |
b4e70030 | 1092 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1093 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1094 | esac | |
1095 | case $ac_pass in | |
1096 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1097 | 2) | |
1098 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1099 | if test $ac_must_keep_next = true; then | |
1100 | ac_must_keep_next=false # Got value, back to normal. | |
1101 | else | |
1102 | case $ac_arg in | |
1103 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1104 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1105 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1106 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1107 | case "$ac_configure_args0 " in | |
1108 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1109 | esac | |
1110 | ;; | |
1111 | -* ) ac_must_keep_next=true ;; | |
1112 | esac | |
1113 | fi | |
1114 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1115 | # Get rid of the leading space. | |
1116 | ac_sep=" " | |
1117 | ;; | |
1118 | esac | |
1119 | done | |
1120 | done | |
1121 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1122 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1123 | ||
1124 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1125 | # config.log. We remove comments because anyway the quotes in there | |
1126 | # would cause problems or look ugly. | |
b4e70030 JB |
1127 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1128 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1129 | trap 'exit_status=$? |
1130 | # Save into config.log some information that might help in debugging. | |
1131 | { | |
1132 | echo | |
1133 | ||
1134 | cat <<\_ASBOX | |
1135 | ## ---------------- ## | |
1136 | ## Cache variables. ## | |
1137 | ## ---------------- ## | |
1138 | _ASBOX | |
1139 | echo | |
1140 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1141 | { |
bec39cab | 1142 | (set) 2>&1 | |
b4e70030 JB |
1143 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1144 | *ac_space=\ *) | |
bec39cab | 1145 | sed -n \ |
b4e70030 JB |
1146 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1147 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1148 | ;; | |
bec39cab | 1149 | *) |
b4e70030 JB |
1150 | sed -n \ |
1151 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1152 | ;; |
b4e70030 JB |
1153 | esac; |
1154 | } | |
bec39cab AC |
1155 | echo |
1156 | ||
1157 | cat <<\_ASBOX | |
1158 | ## ----------------- ## | |
1159 | ## Output variables. ## | |
1160 | ## ----------------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | for ac_var in $ac_subst_vars | |
1164 | do | |
b4e70030 JB |
1165 | eval ac_val=$`echo $ac_var` |
1166 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1167 | done | sort |
1168 | echo | |
1169 | ||
1170 | if test -n "$ac_subst_files"; then | |
1171 | cat <<\_ASBOX | |
b4e70030 JB |
1172 | ## ------------- ## |
1173 | ## Output files. ## | |
1174 | ## ------------- ## | |
bec39cab AC |
1175 | _ASBOX |
1176 | echo | |
1177 | for ac_var in $ac_subst_files | |
1178 | do | |
b4e70030 JB |
1179 | eval ac_val=$`echo $ac_var` |
1180 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1181 | done | sort |
1182 | echo | |
1183 | fi | |
1184 | ||
1185 | if test -s confdefs.h; then | |
1186 | cat <<\_ASBOX | |
1187 | ## ----------- ## | |
1188 | ## confdefs.h. ## | |
1189 | ## ----------- ## | |
1190 | _ASBOX | |
1191 | echo | |
b4e70030 | 1192 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1193 | echo |
3ace7edb | 1194 | fi |
bec39cab AC |
1195 | test "$ac_signal" != 0 && |
1196 | echo "$as_me: caught signal $ac_signal" | |
1197 | echo "$as_me: exit $exit_status" | |
1198 | } >&5 | |
b4e70030 JB |
1199 | rm -f core *.core && |
1200 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1201 | exit $exit_status |
b4e70030 | 1202 | ' 0 |
bec39cab AC |
1203 | for ac_signal in 1 2 13 15; do |
1204 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1205 | done | |
1206 | ac_signal=0 | |
1207 | ||
1208 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1209 | rm -rf conftest* confdefs.h |
1210 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1211 | echo >confdefs.h | |
bec39cab AC |
1212 | |
1213 | # Predefined preprocessor variables. | |
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | cat >>confdefs.h <<_ACEOF | |
1236 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1237 | _ACEOF | |
1238 | ||
1239 | ||
1240 | # Let the site file select an alternate cache file if it wants to. | |
1241 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1242 | if test -z "$CONFIG_SITE"; then |
1243 | if test "x$prefix" != xNONE; then | |
1244 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1245 | else | |
1246 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1247 | fi | |
c906108c | 1248 | fi |
b4e70030 | 1249 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1250 | if test -r "$ac_site_file"; then |
bec39cab AC |
1251 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1252 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1253 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1254 | . "$ac_site_file" |
1255 | fi | |
1256 | done | |
1257 | ||
1258 | if test -r "$cache_file"; then | |
bec39cab AC |
1259 | # Some versions of bash will fail to source /dev/null (special |
1260 | # files actually), so we avoid doing that. | |
1261 | if test -f "$cache_file"; then | |
1262 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1263 | echo "$as_me: loading cache $cache_file" >&6;} | |
1264 | case $cache_file in | |
1265 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1266 | *) . ./$cache_file;; | |
1267 | esac | |
1268 | fi | |
c906108c | 1269 | else |
bec39cab AC |
1270 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1271 | echo "$as_me: creating cache $cache_file" >&6;} | |
1272 | >$cache_file | |
1273 | fi | |
1274 | ||
1275 | # Check that the precious variables saved in the cache have kept the same | |
1276 | # value. | |
1277 | ac_cache_corrupted=false | |
b4e70030 JB |
1278 | for ac_var in `(set) 2>&1 | |
1279 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1280 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1281 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1282 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1283 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1284 | case $ac_old_set,$ac_new_set in |
1285 | set,) | |
1286 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1287 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1288 | ac_cache_corrupted=: ;; | |
1289 | ,set) | |
1290 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1291 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1292 | ac_cache_corrupted=: ;; | |
1293 | ,);; | |
1294 | *) | |
1295 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
fdc59709 PB |
1296 | # differences in whitespace do not lead to failure. |
1297 | ac_old_val_w=`echo x $ac_old_val` | |
1298 | ac_new_val_w=`echo x $ac_new_val` | |
1299 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1300 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
bec39cab | 1301 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
fdc59709 PB |
1302 | ac_cache_corrupted=: |
1303 | else | |
1304 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1305 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1306 | eval $ac_var=\$ac_old_val | |
1307 | fi | |
1308 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1309 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1310 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1311 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
1312 | fi;; |
1313 | esac | |
1314 | # Pass precious variables to config.status. | |
1315 | if test "$ac_new_set" = set; then | |
1316 | case $ac_new_val in | |
b4e70030 JB |
1317 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1318 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1319 | *) ac_arg=$ac_var=$ac_new_val ;; |
1320 | esac | |
1321 | case " $ac_configure_args " in | |
1322 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1323 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1324 | esac | |
1325 | fi | |
1326 | done | |
1327 | if $ac_cache_corrupted; then | |
1328 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1329 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1330 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1331 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1332 | { (exit 1); exit 1; }; } | |
c906108c SS |
1333 | fi |
1334 | ||
b4e70030 JB |
1335 | ac_ext=c |
1336 | ac_cpp='$CPP $CPPFLAGS' | |
1337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1340 | |
1341 | ||
783e057b DJ |
1342 | gl_header_list="$gl_header_list stdint.h" |
1343 | gl_header_list="$gl_header_list wchar.h" | |
1344 | gl_header_list="$gl_header_list string.h" | |
bec39cab AC |
1345 | |
1346 | ||
1347 | ||
1348 | ||
1349 | ||
1350 | ||
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
bec39cab | 1361 | |
b4e70030 JB |
1362 | ac_config_headers="$ac_config_headers config.h:config.in" |
1363 | ||
1364 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1365 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1366 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1367 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1368 | enableval="$enable_maintainer_mode" |
1369 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1370 | else |
1371 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1372 | fi; |
1373 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1374 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1375 | |
413ccac7 AC |
1376 | |
1377 | if test $USE_MAINTAINER_MODE = yes; then | |
1378 | MAINTAINER_MODE_TRUE= | |
1379 | MAINTAINER_MODE_FALSE='#' | |
1380 | else | |
1381 | MAINTAINER_MODE_TRUE='#' | |
1382 | MAINTAINER_MODE_FALSE= | |
1383 | fi | |
85981d60 | 1384 | |
413ccac7 | 1385 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1386 | |
c906108c | 1387 | |
bec39cab AC |
1388 | |
1389 | ac_ext=c | |
1390 | ac_cpp='$CPP $CPPFLAGS' | |
1391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1394 | if test -n "$ac_tool_prefix"; then | |
1395 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1396 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1399 | if test "${ac_cv_prog_CC+set}" = set; then |
1400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1401 | else | |
1402 | if test -n "$CC"; then | |
1403 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1404 | else | |
1405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1406 | for as_dir in $PATH | |
1407 | do | |
1408 | IFS=$as_save_IFS | |
1409 | test -z "$as_dir" && as_dir=. | |
1410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1412 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1414 | break 2 | |
1415 | fi | |
1416 | done | |
1417 | done | |
1418 | ||
1419 | fi | |
1420 | fi | |
1421 | CC=$ac_cv_prog_CC | |
1422 | if test -n "$CC"; then | |
b4e70030 JB |
1423 | echo "$as_me:$LINENO: result: $CC" >&5 |
1424 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1425 | else |
b4e70030 JB |
1426 | echo "$as_me:$LINENO: result: no" >&5 |
1427 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1428 | fi |
1429 | ||
1430 | fi | |
1431 | if test -z "$ac_cv_prog_CC"; then | |
1432 | ac_ct_CC=$CC | |
1433 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1434 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1437 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1439 | else | |
1440 | if test -n "$ac_ct_CC"; then | |
1441 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1442 | else | |
1443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1444 | for as_dir in $PATH | |
1445 | do | |
1446 | IFS=$as_save_IFS | |
1447 | test -z "$as_dir" && as_dir=. | |
1448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1450 | ac_cv_prog_ac_ct_CC="gcc" |
1451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1452 | break 2 | |
1453 | fi | |
1454 | done | |
1455 | done | |
1456 | ||
1457 | fi | |
1458 | fi | |
1459 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1460 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1461 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1462 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1463 | else |
b4e70030 JB |
1464 | echo "$as_me:$LINENO: result: no" >&5 |
1465 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1466 | fi |
1467 | ||
b4e70030 | 1468 | CC=$ac_ct_CC |
bec39cab AC |
1469 | else |
1470 | CC="$ac_cv_prog_CC" | |
1471 | fi | |
1472 | ||
1473 | if test -z "$CC"; then | |
b4e70030 JB |
1474 | if test -n "$ac_tool_prefix"; then |
1475 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1476 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1479 | if test "${ac_cv_prog_CC+set}" = set; then |
1480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1481 | else |
1482 | if test -n "$CC"; then | |
1483 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1484 | else | |
bec39cab AC |
1485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1486 | for as_dir in $PATH | |
1487 | do | |
1488 | IFS=$as_save_IFS | |
1489 | test -z "$as_dir" && as_dir=. | |
1490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1492 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1494 | break 2 | |
1495 | fi | |
1496 | done | |
1497 | done | |
1498 | ||
c906108c SS |
1499 | fi |
1500 | fi | |
bec39cab | 1501 | CC=$ac_cv_prog_CC |
c906108c | 1502 | if test -n "$CC"; then |
b4e70030 JB |
1503 | echo "$as_me:$LINENO: result: $CC" >&5 |
1504 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1505 | else |
b4e70030 JB |
1506 | echo "$as_me:$LINENO: result: no" >&5 |
1507 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1508 | fi |
1509 | ||
b4e70030 JB |
1510 | fi |
1511 | if test -z "$ac_cv_prog_CC"; then | |
1512 | ac_ct_CC=$CC | |
1513 | # Extract the first word of "cc", so it can be a program name with args. | |
1514 | set dummy cc; ac_word=$2 | |
1515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1519 | else | |
1520 | if test -n "$ac_ct_CC"; then | |
1521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1522 | else | |
1523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1524 | for as_dir in $PATH | |
1525 | do | |
1526 | IFS=$as_save_IFS | |
1527 | test -z "$as_dir" && as_dir=. | |
1528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1530 | ac_cv_prog_ac_ct_CC="cc" | |
1531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1532 | break 2 | |
4e8d927d | 1533 | fi |
b4e70030 JB |
1534 | done |
1535 | done | |
1536 | ||
1537 | fi | |
1538 | fi | |
1539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1540 | if test -n "$ac_ct_CC"; then | |
1541 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1542 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1543 | else | |
1544 | echo "$as_me:$LINENO: result: no" >&5 | |
1545 | echo "${ECHO_T}no" >&6 | |
1546 | fi | |
1547 | ||
1548 | CC=$ac_ct_CC | |
1549 | else | |
1550 | CC="$ac_cv_prog_CC" | |
1551 | fi | |
1552 | ||
bec39cab | 1553 | fi |
c906108c SS |
1554 | if test -z "$CC"; then |
1555 | # Extract the first word of "cc", so it can be a program name with args. | |
1556 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1559 | if test "${ac_cv_prog_CC+set}" = set; then |
1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1561 | else |
1562 | if test -n "$CC"; then | |
1563 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1564 | else | |
c906108c | 1565 | ac_prog_rejected=no |
bec39cab AC |
1566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1567 | for as_dir in $PATH | |
1568 | do | |
1569 | IFS=$as_save_IFS | |
1570 | test -z "$as_dir" && as_dir=. | |
1571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1573 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1574 | ac_prog_rejected=yes | |
1575 | continue | |
1576 | fi | |
1577 | ac_cv_prog_CC="cc" | |
1578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1579 | break 2 | |
1580 | fi | |
1581 | done | |
1582 | done | |
1583 | ||
c906108c SS |
1584 | if test $ac_prog_rejected = yes; then |
1585 | # We found a bogon in the path, so make sure we never use it. | |
1586 | set dummy $ac_cv_prog_CC | |
1587 | shift | |
bec39cab | 1588 | if test $# != 0; then |
c906108c SS |
1589 | # We chose a different compiler from the bogus one. |
1590 | # However, it has the same basename, so the bogon will be chosen | |
1591 | # first if we set CC to just the basename; use the full file name. | |
1592 | shift | |
bec39cab | 1593 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1594 | fi |
1595 | fi | |
1596 | fi | |
1597 | fi | |
bec39cab | 1598 | CC=$ac_cv_prog_CC |
c906108c | 1599 | if test -n "$CC"; then |
b4e70030 JB |
1600 | echo "$as_me:$LINENO: result: $CC" >&5 |
1601 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1602 | else |
b4e70030 JB |
1603 | echo "$as_me:$LINENO: result: no" >&5 |
1604 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1605 | fi |
1606 | ||
bec39cab AC |
1607 | fi |
1608 | if test -z "$CC"; then | |
1609 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1610 | for ac_prog in cl |
bec39cab AC |
1611 | do |
1612 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1613 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1614 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1616 | if test "${ac_cv_prog_CC+set}" = set; then |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1618 | else |
1619 | if test -n "$CC"; then | |
1620 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1621 | else | |
bec39cab AC |
1622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1623 | for as_dir in $PATH | |
1624 | do | |
1625 | IFS=$as_save_IFS | |
1626 | test -z "$as_dir" && as_dir=. | |
1627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1628 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1629 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1631 | break 2 | |
1632 | fi | |
1633 | done | |
1634 | done | |
1635 | ||
c906108c SS |
1636 | fi |
1637 | fi | |
bec39cab | 1638 | CC=$ac_cv_prog_CC |
c906108c | 1639 | if test -n "$CC"; then |
b4e70030 JB |
1640 | echo "$as_me:$LINENO: result: $CC" >&5 |
1641 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1642 | else |
b4e70030 JB |
1643 | echo "$as_me:$LINENO: result: no" >&5 |
1644 | echo "${ECHO_T}no" >&6 | |
c906108c | 1645 | fi |
bec39cab AC |
1646 | |
1647 | test -n "$CC" && break | |
1648 | done | |
1649 | fi | |
1650 | if test -z "$CC"; then | |
1651 | ac_ct_CC=$CC | |
b4e70030 | 1652 | for ac_prog in cl |
bec39cab AC |
1653 | do |
1654 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1655 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1658 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1660 | else | |
1661 | if test -n "$ac_ct_CC"; then | |
1662 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1663 | else | |
1664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1665 | for as_dir in $PATH | |
1666 | do | |
1667 | IFS=$as_save_IFS | |
1668 | test -z "$as_dir" && as_dir=. | |
1669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1671 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1673 | break 2 | |
c906108c | 1674 | fi |
bec39cab AC |
1675 | done |
1676 | done | |
1677 | ||
1678 | fi | |
1679 | fi | |
1680 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1681 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1682 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1683 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1684 | else |
b4e70030 JB |
1685 | echo "$as_me:$LINENO: result: no" >&5 |
1686 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1687 | fi |
1688 | ||
bec39cab AC |
1689 | test -n "$ac_ct_CC" && break |
1690 | done | |
c906108c | 1691 | |
b4e70030 | 1692 | CC=$ac_ct_CC |
bec39cab AC |
1693 | fi |
1694 | ||
1695 | fi | |
1696 | ||
1697 | ||
1698 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1699 | See \`config.log' for more details." >&5 | |
1700 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1701 | See \`config.log' for more details." >&2;} | |
1702 | { (exit 1); exit 1; }; } | |
1703 | ||
1704 | # Provide some information about the compiler. | |
b4e70030 JB |
1705 | echo "$as_me:$LINENO:" \ |
1706 | "checking for C compiler version" >&5 | |
bec39cab | 1707 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1708 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1709 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1710 | ac_status=$? |
1711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1712 | (exit $ac_status); } | |
b4e70030 JB |
1713 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1714 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1715 | ac_status=$? |
1716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1717 | (exit $ac_status); } | |
b4e70030 JB |
1718 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1719 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1720 | ac_status=$? |
1721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1722 | (exit $ac_status); } | |
1723 | ||
1724 | cat >conftest.$ac_ext <<_ACEOF | |
1725 | /* confdefs.h. */ | |
1726 | _ACEOF | |
1727 | cat confdefs.h >>conftest.$ac_ext | |
1728 | cat >>conftest.$ac_ext <<_ACEOF | |
1729 | /* end confdefs.h. */ | |
1730 | ||
1731 | int | |
1732 | main () | |
1733 | { | |
1734 | ||
1735 | ; | |
1736 | return 0; | |
1737 | } | |
1738 | _ACEOF | |
1739 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1740 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1741 | # Try to create an executable without -o first, disregard a.out. |
1742 | # It will help us diagnose broken compilers, and finding out an intuition | |
1743 | # of exeext. | |
b4e70030 JB |
1744 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1745 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1746 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1747 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1748 | (eval $ac_link_default) 2>&5 | |
1749 | ac_status=$? | |
1750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1751 | (exit $ac_status); }; then | |
b4e70030 JB |
1752 | # Find the output, starting from the most likely. This scheme is |
1753 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1754 | # resort. | |
1755 | ||
1756 | # Be careful to initialize this variable, since it used to be cached. | |
1757 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1758 | ac_cv_exeext= | |
1759 | # b.out is created by i960 compilers. | |
1760 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1761 | do |
1762 | test -f "$ac_file" || continue | |
1763 | case $ac_file in | |
b4e70030 JB |
1764 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1765 | ;; | |
1766 | conftest.$ac_ext ) | |
1767 | # This is the source file. | |
1768 | ;; | |
1769 | [ab].out ) | |
1770 | # We found the default executable, but exeext='' is most | |
1771 | # certainly right. | |
1772 | break;; | |
1773 | *.* ) | |
1774 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1775 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1776 | # but it would be cool to find out if it's true. Does anybody | |
1777 | # maintain Libtool? --akim. | |
1778 | export ac_cv_exeext | |
1779 | break;; | |
1780 | * ) | |
1781 | break;; | |
bec39cab AC |
1782 | esac |
1783 | done | |
1784 | else | |
1785 | echo "$as_me: failed program was:" >&5 | |
1786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1787 | ||
1788 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1789 | See \`config.log' for more details." >&5 | |
1790 | echo "$as_me: error: C compiler cannot create executables | |
1791 | See \`config.log' for more details." >&2;} | |
1792 | { (exit 77); exit 77; }; } | |
1793 | fi | |
1794 | ||
b4e70030 JB |
1795 | ac_exeext=$ac_cv_exeext |
1796 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1797 | echo "${ECHO_T}$ac_file" >&6 | |
1798 | ||
1799 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1800 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1801 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1802 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1803 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1804 | # If not cross compiling, check that we can run a simple program. | |
1805 | if test "$cross_compiling" != yes; then | |
1806 | if { ac_try='./$ac_file' | |
1807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1808 | (eval $ac_try) 2>&5 | |
1809 | ac_status=$? | |
1810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1811 | (exit $ac_status); }; }; then | |
1812 | cross_compiling=no | |
c906108c | 1813 | else |
bec39cab AC |
1814 | if test "$cross_compiling" = maybe; then |
1815 | cross_compiling=yes | |
1816 | else | |
1817 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1818 | If you meant to cross compile, use \`--host'. | |
1819 | See \`config.log' for more details." >&5 | |
1820 | echo "$as_me: error: cannot run C compiled programs. | |
1821 | If you meant to cross compile, use \`--host'. | |
1822 | See \`config.log' for more details." >&2;} | |
1823 | { (exit 1); exit 1; }; } | |
1824 | fi | |
c906108c | 1825 | fi |
bec39cab | 1826 | fi |
b4e70030 JB |
1827 | echo "$as_me:$LINENO: result: yes" >&5 |
1828 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1829 | |
b4e70030 JB |
1830 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1831 | ac_clean_files=$ac_clean_files_save | |
1832 | # Check the compiler produces executables we can run. If not, either | |
1833 | # the compiler is broken, or we cross compile. | |
1834 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1835 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1836 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1837 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1838 | |
b4e70030 JB |
1839 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1840 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1842 | (eval $ac_link) 2>&5 |
1843 | ac_status=$? | |
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1845 | (exit $ac_status); }; then | |
b4e70030 JB |
1846 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1847 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1848 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1849 | # `rm'. | |
1850 | for ac_file in conftest.exe conftest conftest.*; do | |
1851 | test -f "$ac_file" || continue | |
1852 | case $ac_file in | |
1853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1854 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1855 | export ac_cv_exeext | |
1856 | break;; | |
1857 | * ) break;; | |
1858 | esac | |
1859 | done | |
c906108c | 1860 | else |
bec39cab AC |
1861 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1862 | See \`config.log' for more details." >&5 | |
1863 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1864 | See \`config.log' for more details." >&2;} | |
1865 | { (exit 1); exit 1; }; } | |
c906108c | 1866 | fi |
c906108c | 1867 | |
b4e70030 JB |
1868 | rm -f conftest$ac_cv_exeext |
1869 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1870 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1871 | |
b4e70030 | 1872 | rm -f conftest.$ac_ext |
bec39cab AC |
1873 | EXEEXT=$ac_cv_exeext |
1874 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1875 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1876 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1877 | if test "${ac_cv_objext+set}" = set; then |
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1879 | else | |
b4e70030 JB |
1880 | cat >conftest.$ac_ext <<_ACEOF |
1881 | /* confdefs.h. */ | |
1882 | _ACEOF | |
1883 | cat confdefs.h >>conftest.$ac_ext | |
1884 | cat >>conftest.$ac_ext <<_ACEOF | |
1885 | /* end confdefs.h. */ | |
1886 | ||
1887 | int | |
1888 | main () | |
1889 | { | |
1890 | ||
1891 | ; | |
1892 | return 0; | |
1893 | } | |
1894 | _ACEOF | |
1895 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1897 | (eval $ac_compile) 2>&5 | |
1898 | ac_status=$? | |
1899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1900 | (exit $ac_status); }; then | |
b4e70030 | 1901 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1902 | case $ac_file in |
b4e70030 | 1903 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1904 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1905 | break;; | |
1906 | esac | |
1907 | done | |
c906108c | 1908 | else |
bec39cab AC |
1909 | echo "$as_me: failed program was:" >&5 |
1910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1911 | ||
1912 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1913 | See \`config.log' for more details." >&5 | |
1914 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1915 | See \`config.log' for more details." >&2;} | |
1916 | { (exit 1); exit 1; }; } | |
c906108c SS |
1917 | fi |
1918 | ||
b4e70030 | 1919 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1920 | fi |
b4e70030 JB |
1921 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1922 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1923 | OBJEXT=$ac_cv_objext |
1924 | ac_objext=$OBJEXT | |
b4e70030 JB |
1925 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1926 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1927 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1929 | else |
bec39cab AC |
1930 | cat >conftest.$ac_ext <<_ACEOF |
1931 | /* confdefs.h. */ | |
1932 | _ACEOF | |
1933 | cat confdefs.h >>conftest.$ac_ext | |
1934 | cat >>conftest.$ac_ext <<_ACEOF | |
1935 | /* end confdefs.h. */ | |
1936 | ||
1937 | int | |
1938 | main () | |
1939 | { | |
1940 | #ifndef __GNUC__ | |
1941 | choke me | |
1942 | #endif | |
1943 | ||
1944 | ; | |
1945 | return 0; | |
1946 | } | |
1947 | _ACEOF | |
1948 | rm -f conftest.$ac_objext | |
1949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1950 | (eval $ac_compile) 2>conftest.er1 | |
1951 | ac_status=$? | |
1952 | grep -v '^ *+' conftest.er1 >conftest.err | |
1953 | rm -f conftest.er1 | |
1954 | cat conftest.err >&5 | |
1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1956 | (exit $ac_status); } && | |
b4e70030 JB |
1957 | { ac_try='test -z "$ac_c_werror_flag" |
1958 | || test ! -s conftest.err' | |
bec39cab AC |
1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1960 | (eval $ac_try) 2>&5 | |
1961 | ac_status=$? | |
1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1963 | (exit $ac_status); }; } && | |
1964 | { ac_try='test -s conftest.$ac_objext' | |
1965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1966 | (eval $ac_try) 2>&5 | |
1967 | ac_status=$? | |
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1969 | (exit $ac_status); }; }; then | |
1970 | ac_compiler_gnu=yes | |
1971 | else | |
1972 | echo "$as_me: failed program was:" >&5 | |
1973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1974 | ||
b4e70030 | 1975 | ac_compiler_gnu=no |
bec39cab AC |
1976 | fi |
1977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1978 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1979 | ||
1980 | fi | |
b4e70030 JB |
1981 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1982 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1983 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1984 | ac_test_CFLAGS=${CFLAGS+set} | |
1985 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1986 | CFLAGS="-g" |
1987 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1988 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1989 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
b4e70030 | 1992 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1993 | /* confdefs.h. */ |
1994 | _ACEOF | |
1995 | cat confdefs.h >>conftest.$ac_ext | |
1996 | cat >>conftest.$ac_ext <<_ACEOF | |
1997 | /* end confdefs.h. */ | |
1998 | ||
1999 | int | |
2000 | main () | |
2001 | { | |
2002 | ||
2003 | ; | |
2004 | return 0; | |
2005 | } | |
2006 | _ACEOF | |
2007 | rm -f conftest.$ac_objext | |
2008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2009 | (eval $ac_compile) 2>conftest.er1 | |
2010 | ac_status=$? | |
2011 | grep -v '^ *+' conftest.er1 >conftest.err | |
2012 | rm -f conftest.er1 | |
2013 | cat conftest.err >&5 | |
2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2015 | (exit $ac_status); } && | |
b4e70030 JB |
2016 | { ac_try='test -z "$ac_c_werror_flag" |
2017 | || test ! -s conftest.err' | |
bec39cab AC |
2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2019 | (eval $ac_try) 2>&5 | |
2020 | ac_status=$? | |
2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2022 | (exit $ac_status); }; } && | |
2023 | { ac_try='test -s conftest.$ac_objext' | |
2024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2025 | (eval $ac_try) 2>&5 | |
2026 | ac_status=$? | |
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2028 | (exit $ac_status); }; }; then | |
c906108c SS |
2029 | ac_cv_prog_cc_g=yes |
2030 | else | |
bec39cab AC |
2031 | echo "$as_me: failed program was:" >&5 |
2032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2033 | |
b4e70030 | 2034 | ac_cv_prog_cc_g=no |
4e8d927d | 2035 | fi |
bec39cab AC |
2036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2037 | fi | |
b4e70030 JB |
2038 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2039 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2040 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2041 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2042 | elif test $ac_cv_prog_cc_g = yes; then |
2043 | if test "$GCC" = yes; then | |
2044 | CFLAGS="-g -O2" | |
2045 | else | |
2046 | CFLAGS="-g" | |
2047 | fi | |
2048 | else | |
2049 | if test "$GCC" = yes; then | |
2050 | CFLAGS="-O2" | |
2051 | else | |
2052 | CFLAGS= | |
2053 | fi | |
2054 | fi | |
b4e70030 JB |
2055 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2056 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2057 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2059 | else | |
b4e70030 | 2060 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2061 | ac_save_CC=$CC |
2062 | cat >conftest.$ac_ext <<_ACEOF | |
2063 | /* confdefs.h. */ | |
2064 | _ACEOF | |
2065 | cat confdefs.h >>conftest.$ac_ext | |
2066 | cat >>conftest.$ac_ext <<_ACEOF | |
2067 | /* end confdefs.h. */ | |
c906108c SS |
2068 | #include <stdarg.h> |
2069 | #include <stdio.h> | |
2070 | #include <sys/types.h> | |
2071 | #include <sys/stat.h> | |
2072 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2073 | struct buf { int x; }; | |
2074 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2075 | static char *e (p, i) | |
2076 | char **p; | |
2077 | int i; | |
2078 | { | |
2079 | return p[i]; | |
2080 | } | |
2081 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2082 | { | |
2083 | char *s; | |
2084 | va_list v; | |
2085 | va_start (v,p); | |
2086 | s = g (p, va_arg (v,int)); | |
2087 | va_end (v); | |
2088 | return s; | |
2089 | } | |
bec39cab AC |
2090 | |
2091 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2092 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2093 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2094 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2095 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2096 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2097 | that's true only with -std1. */ |
bec39cab AC |
2098 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2099 | ||
c906108c SS |
2100 | int test (int i, double x); |
2101 | struct s1 {int (*f) (int a);}; | |
2102 | struct s2 {int (*f) (double a);}; | |
2103 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2104 | int argc; | |
2105 | char **argv; | |
bec39cab AC |
2106 | int |
2107 | main () | |
2108 | { | |
c906108c | 2109 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2110 | ; |
2111 | return 0; | |
2112 | } | |
2113 | _ACEOF | |
b4e70030 JB |
2114 | # Don't try gcc -ansi; that turns off useful extensions and |
2115 | # breaks some systems' header files. | |
2116 | # AIX -qlanglvl=ansi | |
2117 | # Ultrix and OSF/1 -std1 | |
2118 | # HP-UX 10.20 and later -Ae | |
2119 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2120 | # SVR4 -Xc -D__EXTENSIONS__ | |
2121 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2122 | do |
2123 | CC="$ac_save_CC $ac_arg" | |
2124 | rm -f conftest.$ac_objext | |
2125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2126 | (eval $ac_compile) 2>conftest.er1 | |
2127 | ac_status=$? | |
2128 | grep -v '^ *+' conftest.er1 >conftest.err | |
2129 | rm -f conftest.er1 | |
2130 | cat conftest.err >&5 | |
2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2132 | (exit $ac_status); } && | |
b4e70030 JB |
2133 | { ac_try='test -z "$ac_c_werror_flag" |
2134 | || test ! -s conftest.err' | |
bec39cab AC |
2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2136 | (eval $ac_try) 2>&5 | |
2137 | ac_status=$? | |
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2139 | (exit $ac_status); }; } && | |
2140 | { ac_try='test -s conftest.$ac_objext' | |
2141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2142 | (eval $ac_try) 2>&5 | |
2143 | ac_status=$? | |
2144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2145 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2146 | ac_cv_prog_cc_stdc=$ac_arg |
2147 | break | |
c906108c | 2148 | else |
bec39cab AC |
2149 | echo "$as_me: failed program was:" >&5 |
2150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2151 | ||
c906108c | 2152 | fi |
bec39cab | 2153 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2154 | done |
b4e70030 | 2155 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2156 | CC=$ac_save_CC |
c906108c SS |
2157 | |
2158 | fi | |
b4e70030 JB |
2159 | |
2160 | case "x$ac_cv_prog_cc_stdc" in | |
2161 | x|xno) | |
2162 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2163 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2164 | *) |
b4e70030 JB |
2165 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2166 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2167 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2168 | esac |
2169 | ||
b4e70030 JB |
2170 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2171 | # in C++ we need to declare it. In case someone uses the same compiler | |
2172 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2173 | # the declaration of exit, since it's the most demanding environment. | |
2174 | cat >conftest.$ac_ext <<_ACEOF | |
2175 | #ifndef __cplusplus | |
2176 | choke me | |
2177 | #endif | |
2178 | _ACEOF | |
2179 | rm -f conftest.$ac_objext | |
2180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2181 | (eval $ac_compile) 2>conftest.er1 | |
2182 | ac_status=$? | |
2183 | grep -v '^ *+' conftest.er1 >conftest.err | |
2184 | rm -f conftest.er1 | |
2185 | cat conftest.err >&5 | |
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2187 | (exit $ac_status); } && | |
2188 | { ac_try='test -z "$ac_c_werror_flag" | |
2189 | || test ! -s conftest.err' | |
2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2191 | (eval $ac_try) 2>&5 | |
2192 | ac_status=$? | |
2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2194 | (exit $ac_status); }; } && | |
2195 | { ac_try='test -s conftest.$ac_objext' | |
2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2197 | (eval $ac_try) 2>&5 | |
2198 | ac_status=$? | |
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2200 | (exit $ac_status); }; }; then | |
2201 | for ac_declaration in \ | |
2202 | '' \ | |
2203 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2204 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2205 | 'extern "C" void exit (int) throw ();' \ | |
2206 | 'extern "C" void exit (int);' \ | |
2207 | 'void exit (int);' | |
2208 | do | |
2209 | cat >conftest.$ac_ext <<_ACEOF | |
2210 | /* confdefs.h. */ | |
2211 | _ACEOF | |
2212 | cat confdefs.h >>conftest.$ac_ext | |
2213 | cat >>conftest.$ac_ext <<_ACEOF | |
2214 | /* end confdefs.h. */ | |
2215 | $ac_declaration | |
2216 | #include <stdlib.h> | |
2217 | int | |
2218 | main () | |
2219 | { | |
2220 | exit (42); | |
2221 | ; | |
2222 | return 0; | |
2223 | } | |
2224 | _ACEOF | |
2225 | rm -f conftest.$ac_objext | |
2226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2227 | (eval $ac_compile) 2>conftest.er1 | |
2228 | ac_status=$? | |
2229 | grep -v '^ *+' conftest.er1 >conftest.err | |
2230 | rm -f conftest.er1 | |
2231 | cat conftest.err >&5 | |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); } && | |
2234 | { ac_try='test -z "$ac_c_werror_flag" | |
2235 | || test ! -s conftest.err' | |
2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2237 | (eval $ac_try) 2>&5 | |
2238 | ac_status=$? | |
2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2240 | (exit $ac_status); }; } && | |
2241 | { ac_try='test -s conftest.$ac_objext' | |
2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2243 | (eval $ac_try) 2>&5 | |
2244 | ac_status=$? | |
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2246 | (exit $ac_status); }; }; then | |
2247 | : | |
2248 | else | |
2249 | echo "$as_me: failed program was:" >&5 | |
2250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2251 | ||
2252 | continue | |
2253 | fi | |
2254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2255 | cat >conftest.$ac_ext <<_ACEOF | |
2256 | /* confdefs.h. */ | |
2257 | _ACEOF | |
2258 | cat confdefs.h >>conftest.$ac_ext | |
2259 | cat >>conftest.$ac_ext <<_ACEOF | |
2260 | /* end confdefs.h. */ | |
2261 | $ac_declaration | |
2262 | int | |
2263 | main () | |
2264 | { | |
2265 | exit (42); | |
2266 | ; | |
2267 | return 0; | |
2268 | } | |
2269 | _ACEOF | |
2270 | rm -f conftest.$ac_objext | |
2271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2272 | (eval $ac_compile) 2>conftest.er1 | |
2273 | ac_status=$? | |
2274 | grep -v '^ *+' conftest.er1 >conftest.err | |
2275 | rm -f conftest.er1 | |
2276 | cat conftest.err >&5 | |
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2278 | (exit $ac_status); } && | |
2279 | { ac_try='test -z "$ac_c_werror_flag" | |
2280 | || test ! -s conftest.err' | |
2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2282 | (eval $ac_try) 2>&5 | |
2283 | ac_status=$? | |
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2285 | (exit $ac_status); }; } && | |
2286 | { ac_try='test -s conftest.$ac_objext' | |
2287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2288 | (eval $ac_try) 2>&5 | |
2289 | ac_status=$? | |
2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 | (exit $ac_status); }; }; then | |
2292 | break | |
2293 | else | |
2294 | echo "$as_me: failed program was:" >&5 | |
2295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2296 | ||
2297 | fi | |
2298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2299 | done | |
2300 | rm -f conftest* | |
2301 | if test -n "$ac_declaration"; then | |
2302 | echo '#ifdef __cplusplus' >>confdefs.h | |
2303 | echo $ac_declaration >>confdefs.h | |
2304 | echo '#endif' >>confdefs.h | |
2305 | fi | |
2306 | ||
2307 | else | |
2308 | echo "$as_me: failed program was:" >&5 | |
2309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2310 | |
b4e70030 JB |
2311 | fi |
2312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2313 | ac_ext=c |
2314 | ac_cpp='$CPP $CPPFLAGS' | |
2315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2318 | |
60ca704f | 2319 | |
bec39cab AC |
2320 | cat >>confdefs.h <<\_ACEOF |
2321 | #define _GNU_SOURCE 1 | |
2322 | _ACEOF | |
c906108c SS |
2323 | |
2324 | ||
8bb2c122 | 2325 | |
bec39cab AC |
2326 | ac_ext=c |
2327 | ac_cpp='$CPP $CPPFLAGS' | |
2328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2331 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2332 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2333 | # On Suns, sometimes $CPP names a directory. |
2334 | if test -n "$CPP" && test -d "$CPP"; then | |
2335 | CPP= | |
8bb2c122 | 2336 | fi |
bec39cab AC |
2337 | if test -z "$CPP"; then |
2338 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2340 | else | |
2341 | # Double quotes because CPP needs to be expanded | |
2342 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2343 | do | |
2344 | ac_preproc_ok=false | |
2345 | for ac_c_preproc_warn_flag in '' yes | |
2346 | do | |
2347 | # Use a header file that comes with gcc, so configuring glibc | |
2348 | # with a fresh cross-compiler works. | |
2349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2350 | # <limits.h> exists even on freestanding compilers. | |
2351 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2352 | # not just through cpp. "Syntax error" is here to catch this case. | |
2353 | cat >conftest.$ac_ext <<_ACEOF | |
2354 | /* confdefs.h. */ | |
2355 | _ACEOF | |
2356 | cat confdefs.h >>conftest.$ac_ext | |
2357 | cat >>conftest.$ac_ext <<_ACEOF | |
2358 | /* end confdefs.h. */ | |
2359 | #ifdef __STDC__ | |
2360 | # include <limits.h> | |
2361 | #else | |
2362 | # include <assert.h> | |
2363 | #endif | |
2364 | Syntax error | |
2365 | _ACEOF | |
2366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2368 | ac_status=$? | |
2369 | grep -v '^ *+' conftest.er1 >conftest.err | |
2370 | rm -f conftest.er1 | |
2371 | cat conftest.err >&5 | |
2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2373 | (exit $ac_status); } >/dev/null; then | |
2374 | if test -s conftest.err; then | |
2375 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2377 | else | |
2378 | ac_cpp_err= | |
2379 | fi | |
8bb2c122 | 2380 | else |
bec39cab | 2381 | ac_cpp_err=yes |
8bb2c122 | 2382 | fi |
bec39cab AC |
2383 | if test -z "$ac_cpp_err"; then |
2384 | : | |
8bb2c122 | 2385 | else |
bec39cab AC |
2386 | echo "$as_me: failed program was:" >&5 |
2387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2388 | ||
2389 | # Broken: fails on valid input. | |
2390 | continue | |
2391 | fi | |
2392 | rm -f conftest.err conftest.$ac_ext | |
2393 | ||
b4e70030 | 2394 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2395 | # can be detected and how. |
2396 | cat >conftest.$ac_ext <<_ACEOF | |
2397 | /* confdefs.h. */ | |
2398 | _ACEOF | |
2399 | cat confdefs.h >>conftest.$ac_ext | |
2400 | cat >>conftest.$ac_ext <<_ACEOF | |
2401 | /* end confdefs.h. */ | |
2402 | #include <ac_nonexistent.h> | |
2403 | _ACEOF | |
2404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2406 | ac_status=$? | |
2407 | grep -v '^ *+' conftest.er1 >conftest.err | |
2408 | rm -f conftest.er1 | |
2409 | cat conftest.err >&5 | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2411 | (exit $ac_status); } >/dev/null; then | |
2412 | if test -s conftest.err; then | |
2413 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2415 | else | |
2416 | ac_cpp_err= | |
2417 | fi | |
8bb2c122 | 2418 | else |
bec39cab | 2419 | ac_cpp_err=yes |
8bb2c122 | 2420 | fi |
bec39cab AC |
2421 | if test -z "$ac_cpp_err"; then |
2422 | # Broken: success on invalid input. | |
2423 | continue | |
8bb2c122 | 2424 | else |
bec39cab AC |
2425 | echo "$as_me: failed program was:" >&5 |
2426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2427 | |
bec39cab AC |
2428 | # Passes both tests. |
2429 | ac_preproc_ok=: | |
2430 | break | |
8bb2c122 | 2431 | fi |
bec39cab | 2432 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2433 | |
bec39cab AC |
2434 | done |
2435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2436 | rm -f conftest.err conftest.$ac_ext | |
2437 | if $ac_preproc_ok; then | |
2438 | break | |
2439 | fi | |
8bb2c122 | 2440 | |
bec39cab AC |
2441 | done |
2442 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2443 | |
c906108c | 2444 | fi |
bec39cab AC |
2445 | CPP=$ac_cv_prog_CPP |
2446 | else | |
2447 | ac_cv_prog_CPP=$CPP | |
c906108c | 2448 | fi |
b4e70030 JB |
2449 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2450 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2451 | ac_preproc_ok=false |
2452 | for ac_c_preproc_warn_flag in '' yes | |
2453 | do | |
2454 | # Use a header file that comes with gcc, so configuring glibc | |
2455 | # with a fresh cross-compiler works. | |
2456 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2457 | # <limits.h> exists even on freestanding compilers. | |
2458 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2459 | # not just through cpp. "Syntax error" is here to catch this case. | |
2460 | cat >conftest.$ac_ext <<_ACEOF | |
2461 | /* confdefs.h. */ | |
2462 | _ACEOF | |
2463 | cat confdefs.h >>conftest.$ac_ext | |
2464 | cat >>conftest.$ac_ext <<_ACEOF | |
2465 | /* end confdefs.h. */ | |
2466 | #ifdef __STDC__ | |
2467 | # include <limits.h> | |
2468 | #else | |
2469 | # include <assert.h> | |
2470 | #endif | |
2471 | Syntax error | |
2472 | _ACEOF | |
2473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2475 | ac_status=$? | |
2476 | grep -v '^ *+' conftest.er1 >conftest.err | |
2477 | rm -f conftest.er1 | |
2478 | cat conftest.err >&5 | |
2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2480 | (exit $ac_status); } >/dev/null; then | |
2481 | if test -s conftest.err; then | |
2482 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2483 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2484 | else | |
2485 | ac_cpp_err= | |
2486 | fi | |
c906108c | 2487 | else |
bec39cab | 2488 | ac_cpp_err=yes |
c906108c | 2489 | fi |
bec39cab AC |
2490 | if test -z "$ac_cpp_err"; then |
2491 | : | |
c906108c | 2492 | else |
bec39cab AC |
2493 | echo "$as_me: failed program was:" >&5 |
2494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2495 | ||
2496 | # Broken: fails on valid input. | |
2497 | continue | |
2498 | fi | |
2499 | rm -f conftest.err conftest.$ac_ext | |
2500 | ||
b4e70030 | 2501 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2502 | # can be detected and how. |
2503 | cat >conftest.$ac_ext <<_ACEOF | |
2504 | /* confdefs.h. */ | |
2505 | _ACEOF | |
2506 | cat confdefs.h >>conftest.$ac_ext | |
2507 | cat >>conftest.$ac_ext <<_ACEOF | |
2508 | /* end confdefs.h. */ | |
2509 | #include <ac_nonexistent.h> | |
2510 | _ACEOF | |
2511 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2512 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2513 | ac_status=$? | |
2514 | grep -v '^ *+' conftest.er1 >conftest.err | |
2515 | rm -f conftest.er1 | |
2516 | cat conftest.err >&5 | |
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2518 | (exit $ac_status); } >/dev/null; then | |
2519 | if test -s conftest.err; then | |
2520 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2521 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2522 | else | |
2523 | ac_cpp_err= | |
2524 | fi | |
c906108c | 2525 | else |
bec39cab | 2526 | ac_cpp_err=yes |
c906108c | 2527 | fi |
bec39cab AC |
2528 | if test -z "$ac_cpp_err"; then |
2529 | # Broken: success on invalid input. | |
2530 | continue | |
c906108c | 2531 | else |
bec39cab AC |
2532 | echo "$as_me: failed program was:" >&5 |
2533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2534 | |
bec39cab AC |
2535 | # Passes both tests. |
2536 | ac_preproc_ok=: | |
2537 | break | |
c906108c | 2538 | fi |
bec39cab | 2539 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2540 | |
bec39cab AC |
2541 | done |
2542 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2543 | rm -f conftest.err conftest.$ac_ext | |
2544 | if $ac_preproc_ok; then | |
c906108c SS |
2545 | : |
2546 | else | |
bec39cab AC |
2547 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2548 | See \`config.log' for more details." >&5 | |
2549 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2550 | See \`config.log' for more details." >&2;} | |
2551 | { (exit 1); exit 1; }; } | |
c906108c | 2552 | fi |
c906108c | 2553 | |
bec39cab AC |
2554 | ac_ext=c |
2555 | ac_cpp='$CPP $CPPFLAGS' | |
2556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2559 | ||
2560 | ||
b4e70030 JB |
2561 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2562 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2563 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2565 | else | |
b4e70030 JB |
2566 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2567 | then ac_cv_prog_egrep='grep -E' | |
2568 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2569 | fi |
4e8d927d | 2570 | fi |
b4e70030 JB |
2571 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2572 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2573 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2574 | |
bec39cab AC |
2575 | |
2576 | ||
b4e70030 JB |
2577 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2578 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2579 | cat >conftest.$ac_ext <<_ACEOF |
2580 | /* confdefs.h. */ | |
2581 | _ACEOF | |
2582 | cat confdefs.h >>conftest.$ac_ext | |
2583 | cat >>conftest.$ac_ext <<_ACEOF | |
2584 | /* end confdefs.h. */ | |
2585 | #ifdef _AIX | |
2586 | yes | |
2587 | #endif | |
2588 | ||
2589 | _ACEOF | |
c906108c | 2590 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2591 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2592 | echo "$as_me:$LINENO: result: yes" >&5 |
2593 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2594 | cat >>confdefs.h <<\_ACEOF |
2595 | #define _ALL_SOURCE 1 | |
2596 | _ACEOF | |
2597 | ||
c906108c | 2598 | else |
b4e70030 JB |
2599 | echo "$as_me:$LINENO: result: no" >&5 |
2600 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2601 | fi |
2602 | rm -f conftest* | |
2603 | ||
c906108c | 2604 | |
b4e70030 JB |
2605 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2606 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2607 | if test "${ac_cv_search_strerror+set}" = set; then |
2608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2609 | else |
bec39cab | 2610 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2611 | ac_cv_search_strerror=no |
bec39cab AC |
2612 | cat >conftest.$ac_ext <<_ACEOF |
2613 | /* confdefs.h. */ | |
2614 | _ACEOF | |
2615 | cat confdefs.h >>conftest.$ac_ext | |
2616 | cat >>conftest.$ac_ext <<_ACEOF | |
2617 | /* end confdefs.h. */ | |
c906108c | 2618 | |
b4e70030 | 2619 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2620 | #ifdef __cplusplus |
2621 | extern "C" | |
2622 | #endif | |
b4e70030 JB |
2623 | /* We use char because int might match the return type of a gcc2 |
2624 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2625 | char strerror (); |
2626 | int | |
2627 | main () | |
2628 | { | |
b4e70030 | 2629 | strerror (); |
bec39cab AC |
2630 | ; |
2631 | return 0; | |
2632 | } | |
2633 | _ACEOF | |
b4e70030 | 2634 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2636 | (eval $ac_link) 2>conftest.er1 | |
2637 | ac_status=$? | |
2638 | grep -v '^ *+' conftest.er1 >conftest.err | |
2639 | rm -f conftest.er1 | |
2640 | cat conftest.err >&5 | |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2642 | (exit $ac_status); } && | |
b4e70030 JB |
2643 | { ac_try='test -z "$ac_c_werror_flag" |
2644 | || test ! -s conftest.err' | |
bec39cab AC |
2645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2646 | (eval $ac_try) 2>&5 | |
2647 | ac_status=$? | |
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2649 | (exit $ac_status); }; } && | |
2650 | { ac_try='test -s conftest$ac_exeext' | |
2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2652 | (eval $ac_try) 2>&5 | |
2653 | ac_status=$? | |
2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2655 | (exit $ac_status); }; }; then | |
b4e70030 | 2656 | ac_cv_search_strerror="none required" |
c906108c | 2657 | else |
bec39cab AC |
2658 | echo "$as_me: failed program was:" >&5 |
2659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2660 | |
2661 | fi | |
bec39cab | 2662 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2663 | conftest$ac_exeext conftest.$ac_ext |
2664 | if test "$ac_cv_search_strerror" = no; then | |
2665 | for ac_lib in cposix; do | |
2666 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2667 | cat >conftest.$ac_ext <<_ACEOF | |
2668 | /* confdefs.h. */ | |
2669 | _ACEOF | |
2670 | cat confdefs.h >>conftest.$ac_ext | |
2671 | cat >>conftest.$ac_ext <<_ACEOF | |
2672 | /* end confdefs.h. */ | |
2673 | ||
2674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2675 | #ifdef __cplusplus | |
2676 | extern "C" | |
2677 | #endif | |
2678 | /* We use char because int might match the return type of a gcc2 | |
2679 | builtin and then its argument prototype would still apply. */ | |
2680 | char strerror (); | |
2681 | int | |
2682 | main () | |
2683 | { | |
2684 | strerror (); | |
2685 | ; | |
2686 | return 0; | |
2687 | } | |
2688 | _ACEOF | |
2689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2691 | (eval $ac_link) 2>conftest.er1 | |
2692 | ac_status=$? | |
2693 | grep -v '^ *+' conftest.er1 >conftest.err | |
2694 | rm -f conftest.er1 | |
2695 | cat conftest.err >&5 | |
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2697 | (exit $ac_status); } && | |
2698 | { ac_try='test -z "$ac_c_werror_flag" | |
2699 | || test ! -s conftest.err' | |
2700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2701 | (eval $ac_try) 2>&5 | |
2702 | ac_status=$? | |
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2704 | (exit $ac_status); }; } && | |
2705 | { ac_try='test -s conftest$ac_exeext' | |
2706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2707 | (eval $ac_try) 2>&5 | |
2708 | ac_status=$? | |
2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2710 | (exit $ac_status); }; }; then | |
2711 | ac_cv_search_strerror="-l$ac_lib" | |
2712 | break | |
4e8d927d | 2713 | else |
b4e70030 JB |
2714 | echo "$as_me: failed program was:" >&5 |
2715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2716 | ||
2717 | fi | |
2718 | rm -f conftest.err conftest.$ac_objext \ | |
2719 | conftest$ac_exeext conftest.$ac_ext | |
2720 | done | |
c906108c | 2721 | fi |
bec39cab | 2722 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2723 | fi |
b4e70030 JB |
2724 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2725 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2726 | if test "$ac_cv_search_strerror" != no; then | |
2727 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2728 | |
c906108c SS |
2729 | fi |
2730 | ||
783e057b DJ |
2731 | if test -n "$ac_tool_prefix"; then |
2732 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2733 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2736 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2738 | else | |
2739 | if test -n "$RANLIB"; then | |
2740 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2741 | else | |
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2743 | for as_dir in $PATH | |
2744 | do | |
2745 | IFS=$as_save_IFS | |
2746 | test -z "$as_dir" && as_dir=. | |
2747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2749 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2751 | break 2 | |
2752 | fi | |
2753 | done | |
2754 | done | |
c906108c | 2755 | |
783e057b DJ |
2756 | fi |
2757 | fi | |
2758 | RANLIB=$ac_cv_prog_RANLIB | |
2759 | if test -n "$RANLIB"; then | |
2760 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2761 | echo "${ECHO_T}$RANLIB" >&6 | |
2762 | else | |
2763 | echo "$as_me:$LINENO: result: no" >&5 | |
2764 | echo "${ECHO_T}no" >&6 | |
2765 | fi | |
bec39cab | 2766 | |
783e057b DJ |
2767 | fi |
2768 | if test -z "$ac_cv_prog_RANLIB"; then | |
2769 | ac_ct_RANLIB=$RANLIB | |
2770 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2771 | set dummy ranlib; ac_word=$2 | |
2772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2774 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
bec39cab | 2775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 2776 | else |
783e057b DJ |
2777 | if test -n "$ac_ct_RANLIB"; then |
2778 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2779 | else | |
2780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2781 | for as_dir in $PATH | |
bec39cab | 2782 | do |
783e057b DJ |
2783 | IFS=$as_save_IFS |
2784 | test -z "$as_dir" && as_dir=. | |
2785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2786 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2787 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2789 | break 2 | |
2790 | fi | |
2791 | done | |
2792 | done | |
2793 | ||
2794 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2795 | fi | |
2796 | fi | |
2797 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2798 | if test -n "$ac_ct_RANLIB"; then | |
2799 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2800 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2801 | else | |
2802 | echo "$as_me:$LINENO: result: no" >&5 | |
2803 | echo "${ECHO_T}no" >&6 | |
2804 | fi | |
2805 | ||
2806 | RANLIB=$ac_ct_RANLIB | |
2807 | else | |
2808 | RANLIB="$ac_cv_prog_RANLIB" | |
2809 | fi | |
2810 | ||
2811 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2812 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2813 | if test "${ac_cv_header_stdc+set}" = set; then | |
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2815 | else | |
bec39cab AC |
2816 | cat >conftest.$ac_ext <<_ACEOF |
2817 | /* confdefs.h. */ | |
2818 | _ACEOF | |
2819 | cat confdefs.h >>conftest.$ac_ext | |
2820 | cat >>conftest.$ac_ext <<_ACEOF | |
2821 | /* end confdefs.h. */ | |
783e057b | 2822 | #include <stdlib.h> |
bec39cab | 2823 | #include <stdarg.h> |
783e057b DJ |
2824 | #include <string.h> |
2825 | #include <float.h> | |
c906108c | 2826 | |
bec39cab AC |
2827 | int |
2828 | main () | |
2829 | { | |
c906108c | 2830 | |
bec39cab AC |
2831 | ; |
2832 | return 0; | |
2833 | } | |
2834 | _ACEOF | |
2835 | rm -f conftest.$ac_objext | |
2836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2837 | (eval $ac_compile) 2>conftest.er1 | |
2838 | ac_status=$? | |
2839 | grep -v '^ *+' conftest.er1 >conftest.err | |
2840 | rm -f conftest.er1 | |
2841 | cat conftest.err >&5 | |
2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2843 | (exit $ac_status); } && | |
b4e70030 JB |
2844 | { ac_try='test -z "$ac_c_werror_flag" |
2845 | || test ! -s conftest.err' | |
bec39cab AC |
2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2847 | (eval $ac_try) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); }; } && | |
2851 | { ac_try='test -s conftest.$ac_objext' | |
2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2853 | (eval $ac_try) 2>&5 | |
2854 | ac_status=$? | |
2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2856 | (exit $ac_status); }; }; then | |
783e057b | 2857 | ac_cv_header_stdc=yes |
c906108c | 2858 | else |
bec39cab AC |
2859 | echo "$as_me: failed program was:" >&5 |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2861 | |
783e057b | 2862 | ac_cv_header_stdc=no |
c906108c | 2863 | fi |
bec39cab | 2864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2865 | |
783e057b DJ |
2866 | if test $ac_cv_header_stdc = yes; then |
2867 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2868 | cat >conftest.$ac_ext <<_ACEOF | |
2869 | /* confdefs.h. */ | |
2870 | _ACEOF | |
2871 | cat confdefs.h >>conftest.$ac_ext | |
2872 | cat >>conftest.$ac_ext <<_ACEOF | |
2873 | /* end confdefs.h. */ | |
2874 | #include <string.h> | |
c906108c | 2875 | |
783e057b DJ |
2876 | _ACEOF |
2877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2878 | $EGREP "memchr" >/dev/null 2>&1; then | |
2879 | : | |
c906108c | 2880 | else |
783e057b | 2881 | ac_cv_header_stdc=no |
c906108c | 2882 | fi |
783e057b | 2883 | rm -f conftest* |
c906108c SS |
2884 | |
2885 | fi | |
2886 | ||
783e057b DJ |
2887 | if test $ac_cv_header_stdc = yes; then |
2888 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2889 | cat >conftest.$ac_ext <<_ACEOF | |
2890 | /* confdefs.h. */ | |
2891 | _ACEOF | |
2892 | cat confdefs.h >>conftest.$ac_ext | |
2893 | cat >>conftest.$ac_ext <<_ACEOF | |
2894 | /* end confdefs.h. */ | |
2895 | #include <stdlib.h> | |
bec39cab | 2896 | |
783e057b DJ |
2897 | _ACEOF |
2898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2899 | $EGREP "free" >/dev/null 2>&1; then | |
2900 | : | |
bec39cab | 2901 | else |
783e057b | 2902 | ac_cv_header_stdc=no |
bec39cab | 2903 | fi |
783e057b | 2904 | rm -f conftest* |
bec39cab AC |
2905 | |
2906 | fi | |
bec39cab | 2907 | |
783e057b DJ |
2908 | if test $ac_cv_header_stdc = yes; then |
2909 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2910 | if test "$cross_compiling" = yes; then | |
2911 | : | |
bec39cab | 2912 | else |
783e057b DJ |
2913 | cat >conftest.$ac_ext <<_ACEOF |
2914 | /* confdefs.h. */ | |
2915 | _ACEOF | |
2916 | cat confdefs.h >>conftest.$ac_ext | |
2917 | cat >>conftest.$ac_ext <<_ACEOF | |
2918 | /* end confdefs.h. */ | |
2919 | #include <ctype.h> | |
2920 | #if ((' ' & 0x0FF) == 0x020) | |
2921 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2922 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2923 | #else | |
2924 | # define ISLOWER(c) \ | |
2925 | (('a' <= (c) && (c) <= 'i') \ | |
2926 | || ('j' <= (c) && (c) <= 'r') \ | |
2927 | || ('s' <= (c) && (c) <= 'z')) | |
2928 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2929 | #endif | |
2930 | ||
2931 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2932 | int | |
2933 | main () | |
2934 | { | |
2935 | int i; | |
2936 | for (i = 0; i < 256; i++) | |
2937 | if (XOR (islower (i), ISLOWER (i)) | |
2938 | || toupper (i) != TOUPPER (i)) | |
2939 | exit(2); | |
2940 | exit (0); | |
2941 | } | |
2942 | _ACEOF | |
2943 | rm -f conftest$ac_exeext | |
2944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2945 | (eval $ac_link) 2>&5 | |
2946 | ac_status=$? | |
2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2948 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2950 | (eval $ac_try) 2>&5 | |
2951 | ac_status=$? | |
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2953 | (exit $ac_status); }; }; then | |
2954 | : | |
2955 | else | |
2956 | echo "$as_me: program exited with status $ac_status" >&5 | |
2957 | echo "$as_me: failed program was:" >&5 | |
2958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2959 | ||
2960 | ( exit $ac_status ) | |
2961 | ac_cv_header_stdc=no | |
2962 | fi | |
2963 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2964 | fi | |
2965 | fi | |
2966 | fi | |
2967 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2968 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2969 | if test $ac_cv_header_stdc = yes; then | |
2970 | ||
2971 | cat >>confdefs.h <<\_ACEOF | |
2972 | #define STDC_HEADERS 1 | |
2973 | _ACEOF | |
2974 | ||
2975 | fi | |
2976 | ||
2977 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2978 | ||
2979 | ||
2980 | ||
2981 | ||
2982 | ||
2983 | ||
2984 | ||
2985 | ||
2986 | ||
2987 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2988 | inttypes.h stdint.h unistd.h | |
2989 | do | |
2990 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2995 | else | |
2996 | cat >conftest.$ac_ext <<_ACEOF | |
2997 | /* confdefs.h. */ | |
2998 | _ACEOF | |
2999 | cat confdefs.h >>conftest.$ac_ext | |
3000 | cat >>conftest.$ac_ext <<_ACEOF | |
3001 | /* end confdefs.h. */ | |
3002 | $ac_includes_default | |
3003 | ||
3004 | #include <$ac_header> | |
3005 | _ACEOF | |
3006 | rm -f conftest.$ac_objext | |
3007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3008 | (eval $ac_compile) 2>conftest.er1 | |
3009 | ac_status=$? | |
3010 | grep -v '^ *+' conftest.er1 >conftest.err | |
3011 | rm -f conftest.er1 | |
3012 | cat conftest.err >&5 | |
3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3014 | (exit $ac_status); } && | |
3015 | { ac_try='test -z "$ac_c_werror_flag" | |
3016 | || test ! -s conftest.err' | |
3017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3018 | (eval $ac_try) 2>&5 | |
3019 | ac_status=$? | |
3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3021 | (exit $ac_status); }; } && | |
3022 | { ac_try='test -s conftest.$ac_objext' | |
3023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3024 | (eval $ac_try) 2>&5 | |
3025 | ac_status=$? | |
3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3027 | (exit $ac_status); }; }; then | |
3028 | eval "$as_ac_Header=yes" | |
3029 | else | |
3030 | echo "$as_me: failed program was:" >&5 | |
3031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3032 | ||
3033 | eval "$as_ac_Header=no" | |
3034 | fi | |
3035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3036 | fi | |
3037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3040 | cat >>confdefs.h <<_ACEOF | |
3041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3042 | _ACEOF | |
3043 | ||
3044 | fi | |
3045 | ||
3046 | done | |
3047 | ||
3048 | ||
3049 | ||
3050 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3051 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3052 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3053 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3055 | fi | |
3056 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3057 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3058 | else | |
3059 | # Is the header compilable? | |
3060 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
3061 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
3062 | cat >conftest.$ac_ext <<_ACEOF | |
3063 | /* confdefs.h. */ | |
3064 | _ACEOF | |
3065 | cat confdefs.h >>conftest.$ac_ext | |
3066 | cat >>conftest.$ac_ext <<_ACEOF | |
3067 | /* end confdefs.h. */ | |
3068 | $ac_includes_default | |
3069 | #include <minix/config.h> | |
3070 | _ACEOF | |
3071 | rm -f conftest.$ac_objext | |
3072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3073 | (eval $ac_compile) 2>conftest.er1 | |
3074 | ac_status=$? | |
3075 | grep -v '^ *+' conftest.er1 >conftest.err | |
3076 | rm -f conftest.er1 | |
3077 | cat conftest.err >&5 | |
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3079 | (exit $ac_status); } && | |
3080 | { ac_try='test -z "$ac_c_werror_flag" | |
3081 | || test ! -s conftest.err' | |
3082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3083 | (eval $ac_try) 2>&5 | |
3084 | ac_status=$? | |
3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3086 | (exit $ac_status); }; } && | |
3087 | { ac_try='test -s conftest.$ac_objext' | |
3088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3089 | (eval $ac_try) 2>&5 | |
3090 | ac_status=$? | |
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3092 | (exit $ac_status); }; }; then | |
3093 | ac_header_compiler=yes | |
3094 | else | |
3095 | echo "$as_me: failed program was:" >&5 | |
3096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3097 | ||
3098 | ac_header_compiler=no | |
3099 | fi | |
3100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3102 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3103 | ||
3104 | # Is the header present? | |
3105 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
3106 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
3107 | cat >conftest.$ac_ext <<_ACEOF | |
3108 | /* confdefs.h. */ | |
3109 | _ACEOF | |
3110 | cat confdefs.h >>conftest.$ac_ext | |
3111 | cat >>conftest.$ac_ext <<_ACEOF | |
3112 | /* end confdefs.h. */ | |
3113 | #include <minix/config.h> | |
3114 | _ACEOF | |
3115 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3116 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3117 | ac_status=$? | |
3118 | grep -v '^ *+' conftest.er1 >conftest.err | |
3119 | rm -f conftest.er1 | |
3120 | cat conftest.err >&5 | |
3121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3122 | (exit $ac_status); } >/dev/null; then | |
3123 | if test -s conftest.err; then | |
3124 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3125 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3126 | else | |
3127 | ac_cpp_err= | |
3128 | fi | |
3129 | else | |
3130 | ac_cpp_err=yes | |
3131 | fi | |
3132 | if test -z "$ac_cpp_err"; then | |
3133 | ac_header_preproc=yes | |
3134 | else | |
3135 | echo "$as_me: failed program was:" >&5 | |
3136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3137 | ||
3138 | ac_header_preproc=no | |
3139 | fi | |
3140 | rm -f conftest.err conftest.$ac_ext | |
3141 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3142 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3143 | ||
3144 | # So? What about this header? | |
3145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3146 | yes:no: ) | |
3147 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3148 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3149 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
3150 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
3151 | ac_header_preproc=yes | |
3152 | ;; | |
3153 | no:yes:* ) | |
3154 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
3155 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
3156 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
3157 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
3158 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
3159 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
3160 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3161 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3162 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
3163 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
3164 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
3165 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
3166 | ( | |
3167 | cat <<\_ASBOX | |
3168 | ## ------------------------------------------ ## | |
3169 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3170 | ## ------------------------------------------ ## | |
3171 | _ASBOX | |
3172 | ) | | |
3173 | sed "s/^/$as_me: WARNING: /" >&2 | |
3174 | ;; | |
3175 | esac | |
3176 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3177 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3178 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3180 | else | |
3181 | ac_cv_header_minix_config_h=$ac_header_preproc | |
3182 | fi | |
3183 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3184 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3185 | ||
3186 | fi | |
3187 | if test $ac_cv_header_minix_config_h = yes; then | |
3188 | MINIX=yes | |
3189 | else | |
3190 | MINIX= | |
3191 | fi | |
3192 | ||
3193 | ||
3194 | if test "$MINIX" = yes; then | |
3195 | ||
3196 | cat >>confdefs.h <<\_ACEOF | |
3197 | #define _POSIX_SOURCE 1 | |
3198 | _ACEOF | |
3199 | ||
3200 | ||
3201 | cat >>confdefs.h <<\_ACEOF | |
3202 | #define _POSIX_1_SOURCE 2 | |
3203 | _ACEOF | |
3204 | ||
3205 | ||
3206 | cat >>confdefs.h <<\_ACEOF | |
3207 | #define _MINIX 1 | |
3208 | _ACEOF | |
3209 | ||
3210 | fi | |
3211 | ||
3212 | ||
3213 | ||
3214 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3215 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
3216 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3218 | else | |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
3220 | /* confdefs.h. */ | |
3221 | _ACEOF | |
3222 | cat confdefs.h >>conftest.$ac_ext | |
3223 | cat >>conftest.$ac_ext <<_ACEOF | |
3224 | /* end confdefs.h. */ | |
3225 | ||
3226 | # define __EXTENSIONS__ 1 | |
3227 | $ac_includes_default | |
3228 | int | |
3229 | main () | |
3230 | { | |
3231 | ||
3232 | ; | |
3233 | return 0; | |
3234 | } | |
3235 | _ACEOF | |
3236 | rm -f conftest.$ac_objext | |
3237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3238 | (eval $ac_compile) 2>conftest.er1 | |
3239 | ac_status=$? | |
3240 | grep -v '^ *+' conftest.er1 >conftest.err | |
3241 | rm -f conftest.er1 | |
3242 | cat conftest.err >&5 | |
3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3244 | (exit $ac_status); } && | |
3245 | { ac_try='test -z "$ac_c_werror_flag" | |
3246 | || test ! -s conftest.err' | |
3247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3248 | (eval $ac_try) 2>&5 | |
3249 | ac_status=$? | |
3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3251 | (exit $ac_status); }; } && | |
3252 | { ac_try='test -s conftest.$ac_objext' | |
3253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3254 | (eval $ac_try) 2>&5 | |
3255 | ac_status=$? | |
3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3257 | (exit $ac_status); }; }; then | |
3258 | ac_cv_safe_to_define___extensions__=yes | |
3259 | else | |
3260 | echo "$as_me: failed program was:" >&5 | |
3261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3262 | ||
3263 | ac_cv_safe_to_define___extensions__=no | |
3264 | fi | |
3265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3266 | fi | |
3267 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3268 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
3269 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3270 | cat >>confdefs.h <<\_ACEOF | |
3271 | #define __EXTENSIONS__ 1 | |
3272 | _ACEOF | |
3273 | ||
3274 | cat >>confdefs.h <<\_ACEOF | |
3275 | #define _ALL_SOURCE 1 | |
3276 | _ACEOF | |
3277 | ||
3278 | cat >>confdefs.h <<\_ACEOF | |
3279 | #define _GNU_SOURCE 1 | |
3280 | _ACEOF | |
3281 | ||
3282 | cat >>confdefs.h <<\_ACEOF | |
3283 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
3284 | _ACEOF | |
3285 | ||
3286 | cat >>confdefs.h <<\_ACEOF | |
3287 | #define _TANDEM_SOURCE 1 | |
3288 | _ACEOF | |
3289 | ||
3290 | ||
3291 | ||
3292 | ||
3293 | ||
3294 | ||
3295 | ||
3296 | ||
3297 | ||
3298 | ||
3299 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
3300 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
3301 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3303 | else | |
3304 | am_cv_prog_cc_stdc=no | |
3305 | ac_save_CC="$CC" | |
3306 | # Don't try gcc -ansi; that turns off useful extensions and | |
3307 | # breaks some systems' header files. | |
3308 | # AIX -qlanglvl=ansi | |
3309 | # Ultrix and OSF/1 -std1 | |
3310 | # HP-UX 10.20 and later -Ae | |
3311 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3312 | # SVR4 -Xc -D__EXTENSIONS__ | |
3313 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3314 | do | |
3315 | CC="$ac_save_CC $ac_arg" | |
3316 | cat >conftest.$ac_ext <<_ACEOF | |
3317 | /* confdefs.h. */ | |
3318 | _ACEOF | |
3319 | cat confdefs.h >>conftest.$ac_ext | |
3320 | cat >>conftest.$ac_ext <<_ACEOF | |
3321 | /* end confdefs.h. */ | |
3322 | #include <stdarg.h> | |
3323 | #include <stdio.h> | |
3324 | #include <sys/types.h> | |
3325 | #include <sys/stat.h> | |
3326 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3327 | struct buf { int x; }; | |
3328 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3329 | static char *e (p, i) | |
3330 | char **p; | |
3331 | int i; | |
3332 | { | |
3333 | return p[i]; | |
3334 | } | |
3335 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3336 | { | |
3337 | char *s; | |
3338 | va_list v; | |
3339 | va_start (v,p); | |
3340 | s = g (p, va_arg (v,int)); | |
3341 | va_end (v); | |
3342 | return s; | |
3343 | } | |
3344 | int test (int i, double x); | |
3345 | struct s1 {int (*f) (int a);}; | |
3346 | struct s2 {int (*f) (double a);}; | |
3347 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3348 | int argc; | |
3349 | char **argv; | |
3350 | ||
3351 | int | |
3352 | main () | |
3353 | { | |
3354 | ||
3355 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3356 | ||
3357 | ; | |
3358 | return 0; | |
3359 | } | |
3360 | _ACEOF | |
3361 | rm -f conftest.$ac_objext | |
3362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3363 | (eval $ac_compile) 2>conftest.er1 | |
3364 | ac_status=$? | |
3365 | grep -v '^ *+' conftest.er1 >conftest.err | |
3366 | rm -f conftest.er1 | |
3367 | cat conftest.err >&5 | |
3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3369 | (exit $ac_status); } && | |
3370 | { ac_try='test -z "$ac_c_werror_flag" | |
3371 | || test ! -s conftest.err' | |
3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3373 | (eval $ac_try) 2>&5 | |
3374 | ac_status=$? | |
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3376 | (exit $ac_status); }; } && | |
3377 | { ac_try='test -s conftest.$ac_objext' | |
3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3379 | (eval $ac_try) 2>&5 | |
3380 | ac_status=$? | |
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3382 | (exit $ac_status); }; }; then | |
3383 | am_cv_prog_cc_stdc="$ac_arg"; break | |
3384 | else | |
3385 | echo "$as_me: failed program was:" >&5 | |
3386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3387 | ||
3388 | fi | |
3389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3390 | done | |
3391 | CC="$ac_save_CC" | |
3392 | ||
3393 | fi | |
3394 | ||
3395 | if test -z "$am_cv_prog_cc_stdc"; then | |
3396 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3397 | echo "${ECHO_T}none needed" >&6 | |
3398 | else | |
3399 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 | |
3400 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
3401 | fi | |
3402 | case "x$am_cv_prog_cc_stdc" in | |
3403 | x|xno) ;; | |
3404 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
3405 | esac | |
3406 | ||
3407 | ||
3408 | ac_aux_dir= | |
3409 | for ac_dir in .. $srcdir/..; do | |
3410 | if test -f $ac_dir/install-sh; then | |
3411 | ac_aux_dir=$ac_dir | |
3412 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3413 | break | |
3414 | elif test -f $ac_dir/install.sh; then | |
3415 | ac_aux_dir=$ac_dir | |
3416 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3417 | break | |
3418 | elif test -f $ac_dir/shtool; then | |
3419 | ac_aux_dir=$ac_dir | |
3420 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3421 | break | |
3422 | fi | |
3423 | done | |
3424 | if test -z "$ac_aux_dir"; then | |
3425 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
3426 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
3427 | { (exit 1); exit 1; }; } | |
3428 | fi | |
3429 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
3430 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3431 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
3432 | ||
3433 | # Make sure we can run config.sub. | |
3434 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3435 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3436 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3437 | { (exit 1); exit 1; }; } | |
3438 | ||
3439 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3440 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3441 | if test "${ac_cv_build+set}" = set; then | |
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3443 | else | |
3444 | ac_cv_build_alias=$build_alias | |
3445 | test -z "$ac_cv_build_alias" && | |
3446 | ac_cv_build_alias=`$ac_config_guess` | |
3447 | test -z "$ac_cv_build_alias" && | |
3448 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3449 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3450 | { (exit 1); exit 1; }; } | |
3451 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3452 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3453 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3454 | { (exit 1); exit 1; }; } | |
3455 | ||
3456 | fi | |
3457 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3458 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3459 | build=$ac_cv_build | |
3460 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3461 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3462 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3463 | ||
3464 | ||
3465 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3466 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3467 | if test "${ac_cv_host+set}" = set; then | |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3469 | else | |
3470 | ac_cv_host_alias=$host_alias | |
3471 | test -z "$ac_cv_host_alias" && | |
3472 | ac_cv_host_alias=$ac_cv_build_alias | |
3473 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3474 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3475 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3476 | { (exit 1); exit 1; }; } | |
3477 | ||
3478 | fi | |
3479 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3480 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3481 | host=$ac_cv_host | |
3482 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3483 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3484 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3485 | ||
3486 | ||
3487 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3488 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3489 | if test "${ac_cv_target+set}" = set; then | |
3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3491 | else | |
3492 | ac_cv_target_alias=$target_alias | |
3493 | test "x$ac_cv_target_alias" = "x" && | |
b4e70030 JB |
3494 | ac_cv_target_alias=$ac_cv_host_alias |
3495 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3496 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3497 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
3498 | { (exit 1); exit 1; }; } |
3499 | ||
3500 | fi | |
783e057b DJ |
3501 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
3502 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3503 | target=$ac_cv_target | |
3504 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3505 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3506 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3507 | ||
3508 | ||
3509 | # The aliases save the names the user supplied, while $host etc. | |
3510 | # will get canonicalized. | |
3511 | test -n "$target_alias" && | |
3512 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3513 | NONENONEs,x,x, && | |
3514 | program_prefix=${target_alias}- | |
3515 | ||
3516 | ||
3517 | CONFIG_OBS= | |
3518 | CONFIG_DEPS= | |
3519 | CONFIG_SRCS= | |
3520 | ENABLE_CFLAGS= | |
3521 | ||
3522 | CONFIG_ALL= | |
3523 | CONFIG_CLEAN= | |
3524 | CONFIG_INSTALL= | |
3525 | CONFIG_UNINSTALL= | |
3526 | ||
3527 | # If we haven't got the data from the intl directory, | |
3528 | # assume NLS is disabled. | |
3529 | USE_NLS=no | |
3530 | LIBINTL= | |
3531 | LIBINTL_DEP= | |
3532 | INCINTL= | |
3533 | XGETTEXT= | |
3534 | GMSGFMT= | |
3535 | POSUB= | |
3536 | ||
3537 | if test -f ../intl/config.intl; then | |
3538 | . ../intl/config.intl | |
3539 | fi | |
3540 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
3541 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
3542 | if test x"$USE_NLS" != xyes; then | |
3543 | echo "$as_me:$LINENO: result: no" >&5 | |
3544 | echo "${ECHO_T}no" >&6 | |
3545 | else | |
3546 | echo "$as_me:$LINENO: result: yes" >&5 | |
3547 | echo "${ECHO_T}yes" >&6 | |
3548 | ||
3549 | cat >>confdefs.h <<\_ACEOF | |
3550 | #define ENABLE_NLS 1 | |
3551 | _ACEOF | |
3552 | ||
3553 | ||
3554 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
3555 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
3556 | # Look for .po and .gmo files in the source directory. | |
3557 | CATALOGS= | |
3558 | XLINGUAS= | |
3559 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
3560 | # If there aren't any .gmo files the shell will give us the | |
3561 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
3562 | # weeded out. | |
3563 | case "$cat" in *\**) | |
3564 | continue;; | |
3565 | esac | |
3566 | # The quadruple backslash is collapsed to a double backslash | |
3567 | # by the backticks, then collapsed again by the double quotes, | |
3568 | # leaving us with one backslash in the sed expression (right | |
3569 | # before the dot that mustn't act as a wildcard). | |
3570 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
3571 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
3572 | # The user is allowed to set LINGUAS to a list of languages to | |
3573 | # install catalogs for. If it's empty that means "all of them." | |
3574 | if test "x$LINGUAS" = x; then | |
3575 | CATALOGS="$CATALOGS $cat" | |
3576 | XLINGUAS="$XLINGUAS $lang" | |
3577 | else | |
3578 | case "$LINGUAS" in *$lang*) | |
3579 | CATALOGS="$CATALOGS $cat" | |
3580 | XLINGUAS="$XLINGUAS $lang" | |
3581 | ;; | |
3582 | esac | |
3583 | fi | |
3584 | done | |
3585 | LINGUAS="$XLINGUAS" | |
3586 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3587 | echo "${ECHO_T}$LINGUAS" >&6 | |
3588 | ||
3589 | ||
3590 | DATADIRNAME=share | |
3591 | ||
3592 | INSTOBJEXT=.mo | |
3593 | ||
3594 | GENCAT=gencat | |
3595 | ||
3596 | CATOBJEXT=.gmo | |
3597 | ||
3598 | fi | |
3599 | ||
3600 | localedir='${datadir}/locale' | |
3601 | ||
3602 | ||
3603 | if test x"$USE_NLS" = xyes; then | |
3604 | CONFIG_ALL="$CONFIG_ALL all-po" | |
3605 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3606 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3607 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3608 | fi | |
3609 | ||
3610 | ||
3611 | GNULIB_MEMMEM=0; | |
3612 | GNULIB_MEMPCPY=0; | |
3613 | GNULIB_MEMRCHR=0; | |
3614 | GNULIB_STPCPY=0; | |
3615 | GNULIB_STPNCPY=0; | |
3616 | GNULIB_STRCHRNUL=0; | |
3617 | GNULIB_STRDUP=0; | |
3618 | GNULIB_STRNDUP=0; | |
3619 | GNULIB_STRNLEN=0; | |
3620 | GNULIB_STRPBRK=0; | |
3621 | GNULIB_STRSEP=0; | |
3622 | GNULIB_STRSTR=0; | |
3623 | GNULIB_STRCASESTR=0; | |
3624 | GNULIB_STRTOK_R=0; | |
3625 | GNULIB_MBSLEN=0; | |
3626 | GNULIB_MBSNLEN=0; | |
3627 | GNULIB_MBSCHR=0; | |
3628 | GNULIB_MBSRCHR=0; | |
3629 | GNULIB_MBSSTR=0; | |
3630 | GNULIB_MBSCASECMP=0; | |
3631 | GNULIB_MBSNCASECMP=0; | |
3632 | GNULIB_MBSPCASECMP=0; | |
3633 | GNULIB_MBSCASESTR=0; | |
3634 | GNULIB_MBSCSPN=0; | |
3635 | GNULIB_MBSPBRK=0; | |
3636 | GNULIB_MBSSPN=0; | |
3637 | GNULIB_MBSSEP=0; | |
3638 | GNULIB_MBSTOK_R=0; | |
3639 | GNULIB_STRERROR=0; | |
3640 | GNULIB_STRSIGNAL=0; | |
3641 | HAVE_DECL_MEMMEM=1; | |
3642 | HAVE_MEMPCPY=1; | |
3643 | HAVE_DECL_MEMRCHR=1; | |
3644 | HAVE_STPCPY=1; | |
3645 | HAVE_STPNCPY=1; | |
3646 | HAVE_STRCHRNUL=1; | |
3647 | HAVE_DECL_STRDUP=1; | |
3648 | HAVE_STRNDUP=1; | |
3649 | HAVE_DECL_STRNDUP=1; | |
3650 | HAVE_DECL_STRNLEN=1; | |
3651 | HAVE_STRPBRK=1; | |
3652 | HAVE_STRSEP=1; | |
3653 | HAVE_STRCASESTR=1; | |
3654 | HAVE_DECL_STRTOK_R=1; | |
3655 | HAVE_DECL_STRERROR=1; | |
3656 | HAVE_DECL_STRSIGNAL=1; | |
3657 | REPLACE_STRERROR=0; | |
3658 | REPLACE_STRSIGNAL=0; | |
3659 | REPLACE_MEMMEM=0; | |
3660 | REPLACE_STRCASESTR=0; | |
3661 | REPLACE_STRSTR=0; | |
3662 | ||
3663 | ||
3664 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 | |
3665 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 | |
3666 | if test "${ac_cv_have_decl_memmem+set}" = set; then | |
3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3668 | else | |
3669 | cat >conftest.$ac_ext <<_ACEOF | |
3670 | /* confdefs.h. */ | |
3671 | _ACEOF | |
3672 | cat confdefs.h >>conftest.$ac_ext | |
3673 | cat >>conftest.$ac_ext <<_ACEOF | |
3674 | /* end confdefs.h. */ | |
3675 | $ac_includes_default | |
3676 | int | |
3677 | main () | |
3678 | { | |
3679 | #ifndef memmem | |
3680 | char *p = (char *) memmem; | |
3681 | #endif | |
3682 | ||
3683 | ; | |
3684 | return 0; | |
3685 | } | |
3686 | _ACEOF | |
3687 | rm -f conftest.$ac_objext | |
3688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3689 | (eval $ac_compile) 2>conftest.er1 | |
3690 | ac_status=$? | |
3691 | grep -v '^ *+' conftest.er1 >conftest.err | |
3692 | rm -f conftest.er1 | |
3693 | cat conftest.err >&5 | |
3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3695 | (exit $ac_status); } && | |
3696 | { ac_try='test -z "$ac_c_werror_flag" | |
3697 | || test ! -s conftest.err' | |
3698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3699 | (eval $ac_try) 2>&5 | |
3700 | ac_status=$? | |
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3702 | (exit $ac_status); }; } && | |
3703 | { ac_try='test -s conftest.$ac_objext' | |
3704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3705 | (eval $ac_try) 2>&5 | |
3706 | ac_status=$? | |
3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3708 | (exit $ac_status); }; }; then | |
3709 | ac_cv_have_decl_memmem=yes | |
3710 | else | |
3711 | echo "$as_me: failed program was:" >&5 | |
3712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3713 | ||
3714 | ac_cv_have_decl_memmem=no | |
3715 | fi | |
3716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3717 | fi | |
3718 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 | |
3719 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 | |
3720 | if test $ac_cv_have_decl_memmem = yes; then | |
3721 | ||
3722 | cat >>confdefs.h <<_ACEOF | |
3723 | #define HAVE_DECL_MEMMEM 1 | |
3724 | _ACEOF | |
3725 | ||
3726 | ||
3727 | else | |
3728 | cat >>confdefs.h <<_ACEOF | |
3729 | #define HAVE_DECL_MEMMEM 0 | |
3730 | _ACEOF | |
3731 | ||
3732 | ||
3733 | fi | |
3734 | ||
3735 | ||
3736 | ||
3737 | ||
3738 | ||
3739 | ||
3740 | ||
3741 | ||
3742 | ||
3743 | ||
3744 | ||
3745 | ||
3746 | ||
3747 | ||
3748 | ||
3749 | for ac_func in memmem | |
3750 | do | |
3751 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3752 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3753 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3754 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3756 | else | |
3757 | cat >conftest.$ac_ext <<_ACEOF | |
3758 | /* confdefs.h. */ | |
3759 | _ACEOF | |
3760 | cat confdefs.h >>conftest.$ac_ext | |
3761 | cat >>conftest.$ac_ext <<_ACEOF | |
3762 | /* end confdefs.h. */ | |
3763 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3765 | #define $ac_func innocuous_$ac_func | |
3766 | ||
3767 | /* System header to define __stub macros and hopefully few prototypes, | |
3768 | which can conflict with char $ac_func (); below. | |
3769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3770 | <limits.h> exists even on freestanding compilers. */ | |
3771 | ||
3772 | #ifdef __STDC__ | |
3773 | # include <limits.h> | |
3774 | #else | |
3775 | # include <assert.h> | |
3776 | #endif | |
3777 | ||
3778 | #undef $ac_func | |
3779 | ||
3780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3781 | #ifdef __cplusplus | |
3782 | extern "C" | |
3783 | { | |
3784 | #endif | |
3785 | /* We use char because int might match the return type of a gcc2 | |
3786 | builtin and then its argument prototype would still apply. */ | |
3787 | char $ac_func (); | |
3788 | /* The GNU C library defines this for functions which it implements | |
3789 | to always fail with ENOSYS. Some functions are actually named | |
3790 | something starting with __ and the normal name is an alias. */ | |
3791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3792 | choke me | |
3793 | #else | |
3794 | char (*f) () = $ac_func; | |
3795 | #endif | |
3796 | #ifdef __cplusplus | |
3797 | } | |
3798 | #endif | |
3799 | ||
3800 | int | |
3801 | main () | |
3802 | { | |
3803 | return f != $ac_func; | |
3804 | ; | |
3805 | return 0; | |
3806 | } | |
3807 | _ACEOF | |
3808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3810 | (eval $ac_link) 2>conftest.er1 | |
3811 | ac_status=$? | |
3812 | grep -v '^ *+' conftest.er1 >conftest.err | |
3813 | rm -f conftest.er1 | |
3814 | cat conftest.err >&5 | |
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3816 | (exit $ac_status); } && | |
3817 | { ac_try='test -z "$ac_c_werror_flag" | |
3818 | || test ! -s conftest.err' | |
3819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3820 | (eval $ac_try) 2>&5 | |
3821 | ac_status=$? | |
3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3823 | (exit $ac_status); }; } && | |
3824 | { ac_try='test -s conftest$ac_exeext' | |
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3826 | (eval $ac_try) 2>&5 | |
3827 | ac_status=$? | |
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3829 | (exit $ac_status); }; }; then | |
3830 | eval "$as_ac_var=yes" | |
3831 | else | |
3832 | echo "$as_me: failed program was:" >&5 | |
3833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3834 | ||
3835 | eval "$as_ac_var=no" | |
3836 | fi | |
3837 | rm -f conftest.err conftest.$ac_objext \ | |
3838 | conftest$ac_exeext conftest.$ac_ext | |
3839 | fi | |
3840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3841 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3842 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3843 | cat >>confdefs.h <<_ACEOF | |
3844 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3845 | _ACEOF | |
3846 | ||
3847 | else | |
3848 | ||
3849 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
3850 | ||
3851 | fi | |
3852 | done | |
3853 | ||
3854 | ||
3855 | ||
3856 | : | |
3857 | ||
3858 | ||
3859 | ||
3860 | ||
3861 | ||
3862 | if test $ac_cv_have_decl_memmem = no; then | |
3863 | HAVE_DECL_MEMMEM=0 | |
3864 | fi | |
3865 | : | |
3866 | ||
3867 | ||
3868 | echo "$as_me:$LINENO: checking for long long int" >&5 | |
3869 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | |
3870 | if test "${ac_cv_type_long_long_int+set}" = set; then | |
3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3872 | else | |
3873 | cat >conftest.$ac_ext <<_ACEOF | |
3874 | ||
3875 | /* confdefs.h. */ | |
3876 | _ACEOF | |
3877 | cat confdefs.h >>conftest.$ac_ext | |
3878 | cat >>conftest.$ac_ext <<_ACEOF | |
3879 | /* end confdefs.h. */ | |
3880 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
3881 | implementations with broken preprocessors. Perhaps this can | |
3882 | be revisited in 2012. In the meantime, code should not expect | |
3883 | #if to work with literals wider than 32 bits. */ | |
3884 | /* Test literals. */ | |
3885 | long long int ll = 9223372036854775807ll; | |
3886 | long long int nll = -9223372036854775807LL; | |
3887 | unsigned long long int ull = 18446744073709551615ULL; | |
3888 | /* Test constant expressions. */ | |
3889 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
3890 | ? 1 : -1)]; | |
3891 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
3892 | ? 1 : -1)]; | |
3893 | int i = 63; | |
3894 | int | |
3895 | main () | |
3896 | { | |
3897 | /* Test availability of runtime routines for shift and division. */ | |
3898 | long long int llmax = 9223372036854775807ll; | |
3899 | unsigned long long int ullmax = 18446744073709551615ull; | |
3900 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
3901 | | (llmax / ll) | (llmax % ll) | |
3902 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
3903 | | (ullmax / ull) | (ullmax % ull)); | |
3904 | ; | |
3905 | return 0; | |
3906 | } | |
3907 | ||
3908 | _ACEOF | |
3909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3911 | (eval $ac_link) 2>conftest.er1 | |
3912 | ac_status=$? | |
3913 | grep -v '^ *+' conftest.er1 >conftest.err | |
3914 | rm -f conftest.er1 | |
3915 | cat conftest.err >&5 | |
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3917 | (exit $ac_status); } && | |
3918 | { ac_try='test -z "$ac_c_werror_flag" | |
3919 | || test ! -s conftest.err' | |
3920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3921 | (eval $ac_try) 2>&5 | |
3922 | ac_status=$? | |
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3924 | (exit $ac_status); }; } && | |
3925 | { ac_try='test -s conftest$ac_exeext' | |
3926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3927 | (eval $ac_try) 2>&5 | |
3928 | ac_status=$? | |
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3930 | (exit $ac_status); }; }; then | |
3931 | if test "$cross_compiling" = yes; then | |
3932 | ac_cv_type_long_long_int=yes | |
3933 | else | |
3934 | cat >conftest.$ac_ext <<_ACEOF | |
3935 | /* confdefs.h. */ | |
3936 | _ACEOF | |
3937 | cat confdefs.h >>conftest.$ac_ext | |
3938 | cat >>conftest.$ac_ext <<_ACEOF | |
3939 | /* end confdefs.h. */ | |
3940 | #include <limits.h> | |
3941 | #ifndef LLONG_MAX | |
3942 | # define HALF \ | |
3943 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
3944 | # define LLONG_MAX (HALF - 1 + HALF) | |
3945 | #endif | |
3946 | int | |
3947 | main () | |
3948 | { | |
3949 | long long int n = 1; | |
3950 | int i; | |
3951 | for (i = 0; ; i++) | |
3952 | { | |
3953 | long long int m = n << i; | |
3954 | if (m >> i != n) | |
3955 | return 1; | |
3956 | if (LLONG_MAX / 2 < m) | |
3957 | break; | |
3958 | } | |
3959 | return 0; | |
3960 | ; | |
3961 | return 0; | |
3962 | } | |
3963 | _ACEOF | |
3964 | rm -f conftest$ac_exeext | |
3965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3966 | (eval $ac_link) 2>&5 | |
3967 | ac_status=$? | |
3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3971 | (eval $ac_try) 2>&5 | |
3972 | ac_status=$? | |
3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3974 | (exit $ac_status); }; }; then | |
3975 | ac_cv_type_long_long_int=yes | |
3976 | else | |
3977 | echo "$as_me: program exited with status $ac_status" >&5 | |
3978 | echo "$as_me: failed program was:" >&5 | |
3979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3980 | ||
3981 | ( exit $ac_status ) | |
3982 | ac_cv_type_long_long_int=no | |
3983 | fi | |
3984 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3985 | fi | |
3986 | else | |
3987 | echo "$as_me: failed program was:" >&5 | |
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3989 | ||
3990 | ac_cv_type_long_long_int=no | |
3991 | fi | |
3992 | rm -f conftest.err conftest.$ac_objext \ | |
3993 | conftest$ac_exeext conftest.$ac_ext | |
3994 | fi | |
3995 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | |
3996 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | |
3997 | if test $ac_cv_type_long_long_int = yes; then | |
3998 | ||
3999 | cat >>confdefs.h <<\_ACEOF | |
4000 | #define HAVE_LONG_LONG_INT 1 | |
4001 | _ACEOF | |
4002 | ||
4003 | fi | |
4004 | ||
4005 | ||
4006 | echo "$as_me:$LINENO: checking for unsigned long long int" >&5 | |
4007 | echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6 | |
4008 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then | |
4009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4010 | else | |
4011 | cat >conftest.$ac_ext <<_ACEOF | |
4012 | ||
4013 | /* confdefs.h. */ | |
4014 | _ACEOF | |
4015 | cat confdefs.h >>conftest.$ac_ext | |
4016 | cat >>conftest.$ac_ext <<_ACEOF | |
4017 | /* end confdefs.h. */ | |
4018 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
4019 | implementations with broken preprocessors. Perhaps this can | |
4020 | be revisited in 2012. In the meantime, code should not expect | |
4021 | #if to work with literals wider than 32 bits. */ | |
4022 | /* Test literals. */ | |
4023 | long long int ll = 9223372036854775807ll; | |
4024 | long long int nll = -9223372036854775807LL; | |
4025 | unsigned long long int ull = 18446744073709551615ULL; | |
4026 | /* Test constant expressions. */ | |
4027 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
4028 | ? 1 : -1)]; | |
4029 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
4030 | ? 1 : -1)]; | |
4031 | int i = 63; | |
4032 | int | |
4033 | main () | |
4034 | { | |
4035 | /* Test availability of runtime routines for shift and division. */ | |
4036 | long long int llmax = 9223372036854775807ll; | |
4037 | unsigned long long int ullmax = 18446744073709551615ull; | |
4038 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
4039 | | (llmax / ll) | (llmax % ll) | |
4040 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
4041 | | (ullmax / ull) | (ullmax % ull)); | |
4042 | ; | |
4043 | return 0; | |
4044 | } | |
4045 | ||
4046 | _ACEOF | |
4047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4049 | (eval $ac_link) 2>conftest.er1 | |
4050 | ac_status=$? | |
4051 | grep -v '^ *+' conftest.er1 >conftest.err | |
4052 | rm -f conftest.er1 | |
4053 | cat conftest.err >&5 | |
4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4055 | (exit $ac_status); } && | |
4056 | { ac_try='test -z "$ac_c_werror_flag" | |
4057 | || test ! -s conftest.err' | |
4058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4059 | (eval $ac_try) 2>&5 | |
4060 | ac_status=$? | |
4061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4062 | (exit $ac_status); }; } && | |
4063 | { ac_try='test -s conftest$ac_exeext' | |
4064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4065 | (eval $ac_try) 2>&5 | |
4066 | ac_status=$? | |
4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4068 | (exit $ac_status); }; }; then | |
4069 | ac_cv_type_unsigned_long_long_int=yes | |
4070 | else | |
4071 | echo "$as_me: failed program was:" >&5 | |
4072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4073 | ||
4074 | ac_cv_type_unsigned_long_long_int=no | |
4075 | fi | |
4076 | rm -f conftest.err conftest.$ac_objext \ | |
4077 | conftest$ac_exeext conftest.$ac_ext | |
4078 | fi | |
4079 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
4080 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6 | |
4081 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
4082 | ||
4083 | cat >>confdefs.h <<\_ACEOF | |
4084 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | |
4085 | _ACEOF | |
4086 | ||
4087 | fi | |
4088 | ||
4089 | ||
4090 | ||
4091 | echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 | |
4092 | echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6 | |
4093 | if test "${gl_cv_have_include_next+set}" = set; then | |
4094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4095 | else | |
4096 | rm -rf conftestd1 conftestd2 | |
4097 | mkdir conftestd1 conftestd2 | |
4098 | cat <<EOF > conftestd1/conftest.h | |
4099 | #define DEFINED_IN_CONFTESTD1 | |
4100 | #include_next <conftest.h> | |
4101 | #ifdef DEFINED_IN_CONFTESTD2 | |
4102 | int foo; | |
4103 | #else | |
4104 | #error "include_next doesn't work" | |
4105 | #endif | |
4106 | EOF | |
4107 | cat <<EOF > conftestd2/conftest.h | |
4108 | #ifndef DEFINED_IN_CONFTESTD1 | |
4109 | #error "include_next test doesn't work" | |
4110 | #endif | |
4111 | #define DEFINED_IN_CONFTESTD2 | |
4112 | EOF | |
4113 | save_CPPFLAGS="$CPPFLAGS" | |
4114 | CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" | |
4115 | cat >conftest.$ac_ext <<_ACEOF | |
4116 | #include <conftest.h> | |
4117 | _ACEOF | |
4118 | rm -f conftest.$ac_objext | |
4119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4120 | (eval $ac_compile) 2>conftest.er1 | |
4121 | ac_status=$? | |
4122 | grep -v '^ *+' conftest.er1 >conftest.err | |
4123 | rm -f conftest.er1 | |
4124 | cat conftest.err >&5 | |
4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4126 | (exit $ac_status); } && | |
4127 | { ac_try='test -z "$ac_c_werror_flag" | |
4128 | || test ! -s conftest.err' | |
4129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4130 | (eval $ac_try) 2>&5 | |
4131 | ac_status=$? | |
4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4133 | (exit $ac_status); }; } && | |
4134 | { ac_try='test -s conftest.$ac_objext' | |
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4136 | (eval $ac_try) 2>&5 | |
4137 | ac_status=$? | |
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4139 | (exit $ac_status); }; }; then | |
4140 | gl_cv_have_include_next=yes | |
4141 | else | |
4142 | echo "$as_me: failed program was:" >&5 | |
4143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4144 | ||
4145 | gl_cv_have_include_next=no | |
4146 | fi | |
4147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4148 | CPPFLAGS="$save_CPPFLAGS" | |
4149 | rm -rf conftestd1 conftestd2 | |
4150 | ||
4151 | fi | |
4152 | echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 | |
4153 | echo "${ECHO_T}$gl_cv_have_include_next" >&6 | |
4154 | if test $gl_cv_have_include_next = yes; then | |
4155 | ||
4156 | ||
4157 | cat >>confdefs.h <<\_ACEOF | |
4158 | #define HAVE_INCLUDE_NEXT 1 | |
4159 | _ACEOF | |
4160 | ||
4161 | ||
4162 | INCLUDE_NEXT=include_next | |
4163 | else | |
4164 | INCLUDE_NEXT=include | |
4165 | fi | |
4166 | ||
4167 | ||
4168 | ||
4169 | ||
4170 | ||
4171 | ||
4172 | ||
4173 | for ac_header in $gl_header_list | |
4174 | do | |
4175 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4181 | fi | |
4182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4184 | else | |
4185 | # Is the header compilable? | |
4186 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4187 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4188 | cat >conftest.$ac_ext <<_ACEOF | |
4189 | /* confdefs.h. */ | |
4190 | _ACEOF | |
4191 | cat confdefs.h >>conftest.$ac_ext | |
4192 | cat >>conftest.$ac_ext <<_ACEOF | |
4193 | /* end confdefs.h. */ | |
4194 | $ac_includes_default | |
4195 | #include <$ac_header> | |
4196 | _ACEOF | |
4197 | rm -f conftest.$ac_objext | |
4198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4199 | (eval $ac_compile) 2>conftest.er1 | |
4200 | ac_status=$? | |
4201 | grep -v '^ *+' conftest.er1 >conftest.err | |
4202 | rm -f conftest.er1 | |
4203 | cat conftest.err >&5 | |
4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4205 | (exit $ac_status); } && | |
4206 | { ac_try='test -z "$ac_c_werror_flag" | |
4207 | || test ! -s conftest.err' | |
4208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4209 | (eval $ac_try) 2>&5 | |
4210 | ac_status=$? | |
4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4212 | (exit $ac_status); }; } && | |
4213 | { ac_try='test -s conftest.$ac_objext' | |
4214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4215 | (eval $ac_try) 2>&5 | |
4216 | ac_status=$? | |
4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4218 | (exit $ac_status); }; }; then | |
4219 | ac_header_compiler=yes | |
4220 | else | |
4221 | echo "$as_me: failed program was:" >&5 | |
4222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4223 | ||
4224 | ac_header_compiler=no | |
4225 | fi | |
4226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4227 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4228 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4229 | ||
4230 | # Is the header present? | |
4231 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4232 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4233 | cat >conftest.$ac_ext <<_ACEOF | |
4234 | /* confdefs.h. */ | |
4235 | _ACEOF | |
4236 | cat confdefs.h >>conftest.$ac_ext | |
4237 | cat >>conftest.$ac_ext <<_ACEOF | |
4238 | /* end confdefs.h. */ | |
4239 | #include <$ac_header> | |
4240 | _ACEOF | |
4241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4243 | ac_status=$? | |
4244 | grep -v '^ *+' conftest.er1 >conftest.err | |
4245 | rm -f conftest.er1 | |
4246 | cat conftest.err >&5 | |
4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4248 | (exit $ac_status); } >/dev/null; then | |
4249 | if test -s conftest.err; then | |
4250 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4252 | else | |
4253 | ac_cpp_err= | |
4254 | fi | |
4255 | else | |
4256 | ac_cpp_err=yes | |
4257 | fi | |
4258 | if test -z "$ac_cpp_err"; then | |
4259 | ac_header_preproc=yes | |
4260 | else | |
4261 | echo "$as_me: failed program was:" >&5 | |
4262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4263 | ||
4264 | ac_header_preproc=no | |
4265 | fi | |
4266 | rm -f conftest.err conftest.$ac_ext | |
4267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4268 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4269 | ||
4270 | # So? What about this header? | |
4271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4272 | yes:no: ) | |
4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4277 | ac_header_preproc=yes | |
4278 | ;; | |
4279 | no:yes:* ) | |
4280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4292 | ( | |
4293 | cat <<\_ASBOX | |
4294 | ## ------------------------------------------ ## | |
4295 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4296 | ## ------------------------------------------ ## | |
4297 | _ASBOX | |
4298 | ) | | |
4299 | sed "s/^/$as_me: WARNING: /" >&2 | |
4300 | ;; | |
4301 | esac | |
4302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4306 | else | |
4307 | eval "$as_ac_Header=\$ac_header_preproc" | |
4308 | fi | |
4309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4311 | ||
4312 | fi | |
4313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4314 | cat >>confdefs.h <<_ACEOF | |
4315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4316 | _ACEOF | |
4317 | ||
4318 | fi | |
4319 | ||
4320 | done | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 | |
4334 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 | |
4335 | if test "${ac_cv_c_restrict+set}" = set; then | |
4336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4337 | else | |
4338 | ac_cv_c_restrict=no | |
4339 | # The order here caters to the fact that C++ does not require restrict. | |
4340 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
4341 | cat >conftest.$ac_ext <<_ACEOF | |
4342 | /* confdefs.h. */ | |
4343 | _ACEOF | |
4344 | cat confdefs.h >>conftest.$ac_ext | |
4345 | cat >>conftest.$ac_ext <<_ACEOF | |
4346 | /* end confdefs.h. */ | |
4347 | typedef int * int_ptr; | |
4348 | int foo (int_ptr $ac_kw ip) { | |
4349 | return ip[0]; | |
4350 | } | |
4351 | int | |
4352 | main () | |
4353 | { | |
4354 | int s[1]; | |
4355 | int * $ac_kw t = s; | |
4356 | t[0] = 0; | |
4357 | return foo(t) | |
4358 | ; | |
4359 | return 0; | |
4360 | } | |
4361 | _ACEOF | |
4362 | rm -f conftest.$ac_objext | |
4363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4364 | (eval $ac_compile) 2>conftest.er1 | |
4365 | ac_status=$? | |
4366 | grep -v '^ *+' conftest.er1 >conftest.err | |
4367 | rm -f conftest.er1 | |
4368 | cat conftest.err >&5 | |
4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4370 | (exit $ac_status); } && | |
4371 | { ac_try='test -z "$ac_c_werror_flag" | |
4372 | || test ! -s conftest.err' | |
4373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4374 | (eval $ac_try) 2>&5 | |
4375 | ac_status=$? | |
4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4377 | (exit $ac_status); }; } && | |
4378 | { ac_try='test -s conftest.$ac_objext' | |
4379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4380 | (eval $ac_try) 2>&5 | |
4381 | ac_status=$? | |
4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4383 | (exit $ac_status); }; }; then | |
4384 | ac_cv_c_restrict=$ac_kw | |
4385 | else | |
4386 | echo "$as_me: failed program was:" >&5 | |
4387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4388 | ||
4389 | fi | |
4390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4391 | test "$ac_cv_c_restrict" != no && break | |
4392 | done | |
4393 | ||
4394 | fi | |
4395 | echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
4396 | echo "${ECHO_T}$ac_cv_c_restrict" >&6 | |
4397 | ||
4398 | ||
4399 | case $ac_cv_c_restrict in | |
4400 | restrict) ;; | |
4401 | no) cat >>confdefs.h <<\_ACEOF | |
4402 | #define restrict | |
4403 | _ACEOF | |
4404 | ;; | |
4405 | *) cat >>confdefs.h <<_ACEOF | |
4406 | #define restrict $ac_cv_c_restrict | |
4407 | _ACEOF | |
4408 | ;; | |
4409 | esac | |
4410 | ||
4411 | ||
4412 | ||
4413 | ||
4414 | ||
4415 | ||
4416 | ||
4417 | ||
4418 | ||
4419 | ||
4420 | ||
4421 | ||
4422 | ||
4423 | : | |
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | if test $gl_cv_have_include_next = yes; then | |
4432 | gl_cv_next_string_h='<'string.h'>' | |
4433 | else | |
4434 | echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 | |
4435 | echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6 | |
4436 | if test "${gl_cv_next_string_h+set}" = set; then | |
4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4438 | else | |
4439 | ||
4440 | if test $ac_cv_header_string_h = yes; then | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | #include <string.h> | |
4448 | ||
4449 | _ACEOF | |
4450 | gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4451 | sed -n '\#/string.h#{ | |
4452 | s#.*"\(.*/string.h\)".*#\1# | |
4453 | s#^/[^/]#//&# | |
4454 | p | |
4455 | q | |
4456 | }'`'"' | |
4457 | else | |
4458 | gl_cv_next_string_h='<'string.h'>' | |
4459 | fi | |
4460 | ||
4461 | fi | |
4462 | echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 | |
4463 | echo "${ECHO_T}$gl_cv_next_string_h" >&6 | |
4464 | fi | |
4465 | NEXT_STRING_H=$gl_cv_next_string_h | |
4466 | ||
4467 | ||
4468 | ||
4469 | ||
4470 | ||
4471 | GNULIB_WCWIDTH=0; | |
4472 | HAVE_DECL_WCWIDTH=1; | |
4473 | REPLACE_WCWIDTH=0; | |
4474 | WCHAR_H= | |
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | if false; then | |
4481 | GL_COND_LIBTOOL_TRUE= | |
4482 | GL_COND_LIBTOOL_FALSE='#' | |
4483 | else | |
4484 | GL_COND_LIBTOOL_TRUE='#' | |
4485 | GL_COND_LIBTOOL_FALSE= | |
4486 | fi | |
4487 | ||
4488 | gl_cond_libtool=false | |
4489 | gl_libdeps= | |
4490 | gl_ltlibdeps= | |
4491 | ||
4492 | ||
4493 | ||
4494 | gl_source_base='gnulib' | |
4495 | ||
4496 | ||
4497 | ||
4498 | ||
4499 | ||
4500 | ||
4501 | ||
4502 | ||
4503 | ||
4504 | for ac_func in memchr | |
4505 | do | |
4506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4509 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4511 | else | |
4512 | cat >conftest.$ac_ext <<_ACEOF | |
4513 | /* confdefs.h. */ | |
4514 | _ACEOF | |
4515 | cat confdefs.h >>conftest.$ac_ext | |
4516 | cat >>conftest.$ac_ext <<_ACEOF | |
4517 | /* end confdefs.h. */ | |
4518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4520 | #define $ac_func innocuous_$ac_func | |
4521 | ||
4522 | /* System header to define __stub macros and hopefully few prototypes, | |
4523 | which can conflict with char $ac_func (); below. | |
4524 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4525 | <limits.h> exists even on freestanding compilers. */ | |
4526 | ||
4527 | #ifdef __STDC__ | |
4528 | # include <limits.h> | |
4529 | #else | |
4530 | # include <assert.h> | |
4531 | #endif | |
4532 | ||
4533 | #undef $ac_func | |
4534 | ||
4535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4536 | #ifdef __cplusplus | |
4537 | extern "C" | |
4538 | { | |
4539 | #endif | |
4540 | /* We use char because int might match the return type of a gcc2 | |
4541 | builtin and then its argument prototype would still apply. */ | |
4542 | char $ac_func (); | |
4543 | /* The GNU C library defines this for functions which it implements | |
4544 | to always fail with ENOSYS. Some functions are actually named | |
4545 | something starting with __ and the normal name is an alias. */ | |
4546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4547 | choke me | |
4548 | #else | |
4549 | char (*f) () = $ac_func; | |
4550 | #endif | |
4551 | #ifdef __cplusplus | |
4552 | } | |
4553 | #endif | |
4554 | ||
4555 | int | |
4556 | main () | |
4557 | { | |
4558 | return f != $ac_func; | |
4559 | ; | |
4560 | return 0; | |
4561 | } | |
4562 | _ACEOF | |
4563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4565 | (eval $ac_link) 2>conftest.er1 | |
4566 | ac_status=$? | |
4567 | grep -v '^ *+' conftest.er1 >conftest.err | |
4568 | rm -f conftest.er1 | |
4569 | cat conftest.err >&5 | |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4571 | (exit $ac_status); } && | |
4572 | { ac_try='test -z "$ac_c_werror_flag" | |
4573 | || test ! -s conftest.err' | |
4574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4575 | (eval $ac_try) 2>&5 | |
4576 | ac_status=$? | |
4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4578 | (exit $ac_status); }; } && | |
4579 | { ac_try='test -s conftest$ac_exeext' | |
4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4581 | (eval $ac_try) 2>&5 | |
4582 | ac_status=$? | |
4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4584 | (exit $ac_status); }; }; then | |
4585 | eval "$as_ac_var=yes" | |
4586 | else | |
4587 | echo "$as_me: failed program was:" >&5 | |
4588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4589 | ||
4590 | eval "$as_ac_var=no" | |
4591 | fi | |
4592 | rm -f conftest.err conftest.$ac_objext \ | |
4593 | conftest$ac_exeext conftest.$ac_ext | |
4594 | fi | |
4595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4596 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4597 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4598 | cat >>confdefs.h <<_ACEOF | |
4599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4600 | _ACEOF | |
4601 | ||
4602 | else | |
4603 | ||
4604 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
4605 | ||
4606 | fi | |
4607 | done | |
4608 | ||
4609 | ||
4610 | if test $ac_cv_func_memchr = no; then | |
4611 | ||
4612 | ||
4613 | for ac_header in bp-sym.h | |
4614 | do | |
4615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4621 | fi | |
4622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4624 | else | |
4625 | # Is the header compilable? | |
4626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4628 | cat >conftest.$ac_ext <<_ACEOF | |
4629 | /* confdefs.h. */ | |
4630 | _ACEOF | |
4631 | cat confdefs.h >>conftest.$ac_ext | |
4632 | cat >>conftest.$ac_ext <<_ACEOF | |
4633 | /* end confdefs.h. */ | |
4634 | $ac_includes_default | |
4635 | #include <$ac_header> | |
4636 | _ACEOF | |
4637 | rm -f conftest.$ac_objext | |
4638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4639 | (eval $ac_compile) 2>conftest.er1 | |
4640 | ac_status=$? | |
4641 | grep -v '^ *+' conftest.er1 >conftest.err | |
4642 | rm -f conftest.er1 | |
4643 | cat conftest.err >&5 | |
4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4645 | (exit $ac_status); } && | |
4646 | { ac_try='test -z "$ac_c_werror_flag" | |
4647 | || test ! -s conftest.err' | |
4648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4649 | (eval $ac_try) 2>&5 | |
4650 | ac_status=$? | |
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4652 | (exit $ac_status); }; } && | |
4653 | { ac_try='test -s conftest.$ac_objext' | |
4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4655 | (eval $ac_try) 2>&5 | |
4656 | ac_status=$? | |
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4658 | (exit $ac_status); }; }; then | |
4659 | ac_header_compiler=yes | |
4660 | else | |
4661 | echo "$as_me: failed program was:" >&5 | |
4662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4663 | ||
4664 | ac_header_compiler=no | |
4665 | fi | |
4666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4668 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4669 | ||
4670 | # Is the header present? | |
4671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4673 | cat >conftest.$ac_ext <<_ACEOF | |
4674 | /* confdefs.h. */ | |
4675 | _ACEOF | |
4676 | cat confdefs.h >>conftest.$ac_ext | |
4677 | cat >>conftest.$ac_ext <<_ACEOF | |
4678 | /* end confdefs.h. */ | |
4679 | #include <$ac_header> | |
4680 | _ACEOF | |
4681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4683 | ac_status=$? | |
4684 | grep -v '^ *+' conftest.er1 >conftest.err | |
4685 | rm -f conftest.er1 | |
4686 | cat conftest.err >&5 | |
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4688 | (exit $ac_status); } >/dev/null; then | |
4689 | if test -s conftest.err; then | |
4690 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4692 | else | |
4693 | ac_cpp_err= | |
4694 | fi | |
4695 | else | |
4696 | ac_cpp_err=yes | |
4697 | fi | |
4698 | if test -z "$ac_cpp_err"; then | |
4699 | ac_header_preproc=yes | |
4700 | else | |
4701 | echo "$as_me: failed program was:" >&5 | |
4702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4703 | ||
4704 | ac_header_preproc=no | |
4705 | fi | |
4706 | rm -f conftest.err conftest.$ac_ext | |
4707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4708 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4709 | ||
4710 | # So? What about this header? | |
4711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4712 | yes:no: ) | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4717 | ac_header_preproc=yes | |
4718 | ;; | |
4719 | no:yes:* ) | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4732 | ( | |
4733 | cat <<\_ASBOX | |
4734 | ## ------------------------------------------ ## | |
4735 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4736 | ## ------------------------------------------ ## | |
4737 | _ASBOX | |
4738 | ) | | |
4739 | sed "s/^/$as_me: WARNING: /" >&2 | |
4740 | ;; | |
4741 | esac | |
4742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4746 | else | |
4747 | eval "$as_ac_Header=\$ac_header_preproc" | |
4748 | fi | |
4749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4751 | ||
4752 | fi | |
4753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4754 | cat >>confdefs.h <<_ACEOF | |
4755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4756 | _ACEOF | |
4757 | ||
4758 | fi | |
4759 | ||
4760 | done | |
4761 | ||
4762 | ||
4763 | fi | |
4764 | ||
4765 | ||
4766 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
4767 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
4768 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
4769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4770 | else | |
4771 | if test "$cross_compiling" = yes; then | |
4772 | ac_cv_func_memcmp_working=no | |
4773 | else | |
4774 | cat >conftest.$ac_ext <<_ACEOF | |
4775 | /* confdefs.h. */ | |
4776 | _ACEOF | |
4777 | cat confdefs.h >>conftest.$ac_ext | |
4778 | cat >>conftest.$ac_ext <<_ACEOF | |
4779 | /* end confdefs.h. */ | |
4780 | $ac_includes_default | |
4781 | int | |
4782 | main () | |
4783 | { | |
4784 | ||
4785 | /* Some versions of memcmp are not 8-bit clean. */ | |
4786 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
4787 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
4788 | exit (1); | |
4789 | ||
4790 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
4791 | or more and with at least one buffer not starting on a 4-byte boundary. | |
4792 | William Lewis provided this test program. */ | |
4793 | { | |
4794 | char foo[21]; | |
4795 | char bar[21]; | |
4796 | int i; | |
4797 | for (i = 0; i < 4; i++) | |
4798 | { | |
4799 | char *a = foo + i; | |
4800 | char *b = bar + i; | |
4801 | strcpy (a, "--------01111111"); | |
4802 | strcpy (b, "--------10000000"); | |
4803 | if (memcmp (a, b, 16) >= 0) | |
4804 | exit (1); | |
4805 | } | |
4806 | exit (0); | |
4807 | } | |
4808 | ||
4809 | ; | |
4810 | return 0; | |
4811 | } | |
4812 | _ACEOF | |
4813 | rm -f conftest$ac_exeext | |
4814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4815 | (eval $ac_link) 2>&5 | |
4816 | ac_status=$? | |
4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4820 | (eval $ac_try) 2>&5 | |
4821 | ac_status=$? | |
4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4823 | (exit $ac_status); }; }; then | |
4824 | ac_cv_func_memcmp_working=yes | |
4825 | else | |
4826 | echo "$as_me: program exited with status $ac_status" >&5 | |
4827 | echo "$as_me: failed program was:" >&5 | |
4828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4829 | ||
4830 | ( exit $ac_status ) | |
4831 | ac_cv_func_memcmp_working=no | |
4832 | fi | |
4833 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4834 | fi | |
4835 | fi | |
4836 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
4837 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
4838 | test $ac_cv_func_memcmp_working = no && | |
4839 | ||
4840 | ||
4841 | ||
4842 | ||
4843 | ||
4844 | ||
4845 | gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext" | |
4846 | ||
4847 | ||
4848 | if test $ac_cv_func_memcmp_working = no; then | |
4849 | ||
4850 | cat >>confdefs.h <<\_ACEOF | |
4851 | #define memcmp rpl_memcmp | |
4852 | _ACEOF | |
4853 | ||
4854 | : | |
4855 | fi | |
4856 | ||
4857 | ||
4858 | ||
4859 | if test $ac_cv_have_decl_memmem = yes; then | |
4860 | echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5 | |
4861 | echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6 | |
4862 | if test "${gl_cv_func_memmem_works+set}" = set; then | |
4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4864 | else | |
4865 | if test "$cross_compiling" = yes; then | |
4866 | gl_cv_func_memmem_works="guessing no" | |
4867 | else | |
4868 | cat >conftest.$ac_ext <<_ACEOF | |
4869 | /* confdefs.h. */ | |
4870 | _ACEOF | |
4871 | cat confdefs.h >>conftest.$ac_ext | |
4872 | cat >>conftest.$ac_ext <<_ACEOF | |
4873 | /* end confdefs.h. */ | |
4874 | ||
4875 | #include <string.h> /* for memmem */ | |
4876 | #include <stdlib.h> /* for malloc */ | |
4877 | #include <unistd.h> /* for alarm */ | |
4878 | ||
4879 | int | |
4880 | main () | |
4881 | { | |
4882 | size_t m = 1000000; | |
4883 | char *haystack = (char *) malloc (2 * m + 1); | |
4884 | char *needle = (char *) malloc (m + 1); | |
4885 | void *result = 0; | |
4886 | /* Failure to compile this test due to missing alarm is okay, | |
4887 | since all such platforms (mingw) also lack memmem. */ | |
4888 | alarm (5); | |
4889 | /* Check for quadratic performance. */ | |
4890 | if (haystack && needle) | |
4891 | { | |
4892 | memset (haystack, 'A', 2 * m); | |
4893 | haystack[2 * m] = 'B'; | |
4894 | memset (needle, 'A', m); | |
4895 | needle[m] = 'B'; | |
4896 | result = memmem (haystack, 2 * m + 1, needle, m + 1); | |
4897 | } | |
4898 | /* Check for empty needle behavior. */ | |
4899 | return !result || !memmem ("a", 1, 0, 0); | |
4900 | ; | |
4901 | return 0; | |
4902 | } | |
4903 | _ACEOF | |
4904 | rm -f conftest$ac_exeext | |
4905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4906 | (eval $ac_link) 2>&5 | |
4907 | ac_status=$? | |
4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4911 | (eval $ac_try) 2>&5 | |
4912 | ac_status=$? | |
4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4914 | (exit $ac_status); }; }; then | |
4915 | gl_cv_func_memmem_works=yes | |
4916 | else | |
4917 | echo "$as_me: program exited with status $ac_status" >&5 | |
4918 | echo "$as_me: failed program was:" >&5 | |
4919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4920 | ||
4921 | ( exit $ac_status ) | |
4922 | gl_cv_func_memmem_works=no | |
4923 | fi | |
4924 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4925 | fi | |
4926 | fi | |
4927 | echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5 | |
4928 | echo "${ECHO_T}$gl_cv_func_memmem_works" >&6 | |
4929 | if test "$gl_cv_func_memmem_works" != yes; then | |
4930 | REPLACE_MEMMEM=1 | |
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" | |
4939 | ||
4940 | fi | |
4941 | fi | |
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | for ac_func in memmem | |
4956 | do | |
4957 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4958 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4959 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4960 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4962 | else | |
4963 | cat >conftest.$ac_ext <<_ACEOF | |
4964 | /* confdefs.h. */ | |
4965 | _ACEOF | |
4966 | cat confdefs.h >>conftest.$ac_ext | |
4967 | cat >>conftest.$ac_ext <<_ACEOF | |
4968 | /* end confdefs.h. */ | |
4969 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4971 | #define $ac_func innocuous_$ac_func | |
4972 | ||
4973 | /* System header to define __stub macros and hopefully few prototypes, | |
4974 | which can conflict with char $ac_func (); below. | |
4975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4976 | <limits.h> exists even on freestanding compilers. */ | |
4977 | ||
4978 | #ifdef __STDC__ | |
4979 | # include <limits.h> | |
4980 | #else | |
4981 | # include <assert.h> | |
4982 | #endif | |
4983 | ||
4984 | #undef $ac_func | |
4985 | ||
4986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4987 | #ifdef __cplusplus | |
4988 | extern "C" | |
4989 | { | |
4990 | #endif | |
4991 | /* We use char because int might match the return type of a gcc2 | |
4992 | builtin and then its argument prototype would still apply. */ | |
4993 | char $ac_func (); | |
4994 | /* The GNU C library defines this for functions which it implements | |
4995 | to always fail with ENOSYS. Some functions are actually named | |
4996 | something starting with __ and the normal name is an alias. */ | |
4997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4998 | choke me | |
4999 | #else | |
5000 | char (*f) () = $ac_func; | |
5001 | #endif | |
5002 | #ifdef __cplusplus | |
5003 | } | |
5004 | #endif | |
5005 | ||
5006 | int | |
5007 | main () | |
5008 | { | |
5009 | return f != $ac_func; | |
5010 | ; | |
5011 | return 0; | |
5012 | } | |
5013 | _ACEOF | |
5014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5016 | (eval $ac_link) 2>conftest.er1 | |
5017 | ac_status=$? | |
5018 | grep -v '^ *+' conftest.er1 >conftest.err | |
5019 | rm -f conftest.er1 | |
5020 | cat conftest.err >&5 | |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); } && | |
5023 | { ac_try='test -z "$ac_c_werror_flag" | |
5024 | || test ! -s conftest.err' | |
5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5026 | (eval $ac_try) 2>&5 | |
5027 | ac_status=$? | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); }; } && | |
5030 | { ac_try='test -s conftest$ac_exeext' | |
5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5032 | (eval $ac_try) 2>&5 | |
5033 | ac_status=$? | |
5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5035 | (exit $ac_status); }; }; then | |
5036 | eval "$as_ac_var=yes" | |
5037 | else | |
5038 | echo "$as_me: failed program was:" >&5 | |
5039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5040 | ||
5041 | eval "$as_ac_var=no" | |
5042 | fi | |
5043 | rm -f conftest.err conftest.$ac_objext \ | |
5044 | conftest$ac_exeext conftest.$ac_ext | |
5045 | fi | |
5046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5047 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5048 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5049 | cat >>confdefs.h <<_ACEOF | |
5050 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5051 | _ACEOF | |
5052 | ||
5053 | else | |
5054 | ||
5055 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
5056 | ||
5057 | fi | |
5058 | done | |
5059 | ||
5060 | ||
5061 | ||
5062 | : | |
5063 | ||
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | if test $ac_cv_have_decl_memmem = no; then | |
5069 | HAVE_DECL_MEMMEM=0 | |
5070 | fi | |
5071 | : | |
5072 | ||
5073 | ||
5074 | ||
5075 | GNULIB_MEMMEM=1 | |
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | if test $ac_cv_type_long_long_int = yes; then | |
5081 | HAVE_LONG_LONG_INT=1 | |
5082 | else | |
5083 | HAVE_LONG_LONG_INT=0 | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
5088 | HAVE_UNSIGNED_LONG_LONG_INT=1 | |
5089 | else | |
5090 | HAVE_UNSIGNED_LONG_LONG_INT=0 | |
5091 | fi | |
5092 | ||
5093 | ||
5094 | if test $ac_cv_header_inttypes_h = yes; then | |
5095 | HAVE_INTTYPES_H=1 | |
5096 | else | |
5097 | HAVE_INTTYPES_H=0 | |
5098 | fi | |
5099 | ||
5100 | ||
5101 | if test $ac_cv_header_sys_types_h = yes; then | |
5102 | HAVE_SYS_TYPES_H=1 | |
5103 | else | |
5104 | HAVE_SYS_TYPES_H=0 | |
5105 | fi | |
5106 | ||
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | : | |
5112 | ||
5113 | ||
5114 | ||
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | if test $gl_cv_have_include_next = yes; then | |
5120 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5121 | else | |
5122 | echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 | |
5123 | echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6 | |
5124 | if test "${gl_cv_next_stdint_h+set}" = set; then | |
5125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5126 | else | |
5127 | ||
5128 | if test $ac_cv_header_stdint_h = yes; then | |
5129 | cat >conftest.$ac_ext <<_ACEOF | |
5130 | /* confdefs.h. */ | |
5131 | _ACEOF | |
5132 | cat confdefs.h >>conftest.$ac_ext | |
5133 | cat >>conftest.$ac_ext <<_ACEOF | |
5134 | /* end confdefs.h. */ | |
5135 | #include <stdint.h> | |
5136 | ||
5137 | _ACEOF | |
5138 | gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5139 | sed -n '\#/stdint.h#{ | |
5140 | s#.*"\(.*/stdint.h\)".*#\1# | |
5141 | s#^/[^/]#//&# | |
5142 | p | |
5143 | q | |
5144 | }'`'"' | |
5145 | else | |
5146 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5147 | fi | |
5148 | ||
5149 | fi | |
5150 | echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 | |
5151 | echo "${ECHO_T}$gl_cv_next_stdint_h" >&6 | |
5152 | fi | |
5153 | NEXT_STDINT_H=$gl_cv_next_stdint_h | |
5154 | ||
5155 | ||
5156 | ||
5157 | if test $ac_cv_header_stdint_h = yes; then | |
5158 | HAVE_STDINT_H=1 | |
5159 | else | |
5160 | HAVE_STDINT_H=0 | |
5161 | fi | |
5162 | ||
5163 | ||
5164 | if test $ac_cv_header_stdint_h = yes; then | |
5165 | echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 | |
5166 | echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6 | |
5167 | if test "${gl_cv_header_working_stdint_h+set}" = set; then | |
5168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5169 | else | |
5170 | gl_cv_header_working_stdint_h=no | |
5171 | cat >conftest.$ac_ext <<_ACEOF | |
5172 | ||
5173 | /* confdefs.h. */ | |
5174 | _ACEOF | |
5175 | cat confdefs.h >>conftest.$ac_ext | |
5176 | cat >>conftest.$ac_ext <<_ACEOF | |
5177 | /* end confdefs.h. */ | |
5178 | ||
5179 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
5180 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
5181 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
5182 | #include <stdint.h> | |
5183 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
5184 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
5185 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
5186 | #endif | |
5187 | ||
5188 | ||
5189 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5190 | included before <wchar.h>. */ | |
5191 | #include <stddef.h> | |
5192 | #include <signal.h> | |
5193 | #if HAVE_WCHAR_H | |
5194 | # include <stdio.h> | |
5195 | # include <time.h> | |
5196 | # include <wchar.h> | |
5197 | #endif | |
5198 | ||
5199 | ||
5200 | #ifdef INT8_MAX | |
5201 | int8_t a1 = INT8_MAX; | |
5202 | int8_t a1min = INT8_MIN; | |
5203 | #endif | |
5204 | #ifdef INT16_MAX | |
5205 | int16_t a2 = INT16_MAX; | |
5206 | int16_t a2min = INT16_MIN; | |
5207 | #endif | |
5208 | #ifdef INT32_MAX | |
5209 | int32_t a3 = INT32_MAX; | |
5210 | int32_t a3min = INT32_MIN; | |
5211 | #endif | |
5212 | #ifdef INT64_MAX | |
5213 | int64_t a4 = INT64_MAX; | |
5214 | int64_t a4min = INT64_MIN; | |
5215 | #endif | |
5216 | #ifdef UINT8_MAX | |
5217 | uint8_t b1 = UINT8_MAX; | |
5218 | #else | |
5219 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
5220 | #endif | |
5221 | #ifdef UINT16_MAX | |
5222 | uint16_t b2 = UINT16_MAX; | |
5223 | #endif | |
5224 | #ifdef UINT32_MAX | |
5225 | uint32_t b3 = UINT32_MAX; | |
5226 | #endif | |
5227 | #ifdef UINT64_MAX | |
5228 | uint64_t b4 = UINT64_MAX; | |
5229 | #endif | |
5230 | int_least8_t c1 = INT8_C (0x7f); | |
5231 | int_least8_t c1max = INT_LEAST8_MAX; | |
5232 | int_least8_t c1min = INT_LEAST8_MIN; | |
5233 | int_least16_t c2 = INT16_C (0x7fff); | |
5234 | int_least16_t c2max = INT_LEAST16_MAX; | |
5235 | int_least16_t c2min = INT_LEAST16_MIN; | |
5236 | int_least32_t c3 = INT32_C (0x7fffffff); | |
5237 | int_least32_t c3max = INT_LEAST32_MAX; | |
5238 | int_least32_t c3min = INT_LEAST32_MIN; | |
5239 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
5240 | int_least64_t c4max = INT_LEAST64_MAX; | |
5241 | int_least64_t c4min = INT_LEAST64_MIN; | |
5242 | uint_least8_t d1 = UINT8_C (0xff); | |
5243 | uint_least8_t d1max = UINT_LEAST8_MAX; | |
5244 | uint_least16_t d2 = UINT16_C (0xffff); | |
5245 | uint_least16_t d2max = UINT_LEAST16_MAX; | |
5246 | uint_least32_t d3 = UINT32_C (0xffffffff); | |
5247 | uint_least32_t d3max = UINT_LEAST32_MAX; | |
5248 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
5249 | uint_least64_t d4max = UINT_LEAST64_MAX; | |
5250 | int_fast8_t e1 = INT_FAST8_MAX; | |
5251 | int_fast8_t e1min = INT_FAST8_MIN; | |
5252 | int_fast16_t e2 = INT_FAST16_MAX; | |
5253 | int_fast16_t e2min = INT_FAST16_MIN; | |
5254 | int_fast32_t e3 = INT_FAST32_MAX; | |
5255 | int_fast32_t e3min = INT_FAST32_MIN; | |
5256 | int_fast64_t e4 = INT_FAST64_MAX; | |
5257 | int_fast64_t e4min = INT_FAST64_MIN; | |
5258 | uint_fast8_t f1 = UINT_FAST8_MAX; | |
5259 | uint_fast16_t f2 = UINT_FAST16_MAX; | |
5260 | uint_fast32_t f3 = UINT_FAST32_MAX; | |
5261 | uint_fast64_t f4 = UINT_FAST64_MAX; | |
5262 | #ifdef INTPTR_MAX | |
5263 | intptr_t g = INTPTR_MAX; | |
5264 | intptr_t gmin = INTPTR_MIN; | |
5265 | #endif | |
5266 | #ifdef UINTPTR_MAX | |
5267 | uintptr_t h = UINTPTR_MAX; | |
5268 | #endif | |
5269 | intmax_t i = INTMAX_MAX; | |
5270 | uintmax_t j = UINTMAX_MAX; | |
5271 | ||
5272 | #include <limits.h> /* for CHAR_BIT */ | |
5273 | #define TYPE_MINIMUM(t) \ | |
5274 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | |
5275 | #define TYPE_MAXIMUM(t) \ | |
5276 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | |
5277 | struct s { | |
5278 | int check_PTRDIFF: | |
5279 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
5280 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
5281 | ? 1 : -1; | |
5282 | /* Detect bug in FreeBSD 6.0 / ia64. */ | |
5283 | int check_SIG_ATOMIC: | |
5284 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
5285 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
5286 | ? 1 : -1; | |
5287 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
5288 | int check_WCHAR: | |
5289 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
5290 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
5291 | ? 1 : -1; | |
5292 | /* Detect bug in mingw. */ | |
5293 | int check_WINT: | |
5294 | WINT_MIN == TYPE_MINIMUM (wint_t) | |
5295 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
5296 | ? 1 : -1; | |
5297 | ||
5298 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
5299 | int check_UINT8_C: | |
5300 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
5301 | int check_UINT16_C: | |
5302 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
5303 | ||
5304 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
5305 | #ifdef UINT8_MAX | |
5306 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
5307 | #endif | |
5308 | #ifdef UINT16_MAX | |
5309 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
5310 | #endif | |
5311 | #ifdef UINT32_MAX | |
5312 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
5313 | #endif | |
5314 | #ifdef UINT64_MAX | |
5315 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
5316 | #endif | |
5317 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
5318 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
5319 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
5320 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
5321 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
5322 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
5323 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
5324 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
5325 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
5326 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
5327 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
5328 | }; | |
5329 | ||
5330 | int | |
5331 | main () | |
5332 | { | |
5333 | ||
5334 | ; | |
5335 | return 0; | |
5336 | } | |
5337 | _ACEOF | |
5338 | rm -f conftest.$ac_objext | |
5339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5340 | (eval $ac_compile) 2>conftest.er1 | |
5341 | ac_status=$? | |
5342 | grep -v '^ *+' conftest.er1 >conftest.err | |
5343 | rm -f conftest.er1 | |
5344 | cat conftest.err >&5 | |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 | (exit $ac_status); } && | |
5347 | { ac_try='test -z "$ac_c_werror_flag" | |
5348 | || test ! -s conftest.err' | |
5349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5350 | (eval $ac_try) 2>&5 | |
5351 | ac_status=$? | |
5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5353 | (exit $ac_status); }; } && | |
5354 | { ac_try='test -s conftest.$ac_objext' | |
5355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5356 | (eval $ac_try) 2>&5 | |
5357 | ac_status=$? | |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5359 | (exit $ac_status); }; }; then | |
5360 | gl_cv_header_working_stdint_h=yes | |
5361 | else | |
5362 | echo "$as_me: failed program was:" >&5 | |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5364 | ||
5365 | fi | |
5366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5367 | fi | |
5368 | echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 | |
5369 | echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6 | |
5370 | fi | |
5371 | if test "$gl_cv_header_working_stdint_h" = yes; then | |
5372 | STDINT_H= | |
5373 | else | |
5374 | ||
5375 | ||
5376 | for ac_header in sys/inttypes.h sys/bitypes.h | |
5377 | do | |
5378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5384 | fi | |
5385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5387 | else | |
5388 | # Is the header compilable? | |
5389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5391 | cat >conftest.$ac_ext <<_ACEOF | |
5392 | /* confdefs.h. */ | |
5393 | _ACEOF | |
5394 | cat confdefs.h >>conftest.$ac_ext | |
5395 | cat >>conftest.$ac_ext <<_ACEOF | |
5396 | /* end confdefs.h. */ | |
5397 | $ac_includes_default | |
5398 | #include <$ac_header> | |
5399 | _ACEOF | |
5400 | rm -f conftest.$ac_objext | |
5401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5402 | (eval $ac_compile) 2>conftest.er1 | |
5403 | ac_status=$? | |
5404 | grep -v '^ *+' conftest.er1 >conftest.err | |
5405 | rm -f conftest.er1 | |
5406 | cat conftest.err >&5 | |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5408 | (exit $ac_status); } && | |
5409 | { ac_try='test -z "$ac_c_werror_flag" | |
5410 | || test ! -s conftest.err' | |
5411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5412 | (eval $ac_try) 2>&5 | |
5413 | ac_status=$? | |
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5415 | (exit $ac_status); }; } && | |
5416 | { ac_try='test -s conftest.$ac_objext' | |
5417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5418 | (eval $ac_try) 2>&5 | |
5419 | ac_status=$? | |
5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5421 | (exit $ac_status); }; }; then | |
5422 | ac_header_compiler=yes | |
5423 | else | |
5424 | echo "$as_me: failed program was:" >&5 | |
5425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5426 | ||
5427 | ac_header_compiler=no | |
5428 | fi | |
5429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5432 | ||
5433 | # Is the header present? | |
5434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5436 | cat >conftest.$ac_ext <<_ACEOF | |
5437 | /* confdefs.h. */ | |
5438 | _ACEOF | |
5439 | cat confdefs.h >>conftest.$ac_ext | |
5440 | cat >>conftest.$ac_ext <<_ACEOF | |
5441 | /* end confdefs.h. */ | |
5442 | #include <$ac_header> | |
5443 | _ACEOF | |
5444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5446 | ac_status=$? | |
5447 | grep -v '^ *+' conftest.er1 >conftest.err | |
5448 | rm -f conftest.er1 | |
5449 | cat conftest.err >&5 | |
5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5451 | (exit $ac_status); } >/dev/null; then | |
5452 | if test -s conftest.err; then | |
5453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5455 | else | |
5456 | ac_cpp_err= | |
5457 | fi | |
5458 | else | |
5459 | ac_cpp_err=yes | |
5460 | fi | |
5461 | if test -z "$ac_cpp_err"; then | |
5462 | ac_header_preproc=yes | |
5463 | else | |
5464 | echo "$as_me: failed program was:" >&5 | |
5465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5466 | ||
5467 | ac_header_preproc=no | |
5468 | fi | |
5469 | rm -f conftest.err conftest.$ac_ext | |
5470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5472 | ||
5473 | # So? What about this header? | |
5474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5475 | yes:no: ) | |
5476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5480 | ac_header_preproc=yes | |
5481 | ;; | |
5482 | no:yes:* ) | |
5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5495 | ( | |
5496 | cat <<\_ASBOX | |
5497 | ## ------------------------------------------ ## | |
5498 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5499 | ## ------------------------------------------ ## | |
5500 | _ASBOX | |
5501 | ) | | |
5502 | sed "s/^/$as_me: WARNING: /" >&2 | |
5503 | ;; | |
5504 | esac | |
5505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5509 | else | |
5510 | eval "$as_ac_Header=\$ac_header_preproc" | |
5511 | fi | |
5512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5514 | ||
5515 | fi | |
5516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5517 | cat >>confdefs.h <<_ACEOF | |
5518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5519 | _ACEOF | |
5520 | ||
5521 | fi | |
5522 | ||
5523 | done | |
5524 | ||
5525 | if test $ac_cv_header_sys_inttypes_h = yes; then | |
5526 | HAVE_SYS_INTTYPES_H=1 | |
5527 | else | |
5528 | HAVE_SYS_INTTYPES_H=0 | |
5529 | fi | |
5530 | ||
5531 | if test $ac_cv_header_sys_bitypes_h = yes; then | |
5532 | HAVE_SYS_BITYPES_H=1 | |
5533 | else | |
5534 | HAVE_SYS_BITYPES_H=0 | |
5535 | fi | |
5536 | ||
5537 | ||
5538 | ||
5539 | : | |
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
5555 | echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 | |
5556 | echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6 | |
5557 | if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then | |
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5559 | else | |
5560 | if test "$cross_compiling" = yes; then | |
5561 | # Depending upon the size, compute the lo and hi bounds. | |
5562 | cat >conftest.$ac_ext <<_ACEOF | |
5563 | /* confdefs.h. */ | |
5564 | _ACEOF | |
5565 | cat confdefs.h >>conftest.$ac_ext | |
5566 | cat >>conftest.$ac_ext <<_ACEOF | |
5567 | /* end confdefs.h. */ | |
5568 | ||
5569 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5570 | included before <wchar.h>. */ | |
5571 | #include <stddef.h> | |
5572 | #include <signal.h> | |
5573 | #if HAVE_WCHAR_H | |
5574 | # include <stdio.h> | |
5575 | # include <time.h> | |
5576 | # include <wchar.h> | |
5577 | #endif | |
5578 | ||
5579 | #include <limits.h> | |
5580 | int | |
5581 | main () | |
5582 | { | |
5583 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; | |
5584 | test_array [0] = 0 | |
5585 | ||
5586 | ; | |
5587 | return 0; | |
5588 | } | |
5589 | _ACEOF | |
5590 | rm -f conftest.$ac_objext | |
5591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5592 | (eval $ac_compile) 2>conftest.er1 | |
5593 | ac_status=$? | |
5594 | grep -v '^ *+' conftest.er1 >conftest.err | |
5595 | rm -f conftest.er1 | |
5596 | cat conftest.err >&5 | |
5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5598 | (exit $ac_status); } && | |
5599 | { ac_try='test -z "$ac_c_werror_flag" | |
5600 | || test ! -s conftest.err' | |
5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5602 | (eval $ac_try) 2>&5 | |
5603 | ac_status=$? | |
5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5605 | (exit $ac_status); }; } && | |
5606 | { ac_try='test -s conftest.$ac_objext' | |
5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5608 | (eval $ac_try) 2>&5 | |
5609 | ac_status=$? | |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5611 | (exit $ac_status); }; }; then | |
5612 | ac_lo=0 ac_mid=0 | |
5613 | while :; do | |
5614 | cat >conftest.$ac_ext <<_ACEOF | |
5615 | /* confdefs.h. */ | |
5616 | _ACEOF | |
5617 | cat confdefs.h >>conftest.$ac_ext | |
5618 | cat >>conftest.$ac_ext <<_ACEOF | |
5619 | /* end confdefs.h. */ | |
5620 | ||
5621 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5622 | included before <wchar.h>. */ | |
5623 | #include <stddef.h> | |
5624 | #include <signal.h> | |
5625 | #if HAVE_WCHAR_H | |
5626 | # include <stdio.h> | |
5627 | # include <time.h> | |
5628 | # include <wchar.h> | |
5629 | #endif | |
5630 | ||
5631 | #include <limits.h> | |
5632 | int | |
5633 | main () | |
5634 | { | |
5635 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
5636 | test_array [0] = 0 | |
5637 | ||
5638 | ; | |
5639 | return 0; | |
5640 | } | |
5641 | _ACEOF | |
5642 | rm -f conftest.$ac_objext | |
5643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5644 | (eval $ac_compile) 2>conftest.er1 | |
5645 | ac_status=$? | |
5646 | grep -v '^ *+' conftest.er1 >conftest.err | |
5647 | rm -f conftest.er1 | |
5648 | cat conftest.err >&5 | |
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5650 | (exit $ac_status); } && | |
5651 | { ac_try='test -z "$ac_c_werror_flag" | |
5652 | || test ! -s conftest.err' | |
5653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5654 | (eval $ac_try) 2>&5 | |
5655 | ac_status=$? | |
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5657 | (exit $ac_status); }; } && | |
5658 | { ac_try='test -s conftest.$ac_objext' | |
5659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5660 | (eval $ac_try) 2>&5 | |
5661 | ac_status=$? | |
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5663 | (exit $ac_status); }; }; then | |
5664 | ac_hi=$ac_mid; break | |
5665 | else | |
5666 | echo "$as_me: failed program was:" >&5 | |
5667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5668 | ||
5669 | ac_lo=`expr $ac_mid + 1` | |
5670 | if test $ac_lo -le $ac_mid; then | |
5671 | ac_lo= ac_hi= | |
5672 | break | |
5673 | fi | |
5674 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5675 | fi | |
5676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5677 | done | |
5678 | else | |
5679 | echo "$as_me: failed program was:" >&5 | |
5680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5681 | ||
5682 | cat >conftest.$ac_ext <<_ACEOF | |
5683 | /* confdefs.h. */ | |
5684 | _ACEOF | |
5685 | cat confdefs.h >>conftest.$ac_ext | |
5686 | cat >>conftest.$ac_ext <<_ACEOF | |
5687 | /* end confdefs.h. */ | |
5688 | ||
5689 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5690 | included before <wchar.h>. */ | |
5691 | #include <stddef.h> | |
5692 | #include <signal.h> | |
5693 | #if HAVE_WCHAR_H | |
5694 | # include <stdio.h> | |
5695 | # include <time.h> | |
5696 | # include <wchar.h> | |
5697 | #endif | |
5698 | ||
5699 | #include <limits.h> | |
5700 | int | |
5701 | main () | |
5702 | { | |
5703 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; | |
5704 | test_array [0] = 0 | |
5705 | ||
5706 | ; | |
5707 | return 0; | |
5708 | } | |
5709 | _ACEOF | |
5710 | rm -f conftest.$ac_objext | |
5711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5712 | (eval $ac_compile) 2>conftest.er1 | |
5713 | ac_status=$? | |
5714 | grep -v '^ *+' conftest.er1 >conftest.err | |
5715 | rm -f conftest.er1 | |
5716 | cat conftest.err >&5 | |
5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5718 | (exit $ac_status); } && | |
5719 | { ac_try='test -z "$ac_c_werror_flag" | |
5720 | || test ! -s conftest.err' | |
5721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5722 | (eval $ac_try) 2>&5 | |
5723 | ac_status=$? | |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5725 | (exit $ac_status); }; } && | |
5726 | { ac_try='test -s conftest.$ac_objext' | |
5727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5728 | (eval $ac_try) 2>&5 | |
5729 | ac_status=$? | |
5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5731 | (exit $ac_status); }; }; then | |
5732 | ac_hi=-1 ac_mid=-1 | |
5733 | while :; do | |
5734 | cat >conftest.$ac_ext <<_ACEOF | |
5735 | /* confdefs.h. */ | |
5736 | _ACEOF | |
5737 | cat confdefs.h >>conftest.$ac_ext | |
5738 | cat >>conftest.$ac_ext <<_ACEOF | |
5739 | /* end confdefs.h. */ | |
5740 | ||
5741 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5742 | included before <wchar.h>. */ | |
5743 | #include <stddef.h> | |
5744 | #include <signal.h> | |
5745 | #if HAVE_WCHAR_H | |
5746 | # include <stdio.h> | |
5747 | # include <time.h> | |
5748 | # include <wchar.h> | |
5749 | #endif | |
5750 | ||
5751 | #include <limits.h> | |
5752 | int | |
5753 | main () | |
5754 | { | |
5755 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; | |
5756 | test_array [0] = 0 | |
5757 | ||
5758 | ; | |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | rm -f conftest.$ac_objext | |
5763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5764 | (eval $ac_compile) 2>conftest.er1 | |
5765 | ac_status=$? | |
5766 | grep -v '^ *+' conftest.er1 >conftest.err | |
5767 | rm -f conftest.er1 | |
5768 | cat conftest.err >&5 | |
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5770 | (exit $ac_status); } && | |
5771 | { ac_try='test -z "$ac_c_werror_flag" | |
5772 | || test ! -s conftest.err' | |
5773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5774 | (eval $ac_try) 2>&5 | |
5775 | ac_status=$? | |
5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5777 | (exit $ac_status); }; } && | |
5778 | { ac_try='test -s conftest.$ac_objext' | |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5780 | (eval $ac_try) 2>&5 | |
5781 | ac_status=$? | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); }; }; then | |
5784 | ac_lo=$ac_mid; break | |
5785 | else | |
5786 | echo "$as_me: failed program was:" >&5 | |
5787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5788 | ||
5789 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5790 | if test $ac_mid -le $ac_hi; then | |
5791 | ac_lo= ac_hi= | |
5792 | break | |
5793 | fi | |
5794 | ac_mid=`expr 2 '*' $ac_mid` | |
5795 | fi | |
5796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5797 | done | |
5798 | else | |
5799 | echo "$as_me: failed program was:" >&5 | |
5800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5801 | ||
5802 | ac_lo= ac_hi= | |
5803 | fi | |
5804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5805 | fi | |
5806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5807 | # Binary search between lo and hi bounds. | |
5808 | while test "x$ac_lo" != "x$ac_hi"; do | |
5809 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5810 | cat >conftest.$ac_ext <<_ACEOF | |
5811 | /* confdefs.h. */ | |
5812 | _ACEOF | |
5813 | cat confdefs.h >>conftest.$ac_ext | |
5814 | cat >>conftest.$ac_ext <<_ACEOF | |
5815 | /* end confdefs.h. */ | |
5816 | ||
5817 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5818 | included before <wchar.h>. */ | |
5819 | #include <stddef.h> | |
5820 | #include <signal.h> | |
5821 | #if HAVE_WCHAR_H | |
5822 | # include <stdio.h> | |
5823 | # include <time.h> | |
5824 | # include <wchar.h> | |
5825 | #endif | |
5826 | ||
5827 | #include <limits.h> | |
5828 | int | |
5829 | main () | |
5830 | { | |
5831 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
5832 | test_array [0] = 0 | |
5833 | ||
5834 | ; | |
5835 | return 0; | |
5836 | } | |
5837 | _ACEOF | |
5838 | rm -f conftest.$ac_objext | |
5839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5840 | (eval $ac_compile) 2>conftest.er1 | |
5841 | ac_status=$? | |
5842 | grep -v '^ *+' conftest.er1 >conftest.err | |
5843 | rm -f conftest.er1 | |
5844 | cat conftest.err >&5 | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); } && | |
5847 | { ac_try='test -z "$ac_c_werror_flag" | |
5848 | || test ! -s conftest.err' | |
5849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5850 | (eval $ac_try) 2>&5 | |
5851 | ac_status=$? | |
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5853 | (exit $ac_status); }; } && | |
5854 | { ac_try='test -s conftest.$ac_objext' | |
5855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5856 | (eval $ac_try) 2>&5 | |
5857 | ac_status=$? | |
5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5859 | (exit $ac_status); }; }; then | |
5860 | ac_hi=$ac_mid | |
5861 | else | |
5862 | echo "$as_me: failed program was:" >&5 | |
5863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5864 | ||
5865 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5866 | fi | |
5867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5868 | done | |
5869 | case $ac_lo in | |
5870 | ?*) result=$ac_lo;; | |
5871 | '') result=unknown ;; | |
5872 | esac | |
5873 | else | |
5874 | if test "$cross_compiling" = yes; then | |
5875 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
5876 | See \`config.log' for more details." >&5 | |
5877 | echo "$as_me: error: cannot run test program while cross compiling | |
5878 | See \`config.log' for more details." >&2;} | |
5879 | { (exit 1); exit 1; }; } | |
5880 | else | |
5881 | cat >conftest.$ac_ext <<_ACEOF | |
5882 | /* confdefs.h. */ | |
5883 | _ACEOF | |
5884 | cat confdefs.h >>conftest.$ac_ext | |
5885 | cat >>conftest.$ac_ext <<_ACEOF | |
5886 | /* end confdefs.h. */ | |
5887 | ||
5888 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5889 | included before <wchar.h>. */ | |
5890 | #include <stddef.h> | |
5891 | #include <signal.h> | |
5892 | #if HAVE_WCHAR_H | |
5893 | # include <stdio.h> | |
5894 | # include <time.h> | |
5895 | # include <wchar.h> | |
5896 | #endif | |
5897 | ||
5898 | #include <limits.h> | |
5899 | long longval () { return sizeof ($gltype) * CHAR_BIT; } | |
5900 | unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; } | |
5901 | #include <stdio.h> | |
5902 | #include <stdlib.h> | |
5903 | int | |
5904 | main () | |
5905 | { | |
5906 | ||
5907 | FILE *f = fopen ("conftest.val", "w"); | |
5908 | if (! f) | |
5909 | exit (1); | |
5910 | if ((sizeof ($gltype) * CHAR_BIT) < 0) | |
5911 | { | |
5912 | long i = longval (); | |
5913 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
5914 | exit (1); | |
5915 | fprintf (f, "%ld\n", i); | |
5916 | } | |
5917 | else | |
5918 | { | |
5919 | unsigned long i = ulongval (); | |
5920 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
5921 | exit (1); | |
5922 | fprintf (f, "%lu\n", i); | |
5923 | } | |
5924 | exit (ferror (f) || fclose (f) != 0); | |
5925 | ||
5926 | ; | |
5927 | return 0; | |
5928 | } | |
5929 | _ACEOF | |
5930 | rm -f conftest$ac_exeext | |
5931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5932 | (eval $ac_link) 2>&5 | |
5933 | ac_status=$? | |
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5937 | (eval $ac_try) 2>&5 | |
5938 | ac_status=$? | |
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5940 | (exit $ac_status); }; }; then | |
5941 | result=`cat conftest.val` | |
5942 | else | |
5943 | echo "$as_me: program exited with status $ac_status" >&5 | |
5944 | echo "$as_me: failed program was:" >&5 | |
5945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5946 | ||
5947 | ( exit $ac_status ) | |
5948 | result=unknown | |
5949 | fi | |
5950 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5951 | fi | |
5952 | fi | |
5953 | rm -f conftest.val | |
5954 | eval gl_cv_bitsizeof_${gltype}=\$result | |
c906108c | 5955 | |
783e057b DJ |
5956 | fi |
5957 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5 | |
5958 | echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6 | |
5959 | eval result=\$gl_cv_bitsizeof_${gltype} | |
5960 | if test $result = unknown; then | |
5961 | result=0 | |
5962 | fi | |
5963 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
5964 | cat >>confdefs.h <<_ACEOF | |
5965 | #define BITSIZEOF_${GLTYPE} $result | |
5966 | _ACEOF | |
c906108c | 5967 | |
783e057b DJ |
5968 | eval BITSIZEOF_${GLTYPE}=\$result |
5969 | done | |
c906108c | 5970 | |
c906108c | 5971 | |
c906108c | 5972 | |
bec39cab | 5973 | |
3841debe | 5974 | |
783e057b DJ |
5975 | |
5976 | ||
5977 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
5978 | echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 | |
5979 | echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6 | |
5980 | if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then | |
5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5982 | else | |
5983 | cat >conftest.$ac_ext <<_ACEOF | |
5984 | /* confdefs.h. */ | |
5985 | _ACEOF | |
5986 | cat confdefs.h >>conftest.$ac_ext | |
5987 | cat >>conftest.$ac_ext <<_ACEOF | |
5988 | /* end confdefs.h. */ | |
5989 | ||
5990 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5991 | included before <wchar.h>. */ | |
5992 | #include <stddef.h> | |
5993 | #include <signal.h> | |
5994 | #if HAVE_WCHAR_H | |
5995 | # include <stdio.h> | |
5996 | # include <time.h> | |
5997 | # include <wchar.h> | |
5998 | #endif | |
5999 | ||
6000 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
6001 | int | |
6002 | main () | |
6003 | { | |
6004 | ||
6005 | ; | |
6006 | return 0; | |
6007 | } | |
6008 | _ACEOF | |
6009 | rm -f conftest.$ac_objext | |
6010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6011 | (eval $ac_compile) 2>conftest.er1 | |
6012 | ac_status=$? | |
6013 | grep -v '^ *+' conftest.er1 >conftest.err | |
6014 | rm -f conftest.er1 | |
6015 | cat conftest.err >&5 | |
6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6017 | (exit $ac_status); } && | |
6018 | { ac_try='test -z "$ac_c_werror_flag" | |
6019 | || test ! -s conftest.err' | |
6020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6021 | (eval $ac_try) 2>&5 | |
6022 | ac_status=$? | |
6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6024 | (exit $ac_status); }; } && | |
6025 | { ac_try='test -s conftest.$ac_objext' | |
6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6027 | (eval $ac_try) 2>&5 | |
6028 | ac_status=$? | |
6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6030 | (exit $ac_status); }; }; then | |
6031 | result=yes | |
6032 | else | |
6033 | echo "$as_me: failed program was:" >&5 | |
6034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6035 | ||
6036 | result=no | |
20e95c23 | 6037 | fi |
783e057b DJ |
6038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6039 | eval gl_cv_type_${gltype}_signed=\$result | |
6040 | ||
6041 | fi | |
6042 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5 | |
6043 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6 | |
6044 | eval result=\$gl_cv_type_${gltype}_signed | |
6045 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6046 | if test "$result" = yes; then | |
6047 | cat >>confdefs.h <<_ACEOF | |
6048 | #define HAVE_SIGNED_${GLTYPE} 1 | |
6049 | _ACEOF | |
6050 | ||
6051 | eval HAVE_SIGNED_${GLTYPE}=1 | |
6052 | else | |
6053 | eval HAVE_SIGNED_${GLTYPE}=0 | |
6054 | fi | |
6055 | done | |
6056 | ||
6057 | ||
6058 | gl_cv_type_ptrdiff_t_signed=yes | |
6059 | gl_cv_type_size_t_signed=no | |
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
6066 | ||
6067 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
6068 | echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 | |
6069 | echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6 | |
6070 | if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then | |
6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6072 | else |
783e057b DJ |
6073 | eval gl_cv_type_${gltype}_suffix=no |
6074 | eval result=\$gl_cv_type_${gltype}_signed | |
6075 | if test "$result" = yes; then | |
6076 | glsufu= | |
6077 | else | |
6078 | glsufu=u | |
6079 | fi | |
6080 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
6081 | case $glsuf in | |
6082 | '') gltype1='int';; | |
6083 | l) gltype1='long int';; | |
6084 | ll) gltype1='long long int';; | |
6085 | i64) gltype1='__int64';; | |
6086 | u) gltype1='unsigned int';; | |
6087 | ul) gltype1='unsigned long int';; | |
6088 | ull) gltype1='unsigned long long int';; | |
6089 | ui64)gltype1='unsigned __int64';; | |
6090 | esac | |
6091 | cat >conftest.$ac_ext <<_ACEOF | |
6092 | /* confdefs.h. */ | |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
6097 | ||
6098 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6099 | included before <wchar.h>. */ | |
6100 | #include <stddef.h> | |
6101 | #include <signal.h> | |
6102 | #if HAVE_WCHAR_H | |
6103 | # include <stdio.h> | |
6104 | # include <time.h> | |
6105 | # include <wchar.h> | |
6106 | #endif | |
6107 | ||
6108 | extern $gltype foo; | |
6109 | extern $gltype1 foo; | |
6110 | int | |
6111 | main () | |
6112 | { | |
6113 | ||
6114 | ; | |
6115 | return 0; | |
6116 | } | |
6117 | _ACEOF | |
6118 | rm -f conftest.$ac_objext | |
6119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6120 | (eval $ac_compile) 2>conftest.er1 | |
6121 | ac_status=$? | |
6122 | grep -v '^ *+' conftest.er1 >conftest.err | |
6123 | rm -f conftest.er1 | |
6124 | cat conftest.err >&5 | |
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6126 | (exit $ac_status); } && | |
6127 | { ac_try='test -z "$ac_c_werror_flag" | |
6128 | || test ! -s conftest.err' | |
6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6130 | (eval $ac_try) 2>&5 | |
6131 | ac_status=$? | |
6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6133 | (exit $ac_status); }; } && | |
6134 | { ac_try='test -s conftest.$ac_objext' | |
6135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6136 | (eval $ac_try) 2>&5 | |
6137 | ac_status=$? | |
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6139 | (exit $ac_status); }; }; then | |
6140 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
6141 | else | |
6142 | echo "$as_me: failed program was:" >&5 | |
6143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6144 | ||
6145 | fi | |
6146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6147 | eval result=\$gl_cv_type_${gltype}_suffix | |
6148 | test "$result" != no && break | |
6149 | done | |
6150 | fi | |
6151 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5 | |
6152 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6 | |
6153 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6154 | eval result=\$gl_cv_type_${gltype}_suffix | |
6155 | test "$result" = no && result= | |
6156 | eval ${GLTYPE}_SUFFIX=\$result | |
6157 | cat >>confdefs.h <<_ACEOF | |
6158 | #define ${GLTYPE}_SUFFIX $result | |
6159 | _ACEOF | |
6160 | ||
6161 | done | |
6162 | ||
6163 | ||
6164 | ||
6165 | STDINT_H=stdint.h | |
6166 | fi | |
6167 | ||
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | ||
6173 | ||
6174 | echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 | |
6175 | echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6 | |
6176 | if test "${gl_cv_header_wchar_h_standalone+set}" = set; then | |
6177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6178 | else | |
6179 | cat >conftest.$ac_ext <<_ACEOF | |
6180 | #include <wchar.h> | |
6181 | wchar_t w; | |
6182 | _ACEOF | |
6183 | rm -f conftest.$ac_objext | |
6184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6185 | (eval $ac_compile) 2>conftest.er1 | |
6186 | ac_status=$? | |
6187 | grep -v '^ *+' conftest.er1 >conftest.err | |
6188 | rm -f conftest.er1 | |
6189 | cat conftest.err >&5 | |
6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6191 | (exit $ac_status); } && | |
6192 | { ac_try='test -z "$ac_c_werror_flag" | |
6193 | || test ! -s conftest.err' | |
6194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6195 | (eval $ac_try) 2>&5 | |
6196 | ac_status=$? | |
6197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6198 | (exit $ac_status); }; } && | |
6199 | { ac_try='test -s conftest.$ac_objext' | |
6200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6201 | (eval $ac_try) 2>&5 | |
6202 | ac_status=$? | |
6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6204 | (exit $ac_status); }; }; then | |
6205 | gl_cv_header_wchar_h_standalone=yes | |
6206 | else | |
6207 | echo "$as_me: failed program was:" >&5 | |
6208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6209 | ||
6210 | gl_cv_header_wchar_h_standalone=no | |
6211 | fi | |
6212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6213 | fi | |
6214 | echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 | |
6215 | echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6 | |
6216 | if test $gl_cv_header_wchar_h_standalone != yes; then | |
6217 | WCHAR_H=wchar.h | |
6218 | fi | |
6219 | ||
6220 | ||
6221 | : | |
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | if test $ac_cv_header_wchar_h = yes; then | |
6228 | HAVE_WCHAR_H=1 | |
6229 | else | |
6230 | HAVE_WCHAR_H=0 | |
6231 | fi | |
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | : | |
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | if test $gl_cv_have_include_next = yes; then | |
6245 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6246 | else | |
6247 | echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 | |
6248 | echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6 | |
6249 | if test "${gl_cv_next_wchar_h+set}" = set; then | |
6250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6251 | else | |
6252 | ||
6253 | if test $ac_cv_header_wchar_h = yes; then | |
6254 | cat >conftest.$ac_ext <<_ACEOF | |
6255 | /* confdefs.h. */ | |
6256 | _ACEOF | |
6257 | cat confdefs.h >>conftest.$ac_ext | |
6258 | cat >>conftest.$ac_ext <<_ACEOF | |
6259 | /* end confdefs.h. */ | |
6260 | #include <wchar.h> | |
6261 | ||
6262 | _ACEOF | |
6263 | gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6264 | sed -n '\#/wchar.h#{ | |
6265 | s#.*"\(.*/wchar.h\)".*#\1# | |
6266 | s#^/[^/]#//&# | |
6267 | p | |
6268 | q | |
6269 | }'`'"' | |
6270 | else | |
6271 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6272 | fi | |
6273 | ||
6274 | fi | |
6275 | echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 | |
6276 | echo "${ECHO_T}$gl_cv_next_wchar_h" >&6 | |
6277 | fi | |
6278 | NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
6279 | ||
c906108c | 6280 | |
c906108c | 6281 | |
c906108c | 6282 | |
c906108c | 6283 | |
c906108c | 6284 | |
c906108c | 6285 | |
c906108c | 6286 | |
783e057b DJ |
6287 | gltests_libdeps= |
6288 | gltests_ltlibdeps= | |
20e95c23 | 6289 | |
20e95c23 | 6290 | |
20e95c23 | 6291 | |
783e057b | 6292 | gl_source_base='tests' |
c906108c | 6293 | |
bec39cab | 6294 | |
bec39cab | 6295 | |
783e057b DJ |
6296 | |
6297 | LIBGNU_LIBDEPS="$gl_libdeps" | |
6298 | ||
6299 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
6300 | ||
6301 | ||
e28b3332 | 6302 | |
bec39cab AC |
6303 | PACKAGE=gdb |
6304 | ||
6305 | cat >>confdefs.h <<_ACEOF | |
6306 | #define PACKAGE "$PACKAGE" | |
6307 | _ACEOF | |
6308 | ||
6309 | ||
6310 | ||
e28b3332 DJ |
6311 | # GDB does not use automake, but gnulib does. This line lets us |
6312 | # generate its Makefile.in. | |
6313 | am__api_version="1.9" | |
6314 | # Find a good install program. We prefer a C program (faster), | |
6315 | # so one script is as good as another. But avoid the broken or | |
6316 | # incompatible versions: | |
6317 | # SysV /etc/install, /usr/sbin/install | |
6318 | # SunOS /usr/etc/install | |
6319 | # IRIX /sbin/install | |
6320 | # AIX /bin/install | |
6321 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6322 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6323 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6324 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6325 | # OS/2's system install, which has a completely different semantic | |
6326 | # ./install, which can be erroneously created by make from ./install.sh. | |
6327 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
6328 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6329 | if test -z "$INSTALL"; then | |
6330 | if test "${ac_cv_path_install+set}" = set; then | |
6331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6332 | else | |
6333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6334 | for as_dir in $PATH | |
6335 | do | |
6336 | IFS=$as_save_IFS | |
6337 | test -z "$as_dir" && as_dir=. | |
6338 | # Account for people who put trailing slashes in PATH elements. | |
6339 | case $as_dir/ in | |
6340 | ./ | .// | /cC/* | \ | |
6341 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6342 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
6343 | /usr/ucb/* ) ;; | |
6344 | *) | |
6345 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6346 | # Don't use installbsd from OSF since it installs stuff as root | |
6347 | # by default. | |
6348 | for ac_prog in ginstall scoinst install; do | |
6349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6350 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
6351 | if test $ac_prog = install && | |
6352 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6353 | # AIX install. It has an incompatible calling convention. | |
6354 | : | |
6355 | elif test $ac_prog = install && | |
6356 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6357 | # program-specific install script used by HP pwplus--don't use. | |
6358 | : | |
6359 | else | |
6360 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6361 | break 3 | |
6362 | fi | |
6363 | fi | |
6364 | done | |
6365 | done | |
6366 | ;; | |
6367 | esac | |
6368 | done | |
6369 | ||
6370 | ||
6371 | fi | |
6372 | if test "${ac_cv_path_install+set}" = set; then | |
6373 | INSTALL=$ac_cv_path_install | |
6374 | else | |
6375 | # As a last resort, use the slow shell script. We don't cache a | |
6376 | # path for INSTALL within a source directory, because that will | |
6377 | # break other packages using the cache if that directory is | |
6378 | # removed, or if the path is relative. | |
6379 | INSTALL=$ac_install_sh | |
6380 | fi | |
6381 | fi | |
6382 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
6383 | echo "${ECHO_T}$INSTALL" >&6 | |
6384 | ||
6385 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6386 | # It thinks the first close brace ends the variable substitution. | |
6387 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6388 | ||
6389 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6390 | ||
6391 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6392 | ||
6393 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
6394 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
6395 | # Just in case | |
6396 | sleep 1 | |
6397 | echo timestamp > conftest.file | |
6398 | # Do `set' in a subshell so we don't clobber the current shell's | |
6399 | # arguments. Must try -L first in case configure is actually a | |
6400 | # symlink; some systems play weird games with the mod time of symlinks | |
6401 | # (eg FreeBSD returns the mod time of the symlink's containing | |
6402 | # directory). | |
6403 | if ( | |
6404 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
6405 | if test "$*" = "X"; then | |
6406 | # -L didn't work. | |
6407 | set X `ls -t $srcdir/configure conftest.file` | |
6408 | fi | |
6409 | rm -f conftest.file | |
6410 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
6411 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
6412 | ||
6413 | # If neither matched, then we have a broken ls. This can happen | |
6414 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
6415 | # broken ls alias from the environment. This has actually | |
6416 | # happened. Such a system could not be considered "sane". | |
6417 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
6418 | alias in your environment" >&5 | |
6419 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
6420 | alias in your environment" >&2;} | |
6421 | { (exit 1); exit 1; }; } | |
6422 | fi | |
6423 | ||
6424 | test "$2" = conftest.file | |
6425 | ) | |
6426 | then | |
6427 | # Ok. | |
6428 | : | |
6429 | else | |
6430 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
6431 | Check your system clock" >&5 | |
6432 | echo "$as_me: error: newly created file is older than distributed files! | |
6433 | Check your system clock" >&2;} | |
6434 | { (exit 1); exit 1; }; } | |
6435 | fi | |
6436 | echo "$as_me:$LINENO: result: yes" >&5 | |
6437 | echo "${ECHO_T}yes" >&6 | |
6438 | test "$program_prefix" != NONE && | |
6439 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
6440 | # Use a double $ so make ignores it. | |
6441 | test "$program_suffix" != NONE && | |
6442 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
6443 | # Double any \ or $. echo might interpret backslashes. | |
6444 | # By default was `s,x,x', remove it if useless. | |
6445 | cat <<\_ACEOF >conftest.sed | |
6446 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6447 | _ACEOF | |
6448 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6449 | rm conftest.sed | |
6450 | ||
6451 | # expand $ac_aux_dir to an absolute path | |
6452 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
6453 | ||
6454 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
6455 | # Use eval to expand $SHELL | |
6456 | if eval "$MISSING --run true"; then | |
6457 | am_missing_run="$MISSING --run " | |
6458 | else | |
6459 | am_missing_run= | |
6460 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
6461 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
6462 | fi | |
6463 | ||
6464 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
6465 | # We used to keeping the `.' as first argument, in order to | |
6466 | # allow $(mkdir_p) to be used without argument. As in | |
6467 | # $(mkdir_p) $(somedir) | |
6468 | # where $(somedir) is conditionally defined. However this is wrong | |
6469 | # for two reasons: | |
6470 | # 1. if the package is installed by a user who cannot write `.' | |
6471 | # make install will fail, | |
6472 | # 2. the above comment should most certainly read | |
6473 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
6474 | # so it does not work when $(somedir) is undefined and | |
6475 | # $(DESTDIR) is not. | |
6476 | # To support the latter case, we have to write | |
6477 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
6478 | # so the `.' trick is pointless. | |
6479 | mkdir_p='mkdir -p --' | |
6480 | else | |
6481 | # On NextStep and OpenStep, the `mkdir' command does not | |
6482 | # recognize any option. It will interpret all options as | |
6483 | # directories to create, and then abort because `.' already | |
6484 | # exists. | |
6485 | for d in ./-p ./--version; | |
6486 | do | |
6487 | test -d $d && rmdir $d | |
6488 | done | |
6489 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
6490 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
6491 | mkdir_p='$(mkinstalldirs)' | |
6492 | else | |
6493 | mkdir_p='$(install_sh) -d' | |
6494 | fi | |
6495 | fi | |
6496 | ||
6497 | for ac_prog in gawk mawk nawk awk | |
6498 | do | |
6499 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6500 | set dummy $ac_prog; ac_word=$2 | |
6501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6503 | if test "${ac_cv_prog_AWK+set}" = set; then | |
6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6505 | else | |
6506 | if test -n "$AWK"; then | |
6507 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6508 | else | |
6509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6510 | for as_dir in $PATH | |
6511 | do | |
6512 | IFS=$as_save_IFS | |
6513 | test -z "$as_dir" && as_dir=. | |
6514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6516 | ac_cv_prog_AWK="$ac_prog" | |
6517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6518 | break 2 | |
6519 | fi | |
6520 | done | |
6521 | done | |
6522 | ||
6523 | fi | |
6524 | fi | |
6525 | AWK=$ac_cv_prog_AWK | |
6526 | if test -n "$AWK"; then | |
6527 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
6528 | echo "${ECHO_T}$AWK" >&6 | |
6529 | else | |
6530 | echo "$as_me:$LINENO: result: no" >&5 | |
6531 | echo "${ECHO_T}no" >&6 | |
6532 | fi | |
6533 | ||
6534 | test -n "$AWK" && break | |
6535 | done | |
6536 | ||
6537 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6538 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
6539 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
6540 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6542 | else | |
6543 | cat >conftest.make <<\_ACEOF | |
6544 | all: | |
6545 | @echo 'ac_maketemp="$(MAKE)"' | |
6546 | _ACEOF | |
6547 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6548 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
6549 | if test -n "$ac_maketemp"; then | |
6550 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6551 | else | |
6552 | eval ac_cv_prog_make_${ac_make}_set=no | |
6553 | fi | |
6554 | rm -f conftest.make | |
6555 | fi | |
6556 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6557 | echo "$as_me:$LINENO: result: yes" >&5 | |
6558 | echo "${ECHO_T}yes" >&6 | |
6559 | SET_MAKE= | |
6560 | else | |
6561 | echo "$as_me:$LINENO: result: no" >&5 | |
6562 | echo "${ECHO_T}no" >&6 | |
6563 | SET_MAKE="MAKE=${MAKE-make}" | |
6564 | fi | |
6565 | ||
6566 | rm -rf .tst 2>/dev/null | |
6567 | mkdir .tst 2>/dev/null | |
6568 | if test -d .tst; then | |
6569 | am__leading_dot=. | |
6570 | else | |
6571 | am__leading_dot=_ | |
6572 | fi | |
6573 | rmdir .tst 2>/dev/null | |
6574 | ||
6575 | DEPDIR="${am__leading_dot}deps" | |
6576 | ||
6577 | ac_config_commands="$ac_config_commands depfiles" | |
6578 | ||
6579 | ||
6580 | am_make=${MAKE-make} | |
6581 | cat > confinc << 'END' | |
6582 | am__doit: | |
6583 | @echo done | |
6584 | .PHONY: am__doit | |
6585 | END | |
6586 | # If we don't find an include directive, just comment out the code. | |
6587 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
6588 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
6589 | am__include="#" | |
6590 | am__quote= | |
6591 | _am_result=none | |
6592 | # First try GNU make style include. | |
6593 | echo "include confinc" > confmf | |
6594 | # We grep out `Entering directory' and `Leaving directory' | |
6595 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
6596 | # In particular we don't look at `^make:' because GNU make might | |
6597 | # be invoked under some other name (usually "gmake"), in which | |
6598 | # case it prints its new name instead of `make'. | |
6599 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
6600 | am__include=include | |
6601 | am__quote= | |
6602 | _am_result=GNU | |
6603 | fi | |
6604 | # Now try BSD make style include. | |
6605 | if test "$am__include" = "#"; then | |
6606 | echo '.include "confinc"' > confmf | |
6607 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
6608 | am__include=.include | |
6609 | am__quote="\"" | |
6610 | _am_result=BSD | |
6611 | fi | |
6612 | fi | |
6613 | ||
6614 | ||
6615 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
6616 | echo "${ECHO_T}$_am_result" >&6 | |
6617 | rm -f confinc confmf | |
6618 | ||
6619 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
6620 | if test "${enable_dependency_tracking+set}" = set; then | |
6621 | enableval="$enable_dependency_tracking" | |
6622 | ||
6623 | fi; | |
6624 | if test "x$enable_dependency_tracking" != xno; then | |
6625 | am_depcomp="$ac_aux_dir/depcomp" | |
6626 | AMDEPBACKSLASH='\' | |
6627 | fi | |
6628 | ||
6629 | ||
6630 | if test "x$enable_dependency_tracking" != xno; then | |
6631 | AMDEP_TRUE= | |
6632 | AMDEP_FALSE='#' | |
6633 | else | |
6634 | AMDEP_TRUE='#' | |
6635 | AMDEP_FALSE= | |
6636 | fi | |
6637 | ||
6638 | ||
6639 | ||
6640 | # test to see if srcdir already configured | |
6641 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
6642 | test -f $srcdir/config.status; then | |
6643 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
6644 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
6645 | { (exit 1); exit 1; }; } | |
6646 | fi | |
6647 | ||
6648 | # test whether we have cygpath | |
6649 | if test -z "$CYGPATH_W"; then | |
6650 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
6651 | CYGPATH_W='cygpath -w' | |
6652 | else | |
6653 | CYGPATH_W=echo | |
6654 | fi | |
6655 | fi | |
6656 | ||
6657 | ||
6658 | # Define the identity of the package. | |
6659 | PACKAGE=gdb | |
6660 | VERSION=UNUSED-VERSION | |
6661 | ||
6662 | ||
6663 | # Some tools Automake needs. | |
6664 | ||
6665 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
6666 | ||
6667 | ||
6668 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
6669 | ||
6670 | ||
6671 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
6672 | ||
6673 | ||
6674 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
6675 | ||
6676 | ||
6677 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6678 | ||
6679 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
6680 | ||
6681 | # Installed binaries are usually stripped using `strip' when the user | |
6682 | # run `make install-strip'. However `strip' might not be the right | |
6683 | # tool to use in cross-compilation environments, therefore Automake | |
6684 | # will honor the `STRIP' environment variable to overrule this program. | |
6685 | if test "$cross_compiling" != no; then | |
6686 | if test -n "$ac_tool_prefix"; then | |
6687 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6688 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6691 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6693 | else | |
6694 | if test -n "$STRIP"; then | |
6695 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6696 | else | |
6697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6698 | for as_dir in $PATH | |
6699 | do | |
6700 | IFS=$as_save_IFS | |
6701 | test -z "$as_dir" && as_dir=. | |
6702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6704 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6706 | break 2 | |
6707 | fi | |
6708 | done | |
6709 | done | |
6710 | ||
6711 | fi | |
6712 | fi | |
6713 | STRIP=$ac_cv_prog_STRIP | |
6714 | if test -n "$STRIP"; then | |
6715 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6716 | echo "${ECHO_T}$STRIP" >&6 | |
6717 | else | |
6718 | echo "$as_me:$LINENO: result: no" >&5 | |
6719 | echo "${ECHO_T}no" >&6 | |
6720 | fi | |
6721 | ||
6722 | fi | |
6723 | if test -z "$ac_cv_prog_STRIP"; then | |
6724 | ac_ct_STRIP=$STRIP | |
6725 | # Extract the first word of "strip", so it can be a program name with args. | |
6726 | set dummy strip; ac_word=$2 | |
6727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6729 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6731 | else | |
6732 | if test -n "$ac_ct_STRIP"; then | |
6733 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6734 | else | |
6735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6736 | for as_dir in $PATH | |
6737 | do | |
6738 | IFS=$as_save_IFS | |
6739 | test -z "$as_dir" && as_dir=. | |
6740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6742 | ac_cv_prog_ac_ct_STRIP="strip" | |
6743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6744 | break 2 | |
6745 | fi | |
6746 | done | |
6747 | done | |
6748 | ||
6749 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6750 | fi | |
6751 | fi | |
6752 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6753 | if test -n "$ac_ct_STRIP"; then | |
6754 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6755 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | STRIP=$ac_ct_STRIP | |
6762 | else | |
6763 | STRIP="$ac_cv_prog_STRIP" | |
6764 | fi | |
6765 | ||
6766 | fi | |
6767 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
6768 | ||
6769 | # We need awk for the "check" target. The system "awk" is bad on | |
6770 | # some platforms. | |
6771 | # Always define AMTAR for backward compatibility. | |
6772 | ||
6773 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
6774 | ||
6775 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | depcc="$CC" am_compiler_list= | |
6781 | ||
6782 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
6783 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
6784 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6786 | else | |
6787 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6788 | # We make a subdir and do the tests there. Otherwise we can end up | |
6789 | # making bogus files that we don't know about and never remove. For | |
6790 | # instance it was reported that on HP-UX the gcc test will end up | |
6791 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6792 | # in D'. | |
6793 | mkdir conftest.dir | |
6794 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6795 | # using a relative directory. | |
6796 | cp "$am_depcomp" conftest.dir | |
6797 | cd conftest.dir | |
6798 | # We will build objects and dependencies in a subdirectory because | |
6799 | # it helps to detect inapplicable dependency modes. For instance | |
6800 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6801 | # side effect of compilation, but ICC will put the dependencies in | |
6802 | # the current directory while Tru64 will put them in the object | |
6803 | # directory. | |
6804 | mkdir sub | |
6805 | ||
6806 | am_cv_CC_dependencies_compiler_type=none | |
6807 | if test "$am_compiler_list" = ""; then | |
6808 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6809 | fi | |
6810 | for depmode in $am_compiler_list; do | |
6811 | # Setup a source with many dependencies, because some compilers | |
6812 | # like to wrap large dependency lists on column 80 (with \), and | |
6813 | # we should not choose a depcomp mode which is confused by this. | |
6814 | # | |
6815 | # We need to recreate these files for each test, as the compiler may | |
6816 | # overwrite some of them when testing with obscure command lines. | |
6817 | # This happens at least with the AIX C compiler. | |
6818 | : > sub/conftest.c | |
6819 | for i in 1 2 3 4 5 6; do | |
6820 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6821 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
6822 | # Solaris 8's {/usr,}/bin/sh. | |
6823 | touch sub/conftst$i.h | |
6824 | done | |
6825 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6826 | ||
6827 | case $depmode in | |
6828 | nosideeffect) | |
6829 | # after this tag, mechanisms are not by side-effect, so they'll | |
6830 | # only be used when explicitly requested | |
6831 | if test "x$enable_dependency_tracking" = xyes; then | |
6832 | continue | |
6833 | else | |
6834 | break | |
6835 | fi | |
6836 | ;; | |
6837 | none) break ;; | |
6838 | esac | |
6839 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
6840 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6841 | # handle `-M -o', and we need to detect this. | |
6842 | if depmode=$depmode \ | |
6843 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
6844 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6845 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
6846 | >/dev/null 2>conftest.err && | |
6847 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6848 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
6849 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6850 | # icc doesn't choke on unknown options, it will just issue warnings | |
6851 | # or remarks (even with -Werror). So we grep stderr for any message | |
6852 | # that says an option was ignored or not supported. | |
6853 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6854 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6855 | # The diagnosis changed in icc 8.0: | |
6856 | # icc: Command line remark: option '-MP' not supported | |
6857 | if (grep 'ignoring option' conftest.err || | |
6858 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6859 | am_cv_CC_dependencies_compiler_type=$depmode | |
6860 | break | |
6861 | fi | |
6862 | fi | |
6863 | done | |
6864 | ||
6865 | cd .. | |
6866 | rm -rf conftest.dir | |
6867 | else | |
6868 | am_cv_CC_dependencies_compiler_type=none | |
6869 | fi | |
6870 | ||
6871 | fi | |
6872 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
6873 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
6874 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6875 | ||
6876 | ||
6877 | ||
6878 | if | |
6879 | test "x$enable_dependency_tracking" != xno \ | |
6880 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6881 | am__fastdepCC_TRUE= | |
6882 | am__fastdepCC_FALSE='#' | |
6883 | else | |
6884 | am__fastdepCC_TRUE='#' | |
6885 | am__fastdepCC_FALSE= | |
6886 | fi | |
6887 | ||
6888 | ||
6889 | ||
6890 | ||
bec39cab AC |
6891 | debugdir=${libdir}/debug |
6892 | ||
6893 | ||
b4e70030 | 6894 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 6895 | if test "${with_separate_debug_dir+set}" = set; then |
783e057b DJ |
6896 | withval="$with_separate_debug_dir" |
6897 | debugdir="${withval}" | |
6898 | fi; | |
20e95c23 | 6899 | |
20e95c23 | 6900 | |
783e057b DJ |
6901 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
6902 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6903 | ac_define_dir=`eval echo $debugdir` | |
6904 | ac_define_dir=`eval echo $ac_define_dir` | |
20e95c23 | 6905 | |
783e057b DJ |
6906 | cat >>confdefs.h <<_ACEOF |
6907 | #define DEBUGDIR "$ac_define_dir" | |
20e95c23 | 6908 | _ACEOF |
20e95c23 | 6909 | |
20e95c23 | 6910 | |
783e057b | 6911 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
20e95c23 | 6912 | |
783e057b DJ |
6913 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
6914 | if test "x$prefix" = xNONE; then | |
6915 | test_prefix=/usr/local | |
6916 | else | |
6917 | test_prefix=$prefix | |
6918 | fi | |
20e95c23 | 6919 | else |
783e057b | 6920 | test_prefix=$exec_prefix |
20e95c23 | 6921 | fi |
783e057b DJ |
6922 | case ${debugdir} in |
6923 | "${test_prefix}"|"${test_prefix}/"*|\ | |
6924 | '${exec_prefix}'|'${exec_prefix}/'*) | |
20e95c23 DJ |
6925 | |
6926 | cat >>confdefs.h <<\_ACEOF | |
783e057b | 6927 | #define DEBUGDIR_RELOCATABLE 1 |
20e95c23 DJ |
6928 | _ACEOF |
6929 | ||
783e057b DJ |
6930 | ;; |
6931 | esac | |
6932 | ||
20e95c23 | 6933 | |
20e95c23 | 6934 | |
783e057b | 6935 | subdirs="$subdirs doc testsuite" |
20e95c23 DJ |
6936 | |
6937 | ||
783e057b DJ |
6938 | # Check whether to support alternative target configurations |
6939 | # Check whether --enable-targets or --disable-targets was given. | |
6940 | if test "${enable_targets+set}" = set; then | |
6941 | enableval="$enable_targets" | |
6942 | case "${enableval}" in | |
6943 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
6944 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
6945 | { (exit 1); exit 1; }; } | |
6946 | ;; | |
6947 | no) enable_targets= ;; | |
6948 | *) enable_targets=$enableval ;; | |
6949 | esac | |
6950 | fi; | |
20e95c23 | 6951 | |
783e057b DJ |
6952 | # Check whether to enable 64-bit support on 32-bit hosts |
6953 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
6954 | if test "${enable_64_bit_bfd+set}" = set; then | |
6955 | enableval="$enable_64_bit_bfd" | |
6956 | case "${enableval}" in | |
6957 | yes) want64=true ;; | |
6958 | no) want64=false ;; | |
6959 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
6960 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
6961 | { (exit 1); exit 1; }; } ;; | |
6962 | esac | |
6963 | else | |
6964 | want64=false | |
6965 | fi; | |
6966 | # Provide defaults for some variables set by the per-host and per-target | |
6967 | # configuration. | |
6968 | gdb_host_obs=posix-hdep.o | |
20e95c23 | 6969 | |
783e057b DJ |
6970 | if test "${target}" = "${host}"; then |
6971 | gdb_native=yes | |
6972 | else | |
6973 | gdb_native=no | |
6974 | fi | |
20e95c23 | 6975 | |
783e057b | 6976 | . $srcdir/configure.host |
20e95c23 | 6977 | |
783e057b | 6978 | # Accumulate some settings from configure.tgt over all enabled targets |
20e95c23 | 6979 | |
783e057b DJ |
6980 | TARGET_OBS= |
6981 | all_targets= | |
20e95c23 | 6982 | |
783e057b | 6983 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
20e95c23 | 6984 | do |
783e057b DJ |
6985 | if test "$targ_alias" = "all"; then |
6986 | all_targets=true | |
6987 | else | |
6988 | # Canonicalize the secondary target names. | |
6989 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
6990 | if test -n "$result"; then | |
6991 | targ=$result | |
6992 | else | |
6993 | targ=$targ_alias | |
6994 | fi | |
20e95c23 | 6995 | |
783e057b | 6996 | . ${srcdir}/configure.tgt |
20e95c23 | 6997 | |
783e057b DJ |
6998 | # Target-specific object files |
6999 | for i in ${gdb_target_obs}; do | |
7000 | case " $TARGET_OBS " in | |
7001 | *" ${i} "*) ;; | |
7002 | *) | |
7003 | TARGET_OBS="$TARGET_OBS ${i}" | |
7004 | ;; | |
7005 | esac | |
7006 | done | |
20e95c23 | 7007 | |
783e057b DJ |
7008 | # Check whether this target needs 64-bit CORE_ADDR |
7009 | if test x${want64} = xfalse; then | |
7010 | . ${srcdir}/../bfd/config.bfd | |
7011 | fi | |
7012 | fi | |
20e95c23 DJ |
7013 | done |
7014 | ||
783e057b DJ |
7015 | if test x${all_targets} = xtrue; then |
7016 | ||
7017 | # We want all 64-bit targets if we either: | |
7018 | # - run on a 64-bit host or | |
7019 | # - already require 64-bit support for some other target or | |
7020 | # - the --enable-64-bit-bfd option was supplied | |
7021 | # Otherwise we only support all 32-bit targets. | |
7022 | # | |
7023 | # NOTE: This test must be in sync with the corresponding | |
7024 | # tests in BFD! | |
20e95c23 | 7025 | |
783e057b DJ |
7026 | if test x${want64} = xfalse; then |
7027 | echo "$as_me:$LINENO: checking for long" >&5 | |
c0993dbe UW |
7028 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
7029 | if test "${ac_cv_type_long+set}" = set; then | |
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7031 | else | |
7032 | cat >conftest.$ac_ext <<_ACEOF | |
7033 | /* confdefs.h. */ | |
7034 | _ACEOF | |
7035 | cat confdefs.h >>conftest.$ac_ext | |
7036 | cat >>conftest.$ac_ext <<_ACEOF | |
7037 | /* end confdefs.h. */ | |
7038 | $ac_includes_default | |
7039 | int | |
7040 | main () | |
7041 | { | |
7042 | if ((long *) 0) | |
7043 | return 0; | |
7044 | if (sizeof (long)) | |
7045 | return 0; | |
7046 | ; | |
7047 | return 0; | |
7048 | } | |
7049 | _ACEOF | |
7050 | rm -f conftest.$ac_objext | |
7051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7052 | (eval $ac_compile) 2>conftest.er1 | |
7053 | ac_status=$? | |
7054 | grep -v '^ *+' conftest.er1 >conftest.err | |
7055 | rm -f conftest.er1 | |
7056 | cat conftest.err >&5 | |
7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7058 | (exit $ac_status); } && | |
7059 | { ac_try='test -z "$ac_c_werror_flag" | |
7060 | || test ! -s conftest.err' | |
7061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7062 | (eval $ac_try) 2>&5 | |
7063 | ac_status=$? | |
7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7065 | (exit $ac_status); }; } && | |
7066 | { ac_try='test -s conftest.$ac_objext' | |
7067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7068 | (eval $ac_try) 2>&5 | |
7069 | ac_status=$? | |
7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7071 | (exit $ac_status); }; }; then | |
7072 | ac_cv_type_long=yes | |
7073 | else | |
7074 | echo "$as_me: failed program was:" >&5 | |
7075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7076 | ||
7077 | ac_cv_type_long=no | |
7078 | fi | |
7079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7080 | fi | |
7081 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
7082 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
7083 | ||
7084 | echo "$as_me:$LINENO: checking size of long" >&5 | |
7085 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
7086 | if test "${ac_cv_sizeof_long+set}" = set; then | |
7087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7088 | else | |
7089 | if test "$ac_cv_type_long" = yes; then | |
7090 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7093 | # This bug is HP SR number 8606223364. | |
7094 | if test "$cross_compiling" = yes; then | |
7095 | # Depending upon the size, compute the lo and hi bounds. | |
7096 | cat >conftest.$ac_ext <<_ACEOF | |
7097 | /* confdefs.h. */ | |
7098 | _ACEOF | |
7099 | cat confdefs.h >>conftest.$ac_ext | |
7100 | cat >>conftest.$ac_ext <<_ACEOF | |
7101 | /* end confdefs.h. */ | |
7102 | $ac_includes_default | |
7103 | int | |
7104 | main () | |
7105 | { | |
7106 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
7107 | test_array [0] = 0 | |
7108 | ||
7109 | ; | |
7110 | return 0; | |
7111 | } | |
7112 | _ACEOF | |
7113 | rm -f conftest.$ac_objext | |
7114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7115 | (eval $ac_compile) 2>conftest.er1 | |
7116 | ac_status=$? | |
7117 | grep -v '^ *+' conftest.er1 >conftest.err | |
7118 | rm -f conftest.er1 | |
7119 | cat conftest.err >&5 | |
7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7121 | (exit $ac_status); } && | |
7122 | { ac_try='test -z "$ac_c_werror_flag" | |
7123 | || test ! -s conftest.err' | |
7124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7125 | (eval $ac_try) 2>&5 | |
7126 | ac_status=$? | |
7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7128 | (exit $ac_status); }; } && | |
7129 | { ac_try='test -s conftest.$ac_objext' | |
7130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7131 | (eval $ac_try) 2>&5 | |
7132 | ac_status=$? | |
7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7134 | (exit $ac_status); }; }; then | |
7135 | ac_lo=0 ac_mid=0 | |
7136 | while :; do | |
7137 | cat >conftest.$ac_ext <<_ACEOF | |
7138 | /* confdefs.h. */ | |
7139 | _ACEOF | |
7140 | cat confdefs.h >>conftest.$ac_ext | |
7141 | cat >>conftest.$ac_ext <<_ACEOF | |
7142 | /* end confdefs.h. */ | |
7143 | $ac_includes_default | |
7144 | int | |
7145 | main () | |
7146 | { | |
7147 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7148 | test_array [0] = 0 | |
7149 | ||
7150 | ; | |
7151 | return 0; | |
7152 | } | |
7153 | _ACEOF | |
7154 | rm -f conftest.$ac_objext | |
7155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7156 | (eval $ac_compile) 2>conftest.er1 | |
7157 | ac_status=$? | |
7158 | grep -v '^ *+' conftest.er1 >conftest.err | |
7159 | rm -f conftest.er1 | |
7160 | cat conftest.err >&5 | |
7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7162 | (exit $ac_status); } && | |
7163 | { ac_try='test -z "$ac_c_werror_flag" | |
7164 | || test ! -s conftest.err' | |
7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7166 | (eval $ac_try) 2>&5 | |
7167 | ac_status=$? | |
7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7169 | (exit $ac_status); }; } && | |
7170 | { ac_try='test -s conftest.$ac_objext' | |
7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7172 | (eval $ac_try) 2>&5 | |
7173 | ac_status=$? | |
7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7175 | (exit $ac_status); }; }; then | |
7176 | ac_hi=$ac_mid; break | |
7177 | else | |
7178 | echo "$as_me: failed program was:" >&5 | |
7179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7180 | ||
7181 | ac_lo=`expr $ac_mid + 1` | |
7182 | if test $ac_lo -le $ac_mid; then | |
7183 | ac_lo= ac_hi= | |
7184 | break | |
7185 | fi | |
7186 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7187 | fi | |
7188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7189 | done | |
7190 | else | |
7191 | echo "$as_me: failed program was:" >&5 | |
7192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7193 | ||
7194 | cat >conftest.$ac_ext <<_ACEOF | |
7195 | /* confdefs.h. */ | |
7196 | _ACEOF | |
7197 | cat confdefs.h >>conftest.$ac_ext | |
7198 | cat >>conftest.$ac_ext <<_ACEOF | |
7199 | /* end confdefs.h. */ | |
7200 | $ac_includes_default | |
7201 | int | |
7202 | main () | |
7203 | { | |
7204 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
7205 | test_array [0] = 0 | |
7206 | ||
7207 | ; | |
7208 | return 0; | |
7209 | } | |
7210 | _ACEOF | |
7211 | rm -f conftest.$ac_objext | |
7212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7213 | (eval $ac_compile) 2>conftest.er1 | |
7214 | ac_status=$? | |
7215 | grep -v '^ *+' conftest.er1 >conftest.err | |
7216 | rm -f conftest.er1 | |
7217 | cat conftest.err >&5 | |
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7219 | (exit $ac_status); } && | |
7220 | { ac_try='test -z "$ac_c_werror_flag" | |
7221 | || test ! -s conftest.err' | |
7222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7223 | (eval $ac_try) 2>&5 | |
7224 | ac_status=$? | |
7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7226 | (exit $ac_status); }; } && | |
7227 | { ac_try='test -s conftest.$ac_objext' | |
7228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7229 | (eval $ac_try) 2>&5 | |
7230 | ac_status=$? | |
7231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7232 | (exit $ac_status); }; }; then | |
7233 | ac_hi=-1 ac_mid=-1 | |
7234 | while :; do | |
7235 | cat >conftest.$ac_ext <<_ACEOF | |
7236 | /* confdefs.h. */ | |
7237 | _ACEOF | |
7238 | cat confdefs.h >>conftest.$ac_ext | |
7239 | cat >>conftest.$ac_ext <<_ACEOF | |
7240 | /* end confdefs.h. */ | |
7241 | $ac_includes_default | |
7242 | int | |
7243 | main () | |
7244 | { | |
7245 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
7246 | test_array [0] = 0 | |
7247 | ||
7248 | ; | |
7249 | return 0; | |
7250 | } | |
7251 | _ACEOF | |
7252 | rm -f conftest.$ac_objext | |
7253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7254 | (eval $ac_compile) 2>conftest.er1 | |
7255 | ac_status=$? | |
7256 | grep -v '^ *+' conftest.er1 >conftest.err | |
7257 | rm -f conftest.er1 | |
7258 | cat conftest.err >&5 | |
7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7260 | (exit $ac_status); } && | |
7261 | { ac_try='test -z "$ac_c_werror_flag" | |
7262 | || test ! -s conftest.err' | |
7263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7264 | (eval $ac_try) 2>&5 | |
7265 | ac_status=$? | |
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7267 | (exit $ac_status); }; } && | |
7268 | { ac_try='test -s conftest.$ac_objext' | |
7269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7270 | (eval $ac_try) 2>&5 | |
7271 | ac_status=$? | |
7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7273 | (exit $ac_status); }; }; then | |
7274 | ac_lo=$ac_mid; break | |
7275 | else | |
7276 | echo "$as_me: failed program was:" >&5 | |
7277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7278 | ||
7279 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7280 | if test $ac_mid -le $ac_hi; then | |
7281 | ac_lo= ac_hi= | |
7282 | break | |
7283 | fi | |
7284 | ac_mid=`expr 2 '*' $ac_mid` | |
7285 | fi | |
7286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7287 | done | |
7288 | else | |
7289 | echo "$as_me: failed program was:" >&5 | |
7290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7291 | ||
7292 | ac_lo= ac_hi= | |
7293 | fi | |
7294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7295 | fi | |
7296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7297 | # Binary search between lo and hi bounds. | |
7298 | while test "x$ac_lo" != "x$ac_hi"; do | |
7299 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7300 | cat >conftest.$ac_ext <<_ACEOF | |
7301 | /* confdefs.h. */ | |
7302 | _ACEOF | |
7303 | cat confdefs.h >>conftest.$ac_ext | |
7304 | cat >>conftest.$ac_ext <<_ACEOF | |
7305 | /* end confdefs.h. */ | |
7306 | $ac_includes_default | |
7307 | int | |
7308 | main () | |
7309 | { | |
7310 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7311 | test_array [0] = 0 | |
7312 | ||
7313 | ; | |
7314 | return 0; | |
7315 | } | |
7316 | _ACEOF | |
7317 | rm -f conftest.$ac_objext | |
7318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7319 | (eval $ac_compile) 2>conftest.er1 | |
7320 | ac_status=$? | |
7321 | grep -v '^ *+' conftest.er1 >conftest.err | |
7322 | rm -f conftest.er1 | |
7323 | cat conftest.err >&5 | |
7324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7325 | (exit $ac_status); } && | |
7326 | { ac_try='test -z "$ac_c_werror_flag" | |
7327 | || test ! -s conftest.err' | |
7328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7329 | (eval $ac_try) 2>&5 | |
7330 | ac_status=$? | |
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7332 | (exit $ac_status); }; } && | |
7333 | { ac_try='test -s conftest.$ac_objext' | |
7334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7335 | (eval $ac_try) 2>&5 | |
7336 | ac_status=$? | |
7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7338 | (exit $ac_status); }; }; then | |
7339 | ac_hi=$ac_mid | |
7340 | else | |
7341 | echo "$as_me: failed program was:" >&5 | |
7342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7343 | ||
7344 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7345 | fi | |
7346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7347 | done | |
7348 | case $ac_lo in | |
7349 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7350 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7351 | See \`config.log' for more details." >&5 | |
7352 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7353 | See \`config.log' for more details." >&2;} | |
7354 | { (exit 1); exit 1; }; } ;; | |
7355 | esac | |
7356 | else | |
7357 | if test "$cross_compiling" = yes; then | |
7358 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
7359 | See \`config.log' for more details." >&5 | |
7360 | echo "$as_me: error: cannot run test program while cross compiling | |
7361 | See \`config.log' for more details." >&2;} | |
7362 | { (exit 1); exit 1; }; } | |
7363 | else | |
7364 | cat >conftest.$ac_ext <<_ACEOF | |
7365 | /* confdefs.h. */ | |
7366 | _ACEOF | |
7367 | cat confdefs.h >>conftest.$ac_ext | |
7368 | cat >>conftest.$ac_ext <<_ACEOF | |
7369 | /* end confdefs.h. */ | |
7370 | $ac_includes_default | |
7371 | long longval () { return (long) (sizeof (long)); } | |
7372 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
7373 | #include <stdio.h> | |
7374 | #include <stdlib.h> | |
7375 | int | |
7376 | main () | |
7377 | { | |
7378 | ||
7379 | FILE *f = fopen ("conftest.val", "w"); | |
7380 | if (! f) | |
7381 | exit (1); | |
7382 | if (((long) (sizeof (long))) < 0) | |
7383 | { | |
7384 | long i = longval (); | |
7385 | if (i != ((long) (sizeof (long)))) | |
7386 | exit (1); | |
7387 | fprintf (f, "%ld\n", i); | |
7388 | } | |
7389 | else | |
7390 | { | |
7391 | unsigned long i = ulongval (); | |
7392 | if (i != ((long) (sizeof (long)))) | |
7393 | exit (1); | |
7394 | fprintf (f, "%lu\n", i); | |
7395 | } | |
7396 | exit (ferror (f) || fclose (f) != 0); | |
7397 | ||
7398 | ; | |
7399 | return 0; | |
7400 | } | |
7401 | _ACEOF | |
7402 | rm -f conftest$ac_exeext | |
7403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7404 | (eval $ac_link) 2>&5 | |
7405 | ac_status=$? | |
7406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7409 | (eval $ac_try) 2>&5 | |
7410 | ac_status=$? | |
7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7412 | (exit $ac_status); }; }; then | |
7413 | ac_cv_sizeof_long=`cat conftest.val` | |
7414 | else | |
7415 | echo "$as_me: program exited with status $ac_status" >&5 | |
7416 | echo "$as_me: failed program was:" >&5 | |
7417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7418 | ||
7419 | ( exit $ac_status ) | |
7420 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7421 | See \`config.log' for more details." >&5 | |
7422 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7423 | See \`config.log' for more details." >&2;} | |
7424 | { (exit 1); exit 1; }; } | |
7425 | fi | |
7426 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7427 | fi | |
7428 | fi | |
7429 | rm -f conftest.val | |
7430 | else | |
7431 | ac_cv_sizeof_long=0 | |
7432 | fi | |
7433 | fi | |
7434 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7435 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7436 | cat >>confdefs.h <<_ACEOF | |
7437 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7438 | _ACEOF | |
7439 | ||
7440 | ||
7441 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
7442 | want64=true | |
7443 | fi | |
7444 | fi | |
7445 | if test x${want64} = xtrue; then | |
7446 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' | |
7447 | else | |
7448 | TARGET_OBS='$(ALL_TARGET_OBS)' | |
7449 | fi | |
7450 | fi | |
7451 | ||
7452 | ||
7453 | ||
7454 | # For other settings, only the main target counts. | |
7455 | gdb_sim= | |
7456 | gdb_osabi= | |
7457 | build_gdbserver= | |
7458 | targ=$target; . ${srcdir}/configure.tgt | |
7459 | ||
7460 | # Fetch the default architecture and default target vector from BFD. | |
7461 | targ=$target; . $srcdir/../bfd/config.bfd | |
7462 | ||
7463 | # We only want the first architecture, so strip off the others if | |
7464 | # there is more than one. | |
7465 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
7466 | ||
7467 | if test "x$targ_archs" != x; then | |
7468 | ||
7469 | cat >>confdefs.h <<_ACEOF | |
7470 | #define DEFAULT_BFD_ARCH $targ_archs | |
7471 | _ACEOF | |
7472 | ||
7473 | fi | |
7474 | if test "x$targ_defvec" != x; then | |
7475 | ||
7476 | cat >>confdefs.h <<_ACEOF | |
7477 | #define DEFAULT_BFD_VEC $targ_defvec | |
7478 | _ACEOF | |
7479 | ||
7480 | fi | |
7481 | ||
c0993dbe UW |
7482 | # The CLI cannot be disabled yet, but may be in the future. |
7483 | ||
7484 | # Enable CLI. | |
7485 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
7486 | if test "${enable_gdbcli+set}" = set; then | |
7487 | enableval="$enable_gdbcli" | |
7488 | case $enableval in | |
7489 | yes) | |
7490 | ;; | |
7491 | no) | |
7492 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
7493 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
7494 | { (exit 1); exit 1; }; } ;; | |
7495 | *) | |
7496 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
7497 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
7498 | { (exit 1); exit 1; }; } ;; | |
7499 | esac | |
7500 | else | |
7501 | enable_gdbcli=yes | |
7502 | fi; | |
7503 | if test x"$enable_gdbcli" = xyes; then | |
7504 | if test -d $srcdir/cli; then | |
7505 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
7506 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
7507 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
7508 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
7509 | fi | |
7510 | fi | |
7511 | ||
7512 | # Enable MI. | |
7513 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
7514 | if test "${enable_gdbmi+set}" = set; then | |
7515 | enableval="$enable_gdbmi" | |
7516 | case $enableval in | |
7517 | yes | no) | |
7518 | ;; | |
7519 | *) | |
7520 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
7521 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
7522 | { (exit 1); exit 1; }; } ;; | |
7523 | esac | |
7524 | else | |
7525 | enable_gdbmi=yes | |
7526 | fi; | |
7527 | if test x"$enable_gdbmi" = xyes; then | |
7528 | if test -d $srcdir/mi; then | |
7529 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
7530 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
7531 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
7532 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
7533 | fi | |
7534 | fi | |
7535 | ||
7536 | # Enable TUI. | |
7537 | # Check whether --enable-tui or --disable-tui was given. | |
7538 | if test "${enable_tui+set}" = set; then | |
7539 | enableval="$enable_tui" | |
7540 | case $enableval in | |
7541 | yes | no) | |
7542 | ;; | |
7543 | *) | |
7544 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
7545 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
7546 | { (exit 1); exit 1; }; } ;; | |
7547 | esac | |
7548 | else | |
7549 | enable_tui=yes | |
7550 | fi; | |
7551 | ||
7552 | # Enable gdbtk. | |
7553 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
7554 | if test "${enable_gdbtk+set}" = set; then | |
7555 | enableval="$enable_gdbtk" | |
7556 | case $enableval in | |
7557 | yes | no) | |
7558 | ;; | |
7559 | *) | |
7560 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
7561 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
7562 | { (exit 1); exit 1; }; } ;; | |
7563 | esac | |
7564 | else | |
7565 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then | |
7566 | enable_gdbtk=yes | |
7567 | else | |
7568 | enable_gdbtk=no | |
7569 | fi | |
7570 | fi; | |
7571 | # We unconditionally disable gdbtk tests on selected platforms. | |
7572 | case $host_os in | |
7573 | go32* | windows*) | |
7574 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
7575 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
7576 | enable_gdbtk=no ;; | |
7577 | esac | |
7578 | ||
7579 | # Libunwind support. | |
bec39cab | 7580 | |
b4e70030 | 7581 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 7582 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
7583 | withval="$with_libunwind" |
7584 | case "${withval}" in | |
bec39cab AC |
7585 | yes) enable_libunwind=yes ;; |
7586 | no) enable_libunwind=no ;; | |
7587 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
7588 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
7589 | { (exit 1); exit 1; }; } ;; | |
7590 | esac | |
7591 | else | |
7592 | ||
7593 | ||
7594 | for ac_header in libunwind.h | |
7595 | do | |
7596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7602 | fi | |
b4e70030 JB |
7603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7604 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7605 | else |
7606 | # Is the header compilable? | |
b4e70030 JB |
7607 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7608 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7609 | cat >conftest.$ac_ext <<_ACEOF |
7610 | /* confdefs.h. */ | |
7611 | _ACEOF | |
7612 | cat confdefs.h >>conftest.$ac_ext | |
7613 | cat >>conftest.$ac_ext <<_ACEOF | |
7614 | /* end confdefs.h. */ | |
7615 | $ac_includes_default | |
7616 | #include <$ac_header> | |
7617 | _ACEOF | |
7618 | rm -f conftest.$ac_objext | |
7619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7620 | (eval $ac_compile) 2>conftest.er1 | |
7621 | ac_status=$? | |
7622 | grep -v '^ *+' conftest.er1 >conftest.err | |
7623 | rm -f conftest.er1 | |
7624 | cat conftest.err >&5 | |
7625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7626 | (exit $ac_status); } && | |
b4e70030 JB |
7627 | { ac_try='test -z "$ac_c_werror_flag" |
7628 | || test ! -s conftest.err' | |
bec39cab AC |
7629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7630 | (eval $ac_try) 2>&5 | |
7631 | ac_status=$? | |
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7633 | (exit $ac_status); }; } && | |
7634 | { ac_try='test -s conftest.$ac_objext' | |
7635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7636 | (eval $ac_try) 2>&5 | |
7637 | ac_status=$? | |
7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7639 | (exit $ac_status); }; }; then | |
7640 | ac_header_compiler=yes | |
7641 | else | |
7642 | echo "$as_me: failed program was:" >&5 | |
7643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7644 | ||
b4e70030 | 7645 | ac_header_compiler=no |
bec39cab AC |
7646 | fi |
7647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7648 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7649 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7650 | |
7651 | # Is the header present? | |
b4e70030 JB |
7652 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7653 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7654 | cat >conftest.$ac_ext <<_ACEOF |
7655 | /* confdefs.h. */ | |
7656 | _ACEOF | |
7657 | cat confdefs.h >>conftest.$ac_ext | |
7658 | cat >>conftest.$ac_ext <<_ACEOF | |
7659 | /* end confdefs.h. */ | |
7660 | #include <$ac_header> | |
7661 | _ACEOF | |
7662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7664 | ac_status=$? | |
7665 | grep -v '^ *+' conftest.er1 >conftest.err | |
7666 | rm -f conftest.er1 | |
7667 | cat conftest.err >&5 | |
7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7669 | (exit $ac_status); } >/dev/null; then | |
7670 | if test -s conftest.err; then | |
7671 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7673 | else | |
7674 | ac_cpp_err= | |
7675 | fi | |
7676 | else | |
7677 | ac_cpp_err=yes | |
7678 | fi | |
7679 | if test -z "$ac_cpp_err"; then | |
7680 | ac_header_preproc=yes | |
7681 | else | |
7682 | echo "$as_me: failed program was:" >&5 | |
7683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7684 | ||
7685 | ac_header_preproc=no | |
7686 | fi | |
7687 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7688 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7689 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7690 | |
7691 | # So? What about this header? | |
7692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7693 | yes:no: ) | |
7694 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7695 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7697 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7698 | ac_header_preproc=yes | |
7699 | ;; | |
7700 | no:yes:* ) | |
7701 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7702 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7703 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7704 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7705 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7706 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7707 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7708 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7710 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7711 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7712 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7713 | ( |
7714 | cat <<\_ASBOX | |
7715 | ## ------------------------------------------ ## | |
7716 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7717 | ## ------------------------------------------ ## | |
7718 | _ASBOX | |
7719 | ) | | |
7720 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7721 | ;; |
7722 | esac | |
b4e70030 JB |
7723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7727 | else | |
7728 | eval "$as_ac_Header=\$ac_header_preproc" | |
7729 | fi | |
b4e70030 JB |
7730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7732 | |
7733 | fi | |
7734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7735 | cat >>confdefs.h <<_ACEOF | |
7736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7737 | _ACEOF | |
7738 | ||
7739 | fi | |
7740 | ||
7741 | done | |
7742 | ||
7743 | ||
7744 | for ac_header in libunwind-ia64.h | |
7745 | do | |
7746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7752 | fi | |
b4e70030 JB |
7753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7755 | else |
7756 | # Is the header compilable? | |
b4e70030 JB |
7757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7759 | cat >conftest.$ac_ext <<_ACEOF |
7760 | /* confdefs.h. */ | |
7761 | _ACEOF | |
7762 | cat confdefs.h >>conftest.$ac_ext | |
7763 | cat >>conftest.$ac_ext <<_ACEOF | |
7764 | /* end confdefs.h. */ | |
7765 | $ac_includes_default | |
7766 | #include <$ac_header> | |
7767 | _ACEOF | |
7768 | rm -f conftest.$ac_objext | |
7769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7770 | (eval $ac_compile) 2>conftest.er1 | |
7771 | ac_status=$? | |
7772 | grep -v '^ *+' conftest.er1 >conftest.err | |
7773 | rm -f conftest.er1 | |
7774 | cat conftest.err >&5 | |
7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7776 | (exit $ac_status); } && | |
b4e70030 JB |
7777 | { ac_try='test -z "$ac_c_werror_flag" |
7778 | || test ! -s conftest.err' | |
bec39cab AC |
7779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7780 | (eval $ac_try) 2>&5 | |
7781 | ac_status=$? | |
7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7783 | (exit $ac_status); }; } && | |
7784 | { ac_try='test -s conftest.$ac_objext' | |
7785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7786 | (eval $ac_try) 2>&5 | |
7787 | ac_status=$? | |
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7789 | (exit $ac_status); }; }; then | |
7790 | ac_header_compiler=yes | |
7791 | else | |
7792 | echo "$as_me: failed program was:" >&5 | |
7793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7794 | ||
b4e70030 | 7795 | ac_header_compiler=no |
bec39cab AC |
7796 | fi |
7797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7799 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7800 | |
7801 | # Is the header present? | |
b4e70030 JB |
7802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7804 | cat >conftest.$ac_ext <<_ACEOF |
7805 | /* confdefs.h. */ | |
7806 | _ACEOF | |
7807 | cat confdefs.h >>conftest.$ac_ext | |
7808 | cat >>conftest.$ac_ext <<_ACEOF | |
7809 | /* end confdefs.h. */ | |
7810 | #include <$ac_header> | |
7811 | _ACEOF | |
7812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7814 | ac_status=$? | |
7815 | grep -v '^ *+' conftest.er1 >conftest.err | |
7816 | rm -f conftest.er1 | |
7817 | cat conftest.err >&5 | |
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7819 | (exit $ac_status); } >/dev/null; then | |
7820 | if test -s conftest.err; then | |
7821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7823 | else | |
7824 | ac_cpp_err= | |
7825 | fi | |
7826 | else | |
7827 | ac_cpp_err=yes | |
7828 | fi | |
7829 | if test -z "$ac_cpp_err"; then | |
7830 | ac_header_preproc=yes | |
7831 | else | |
7832 | echo "$as_me: failed program was:" >&5 | |
7833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7834 | ||
7835 | ac_header_preproc=no | |
7836 | fi | |
7837 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7839 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7840 | |
7841 | # So? What about this header? | |
7842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7843 | yes:no: ) | |
7844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7848 | ac_header_preproc=yes | |
7849 | ;; | |
7850 | no:yes:* ) | |
7851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7863 | ( |
7864 | cat <<\_ASBOX | |
7865 | ## ------------------------------------------ ## | |
7866 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7867 | ## ------------------------------------------ ## | |
7868 | _ASBOX | |
7869 | ) | | |
7870 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7871 | ;; |
7872 | esac | |
b4e70030 JB |
7873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7877 | else | |
7878 | eval "$as_ac_Header=\$ac_header_preproc" | |
7879 | fi | |
b4e70030 JB |
7880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7882 | |
7883 | fi | |
7884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7885 | cat >>confdefs.h <<_ACEOF | |
7886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7887 | _ACEOF | |
7888 | ||
7889 | fi | |
7890 | ||
7891 | done | |
7892 | ||
7893 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
7894 | enable_libunwind=yes; | |
7895 | fi | |
7896 | ||
b4e70030 | 7897 | fi; |
bec39cab AC |
7898 | |
7899 | if test x"$enable_libunwind" = xyes; then | |
7900 | ||
7901 | for ac_header in libunwind.h | |
7902 | do | |
7903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7905 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7909 | fi | |
b4e70030 JB |
7910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7912 | else |
7913 | # Is the header compilable? | |
b4e70030 JB |
7914 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7915 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7916 | cat >conftest.$ac_ext <<_ACEOF |
7917 | /* confdefs.h. */ | |
7918 | _ACEOF | |
7919 | cat confdefs.h >>conftest.$ac_ext | |
7920 | cat >>conftest.$ac_ext <<_ACEOF | |
7921 | /* end confdefs.h. */ | |
7922 | $ac_includes_default | |
7923 | #include <$ac_header> | |
7924 | _ACEOF | |
7925 | rm -f conftest.$ac_objext | |
7926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7927 | (eval $ac_compile) 2>conftest.er1 | |
7928 | ac_status=$? | |
7929 | grep -v '^ *+' conftest.er1 >conftest.err | |
7930 | rm -f conftest.er1 | |
7931 | cat conftest.err >&5 | |
7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7933 | (exit $ac_status); } && | |
b4e70030 JB |
7934 | { ac_try='test -z "$ac_c_werror_flag" |
7935 | || test ! -s conftest.err' | |
bec39cab AC |
7936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7937 | (eval $ac_try) 2>&5 | |
7938 | ac_status=$? | |
7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7940 | (exit $ac_status); }; } && | |
7941 | { ac_try='test -s conftest.$ac_objext' | |
7942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7943 | (eval $ac_try) 2>&5 | |
7944 | ac_status=$? | |
7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7946 | (exit $ac_status); }; }; then | |
7947 | ac_header_compiler=yes | |
7948 | else | |
7949 | echo "$as_me: failed program was:" >&5 | |
7950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7951 | ||
b4e70030 | 7952 | ac_header_compiler=no |
bec39cab AC |
7953 | fi |
7954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7955 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7956 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7957 | |
7958 | # Is the header present? | |
b4e70030 JB |
7959 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7960 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7961 | cat >conftest.$ac_ext <<_ACEOF |
7962 | /* confdefs.h. */ | |
7963 | _ACEOF | |
7964 | cat confdefs.h >>conftest.$ac_ext | |
7965 | cat >>conftest.$ac_ext <<_ACEOF | |
7966 | /* end confdefs.h. */ | |
7967 | #include <$ac_header> | |
7968 | _ACEOF | |
7969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7971 | ac_status=$? | |
7972 | grep -v '^ *+' conftest.er1 >conftest.err | |
7973 | rm -f conftest.er1 | |
7974 | cat conftest.err >&5 | |
7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7976 | (exit $ac_status); } >/dev/null; then | |
7977 | if test -s conftest.err; then | |
7978 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7980 | else | |
7981 | ac_cpp_err= | |
7982 | fi | |
7983 | else | |
7984 | ac_cpp_err=yes | |
7985 | fi | |
7986 | if test -z "$ac_cpp_err"; then | |
7987 | ac_header_preproc=yes | |
7988 | else | |
7989 | echo "$as_me: failed program was:" >&5 | |
7990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7991 | ||
7992 | ac_header_preproc=no | |
7993 | fi | |
7994 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7996 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7997 | |
7998 | # So? What about this header? | |
7999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8000 | yes:no: ) | |
8001 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8002 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8004 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8005 | ac_header_preproc=yes | |
8006 | ;; | |
8007 | no:yes:* ) | |
8008 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8009 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8010 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8011 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8012 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8013 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8014 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8015 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8017 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8018 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8019 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8020 | ( |
8021 | cat <<\_ASBOX | |
8022 | ## ------------------------------------------ ## | |
8023 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8024 | ## ------------------------------------------ ## | |
8025 | _ASBOX | |
8026 | ) | | |
8027 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8028 | ;; |
8029 | esac | |
b4e70030 JB |
8030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8034 | else | |
8035 | eval "$as_ac_Header=\$ac_header_preproc" | |
8036 | fi | |
b4e70030 JB |
8037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8039 | |
8040 | fi | |
8041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8042 | cat >>confdefs.h <<_ACEOF | |
8043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8044 | _ACEOF | |
8045 | ||
8046 | fi | |
8047 | ||
8048 | done | |
8049 | ||
8050 | ||
8051 | for ac_header in libunwind-ia64.h | |
8052 | do | |
8053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8059 | fi | |
b4e70030 JB |
8060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8062 | else |
8063 | # Is the header compilable? | |
b4e70030 JB |
8064 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8066 | cat >conftest.$ac_ext <<_ACEOF |
8067 | /* confdefs.h. */ | |
8068 | _ACEOF | |
8069 | cat confdefs.h >>conftest.$ac_ext | |
8070 | cat >>conftest.$ac_ext <<_ACEOF | |
8071 | /* end confdefs.h. */ | |
8072 | $ac_includes_default | |
8073 | #include <$ac_header> | |
8074 | _ACEOF | |
8075 | rm -f conftest.$ac_objext | |
8076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8077 | (eval $ac_compile) 2>conftest.er1 | |
8078 | ac_status=$? | |
8079 | grep -v '^ *+' conftest.er1 >conftest.err | |
8080 | rm -f conftest.er1 | |
8081 | cat conftest.err >&5 | |
8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8083 | (exit $ac_status); } && | |
b4e70030 JB |
8084 | { ac_try='test -z "$ac_c_werror_flag" |
8085 | || test ! -s conftest.err' | |
bec39cab AC |
8086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8087 | (eval $ac_try) 2>&5 | |
8088 | ac_status=$? | |
8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8090 | (exit $ac_status); }; } && | |
8091 | { ac_try='test -s conftest.$ac_objext' | |
8092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8093 | (eval $ac_try) 2>&5 | |
8094 | ac_status=$? | |
8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8096 | (exit $ac_status); }; }; then | |
8097 | ac_header_compiler=yes | |
8098 | else | |
8099 | echo "$as_me: failed program was:" >&5 | |
8100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8101 | ||
b4e70030 | 8102 | ac_header_compiler=no |
bec39cab AC |
8103 | fi |
8104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8106 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8107 | |
8108 | # Is the header present? | |
b4e70030 JB |
8109 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8111 | cat >conftest.$ac_ext <<_ACEOF |
8112 | /* confdefs.h. */ | |
8113 | _ACEOF | |
8114 | cat confdefs.h >>conftest.$ac_ext | |
8115 | cat >>conftest.$ac_ext <<_ACEOF | |
8116 | /* end confdefs.h. */ | |
8117 | #include <$ac_header> | |
8118 | _ACEOF | |
8119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8121 | ac_status=$? | |
8122 | grep -v '^ *+' conftest.er1 >conftest.err | |
8123 | rm -f conftest.er1 | |
8124 | cat conftest.err >&5 | |
8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8126 | (exit $ac_status); } >/dev/null; then | |
8127 | if test -s conftest.err; then | |
8128 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8129 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8130 | else | |
8131 | ac_cpp_err= | |
8132 | fi | |
8133 | else | |
8134 | ac_cpp_err=yes | |
8135 | fi | |
8136 | if test -z "$ac_cpp_err"; then | |
8137 | ac_header_preproc=yes | |
8138 | else | |
8139 | echo "$as_me: failed program was:" >&5 | |
8140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8141 | ||
8142 | ac_header_preproc=no | |
8143 | fi | |
8144 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
8145 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8146 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8147 | |
8148 | # So? What about this header? | |
8149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8150 | yes:no: ) | |
8151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8155 | ac_header_preproc=yes | |
8156 | ;; | |
8157 | no:yes:* ) | |
8158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8170 | ( |
8171 | cat <<\_ASBOX | |
8172 | ## ------------------------------------------ ## | |
8173 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8174 | ## ------------------------------------------ ## | |
8175 | _ASBOX | |
8176 | ) | | |
8177 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8178 | ;; |
8179 | esac | |
b4e70030 JB |
8180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8184 | else | |
8185 | eval "$as_ac_Header=\$ac_header_preproc" | |
8186 | fi | |
b4e70030 JB |
8187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8189 | |
8190 | fi | |
8191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8192 | cat >>confdefs.h <<_ACEOF | |
8193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8194 | _ACEOF | |
8195 | ||
8196 | fi | |
8197 | ||
8198 | done | |
8199 | ||
60ca704f SE |
8200 | |
8201 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
8202 | #define HAVE_LIBUNWIND 1 |
8203 | _ACEOF | |
8204 | ||
8205 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
8206 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
8207 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
8208 | fi | |
8209 | ||
8210 | # Profiling support. | |
b4e70030 | 8211 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 8212 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
8213 | enableval="$enable_profiling" |
8214 | case $enableval in | |
bec39cab AC |
8215 | yes | no) |
8216 | ;; | |
8217 | *) | |
8218 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
8219 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
8220 | { (exit 1); exit 1; }; } ;; | |
8221 | esac | |
8222 | else | |
8223 | enable_profiling=no | |
b4e70030 | 8224 | fi; |
bec39cab AC |
8225 | |
8226 | ||
8227 | ||
8228 | for ac_func in monstartup _mcleanup | |
8229 | do | |
8230 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
8231 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8232 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8233 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
8234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8235 | else | |
8236 | cat >conftest.$ac_ext <<_ACEOF | |
8237 | /* confdefs.h. */ | |
8238 | _ACEOF | |
8239 | cat confdefs.h >>conftest.$ac_ext | |
8240 | cat >>conftest.$ac_ext <<_ACEOF | |
8241 | /* end confdefs.h. */ | |
8242 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8244 | #define $ac_func innocuous_$ac_func | |
8245 | ||
8246 | /* System header to define __stub macros and hopefully few prototypes, | |
8247 | which can conflict with char $ac_func (); below. | |
8248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8249 | <limits.h> exists even on freestanding compilers. */ | |
8250 | ||
8251 | #ifdef __STDC__ | |
8252 | # include <limits.h> | |
8253 | #else | |
8254 | # include <assert.h> | |
8255 | #endif | |
8256 | ||
8257 | #undef $ac_func | |
8258 | ||
b4e70030 | 8259 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8260 | #ifdef __cplusplus |
8261 | extern "C" | |
b4e70030 | 8262 | { |
bec39cab | 8263 | #endif |
b4e70030 JB |
8264 | /* We use char because int might match the return type of a gcc2 |
8265 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8266 | char $ac_func (); |
8267 | /* The GNU C library defines this for functions which it implements | |
8268 | to always fail with ENOSYS. Some functions are actually named | |
8269 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 8270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 8271 | choke me |
b4e70030 JB |
8272 | #else |
8273 | char (*f) () = $ac_func; | |
8274 | #endif | |
8275 | #ifdef __cplusplus | |
8276 | } | |
bec39cab AC |
8277 | #endif |
8278 | ||
8279 | int | |
8280 | main () | |
8281 | { | |
b4e70030 | 8282 | return f != $ac_func; |
bec39cab AC |
8283 | ; |
8284 | return 0; | |
8285 | } | |
8286 | _ACEOF | |
8287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8289 | (eval $ac_link) 2>conftest.er1 | |
8290 | ac_status=$? | |
8291 | grep -v '^ *+' conftest.er1 >conftest.err | |
8292 | rm -f conftest.er1 | |
8293 | cat conftest.err >&5 | |
8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8295 | (exit $ac_status); } && | |
b4e70030 JB |
8296 | { ac_try='test -z "$ac_c_werror_flag" |
8297 | || test ! -s conftest.err' | |
bec39cab AC |
8298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8299 | (eval $ac_try) 2>&5 | |
8300 | ac_status=$? | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); }; } && | |
8303 | { ac_try='test -s conftest$ac_exeext' | |
8304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8305 | (eval $ac_try) 2>&5 | |
8306 | ac_status=$? | |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8308 | (exit $ac_status); }; }; then | |
8309 | eval "$as_ac_var=yes" | |
8310 | else | |
8311 | echo "$as_me: failed program was:" >&5 | |
8312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8313 | ||
b4e70030 | 8314 | eval "$as_ac_var=no" |
bec39cab AC |
8315 | fi |
8316 | rm -f conftest.err conftest.$ac_objext \ | |
8317 | conftest$ac_exeext conftest.$ac_ext | |
8318 | fi | |
b4e70030 JB |
8319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8320 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
8321 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8322 | cat >>confdefs.h <<_ACEOF | |
8323 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8324 | _ACEOF | |
8325 | ||
8326 | fi | |
8327 | done | |
8328 | ||
b4e70030 JB |
8329 | echo "$as_me:$LINENO: checking for _etext" >&5 |
8330 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
8331 | if test "${ac_cv_var__etext+set}" = set; then |
8332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8333 | else | |
8334 | cat >conftest.$ac_ext <<_ACEOF | |
8335 | /* confdefs.h. */ | |
8336 | _ACEOF | |
8337 | cat confdefs.h >>conftest.$ac_ext | |
8338 | cat >>conftest.$ac_ext <<_ACEOF | |
8339 | /* end confdefs.h. */ | |
8340 | #include <stdlib.h> | |
8341 | extern char _etext; | |
8342 | ||
8343 | int | |
8344 | main () | |
8345 | { | |
8346 | free (&_etext); | |
8347 | ; | |
8348 | return 0; | |
8349 | } | |
8350 | _ACEOF | |
8351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8353 | (eval $ac_link) 2>conftest.er1 | |
8354 | ac_status=$? | |
8355 | grep -v '^ *+' conftest.er1 >conftest.err | |
8356 | rm -f conftest.er1 | |
8357 | cat conftest.err >&5 | |
8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8359 | (exit $ac_status); } && | |
b4e70030 JB |
8360 | { ac_try='test -z "$ac_c_werror_flag" |
8361 | || test ! -s conftest.err' | |
bec39cab AC |
8362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8363 | (eval $ac_try) 2>&5 | |
8364 | ac_status=$? | |
8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8366 | (exit $ac_status); }; } && | |
8367 | { ac_try='test -s conftest$ac_exeext' | |
8368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8369 | (eval $ac_try) 2>&5 | |
8370 | ac_status=$? | |
8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8372 | (exit $ac_status); }; }; then | |
8373 | ac_cv_var__etext=yes | |
8374 | else | |
8375 | echo "$as_me: failed program was:" >&5 | |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8377 | ||
b4e70030 | 8378 | ac_cv_var__etext=no |
bec39cab AC |
8379 | fi |
8380 | rm -f conftest.err conftest.$ac_objext \ | |
8381 | conftest$ac_exeext conftest.$ac_ext | |
8382 | fi | |
b4e70030 JB |
8383 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
8384 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
8385 | if test $ac_cv_var__etext = yes; then |
8386 | ||
8387 | cat >>confdefs.h <<\_ACEOF | |
8388 | #define HAVE__ETEXT 1 | |
8389 | _ACEOF | |
8390 | ||
01fe12f6 JB |
8391 | fi |
8392 | echo "$as_me:$LINENO: checking for etext" >&5 | |
8393 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 | |
8394 | if test "${ac_cv_var_etext+set}" = set; then | |
8395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8396 | else | |
8397 | cat >conftest.$ac_ext <<_ACEOF | |
8398 | /* confdefs.h. */ | |
8399 | _ACEOF | |
8400 | cat confdefs.h >>conftest.$ac_ext | |
8401 | cat >>conftest.$ac_ext <<_ACEOF | |
8402 | /* end confdefs.h. */ | |
8403 | #include <stdlib.h> | |
8404 | extern char etext; | |
8405 | ||
8406 | int | |
8407 | main () | |
8408 | { | |
8409 | free (&etext); | |
8410 | ; | |
8411 | return 0; | |
8412 | } | |
8413 | _ACEOF | |
8414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8416 | (eval $ac_link) 2>conftest.er1 | |
8417 | ac_status=$? | |
8418 | grep -v '^ *+' conftest.er1 >conftest.err | |
8419 | rm -f conftest.er1 | |
8420 | cat conftest.err >&5 | |
8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8422 | (exit $ac_status); } && | |
8423 | { ac_try='test -z "$ac_c_werror_flag" | |
8424 | || test ! -s conftest.err' | |
8425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8426 | (eval $ac_try) 2>&5 | |
8427 | ac_status=$? | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8429 | (exit $ac_status); }; } && | |
8430 | { ac_try='test -s conftest$ac_exeext' | |
8431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8432 | (eval $ac_try) 2>&5 | |
8433 | ac_status=$? | |
8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8435 | (exit $ac_status); }; }; then | |
8436 | ac_cv_var_etext=yes | |
8437 | else | |
8438 | echo "$as_me: failed program was:" >&5 | |
8439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8440 | ||
8441 | ac_cv_var_etext=no | |
8442 | fi | |
8443 | rm -f conftest.err conftest.$ac_objext \ | |
8444 | conftest$ac_exeext conftest.$ac_ext | |
8445 | fi | |
8446 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 | |
8447 | echo "${ECHO_T}$ac_cv_var_etext" >&6 | |
8448 | if test $ac_cv_var_etext = yes; then | |
8449 | ||
8450 | cat >>confdefs.h <<\_ACEOF | |
8451 | #define HAVE_ETEXT 1 | |
8452 | _ACEOF | |
8453 | ||
bec39cab AC |
8454 | fi |
8455 | if test "$enable_profiling" = yes ; then | |
8456 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
8457 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
8458 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
8459 | { (exit 1); exit 1; }; } | |
8460 | fi | |
8461 | PROFILE_CFLAGS=-pg | |
8462 | OLD_CFLAGS="$CFLAGS" | |
8463 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
8464 | ||
b4e70030 JB |
8465 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
8466 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
8467 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 8469 | else |
bec39cab AC |
8470 | cat >conftest.$ac_ext <<_ACEOF |
8471 | /* confdefs.h. */ | |
8472 | _ACEOF | |
8473 | cat confdefs.h >>conftest.$ac_ext | |
8474 | cat >>conftest.$ac_ext <<_ACEOF | |
8475 | /* end confdefs.h. */ | |
8476 | ||
8477 | int | |
8478 | main () | |
8479 | { | |
8480 | int x; | |
8481 | ; | |
8482 | return 0; | |
8483 | } | |
8484 | _ACEOF | |
8485 | rm -f conftest.$ac_objext | |
8486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8487 | (eval $ac_compile) 2>conftest.er1 | |
8488 | ac_status=$? | |
8489 | grep -v '^ *+' conftest.er1 >conftest.err | |
8490 | rm -f conftest.er1 | |
8491 | cat conftest.err >&5 | |
8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8493 | (exit $ac_status); } && | |
b4e70030 JB |
8494 | { ac_try='test -z "$ac_c_werror_flag" |
8495 | || test ! -s conftest.err' | |
bec39cab AC |
8496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8497 | (eval $ac_try) 2>&5 | |
8498 | ac_status=$? | |
8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8500 | (exit $ac_status); }; } && | |
8501 | { ac_try='test -s conftest.$ac_objext' | |
8502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8503 | (eval $ac_try) 2>&5 | |
8504 | ac_status=$? | |
8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8506 | (exit $ac_status); }; }; then | |
8507 | ac_cv_cc_supports_pg=yes | |
8508 | else | |
8509 | echo "$as_me: failed program was:" >&5 | |
8510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8511 | ||
b4e70030 | 8512 | ac_cv_cc_supports_pg=no |
bec39cab AC |
8513 | fi |
8514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8515 | fi | |
b4e70030 JB |
8516 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
8517 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
8518 | |
8519 | if test $ac_cv_cc_supports_pg = no; then | |
8520 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
8521 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
8522 | { (exit 1); exit 1; }; } | |
8523 | fi | |
8524 | ||
8525 | CFLAGS="$OLD_CFLAGS" | |
8526 | fi | |
8527 | ||
8528 | # --------------------- # | |
8529 | # Checks for programs. # | |
8530 | # --------------------- # | |
8531 | ||
8532 | for ac_prog in gawk mawk nawk awk | |
8533 | do | |
8534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8535 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8538 | if test "${ac_cv_prog_AWK+set}" = set; then |
8539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8540 | else | |
8541 | if test -n "$AWK"; then | |
8542 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
8543 | else | |
8544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8545 | for as_dir in $PATH | |
8546 | do | |
8547 | IFS=$as_save_IFS | |
8548 | test -z "$as_dir" && as_dir=. | |
8549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8551 | ac_cv_prog_AWK="$ac_prog" |
8552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8553 | break 2 | |
8554 | fi | |
8555 | done | |
8556 | done | |
8557 | ||
8558 | fi | |
8559 | fi | |
8560 | AWK=$ac_cv_prog_AWK | |
8561 | if test -n "$AWK"; then | |
b4e70030 JB |
8562 | echo "$as_me:$LINENO: result: $AWK" >&5 |
8563 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 8564 | else |
b4e70030 JB |
8565 | echo "$as_me:$LINENO: result: no" >&5 |
8566 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8567 | fi |
8568 | ||
8569 | test -n "$AWK" && break | |
8570 | done | |
8571 | ||
8572 | # Find a good install program. We prefer a C program (faster), | |
8573 | # so one script is as good as another. But avoid the broken or | |
8574 | # incompatible versions: | |
8575 | # SysV /etc/install, /usr/sbin/install | |
8576 | # SunOS /usr/etc/install | |
8577 | # IRIX /sbin/install | |
8578 | # AIX /bin/install | |
8579 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
8580 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8581 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8582 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8583 | # OS/2's system install, which has a completely different semantic | |
8584 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
8585 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8586 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
8587 | if test -z "$INSTALL"; then |
8588 | if test "${ac_cv_path_install+set}" = set; then | |
8589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8590 | else | |
8591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8592 | for as_dir in $PATH | |
8593 | do | |
8594 | IFS=$as_save_IFS | |
8595 | test -z "$as_dir" && as_dir=. | |
8596 | # Account for people who put trailing slashes in PATH elements. | |
8597 | case $as_dir/ in | |
8598 | ./ | .// | /cC/* | \ | |
8599 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8600 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8601 | /usr/ucb/* ) ;; | |
c906108c | 8602 | *) |
bec39cab AC |
8603 | # OSF1 and SCO ODT 3.0 have their own names for install. |
8604 | # Don't use installbsd from OSF since it installs stuff as root | |
8605 | # by default. | |
8606 | for ac_prog in ginstall scoinst install; do | |
8607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8608 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
8609 | if test $ac_prog = install && |
8610 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8611 | # AIX install. It has an incompatible calling convention. | |
8612 | : | |
8613 | elif test $ac_prog = install && | |
8614 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8615 | # program-specific install script used by HP pwplus--don't use. | |
8616 | : | |
8617 | else | |
8618 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
8619 | break 3 | |
8620 | fi | |
8621 | fi | |
8622 | done | |
8623 | done | |
8624 | ;; | |
c906108c | 8625 | esac |
bec39cab AC |
8626 | done |
8627 | ||
8628 | ||
8629 | fi | |
8630 | if test "${ac_cv_path_install+set}" = set; then | |
8631 | INSTALL=$ac_cv_path_install | |
8632 | else | |
b4e70030 JB |
8633 | # As a last resort, use the slow shell script. We don't cache a |
8634 | # path for INSTALL within a source directory, because that will | |
bec39cab | 8635 | # break other packages using the cache if that directory is |
b4e70030 | 8636 | # removed, or if the path is relative. |
bec39cab AC |
8637 | INSTALL=$ac_install_sh |
8638 | fi | |
8639 | fi | |
b4e70030 JB |
8640 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8641 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
8642 | |
8643 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8644 | # It thinks the first close brace ends the variable substitution. | |
8645 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8646 | ||
8647 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
8648 | ||
8649 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8650 | ||
b4e70030 JB |
8651 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
8652 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
8653 | LN_S=$as_ln_s |
8654 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
8655 | echo "$as_me:$LINENO: result: yes" >&5 |
8656 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 8657 | else |
b4e70030 JB |
8658 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
8659 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
8660 | fi |
8661 | ||
8662 | if test -n "$ac_tool_prefix"; then | |
8663 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8664 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
8665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8667 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
8668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8669 | else | |
8670 | if test -n "$RANLIB"; then | |
8671 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8672 | else | |
8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8674 | for as_dir in $PATH | |
8675 | do | |
8676 | IFS=$as_save_IFS | |
8677 | test -z "$as_dir" && as_dir=. | |
8678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8680 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8682 | break 2 | |
8683 | fi | |
8684 | done | |
8685 | done | |
8686 | ||
8687 | fi | |
8688 | fi | |
8689 | RANLIB=$ac_cv_prog_RANLIB | |
8690 | if test -n "$RANLIB"; then | |
b4e70030 JB |
8691 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8692 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 8693 | else |
b4e70030 JB |
8694 | echo "$as_me:$LINENO: result: no" >&5 |
8695 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8696 | fi |
8697 | ||
8698 | fi | |
8699 | if test -z "$ac_cv_prog_RANLIB"; then | |
8700 | ac_ct_RANLIB=$RANLIB | |
8701 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8702 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
8703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8705 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
8706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8707 | else | |
8708 | if test -n "$ac_ct_RANLIB"; then | |
8709 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8710 | else | |
8711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8712 | for as_dir in $PATH | |
8713 | do | |
8714 | IFS=$as_save_IFS | |
8715 | test -z "$as_dir" && as_dir=. | |
8716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8718 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
8719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8720 | break 2 | |
8721 | fi | |
8722 | done | |
8723 | done | |
8724 | ||
b4e70030 | 8725 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
8726 | fi |
8727 | fi | |
8728 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8729 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
8730 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
8731 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 8732 | else |
b4e70030 JB |
8733 | echo "$as_me:$LINENO: result: no" >&5 |
8734 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8735 | fi |
8736 | ||
b4e70030 | 8737 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
8738 | else |
8739 | RANLIB="$ac_cv_prog_RANLIB" | |
8740 | fi | |
8741 | ||
8742 | for ac_prog in 'bison -y' byacc | |
8743 | do | |
8744 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8745 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8748 | if test "${ac_cv_prog_YACC+set}" = set; then |
8749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8750 | else | |
8751 | if test -n "$YACC"; then | |
8752 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8753 | else | |
8754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8755 | for as_dir in $PATH | |
8756 | do | |
8757 | IFS=$as_save_IFS | |
8758 | test -z "$as_dir" && as_dir=. | |
8759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8761 | ac_cv_prog_YACC="$ac_prog" |
8762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8763 | break 2 | |
8764 | fi | |
8765 | done | |
8766 | done | |
8767 | ||
8768 | fi | |
8769 | fi | |
8770 | YACC=$ac_cv_prog_YACC | |
8771 | if test -n "$YACC"; then | |
b4e70030 JB |
8772 | echo "$as_me:$LINENO: result: $YACC" >&5 |
8773 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 8774 | else |
b4e70030 JB |
8775 | echo "$as_me:$LINENO: result: no" >&5 |
8776 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8777 | fi |
8778 | ||
8779 | test -n "$YACC" && break | |
8780 | done | |
8781 | test -n "$YACC" || YACC="yacc" | |
8782 | ||
8783 | ||
8784 | if test -n "$ac_tool_prefix"; then | |
8785 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
8786 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
8787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8789 | if test "${ac_cv_prog_AR+set}" = set; then |
8790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8791 | else | |
8792 | if test -n "$AR"; then | |
8793 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8794 | else | |
8795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8796 | for as_dir in $PATH | |
8797 | do | |
8798 | IFS=$as_save_IFS | |
8799 | test -z "$as_dir" && as_dir=. | |
8800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8802 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
8803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8804 | break 2 | |
8805 | fi | |
8806 | done | |
8807 | done | |
8808 | ||
8809 | fi | |
8810 | fi | |
8811 | AR=$ac_cv_prog_AR | |
8812 | if test -n "$AR"; then | |
b4e70030 JB |
8813 | echo "$as_me:$LINENO: result: $AR" >&5 |
8814 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 8815 | else |
b4e70030 JB |
8816 | echo "$as_me:$LINENO: result: no" >&5 |
8817 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8818 | fi |
8819 | ||
8820 | fi | |
8821 | if test -z "$ac_cv_prog_AR"; then | |
8822 | ac_ct_AR=$AR | |
8823 | # Extract the first word of "ar", so it can be a program name with args. | |
8824 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
8825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8827 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
8828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8829 | else | |
8830 | if test -n "$ac_ct_AR"; then | |
8831 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8832 | else | |
8833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8834 | for as_dir in $PATH | |
8835 | do | |
8836 | IFS=$as_save_IFS | |
8837 | test -z "$as_dir" && as_dir=. | |
8838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8840 | ac_cv_prog_ac_ct_AR="ar" |
8841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8842 | break 2 | |
8843 | fi | |
8844 | done | |
8845 | done | |
8846 | ||
8847 | fi | |
8848 | fi | |
8849 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8850 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
8851 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
8852 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 8853 | else |
b4e70030 JB |
8854 | echo "$as_me:$LINENO: result: no" >&5 |
8855 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8856 | fi |
8857 | ||
b4e70030 | 8858 | AR=$ac_ct_AR |
bec39cab AC |
8859 | else |
8860 | AR="$ac_cv_prog_AR" | |
8861 | fi | |
8862 | ||
8863 | if test -n "$ac_tool_prefix"; then | |
8864 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
8865 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
8866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8868 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
8869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8870 | else | |
8871 | if test -n "$DLLTOOL"; then | |
8872 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8873 | else | |
8874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8875 | for as_dir in $PATH | |
8876 | do | |
8877 | IFS=$as_save_IFS | |
8878 | test -z "$as_dir" && as_dir=. | |
8879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8881 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
8882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8883 | break 2 | |
8884 | fi | |
8885 | done | |
8886 | done | |
8887 | ||
8888 | fi | |
8889 | fi | |
8890 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8891 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
8892 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
8893 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 8894 | else |
b4e70030 JB |
8895 | echo "$as_me:$LINENO: result: no" >&5 |
8896 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8897 | fi |
8898 | ||
8899 | fi | |
8900 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
8901 | ac_ct_DLLTOOL=$DLLTOOL | |
8902 | # Extract the first word of "dlltool", so it can be a program name with args. | |
8903 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
8904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8906 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
8907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8908 | else | |
8909 | if test -n "$ac_ct_DLLTOOL"; then | |
8910 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
8911 | else | |
8912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8913 | for as_dir in $PATH | |
8914 | do | |
8915 | IFS=$as_save_IFS | |
8916 | test -z "$as_dir" && as_dir=. | |
8917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8919 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
8920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8921 | break 2 | |
8922 | fi | |
8923 | done | |
8924 | done | |
8925 | ||
8926 | fi | |
8927 | fi | |
8928 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
8929 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
8930 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
8931 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 8932 | else |
b4e70030 JB |
8933 | echo "$as_me:$LINENO: result: no" >&5 |
8934 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8935 | fi |
8936 | ||
b4e70030 | 8937 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
8938 | else |
8939 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
8940 | fi | |
8941 | ||
8942 | if test -n "$ac_tool_prefix"; then | |
8943 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
8944 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
8945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8947 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8949 | else | |
8950 | if test -n "$WINDRES"; then | |
8951 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8952 | else | |
8953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8954 | for as_dir in $PATH | |
8955 | do | |
8956 | IFS=$as_save_IFS | |
8957 | test -z "$as_dir" && as_dir=. | |
8958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8960 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
8961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8962 | break 2 | |
8963 | fi | |
8964 | done | |
8965 | done | |
8966 | ||
8967 | fi | |
8968 | fi | |
8969 | WINDRES=$ac_cv_prog_WINDRES | |
8970 | if test -n "$WINDRES"; then | |
b4e70030 JB |
8971 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
8972 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 8973 | else |
b4e70030 JB |
8974 | echo "$as_me:$LINENO: result: no" >&5 |
8975 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8976 | fi |
8977 | ||
8978 | fi | |
8979 | if test -z "$ac_cv_prog_WINDRES"; then | |
8980 | ac_ct_WINDRES=$WINDRES | |
8981 | # Extract the first word of "windres", so it can be a program name with args. | |
8982 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
8983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8985 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8987 | else | |
8988 | if test -n "$ac_ct_WINDRES"; then | |
8989 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8990 | else | |
8991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8992 | for as_dir in $PATH | |
8993 | do | |
8994 | IFS=$as_save_IFS | |
8995 | test -z "$as_dir" && as_dir=. | |
8996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8998 | ac_cv_prog_ac_ct_WINDRES="windres" |
8999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9000 | break 2 | |
9001 | fi | |
9002 | done | |
9003 | done | |
9004 | ||
9005 | fi | |
9006 | fi | |
9007 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
9008 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
9009 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
9010 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 9011 | else |
b4e70030 JB |
9012 | echo "$as_me:$LINENO: result: no" >&5 |
9013 | echo "${ECHO_T}no" >&6 | |
c906108c | 9014 | fi |
bec39cab | 9015 | |
b4e70030 | 9016 | WINDRES=$ac_ct_WINDRES |
c906108c | 9017 | else |
bec39cab | 9018 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
9019 | fi |
9020 | ||
bec39cab AC |
9021 | |
9022 | # Needed for GNU/Hurd. | |
9023 | if test -n "$ac_tool_prefix"; then | |
9024 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
9025 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
9026 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9028 | if test "${ac_cv_prog_MIG+set}" = set; then |
9029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 9030 | else |
bec39cab AC |
9031 | if test -n "$MIG"; then |
9032 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
9033 | else | |
9034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9035 | for as_dir in $PATH | |
9036 | do | |
9037 | IFS=$as_save_IFS | |
9038 | test -z "$as_dir" && as_dir=. | |
9039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9040 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9041 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
9042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9043 | break 2 | |
9044 | fi | |
9045 | done | |
9046 | done | |
9047 | ||
c906108c | 9048 | fi |
bec39cab AC |
9049 | fi |
9050 | MIG=$ac_cv_prog_MIG | |
9051 | if test -n "$MIG"; then | |
b4e70030 JB |
9052 | echo "$as_me:$LINENO: result: $MIG" >&5 |
9053 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 9054 | else |
b4e70030 JB |
9055 | echo "$as_me:$LINENO: result: no" >&5 |
9056 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
9057 | fi |
9058 | ||
bec39cab AC |
9059 | fi |
9060 | if test -z "$ac_cv_prog_MIG"; then | |
9061 | ac_ct_MIG=$MIG | |
9062 | # Extract the first word of "mig", so it can be a program name with args. | |
9063 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
9064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9066 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
9067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9068 | else | |
9069 | if test -n "$ac_ct_MIG"; then | |
9070 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
9071 | else | |
9072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9073 | for as_dir in $PATH | |
9074 | do | |
9075 | IFS=$as_save_IFS | |
9076 | test -z "$as_dir" && as_dir=. | |
9077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9079 | ac_cv_prog_ac_ct_MIG="mig" |
9080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9081 | break 2 | |
9082 | fi | |
9083 | done | |
9084 | done | |
c906108c | 9085 | |
bec39cab AC |
9086 | fi |
9087 | fi | |
9088 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
9089 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
9090 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
9091 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 9092 | else |
b4e70030 JB |
9093 | echo "$as_me:$LINENO: result: no" >&5 |
9094 | echo "${ECHO_T}no" >&6 | |
bec39cab | 9095 | fi |
c906108c | 9096 | |
b4e70030 | 9097 | MIG=$ac_ct_MIG |
bec39cab AC |
9098 | else |
9099 | MIG="$ac_cv_prog_MIG" | |
9100 | fi | |
c906108c | 9101 | |
c906108c | 9102 | |
bec39cab AC |
9103 | # ---------------------- # |
9104 | # Checks for libraries. # | |
9105 | # ---------------------- # | |
c906108c | 9106 | |
bec39cab | 9107 | # We might need to link with -lm; most simulators need it. |
c906108c | 9108 | |
b4e70030 JB |
9109 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
9110 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
9111 | if test "${ac_cv_lib_m_main+set}" = set; then |
9112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9113 | else | |
9114 | ac_check_lib_save_LIBS=$LIBS | |
9115 | LIBS="-lm $LIBS" | |
9116 | cat >conftest.$ac_ext <<_ACEOF | |
9117 | /* confdefs.h. */ | |
9118 | _ACEOF | |
9119 | cat confdefs.h >>conftest.$ac_ext | |
9120 | cat >>conftest.$ac_ext <<_ACEOF | |
9121 | /* end confdefs.h. */ | |
c906108c | 9122 | |
c906108c | 9123 | |
bec39cab AC |
9124 | int |
9125 | main () | |
9126 | { | |
b4e70030 | 9127 | main (); |
bec39cab AC |
9128 | ; |
9129 | return 0; | |
9130 | } | |
9131 | _ACEOF | |
9132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9134 | (eval $ac_link) 2>conftest.er1 | |
9135 | ac_status=$? | |
9136 | grep -v '^ *+' conftest.er1 >conftest.err | |
9137 | rm -f conftest.er1 | |
9138 | cat conftest.err >&5 | |
9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9140 | (exit $ac_status); } && | |
b4e70030 JB |
9141 | { ac_try='test -z "$ac_c_werror_flag" |
9142 | || test ! -s conftest.err' | |
bec39cab AC |
9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9144 | (eval $ac_try) 2>&5 | |
9145 | ac_status=$? | |
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9147 | (exit $ac_status); }; } && | |
9148 | { ac_try='test -s conftest$ac_exeext' | |
9149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9150 | (eval $ac_try) 2>&5 | |
9151 | ac_status=$? | |
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9153 | (exit $ac_status); }; }; then | |
9154 | ac_cv_lib_m_main=yes | |
9155 | else | |
9156 | echo "$as_me: failed program was:" >&5 | |
9157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9158 | ||
b4e70030 | 9159 | ac_cv_lib_m_main=no |
bec39cab AC |
9160 | fi |
9161 | rm -f conftest.err conftest.$ac_objext \ | |
9162 | conftest$ac_exeext conftest.$ac_ext | |
9163 | LIBS=$ac_check_lib_save_LIBS | |
9164 | fi | |
b4e70030 JB |
9165 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
9166 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
9167 | if test $ac_cv_lib_m_main = yes; then |
9168 | cat >>confdefs.h <<_ACEOF | |
9169 | #define HAVE_LIBM 1 | |
9170 | _ACEOF | |
9171 | ||
9172 | LIBS="-lm $LIBS" | |
c906108c | 9173 | |
c906108c | 9174 | fi |
bec39cab AC |
9175 | |
9176 | ||
9177 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
9178 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
9179 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
9180 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
9181 | echo "$as_me:$LINENO: checking for wctype" >&5 |
9182 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
9183 | if test "${ac_cv_func_wctype+set}" = set; then |
9184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9185 | else | |
9186 | cat >conftest.$ac_ext <<_ACEOF | |
9187 | /* confdefs.h. */ | |
9188 | _ACEOF | |
9189 | cat confdefs.h >>conftest.$ac_ext | |
9190 | cat >>conftest.$ac_ext <<_ACEOF | |
9191 | /* end confdefs.h. */ | |
9192 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
9193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9194 | #define wctype innocuous_wctype | |
9195 | ||
9196 | /* System header to define __stub macros and hopefully few prototypes, | |
9197 | which can conflict with char wctype (); below. | |
9198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9199 | <limits.h> exists even on freestanding compilers. */ | |
9200 | ||
9201 | #ifdef __STDC__ | |
9202 | # include <limits.h> | |
9203 | #else | |
9204 | # include <assert.h> | |
9205 | #endif | |
9206 | ||
9207 | #undef wctype | |
9208 | ||
b4e70030 | 9209 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9210 | #ifdef __cplusplus |
9211 | extern "C" | |
b4e70030 | 9212 | { |
bec39cab | 9213 | #endif |
b4e70030 JB |
9214 | /* We use char because int might match the return type of a gcc2 |
9215 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9216 | char wctype (); |
9217 | /* The GNU C library defines this for functions which it implements | |
9218 | to always fail with ENOSYS. Some functions are actually named | |
9219 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 9220 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 9221 | choke me |
b4e70030 JB |
9222 | #else |
9223 | char (*f) () = wctype; | |
9224 | #endif | |
9225 | #ifdef __cplusplus | |
9226 | } | |
bec39cab AC |
9227 | #endif |
9228 | ||
9229 | int | |
9230 | main () | |
9231 | { | |
b4e70030 | 9232 | return f != wctype; |
bec39cab AC |
9233 | ; |
9234 | return 0; | |
9235 | } | |
9236 | _ACEOF | |
9237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9239 | (eval $ac_link) 2>conftest.er1 | |
9240 | ac_status=$? | |
9241 | grep -v '^ *+' conftest.er1 >conftest.err | |
9242 | rm -f conftest.er1 | |
9243 | cat conftest.err >&5 | |
9244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9245 | (exit $ac_status); } && | |
b4e70030 JB |
9246 | { ac_try='test -z "$ac_c_werror_flag" |
9247 | || test ! -s conftest.err' | |
bec39cab AC |
9248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9249 | (eval $ac_try) 2>&5 | |
9250 | ac_status=$? | |
9251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9252 | (exit $ac_status); }; } && | |
9253 | { ac_try='test -s conftest$ac_exeext' | |
9254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9255 | (eval $ac_try) 2>&5 | |
9256 | ac_status=$? | |
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9258 | (exit $ac_status); }; }; then | |
9259 | ac_cv_func_wctype=yes | |
9260 | else | |
9261 | echo "$as_me: failed program was:" >&5 | |
9262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9263 | ||
b4e70030 | 9264 | ac_cv_func_wctype=no |
bec39cab AC |
9265 | fi |
9266 | rm -f conftest.err conftest.$ac_objext \ | |
9267 | conftest$ac_exeext conftest.$ac_ext | |
9268 | fi | |
b4e70030 JB |
9269 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
9270 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
9271 | if test $ac_cv_func_wctype = yes; then |
9272 | : | |
c906108c | 9273 | else |
c906108c | 9274 | |
b4e70030 JB |
9275 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
9276 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
9277 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
9278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9279 | else | |
9280 | ac_check_lib_save_LIBS=$LIBS | |
9281 | LIBS="-lw $LIBS" | |
9282 | cat >conftest.$ac_ext <<_ACEOF | |
9283 | /* confdefs.h. */ | |
9284 | _ACEOF | |
9285 | cat confdefs.h >>conftest.$ac_ext | |
9286 | cat >>conftest.$ac_ext <<_ACEOF | |
9287 | /* end confdefs.h. */ | |
c906108c | 9288 | |
b4e70030 | 9289 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9290 | #ifdef __cplusplus |
9291 | extern "C" | |
9292 | #endif | |
b4e70030 JB |
9293 | /* We use char because int might match the return type of a gcc2 |
9294 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9295 | char wctype (); |
9296 | int | |
9297 | main () | |
9298 | { | |
b4e70030 | 9299 | wctype (); |
bec39cab AC |
9300 | ; |
9301 | return 0; | |
9302 | } | |
9303 | _ACEOF | |
9304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9306 | (eval $ac_link) 2>conftest.er1 | |
9307 | ac_status=$? | |
9308 | grep -v '^ *+' conftest.er1 >conftest.err | |
9309 | rm -f conftest.er1 | |
9310 | cat conftest.err >&5 | |
9311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9312 | (exit $ac_status); } && | |
b4e70030 JB |
9313 | { ac_try='test -z "$ac_c_werror_flag" |
9314 | || test ! -s conftest.err' | |
bec39cab AC |
9315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9316 | (eval $ac_try) 2>&5 | |
9317 | ac_status=$? | |
9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9319 | (exit $ac_status); }; } && | |
9320 | { ac_try='test -s conftest$ac_exeext' | |
9321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9322 | (eval $ac_try) 2>&5 | |
9323 | ac_status=$? | |
9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9325 | (exit $ac_status); }; }; then | |
9326 | ac_cv_lib_w_wctype=yes | |
9327 | else | |
9328 | echo "$as_me: failed program was:" >&5 | |
9329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9330 | ||
b4e70030 | 9331 | ac_cv_lib_w_wctype=no |
bec39cab AC |
9332 | fi |
9333 | rm -f conftest.err conftest.$ac_objext \ | |
9334 | conftest$ac_exeext conftest.$ac_ext | |
9335 | LIBS=$ac_check_lib_save_LIBS | |
9336 | fi | |
b4e70030 JB |
9337 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
9338 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
9339 | if test $ac_cv_lib_w_wctype = yes; then |
9340 | cat >>confdefs.h <<_ACEOF | |
9341 | #define HAVE_LIBW 1 | |
9342 | _ACEOF | |
c906108c | 9343 | |
bec39cab | 9344 | LIBS="-lw $LIBS" |
c906108c | 9345 | |
bec39cab | 9346 | fi |
c906108c | 9347 | |
bec39cab | 9348 | fi |
c906108c | 9349 | |
ddc9cd0f | 9350 | |
bec39cab | 9351 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
9352 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
9353 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
9354 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
9355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9356 | else | |
9357 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 9358 | ac_cv_search_gethostbyname=no |
bec39cab AC |
9359 | cat >conftest.$ac_ext <<_ACEOF |
9360 | /* confdefs.h. */ | |
9361 | _ACEOF | |
9362 | cat confdefs.h >>conftest.$ac_ext | |
9363 | cat >>conftest.$ac_ext <<_ACEOF | |
9364 | /* end confdefs.h. */ | |
ddc9cd0f | 9365 | |
b4e70030 | 9366 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9367 | #ifdef __cplusplus |
9368 | extern "C" | |
9369 | #endif | |
b4e70030 JB |
9370 | /* We use char because int might match the return type of a gcc2 |
9371 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9372 | char gethostbyname (); |
9373 | int | |
9374 | main () | |
9375 | { | |
b4e70030 | 9376 | gethostbyname (); |
bec39cab AC |
9377 | ; |
9378 | return 0; | |
9379 | } | |
9380 | _ACEOF | |
b4e70030 | 9381 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9383 | (eval $ac_link) 2>conftest.er1 | |
9384 | ac_status=$? | |
9385 | grep -v '^ *+' conftest.er1 >conftest.err | |
9386 | rm -f conftest.er1 | |
9387 | cat conftest.err >&5 | |
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9389 | (exit $ac_status); } && | |
b4e70030 JB |
9390 | { ac_try='test -z "$ac_c_werror_flag" |
9391 | || test ! -s conftest.err' | |
bec39cab AC |
9392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9393 | (eval $ac_try) 2>&5 | |
9394 | ac_status=$? | |
9395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9396 | (exit $ac_status); }; } && | |
9397 | { ac_try='test -s conftest$ac_exeext' | |
9398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9399 | (eval $ac_try) 2>&5 | |
9400 | ac_status=$? | |
9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9402 | (exit $ac_status); }; }; then | |
b4e70030 | 9403 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
9404 | else |
9405 | echo "$as_me: failed program was:" >&5 | |
9406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 9407 | |
bec39cab AC |
9408 | fi |
9409 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9410 | conftest$ac_exeext conftest.$ac_ext |
9411 | if test "$ac_cv_search_gethostbyname" = no; then | |
9412 | for ac_lib in nsl; do | |
9413 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9414 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
9415 | /* confdefs.h. */ |
9416 | _ACEOF | |
9417 | cat confdefs.h >>conftest.$ac_ext | |
9418 | cat >>conftest.$ac_ext <<_ACEOF | |
9419 | /* end confdefs.h. */ | |
ddc9cd0f | 9420 | |
b4e70030 | 9421 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9422 | #ifdef __cplusplus |
9423 | extern "C" | |
9424 | #endif | |
b4e70030 JB |
9425 | /* We use char because int might match the return type of a gcc2 |
9426 | builtin and then its argument prototype would still apply. */ | |
9427 | char gethostbyname (); | |
bec39cab AC |
9428 | int |
9429 | main () | |
9430 | { | |
b4e70030 | 9431 | gethostbyname (); |
bec39cab AC |
9432 | ; |
9433 | return 0; | |
9434 | } | |
9435 | _ACEOF | |
b4e70030 | 9436 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9438 | (eval $ac_link) 2>conftest.er1 | |
9439 | ac_status=$? | |
9440 | grep -v '^ *+' conftest.er1 >conftest.err | |
9441 | rm -f conftest.er1 | |
9442 | cat conftest.err >&5 | |
9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9444 | (exit $ac_status); } && | |
b4e70030 JB |
9445 | { ac_try='test -z "$ac_c_werror_flag" |
9446 | || test ! -s conftest.err' | |
bec39cab AC |
9447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9448 | (eval $ac_try) 2>&5 | |
9449 | ac_status=$? | |
9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9451 | (exit $ac_status); }; } && | |
9452 | { ac_try='test -s conftest$ac_exeext' | |
9453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9454 | (eval $ac_try) 2>&5 | |
9455 | ac_status=$? | |
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9457 | (exit $ac_status); }; }; then | |
b4e70030 JB |
9458 | ac_cv_search_gethostbyname="-l$ac_lib" |
9459 | break | |
bec39cab AC |
9460 | else |
9461 | echo "$as_me: failed program was:" >&5 | |
9462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9463 | ||
9464 | fi | |
9465 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9466 | conftest$ac_exeext conftest.$ac_ext |
9467 | done | |
bec39cab AC |
9468 | fi |
9469 | LIBS=$ac_func_search_save_LIBS | |
9470 | fi | |
b4e70030 JB |
9471 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
9472 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
9473 | if test "$ac_cv_search_gethostbyname" != no; then | |
9474 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 9475 | |
bec39cab | 9476 | fi |
96baa820 | 9477 | |
c906108c | 9478 | |
b4e70030 JB |
9479 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
9480 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
9481 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
9482 | if test "${ac_cv_search_socketpair+set}" = set; then | |
9483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9484 | else | |
9485 | ac_func_search_save_LIBS=$LIBS | |
9486 | ac_cv_search_socketpair=no | |
9487 | cat >conftest.$ac_ext <<_ACEOF | |
9488 | /* confdefs.h. */ | |
9489 | _ACEOF | |
9490 | cat confdefs.h >>conftest.$ac_ext | |
9491 | cat >>conftest.$ac_ext <<_ACEOF | |
9492 | /* end confdefs.h. */ | |
9493 | ||
9494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9495 | #ifdef __cplusplus | |
9496 | extern "C" | |
9497 | #endif | |
9498 | /* We use char because int might match the return type of a gcc2 | |
9499 | builtin and then its argument prototype would still apply. */ | |
9500 | char socketpair (); | |
9501 | int | |
9502 | main () | |
9503 | { | |
9504 | socketpair (); | |
9505 | ; | |
9506 | return 0; | |
9507 | } | |
9508 | _ACEOF | |
9509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9511 | (eval $ac_link) 2>conftest.er1 | |
9512 | ac_status=$? | |
9513 | grep -v '^ *+' conftest.er1 >conftest.err | |
9514 | rm -f conftest.er1 | |
9515 | cat conftest.err >&5 | |
9516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9517 | (exit $ac_status); } && | |
9518 | { ac_try='test -z "$ac_c_werror_flag" | |
9519 | || test ! -s conftest.err' | |
9520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9521 | (eval $ac_try) 2>&5 | |
9522 | ac_status=$? | |
9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9524 | (exit $ac_status); }; } && | |
9525 | { ac_try='test -s conftest$ac_exeext' | |
9526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9527 | (eval $ac_try) 2>&5 | |
9528 | ac_status=$? | |
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9530 | (exit $ac_status); }; }; then | |
9531 | ac_cv_search_socketpair="none required" | |
9532 | else | |
9533 | echo "$as_me: failed program was:" >&5 | |
9534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9535 | ||
9536 | fi | |
9537 | rm -f conftest.err conftest.$ac_objext \ | |
9538 | conftest$ac_exeext conftest.$ac_ext | |
9539 | if test "$ac_cv_search_socketpair" = no; then | |
9540 | for ac_lib in socket; do | |
9541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9542 | cat >conftest.$ac_ext <<_ACEOF | |
9543 | /* confdefs.h. */ | |
9544 | _ACEOF | |
9545 | cat confdefs.h >>conftest.$ac_ext | |
9546 | cat >>conftest.$ac_ext <<_ACEOF | |
9547 | /* end confdefs.h. */ | |
9548 | ||
9549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9550 | #ifdef __cplusplus | |
9551 | extern "C" | |
9552 | #endif | |
9553 | /* We use char because int might match the return type of a gcc2 | |
9554 | builtin and then its argument prototype would still apply. */ | |
9555 | char socketpair (); | |
9556 | int | |
9557 | main () | |
9558 | { | |
9559 | socketpair (); | |
9560 | ; | |
9561 | return 0; | |
9562 | } | |
9563 | _ACEOF | |
9564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9566 | (eval $ac_link) 2>conftest.er1 | |
9567 | ac_status=$? | |
9568 | grep -v '^ *+' conftest.er1 >conftest.err | |
9569 | rm -f conftest.er1 | |
9570 | cat conftest.err >&5 | |
9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9572 | (exit $ac_status); } && | |
9573 | { ac_try='test -z "$ac_c_werror_flag" | |
9574 | || test ! -s conftest.err' | |
9575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9576 | (eval $ac_try) 2>&5 | |
9577 | ac_status=$? | |
9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9579 | (exit $ac_status); }; } && | |
9580 | { ac_try='test -s conftest$ac_exeext' | |
9581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9582 | (eval $ac_try) 2>&5 | |
9583 | ac_status=$? | |
9584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9585 | (exit $ac_status); }; }; then | |
9586 | ac_cv_search_socketpair="-l$ac_lib" | |
9587 | break | |
9588 | else | |
9589 | echo "$as_me: failed program was:" >&5 | |
9590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9591 | ||
9592 | fi | |
9593 | rm -f conftest.err conftest.$ac_objext \ | |
9594 | conftest$ac_exeext conftest.$ac_ext | |
9595 | done | |
9596 | fi | |
9597 | LIBS=$ac_func_search_save_LIBS | |
9598 | fi | |
9599 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
9600 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
9601 | if test "$ac_cv_search_socketpair" != no; then | |
9602 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
9603 | ||
9604 | fi | |
9605 | ||
9606 | ||
233a11ab CS |
9607 | # Link in zlib if we can. This allows us to read compressed debug sections. |
9608 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
9609 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
9610 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9612 | else | |
9613 | ac_func_search_save_LIBS=$LIBS | |
9614 | ac_cv_search_zlibVersion=no | |
9615 | cat >conftest.$ac_ext <<_ACEOF | |
9616 | /* confdefs.h. */ | |
9617 | _ACEOF | |
9618 | cat confdefs.h >>conftest.$ac_ext | |
9619 | cat >>conftest.$ac_ext <<_ACEOF | |
9620 | /* end confdefs.h. */ | |
9621 | ||
9622 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9623 | #ifdef __cplusplus | |
9624 | extern "C" | |
9625 | #endif | |
9626 | /* We use char because int might match the return type of a gcc2 | |
9627 | builtin and then its argument prototype would still apply. */ | |
9628 | char zlibVersion (); | |
9629 | int | |
9630 | main () | |
9631 | { | |
9632 | zlibVersion (); | |
9633 | ; | |
9634 | return 0; | |
9635 | } | |
9636 | _ACEOF | |
9637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9639 | (eval $ac_link) 2>conftest.er1 | |
9640 | ac_status=$? | |
9641 | grep -v '^ *+' conftest.er1 >conftest.err | |
9642 | rm -f conftest.er1 | |
9643 | cat conftest.err >&5 | |
9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9645 | (exit $ac_status); } && | |
9646 | { ac_try='test -z "$ac_c_werror_flag" | |
9647 | || test ! -s conftest.err' | |
9648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9649 | (eval $ac_try) 2>&5 | |
9650 | ac_status=$? | |
9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9652 | (exit $ac_status); }; } && | |
9653 | { ac_try='test -s conftest$ac_exeext' | |
9654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9655 | (eval $ac_try) 2>&5 | |
9656 | ac_status=$? | |
9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9658 | (exit $ac_status); }; }; then | |
9659 | ac_cv_search_zlibVersion="none required" | |
9660 | else | |
9661 | echo "$as_me: failed program was:" >&5 | |
9662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9663 | ||
9664 | fi | |
9665 | rm -f conftest.err conftest.$ac_objext \ | |
9666 | conftest$ac_exeext conftest.$ac_ext | |
9667 | if test "$ac_cv_search_zlibVersion" = no; then | |
9668 | for ac_lib in z; do | |
9669 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9670 | cat >conftest.$ac_ext <<_ACEOF | |
9671 | /* confdefs.h. */ | |
9672 | _ACEOF | |
9673 | cat confdefs.h >>conftest.$ac_ext | |
9674 | cat >>conftest.$ac_ext <<_ACEOF | |
9675 | /* end confdefs.h. */ | |
9676 | ||
9677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9678 | #ifdef __cplusplus | |
9679 | extern "C" | |
9680 | #endif | |
9681 | /* We use char because int might match the return type of a gcc2 | |
9682 | builtin and then its argument prototype would still apply. */ | |
9683 | char zlibVersion (); | |
9684 | int | |
9685 | main () | |
9686 | { | |
9687 | zlibVersion (); | |
9688 | ; | |
9689 | return 0; | |
9690 | } | |
9691 | _ACEOF | |
9692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9694 | (eval $ac_link) 2>conftest.er1 | |
9695 | ac_status=$? | |
9696 | grep -v '^ *+' conftest.er1 >conftest.err | |
9697 | rm -f conftest.er1 | |
9698 | cat conftest.err >&5 | |
9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9700 | (exit $ac_status); } && | |
9701 | { ac_try='test -z "$ac_c_werror_flag" | |
9702 | || test ! -s conftest.err' | |
9703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9704 | (eval $ac_try) 2>&5 | |
9705 | ac_status=$? | |
9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9707 | (exit $ac_status); }; } && | |
9708 | { ac_try='test -s conftest$ac_exeext' | |
9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9710 | (eval $ac_try) 2>&5 | |
9711 | ac_status=$? | |
9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9713 | (exit $ac_status); }; }; then | |
9714 | ac_cv_search_zlibVersion="-l$ac_lib" | |
9715 | break | |
9716 | else | |
9717 | echo "$as_me: failed program was:" >&5 | |
9718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9719 | ||
9720 | fi | |
9721 | rm -f conftest.err conftest.$ac_objext \ | |
9722 | conftest$ac_exeext conftest.$ac_ext | |
9723 | done | |
9724 | fi | |
9725 | LIBS=$ac_func_search_save_LIBS | |
9726 | fi | |
9727 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
9728 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
9729 | if test "$ac_cv_search_zlibVersion" != no; then | |
9730 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
9731 | ||
9732 | for ac_header in zlib.h | |
9733 | do | |
9734 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9740 | fi | |
9741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9743 | else | |
9744 | # Is the header compilable? | |
9745 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9746 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9747 | cat >conftest.$ac_ext <<_ACEOF | |
9748 | /* confdefs.h. */ | |
9749 | _ACEOF | |
9750 | cat confdefs.h >>conftest.$ac_ext | |
9751 | cat >>conftest.$ac_ext <<_ACEOF | |
9752 | /* end confdefs.h. */ | |
9753 | $ac_includes_default | |
9754 | #include <$ac_header> | |
9755 | _ACEOF | |
9756 | rm -f conftest.$ac_objext | |
9757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9758 | (eval $ac_compile) 2>conftest.er1 | |
9759 | ac_status=$? | |
9760 | grep -v '^ *+' conftest.er1 >conftest.err | |
9761 | rm -f conftest.er1 | |
9762 | cat conftest.err >&5 | |
9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9764 | (exit $ac_status); } && | |
9765 | { ac_try='test -z "$ac_c_werror_flag" | |
9766 | || test ! -s conftest.err' | |
9767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9768 | (eval $ac_try) 2>&5 | |
9769 | ac_status=$? | |
9770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9771 | (exit $ac_status); }; } && | |
9772 | { ac_try='test -s conftest.$ac_objext' | |
9773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9774 | (eval $ac_try) 2>&5 | |
9775 | ac_status=$? | |
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9777 | (exit $ac_status); }; }; then | |
9778 | ac_header_compiler=yes | |
9779 | else | |
9780 | echo "$as_me: failed program was:" >&5 | |
9781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9782 | ||
9783 | ac_header_compiler=no | |
9784 | fi | |
9785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9786 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9787 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9788 | ||
9789 | # Is the header present? | |
9790 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9791 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9792 | cat >conftest.$ac_ext <<_ACEOF | |
9793 | /* confdefs.h. */ | |
9794 | _ACEOF | |
9795 | cat confdefs.h >>conftest.$ac_ext | |
9796 | cat >>conftest.$ac_ext <<_ACEOF | |
9797 | /* end confdefs.h. */ | |
9798 | #include <$ac_header> | |
9799 | _ACEOF | |
9800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9802 | ac_status=$? | |
9803 | grep -v '^ *+' conftest.er1 >conftest.err | |
9804 | rm -f conftest.er1 | |
9805 | cat conftest.err >&5 | |
9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9807 | (exit $ac_status); } >/dev/null; then | |
9808 | if test -s conftest.err; then | |
9809 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9810 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9811 | else | |
9812 | ac_cpp_err= | |
9813 | fi | |
9814 | else | |
9815 | ac_cpp_err=yes | |
9816 | fi | |
9817 | if test -z "$ac_cpp_err"; then | |
9818 | ac_header_preproc=yes | |
9819 | else | |
9820 | echo "$as_me: failed program was:" >&5 | |
9821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9822 | ||
9823 | ac_header_preproc=no | |
9824 | fi | |
9825 | rm -f conftest.err conftest.$ac_ext | |
9826 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9827 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9828 | ||
9829 | # So? What about this header? | |
9830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9831 | yes:no: ) | |
9832 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9833 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9835 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9836 | ac_header_preproc=yes | |
9837 | ;; | |
9838 | no:yes:* ) | |
9839 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9840 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9841 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9842 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9843 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9844 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9845 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9846 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9849 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9850 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9851 | ( | |
9852 | cat <<\_ASBOX | |
9853 | ## ------------------------------------------ ## | |
9854 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9855 | ## ------------------------------------------ ## | |
9856 | _ASBOX | |
9857 | ) | | |
9858 | sed "s/^/$as_me: WARNING: /" >&2 | |
9859 | ;; | |
9860 | esac | |
9861 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9865 | else | |
9866 | eval "$as_ac_Header=\$ac_header_preproc" | |
9867 | fi | |
9868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9869 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9870 | ||
9871 | fi | |
9872 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9873 | cat >>confdefs.h <<_ACEOF | |
9874 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9875 | _ACEOF | |
9876 | ||
9877 | fi | |
9878 | ||
9879 | done | |
9880 | ||
9881 | fi | |
9882 | ||
9883 | ||
b4e70030 | 9884 | # For the TUI, we need enhanced curses functionality. |
bec39cab AC |
9885 | # |
9886 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
9887 | # curses library because the latter might not provide all the | |
9888 | # functionality we need. However, this leads to problems on systems | |
9889 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
9890 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
9891 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
9892 | # a situation. | |
b4e70030 JB |
9893 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
9894 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
9895 | if test "${ac_cv_search_waddstr+set}" = set; then |
9896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9897 | else | |
9898 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 9899 | ac_cv_search_waddstr=no |
bec39cab AC |
9900 | cat >conftest.$ac_ext <<_ACEOF |
9901 | /* confdefs.h. */ | |
9902 | _ACEOF | |
9903 | cat confdefs.h >>conftest.$ac_ext | |
9904 | cat >>conftest.$ac_ext <<_ACEOF | |
9905 | /* end confdefs.h. */ | |
c906108c | 9906 | |
b4e70030 | 9907 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9908 | #ifdef __cplusplus |
9909 | extern "C" | |
9910 | #endif | |
b4e70030 JB |
9911 | /* We use char because int might match the return type of a gcc2 |
9912 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9913 | char waddstr (); |
9914 | int | |
9915 | main () | |
9916 | { | |
b4e70030 | 9917 | waddstr (); |
bec39cab AC |
9918 | ; |
9919 | return 0; | |
9920 | } | |
9921 | _ACEOF | |
b4e70030 | 9922 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9924 | (eval $ac_link) 2>conftest.er1 | |
9925 | ac_status=$? | |
9926 | grep -v '^ *+' conftest.er1 >conftest.err | |
9927 | rm -f conftest.er1 | |
9928 | cat conftest.err >&5 | |
9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9930 | (exit $ac_status); } && | |
b4e70030 JB |
9931 | { ac_try='test -z "$ac_c_werror_flag" |
9932 | || test ! -s conftest.err' | |
bec39cab AC |
9933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9934 | (eval $ac_try) 2>&5 | |
9935 | ac_status=$? | |
9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9937 | (exit $ac_status); }; } && | |
9938 | { ac_try='test -s conftest$ac_exeext' | |
9939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9940 | (eval $ac_try) 2>&5 | |
9941 | ac_status=$? | |
9942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9943 | (exit $ac_status); }; }; then | |
b4e70030 | 9944 | ac_cv_search_waddstr="none required" |
bec39cab AC |
9945 | else |
9946 | echo "$as_me: failed program was:" >&5 | |
9947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
9948 | |
9949 | fi | |
bec39cab | 9950 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
9951 | conftest$ac_exeext conftest.$ac_ext |
9952 | if test "$ac_cv_search_waddstr" = no; then | |
9953 | for ac_lib in ncurses cursesX curses; do | |
9954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9955 | cat >conftest.$ac_ext <<_ACEOF | |
9956 | /* confdefs.h. */ | |
9957 | _ACEOF | |
9958 | cat confdefs.h >>conftest.$ac_ext | |
9959 | cat >>conftest.$ac_ext <<_ACEOF | |
9960 | /* end confdefs.h. */ | |
9961 | ||
9962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9963 | #ifdef __cplusplus | |
9964 | extern "C" | |
9965 | #endif | |
9966 | /* We use char because int might match the return type of a gcc2 | |
9967 | builtin and then its argument prototype would still apply. */ | |
9968 | char waddstr (); | |
9969 | int | |
9970 | main () | |
9971 | { | |
9972 | waddstr (); | |
9973 | ; | |
9974 | return 0; | |
9975 | } | |
9976 | _ACEOF | |
9977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9979 | (eval $ac_link) 2>conftest.er1 | |
9980 | ac_status=$? | |
9981 | grep -v '^ *+' conftest.er1 >conftest.err | |
9982 | rm -f conftest.er1 | |
9983 | cat conftest.err >&5 | |
9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9985 | (exit $ac_status); } && | |
9986 | { ac_try='test -z "$ac_c_werror_flag" | |
9987 | || test ! -s conftest.err' | |
9988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9989 | (eval $ac_try) 2>&5 | |
9990 | ac_status=$? | |
9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9992 | (exit $ac_status); }; } && | |
9993 | { ac_try='test -s conftest$ac_exeext' | |
9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9995 | (eval $ac_try) 2>&5 | |
9996 | ac_status=$? | |
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9998 | (exit $ac_status); }; }; then | |
9999 | ac_cv_search_waddstr="-l$ac_lib" | |
10000 | break | |
4e8d927d | 10001 | else |
b4e70030 JB |
10002 | echo "$as_me: failed program was:" >&5 |
10003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10004 | ||
10005 | fi | |
10006 | rm -f conftest.err conftest.$ac_objext \ | |
10007 | conftest$ac_exeext conftest.$ac_ext | |
10008 | done | |
1ba607ad | 10009 | fi |
bec39cab AC |
10010 | LIBS=$ac_func_search_save_LIBS |
10011 | fi | |
b4e70030 JB |
10012 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
10013 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
10014 | if test "$ac_cv_search_waddstr" != no; then | |
10015 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 10016 | |
8bb2c122 | 10017 | fi |
8bb2c122 | 10018 | |
8bb2c122 | 10019 | |
d542061a UW |
10020 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
10021 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 | |
10022 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 | |
10023 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then | |
10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10025 | else | |
10026 | ac_func_search_save_LIBS=$LIBS | |
10027 | ac_cv_search_dlgetmodinfo=no | |
10028 | cat >conftest.$ac_ext <<_ACEOF | |
10029 | /* confdefs.h. */ | |
10030 | _ACEOF | |
10031 | cat confdefs.h >>conftest.$ac_ext | |
10032 | cat >>conftest.$ac_ext <<_ACEOF | |
10033 | /* end confdefs.h. */ | |
10034 | ||
10035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10036 | #ifdef __cplusplus | |
10037 | extern "C" | |
10038 | #endif | |
10039 | /* We use char because int might match the return type of a gcc2 | |
10040 | builtin and then its argument prototype would still apply. */ | |
10041 | char dlgetmodinfo (); | |
10042 | int | |
10043 | main () | |
10044 | { | |
10045 | dlgetmodinfo (); | |
10046 | ; | |
10047 | return 0; | |
10048 | } | |
10049 | _ACEOF | |
10050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10052 | (eval $ac_link) 2>conftest.er1 | |
10053 | ac_status=$? | |
10054 | grep -v '^ *+' conftest.er1 >conftest.err | |
10055 | rm -f conftest.er1 | |
10056 | cat conftest.err >&5 | |
10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10058 | (exit $ac_status); } && | |
10059 | { ac_try='test -z "$ac_c_werror_flag" | |
10060 | || test ! -s conftest.err' | |
10061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10062 | (eval $ac_try) 2>&5 | |
10063 | ac_status=$? | |
10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10065 | (exit $ac_status); }; } && | |
10066 | { ac_try='test -s conftest$ac_exeext' | |
10067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10068 | (eval $ac_try) 2>&5 | |
10069 | ac_status=$? | |
10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10071 | (exit $ac_status); }; }; then | |
10072 | ac_cv_search_dlgetmodinfo="none required" | |
10073 | else | |
10074 | echo "$as_me: failed program was:" >&5 | |
10075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10076 | ||
10077 | fi | |
10078 | rm -f conftest.err conftest.$ac_objext \ | |
10079 | conftest$ac_exeext conftest.$ac_ext | |
10080 | if test "$ac_cv_search_dlgetmodinfo" = no; then | |
10081 | for ac_lib in dl xpdl; do | |
10082 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10083 | cat >conftest.$ac_ext <<_ACEOF | |
10084 | /* confdefs.h. */ | |
10085 | _ACEOF | |
10086 | cat confdefs.h >>conftest.$ac_ext | |
10087 | cat >>conftest.$ac_ext <<_ACEOF | |
10088 | /* end confdefs.h. */ | |
10089 | ||
10090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10091 | #ifdef __cplusplus | |
10092 | extern "C" | |
10093 | #endif | |
10094 | /* We use char because int might match the return type of a gcc2 | |
10095 | builtin and then its argument prototype would still apply. */ | |
10096 | char dlgetmodinfo (); | |
10097 | int | |
10098 | main () | |
10099 | { | |
10100 | dlgetmodinfo (); | |
10101 | ; | |
10102 | return 0; | |
10103 | } | |
10104 | _ACEOF | |
10105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10107 | (eval $ac_link) 2>conftest.er1 | |
10108 | ac_status=$? | |
10109 | grep -v '^ *+' conftest.er1 >conftest.err | |
10110 | rm -f conftest.er1 | |
10111 | cat conftest.err >&5 | |
10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10113 | (exit $ac_status); } && | |
10114 | { ac_try='test -z "$ac_c_werror_flag" | |
10115 | || test ! -s conftest.err' | |
10116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10117 | (eval $ac_try) 2>&5 | |
10118 | ac_status=$? | |
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10120 | (exit $ac_status); }; } && | |
10121 | { ac_try='test -s conftest$ac_exeext' | |
10122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10123 | (eval $ac_try) 2>&5 | |
10124 | ac_status=$? | |
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10126 | (exit $ac_status); }; }; then | |
10127 | ac_cv_search_dlgetmodinfo="-l$ac_lib" | |
10128 | break | |
10129 | else | |
10130 | echo "$as_me: failed program was:" >&5 | |
10131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10132 | ||
10133 | fi | |
10134 | rm -f conftest.err conftest.$ac_objext \ | |
10135 | conftest$ac_exeext conftest.$ac_ext | |
10136 | done | |
10137 | fi | |
10138 | LIBS=$ac_func_search_save_LIBS | |
10139 | fi | |
10140 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 | |
10141 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 | |
10142 | if test "$ac_cv_search_dlgetmodinfo" != no; then | |
10143 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" | |
10144 | ||
10145 | fi | |
10146 | ||
10147 | ||
bec39cab AC |
10148 | # Since GDB uses Readline, we need termcap functionality. In many |
10149 | # cases this will be provided by the curses library, but some systems | |
10150 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 10151 | |
bec39cab AC |
10152 | case $host_os in |
10153 | cygwin*) | |
10154 | if test -d $srcdir/libtermcap; then | |
10155 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
10156 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
10157 | fi ;; | |
10158 | go32* | *djgpp*) | |
10159 | ac_cv_search_tgetent="none required" | |
10160 | ;; | |
7ef34f2c MM |
10161 | *mingw32*) |
10162 | ac_cv_search_tgetent="none required" | |
10163 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
10164 | ;; | |
bec39cab | 10165 | esac |
627af7ea | 10166 | |
bec39cab | 10167 | # These are the libraries checked by Readline. |
b4e70030 JB |
10168 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
10169 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
10170 | if test "${ac_cv_search_tgetent+set}" = set; then |
10171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10172 | else | |
10173 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 10174 | ac_cv_search_tgetent=no |
bec39cab AC |
10175 | cat >conftest.$ac_ext <<_ACEOF |
10176 | /* confdefs.h. */ | |
10177 | _ACEOF | |
10178 | cat confdefs.h >>conftest.$ac_ext | |
10179 | cat >>conftest.$ac_ext <<_ACEOF | |
10180 | /* end confdefs.h. */ | |
10181 | ||
b4e70030 | 10182 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
10183 | #ifdef __cplusplus |
10184 | extern "C" | |
10185 | #endif | |
b4e70030 JB |
10186 | /* We use char because int might match the return type of a gcc2 |
10187 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
10188 | char tgetent (); |
10189 | int | |
10190 | main () | |
10191 | { | |
b4e70030 | 10192 | tgetent (); |
bec39cab AC |
10193 | ; |
10194 | return 0; | |
10195 | } | |
10196 | _ACEOF | |
b4e70030 | 10197 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
10198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10199 | (eval $ac_link) 2>conftest.er1 | |
10200 | ac_status=$? | |
10201 | grep -v '^ *+' conftest.er1 >conftest.err | |
10202 | rm -f conftest.er1 | |
10203 | cat conftest.err >&5 | |
10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10205 | (exit $ac_status); } && | |
b4e70030 JB |
10206 | { ac_try='test -z "$ac_c_werror_flag" |
10207 | || test ! -s conftest.err' | |
bec39cab AC |
10208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10209 | (eval $ac_try) 2>&5 | |
10210 | ac_status=$? | |
10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10212 | (exit $ac_status); }; } && | |
10213 | { ac_try='test -s conftest$ac_exeext' | |
10214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10215 | (eval $ac_try) 2>&5 | |
10216 | ac_status=$? | |
10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10218 | (exit $ac_status); }; }; then | |
b4e70030 | 10219 | ac_cv_search_tgetent="none required" |
627af7ea | 10220 | else |
bec39cab AC |
10221 | echo "$as_me: failed program was:" >&5 |
10222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 10223 | |
627af7ea | 10224 | fi |
bec39cab | 10225 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
10226 | conftest$ac_exeext conftest.$ac_ext |
10227 | if test "$ac_cv_search_tgetent" = no; then | |
10228 | for ac_lib in termcap tinfo curses ncurses; do | |
10229 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10230 | cat >conftest.$ac_ext <<_ACEOF | |
10231 | /* confdefs.h. */ | |
10232 | _ACEOF | |
10233 | cat confdefs.h >>conftest.$ac_ext | |
10234 | cat >>conftest.$ac_ext <<_ACEOF | |
10235 | /* end confdefs.h. */ | |
10236 | ||
10237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10238 | #ifdef __cplusplus | |
10239 | extern "C" | |
10240 | #endif | |
10241 | /* We use char because int might match the return type of a gcc2 | |
10242 | builtin and then its argument prototype would still apply. */ | |
10243 | char tgetent (); | |
10244 | int | |
10245 | main () | |
10246 | { | |
10247 | tgetent (); | |
10248 | ; | |
10249 | return 0; | |
10250 | } | |
10251 | _ACEOF | |
10252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10254 | (eval $ac_link) 2>conftest.er1 | |
10255 | ac_status=$? | |
10256 | grep -v '^ *+' conftest.er1 >conftest.err | |
10257 | rm -f conftest.er1 | |
10258 | cat conftest.err >&5 | |
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10260 | (exit $ac_status); } && | |
10261 | { ac_try='test -z "$ac_c_werror_flag" | |
10262 | || test ! -s conftest.err' | |
10263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10264 | (eval $ac_try) 2>&5 | |
10265 | ac_status=$? | |
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10267 | (exit $ac_status); }; } && | |
10268 | { ac_try='test -s conftest$ac_exeext' | |
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10270 | (eval $ac_try) 2>&5 | |
10271 | ac_status=$? | |
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10273 | (exit $ac_status); }; }; then | |
10274 | ac_cv_search_tgetent="-l$ac_lib" | |
10275 | break | |
4e8d927d | 10276 | else |
b4e70030 JB |
10277 | echo "$as_me: failed program was:" >&5 |
10278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10279 | ||
10280 | fi | |
10281 | rm -f conftest.err conftest.$ac_objext \ | |
10282 | conftest$ac_exeext conftest.$ac_ext | |
10283 | done | |
bec39cab AC |
10284 | fi |
10285 | LIBS=$ac_func_search_save_LIBS | |
10286 | fi | |
b4e70030 JB |
10287 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10288 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
10289 | if test "$ac_cv_search_tgetent" != no; then | |
10290 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 10291 | |
06825bd1 MK |
10292 | fi |
10293 | ||
06825bd1 | 10294 | |
bec39cab AC |
10295 | if test "$ac_cv_search_tgetent" = no; then |
10296 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
10297 | echo "$as_me: error: no termcap library found" >&2;} | |
10298 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
10299 | fi |
10300 | ||
3841debe | 10301 | |
6a30b0a5 AS |
10302 | # Check whether --with-system-readline or --without-system-readline was given. |
10303 | if test "${with_system_readline+set}" = set; then | |
10304 | withval="$with_system_readline" | |
10305 | ||
10306 | fi; | |
10307 | ||
10308 | if test "$with_system_readline" = yes; then | |
10309 | READLINE=-lreadline | |
10310 | READLINE_DEPS= | |
10311 | READLINE_CFLAGS= | |
10312 | else | |
10313 | READLINE='$(READLINE_DIR)/libreadline.a' | |
10314 | READLINE_DEPS='$(READLINE)' | |
10315 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
10316 | fi | |
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
5c39566f DJ |
10322 | # Check whether --with-expat or --without-expat was given. |
10323 | if test "${with_expat+set}" = set; then | |
10324 | withval="$with_expat" | |
10325 | ||
10326 | else | |
10327 | with_expat=auto | |
10328 | fi; | |
10329 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
10330 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
10331 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
10332 | echo "${ECHO_T}$with_expat" >&6 | |
10333 | ||
10334 | if test "${with_expat}" = no; then | |
10335 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
10336 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
10337 | HAVE_LIBEXPAT=no | |
10338 | else | |
10339 | ||
3841debe DJ |
10340 | if test "X$prefix" = "XNONE"; then |
10341 | acl_final_prefix="$ac_default_prefix" | |
10342 | else | |
10343 | acl_final_prefix="$prefix" | |
10344 | fi | |
10345 | if test "X$exec_prefix" = "XNONE"; then | |
10346 | acl_final_exec_prefix='${prefix}' | |
10347 | else | |
10348 | acl_final_exec_prefix="$exec_prefix" | |
10349 | fi | |
10350 | acl_save_prefix="$prefix" | |
10351 | prefix="$acl_final_prefix" | |
10352 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
10353 | prefix="$acl_save_prefix" | |
10354 | ||
10355 | ||
10356 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10357 | if test "${with_gnu_ld+set}" = set; then | |
10358 | withval="$with_gnu_ld" | |
10359 | test "$withval" = no || with_gnu_ld=yes | |
10360 | else | |
10361 | with_gnu_ld=no | |
10362 | fi; | |
10363 | # Prepare PATH_SEPARATOR. | |
10364 | # The user is always right. | |
10365 | if test "${PATH_SEPARATOR+set}" != set; then | |
10366 | echo "#! /bin/sh" >conf$$.sh | |
10367 | echo "exit 0" >>conf$$.sh | |
10368 | chmod +x conf$$.sh | |
10369 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10370 | PATH_SEPARATOR=';' | |
10371 | else | |
10372 | PATH_SEPARATOR=: | |
10373 | fi | |
10374 | rm -f conf$$.sh | |
10375 | fi | |
10376 | ac_prog=ld | |
10377 | if test "$GCC" = yes; then | |
10378 | # Check if gcc -print-prog-name=ld gives a path. | |
10379 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
10380 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
10381 | case $host in | |
10382 | *-*-mingw*) | |
10383 | # gcc leaves a trailing carriage return which upsets mingw | |
10384 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10385 | *) | |
10386 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10387 | esac | |
10388 | case $ac_prog in | |
10389 | # Accept absolute paths. | |
10390 | [\\/]* | [A-Za-z]:[\\/]*) | |
10391 | re_direlt='/[^/][^/]*/\.\./' | |
10392 | # Canonicalize the path of ld | |
10393 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
10394 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10395 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
10396 | done | |
10397 | test -z "$LD" && LD="$ac_prog" | |
10398 | ;; | |
10399 | "") | |
10400 | # If it fails, then pretend we aren't using GCC. | |
10401 | ac_prog=ld | |
10402 | ;; | |
10403 | *) | |
10404 | # If it is relative, then search for the first ld in PATH. | |
10405 | with_gnu_ld=unknown | |
10406 | ;; | |
10407 | esac | |
10408 | elif test "$with_gnu_ld" = yes; then | |
10409 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10410 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10411 | else | |
10412 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10413 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10414 | fi | |
10415 | if test "${acl_cv_path_LD+set}" = set; then | |
10416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10417 | else | |
10418 | if test -z "$LD"; then | |
10419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
10420 | for ac_dir in $PATH; do | |
10421 | test -z "$ac_dir" && ac_dir=. | |
10422 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10423 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
10424 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10425 | # but apparently some GNU ld's only accept -v. | |
10426 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10427 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
10428 | test "$with_gnu_ld" != no && break | |
10429 | else | |
10430 | test "$with_gnu_ld" != yes && break | |
10431 | fi | |
10432 | fi | |
10433 | done | |
10434 | IFS="$ac_save_ifs" | |
10435 | else | |
10436 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
10437 | fi | |
10438 | fi | |
10439 | ||
10440 | LD="$acl_cv_path_LD" | |
10441 | if test -n "$LD"; then | |
10442 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10443 | echo "${ECHO_T}$LD" >&6 | |
10444 | else | |
10445 | echo "$as_me:$LINENO: result: no" >&5 | |
10446 | echo "${ECHO_T}no" >&6 | |
10447 | fi | |
10448 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10449 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10450 | { (exit 1); exit 1; }; } | |
10451 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10452 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10453 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
10454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10455 | else | |
10456 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
10457 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
10458 | acl_cv_prog_gnu_ld=yes | |
10459 | else | |
10460 | acl_cv_prog_gnu_ld=no | |
10461 | fi | |
10462 | fi | |
10463 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
10464 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
10465 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
10466 | ||
10467 | ||
10468 | ||
10469 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
10470 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
10471 | if test "${acl_cv_rpath+set}" = set; then | |
10472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10473 | else | |
10474 | ||
10475 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
10476 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
10477 | . ./conftest.sh | |
10478 | rm -f ./conftest.sh | |
10479 | acl_cv_rpath=done | |
10480 | ||
10481 | fi | |
10482 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
10483 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
10484 | wl="$acl_cv_wl" | |
10485 | libext="$acl_cv_libext" | |
10486 | shlibext="$acl_cv_shlibext" | |
10487 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
10488 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
10489 | hardcode_direct="$acl_cv_hardcode_direct" | |
10490 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
10491 | # Check whether --enable-rpath or --disable-rpath was given. | |
10492 | if test "${enable_rpath+set}" = set; then | |
10493 | enableval="$enable_rpath" | |
10494 | : | |
10495 | else | |
10496 | enable_rpath=yes | |
10497 | fi; | |
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | use_additional=yes | |
10508 | ||
10509 | acl_save_prefix="$prefix" | |
10510 | prefix="$acl_final_prefix" | |
10511 | acl_save_exec_prefix="$exec_prefix" | |
10512 | exec_prefix="$acl_final_exec_prefix" | |
10513 | ||
10514 | eval additional_includedir=\"$includedir\" | |
10515 | eval additional_libdir=\"$libdir\" | |
10516 | ||
10517 | exec_prefix="$acl_save_exec_prefix" | |
10518 | prefix="$acl_save_prefix" | |
10519 | ||
10520 | ||
10521 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
10522 | if test "${with_libexpat_prefix+set}" = set; then | |
10523 | withval="$with_libexpat_prefix" | |
10524 | ||
10525 | if test "X$withval" = "Xno"; then | |
10526 | use_additional=no | |
10527 | else | |
10528 | if test "X$withval" = "X"; then | |
10529 | ||
10530 | acl_save_prefix="$prefix" | |
10531 | prefix="$acl_final_prefix" | |
10532 | acl_save_exec_prefix="$exec_prefix" | |
10533 | exec_prefix="$acl_final_exec_prefix" | |
10534 | ||
10535 | eval additional_includedir=\"$includedir\" | |
10536 | eval additional_libdir=\"$libdir\" | |
10537 | ||
10538 | exec_prefix="$acl_save_exec_prefix" | |
10539 | prefix="$acl_save_prefix" | |
10540 | ||
10541 | else | |
10542 | additional_includedir="$withval/include" | |
10543 | additional_libdir="$withval/lib" | |
10544 | fi | |
10545 | fi | |
10546 | ||
10547 | fi; | |
10548 | LIBEXPAT= | |
10549 | LTLIBEXPAT= | |
10550 | INCEXPAT= | |
10551 | rpathdirs= | |
10552 | ltrpathdirs= | |
10553 | names_already_handled= | |
10554 | names_next_round='expat ' | |
10555 | while test -n "$names_next_round"; do | |
10556 | names_this_round="$names_next_round" | |
10557 | names_next_round= | |
10558 | for name in $names_this_round; do | |
10559 | already_handled= | |
10560 | for n in $names_already_handled; do | |
10561 | if test "$n" = "$name"; then | |
10562 | already_handled=yes | |
10563 | break | |
10564 | fi | |
10565 | done | |
10566 | if test -z "$already_handled"; then | |
10567 | names_already_handled="$names_already_handled $name" | |
10568 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10569 | eval value=\"\$HAVE_LIB$uppername\" | |
10570 | if test -n "$value"; then | |
10571 | if test "$value" = yes; then | |
10572 | eval value=\"\$LIB$uppername\" | |
10573 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
10574 | eval value=\"\$LTLIB$uppername\" | |
10575 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
10576 | else | |
10577 | : | |
10578 | fi | |
10579 | else | |
10580 | found_dir= | |
10581 | found_la= | |
10582 | found_so= | |
10583 | found_a= | |
10584 | if test $use_additional = yes; then | |
10585 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10586 | found_dir="$additional_libdir" | |
10587 | found_so="$additional_libdir/lib$name.$shlibext" | |
10588 | if test -f "$additional_libdir/lib$name.la"; then | |
10589 | found_la="$additional_libdir/lib$name.la" | |
10590 | fi | |
10591 | else | |
10592 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10593 | found_dir="$additional_libdir" | |
10594 | found_a="$additional_libdir/lib$name.$libext" | |
10595 | if test -f "$additional_libdir/lib$name.la"; then | |
10596 | found_la="$additional_libdir/lib$name.la" | |
10597 | fi | |
10598 | fi | |
10599 | fi | |
10600 | fi | |
10601 | if test "X$found_dir" = "X"; then | |
10602 | for x in $LDFLAGS $LTLIBEXPAT; do | |
10603 | ||
10604 | acl_save_prefix="$prefix" | |
10605 | prefix="$acl_final_prefix" | |
10606 | acl_save_exec_prefix="$exec_prefix" | |
10607 | exec_prefix="$acl_final_exec_prefix" | |
10608 | eval x=\"$x\" | |
10609 | exec_prefix="$acl_save_exec_prefix" | |
10610 | prefix="$acl_save_prefix" | |
10611 | ||
10612 | case "$x" in | |
10613 | -L*) | |
10614 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10615 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10616 | found_dir="$dir" | |
10617 | found_so="$dir/lib$name.$shlibext" | |
10618 | if test -f "$dir/lib$name.la"; then | |
10619 | found_la="$dir/lib$name.la" | |
10620 | fi | |
10621 | else | |
10622 | if test -f "$dir/lib$name.$libext"; then | |
10623 | found_dir="$dir" | |
10624 | found_a="$dir/lib$name.$libext" | |
10625 | if test -f "$dir/lib$name.la"; then | |
10626 | found_la="$dir/lib$name.la" | |
10627 | fi | |
10628 | fi | |
10629 | fi | |
10630 | ;; | |
10631 | esac | |
10632 | if test "X$found_dir" != "X"; then | |
10633 | break | |
10634 | fi | |
10635 | done | |
10636 | fi | |
10637 | if test "X$found_dir" != "X"; then | |
10638 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
10639 | if test "X$found_so" != "X"; then | |
10640 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10641 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10642 | else | |
10643 | haveit= | |
10644 | for x in $ltrpathdirs; do | |
10645 | if test "X$x" = "X$found_dir"; then | |
10646 | haveit=yes | |
10647 | break | |
10648 | fi | |
10649 | done | |
10650 | if test -z "$haveit"; then | |
10651 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10652 | fi | |
10653 | if test "$hardcode_direct" = yes; then | |
10654 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10655 | else | |
10656 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10657 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10658 | haveit= | |
10659 | for x in $rpathdirs; do | |
10660 | if test "X$x" = "X$found_dir"; then | |
10661 | haveit=yes | |
10662 | break | |
10663 | fi | |
10664 | done | |
10665 | if test -z "$haveit"; then | |
10666 | rpathdirs="$rpathdirs $found_dir" | |
10667 | fi | |
10668 | else | |
10669 | haveit= | |
10670 | for x in $LDFLAGS $LIBEXPAT; do | |
10671 | ||
10672 | acl_save_prefix="$prefix" | |
10673 | prefix="$acl_final_prefix" | |
10674 | acl_save_exec_prefix="$exec_prefix" | |
10675 | exec_prefix="$acl_final_exec_prefix" | |
10676 | eval x=\"$x\" | |
10677 | exec_prefix="$acl_save_exec_prefix" | |
10678 | prefix="$acl_save_prefix" | |
10679 | ||
10680 | if test "X$x" = "X-L$found_dir"; then | |
10681 | haveit=yes | |
10682 | break | |
10683 | fi | |
10684 | done | |
10685 | if test -z "$haveit"; then | |
10686 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
10687 | fi | |
10688 | if test "$hardcode_minus_L" != no; then | |
10689 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10690 | else | |
10691 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
10692 | fi | |
10693 | fi | |
10694 | fi | |
10695 | fi | |
10696 | else | |
10697 | if test "X$found_a" != "X"; then | |
10698 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
10699 | else | |
10700 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
10701 | fi | |
10702 | fi | |
10703 | additional_includedir= | |
10704 | case "$found_dir" in | |
10705 | */lib | */lib/) | |
10706 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10707 | additional_includedir="$basedir/include" | |
10708 | ;; | |
10709 | esac | |
10710 | if test "X$additional_includedir" != "X"; then | |
10711 | if test "X$additional_includedir" != "X/usr/include"; then | |
10712 | haveit= | |
10713 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10714 | if test -n "$GCC"; then | |
10715 | case $host_os in | |
10716 | linux*) haveit=yes;; | |
10717 | esac | |
10718 | fi | |
10719 | fi | |
10720 | if test -z "$haveit"; then | |
10721 | for x in $CPPFLAGS $INCEXPAT; do | |
10722 | ||
10723 | acl_save_prefix="$prefix" | |
10724 | prefix="$acl_final_prefix" | |
10725 | acl_save_exec_prefix="$exec_prefix" | |
10726 | exec_prefix="$acl_final_exec_prefix" | |
10727 | eval x=\"$x\" | |
10728 | exec_prefix="$acl_save_exec_prefix" | |
10729 | prefix="$acl_save_prefix" | |
10730 | ||
10731 | if test "X$x" = "X-I$additional_includedir"; then | |
10732 | haveit=yes | |
10733 | break | |
10734 | fi | |
10735 | done | |
10736 | if test -z "$haveit"; then | |
10737 | if test -d "$additional_includedir"; then | |
10738 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
10739 | fi | |
10740 | fi | |
10741 | fi | |
10742 | fi | |
10743 | fi | |
10744 | if test -n "$found_la"; then | |
10745 | save_libdir="$libdir" | |
10746 | case "$found_la" in | |
10747 | */* | *\\*) . "$found_la" ;; | |
10748 | *) . "./$found_la" ;; | |
10749 | esac | |
10750 | libdir="$save_libdir" | |
10751 | for dep in $dependency_libs; do | |
10752 | case "$dep" in | |
10753 | -L*) | |
10754 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10755 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10756 | haveit= | |
10757 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10758 | if test -n "$GCC"; then | |
10759 | case $host_os in | |
10760 | linux*) haveit=yes;; | |
10761 | esac | |
10762 | fi | |
10763 | fi | |
10764 | if test -z "$haveit"; then | |
10765 | haveit= | |
10766 | for x in $LDFLAGS $LIBEXPAT; do | |
10767 | ||
10768 | acl_save_prefix="$prefix" | |
10769 | prefix="$acl_final_prefix" | |
10770 | acl_save_exec_prefix="$exec_prefix" | |
10771 | exec_prefix="$acl_final_exec_prefix" | |
10772 | eval x=\"$x\" | |
10773 | exec_prefix="$acl_save_exec_prefix" | |
10774 | prefix="$acl_save_prefix" | |
10775 | ||
10776 | if test "X$x" = "X-L$additional_libdir"; then | |
10777 | haveit=yes | |
10778 | break | |
10779 | fi | |
10780 | done | |
10781 | if test -z "$haveit"; then | |
10782 | if test -d "$additional_libdir"; then | |
10783 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
10784 | fi | |
10785 | fi | |
10786 | haveit= | |
10787 | for x in $LDFLAGS $LTLIBEXPAT; do | |
10788 | ||
10789 | acl_save_prefix="$prefix" | |
10790 | prefix="$acl_final_prefix" | |
10791 | acl_save_exec_prefix="$exec_prefix" | |
10792 | exec_prefix="$acl_final_exec_prefix" | |
10793 | eval x=\"$x\" | |
10794 | exec_prefix="$acl_save_exec_prefix" | |
10795 | prefix="$acl_save_prefix" | |
10796 | ||
10797 | if test "X$x" = "X-L$additional_libdir"; then | |
10798 | haveit=yes | |
10799 | break | |
10800 | fi | |
10801 | done | |
10802 | if test -z "$haveit"; then | |
10803 | if test -d "$additional_libdir"; then | |
10804 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
10805 | fi | |
10806 | fi | |
10807 | fi | |
10808 | fi | |
10809 | ;; | |
10810 | -R*) | |
10811 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10812 | if test "$enable_rpath" != no; then | |
10813 | haveit= | |
10814 | for x in $rpathdirs; do | |
10815 | if test "X$x" = "X$dir"; then | |
10816 | haveit=yes | |
10817 | break | |
10818 | fi | |
10819 | done | |
10820 | if test -z "$haveit"; then | |
10821 | rpathdirs="$rpathdirs $dir" | |
10822 | fi | |
10823 | haveit= | |
10824 | for x in $ltrpathdirs; do | |
10825 | if test "X$x" = "X$dir"; then | |
10826 | haveit=yes | |
10827 | break | |
10828 | fi | |
10829 | done | |
10830 | if test -z "$haveit"; then | |
10831 | ltrpathdirs="$ltrpathdirs $dir" | |
10832 | fi | |
10833 | fi | |
10834 | ;; | |
10835 | -l*) | |
10836 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10837 | ;; | |
10838 | *.la) | |
10839 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10840 | ;; | |
10841 | *) | |
10842 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
10843 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
10844 | ;; | |
10845 | esac | |
10846 | done | |
10847 | fi | |
10848 | else | |
10849 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
10850 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
10851 | fi | |
10852 | fi | |
10853 | fi | |
10854 | done | |
10855 | done | |
10856 | if test "X$rpathdirs" != "X"; then | |
10857 | if test -n "$hardcode_libdir_separator"; then | |
10858 | alldirs= | |
10859 | for found_dir in $rpathdirs; do | |
10860 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10861 | done | |
10862 | acl_save_libdir="$libdir" | |
10863 | libdir="$alldirs" | |
10864 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10865 | libdir="$acl_save_libdir" | |
10866 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10867 | else | |
10868 | for found_dir in $rpathdirs; do | |
10869 | acl_save_libdir="$libdir" | |
10870 | libdir="$found_dir" | |
10871 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10872 | libdir="$acl_save_libdir" | |
10873 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10874 | done | |
10875 | fi | |
10876 | fi | |
10877 | if test "X$ltrpathdirs" != "X"; then | |
10878 | for found_dir in $ltrpathdirs; do | |
10879 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
10880 | done | |
10881 | fi | |
10882 | ||
10883 | ||
10884 | ac_save_CPPFLAGS="$CPPFLAGS" | |
10885 | ||
10886 | for element in $INCEXPAT; do | |
10887 | haveit= | |
10888 | for x in $CPPFLAGS; do | |
10889 | ||
10890 | acl_save_prefix="$prefix" | |
10891 | prefix="$acl_final_prefix" | |
10892 | acl_save_exec_prefix="$exec_prefix" | |
10893 | exec_prefix="$acl_final_exec_prefix" | |
10894 | eval x=\"$x\" | |
10895 | exec_prefix="$acl_save_exec_prefix" | |
10896 | prefix="$acl_save_prefix" | |
10897 | ||
10898 | if test "X$x" = "X$element"; then | |
10899 | haveit=yes | |
10900 | break | |
10901 | fi | |
10902 | done | |
10903 | if test -z "$haveit"; then | |
10904 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10905 | fi | |
10906 | done | |
10907 | ||
10908 | ||
10909 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
10910 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
10911 | if test "${ac_cv_libexpat+set}" = set; then | |
10912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10913 | else | |
10914 | ||
10915 | ac_save_LIBS="$LIBS" | |
10916 | LIBS="$LIBS $LIBEXPAT" | |
10917 | cat >conftest.$ac_ext <<_ACEOF | |
10918 | /* confdefs.h. */ | |
10919 | _ACEOF | |
10920 | cat confdefs.h >>conftest.$ac_ext | |
10921 | cat >>conftest.$ac_ext <<_ACEOF | |
10922 | /* end confdefs.h. */ | |
10923 | #include "expat.h" | |
10924 | int | |
10925 | main () | |
10926 | { | |
10927 | XML_Parser p = XML_ParserCreate (0); | |
10928 | ; | |
10929 | return 0; | |
10930 | } | |
10931 | _ACEOF | |
10932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10934 | (eval $ac_link) 2>conftest.er1 | |
10935 | ac_status=$? | |
10936 | grep -v '^ *+' conftest.er1 >conftest.err | |
10937 | rm -f conftest.er1 | |
10938 | cat conftest.err >&5 | |
10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10940 | (exit $ac_status); } && | |
10941 | { ac_try='test -z "$ac_c_werror_flag" | |
10942 | || test ! -s conftest.err' | |
10943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10944 | (eval $ac_try) 2>&5 | |
10945 | ac_status=$? | |
10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10947 | (exit $ac_status); }; } && | |
10948 | { ac_try='test -s conftest$ac_exeext' | |
10949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10950 | (eval $ac_try) 2>&5 | |
10951 | ac_status=$? | |
10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10953 | (exit $ac_status); }; }; then | |
10954 | ac_cv_libexpat=yes | |
10955 | else | |
10956 | echo "$as_me: failed program was:" >&5 | |
10957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10958 | ||
10959 | ac_cv_libexpat=no | |
10960 | fi | |
10961 | rm -f conftest.err conftest.$ac_objext \ | |
10962 | conftest$ac_exeext conftest.$ac_ext | |
10963 | LIBS="$ac_save_LIBS" | |
10964 | ||
10965 | fi | |
10966 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
10967 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
10968 | if test "$ac_cv_libexpat" = yes; then | |
10969 | HAVE_LIBEXPAT=yes | |
10970 | ||
10971 | cat >>confdefs.h <<\_ACEOF | |
10972 | #define HAVE_LIBEXPAT 1 | |
10973 | _ACEOF | |
10974 | ||
10975 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
10976 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
10977 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
10978 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
10979 | else | |
10980 | HAVE_LIBEXPAT=no | |
10981 | CPPFLAGS="$ac_save_CPPFLAGS" | |
10982 | LIBEXPAT= | |
10983 | LTLIBEXPAT= | |
10984 | fi | |
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
5c39566f DJ |
10991 | if test "$HAVE_LIBEXPAT" != yes; then |
10992 | if test "$with_expat" = yes; then | |
10993 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
10994 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
10995 | { (exit 1); exit 1; }; } | |
10996 | else | |
10997 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
10998 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
10999 | fi | |
11000 | else | |
11001 | save_LIBS=$LIBS | |
11002 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
11003 | |
11004 | for ac_func in XML_StopParser | |
11005 | do | |
11006 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11007 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11008 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11009 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11011 | else | |
11012 | cat >conftest.$ac_ext <<_ACEOF | |
11013 | /* confdefs.h. */ | |
11014 | _ACEOF | |
11015 | cat confdefs.h >>conftest.$ac_ext | |
11016 | cat >>conftest.$ac_ext <<_ACEOF | |
11017 | /* end confdefs.h. */ | |
11018 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11020 | #define $ac_func innocuous_$ac_func | |
11021 | ||
11022 | /* System header to define __stub macros and hopefully few prototypes, | |
11023 | which can conflict with char $ac_func (); below. | |
11024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11025 | <limits.h> exists even on freestanding compilers. */ | |
11026 | ||
11027 | #ifdef __STDC__ | |
11028 | # include <limits.h> | |
11029 | #else | |
11030 | # include <assert.h> | |
11031 | #endif | |
11032 | ||
11033 | #undef $ac_func | |
11034 | ||
11035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11036 | #ifdef __cplusplus | |
11037 | extern "C" | |
11038 | { | |
11039 | #endif | |
11040 | /* We use char because int might match the return type of a gcc2 | |
11041 | builtin and then its argument prototype would still apply. */ | |
11042 | char $ac_func (); | |
11043 | /* The GNU C library defines this for functions which it implements | |
11044 | to always fail with ENOSYS. Some functions are actually named | |
11045 | something starting with __ and the normal name is an alias. */ | |
11046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11047 | choke me | |
11048 | #else | |
11049 | char (*f) () = $ac_func; | |
11050 | #endif | |
11051 | #ifdef __cplusplus | |
11052 | } | |
11053 | #endif | |
11054 | ||
11055 | int | |
11056 | main () | |
11057 | { | |
11058 | return f != $ac_func; | |
11059 | ; | |
11060 | return 0; | |
11061 | } | |
11062 | _ACEOF | |
11063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11065 | (eval $ac_link) 2>conftest.er1 | |
11066 | ac_status=$? | |
11067 | grep -v '^ *+' conftest.er1 >conftest.err | |
11068 | rm -f conftest.er1 | |
11069 | cat conftest.err >&5 | |
11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11071 | (exit $ac_status); } && | |
11072 | { ac_try='test -z "$ac_c_werror_flag" | |
11073 | || test ! -s conftest.err' | |
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11075 | (eval $ac_try) 2>&5 | |
11076 | ac_status=$? | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); }; } && | |
11079 | { ac_try='test -s conftest$ac_exeext' | |
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11081 | (eval $ac_try) 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; }; then | |
11085 | eval "$as_ac_var=yes" | |
11086 | else | |
11087 | echo "$as_me: failed program was:" >&5 | |
11088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11089 | ||
11090 | eval "$as_ac_var=no" | |
11091 | fi | |
11092 | rm -f conftest.err conftest.$ac_objext \ | |
11093 | conftest$ac_exeext conftest.$ac_ext | |
11094 | fi | |
11095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11096 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11097 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11098 | cat >>confdefs.h <<_ACEOF | |
11099 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11100 | _ACEOF | |
11101 | ||
11102 | fi | |
11103 | done | |
11104 | ||
5c39566f DJ |
11105 | LIBS=$save_LIBS |
11106 | fi | |
3841debe DJ |
11107 | fi |
11108 | ||
bec39cab AC |
11109 | # ------------------------- # |
11110 | # Checks for header files. # | |
11111 | # ------------------------- # | |
8ee53726 | 11112 | |
0e5d83e3 | 11113 | |
bec39cab AC |
11114 | |
11115 | ||
11116 | ||
11117 | ||
11118 | ac_header_dirent=no | |
11119 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
11120 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
11121 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
11122 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
11123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11125 | else | |
11126 | cat >conftest.$ac_ext <<_ACEOF | |
11127 | /* confdefs.h. */ | |
11128 | _ACEOF | |
11129 | cat confdefs.h >>conftest.$ac_ext | |
11130 | cat >>conftest.$ac_ext <<_ACEOF | |
11131 | /* end confdefs.h. */ | |
11132 | #include <sys/types.h> | |
0e5d83e3 | 11133 | #include <$ac_hdr> |
bec39cab AC |
11134 | |
11135 | int | |
11136 | main () | |
11137 | { | |
11138 | if ((DIR *) 0) | |
11139 | return 0; | |
11140 | ; | |
11141 | return 0; | |
11142 | } | |
11143 | _ACEOF | |
11144 | rm -f conftest.$ac_objext | |
11145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11146 | (eval $ac_compile) 2>conftest.er1 | |
11147 | ac_status=$? | |
11148 | grep -v '^ *+' conftest.er1 >conftest.err | |
11149 | rm -f conftest.er1 | |
11150 | cat conftest.err >&5 | |
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11152 | (exit $ac_status); } && | |
b4e70030 JB |
11153 | { ac_try='test -z "$ac_c_werror_flag" |
11154 | || test ! -s conftest.err' | |
bec39cab AC |
11155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11156 | (eval $ac_try) 2>&5 | |
11157 | ac_status=$? | |
11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11159 | (exit $ac_status); }; } && | |
11160 | { ac_try='test -s conftest.$ac_objext' | |
11161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11162 | (eval $ac_try) 2>&5 | |
11163 | ac_status=$? | |
11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11165 | (exit $ac_status); }; }; then | |
11166 | eval "$as_ac_Header=yes" | |
11167 | else | |
11168 | echo "$as_me: failed program was:" >&5 | |
11169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11170 | ||
b4e70030 | 11171 | eval "$as_ac_Header=no" |
bec39cab AC |
11172 | fi |
11173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11174 | fi | |
b4e70030 JB |
11175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11178 | cat >>confdefs.h <<_ACEOF | |
11179 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
11180 | _ACEOF | |
11181 | ||
11182 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 11183 | fi |
0e5d83e3 | 11184 | |
bec39cab AC |
11185 | done |
11186 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11187 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
11188 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11189 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
11190 | if test "${ac_cv_search_opendir+set}" = set; then |
11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11192 | else | |
11193 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 11194 | ac_cv_search_opendir=no |
bec39cab AC |
11195 | cat >conftest.$ac_ext <<_ACEOF |
11196 | /* confdefs.h. */ | |
11197 | _ACEOF | |
11198 | cat confdefs.h >>conftest.$ac_ext | |
11199 | cat >>conftest.$ac_ext <<_ACEOF | |
11200 | /* end confdefs.h. */ | |
0e5d83e3 | 11201 | |
b4e70030 | 11202 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
11203 | #ifdef __cplusplus |
11204 | extern "C" | |
11205 | #endif | |
b4e70030 JB |
11206 | /* We use char because int might match the return type of a gcc2 |
11207 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
11208 | char opendir (); |
11209 | int | |
11210 | main () | |
11211 | { | |
b4e70030 | 11212 | opendir (); |
bec39cab AC |
11213 | ; |
11214 | return 0; | |
11215 | } | |
11216 | _ACEOF | |
b4e70030 | 11217 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11219 | (eval $ac_link) 2>conftest.er1 | |
11220 | ac_status=$? | |
11221 | grep -v '^ *+' conftest.er1 >conftest.err | |
11222 | rm -f conftest.er1 | |
11223 | cat conftest.err >&5 | |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11225 | (exit $ac_status); } && | |
b4e70030 JB |
11226 | { ac_try='test -z "$ac_c_werror_flag" |
11227 | || test ! -s conftest.err' | |
bec39cab AC |
11228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11229 | (eval $ac_try) 2>&5 | |
11230 | ac_status=$? | |
11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11232 | (exit $ac_status); }; } && | |
11233 | { ac_try='test -s conftest$ac_exeext' | |
11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11235 | (eval $ac_try) 2>&5 | |
11236 | ac_status=$? | |
11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11238 | (exit $ac_status); }; }; then | |
b4e70030 | 11239 | ac_cv_search_opendir="none required" |
bec39cab AC |
11240 | else |
11241 | echo "$as_me: failed program was:" >&5 | |
11242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11243 | ||
11244 | fi | |
bec39cab | 11245 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
11246 | conftest$ac_exeext conftest.$ac_ext |
11247 | if test "$ac_cv_search_opendir" = no; then | |
11248 | for ac_lib in dir; do | |
11249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11250 | cat >conftest.$ac_ext <<_ACEOF | |
11251 | /* confdefs.h. */ | |
11252 | _ACEOF | |
11253 | cat confdefs.h >>conftest.$ac_ext | |
11254 | cat >>conftest.$ac_ext <<_ACEOF | |
11255 | /* end confdefs.h. */ | |
11256 | ||
11257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11258 | #ifdef __cplusplus | |
11259 | extern "C" | |
11260 | #endif | |
11261 | /* We use char because int might match the return type of a gcc2 | |
11262 | builtin and then its argument prototype would still apply. */ | |
11263 | char opendir (); | |
11264 | int | |
11265 | main () | |
11266 | { | |
11267 | opendir (); | |
11268 | ; | |
11269 | return 0; | |
11270 | } | |
11271 | _ACEOF | |
11272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11274 | (eval $ac_link) 2>conftest.er1 | |
11275 | ac_status=$? | |
11276 | grep -v '^ *+' conftest.er1 >conftest.err | |
11277 | rm -f conftest.er1 | |
11278 | cat conftest.err >&5 | |
11279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11280 | (exit $ac_status); } && | |
11281 | { ac_try='test -z "$ac_c_werror_flag" | |
11282 | || test ! -s conftest.err' | |
11283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11284 | (eval $ac_try) 2>&5 | |
11285 | ac_status=$? | |
11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11287 | (exit $ac_status); }; } && | |
11288 | { ac_try='test -s conftest$ac_exeext' | |
11289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11290 | (eval $ac_try) 2>&5 | |
11291 | ac_status=$? | |
11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11293 | (exit $ac_status); }; }; then | |
11294 | ac_cv_search_opendir="-l$ac_lib" | |
11295 | break | |
4e8d927d | 11296 | else |
b4e70030 JB |
11297 | echo "$as_me: failed program was:" >&5 |
11298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11299 | ||
11300 | fi | |
11301 | rm -f conftest.err conftest.$ac_objext \ | |
11302 | conftest$ac_exeext conftest.$ac_ext | |
11303 | done | |
0e5d83e3 | 11304 | fi |
bec39cab | 11305 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 11306 | fi |
b4e70030 JB |
11307 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11308 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11309 | if test "$ac_cv_search_opendir" != no; then | |
11310 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 11311 | |
0e5d83e3 JJ |
11312 | fi |
11313 | ||
d28f9cdf | 11314 | else |
b4e70030 JB |
11315 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11316 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
11317 | if test "${ac_cv_search_opendir+set}" = set; then |
11318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11319 | else | |
11320 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 11321 | ac_cv_search_opendir=no |
bec39cab AC |
11322 | cat >conftest.$ac_ext <<_ACEOF |
11323 | /* confdefs.h. */ | |
11324 | _ACEOF | |
11325 | cat confdefs.h >>conftest.$ac_ext | |
11326 | cat >>conftest.$ac_ext <<_ACEOF | |
11327 | /* end confdefs.h. */ | |
d28f9cdf | 11328 | |
b4e70030 | 11329 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
11330 | #ifdef __cplusplus |
11331 | extern "C" | |
d28f9cdf | 11332 | #endif |
b4e70030 JB |
11333 | /* We use char because int might match the return type of a gcc2 |
11334 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
11335 | char opendir (); |
11336 | int | |
11337 | main () | |
11338 | { | |
b4e70030 | 11339 | opendir (); |
bec39cab AC |
11340 | ; |
11341 | return 0; | |
11342 | } | |
11343 | _ACEOF | |
b4e70030 | 11344 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
11345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11346 | (eval $ac_link) 2>conftest.er1 | |
11347 | ac_status=$? | |
11348 | grep -v '^ *+' conftest.er1 >conftest.err | |
11349 | rm -f conftest.er1 | |
11350 | cat conftest.err >&5 | |
11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11352 | (exit $ac_status); } && | |
b4e70030 JB |
11353 | { ac_try='test -z "$ac_c_werror_flag" |
11354 | || test ! -s conftest.err' | |
bec39cab AC |
11355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11356 | (eval $ac_try) 2>&5 | |
11357 | ac_status=$? | |
11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11359 | (exit $ac_status); }; } && | |
11360 | { ac_try='test -s conftest$ac_exeext' | |
11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11362 | (eval $ac_try) 2>&5 | |
11363 | ac_status=$? | |
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11365 | (exit $ac_status); }; }; then | |
b4e70030 | 11366 | ac_cv_search_opendir="none required" |
d28f9cdf | 11367 | else |
bec39cab AC |
11368 | echo "$as_me: failed program was:" >&5 |
11369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11370 | ||
d28f9cdf | 11371 | fi |
bec39cab | 11372 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
11373 | conftest$ac_exeext conftest.$ac_ext |
11374 | if test "$ac_cv_search_opendir" = no; then | |
11375 | for ac_lib in x; do | |
11376 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11377 | cat >conftest.$ac_ext <<_ACEOF | |
11378 | /* confdefs.h. */ | |
11379 | _ACEOF | |
11380 | cat confdefs.h >>conftest.$ac_ext | |
11381 | cat >>conftest.$ac_ext <<_ACEOF | |
11382 | /* end confdefs.h. */ | |
11383 | ||
11384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11385 | #ifdef __cplusplus | |
11386 | extern "C" | |
11387 | #endif | |
11388 | /* We use char because int might match the return type of a gcc2 | |
11389 | builtin and then its argument prototype would still apply. */ | |
11390 | char opendir (); | |
11391 | int | |
11392 | main () | |
11393 | { | |
11394 | opendir (); | |
11395 | ; | |
11396 | return 0; | |
11397 | } | |
11398 | _ACEOF | |
11399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11401 | (eval $ac_link) 2>conftest.er1 | |
11402 | ac_status=$? | |
11403 | grep -v '^ *+' conftest.er1 >conftest.err | |
11404 | rm -f conftest.er1 | |
11405 | cat conftest.err >&5 | |
11406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11407 | (exit $ac_status); } && | |
11408 | { ac_try='test -z "$ac_c_werror_flag" | |
11409 | || test ! -s conftest.err' | |
11410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11411 | (eval $ac_try) 2>&5 | |
11412 | ac_status=$? | |
11413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11414 | (exit $ac_status); }; } && | |
11415 | { ac_try='test -s conftest$ac_exeext' | |
11416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11417 | (eval $ac_try) 2>&5 | |
11418 | ac_status=$? | |
11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11420 | (exit $ac_status); }; }; then | |
11421 | ac_cv_search_opendir="-l$ac_lib" | |
11422 | break | |
4e8d927d | 11423 | else |
b4e70030 JB |
11424 | echo "$as_me: failed program was:" >&5 |
11425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11426 | ||
11427 | fi | |
11428 | rm -f conftest.err conftest.$ac_objext \ | |
11429 | conftest$ac_exeext conftest.$ac_ext | |
11430 | done | |
bec39cab AC |
11431 | fi |
11432 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 11433 | fi |
b4e70030 JB |
11434 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11435 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11436 | if test "$ac_cv_search_opendir" != no; then | |
11437 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 11438 | |
d28f9cdf DJ |
11439 | fi |
11440 | ||
bec39cab | 11441 | fi |
b0b1c2c0 | 11442 | |
b4e70030 JB |
11443 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
11444 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
11445 | if test "${ac_cv_header_stat_broken+set}" = set; then |
11446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 11447 | else |
bec39cab AC |
11448 | cat >conftest.$ac_ext <<_ACEOF |
11449 | /* confdefs.h. */ | |
11450 | _ACEOF | |
11451 | cat confdefs.h >>conftest.$ac_ext | |
11452 | cat >>conftest.$ac_ext <<_ACEOF | |
11453 | /* end confdefs.h. */ | |
11454 | #include <sys/types.h> | |
11455 | #include <sys/stat.h> | |
b0b1c2c0 | 11456 | |
b4e70030 | 11457 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
11458 | # if S_ISBLK (S_IFDIR) |
11459 | You lose. | |
11460 | # endif | |
11461 | #endif | |
b0b1c2c0 | 11462 | |
b4e70030 | 11463 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
11464 | # if S_ISBLK (S_IFCHR) |
11465 | You lose. | |
11466 | # endif | |
11467 | #endif | |
d28f9cdf | 11468 | |
b4e70030 | 11469 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
11470 | # if S_ISLNK (S_IFREG) |
11471 | You lose. | |
11472 | # endif | |
11473 | #endif | |
d28f9cdf | 11474 | |
b4e70030 | 11475 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
11476 | # if S_ISSOCK (S_IFREG) |
11477 | You lose. | |
11478 | # endif | |
11479 | #endif | |
11480 | ||
11481 | _ACEOF | |
11482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11483 | $EGREP "You lose" >/dev/null 2>&1; then | |
11484 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 11485 | else |
bec39cab | 11486 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
11487 | fi |
11488 | rm -f conftest* | |
d28f9cdf | 11489 | |
d28f9cdf | 11490 | fi |
b4e70030 JB |
11491 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
11492 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 11493 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 11494 | |
bec39cab AC |
11495 | cat >>confdefs.h <<\_ACEOF |
11496 | #define STAT_MACROS_BROKEN 1 | |
11497 | _ACEOF | |
8bb2c122 | 11498 | |
7a292a7a | 11499 | fi |
bec39cab | 11500 | |
b4e70030 JB |
11501 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
11502 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
11503 | if test "${ac_cv_header_stdc+set}" = set; then |
11504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 11505 | else |
bec39cab AC |
11506 | cat >conftest.$ac_ext <<_ACEOF |
11507 | /* confdefs.h. */ | |
11508 | _ACEOF | |
11509 | cat confdefs.h >>conftest.$ac_ext | |
11510 | cat >>conftest.$ac_ext <<_ACEOF | |
11511 | /* end confdefs.h. */ | |
11512 | #include <stdlib.h> | |
11513 | #include <stdarg.h> | |
11514 | #include <string.h> | |
11515 | #include <float.h> | |
7a292a7a | 11516 | |
bec39cab AC |
11517 | int |
11518 | main () | |
11519 | { | |
7a292a7a | 11520 | |
bec39cab AC |
11521 | ; |
11522 | return 0; | |
11523 | } | |
11524 | _ACEOF | |
11525 | rm -f conftest.$ac_objext | |
11526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11527 | (eval $ac_compile) 2>conftest.er1 | |
11528 | ac_status=$? | |
11529 | grep -v '^ *+' conftest.er1 >conftest.err | |
11530 | rm -f conftest.er1 | |
11531 | cat conftest.err >&5 | |
11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11533 | (exit $ac_status); } && | |
b4e70030 JB |
11534 | { ac_try='test -z "$ac_c_werror_flag" |
11535 | || test ! -s conftest.err' | |
bec39cab AC |
11536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11537 | (eval $ac_try) 2>&5 | |
11538 | ac_status=$? | |
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); }; } && | |
11541 | { ac_try='test -s conftest.$ac_objext' | |
11542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11543 | (eval $ac_try) 2>&5 | |
11544 | ac_status=$? | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11546 | (exit $ac_status); }; }; then | |
11547 | ac_cv_header_stdc=yes | |
c906108c | 11548 | else |
bec39cab AC |
11549 | echo "$as_me: failed program was:" >&5 |
11550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 11551 | |
b4e70030 | 11552 | ac_cv_header_stdc=no |
c906108c | 11553 | fi |
bec39cab | 11554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11555 | |
bec39cab AC |
11556 | if test $ac_cv_header_stdc = yes; then |
11557 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11558 | cat >conftest.$ac_ext <<_ACEOF | |
11559 | /* confdefs.h. */ | |
11560 | _ACEOF | |
11561 | cat confdefs.h >>conftest.$ac_ext | |
11562 | cat >>conftest.$ac_ext <<_ACEOF | |
11563 | /* end confdefs.h. */ | |
11564 | #include <string.h> | |
c906108c | 11565 | |
bec39cab AC |
11566 | _ACEOF |
11567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11568 | $EGREP "memchr" >/dev/null 2>&1; then | |
11569 | : | |
8bb2c122 | 11570 | else |
bec39cab | 11571 | ac_cv_header_stdc=no |
8bb2c122 | 11572 | fi |
bec39cab AC |
11573 | rm -f conftest* |
11574 | ||
c906108c SS |
11575 | fi |
11576 | ||
bec39cab AC |
11577 | if test $ac_cv_header_stdc = yes; then |
11578 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11579 | cat >conftest.$ac_ext <<_ACEOF | |
11580 | /* confdefs.h. */ | |
11581 | _ACEOF | |
11582 | cat confdefs.h >>conftest.$ac_ext | |
11583 | cat >>conftest.$ac_ext <<_ACEOF | |
11584 | /* end confdefs.h. */ | |
11585 | #include <stdlib.h> | |
11586 | ||
11587 | _ACEOF | |
11588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11589 | $EGREP "free" >/dev/null 2>&1; then | |
11590 | : | |
c906108c | 11591 | else |
bec39cab | 11592 | ac_cv_header_stdc=no |
c906108c | 11593 | fi |
bec39cab AC |
11594 | rm -f conftest* |
11595 | ||
c906108c SS |
11596 | fi |
11597 | ||
bec39cab AC |
11598 | if test $ac_cv_header_stdc = yes; then |
11599 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11600 | if test "$cross_compiling" = yes; then | |
11601 | : | |
c906108c | 11602 | else |
bec39cab AC |
11603 | cat >conftest.$ac_ext <<_ACEOF |
11604 | /* confdefs.h. */ | |
11605 | _ACEOF | |
11606 | cat confdefs.h >>conftest.$ac_ext | |
11607 | cat >>conftest.$ac_ext <<_ACEOF | |
11608 | /* end confdefs.h. */ | |
11609 | #include <ctype.h> | |
11610 | #if ((' ' & 0x0FF) == 0x020) | |
11611 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11612 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11613 | #else | |
11614 | # define ISLOWER(c) \ | |
11615 | (('a' <= (c) && (c) <= 'i') \ | |
11616 | || ('j' <= (c) && (c) <= 'r') \ | |
11617 | || ('s' <= (c) && (c) <= 'z')) | |
11618 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11619 | #endif | |
11620 | ||
11621 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11622 | int | |
11623 | main () | |
11624 | { | |
11625 | int i; | |
11626 | for (i = 0; i < 256; i++) | |
11627 | if (XOR (islower (i), ISLOWER (i)) | |
11628 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
11629 | exit(2); |
11630 | exit (0); | |
bec39cab AC |
11631 | } |
11632 | _ACEOF | |
11633 | rm -f conftest$ac_exeext | |
11634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11635 | (eval $ac_link) 2>&5 | |
11636 | ac_status=$? | |
11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11640 | (eval $ac_try) 2>&5 | |
11641 | ac_status=$? | |
11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11643 | (exit $ac_status); }; }; then | |
11644 | : | |
11645 | else | |
11646 | echo "$as_me: program exited with status $ac_status" >&5 | |
11647 | echo "$as_me: failed program was:" >&5 | |
11648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11649 | ||
11650 | ( exit $ac_status ) | |
11651 | ac_cv_header_stdc=no | |
c906108c | 11652 | fi |
b4e70030 | 11653 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 11654 | fi |
c906108c | 11655 | fi |
bec39cab | 11656 | fi |
b4e70030 JB |
11657 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
11658 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 11659 | if test $ac_cv_header_stdc = yes; then |
c906108c | 11660 | |
bec39cab AC |
11661 | cat >>confdefs.h <<\_ACEOF |
11662 | #define STDC_HEADERS 1 | |
11663 | _ACEOF | |
c906108c | 11664 | |
bec39cab | 11665 | fi |
8bb2c122 | 11666 | |
bec39cab | 11667 | |
7cb9022a | 11668 | for ac_header in nlist.h |
bec39cab AC |
11669 | do |
11670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11676 | fi | |
b4e70030 JB |
11677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11679 | else |
11680 | # Is the header compilable? | |
b4e70030 JB |
11681 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11683 | cat >conftest.$ac_ext <<_ACEOF |
11684 | /* confdefs.h. */ | |
11685 | _ACEOF | |
11686 | cat confdefs.h >>conftest.$ac_ext | |
11687 | cat >>conftest.$ac_ext <<_ACEOF | |
11688 | /* end confdefs.h. */ | |
11689 | $ac_includes_default | |
11690 | #include <$ac_header> | |
11691 | _ACEOF | |
11692 | rm -f conftest.$ac_objext | |
11693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11694 | (eval $ac_compile) 2>conftest.er1 | |
11695 | ac_status=$? | |
11696 | grep -v '^ *+' conftest.er1 >conftest.err | |
11697 | rm -f conftest.er1 | |
11698 | cat conftest.err >&5 | |
11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11700 | (exit $ac_status); } && | |
b4e70030 JB |
11701 | { ac_try='test -z "$ac_c_werror_flag" |
11702 | || test ! -s conftest.err' | |
bec39cab AC |
11703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11704 | (eval $ac_try) 2>&5 | |
11705 | ac_status=$? | |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11707 | (exit $ac_status); }; } && | |
11708 | { ac_try='test -s conftest.$ac_objext' | |
11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11710 | (eval $ac_try) 2>&5 | |
11711 | ac_status=$? | |
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11713 | (exit $ac_status); }; }; then | |
11714 | ac_header_compiler=yes | |
11715 | else | |
11716 | echo "$as_me: failed program was:" >&5 | |
11717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11718 | ||
b4e70030 | 11719 | ac_header_compiler=no |
bec39cab AC |
11720 | fi |
11721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11722 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11723 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11724 | |
11725 | # Is the header present? | |
b4e70030 JB |
11726 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11727 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11728 | cat >conftest.$ac_ext <<_ACEOF |
11729 | /* confdefs.h. */ | |
11730 | _ACEOF | |
11731 | cat confdefs.h >>conftest.$ac_ext | |
11732 | cat >>conftest.$ac_ext <<_ACEOF | |
11733 | /* end confdefs.h. */ | |
11734 | #include <$ac_header> | |
11735 | _ACEOF | |
11736 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11737 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11738 | ac_status=$? | |
11739 | grep -v '^ *+' conftest.er1 >conftest.err | |
11740 | rm -f conftest.er1 | |
11741 | cat conftest.err >&5 | |
11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11743 | (exit $ac_status); } >/dev/null; then | |
11744 | if test -s conftest.err; then | |
11745 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11746 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11747 | else | |
11748 | ac_cpp_err= | |
11749 | fi | |
c906108c | 11750 | else |
bec39cab | 11751 | ac_cpp_err=yes |
c906108c | 11752 | fi |
bec39cab AC |
11753 | if test -z "$ac_cpp_err"; then |
11754 | ac_header_preproc=yes | |
c906108c | 11755 | else |
bec39cab AC |
11756 | echo "$as_me: failed program was:" >&5 |
11757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 11758 | |
bec39cab AC |
11759 | ac_header_preproc=no |
11760 | fi | |
11761 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
11762 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11763 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 11764 | |
bec39cab AC |
11765 | # So? What about this header? |
11766 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11767 | yes:no: ) | |
11768 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11769 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11771 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11772 | ac_header_preproc=yes | |
11773 | ;; | |
11774 | no:yes:* ) | |
11775 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11776 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11777 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11778 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11779 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11780 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11781 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11782 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11784 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11785 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11786 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11787 | ( |
11788 | cat <<\_ASBOX | |
11789 | ## ------------------------------------------ ## | |
11790 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11791 | ## ------------------------------------------ ## | |
11792 | _ASBOX | |
11793 | ) | | |
11794 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11795 | ;; |
11796 | esac | |
b4e70030 JB |
11797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 11801 | else |
bec39cab | 11802 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 11803 | fi |
b4e70030 JB |
11804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11806 | |
95ca63c4 | 11807 | fi |
bec39cab AC |
11808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11809 | cat >>confdefs.h <<_ACEOF | |
11810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11811 | _ACEOF | |
11812 | ||
95ca63c4 CF |
11813 | fi |
11814 | ||
bec39cab | 11815 | done |
95ca63c4 CF |
11816 | |
11817 | ||
7cb9022a | 11818 | for ac_header in link.h |
bec39cab AC |
11819 | do |
11820 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 11825 | else |
7cb9022a | 11826 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11827 | /* confdefs.h. */ |
11828 | _ACEOF | |
11829 | cat confdefs.h >>conftest.$ac_ext | |
11830 | cat >>conftest.$ac_ext <<_ACEOF | |
11831 | /* end confdefs.h. */ | |
7cb9022a MK |
11832 | #if HAVE_SYS_TYPES_H |
11833 | # include <sys/types.h> | |
11834 | #endif | |
11835 | #if HAVE_NLIST_H | |
11836 | # include <nlist.h> | |
11837 | #endif | |
11838 | ||
11839 | ||
bec39cab AC |
11840 | #include <$ac_header> |
11841 | _ACEOF | |
11842 | rm -f conftest.$ac_objext | |
11843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11844 | (eval $ac_compile) 2>conftest.er1 | |
11845 | ac_status=$? | |
11846 | grep -v '^ *+' conftest.er1 >conftest.err | |
11847 | rm -f conftest.er1 | |
11848 | cat conftest.err >&5 | |
11849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); } && | |
b4e70030 JB |
11851 | { ac_try='test -z "$ac_c_werror_flag" |
11852 | || test ! -s conftest.err' | |
bec39cab AC |
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11854 | (eval $ac_try) 2>&5 | |
11855 | ac_status=$? | |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11857 | (exit $ac_status); }; } && | |
11858 | { ac_try='test -s conftest.$ac_objext' | |
11859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11860 | (eval $ac_try) 2>&5 | |
11861 | ac_status=$? | |
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11863 | (exit $ac_status); }; }; then | |
7cb9022a | 11864 | eval "$as_ac_Header=yes" |
bec39cab AC |
11865 | else |
11866 | echo "$as_me: failed program was:" >&5 | |
11867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11868 | ||
b4e70030 | 11869 | eval "$as_ac_Header=no" |
bec39cab AC |
11870 | fi |
11871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 11872 | fi |
b4e70030 JB |
11873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11876 | cat >>confdefs.h <<_ACEOF | |
11877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11878 | _ACEOF | |
95ca63c4 | 11879 | |
bec39cab | 11880 | fi |
95ca63c4 | 11881 | |
bec39cab | 11882 | done |
95ca63c4 | 11883 | |
c906108c | 11884 | |
7cb9022a | 11885 | for ac_header in machine/reg.h |
bec39cab AC |
11886 | do |
11887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11893 | fi | |
b4e70030 JB |
11894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11896 | else |
11897 | # Is the header compilable? | |
b4e70030 JB |
11898 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11900 | cat >conftest.$ac_ext <<_ACEOF |
11901 | /* confdefs.h. */ | |
11902 | _ACEOF | |
11903 | cat confdefs.h >>conftest.$ac_ext | |
11904 | cat >>conftest.$ac_ext <<_ACEOF | |
11905 | /* end confdefs.h. */ | |
11906 | $ac_includes_default | |
11907 | #include <$ac_header> | |
11908 | _ACEOF | |
11909 | rm -f conftest.$ac_objext | |
11910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11911 | (eval $ac_compile) 2>conftest.er1 | |
11912 | ac_status=$? | |
11913 | grep -v '^ *+' conftest.er1 >conftest.err | |
11914 | rm -f conftest.er1 | |
11915 | cat conftest.err >&5 | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); } && | |
b4e70030 JB |
11918 | { ac_try='test -z "$ac_c_werror_flag" |
11919 | || test ! -s conftest.err' | |
bec39cab AC |
11920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11921 | (eval $ac_try) 2>&5 | |
11922 | ac_status=$? | |
11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11924 | (exit $ac_status); }; } && | |
11925 | { ac_try='test -s conftest.$ac_objext' | |
11926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11927 | (eval $ac_try) 2>&5 | |
11928 | ac_status=$? | |
11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11930 | (exit $ac_status); }; }; then | |
11931 | ac_header_compiler=yes | |
11932 | else | |
11933 | echo "$as_me: failed program was:" >&5 | |
11934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11935 | ||
b4e70030 | 11936 | ac_header_compiler=no |
bec39cab AC |
11937 | fi |
11938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11940 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11941 | |
11942 | # Is the header present? | |
b4e70030 JB |
11943 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11945 | cat >conftest.$ac_ext <<_ACEOF |
11946 | /* confdefs.h. */ | |
11947 | _ACEOF | |
11948 | cat confdefs.h >>conftest.$ac_ext | |
11949 | cat >>conftest.$ac_ext <<_ACEOF | |
11950 | /* end confdefs.h. */ | |
11951 | #include <$ac_header> | |
11952 | _ACEOF | |
11953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11955 | ac_status=$? | |
11956 | grep -v '^ *+' conftest.er1 >conftest.err | |
11957 | rm -f conftest.er1 | |
11958 | cat conftest.err >&5 | |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); } >/dev/null; then | |
11961 | if test -s conftest.err; then | |
11962 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11964 | else | |
11965 | ac_cpp_err= | |
11966 | fi | |
75c6e08a | 11967 | else |
bec39cab | 11968 | ac_cpp_err=yes |
75c6e08a | 11969 | fi |
bec39cab AC |
11970 | if test -z "$ac_cpp_err"; then |
11971 | ac_header_preproc=yes | |
11972 | else | |
11973 | echo "$as_me: failed program was:" >&5 | |
11974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11975 | ||
11976 | ac_header_preproc=no | |
75c6e08a | 11977 | fi |
bec39cab | 11978 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11979 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11980 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11981 | |
11982 | # So? What about this header? | |
11983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11984 | yes:no: ) | |
11985 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11986 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11988 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11989 | ac_header_preproc=yes | |
11990 | ;; | |
11991 | no:yes:* ) | |
11992 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11994 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11995 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11996 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11997 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11998 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11999 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12001 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12002 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12003 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12004 | ( |
12005 | cat <<\_ASBOX | |
12006 | ## ------------------------------------------ ## | |
12007 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12008 | ## ------------------------------------------ ## | |
12009 | _ASBOX | |
12010 | ) | | |
12011 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12012 | ;; |
12013 | esac | |
b4e70030 JB |
12014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 12018 | else |
bec39cab AC |
12019 | eval "$as_ac_Header=\$ac_header_preproc" |
12020 | fi | |
b4e70030 JB |
12021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12023 | |
75c6e08a | 12024 | fi |
bec39cab AC |
12025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12026 | cat >>confdefs.h <<_ACEOF | |
12027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12028 | _ACEOF | |
75c6e08a | 12029 | |
bec39cab | 12030 | fi |
75c6e08a | 12031 | |
bec39cab | 12032 | done |
75c6e08a MK |
12033 | |
12034 | ||
9a156167 | 12035 | |
bec39cab AC |
12036 | for ac_header in poll.h sys/poll.h |
12037 | do | |
12038 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12040 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12044 | fi | |
b4e70030 JB |
12045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12047 | else |
12048 | # Is the header compilable? | |
b4e70030 JB |
12049 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12050 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12051 | cat >conftest.$ac_ext <<_ACEOF |
12052 | /* confdefs.h. */ | |
12053 | _ACEOF | |
12054 | cat confdefs.h >>conftest.$ac_ext | |
12055 | cat >>conftest.$ac_ext <<_ACEOF | |
12056 | /* end confdefs.h. */ | |
12057 | $ac_includes_default | |
12058 | #include <$ac_header> | |
12059 | _ACEOF | |
12060 | rm -f conftest.$ac_objext | |
12061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12062 | (eval $ac_compile) 2>conftest.er1 | |
12063 | ac_status=$? | |
12064 | grep -v '^ *+' conftest.er1 >conftest.err | |
12065 | rm -f conftest.er1 | |
12066 | cat conftest.err >&5 | |
12067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12068 | (exit $ac_status); } && | |
b4e70030 JB |
12069 | { ac_try='test -z "$ac_c_werror_flag" |
12070 | || test ! -s conftest.err' | |
bec39cab AC |
12071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12072 | (eval $ac_try) 2>&5 | |
12073 | ac_status=$? | |
12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12075 | (exit $ac_status); }; } && | |
12076 | { ac_try='test -s conftest.$ac_objext' | |
12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12078 | (eval $ac_try) 2>&5 | |
12079 | ac_status=$? | |
12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12081 | (exit $ac_status); }; }; then | |
12082 | ac_header_compiler=yes | |
12083 | else | |
12084 | echo "$as_me: failed program was:" >&5 | |
12085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12086 | ||
b4e70030 | 12087 | ac_header_compiler=no |
bec39cab AC |
12088 | fi |
12089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12090 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12091 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12092 | |
12093 | # Is the header present? | |
b4e70030 JB |
12094 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12096 | cat >conftest.$ac_ext <<_ACEOF |
12097 | /* confdefs.h. */ | |
12098 | _ACEOF | |
12099 | cat confdefs.h >>conftest.$ac_ext | |
12100 | cat >>conftest.$ac_ext <<_ACEOF | |
12101 | /* end confdefs.h. */ | |
12102 | #include <$ac_header> | |
12103 | _ACEOF | |
12104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12106 | ac_status=$? | |
12107 | grep -v '^ *+' conftest.er1 >conftest.err | |
12108 | rm -f conftest.er1 | |
12109 | cat conftest.err >&5 | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12111 | (exit $ac_status); } >/dev/null; then | |
12112 | if test -s conftest.err; then | |
12113 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12114 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12115 | else | |
12116 | ac_cpp_err= | |
12117 | fi | |
9a156167 | 12118 | else |
bec39cab | 12119 | ac_cpp_err=yes |
9a156167 | 12120 | fi |
bec39cab AC |
12121 | if test -z "$ac_cpp_err"; then |
12122 | ac_header_preproc=yes | |
12123 | else | |
12124 | echo "$as_me: failed program was:" >&5 | |
12125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 12126 | |
bec39cab | 12127 | ac_header_preproc=no |
9a156167 | 12128 | fi |
bec39cab | 12129 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12130 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12131 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 12132 | |
bec39cab AC |
12133 | # So? What about this header? |
12134 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12135 | yes:no: ) | |
12136 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12137 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12139 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12140 | ac_header_preproc=yes | |
12141 | ;; | |
12142 | no:yes:* ) | |
12143 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12144 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12145 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12146 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12147 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12148 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12149 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12150 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12152 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12153 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12154 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12155 | ( |
12156 | cat <<\_ASBOX | |
12157 | ## ------------------------------------------ ## | |
12158 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12159 | ## ------------------------------------------ ## | |
12160 | _ASBOX | |
12161 | ) | | |
12162 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12163 | ;; |
12164 | esac | |
b4e70030 JB |
12165 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12166 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12169 | else |
bec39cab | 12170 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12171 | fi |
b4e70030 JB |
12172 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12173 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 12174 | |
bec39cab AC |
12175 | fi |
12176 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12177 | cat >>confdefs.h <<_ACEOF | |
12178 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12179 | _ACEOF | |
9a156167 | 12180 | |
bec39cab | 12181 | fi |
9a156167 | 12182 | |
bec39cab | 12183 | done |
9a156167 | 12184 | |
9a156167 | 12185 | |
9a156167 | 12186 | |
bec39cab AC |
12187 | |
12188 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
12189 | do | |
12190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12196 | fi | |
b4e70030 JB |
12197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12199 | else |
12200 | # Is the header compilable? | |
b4e70030 JB |
12201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12203 | cat >conftest.$ac_ext <<_ACEOF |
12204 | /* confdefs.h. */ | |
12205 | _ACEOF | |
12206 | cat confdefs.h >>conftest.$ac_ext | |
12207 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
12208 | /* end confdefs.h. */ |
12209 | $ac_includes_default | |
12210 | #include <$ac_header> | |
12211 | _ACEOF | |
12212 | rm -f conftest.$ac_objext | |
12213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12214 | (eval $ac_compile) 2>conftest.er1 | |
12215 | ac_status=$? | |
12216 | grep -v '^ *+' conftest.er1 >conftest.err | |
12217 | rm -f conftest.er1 | |
12218 | cat conftest.err >&5 | |
12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12220 | (exit $ac_status); } && | |
12221 | { ac_try='test -z "$ac_c_werror_flag" | |
12222 | || test ! -s conftest.err' | |
12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 | (eval $ac_try) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; } && | |
12228 | { ac_try='test -s conftest.$ac_objext' | |
12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12230 | (eval $ac_try) 2>&5 | |
12231 | ac_status=$? | |
12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12233 | (exit $ac_status); }; }; then | |
12234 | ac_header_compiler=yes | |
12235 | else | |
12236 | echo "$as_me: failed program was:" >&5 | |
12237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12238 | ||
12239 | ac_header_compiler=no | |
12240 | fi | |
12241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12242 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12243 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12244 | ||
12245 | # Is the header present? | |
12246 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12248 | cat >conftest.$ac_ext <<_ACEOF | |
12249 | /* confdefs.h. */ | |
12250 | _ACEOF | |
12251 | cat confdefs.h >>conftest.$ac_ext | |
12252 | cat >>conftest.$ac_ext <<_ACEOF | |
12253 | /* end confdefs.h. */ | |
12254 | #include <$ac_header> | |
12255 | _ACEOF | |
12256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12258 | ac_status=$? | |
12259 | grep -v '^ *+' conftest.er1 >conftest.err | |
12260 | rm -f conftest.er1 | |
12261 | cat conftest.err >&5 | |
12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12263 | (exit $ac_status); } >/dev/null; then | |
12264 | if test -s conftest.err; then | |
12265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12267 | else | |
12268 | ac_cpp_err= | |
12269 | fi | |
12270 | else | |
12271 | ac_cpp_err=yes | |
12272 | fi | |
12273 | if test -z "$ac_cpp_err"; then | |
12274 | ac_header_preproc=yes | |
12275 | else | |
12276 | echo "$as_me: failed program was:" >&5 | |
12277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12278 | ||
12279 | ac_header_preproc=no | |
12280 | fi | |
12281 | rm -f conftest.err conftest.$ac_ext | |
12282 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12283 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12284 | ||
12285 | # So? What about this header? | |
12286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12287 | yes:no: ) | |
12288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12292 | ac_header_preproc=yes | |
12293 | ;; | |
12294 | no:yes:* ) | |
12295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12307 | ( | |
12308 | cat <<\_ASBOX | |
12309 | ## ------------------------------------------ ## | |
12310 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12311 | ## ------------------------------------------ ## | |
12312 | _ASBOX | |
12313 | ) | | |
12314 | sed "s/^/$as_me: WARNING: /" >&2 | |
12315 | ;; | |
12316 | esac | |
12317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12321 | else | |
12322 | eval "$as_ac_Header=\$ac_header_preproc" | |
12323 | fi | |
12324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12326 | ||
12327 | fi | |
12328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12329 | cat >>confdefs.h <<_ACEOF | |
12330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12331 | _ACEOF | |
12332 | ||
12333 | fi | |
12334 | ||
12335 | done | |
12336 | ||
12337 | ||
12338 | for ac_header in signal.h | |
12339 | do | |
12340 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12346 | fi | |
12347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12349 | else | |
12350 | # Is the header compilable? | |
12351 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12353 | cat >conftest.$ac_ext <<_ACEOF | |
12354 | /* confdefs.h. */ | |
12355 | _ACEOF | |
12356 | cat confdefs.h >>conftest.$ac_ext | |
12357 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12358 | /* end confdefs.h. */ |
12359 | $ac_includes_default | |
12360 | #include <$ac_header> | |
12361 | _ACEOF | |
12362 | rm -f conftest.$ac_objext | |
12363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12364 | (eval $ac_compile) 2>conftest.er1 | |
12365 | ac_status=$? | |
12366 | grep -v '^ *+' conftest.er1 >conftest.err | |
12367 | rm -f conftest.er1 | |
12368 | cat conftest.err >&5 | |
12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12370 | (exit $ac_status); } && | |
b4e70030 JB |
12371 | { ac_try='test -z "$ac_c_werror_flag" |
12372 | || test ! -s conftest.err' | |
bec39cab AC |
12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12374 | (eval $ac_try) 2>&5 | |
12375 | ac_status=$? | |
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12377 | (exit $ac_status); }; } && | |
12378 | { ac_try='test -s conftest.$ac_objext' | |
12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12380 | (eval $ac_try) 2>&5 | |
12381 | ac_status=$? | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); }; }; then | |
12384 | ac_header_compiler=yes | |
12385 | else | |
12386 | echo "$as_me: failed program was:" >&5 | |
12387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12388 | ||
b4e70030 | 12389 | ac_header_compiler=no |
bec39cab AC |
12390 | fi |
12391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12393 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12394 | |
12395 | # Is the header present? | |
b4e70030 JB |
12396 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12398 | cat >conftest.$ac_ext <<_ACEOF |
12399 | /* confdefs.h. */ | |
12400 | _ACEOF | |
12401 | cat confdefs.h >>conftest.$ac_ext | |
12402 | cat >>conftest.$ac_ext <<_ACEOF | |
12403 | /* end confdefs.h. */ | |
12404 | #include <$ac_header> | |
12405 | _ACEOF | |
12406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12408 | ac_status=$? | |
12409 | grep -v '^ *+' conftest.er1 >conftest.err | |
12410 | rm -f conftest.er1 | |
12411 | cat conftest.err >&5 | |
12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12413 | (exit $ac_status); } >/dev/null; then | |
12414 | if test -s conftest.err; then | |
12415 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12417 | else | |
12418 | ac_cpp_err= | |
12419 | fi | |
9a156167 | 12420 | else |
bec39cab | 12421 | ac_cpp_err=yes |
9a156167 | 12422 | fi |
bec39cab AC |
12423 | if test -z "$ac_cpp_err"; then |
12424 | ac_header_preproc=yes | |
12425 | else | |
12426 | echo "$as_me: failed program was:" >&5 | |
12427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 12428 | |
bec39cab | 12429 | ac_header_preproc=no |
9a156167 | 12430 | fi |
bec39cab | 12431 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12433 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 12434 | |
bec39cab AC |
12435 | # So? What about this header? |
12436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12437 | yes:no: ) | |
12438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12442 | ac_header_preproc=yes | |
12443 | ;; | |
12444 | no:yes:* ) | |
12445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12457 | ( |
12458 | cat <<\_ASBOX | |
12459 | ## ------------------------------------------ ## | |
12460 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12461 | ## ------------------------------------------ ## | |
12462 | _ASBOX | |
12463 | ) | | |
12464 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12465 | ;; |
12466 | esac | |
b4e70030 JB |
12467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12471 | else |
bec39cab | 12472 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12473 | fi |
b4e70030 JB |
12474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
12476 | |
12477 | fi | |
bec39cab AC |
12478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12479 | cat >>confdefs.h <<_ACEOF | |
12480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12481 | _ACEOF | |
9a156167 | 12482 | |
bec39cab AC |
12483 | fi |
12484 | ||
12485 | done | |
9a156167 | 12486 | |
c890192f | 12487 | |
bec39cab AC |
12488 | for ac_header in stddef.h |
12489 | do | |
12490 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12496 | fi | |
b4e70030 JB |
12497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12499 | else |
12500 | # Is the header compilable? | |
b4e70030 JB |
12501 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12502 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12503 | cat >conftest.$ac_ext <<_ACEOF |
12504 | /* confdefs.h. */ | |
12505 | _ACEOF | |
12506 | cat confdefs.h >>conftest.$ac_ext | |
12507 | cat >>conftest.$ac_ext <<_ACEOF | |
12508 | /* end confdefs.h. */ | |
12509 | $ac_includes_default | |
12510 | #include <$ac_header> | |
12511 | _ACEOF | |
12512 | rm -f conftest.$ac_objext | |
12513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12514 | (eval $ac_compile) 2>conftest.er1 | |
12515 | ac_status=$? | |
12516 | grep -v '^ *+' conftest.er1 >conftest.err | |
12517 | rm -f conftest.er1 | |
12518 | cat conftest.err >&5 | |
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12520 | (exit $ac_status); } && | |
b4e70030 JB |
12521 | { ac_try='test -z "$ac_c_werror_flag" |
12522 | || test ! -s conftest.err' | |
bec39cab AC |
12523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12524 | (eval $ac_try) 2>&5 | |
12525 | ac_status=$? | |
12526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12527 | (exit $ac_status); }; } && | |
12528 | { ac_try='test -s conftest.$ac_objext' | |
12529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12530 | (eval $ac_try) 2>&5 | |
12531 | ac_status=$? | |
12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12533 | (exit $ac_status); }; }; then | |
12534 | ac_header_compiler=yes | |
12535 | else | |
12536 | echo "$as_me: failed program was:" >&5 | |
12537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12538 | ||
b4e70030 | 12539 | ac_header_compiler=no |
bec39cab AC |
12540 | fi |
12541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12542 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12543 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12544 | |
12545 | # Is the header present? | |
b4e70030 JB |
12546 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12547 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12548 | cat >conftest.$ac_ext <<_ACEOF |
12549 | /* confdefs.h. */ | |
12550 | _ACEOF | |
12551 | cat confdefs.h >>conftest.$ac_ext | |
12552 | cat >>conftest.$ac_ext <<_ACEOF | |
12553 | /* end confdefs.h. */ | |
12554 | #include <$ac_header> | |
12555 | _ACEOF | |
12556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12558 | ac_status=$? | |
12559 | grep -v '^ *+' conftest.er1 >conftest.err | |
12560 | rm -f conftest.er1 | |
12561 | cat conftest.err >&5 | |
12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12563 | (exit $ac_status); } >/dev/null; then | |
12564 | if test -s conftest.err; then | |
12565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12567 | else | |
12568 | ac_cpp_err= | |
12569 | fi | |
c890192f | 12570 | else |
bec39cab AC |
12571 | ac_cpp_err=yes |
12572 | fi | |
12573 | if test -z "$ac_cpp_err"; then | |
12574 | ac_header_preproc=yes | |
c890192f | 12575 | else |
bec39cab AC |
12576 | echo "$as_me: failed program was:" >&5 |
12577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12578 | ||
12579 | ac_header_preproc=no | |
c890192f | 12580 | fi |
bec39cab | 12581 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12583 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12584 | |
12585 | # So? What about this header? | |
12586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12587 | yes:no: ) | |
12588 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12589 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12591 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12592 | ac_header_preproc=yes | |
12593 | ;; | |
12594 | no:yes:* ) | |
12595 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12596 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12597 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12598 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12599 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12600 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12601 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12602 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12604 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12605 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12606 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12607 | ( |
12608 | cat <<\_ASBOX | |
12609 | ## ------------------------------------------ ## | |
12610 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12611 | ## ------------------------------------------ ## | |
12612 | _ASBOX | |
12613 | ) | | |
12614 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12615 | ;; |
12616 | esac | |
b4e70030 JB |
12617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 12621 | else |
bec39cab | 12622 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 12623 | fi |
b4e70030 JB |
12624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12626 | |
c890192f | 12627 | fi |
bec39cab AC |
12628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12629 | cat >>confdefs.h <<_ACEOF | |
12630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12631 | _ACEOF | |
c890192f | 12632 | |
c890192f MK |
12633 | fi |
12634 | ||
bec39cab | 12635 | done |
9a156167 | 12636 | |
bec39cab AC |
12637 | |
12638 | for ac_header in stdlib.h | |
12639 | do | |
12640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12646 | fi | |
b4e70030 JB |
12647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12649 | else |
12650 | # Is the header compilable? | |
b4e70030 JB |
12651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12653 | cat >conftest.$ac_ext <<_ACEOF |
12654 | /* confdefs.h. */ | |
12655 | _ACEOF | |
12656 | cat confdefs.h >>conftest.$ac_ext | |
12657 | cat >>conftest.$ac_ext <<_ACEOF | |
12658 | /* end confdefs.h. */ | |
12659 | $ac_includes_default | |
12660 | #include <$ac_header> | |
12661 | _ACEOF | |
12662 | rm -f conftest.$ac_objext | |
12663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12664 | (eval $ac_compile) 2>conftest.er1 | |
12665 | ac_status=$? | |
12666 | grep -v '^ *+' conftest.er1 >conftest.err | |
12667 | rm -f conftest.er1 | |
12668 | cat conftest.err >&5 | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); } && | |
b4e70030 JB |
12671 | { ac_try='test -z "$ac_c_werror_flag" |
12672 | || test ! -s conftest.err' | |
bec39cab AC |
12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12674 | (eval $ac_try) 2>&5 | |
12675 | ac_status=$? | |
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12677 | (exit $ac_status); }; } && | |
12678 | { ac_try='test -s conftest.$ac_objext' | |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); }; }; then | |
12684 | ac_header_compiler=yes | |
12685 | else | |
12686 | echo "$as_me: failed program was:" >&5 | |
12687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12688 | ||
b4e70030 | 12689 | ac_header_compiler=no |
bec39cab AC |
12690 | fi |
12691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12694 | |
12695 | # Is the header present? | |
b4e70030 JB |
12696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12698 | cat >conftest.$ac_ext <<_ACEOF |
12699 | /* confdefs.h. */ | |
12700 | _ACEOF | |
12701 | cat confdefs.h >>conftest.$ac_ext | |
12702 | cat >>conftest.$ac_ext <<_ACEOF | |
12703 | /* end confdefs.h. */ | |
12704 | #include <$ac_header> | |
12705 | _ACEOF | |
12706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12708 | ac_status=$? | |
12709 | grep -v '^ *+' conftest.er1 >conftest.err | |
12710 | rm -f conftest.er1 | |
12711 | cat conftest.err >&5 | |
12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12713 | (exit $ac_status); } >/dev/null; then | |
12714 | if test -s conftest.err; then | |
12715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12717 | else | |
12718 | ac_cpp_err= | |
12719 | fi | |
9a156167 | 12720 | else |
bec39cab AC |
12721 | ac_cpp_err=yes |
12722 | fi | |
12723 | if test -z "$ac_cpp_err"; then | |
12724 | ac_header_preproc=yes | |
9a156167 | 12725 | else |
bec39cab AC |
12726 | echo "$as_me: failed program was:" >&5 |
12727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12728 | ||
12729 | ac_header_preproc=no | |
9a156167 | 12730 | fi |
bec39cab | 12731 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12734 | |
12735 | # So? What about this header? | |
12736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12737 | yes:no: ) | |
12738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12742 | ac_header_preproc=yes | |
12743 | ;; | |
12744 | no:yes:* ) | |
12745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12757 | ( |
12758 | cat <<\_ASBOX | |
12759 | ## ------------------------------------------ ## | |
12760 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12761 | ## ------------------------------------------ ## | |
12762 | _ASBOX | |
12763 | ) | | |
12764 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12765 | ;; |
12766 | esac | |
b4e70030 JB |
12767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12771 | else |
bec39cab | 12772 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12773 | fi |
b4e70030 JB |
12774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12776 | |
9a156167 | 12777 | fi |
bec39cab AC |
12778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12779 | cat >>confdefs.h <<_ACEOF | |
12780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12781 | _ACEOF | |
9a156167 | 12782 | |
9a156167 MK |
12783 | fi |
12784 | ||
bec39cab AC |
12785 | done |
12786 | ||
06825bd1 | 12787 | |
bec39cab AC |
12788 | for ac_header in stdint.h |
12789 | do | |
12790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12796 | fi | |
b4e70030 JB |
12797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12799 | else |
12800 | # Is the header compilable? | |
b4e70030 JB |
12801 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12803 | cat >conftest.$ac_ext <<_ACEOF |
12804 | /* confdefs.h. */ | |
12805 | _ACEOF | |
12806 | cat confdefs.h >>conftest.$ac_ext | |
12807 | cat >>conftest.$ac_ext <<_ACEOF | |
12808 | /* end confdefs.h. */ | |
12809 | $ac_includes_default | |
12810 | #include <$ac_header> | |
12811 | _ACEOF | |
12812 | rm -f conftest.$ac_objext | |
12813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12814 | (eval $ac_compile) 2>conftest.er1 | |
12815 | ac_status=$? | |
12816 | grep -v '^ *+' conftest.er1 >conftest.err | |
12817 | rm -f conftest.er1 | |
12818 | cat conftest.err >&5 | |
12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); } && | |
b4e70030 JB |
12821 | { ac_try='test -z "$ac_c_werror_flag" |
12822 | || test ! -s conftest.err' | |
bec39cab AC |
12823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12824 | (eval $ac_try) 2>&5 | |
12825 | ac_status=$? | |
12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12827 | (exit $ac_status); }; } && | |
12828 | { ac_try='test -s conftest.$ac_objext' | |
12829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12830 | (eval $ac_try) 2>&5 | |
12831 | ac_status=$? | |
12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12833 | (exit $ac_status); }; }; then | |
12834 | ac_header_compiler=yes | |
12835 | else | |
12836 | echo "$as_me: failed program was:" >&5 | |
12837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12838 | ||
b4e70030 | 12839 | ac_header_compiler=no |
bec39cab AC |
12840 | fi |
12841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12843 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12844 | |
12845 | # Is the header present? | |
b4e70030 JB |
12846 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12848 | cat >conftest.$ac_ext <<_ACEOF |
12849 | /* confdefs.h. */ | |
12850 | _ACEOF | |
12851 | cat confdefs.h >>conftest.$ac_ext | |
12852 | cat >>conftest.$ac_ext <<_ACEOF | |
12853 | /* end confdefs.h. */ | |
12854 | #include <$ac_header> | |
12855 | _ACEOF | |
12856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12858 | ac_status=$? | |
12859 | grep -v '^ *+' conftest.er1 >conftest.err | |
12860 | rm -f conftest.er1 | |
12861 | cat conftest.err >&5 | |
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12863 | (exit $ac_status); } >/dev/null; then | |
12864 | if test -s conftest.err; then | |
12865 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12866 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12867 | else | |
12868 | ac_cpp_err= | |
12869 | fi | |
06825bd1 | 12870 | else |
bec39cab AC |
12871 | ac_cpp_err=yes |
12872 | fi | |
12873 | if test -z "$ac_cpp_err"; then | |
12874 | ac_header_preproc=yes | |
06825bd1 | 12875 | else |
bec39cab AC |
12876 | echo "$as_me: failed program was:" >&5 |
12877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12878 | ||
12879 | ac_header_preproc=no | |
06825bd1 | 12880 | fi |
bec39cab | 12881 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12882 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12883 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
12884 | |
12885 | # So? What about this header? | |
12886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12887 | yes:no: ) | |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12892 | ac_header_preproc=yes | |
12893 | ;; | |
12894 | no:yes:* ) | |
12895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12906 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12907 | ( |
12908 | cat <<\_ASBOX | |
12909 | ## ------------------------------------------ ## | |
12910 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12911 | ## ------------------------------------------ ## | |
12912 | _ASBOX | |
12913 | ) | | |
12914 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12915 | ;; |
12916 | esac | |
b4e70030 JB |
12917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 12921 | else |
bec39cab | 12922 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 12923 | fi |
b4e70030 JB |
12924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12926 | |
06825bd1 | 12927 | fi |
bec39cab AC |
12928 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12929 | cat >>confdefs.h <<_ACEOF | |
12930 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12931 | _ACEOF | |
06825bd1 | 12932 | |
06825bd1 | 12933 | fi |
4f0be353 | 12934 | |
bec39cab | 12935 | done |
4f0be353 | 12936 | |
06825bd1 | 12937 | |
06825bd1 | 12938 | |
bec39cab AC |
12939 | |
12940 | for ac_header in string.h memory.h strings.h | |
12941 | do | |
12942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12948 | fi | |
b4e70030 JB |
12949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12951 | else |
12952 | # Is the header compilable? | |
b4e70030 JB |
12953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12955 | cat >conftest.$ac_ext <<_ACEOF |
12956 | /* confdefs.h. */ | |
12957 | _ACEOF | |
12958 | cat confdefs.h >>conftest.$ac_ext | |
12959 | cat >>conftest.$ac_ext <<_ACEOF | |
12960 | /* end confdefs.h. */ | |
12961 | $ac_includes_default | |
12962 | #include <$ac_header> | |
12963 | _ACEOF | |
12964 | rm -f conftest.$ac_objext | |
12965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12966 | (eval $ac_compile) 2>conftest.er1 | |
12967 | ac_status=$? | |
12968 | grep -v '^ *+' conftest.er1 >conftest.err | |
12969 | rm -f conftest.er1 | |
12970 | cat conftest.err >&5 | |
12971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12972 | (exit $ac_status); } && | |
b4e70030 JB |
12973 | { ac_try='test -z "$ac_c_werror_flag" |
12974 | || test ! -s conftest.err' | |
bec39cab AC |
12975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12976 | (eval $ac_try) 2>&5 | |
12977 | ac_status=$? | |
12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12979 | (exit $ac_status); }; } && | |
12980 | { ac_try='test -s conftest.$ac_objext' | |
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12982 | (eval $ac_try) 2>&5 | |
12983 | ac_status=$? | |
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12985 | (exit $ac_status); }; }; then | |
12986 | ac_header_compiler=yes | |
12987 | else | |
12988 | echo "$as_me: failed program was:" >&5 | |
12989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12990 | ||
b4e70030 | 12991 | ac_header_compiler=no |
bec39cab AC |
12992 | fi |
12993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12996 | |
12997 | # Is the header present? | |
b4e70030 JB |
12998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13000 | cat >conftest.$ac_ext <<_ACEOF |
13001 | /* confdefs.h. */ | |
13002 | _ACEOF | |
13003 | cat confdefs.h >>conftest.$ac_ext | |
13004 | cat >>conftest.$ac_ext <<_ACEOF | |
13005 | /* end confdefs.h. */ | |
13006 | #include <$ac_header> | |
13007 | _ACEOF | |
13008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13010 | ac_status=$? | |
13011 | grep -v '^ *+' conftest.er1 >conftest.err | |
13012 | rm -f conftest.er1 | |
13013 | cat conftest.err >&5 | |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13015 | (exit $ac_status); } >/dev/null; then | |
13016 | if test -s conftest.err; then | |
13017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13019 | else | |
13020 | ac_cpp_err= | |
13021 | fi | |
06825bd1 | 13022 | else |
bec39cab AC |
13023 | ac_cpp_err=yes |
13024 | fi | |
13025 | if test -z "$ac_cpp_err"; then | |
13026 | ac_header_preproc=yes | |
06825bd1 | 13027 | else |
bec39cab AC |
13028 | echo "$as_me: failed program was:" >&5 |
13029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13030 | ||
13031 | ac_header_preproc=no | |
06825bd1 | 13032 | fi |
bec39cab | 13033 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
13036 | |
13037 | # So? What about this header? | |
13038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13039 | yes:no: ) | |
13040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13044 | ac_header_preproc=yes | |
13045 | ;; | |
13046 | no:yes:* ) | |
13047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13059 | ( |
13060 | cat <<\_ASBOX | |
13061 | ## ------------------------------------------ ## | |
13062 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13063 | ## ------------------------------------------ ## | |
13064 | _ASBOX | |
13065 | ) | | |
13066 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13067 | ;; |
13068 | esac | |
b4e70030 JB |
13069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13073 | else | |
13074 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 13075 | fi |
b4e70030 JB |
13076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 13078 | |
06825bd1 | 13079 | fi |
bec39cab AC |
13080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13081 | cat >>confdefs.h <<_ACEOF | |
13082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13083 | _ACEOF | |
06825bd1 | 13084 | |
06825bd1 MK |
13085 | fi |
13086 | ||
bec39cab | 13087 | done |
5ee754fc | 13088 | |
bec39cab AC |
13089 | |
13090 | for ac_header in sys/fault.h | |
5ee754fc | 13091 | do |
bec39cab | 13092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13098 | fi | |
b4e70030 JB |
13099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13101 | else |
13102 | # Is the header compilable? | |
b4e70030 JB |
13103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13105 | cat >conftest.$ac_ext <<_ACEOF |
13106 | /* confdefs.h. */ | |
13107 | _ACEOF | |
13108 | cat confdefs.h >>conftest.$ac_ext | |
13109 | cat >>conftest.$ac_ext <<_ACEOF | |
13110 | /* end confdefs.h. */ | |
13111 | $ac_includes_default | |
13112 | #include <$ac_header> | |
13113 | _ACEOF | |
13114 | rm -f conftest.$ac_objext | |
13115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13116 | (eval $ac_compile) 2>conftest.er1 | |
13117 | ac_status=$? | |
13118 | grep -v '^ *+' conftest.er1 >conftest.err | |
13119 | rm -f conftest.er1 | |
13120 | cat conftest.err >&5 | |
13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13122 | (exit $ac_status); } && | |
b4e70030 JB |
13123 | { ac_try='test -z "$ac_c_werror_flag" |
13124 | || test ! -s conftest.err' | |
bec39cab AC |
13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13126 | (eval $ac_try) 2>&5 | |
13127 | ac_status=$? | |
13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13129 | (exit $ac_status); }; } && | |
13130 | { ac_try='test -s conftest.$ac_objext' | |
13131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13132 | (eval $ac_try) 2>&5 | |
13133 | ac_status=$? | |
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13135 | (exit $ac_status); }; }; then | |
13136 | ac_header_compiler=yes | |
13137 | else | |
13138 | echo "$as_me: failed program was:" >&5 | |
13139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13140 | ||
b4e70030 | 13141 | ac_header_compiler=no |
bec39cab AC |
13142 | fi |
13143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13145 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13146 | |
13147 | # Is the header present? | |
b4e70030 JB |
13148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13150 | cat >conftest.$ac_ext <<_ACEOF |
13151 | /* confdefs.h. */ | |
13152 | _ACEOF | |
13153 | cat confdefs.h >>conftest.$ac_ext | |
13154 | cat >>conftest.$ac_ext <<_ACEOF | |
13155 | /* end confdefs.h. */ | |
13156 | #include <$ac_header> | |
13157 | _ACEOF | |
13158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13160 | ac_status=$? | |
13161 | grep -v '^ *+' conftest.er1 >conftest.err | |
13162 | rm -f conftest.er1 | |
13163 | cat conftest.err >&5 | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); } >/dev/null; then | |
13166 | if test -s conftest.err; then | |
13167 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13169 | else | |
13170 | ac_cpp_err= | |
13171 | fi | |
5ee754fc | 13172 | else |
bec39cab | 13173 | ac_cpp_err=yes |
5ee754fc | 13174 | fi |
bec39cab AC |
13175 | if test -z "$ac_cpp_err"; then |
13176 | ac_header_preproc=yes | |
13177 | else | |
13178 | echo "$as_me: failed program was:" >&5 | |
13179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13180 | |
bec39cab | 13181 | ac_header_preproc=no |
5ee754fc | 13182 | fi |
bec39cab | 13183 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13185 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
13186 | |
13187 | # So? What about this header? | |
13188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13189 | yes:no: ) | |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13194 | ac_header_preproc=yes | |
13195 | ;; | |
13196 | no:yes:* ) | |
13197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13209 | ( |
13210 | cat <<\_ASBOX | |
13211 | ## ------------------------------------------ ## | |
13212 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13213 | ## ------------------------------------------ ## | |
13214 | _ASBOX | |
13215 | ) | | |
13216 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13217 | ;; |
13218 | esac | |
b4e70030 JB |
13219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13223 | else |
bec39cab | 13224 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 13225 | fi |
b4e70030 JB |
13226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 13228 | |
5ee754fc | 13229 | fi |
bec39cab AC |
13230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13231 | cat >>confdefs.h <<_ACEOF | |
13232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13233 | _ACEOF | |
c906108c | 13234 | |
5ee754fc | 13235 | fi |
bec39cab AC |
13236 | |
13237 | done | |
13238 | ||
13239 | ||
13240 | for ac_header in sys/file.h | |
13241 | do | |
13242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13248 | fi | |
b4e70030 JB |
13249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13251 | else |
13252 | # Is the header compilable? | |
b4e70030 JB |
13253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13255 | cat >conftest.$ac_ext <<_ACEOF |
13256 | /* confdefs.h. */ | |
13257 | _ACEOF | |
13258 | cat confdefs.h >>conftest.$ac_ext | |
13259 | cat >>conftest.$ac_ext <<_ACEOF | |
13260 | /* end confdefs.h. */ | |
13261 | $ac_includes_default | |
13262 | #include <$ac_header> | |
13263 | _ACEOF | |
13264 | rm -f conftest.$ac_objext | |
13265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13266 | (eval $ac_compile) 2>conftest.er1 | |
13267 | ac_status=$? | |
13268 | grep -v '^ *+' conftest.er1 >conftest.err | |
13269 | rm -f conftest.er1 | |
13270 | cat conftest.err >&5 | |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13272 | (exit $ac_status); } && | |
b4e70030 JB |
13273 | { ac_try='test -z "$ac_c_werror_flag" |
13274 | || test ! -s conftest.err' | |
bec39cab AC |
13275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13276 | (eval $ac_try) 2>&5 | |
13277 | ac_status=$? | |
13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13279 | (exit $ac_status); }; } && | |
13280 | { ac_try='test -s conftest.$ac_objext' | |
13281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13282 | (eval $ac_try) 2>&5 | |
13283 | ac_status=$? | |
13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 | (exit $ac_status); }; }; then | |
13286 | ac_header_compiler=yes | |
13287 | else | |
13288 | echo "$as_me: failed program was:" >&5 | |
13289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13290 | ||
b4e70030 | 13291 | ac_header_compiler=no |
bec39cab AC |
13292 | fi |
13293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13294 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13295 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13296 | |
13297 | # Is the header present? | |
b4e70030 JB |
13298 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13299 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13300 | cat >conftest.$ac_ext <<_ACEOF |
13301 | /* confdefs.h. */ | |
13302 | _ACEOF | |
13303 | cat confdefs.h >>conftest.$ac_ext | |
13304 | cat >>conftest.$ac_ext <<_ACEOF | |
13305 | /* end confdefs.h. */ | |
13306 | #include <$ac_header> | |
13307 | _ACEOF | |
13308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13310 | ac_status=$? | |
13311 | grep -v '^ *+' conftest.er1 >conftest.err | |
13312 | rm -f conftest.er1 | |
13313 | cat conftest.err >&5 | |
13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13315 | (exit $ac_status); } >/dev/null; then | |
13316 | if test -s conftest.err; then | |
13317 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13319 | else | |
13320 | ac_cpp_err= | |
13321 | fi | |
5ee754fc | 13322 | else |
bec39cab | 13323 | ac_cpp_err=yes |
5ee754fc | 13324 | fi |
bec39cab AC |
13325 | if test -z "$ac_cpp_err"; then |
13326 | ac_header_preproc=yes | |
13327 | else | |
13328 | echo "$as_me: failed program was:" >&5 | |
13329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 13330 | |
bec39cab | 13331 | ac_header_preproc=no |
5ee754fc | 13332 | fi |
bec39cab | 13333 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13334 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13335 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 13336 | |
bec39cab AC |
13337 | # So? What about this header? |
13338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13339 | yes:no: ) | |
13340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13344 | ac_header_preproc=yes | |
13345 | ;; | |
13346 | no:yes:* ) | |
13347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13358 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13359 | ( |
13360 | cat <<\_ASBOX | |
13361 | ## ------------------------------------------ ## | |
13362 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13363 | ## ------------------------------------------ ## | |
13364 | _ASBOX | |
13365 | ) | | |
13366 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13367 | ;; |
13368 | esac | |
b4e70030 JB |
13369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 13373 | else |
bec39cab AC |
13374 | eval "$as_ac_Header=\$ac_header_preproc" |
13375 | fi | |
b4e70030 JB |
13376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13378 | |
bec39cab AC |
13379 | fi |
13380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13381 | cat >>confdefs.h <<_ACEOF | |
13382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13383 | _ACEOF | |
5ee754fc | 13384 | |
bec39cab | 13385 | fi |
5ee754fc | 13386 | |
bec39cab | 13387 | done |
5ee754fc | 13388 | |
5ee754fc | 13389 | |
bec39cab AC |
13390 | for ac_header in sys/filio.h |
13391 | do | |
13392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13398 | fi | |
b4e70030 JB |
13399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13401 | else |
13402 | # Is the header compilable? | |
b4e70030 JB |
13403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13405 | cat >conftest.$ac_ext <<_ACEOF |
13406 | /* confdefs.h. */ | |
13407 | _ACEOF | |
13408 | cat confdefs.h >>conftest.$ac_ext | |
13409 | cat >>conftest.$ac_ext <<_ACEOF | |
13410 | /* end confdefs.h. */ | |
13411 | $ac_includes_default | |
13412 | #include <$ac_header> | |
13413 | _ACEOF | |
13414 | rm -f conftest.$ac_objext | |
13415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13416 | (eval $ac_compile) 2>conftest.er1 | |
13417 | ac_status=$? | |
13418 | grep -v '^ *+' conftest.er1 >conftest.err | |
13419 | rm -f conftest.er1 | |
13420 | cat conftest.err >&5 | |
13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13422 | (exit $ac_status); } && | |
b4e70030 JB |
13423 | { ac_try='test -z "$ac_c_werror_flag" |
13424 | || test ! -s conftest.err' | |
bec39cab AC |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; } && | |
13430 | { ac_try='test -s conftest.$ac_objext' | |
13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13432 | (eval $ac_try) 2>&5 | |
13433 | ac_status=$? | |
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13435 | (exit $ac_status); }; }; then | |
13436 | ac_header_compiler=yes | |
13437 | else | |
13438 | echo "$as_me: failed program was:" >&5 | |
13439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13440 | ||
b4e70030 | 13441 | ac_header_compiler=no |
bec39cab AC |
13442 | fi |
13443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13445 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13446 | |
13447 | # Is the header present? | |
b4e70030 JB |
13448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13450 | cat >conftest.$ac_ext <<_ACEOF |
13451 | /* confdefs.h. */ | |
13452 | _ACEOF | |
13453 | cat confdefs.h >>conftest.$ac_ext | |
13454 | cat >>conftest.$ac_ext <<_ACEOF | |
13455 | /* end confdefs.h. */ | |
13456 | #include <$ac_header> | |
13457 | _ACEOF | |
13458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13460 | ac_status=$? | |
13461 | grep -v '^ *+' conftest.er1 >conftest.err | |
13462 | rm -f conftest.er1 | |
13463 | cat conftest.err >&5 | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); } >/dev/null; then | |
13466 | if test -s conftest.err; then | |
13467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13469 | else | |
13470 | ac_cpp_err= | |
13471 | fi | |
5ee754fc | 13472 | else |
bec39cab | 13473 | ac_cpp_err=yes |
5ee754fc | 13474 | fi |
bec39cab AC |
13475 | if test -z "$ac_cpp_err"; then |
13476 | ac_header_preproc=yes | |
13477 | else | |
13478 | echo "$as_me: failed program was:" >&5 | |
13479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13480 | |
bec39cab | 13481 | ac_header_preproc=no |
5ee754fc | 13482 | fi |
bec39cab | 13483 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13485 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 13486 | |
bec39cab AC |
13487 | # So? What about this header? |
13488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13489 | yes:no: ) | |
13490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13494 | ac_header_preproc=yes | |
13495 | ;; | |
13496 | no:yes:* ) | |
13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13509 | ( |
13510 | cat <<\_ASBOX | |
13511 | ## ------------------------------------------ ## | |
13512 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13513 | ## ------------------------------------------ ## | |
13514 | _ASBOX | |
13515 | ) | | |
13516 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13517 | ;; |
13518 | esac | |
b4e70030 JB |
13519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13523 | else |
bec39cab | 13524 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13525 | fi |
b4e70030 JB |
13526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13528 | |
5ee754fc | 13529 | fi |
bec39cab AC |
13530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13531 | cat >>confdefs.h <<_ACEOF | |
13532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13533 | _ACEOF | |
5ee754fc MK |
13534 | |
13535 | fi | |
13536 | ||
bec39cab AC |
13537 | done |
13538 | ||
13539 | ||
13540 | for ac_header in sys/ioctl.h | |
13541 | do | |
13542 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
13543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13548 | fi | |
b4e70030 JB |
13549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13551 | else |
13552 | # Is the header compilable? | |
b4e70030 JB |
13553 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13554 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13555 | cat >conftest.$ac_ext <<_ACEOF |
13556 | /* confdefs.h. */ | |
13557 | _ACEOF | |
13558 | cat confdefs.h >>conftest.$ac_ext | |
13559 | cat >>conftest.$ac_ext <<_ACEOF | |
13560 | /* end confdefs.h. */ | |
13561 | $ac_includes_default | |
13562 | #include <$ac_header> | |
13563 | _ACEOF | |
13564 | rm -f conftest.$ac_objext | |
13565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13566 | (eval $ac_compile) 2>conftest.er1 | |
13567 | ac_status=$? | |
13568 | grep -v '^ *+' conftest.er1 >conftest.err | |
13569 | rm -f conftest.er1 | |
13570 | cat conftest.err >&5 | |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); } && | |
b4e70030 JB |
13573 | { ac_try='test -z "$ac_c_werror_flag" |
13574 | || test ! -s conftest.err' | |
bec39cab AC |
13575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13576 | (eval $ac_try) 2>&5 | |
13577 | ac_status=$? | |
13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13579 | (exit $ac_status); }; } && | |
13580 | { ac_try='test -s conftest.$ac_objext' | |
13581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13582 | (eval $ac_try) 2>&5 | |
13583 | ac_status=$? | |
13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13585 | (exit $ac_status); }; }; then | |
13586 | ac_header_compiler=yes | |
13587 | else | |
13588 | echo "$as_me: failed program was:" >&5 | |
13589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13590 | ||
b4e70030 | 13591 | ac_header_compiler=no |
bec39cab AC |
13592 | fi |
13593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13594 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13595 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13596 | |
13597 | # Is the header present? | |
b4e70030 JB |
13598 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13599 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13600 | cat >conftest.$ac_ext <<_ACEOF |
13601 | /* confdefs.h. */ | |
13602 | _ACEOF | |
13603 | cat confdefs.h >>conftest.$ac_ext | |
13604 | cat >>conftest.$ac_ext <<_ACEOF | |
13605 | /* end confdefs.h. */ | |
13606 | #include <$ac_header> | |
13607 | _ACEOF | |
13608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13610 | ac_status=$? | |
13611 | grep -v '^ *+' conftest.er1 >conftest.err | |
13612 | rm -f conftest.er1 | |
13613 | cat conftest.err >&5 | |
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13615 | (exit $ac_status); } >/dev/null; then | |
13616 | if test -s conftest.err; then | |
13617 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13619 | else | |
13620 | ac_cpp_err= | |
13621 | fi | |
5ee754fc | 13622 | else |
bec39cab | 13623 | ac_cpp_err=yes |
5ee754fc | 13624 | fi |
bec39cab AC |
13625 | if test -z "$ac_cpp_err"; then |
13626 | ac_header_preproc=yes | |
13627 | else | |
13628 | echo "$as_me: failed program was:" >&5 | |
13629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13630 | |
bec39cab | 13631 | ac_header_preproc=no |
5ee754fc | 13632 | fi |
bec39cab | 13633 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13634 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13635 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 13636 | |
bec39cab AC |
13637 | # So? What about this header? |
13638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13639 | yes:no: ) | |
13640 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13641 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13643 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13644 | ac_header_preproc=yes | |
13645 | ;; | |
13646 | no:yes:* ) | |
13647 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13648 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13649 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13650 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13652 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13653 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13654 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13656 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13657 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13658 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13659 | ( |
13660 | cat <<\_ASBOX | |
13661 | ## ------------------------------------------ ## | |
13662 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13663 | ## ------------------------------------------ ## | |
13664 | _ASBOX | |
13665 | ) | | |
13666 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13667 | ;; |
13668 | esac | |
b4e70030 JB |
13669 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 13673 | else |
bec39cab | 13674 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13675 | fi |
b4e70030 JB |
13676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13677 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
13678 | |
13679 | fi | |
bec39cab AC |
13680 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13681 | cat >>confdefs.h <<_ACEOF | |
13682 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13683 | _ACEOF | |
13684 | ||
5ee754fc MK |
13685 | fi |
13686 | ||
bec39cab | 13687 | done |
5ee754fc | 13688 | |
5ee754fc | 13689 | |
bec39cab | 13690 | for ac_header in sys/param.h |
5ee754fc | 13691 | do |
bec39cab | 13692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
13697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13698 | fi | |
b4e70030 JB |
13699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
13701 | else |
13702 | # Is the header compilable? | |
b4e70030 JB |
13703 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13704 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
13705 | cat >conftest.$ac_ext <<_ACEOF |
13706 | /* confdefs.h. */ | |
13707 | _ACEOF | |
13708 | cat confdefs.h >>conftest.$ac_ext | |
13709 | cat >>conftest.$ac_ext <<_ACEOF | |
13710 | /* end confdefs.h. */ | |
13711 | $ac_includes_default | |
13712 | #include <$ac_header> | |
13713 | _ACEOF | |
13714 | rm -f conftest.$ac_objext | |
13715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13716 | (eval $ac_compile) 2>conftest.er1 | |
13717 | ac_status=$? | |
13718 | grep -v '^ *+' conftest.er1 >conftest.err | |
13719 | rm -f conftest.er1 | |
13720 | cat conftest.err >&5 | |
13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | (exit $ac_status); } && | |
b4e70030 JB |
13723 | { ac_try='test -z "$ac_c_werror_flag" |
13724 | || test ! -s conftest.err' | |
bec39cab AC |
13725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13726 | (eval $ac_try) 2>&5 | |
13727 | ac_status=$? | |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); }; } && | |
13730 | { ac_try='test -s conftest.$ac_objext' | |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; }; then | |
13736 | ac_header_compiler=yes | |
13737 | else | |
13738 | echo "$as_me: failed program was:" >&5 | |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13740 | ||
b4e70030 | 13741 | ac_header_compiler=no |
bec39cab AC |
13742 | fi |
13743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
13744 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13745 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
13746 | |
13747 | # Is the header present? | |
b4e70030 JB |
13748 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13749 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
13750 | cat >conftest.$ac_ext <<_ACEOF |
13751 | /* confdefs.h. */ | |
13752 | _ACEOF | |
13753 | cat confdefs.h >>conftest.$ac_ext | |
13754 | cat >>conftest.$ac_ext <<_ACEOF | |
13755 | /* end confdefs.h. */ | |
13756 | #include <$ac_header> | |
13757 | _ACEOF | |
13758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13760 | ac_status=$? | |
13761 | grep -v '^ *+' conftest.er1 >conftest.err | |
13762 | rm -f conftest.er1 | |
13763 | cat conftest.err >&5 | |
13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13765 | (exit $ac_status); } >/dev/null; then | |
13766 | if test -s conftest.err; then | |
13767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13769 | else | |
13770 | ac_cpp_err= | |
13771 | fi | |
5ee754fc | 13772 | else |
bec39cab | 13773 | ac_cpp_err=yes |
5ee754fc | 13774 | fi |
bec39cab AC |
13775 | if test -z "$ac_cpp_err"; then |
13776 | ac_header_preproc=yes | |
13777 | else | |
13778 | echo "$as_me: failed program was:" >&5 | |
13779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13780 | |
bec39cab | 13781 | ac_header_preproc=no |
5ee754fc | 13782 | fi |
bec39cab | 13783 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
13784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13785 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
13786 | |
13787 | # So? What about this header? | |
13788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13789 | yes:no: ) | |
13790 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13791 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13793 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13794 | ac_header_preproc=yes | |
13795 | ;; | |
13796 | no:yes:* ) | |
13797 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13798 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13799 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13800 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13801 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13802 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13803 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13804 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13805 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13806 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13807 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13808 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
13809 | ( |
13810 | cat <<\_ASBOX | |
13811 | ## ------------------------------------------ ## | |
13812 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13813 | ## ------------------------------------------ ## | |
13814 | _ASBOX | |
13815 | ) | | |
13816 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
13817 | ;; |
13818 | esac | |
b4e70030 JB |
13819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 13823 | else |
bec39cab | 13824 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 13825 | fi |
b4e70030 JB |
13826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 13828 | |
5ee754fc | 13829 | fi |
bec39cab AC |
13830 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13831 | cat >>confdefs.h <<_ACEOF | |
13832 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13833 | _ACEOF | |
13834 | ||
5ee754fc | 13835 | fi |
bec39cab | 13836 | |
5ee754fc MK |
13837 | done |
13838 | ||
bec39cab | 13839 | |
7eb368b3 NR |
13840 | for ac_header in sys/resource.h |
13841 | do | |
13842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13848 | fi | |
13849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13851 | else | |
13852 | # Is the header compilable? | |
13853 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13855 | cat >conftest.$ac_ext <<_ACEOF | |
13856 | /* confdefs.h. */ | |
13857 | _ACEOF | |
13858 | cat confdefs.h >>conftest.$ac_ext | |
13859 | cat >>conftest.$ac_ext <<_ACEOF | |
13860 | /* end confdefs.h. */ | |
13861 | $ac_includes_default | |
13862 | #include <$ac_header> | |
13863 | _ACEOF | |
13864 | rm -f conftest.$ac_objext | |
13865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13866 | (eval $ac_compile) 2>conftest.er1 | |
13867 | ac_status=$? | |
13868 | grep -v '^ *+' conftest.er1 >conftest.err | |
13869 | rm -f conftest.er1 | |
13870 | cat conftest.err >&5 | |
13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13872 | (exit $ac_status); } && | |
13873 | { ac_try='test -z "$ac_c_werror_flag" | |
13874 | || test ! -s conftest.err' | |
13875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13876 | (eval $ac_try) 2>&5 | |
13877 | ac_status=$? | |
13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13879 | (exit $ac_status); }; } && | |
13880 | { ac_try='test -s conftest.$ac_objext' | |
13881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13882 | (eval $ac_try) 2>&5 | |
13883 | ac_status=$? | |
13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13885 | (exit $ac_status); }; }; then | |
13886 | ac_header_compiler=yes | |
13887 | else | |
13888 | echo "$as_me: failed program was:" >&5 | |
13889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13890 | ||
13891 | ac_header_compiler=no | |
13892 | fi | |
13893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13894 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13895 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13896 | ||
13897 | # Is the header present? | |
13898 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13900 | cat >conftest.$ac_ext <<_ACEOF | |
13901 | /* confdefs.h. */ | |
13902 | _ACEOF | |
13903 | cat confdefs.h >>conftest.$ac_ext | |
13904 | cat >>conftest.$ac_ext <<_ACEOF | |
13905 | /* end confdefs.h. */ | |
13906 | #include <$ac_header> | |
13907 | _ACEOF | |
13908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13910 | ac_status=$? | |
13911 | grep -v '^ *+' conftest.er1 >conftest.err | |
13912 | rm -f conftest.er1 | |
13913 | cat conftest.err >&5 | |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13915 | (exit $ac_status); } >/dev/null; then | |
13916 | if test -s conftest.err; then | |
13917 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13918 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13919 | else | |
13920 | ac_cpp_err= | |
13921 | fi | |
13922 | else | |
13923 | ac_cpp_err=yes | |
13924 | fi | |
13925 | if test -z "$ac_cpp_err"; then | |
13926 | ac_header_preproc=yes | |
13927 | else | |
13928 | echo "$as_me: failed program was:" >&5 | |
13929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13930 | ||
13931 | ac_header_preproc=no | |
13932 | fi | |
13933 | rm -f conftest.err conftest.$ac_ext | |
13934 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13935 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13936 | ||
13937 | # So? What about this header? | |
13938 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13939 | yes:no: ) | |
13940 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13941 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13943 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13944 | ac_header_preproc=yes | |
13945 | ;; | |
13946 | no:yes:* ) | |
13947 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13948 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13949 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13950 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13951 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13952 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13953 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13954 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13956 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13957 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13958 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13959 | ( | |
13960 | cat <<\_ASBOX | |
13961 | ## ------------------------------------------ ## | |
13962 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13963 | ## ------------------------------------------ ## | |
13964 | _ASBOX | |
13965 | ) | | |
13966 | sed "s/^/$as_me: WARNING: /" >&2 | |
13967 | ;; | |
13968 | esac | |
13969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13973 | else | |
13974 | eval "$as_ac_Header=\$ac_header_preproc" | |
13975 | fi | |
13976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13978 | ||
13979 | fi | |
13980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13981 | cat >>confdefs.h <<_ACEOF | |
13982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13983 | _ACEOF | |
13984 | ||
13985 | fi | |
13986 | ||
13987 | done | |
13988 | ||
13989 | ||
bec39cab | 13990 | for ac_header in sys/proc.h |
5ee754fc | 13991 | do |
bec39cab | 13992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
13993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 13996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13997 | else |
7cb9022a | 13998 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13999 | /* confdefs.h. */ |
14000 | _ACEOF | |
14001 | cat confdefs.h >>conftest.$ac_ext | |
14002 | cat >>conftest.$ac_ext <<_ACEOF | |
14003 | /* end confdefs.h. */ | |
7cb9022a MK |
14004 | #if HAVE_SYS_PARAM_H |
14005 | # include <sys/param.h> | |
14006 | #endif | |
14007 | ||
14008 | ||
bec39cab AC |
14009 | #include <$ac_header> |
14010 | _ACEOF | |
14011 | rm -f conftest.$ac_objext | |
14012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14013 | (eval $ac_compile) 2>conftest.er1 | |
14014 | ac_status=$? | |
14015 | grep -v '^ *+' conftest.er1 >conftest.err | |
14016 | rm -f conftest.er1 | |
14017 | cat conftest.err >&5 | |
14018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14019 | (exit $ac_status); } && | |
b4e70030 JB |
14020 | { ac_try='test -z "$ac_c_werror_flag" |
14021 | || test ! -s conftest.err' | |
bec39cab AC |
14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14023 | (eval $ac_try) 2>&5 | |
14024 | ac_status=$? | |
14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; } && | |
14027 | { ac_try='test -s conftest.$ac_objext' | |
14028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14029 | (eval $ac_try) 2>&5 | |
14030 | ac_status=$? | |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14032 | (exit $ac_status); }; }; then | |
7cb9022a | 14033 | eval "$as_ac_Header=yes" |
bec39cab AC |
14034 | else |
14035 | echo "$as_me: failed program was:" >&5 | |
14036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14037 | ||
b4e70030 | 14038 | eval "$as_ac_Header=no" |
bec39cab AC |
14039 | fi |
14040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 14041 | fi |
b4e70030 JB |
14042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14043 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14044 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14045 | cat >>confdefs.h <<_ACEOF | |
14046 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14047 | _ACEOF | |
14048 | ||
5ee754fc | 14049 | fi |
bec39cab | 14050 | |
5ee754fc MK |
14051 | done |
14052 | ||
bec39cab AC |
14053 | |
14054 | for ac_header in sys/procfs.h | |
5ee754fc | 14055 | do |
bec39cab | 14056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14058 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14062 | fi | |
b4e70030 JB |
14063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14065 | else |
14066 | # Is the header compilable? | |
b4e70030 JB |
14067 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14068 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14069 | cat >conftest.$ac_ext <<_ACEOF |
14070 | /* confdefs.h. */ | |
14071 | _ACEOF | |
14072 | cat confdefs.h >>conftest.$ac_ext | |
14073 | cat >>conftest.$ac_ext <<_ACEOF | |
14074 | /* end confdefs.h. */ | |
14075 | $ac_includes_default | |
14076 | #include <$ac_header> | |
14077 | _ACEOF | |
14078 | rm -f conftest.$ac_objext | |
14079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14080 | (eval $ac_compile) 2>conftest.er1 | |
14081 | ac_status=$? | |
14082 | grep -v '^ *+' conftest.er1 >conftest.err | |
14083 | rm -f conftest.er1 | |
14084 | cat conftest.err >&5 | |
14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14086 | (exit $ac_status); } && | |
b4e70030 JB |
14087 | { ac_try='test -z "$ac_c_werror_flag" |
14088 | || test ! -s conftest.err' | |
bec39cab AC |
14089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14090 | (eval $ac_try) 2>&5 | |
14091 | ac_status=$? | |
14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14093 | (exit $ac_status); }; } && | |
14094 | { ac_try='test -s conftest.$ac_objext' | |
14095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14096 | (eval $ac_try) 2>&5 | |
14097 | ac_status=$? | |
14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14099 | (exit $ac_status); }; }; then | |
14100 | ac_header_compiler=yes | |
14101 | else | |
14102 | echo "$as_me: failed program was:" >&5 | |
14103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14104 | ||
b4e70030 | 14105 | ac_header_compiler=no |
bec39cab AC |
14106 | fi |
14107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14108 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14109 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14110 | |
14111 | # Is the header present? | |
b4e70030 JB |
14112 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14113 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14114 | cat >conftest.$ac_ext <<_ACEOF |
14115 | /* confdefs.h. */ | |
14116 | _ACEOF | |
14117 | cat confdefs.h >>conftest.$ac_ext | |
14118 | cat >>conftest.$ac_ext <<_ACEOF | |
14119 | /* end confdefs.h. */ | |
14120 | #include <$ac_header> | |
14121 | _ACEOF | |
14122 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14123 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14124 | ac_status=$? | |
14125 | grep -v '^ *+' conftest.er1 >conftest.err | |
14126 | rm -f conftest.er1 | |
14127 | cat conftest.err >&5 | |
14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); } >/dev/null; then | |
14130 | if test -s conftest.err; then | |
14131 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14133 | else | |
14134 | ac_cpp_err= | |
14135 | fi | |
14136 | else | |
14137 | ac_cpp_err=yes | |
5ee754fc | 14138 | fi |
bec39cab AC |
14139 | if test -z "$ac_cpp_err"; then |
14140 | ac_header_preproc=yes | |
5ee754fc | 14141 | else |
bec39cab AC |
14142 | echo "$as_me: failed program was:" >&5 |
14143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14144 | ||
14145 | ac_header_preproc=no | |
5ee754fc | 14146 | fi |
bec39cab | 14147 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14148 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14149 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14150 | |
bec39cab AC |
14151 | # So? What about this header? |
14152 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14153 | yes:no: ) | |
14154 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14155 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14156 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14157 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14158 | ac_header_preproc=yes | |
14159 | ;; | |
14160 | no:yes:* ) | |
14161 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14162 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14163 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14164 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14165 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14166 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14167 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14168 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14170 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14171 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14172 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14173 | ( |
14174 | cat <<\_ASBOX | |
14175 | ## ------------------------------------------ ## | |
14176 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14177 | ## ------------------------------------------ ## | |
14178 | _ASBOX | |
14179 | ) | | |
14180 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14181 | ;; |
14182 | esac | |
b4e70030 JB |
14183 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14187 | else | |
14188 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14189 | fi |
b4e70030 JB |
14190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14191 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14192 | |
5ee754fc | 14193 | fi |
bec39cab AC |
14194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14195 | cat >>confdefs.h <<_ACEOF | |
14196 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14197 | _ACEOF | |
14198 | ||
5ee754fc | 14199 | fi |
bec39cab | 14200 | |
5ee754fc MK |
14201 | done |
14202 | ||
bec39cab AC |
14203 | |
14204 | ||
14205 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 14206 | do |
bec39cab | 14207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14213 | fi | |
b4e70030 JB |
14214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14216 | else |
14217 | # Is the header compilable? | |
b4e70030 JB |
14218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14220 | cat >conftest.$ac_ext <<_ACEOF |
14221 | /* confdefs.h. */ | |
14222 | _ACEOF | |
14223 | cat confdefs.h >>conftest.$ac_ext | |
14224 | cat >>conftest.$ac_ext <<_ACEOF | |
14225 | /* end confdefs.h. */ | |
14226 | $ac_includes_default | |
14227 | #include <$ac_header> | |
14228 | _ACEOF | |
14229 | rm -f conftest.$ac_objext | |
14230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14231 | (eval $ac_compile) 2>conftest.er1 | |
14232 | ac_status=$? | |
14233 | grep -v '^ *+' conftest.er1 >conftest.err | |
14234 | rm -f conftest.er1 | |
14235 | cat conftest.err >&5 | |
14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14237 | (exit $ac_status); } && | |
b4e70030 JB |
14238 | { ac_try='test -z "$ac_c_werror_flag" |
14239 | || test ! -s conftest.err' | |
bec39cab AC |
14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14241 | (eval $ac_try) 2>&5 | |
14242 | ac_status=$? | |
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14244 | (exit $ac_status); }; } && | |
14245 | { ac_try='test -s conftest.$ac_objext' | |
14246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14247 | (eval $ac_try) 2>&5 | |
14248 | ac_status=$? | |
14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14250 | (exit $ac_status); }; }; then | |
14251 | ac_header_compiler=yes | |
14252 | else | |
14253 | echo "$as_me: failed program was:" >&5 | |
14254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14255 | ||
b4e70030 | 14256 | ac_header_compiler=no |
bec39cab AC |
14257 | fi |
14258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14260 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14261 | |
14262 | # Is the header present? | |
b4e70030 JB |
14263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14265 | cat >conftest.$ac_ext <<_ACEOF |
14266 | /* confdefs.h. */ | |
14267 | _ACEOF | |
14268 | cat confdefs.h >>conftest.$ac_ext | |
14269 | cat >>conftest.$ac_ext <<_ACEOF | |
14270 | /* end confdefs.h. */ | |
14271 | #include <$ac_header> | |
14272 | _ACEOF | |
14273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14275 | ac_status=$? | |
14276 | grep -v '^ *+' conftest.er1 >conftest.err | |
14277 | rm -f conftest.er1 | |
14278 | cat conftest.err >&5 | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); } >/dev/null; then | |
14281 | if test -s conftest.err; then | |
14282 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14284 | else | |
14285 | ac_cpp_err= | |
14286 | fi | |
14287 | else | |
14288 | ac_cpp_err=yes | |
5ee754fc | 14289 | fi |
bec39cab AC |
14290 | if test -z "$ac_cpp_err"; then |
14291 | ac_header_preproc=yes | |
5ee754fc | 14292 | else |
bec39cab AC |
14293 | echo "$as_me: failed program was:" >&5 |
14294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14295 | ||
14296 | ac_header_preproc=no | |
5ee754fc | 14297 | fi |
bec39cab | 14298 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14300 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14301 | |
bec39cab AC |
14302 | # So? What about this header? |
14303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14304 | yes:no: ) | |
14305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14309 | ac_header_preproc=yes | |
14310 | ;; | |
14311 | no:yes:* ) | |
14312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14324 | ( |
14325 | cat <<\_ASBOX | |
14326 | ## ------------------------------------------ ## | |
14327 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14328 | ## ------------------------------------------ ## | |
14329 | _ASBOX | |
14330 | ) | | |
14331 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14332 | ;; |
14333 | esac | |
b4e70030 JB |
14334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14338 | else | |
14339 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14340 | fi |
b4e70030 JB |
14341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14343 | |
5ee754fc | 14344 | fi |
bec39cab AC |
14345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14346 | cat >>confdefs.h <<_ACEOF | |
14347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14348 | _ACEOF | |
14349 | ||
5ee754fc | 14350 | fi |
bec39cab | 14351 | |
5ee754fc MK |
14352 | done |
14353 | ||
bec39cab AC |
14354 | |
14355 | ||
14356 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 14357 | do |
bec39cab | 14358 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14364 | fi | |
b4e70030 JB |
14365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14367 | else |
14368 | # Is the header compilable? | |
b4e70030 JB |
14369 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14370 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14371 | cat >conftest.$ac_ext <<_ACEOF |
14372 | /* confdefs.h. */ | |
14373 | _ACEOF | |
14374 | cat confdefs.h >>conftest.$ac_ext | |
14375 | cat >>conftest.$ac_ext <<_ACEOF | |
14376 | /* end confdefs.h. */ | |
14377 | $ac_includes_default | |
14378 | #include <$ac_header> | |
14379 | _ACEOF | |
14380 | rm -f conftest.$ac_objext | |
14381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14382 | (eval $ac_compile) 2>conftest.er1 | |
14383 | ac_status=$? | |
14384 | grep -v '^ *+' conftest.er1 >conftest.err | |
14385 | rm -f conftest.er1 | |
14386 | cat conftest.err >&5 | |
14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14388 | (exit $ac_status); } && | |
b4e70030 JB |
14389 | { ac_try='test -z "$ac_c_werror_flag" |
14390 | || test ! -s conftest.err' | |
bec39cab AC |
14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14392 | (eval $ac_try) 2>&5 | |
14393 | ac_status=$? | |
14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); }; } && | |
14396 | { ac_try='test -s conftest.$ac_objext' | |
14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14398 | (eval $ac_try) 2>&5 | |
14399 | ac_status=$? | |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14401 | (exit $ac_status); }; }; then | |
14402 | ac_header_compiler=yes | |
14403 | else | |
14404 | echo "$as_me: failed program was:" >&5 | |
14405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14406 | ||
b4e70030 | 14407 | ac_header_compiler=no |
bec39cab AC |
14408 | fi |
14409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14410 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14411 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14412 | |
14413 | # Is the header present? | |
b4e70030 JB |
14414 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14416 | cat >conftest.$ac_ext <<_ACEOF |
14417 | /* confdefs.h. */ | |
14418 | _ACEOF | |
14419 | cat confdefs.h >>conftest.$ac_ext | |
14420 | cat >>conftest.$ac_ext <<_ACEOF | |
14421 | /* end confdefs.h. */ | |
14422 | #include <$ac_header> | |
14423 | _ACEOF | |
14424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14426 | ac_status=$? | |
14427 | grep -v '^ *+' conftest.er1 >conftest.err | |
14428 | rm -f conftest.er1 | |
14429 | cat conftest.err >&5 | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); } >/dev/null; then | |
14432 | if test -s conftest.err; then | |
14433 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14435 | else | |
14436 | ac_cpp_err= | |
14437 | fi | |
14438 | else | |
14439 | ac_cpp_err=yes | |
5ee754fc | 14440 | fi |
bec39cab AC |
14441 | if test -z "$ac_cpp_err"; then |
14442 | ac_header_preproc=yes | |
5ee754fc | 14443 | else |
bec39cab AC |
14444 | echo "$as_me: failed program was:" >&5 |
14445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14446 | ||
14447 | ac_header_preproc=no | |
5ee754fc | 14448 | fi |
bec39cab | 14449 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14451 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14452 | |
bec39cab AC |
14453 | # So? What about this header? |
14454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14455 | yes:no: ) | |
14456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14460 | ac_header_preproc=yes | |
14461 | ;; | |
14462 | no:yes:* ) | |
14463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14475 | ( |
14476 | cat <<\_ASBOX | |
14477 | ## ------------------------------------------ ## | |
14478 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14479 | ## ------------------------------------------ ## | |
14480 | _ASBOX | |
14481 | ) | | |
14482 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14483 | ;; |
14484 | esac | |
b4e70030 JB |
14485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14489 | else | |
14490 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14491 | fi |
b4e70030 JB |
14492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14494 | |
5ee754fc | 14495 | fi |
bec39cab AC |
14496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14497 | cat >>confdefs.h <<_ACEOF | |
14498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14499 | _ACEOF | |
14500 | ||
5ee754fc | 14501 | fi |
bec39cab | 14502 | |
5ee754fc MK |
14503 | done |
14504 | ||
bec39cab AC |
14505 | |
14506 | for ac_header in sys/select.h | |
5ee754fc | 14507 | do |
bec39cab | 14508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14514 | fi | |
b4e70030 JB |
14515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14517 | else |
14518 | # Is the header compilable? | |
b4e70030 JB |
14519 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14521 | cat >conftest.$ac_ext <<_ACEOF |
14522 | /* confdefs.h. */ | |
14523 | _ACEOF | |
14524 | cat confdefs.h >>conftest.$ac_ext | |
14525 | cat >>conftest.$ac_ext <<_ACEOF | |
14526 | /* end confdefs.h. */ | |
14527 | $ac_includes_default | |
14528 | #include <$ac_header> | |
14529 | _ACEOF | |
14530 | rm -f conftest.$ac_objext | |
14531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14532 | (eval $ac_compile) 2>conftest.er1 | |
14533 | ac_status=$? | |
14534 | grep -v '^ *+' conftest.er1 >conftest.err | |
14535 | rm -f conftest.er1 | |
14536 | cat conftest.err >&5 | |
14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14538 | (exit $ac_status); } && | |
b4e70030 JB |
14539 | { ac_try='test -z "$ac_c_werror_flag" |
14540 | || test ! -s conftest.err' | |
bec39cab AC |
14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14542 | (eval $ac_try) 2>&5 | |
14543 | ac_status=$? | |
14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14545 | (exit $ac_status); }; } && | |
14546 | { ac_try='test -s conftest.$ac_objext' | |
14547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14548 | (eval $ac_try) 2>&5 | |
14549 | ac_status=$? | |
14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14551 | (exit $ac_status); }; }; then | |
14552 | ac_header_compiler=yes | |
14553 | else | |
14554 | echo "$as_me: failed program was:" >&5 | |
14555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14556 | ||
b4e70030 | 14557 | ac_header_compiler=no |
bec39cab AC |
14558 | fi |
14559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14562 | |
14563 | # Is the header present? | |
b4e70030 JB |
14564 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14565 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14566 | cat >conftest.$ac_ext <<_ACEOF |
14567 | /* confdefs.h. */ | |
14568 | _ACEOF | |
14569 | cat confdefs.h >>conftest.$ac_ext | |
14570 | cat >>conftest.$ac_ext <<_ACEOF | |
14571 | /* end confdefs.h. */ | |
14572 | #include <$ac_header> | |
14573 | _ACEOF | |
14574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14576 | ac_status=$? | |
14577 | grep -v '^ *+' conftest.er1 >conftest.err | |
14578 | rm -f conftest.er1 | |
14579 | cat conftest.err >&5 | |
14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14581 | (exit $ac_status); } >/dev/null; then | |
14582 | if test -s conftest.err; then | |
14583 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14585 | else | |
14586 | ac_cpp_err= | |
14587 | fi | |
14588 | else | |
14589 | ac_cpp_err=yes | |
5ee754fc | 14590 | fi |
bec39cab AC |
14591 | if test -z "$ac_cpp_err"; then |
14592 | ac_header_preproc=yes | |
5ee754fc | 14593 | else |
bec39cab AC |
14594 | echo "$as_me: failed program was:" >&5 |
14595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14596 | ||
14597 | ac_header_preproc=no | |
5ee754fc | 14598 | fi |
bec39cab | 14599 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14602 | |
bec39cab AC |
14603 | # So? What about this header? |
14604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14605 | yes:no: ) | |
14606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14610 | ac_header_preproc=yes | |
14611 | ;; | |
14612 | no:yes:* ) | |
14613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14625 | ( |
14626 | cat <<\_ASBOX | |
14627 | ## ------------------------------------------ ## | |
14628 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14629 | ## ------------------------------------------ ## | |
14630 | _ASBOX | |
14631 | ) | | |
14632 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14633 | ;; |
14634 | esac | |
b4e70030 JB |
14635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14639 | else | |
14640 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14641 | fi |
b4e70030 JB |
14642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14644 | |
5ee754fc | 14645 | fi |
bec39cab AC |
14646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14647 | cat >>confdefs.h <<_ACEOF | |
14648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14649 | _ACEOF | |
14650 | ||
5ee754fc | 14651 | fi |
bec39cab | 14652 | |
5ee754fc MK |
14653 | done |
14654 | ||
bec39cab AC |
14655 | |
14656 | for ac_header in sys/syscall.h | |
5ee754fc | 14657 | do |
bec39cab | 14658 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14664 | fi | |
b4e70030 JB |
14665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14667 | else |
14668 | # Is the header compilable? | |
b4e70030 JB |
14669 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14670 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14671 | cat >conftest.$ac_ext <<_ACEOF |
14672 | /* confdefs.h. */ | |
14673 | _ACEOF | |
14674 | cat confdefs.h >>conftest.$ac_ext | |
14675 | cat >>conftest.$ac_ext <<_ACEOF | |
14676 | /* end confdefs.h. */ | |
14677 | $ac_includes_default | |
14678 | #include <$ac_header> | |
14679 | _ACEOF | |
14680 | rm -f conftest.$ac_objext | |
14681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14682 | (eval $ac_compile) 2>conftest.er1 | |
14683 | ac_status=$? | |
14684 | grep -v '^ *+' conftest.er1 >conftest.err | |
14685 | rm -f conftest.er1 | |
14686 | cat conftest.err >&5 | |
14687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14688 | (exit $ac_status); } && | |
b4e70030 JB |
14689 | { ac_try='test -z "$ac_c_werror_flag" |
14690 | || test ! -s conftest.err' | |
bec39cab AC |
14691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14692 | (eval $ac_try) 2>&5 | |
14693 | ac_status=$? | |
14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14695 | (exit $ac_status); }; } && | |
14696 | { ac_try='test -s conftest.$ac_objext' | |
14697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14698 | (eval $ac_try) 2>&5 | |
14699 | ac_status=$? | |
14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 | (exit $ac_status); }; }; then | |
14702 | ac_header_compiler=yes | |
14703 | else | |
14704 | echo "$as_me: failed program was:" >&5 | |
14705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14706 | ||
b4e70030 | 14707 | ac_header_compiler=no |
bec39cab AC |
14708 | fi |
14709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14710 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14711 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14712 | |
14713 | # Is the header present? | |
b4e70030 JB |
14714 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14715 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14716 | cat >conftest.$ac_ext <<_ACEOF |
14717 | /* confdefs.h. */ | |
14718 | _ACEOF | |
14719 | cat confdefs.h >>conftest.$ac_ext | |
14720 | cat >>conftest.$ac_ext <<_ACEOF | |
14721 | /* end confdefs.h. */ | |
14722 | #include <$ac_header> | |
14723 | _ACEOF | |
14724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14726 | ac_status=$? | |
14727 | grep -v '^ *+' conftest.er1 >conftest.err | |
14728 | rm -f conftest.er1 | |
14729 | cat conftest.err >&5 | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); } >/dev/null; then | |
14732 | if test -s conftest.err; then | |
14733 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14735 | else | |
14736 | ac_cpp_err= | |
14737 | fi | |
14738 | else | |
14739 | ac_cpp_err=yes | |
5ee754fc | 14740 | fi |
bec39cab AC |
14741 | if test -z "$ac_cpp_err"; then |
14742 | ac_header_preproc=yes | |
5ee754fc | 14743 | else |
bec39cab AC |
14744 | echo "$as_me: failed program was:" >&5 |
14745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14746 | ||
14747 | ac_header_preproc=no | |
5ee754fc | 14748 | fi |
bec39cab | 14749 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14750 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14751 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14752 | |
bec39cab AC |
14753 | # So? What about this header? |
14754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14755 | yes:no: ) | |
14756 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14757 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14759 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14760 | ac_header_preproc=yes | |
14761 | ;; | |
14762 | no:yes:* ) | |
14763 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14764 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14765 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14766 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14767 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14768 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14769 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14770 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14773 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14774 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14775 | ( |
14776 | cat <<\_ASBOX | |
14777 | ## ------------------------------------------ ## | |
14778 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14779 | ## ------------------------------------------ ## | |
14780 | _ASBOX | |
14781 | ) | | |
14782 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14783 | ;; |
14784 | esac | |
b4e70030 JB |
14785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14789 | else | |
14790 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14791 | fi |
b4e70030 JB |
14792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14793 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14794 | |
5ee754fc | 14795 | fi |
bec39cab AC |
14796 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14797 | cat >>confdefs.h <<_ACEOF | |
14798 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14799 | _ACEOF | |
14800 | ||
5ee754fc | 14801 | fi |
bec39cab | 14802 | |
5ee754fc MK |
14803 | done |
14804 | ||
bec39cab AC |
14805 | |
14806 | for ac_header in sys/types.h | |
5ee754fc | 14807 | do |
bec39cab | 14808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14814 | fi | |
b4e70030 JB |
14815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
14817 | else |
14818 | # Is the header compilable? | |
b4e70030 JB |
14819 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14820 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
14821 | cat >conftest.$ac_ext <<_ACEOF |
14822 | /* confdefs.h. */ | |
14823 | _ACEOF | |
14824 | cat confdefs.h >>conftest.$ac_ext | |
14825 | cat >>conftest.$ac_ext <<_ACEOF | |
14826 | /* end confdefs.h. */ | |
14827 | $ac_includes_default | |
14828 | #include <$ac_header> | |
14829 | _ACEOF | |
14830 | rm -f conftest.$ac_objext | |
14831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14832 | (eval $ac_compile) 2>conftest.er1 | |
14833 | ac_status=$? | |
14834 | grep -v '^ *+' conftest.er1 >conftest.err | |
14835 | rm -f conftest.er1 | |
14836 | cat conftest.err >&5 | |
14837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14838 | (exit $ac_status); } && | |
b4e70030 JB |
14839 | { ac_try='test -z "$ac_c_werror_flag" |
14840 | || test ! -s conftest.err' | |
bec39cab AC |
14841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14842 | (eval $ac_try) 2>&5 | |
14843 | ac_status=$? | |
14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14845 | (exit $ac_status); }; } && | |
14846 | { ac_try='test -s conftest.$ac_objext' | |
14847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14848 | (eval $ac_try) 2>&5 | |
14849 | ac_status=$? | |
14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14851 | (exit $ac_status); }; }; then | |
14852 | ac_header_compiler=yes | |
14853 | else | |
14854 | echo "$as_me: failed program was:" >&5 | |
14855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14856 | ||
b4e70030 | 14857 | ac_header_compiler=no |
bec39cab AC |
14858 | fi |
14859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
14860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
14862 | |
14863 | # Is the header present? | |
b4e70030 JB |
14864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
14866 | cat >conftest.$ac_ext <<_ACEOF |
14867 | /* confdefs.h. */ | |
14868 | _ACEOF | |
14869 | cat confdefs.h >>conftest.$ac_ext | |
14870 | cat >>conftest.$ac_ext <<_ACEOF | |
14871 | /* end confdefs.h. */ | |
14872 | #include <$ac_header> | |
14873 | _ACEOF | |
14874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14876 | ac_status=$? | |
14877 | grep -v '^ *+' conftest.er1 >conftest.err | |
14878 | rm -f conftest.er1 | |
14879 | cat conftest.err >&5 | |
14880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14881 | (exit $ac_status); } >/dev/null; then | |
14882 | if test -s conftest.err; then | |
14883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14885 | else | |
14886 | ac_cpp_err= | |
14887 | fi | |
14888 | else | |
14889 | ac_cpp_err=yes | |
5ee754fc | 14890 | fi |
bec39cab AC |
14891 | if test -z "$ac_cpp_err"; then |
14892 | ac_header_preproc=yes | |
5ee754fc | 14893 | else |
bec39cab AC |
14894 | echo "$as_me: failed program was:" >&5 |
14895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14896 | ||
14897 | ac_header_preproc=no | |
5ee754fc | 14898 | fi |
bec39cab | 14899 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
14900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 14902 | |
bec39cab AC |
14903 | # So? What about this header? |
14904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14905 | yes:no: ) | |
14906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14910 | ac_header_preproc=yes | |
14911 | ;; | |
14912 | no:yes:* ) | |
14913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
14925 | ( |
14926 | cat <<\_ASBOX | |
14927 | ## ------------------------------------------ ## | |
14928 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14929 | ## ------------------------------------------ ## | |
14930 | _ASBOX | |
14931 | ) | | |
14932 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
14933 | ;; |
14934 | esac | |
b4e70030 JB |
14935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
14938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14939 | else | |
14940 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 14941 | fi |
b4e70030 JB |
14942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14944 | |
5ee754fc | 14945 | fi |
bec39cab AC |
14946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14947 | cat >>confdefs.h <<_ACEOF | |
14948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14949 | _ACEOF | |
14950 | ||
5ee754fc | 14951 | fi |
bec39cab | 14952 | |
5ee754fc MK |
14953 | done |
14954 | ||
bec39cab AC |
14955 | |
14956 | for ac_header in sys/user.h | |
5ee754fc | 14957 | do |
bec39cab | 14958 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
14959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 14962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14963 | else |
7cb9022a | 14964 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
14965 | /* confdefs.h. */ |
14966 | _ACEOF | |
14967 | cat confdefs.h >>conftest.$ac_ext | |
14968 | cat >>conftest.$ac_ext <<_ACEOF | |
14969 | /* end confdefs.h. */ | |
7cb9022a MK |
14970 | #if HAVE_SYS_PARAM_H |
14971 | # include <sys/param.h> | |
14972 | #endif | |
14973 | ||
14974 | ||
bec39cab AC |
14975 | #include <$ac_header> |
14976 | _ACEOF | |
14977 | rm -f conftest.$ac_objext | |
14978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14979 | (eval $ac_compile) 2>conftest.er1 | |
14980 | ac_status=$? | |
14981 | grep -v '^ *+' conftest.er1 >conftest.err | |
14982 | rm -f conftest.er1 | |
14983 | cat conftest.err >&5 | |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14985 | (exit $ac_status); } && | |
b4e70030 JB |
14986 | { ac_try='test -z "$ac_c_werror_flag" |
14987 | || test ! -s conftest.err' | |
bec39cab AC |
14988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14989 | (eval $ac_try) 2>&5 | |
14990 | ac_status=$? | |
14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14992 | (exit $ac_status); }; } && | |
14993 | { ac_try='test -s conftest.$ac_objext' | |
14994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14995 | (eval $ac_try) 2>&5 | |
14996 | ac_status=$? | |
14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14998 | (exit $ac_status); }; }; then | |
7cb9022a | 14999 | eval "$as_ac_Header=yes" |
bec39cab AC |
15000 | else |
15001 | echo "$as_me: failed program was:" >&5 | |
15002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15003 | ||
b4e70030 | 15004 | eval "$as_ac_Header=no" |
bec39cab AC |
15005 | fi |
15006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 15007 | fi |
b4e70030 JB |
15008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15011 | cat >>confdefs.h <<_ACEOF | |
15012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15013 | _ACEOF | |
15014 | ||
5ee754fc | 15015 | fi |
bec39cab | 15016 | |
5ee754fc MK |
15017 | done |
15018 | ||
bec39cab AC |
15019 | |
15020 | ||
15021 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 15022 | do |
bec39cab | 15023 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15029 | fi | |
b4e70030 JB |
15030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15032 | else |
15033 | # Is the header compilable? | |
b4e70030 JB |
15034 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15036 | cat >conftest.$ac_ext <<_ACEOF |
15037 | /* confdefs.h. */ | |
15038 | _ACEOF | |
15039 | cat confdefs.h >>conftest.$ac_ext | |
15040 | cat >>conftest.$ac_ext <<_ACEOF | |
15041 | /* end confdefs.h. */ | |
15042 | $ac_includes_default | |
15043 | #include <$ac_header> | |
15044 | _ACEOF | |
15045 | rm -f conftest.$ac_objext | |
15046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15047 | (eval $ac_compile) 2>conftest.er1 | |
15048 | ac_status=$? | |
15049 | grep -v '^ *+' conftest.er1 >conftest.err | |
15050 | rm -f conftest.er1 | |
15051 | cat conftest.err >&5 | |
15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15053 | (exit $ac_status); } && | |
b4e70030 JB |
15054 | { ac_try='test -z "$ac_c_werror_flag" |
15055 | || test ! -s conftest.err' | |
bec39cab AC |
15056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15057 | (eval $ac_try) 2>&5 | |
15058 | ac_status=$? | |
15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15060 | (exit $ac_status); }; } && | |
15061 | { ac_try='test -s conftest.$ac_objext' | |
15062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15063 | (eval $ac_try) 2>&5 | |
15064 | ac_status=$? | |
15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15066 | (exit $ac_status); }; }; then | |
15067 | ac_header_compiler=yes | |
15068 | else | |
15069 | echo "$as_me: failed program was:" >&5 | |
15070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15071 | ||
b4e70030 | 15072 | ac_header_compiler=no |
bec39cab AC |
15073 | fi |
15074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15077 | |
15078 | # Is the header present? | |
b4e70030 JB |
15079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15081 | cat >conftest.$ac_ext <<_ACEOF |
15082 | /* confdefs.h. */ | |
15083 | _ACEOF | |
15084 | cat confdefs.h >>conftest.$ac_ext | |
15085 | cat >>conftest.$ac_ext <<_ACEOF | |
15086 | /* end confdefs.h. */ | |
15087 | #include <$ac_header> | |
15088 | _ACEOF | |
15089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15091 | ac_status=$? | |
15092 | grep -v '^ *+' conftest.er1 >conftest.err | |
15093 | rm -f conftest.er1 | |
15094 | cat conftest.err >&5 | |
15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15096 | (exit $ac_status); } >/dev/null; then | |
15097 | if test -s conftest.err; then | |
15098 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15100 | else | |
15101 | ac_cpp_err= | |
15102 | fi | |
15103 | else | |
15104 | ac_cpp_err=yes | |
5ee754fc | 15105 | fi |
bec39cab AC |
15106 | if test -z "$ac_cpp_err"; then |
15107 | ac_header_preproc=yes | |
5ee754fc | 15108 | else |
bec39cab AC |
15109 | echo "$as_me: failed program was:" >&5 |
15110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15111 | ||
15112 | ac_header_preproc=no | |
5ee754fc | 15113 | fi |
bec39cab | 15114 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 15117 | |
bec39cab AC |
15118 | # So? What about this header? |
15119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15120 | yes:no: ) | |
15121 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15122 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15124 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15125 | ac_header_preproc=yes | |
15126 | ;; | |
15127 | no:yes:* ) | |
15128 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15129 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15130 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15133 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15134 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15135 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15136 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15137 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15138 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15139 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15140 | ( |
15141 | cat <<\_ASBOX | |
15142 | ## ------------------------------------------ ## | |
15143 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15144 | ## ------------------------------------------ ## | |
15145 | _ASBOX | |
15146 | ) | | |
15147 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15148 | ;; |
15149 | esac | |
b4e70030 JB |
15150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15154 | else | |
15155 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 15156 | fi |
b4e70030 JB |
15157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15159 | |
9608ab8b | 15160 | fi |
bec39cab AC |
15161 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15162 | cat >>confdefs.h <<_ACEOF | |
15163 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15164 | _ACEOF | |
15165 | ||
9608ab8b | 15166 | fi |
bec39cab | 15167 | |
9608ab8b | 15168 | done |
5ee754fc | 15169 | |
bec39cab AC |
15170 | |
15171 | ||
15172 | ||
15173 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 15174 | do |
bec39cab | 15175 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15181 | fi | |
b4e70030 JB |
15182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15184 | else |
15185 | # Is the header compilable? | |
b4e70030 JB |
15186 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15187 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15188 | cat >conftest.$ac_ext <<_ACEOF |
15189 | /* confdefs.h. */ | |
15190 | _ACEOF | |
15191 | cat confdefs.h >>conftest.$ac_ext | |
15192 | cat >>conftest.$ac_ext <<_ACEOF | |
15193 | /* end confdefs.h. */ | |
15194 | $ac_includes_default | |
15195 | #include <$ac_header> | |
15196 | _ACEOF | |
15197 | rm -f conftest.$ac_objext | |
15198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15199 | (eval $ac_compile) 2>conftest.er1 | |
15200 | ac_status=$? | |
15201 | grep -v '^ *+' conftest.er1 >conftest.err | |
15202 | rm -f conftest.er1 | |
15203 | cat conftest.err >&5 | |
15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15205 | (exit $ac_status); } && | |
b4e70030 JB |
15206 | { ac_try='test -z "$ac_c_werror_flag" |
15207 | || test ! -s conftest.err' | |
bec39cab AC |
15208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15209 | (eval $ac_try) 2>&5 | |
15210 | ac_status=$? | |
15211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15212 | (exit $ac_status); }; } && | |
15213 | { ac_try='test -s conftest.$ac_objext' | |
15214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15215 | (eval $ac_try) 2>&5 | |
15216 | ac_status=$? | |
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15218 | (exit $ac_status); }; }; then | |
15219 | ac_header_compiler=yes | |
15220 | else | |
15221 | echo "$as_me: failed program was:" >&5 | |
15222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15223 | ||
b4e70030 | 15224 | ac_header_compiler=no |
bec39cab AC |
15225 | fi |
15226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15227 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15228 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15229 | |
15230 | # Is the header present? | |
b4e70030 JB |
15231 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15232 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15233 | cat >conftest.$ac_ext <<_ACEOF |
15234 | /* confdefs.h. */ | |
15235 | _ACEOF | |
15236 | cat confdefs.h >>conftest.$ac_ext | |
15237 | cat >>conftest.$ac_ext <<_ACEOF | |
15238 | /* end confdefs.h. */ | |
15239 | #include <$ac_header> | |
15240 | _ACEOF | |
15241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15243 | ac_status=$? | |
15244 | grep -v '^ *+' conftest.er1 >conftest.err | |
15245 | rm -f conftest.er1 | |
15246 | cat conftest.err >&5 | |
15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15248 | (exit $ac_status); } >/dev/null; then | |
15249 | if test -s conftest.err; then | |
15250 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15252 | else | |
15253 | ac_cpp_err= | |
15254 | fi | |
15255 | else | |
15256 | ac_cpp_err=yes | |
9608ab8b | 15257 | fi |
bec39cab AC |
15258 | if test -z "$ac_cpp_err"; then |
15259 | ac_header_preproc=yes | |
9608ab8b | 15260 | else |
bec39cab AC |
15261 | echo "$as_me: failed program was:" >&5 |
15262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15263 | ||
15264 | ac_header_preproc=no | |
9608ab8b | 15265 | fi |
bec39cab | 15266 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15268 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 15269 | |
bec39cab AC |
15270 | # So? What about this header? |
15271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15272 | yes:no: ) | |
15273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15277 | ac_header_preproc=yes | |
15278 | ;; | |
15279 | no:yes:* ) | |
15280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15292 | ( |
15293 | cat <<\_ASBOX | |
15294 | ## ------------------------------------------ ## | |
15295 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15296 | ## ------------------------------------------ ## | |
15297 | _ASBOX | |
15298 | ) | | |
15299 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15300 | ;; |
15301 | esac | |
b4e70030 JB |
15302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15306 | else | |
15307 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 15308 | fi |
b4e70030 JB |
15309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15311 | |
9608ab8b | 15312 | fi |
bec39cab AC |
15313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15314 | cat >>confdefs.h <<_ACEOF | |
15315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15316 | _ACEOF | |
15317 | ||
9608ab8b | 15318 | fi |
bec39cab | 15319 | |
5ee754fc | 15320 | done |
9608ab8b | 15321 | |
bec39cab AC |
15322 | |
15323 | for ac_header in unistd.h | |
78434e59 | 15324 | do |
bec39cab | 15325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15331 | fi | |
b4e70030 JB |
15332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15334 | else |
15335 | # Is the header compilable? | |
b4e70030 JB |
15336 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15337 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15338 | cat >conftest.$ac_ext <<_ACEOF |
15339 | /* confdefs.h. */ | |
15340 | _ACEOF | |
15341 | cat confdefs.h >>conftest.$ac_ext | |
15342 | cat >>conftest.$ac_ext <<_ACEOF | |
15343 | /* end confdefs.h. */ | |
15344 | $ac_includes_default | |
15345 | #include <$ac_header> | |
15346 | _ACEOF | |
15347 | rm -f conftest.$ac_objext | |
15348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15349 | (eval $ac_compile) 2>conftest.er1 | |
15350 | ac_status=$? | |
15351 | grep -v '^ *+' conftest.er1 >conftest.err | |
15352 | rm -f conftest.er1 | |
15353 | cat conftest.err >&5 | |
15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15355 | (exit $ac_status); } && | |
b4e70030 JB |
15356 | { ac_try='test -z "$ac_c_werror_flag" |
15357 | || test ! -s conftest.err' | |
bec39cab AC |
15358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15359 | (eval $ac_try) 2>&5 | |
15360 | ac_status=$? | |
15361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15362 | (exit $ac_status); }; } && | |
15363 | { ac_try='test -s conftest.$ac_objext' | |
15364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15365 | (eval $ac_try) 2>&5 | |
15366 | ac_status=$? | |
15367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15368 | (exit $ac_status); }; }; then | |
15369 | ac_header_compiler=yes | |
15370 | else | |
15371 | echo "$as_me: failed program was:" >&5 | |
15372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15373 | ||
b4e70030 | 15374 | ac_header_compiler=no |
bec39cab AC |
15375 | fi |
15376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15377 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15378 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15379 | |
15380 | # Is the header present? | |
b4e70030 JB |
15381 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15382 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15383 | cat >conftest.$ac_ext <<_ACEOF |
15384 | /* confdefs.h. */ | |
15385 | _ACEOF | |
15386 | cat confdefs.h >>conftest.$ac_ext | |
15387 | cat >>conftest.$ac_ext <<_ACEOF | |
15388 | /* end confdefs.h. */ | |
15389 | #include <$ac_header> | |
15390 | _ACEOF | |
15391 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15392 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15393 | ac_status=$? | |
15394 | grep -v '^ *+' conftest.er1 >conftest.err | |
15395 | rm -f conftest.er1 | |
15396 | cat conftest.err >&5 | |
15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15398 | (exit $ac_status); } >/dev/null; then | |
15399 | if test -s conftest.err; then | |
15400 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15402 | else | |
15403 | ac_cpp_err= | |
15404 | fi | |
15405 | else | |
15406 | ac_cpp_err=yes | |
78434e59 | 15407 | fi |
bec39cab AC |
15408 | if test -z "$ac_cpp_err"; then |
15409 | ac_header_preproc=yes | |
78434e59 | 15410 | else |
bec39cab AC |
15411 | echo "$as_me: failed program was:" >&5 |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15413 | ||
15414 | ac_header_preproc=no | |
78434e59 | 15415 | fi |
bec39cab | 15416 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15417 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15418 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 15419 | |
bec39cab AC |
15420 | # So? What about this header? |
15421 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15422 | yes:no: ) | |
15423 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15424 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15425 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15426 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15427 | ac_header_preproc=yes | |
15428 | ;; | |
15429 | no:yes:* ) | |
15430 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15431 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15432 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15433 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15434 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15435 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15436 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15437 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15439 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15440 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15441 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15442 | ( |
15443 | cat <<\_ASBOX | |
15444 | ## ------------------------------------------ ## | |
15445 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15446 | ## ------------------------------------------ ## | |
15447 | _ASBOX | |
15448 | ) | | |
15449 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15450 | ;; |
15451 | esac | |
b4e70030 JB |
15452 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15456 | else | |
15457 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 15458 | fi |
b4e70030 JB |
15459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15461 | |
086ec9eb | 15462 | fi |
bec39cab AC |
15463 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15464 | cat >>confdefs.h <<_ACEOF | |
15465 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15466 | _ACEOF | |
15467 | ||
086ec9eb | 15468 | fi |
bec39cab | 15469 | |
086ec9eb MK |
15470 | done |
15471 | ||
9608ab8b | 15472 | |
b1d19a62 | 15473 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
15474 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
15475 | # think that we don't have <curses.h> if we're using GCC. | |
15476 | case $host_os in | |
b1d19a62 | 15477 | solaris2.[789]) |
5ee754fc | 15478 | if test "$GCC" = yes; then |
bec39cab AC |
15479 | |
15480 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 15481 | #define _MSE_INT_H 1 |
bec39cab | 15482 | _ACEOF |
5ee754fc MK |
15483 | |
15484 | fi ;; | |
15485 | esac | |
bec39cab AC |
15486 | |
15487 | ||
15488 | ||
15489 | ||
15490 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 15491 | do |
bec39cab | 15492 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15498 | fi | |
b4e70030 JB |
15499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15501 | else |
15502 | # Is the header compilable? | |
b4e70030 JB |
15503 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15504 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15505 | cat >conftest.$ac_ext <<_ACEOF |
15506 | /* confdefs.h. */ | |
15507 | _ACEOF | |
15508 | cat confdefs.h >>conftest.$ac_ext | |
15509 | cat >>conftest.$ac_ext <<_ACEOF | |
15510 | /* end confdefs.h. */ | |
15511 | $ac_includes_default | |
15512 | #include <$ac_header> | |
15513 | _ACEOF | |
15514 | rm -f conftest.$ac_objext | |
15515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15516 | (eval $ac_compile) 2>conftest.er1 | |
15517 | ac_status=$? | |
15518 | grep -v '^ *+' conftest.er1 >conftest.err | |
15519 | rm -f conftest.er1 | |
15520 | cat conftest.err >&5 | |
15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15522 | (exit $ac_status); } && | |
b4e70030 JB |
15523 | { ac_try='test -z "$ac_c_werror_flag" |
15524 | || test ! -s conftest.err' | |
bec39cab AC |
15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15526 | (eval $ac_try) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); }; } && | |
15530 | { ac_try='test -s conftest.$ac_objext' | |
15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15532 | (eval $ac_try) 2>&5 | |
15533 | ac_status=$? | |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15535 | (exit $ac_status); }; }; then | |
15536 | ac_header_compiler=yes | |
15537 | else | |
15538 | echo "$as_me: failed program was:" >&5 | |
15539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15540 | ||
b4e70030 | 15541 | ac_header_compiler=no |
bec39cab AC |
15542 | fi |
15543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15544 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15545 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15546 | |
15547 | # Is the header present? | |
b4e70030 JB |
15548 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15549 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15550 | cat >conftest.$ac_ext <<_ACEOF |
15551 | /* confdefs.h. */ | |
15552 | _ACEOF | |
15553 | cat confdefs.h >>conftest.$ac_ext | |
15554 | cat >>conftest.$ac_ext <<_ACEOF | |
15555 | /* end confdefs.h. */ | |
15556 | #include <$ac_header> | |
15557 | _ACEOF | |
15558 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15559 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15560 | ac_status=$? | |
15561 | grep -v '^ *+' conftest.er1 >conftest.err | |
15562 | rm -f conftest.er1 | |
15563 | cat conftest.err >&5 | |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15565 | (exit $ac_status); } >/dev/null; then | |
15566 | if test -s conftest.err; then | |
15567 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15568 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15569 | else | |
15570 | ac_cpp_err= | |
15571 | fi | |
15572 | else | |
15573 | ac_cpp_err=yes | |
c906108c | 15574 | fi |
bec39cab AC |
15575 | if test -z "$ac_cpp_err"; then |
15576 | ac_header_preproc=yes | |
15577 | else | |
15578 | echo "$as_me: failed program was:" >&5 | |
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15580 | ||
15581 | ac_header_preproc=no | |
c906108c | 15582 | fi |
bec39cab | 15583 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15584 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15585 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
15586 | |
15587 | # So? What about this header? | |
15588 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15589 | yes:no: ) | |
15590 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15591 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15592 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15593 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15594 | ac_header_preproc=yes | |
15595 | ;; | |
15596 | no:yes:* ) | |
15597 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15598 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15599 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15600 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15601 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15602 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15603 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15604 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15607 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15608 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15609 | ( |
15610 | cat <<\_ASBOX | |
15611 | ## ------------------------------------------ ## | |
15612 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15613 | ## ------------------------------------------ ## | |
15614 | _ASBOX | |
15615 | ) | | |
15616 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15617 | ;; |
15618 | esac | |
b4e70030 JB |
15619 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 15623 | else |
bec39cab | 15624 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 15625 | fi |
b4e70030 JB |
15626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15628 | |
15629 | fi | |
15630 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15631 | cat >>confdefs.h <<_ACEOF | |
15632 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15633 | _ACEOF | |
15634 | ||
15635 | fi | |
15636 | ||
5ee754fc | 15637 | done |
c906108c | 15638 | |
bec39cab | 15639 | |
065a1afc | 15640 | for ac_header in ncurses/term.h |
3b78cdbb | 15641 | do |
bec39cab | 15642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
15647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15648 | fi | |
b4e70030 JB |
15649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15651 | else |
15652 | # Is the header compilable? | |
b4e70030 JB |
15653 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
15655 | cat >conftest.$ac_ext <<_ACEOF |
15656 | /* confdefs.h. */ | |
15657 | _ACEOF | |
15658 | cat confdefs.h >>conftest.$ac_ext | |
15659 | cat >>conftest.$ac_ext <<_ACEOF | |
15660 | /* end confdefs.h. */ | |
15661 | $ac_includes_default | |
15662 | #include <$ac_header> | |
15663 | _ACEOF | |
15664 | rm -f conftest.$ac_objext | |
15665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15666 | (eval $ac_compile) 2>conftest.er1 | |
15667 | ac_status=$? | |
15668 | grep -v '^ *+' conftest.er1 >conftest.err | |
15669 | rm -f conftest.er1 | |
15670 | cat conftest.err >&5 | |
15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15672 | (exit $ac_status); } && | |
b4e70030 JB |
15673 | { ac_try='test -z "$ac_c_werror_flag" |
15674 | || test ! -s conftest.err' | |
bec39cab AC |
15675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15676 | (eval $ac_try) 2>&5 | |
15677 | ac_status=$? | |
15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15679 | (exit $ac_status); }; } && | |
15680 | { ac_try='test -s conftest.$ac_objext' | |
15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15682 | (eval $ac_try) 2>&5 | |
15683 | ac_status=$? | |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); }; }; then | |
15686 | ac_header_compiler=yes | |
15687 | else | |
15688 | echo "$as_me: failed program was:" >&5 | |
15689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15690 | ||
b4e70030 | 15691 | ac_header_compiler=no |
bec39cab AC |
15692 | fi |
15693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15694 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15695 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15696 | |
15697 | # Is the header present? | |
b4e70030 JB |
15698 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15699 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15700 | cat >conftest.$ac_ext <<_ACEOF |
15701 | /* confdefs.h. */ | |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | #include <$ac_header> | |
15707 | _ACEOF | |
15708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15710 | ac_status=$? | |
15711 | grep -v '^ *+' conftest.er1 >conftest.err | |
15712 | rm -f conftest.er1 | |
15713 | cat conftest.err >&5 | |
15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15715 | (exit $ac_status); } >/dev/null; then | |
15716 | if test -s conftest.err; then | |
15717 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15719 | else | |
15720 | ac_cpp_err= | |
15721 | fi | |
15722 | else | |
15723 | ac_cpp_err=yes | |
3b78cdbb | 15724 | fi |
bec39cab AC |
15725 | if test -z "$ac_cpp_err"; then |
15726 | ac_header_preproc=yes | |
15727 | else | |
15728 | echo "$as_me: failed program was:" >&5 | |
15729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15730 | ||
15731 | ac_header_preproc=no | |
3b78cdbb | 15732 | fi |
bec39cab | 15733 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15734 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15735 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
15736 | |
15737 | # So? What about this header? | |
15738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15739 | yes:no: ) | |
15740 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15741 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15742 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15743 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15744 | ac_header_preproc=yes | |
15745 | ;; | |
15746 | no:yes:* ) | |
15747 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15748 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15749 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15750 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15751 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15752 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15753 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15754 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15756 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15757 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15758 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15759 | ( |
15760 | cat <<\_ASBOX | |
15761 | ## ------------------------------------------ ## | |
15762 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15763 | ## ------------------------------------------ ## | |
15764 | _ASBOX | |
15765 | ) | | |
15766 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15767 | ;; |
15768 | esac | |
b4e70030 JB |
15769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 15773 | else |
bec39cab AC |
15774 | eval "$as_ac_Header=\$ac_header_preproc" |
15775 | fi | |
b4e70030 JB |
15776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15778 | |
3b78cdbb | 15779 | fi |
bec39cab AC |
15780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15781 | cat >>confdefs.h <<_ACEOF | |
15782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15783 | _ACEOF | |
15784 | ||
15785 | fi | |
15786 | ||
3b78cdbb DA |
15787 | done |
15788 | ||
c906108c | 15789 | |
065a1afc JB |
15790 | for ac_header in term.h |
15791 | do | |
15792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15793 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
15796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15797 | else | |
15798 | cat >conftest.$ac_ext <<_ACEOF | |
15799 | /* confdefs.h. */ | |
15800 | _ACEOF | |
15801 | cat confdefs.h >>conftest.$ac_ext | |
15802 | cat >>conftest.$ac_ext <<_ACEOF | |
15803 | /* end confdefs.h. */ | |
15804 | #if HAVE_CURSES_H | |
15805 | # include <curses.h> | |
15806 | #endif | |
15807 | ||
15808 | ||
15809 | #include <$ac_header> | |
15810 | _ACEOF | |
15811 | rm -f conftest.$ac_objext | |
15812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15813 | (eval $ac_compile) 2>conftest.er1 | |
15814 | ac_status=$? | |
15815 | grep -v '^ *+' conftest.er1 >conftest.err | |
15816 | rm -f conftest.er1 | |
15817 | cat conftest.err >&5 | |
15818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15819 | (exit $ac_status); } && | |
b4e70030 JB |
15820 | { ac_try='test -z "$ac_c_werror_flag" |
15821 | || test ! -s conftest.err' | |
065a1afc JB |
15822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15823 | (eval $ac_try) 2>&5 | |
15824 | ac_status=$? | |
15825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15826 | (exit $ac_status); }; } && | |
15827 | { ac_try='test -s conftest.$ac_objext' | |
15828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15829 | (eval $ac_try) 2>&5 | |
15830 | ac_status=$? | |
15831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15832 | (exit $ac_status); }; }; then | |
15833 | eval "$as_ac_Header=yes" | |
15834 | else | |
15835 | echo "$as_me: failed program was:" >&5 | |
15836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15837 | ||
b4e70030 | 15838 | eval "$as_ac_Header=no" |
065a1afc JB |
15839 | fi |
15840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15841 | fi | |
b4e70030 JB |
15842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15843 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
15844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
15845 | cat >>confdefs.h <<_ACEOF | |
15846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15847 | _ACEOF | |
15848 | ||
15849 | fi | |
15850 | ||
15851 | done | |
15852 | ||
15853 | ||
d542061a UW |
15854 | # Check for HP/UX 64-bit shared library support |
15855 | ||
15856 | for ac_header in elf_hp.h | |
15857 | do | |
15858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15864 | fi | |
15865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15867 | else | |
15868 | # Is the header compilable? | |
15869 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15871 | cat >conftest.$ac_ext <<_ACEOF | |
15872 | /* confdefs.h. */ | |
15873 | _ACEOF | |
15874 | cat confdefs.h >>conftest.$ac_ext | |
15875 | cat >>conftest.$ac_ext <<_ACEOF | |
15876 | /* end confdefs.h. */ | |
15877 | $ac_includes_default | |
15878 | #include <$ac_header> | |
15879 | _ACEOF | |
15880 | rm -f conftest.$ac_objext | |
15881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15882 | (eval $ac_compile) 2>conftest.er1 | |
15883 | ac_status=$? | |
15884 | grep -v '^ *+' conftest.er1 >conftest.err | |
15885 | rm -f conftest.er1 | |
15886 | cat conftest.err >&5 | |
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15888 | (exit $ac_status); } && | |
15889 | { ac_try='test -z "$ac_c_werror_flag" | |
15890 | || test ! -s conftest.err' | |
15891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15892 | (eval $ac_try) 2>&5 | |
15893 | ac_status=$? | |
15894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15895 | (exit $ac_status); }; } && | |
15896 | { ac_try='test -s conftest.$ac_objext' | |
15897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15898 | (eval $ac_try) 2>&5 | |
15899 | ac_status=$? | |
15900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15901 | (exit $ac_status); }; }; then | |
15902 | ac_header_compiler=yes | |
15903 | else | |
15904 | echo "$as_me: failed program was:" >&5 | |
15905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15906 | ||
15907 | ac_header_compiler=no | |
15908 | fi | |
15909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15911 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15912 | ||
15913 | # Is the header present? | |
15914 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15916 | cat >conftest.$ac_ext <<_ACEOF | |
15917 | /* confdefs.h. */ | |
15918 | _ACEOF | |
15919 | cat confdefs.h >>conftest.$ac_ext | |
15920 | cat >>conftest.$ac_ext <<_ACEOF | |
15921 | /* end confdefs.h. */ | |
15922 | #include <$ac_header> | |
15923 | _ACEOF | |
15924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15926 | ac_status=$? | |
15927 | grep -v '^ *+' conftest.er1 >conftest.err | |
15928 | rm -f conftest.er1 | |
15929 | cat conftest.err >&5 | |
15930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15931 | (exit $ac_status); } >/dev/null; then | |
15932 | if test -s conftest.err; then | |
15933 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15935 | else | |
15936 | ac_cpp_err= | |
15937 | fi | |
15938 | else | |
15939 | ac_cpp_err=yes | |
15940 | fi | |
15941 | if test -z "$ac_cpp_err"; then | |
15942 | ac_header_preproc=yes | |
15943 | else | |
15944 | echo "$as_me: failed program was:" >&5 | |
15945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15946 | ||
15947 | ac_header_preproc=no | |
15948 | fi | |
15949 | rm -f conftest.err conftest.$ac_ext | |
15950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15951 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15952 | ||
15953 | # So? What about this header? | |
15954 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15955 | yes:no: ) | |
15956 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15957 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15959 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15960 | ac_header_preproc=yes | |
15961 | ;; | |
15962 | no:yes:* ) | |
15963 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15964 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15965 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15966 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15967 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15968 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15969 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15970 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15972 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15973 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15974 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15975 | ( | |
15976 | cat <<\_ASBOX | |
15977 | ## ------------------------------------------ ## | |
15978 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15979 | ## ------------------------------------------ ## | |
15980 | _ASBOX | |
15981 | ) | | |
15982 | sed "s/^/$as_me: WARNING: /" >&2 | |
15983 | ;; | |
15984 | esac | |
15985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15989 | else | |
15990 | eval "$as_ac_Header=\$ac_header_preproc" | |
15991 | fi | |
15992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15994 | ||
15995 | fi | |
15996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15997 | cat >>confdefs.h <<_ACEOF | |
15998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15999 | _ACEOF | |
16000 | ||
16001 | fi | |
16002 | ||
16003 | done | |
16004 | ||
16005 | ||
5ee754fc MK |
16006 | # FIXME: kettenis/20030102: In most cases we include these |
16007 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
16008 | |
16009 | ||
16010 | for ac_header in ctype.h time.h | |
c906108c | 16011 | do |
bec39cab | 16012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
16013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
16017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16018 | fi | |
b4e70030 JB |
16019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
16021 | else |
16022 | # Is the header compilable? | |
b4e70030 JB |
16023 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
16025 | cat >conftest.$ac_ext <<_ACEOF |
16026 | /* confdefs.h. */ | |
16027 | _ACEOF | |
16028 | cat confdefs.h >>conftest.$ac_ext | |
16029 | cat >>conftest.$ac_ext <<_ACEOF | |
16030 | /* end confdefs.h. */ | |
16031 | $ac_includes_default | |
16032 | #include <$ac_header> | |
16033 | _ACEOF | |
16034 | rm -f conftest.$ac_objext | |
16035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16036 | (eval $ac_compile) 2>conftest.er1 | |
16037 | ac_status=$? | |
16038 | grep -v '^ *+' conftest.er1 >conftest.err | |
16039 | rm -f conftest.er1 | |
16040 | cat conftest.err >&5 | |
16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16042 | (exit $ac_status); } && | |
b4e70030 JB |
16043 | { ac_try='test -z "$ac_c_werror_flag" |
16044 | || test ! -s conftest.err' | |
bec39cab AC |
16045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16046 | (eval $ac_try) 2>&5 | |
16047 | ac_status=$? | |
16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16049 | (exit $ac_status); }; } && | |
16050 | { ac_try='test -s conftest.$ac_objext' | |
16051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16052 | (eval $ac_try) 2>&5 | |
16053 | ac_status=$? | |
16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16055 | (exit $ac_status); }; }; then | |
16056 | ac_header_compiler=yes | |
16057 | else | |
16058 | echo "$as_me: failed program was:" >&5 | |
16059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16060 | ||
b4e70030 | 16061 | ac_header_compiler=no |
bec39cab AC |
16062 | fi |
16063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
16064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16065 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
16066 | |
16067 | # Is the header present? | |
b4e70030 JB |
16068 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16069 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
16070 | cat >conftest.$ac_ext <<_ACEOF |
16071 | /* confdefs.h. */ | |
16072 | _ACEOF | |
16073 | cat confdefs.h >>conftest.$ac_ext | |
16074 | cat >>conftest.$ac_ext <<_ACEOF | |
16075 | /* end confdefs.h. */ | |
16076 | #include <$ac_header> | |
16077 | _ACEOF | |
16078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16080 | ac_status=$? | |
16081 | grep -v '^ *+' conftest.er1 >conftest.err | |
16082 | rm -f conftest.er1 | |
16083 | cat conftest.err >&5 | |
16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16085 | (exit $ac_status); } >/dev/null; then | |
16086 | if test -s conftest.err; then | |
16087 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16088 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16089 | else | |
16090 | ac_cpp_err= | |
16091 | fi | |
16092 | else | |
16093 | ac_cpp_err=yes | |
c906108c | 16094 | fi |
bec39cab AC |
16095 | if test -z "$ac_cpp_err"; then |
16096 | ac_header_preproc=yes | |
16097 | else | |
16098 | echo "$as_me: failed program was:" >&5 | |
16099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16100 | ||
16101 | ac_header_preproc=no | |
c906108c | 16102 | fi |
bec39cab | 16103 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
16104 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16105 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
16106 | |
16107 | # So? What about this header? | |
16108 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16109 | yes:no: ) | |
16110 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16111 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16113 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16114 | ac_header_preproc=yes | |
16115 | ;; | |
16116 | no:yes:* ) | |
16117 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16118 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16119 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16120 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16121 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16122 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16123 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16124 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16126 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16127 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16128 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16129 | ( |
16130 | cat <<\_ASBOX | |
16131 | ## ------------------------------------------ ## | |
16132 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16133 | ## ------------------------------------------ ## | |
16134 | _ASBOX | |
16135 | ) | | |
16136 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
16137 | ;; |
16138 | esac | |
b4e70030 JB |
16139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 16143 | else |
bec39cab AC |
16144 | eval "$as_ac_Header=\$ac_header_preproc" |
16145 | fi | |
b4e70030 JB |
16146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16147 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
16148 | |
16149 | fi | |
16150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16151 | cat >>confdefs.h <<_ACEOF | |
16152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16153 | _ACEOF | |
16154 | ||
c906108c | 16155 | fi |
bec39cab | 16156 | |
c906108c SS |
16157 | done |
16158 | ||
5ee754fc | 16159 | |
4e8d927d | 16160 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 16161 | |
4e8d927d DJ |
16162 | |
16163 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
16164 | ||
16165 | acx_cv_header_stdint=stddef.h | |
16166 | acx_cv_header_stdint_kind="(already complete)" | |
16167 | for i in stdint.h $inttype_headers; do | |
16168 | unset ac_cv_type_uintptr_t | |
16169 | unset ac_cv_type_uintmax_t | |
16170 | unset ac_cv_type_int_least32_t | |
16171 | unset ac_cv_type_int_fast32_t | |
16172 | unset ac_cv_type_uint64_t | |
16173 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
16174 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
16175 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 16176 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 16177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 16178 | else |
bec39cab AC |
16179 | cat >conftest.$ac_ext <<_ACEOF |
16180 | /* confdefs.h. */ | |
16181 | _ACEOF | |
16182 | cat confdefs.h >>conftest.$ac_ext | |
16183 | cat >>conftest.$ac_ext <<_ACEOF | |
16184 | /* end confdefs.h. */ | |
4e8d927d DJ |
16185 | #include <sys/types.h> |
16186 | #include <$i> | |
16187 | ||
bec39cab AC |
16188 | int |
16189 | main () | |
16190 | { | |
b4e70030 | 16191 | if ((uintmax_t *) 0) |
4e8d927d | 16192 | return 0; |
b4e70030 | 16193 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
16194 | return 0; |
16195 | ; | |
bec39cab AC |
16196 | return 0; |
16197 | } | |
16198 | _ACEOF | |
16199 | rm -f conftest.$ac_objext | |
16200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16201 | (eval $ac_compile) 2>conftest.er1 | |
16202 | ac_status=$? | |
16203 | grep -v '^ *+' conftest.er1 >conftest.err | |
16204 | rm -f conftest.er1 | |
16205 | cat conftest.err >&5 | |
16206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16207 | (exit $ac_status); } && | |
b4e70030 JB |
16208 | { ac_try='test -z "$ac_c_werror_flag" |
16209 | || test ! -s conftest.err' | |
bec39cab AC |
16210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16211 | (eval $ac_try) 2>&5 | |
16212 | ac_status=$? | |
16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16214 | (exit $ac_status); }; } && | |
16215 | { ac_try='test -s conftest.$ac_objext' | |
16216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16217 | (eval $ac_try) 2>&5 | |
16218 | ac_status=$? | |
16219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16220 | (exit $ac_status); }; }; then | |
4e8d927d | 16221 | ac_cv_type_uintmax_t=yes |
40a7debc | 16222 | else |
bec39cab AC |
16223 | echo "$as_me: failed program was:" >&5 |
16224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16225 | ||
b4e70030 | 16226 | ac_cv_type_uintmax_t=no |
40a7debc | 16227 | fi |
bec39cab | 16228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 16229 | fi |
b4e70030 JB |
16230 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
16231 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
16232 | if test $ac_cv_type_uintmax_t = yes; then |
16233 | acx_cv_header_stdint=$i | |
666ec76f | 16234 | else |
4e8d927d | 16235 | continue |
666ec76f | 16236 | fi |
4e8d927d | 16237 | |
b4e70030 JB |
16238 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
16239 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 16240 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
16241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16242 | else | |
16243 | cat >conftest.$ac_ext <<_ACEOF | |
16244 | /* confdefs.h. */ | |
16245 | _ACEOF | |
16246 | cat confdefs.h >>conftest.$ac_ext | |
16247 | cat >>conftest.$ac_ext <<_ACEOF | |
16248 | /* end confdefs.h. */ | |
4e8d927d DJ |
16249 | #include <sys/types.h> |
16250 | #include <$i> | |
16251 | ||
666ec76f MK |
16252 | int |
16253 | main () | |
16254 | { | |
b4e70030 | 16255 | if ((uintptr_t *) 0) |
4e8d927d | 16256 | return 0; |
b4e70030 | 16257 | if (sizeof (uintptr_t)) |
4e8d927d | 16258 | return 0; |
666ec76f MK |
16259 | ; |
16260 | return 0; | |
16261 | } | |
16262 | _ACEOF | |
16263 | rm -f conftest.$ac_objext | |
16264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16265 | (eval $ac_compile) 2>conftest.er1 | |
16266 | ac_status=$? | |
16267 | grep -v '^ *+' conftest.er1 >conftest.err | |
16268 | rm -f conftest.er1 | |
16269 | cat conftest.err >&5 | |
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16271 | (exit $ac_status); } && | |
b4e70030 JB |
16272 | { ac_try='test -z "$ac_c_werror_flag" |
16273 | || test ! -s conftest.err' | |
666ec76f MK |
16274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16275 | (eval $ac_try) 2>&5 | |
16276 | ac_status=$? | |
16277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16278 | (exit $ac_status); }; } && | |
16279 | { ac_try='test -s conftest.$ac_objext' | |
16280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16281 | (eval $ac_try) 2>&5 | |
16282 | ac_status=$? | |
16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16284 | (exit $ac_status); }; }; then | |
4e8d927d | 16285 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
16286 | else |
16287 | echo "$as_me: failed program was:" >&5 | |
16288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16289 | |
b4e70030 | 16290 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
16291 | fi |
16292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16293 | fi | |
b4e70030 JB |
16294 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
16295 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
16296 | if test $ac_cv_type_uintptr_t = yes; then |
16297 | : | |
a3828db0 | 16298 | else |
4e8d927d | 16299 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 16300 | fi |
4e8d927d | 16301 | |
b4e70030 JB |
16302 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
16303 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 16304 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
16305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16306 | else | |
16307 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
16308 | /* confdefs.h. */ |
16309 | _ACEOF | |
16310 | cat confdefs.h >>conftest.$ac_ext | |
16311 | cat >>conftest.$ac_ext <<_ACEOF | |
16312 | /* end confdefs.h. */ | |
4e8d927d DJ |
16313 | #include <sys/types.h> |
16314 | #include <$i> | |
16315 | ||
bec39cab AC |
16316 | int |
16317 | main () | |
16318 | { | |
b4e70030 | 16319 | if ((int_least32_t *) 0) |
4e8d927d | 16320 | return 0; |
b4e70030 | 16321 | if (sizeof (int_least32_t)) |
4e8d927d | 16322 | return 0; |
bec39cab AC |
16323 | ; |
16324 | return 0; | |
16325 | } | |
16326 | _ACEOF | |
16327 | rm -f conftest.$ac_objext | |
16328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16329 | (eval $ac_compile) 2>conftest.er1 | |
16330 | ac_status=$? | |
16331 | grep -v '^ *+' conftest.er1 >conftest.err | |
16332 | rm -f conftest.er1 | |
16333 | cat conftest.err >&5 | |
16334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16335 | (exit $ac_status); } && | |
b4e70030 JB |
16336 | { ac_try='test -z "$ac_c_werror_flag" |
16337 | || test ! -s conftest.err' | |
bec39cab AC |
16338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16339 | (eval $ac_try) 2>&5 | |
16340 | ac_status=$? | |
16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16342 | (exit $ac_status); }; } && | |
16343 | { ac_try='test -s conftest.$ac_objext' | |
16344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16345 | (eval $ac_try) 2>&5 | |
16346 | ac_status=$? | |
16347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16348 | (exit $ac_status); }; }; then | |
4e8d927d | 16349 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 16350 | else |
bec39cab AC |
16351 | echo "$as_me: failed program was:" >&5 |
16352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16353 | ||
b4e70030 | 16354 | ac_cv_type_int_least32_t=no |
b9362cc7 | 16355 | fi |
bec39cab | 16356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 16357 | fi |
b4e70030 JB |
16358 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
16359 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
16360 | if test $ac_cv_type_int_least32_t = yes; then |
16361 | : | |
a3828db0 | 16362 | else |
4e8d927d | 16363 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 16364 | fi |
5ee754fc | 16365 | |
b4e70030 JB |
16366 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
16367 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 16368 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
16369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16370 | else | |
16371 | cat >conftest.$ac_ext <<_ACEOF | |
16372 | /* confdefs.h. */ | |
16373 | _ACEOF | |
16374 | cat confdefs.h >>conftest.$ac_ext | |
16375 | cat >>conftest.$ac_ext <<_ACEOF | |
16376 | /* end confdefs.h. */ | |
4e8d927d DJ |
16377 | #include <sys/types.h> |
16378 | #include <$i> | |
16379 | ||
bec39cab AC |
16380 | int |
16381 | main () | |
16382 | { | |
b4e70030 | 16383 | if ((int_fast32_t *) 0) |
4e8d927d | 16384 | return 0; |
b4e70030 | 16385 | if (sizeof (int_fast32_t)) |
4e8d927d | 16386 | return 0; |
bec39cab AC |
16387 | ; |
16388 | return 0; | |
16389 | } | |
16390 | _ACEOF | |
16391 | rm -f conftest.$ac_objext | |
16392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16393 | (eval $ac_compile) 2>conftest.er1 | |
16394 | ac_status=$? | |
16395 | grep -v '^ *+' conftest.er1 >conftest.err | |
16396 | rm -f conftest.er1 | |
16397 | cat conftest.err >&5 | |
16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16399 | (exit $ac_status); } && | |
b4e70030 JB |
16400 | { ac_try='test -z "$ac_c_werror_flag" |
16401 | || test ! -s conftest.err' | |
bec39cab AC |
16402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16403 | (eval $ac_try) 2>&5 | |
16404 | ac_status=$? | |
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16406 | (exit $ac_status); }; } && | |
16407 | { ac_try='test -s conftest.$ac_objext' | |
16408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16409 | (eval $ac_try) 2>&5 | |
16410 | ac_status=$? | |
16411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16412 | (exit $ac_status); }; }; then | |
4e8d927d | 16413 | ac_cv_type_int_fast32_t=yes |
c906108c | 16414 | else |
bec39cab AC |
16415 | echo "$as_me: failed program was:" >&5 |
16416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16417 | ||
b4e70030 | 16418 | ac_cv_type_int_fast32_t=no |
c906108c | 16419 | fi |
bec39cab | 16420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16421 | fi |
b4e70030 JB |
16422 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
16423 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
16424 | if test $ac_cv_type_int_fast32_t = yes; then |
16425 | : | |
a3828db0 | 16426 | else |
4e8d927d | 16427 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 16428 | fi |
4e8d927d | 16429 | |
b4e70030 JB |
16430 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
16431 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 16432 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
16433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16434 | else | |
16435 | cat >conftest.$ac_ext <<_ACEOF | |
16436 | /* confdefs.h. */ | |
16437 | _ACEOF | |
16438 | cat confdefs.h >>conftest.$ac_ext | |
16439 | cat >>conftest.$ac_ext <<_ACEOF | |
16440 | /* end confdefs.h. */ | |
4e8d927d DJ |
16441 | #include <sys/types.h> |
16442 | #include <$i> | |
16443 | ||
bec39cab AC |
16444 | int |
16445 | main () | |
16446 | { | |
b4e70030 | 16447 | if ((uint64_t *) 0) |
4e8d927d | 16448 | return 0; |
b4e70030 | 16449 | if (sizeof (uint64_t)) |
4e8d927d | 16450 | return 0; |
bec39cab AC |
16451 | ; |
16452 | return 0; | |
16453 | } | |
16454 | _ACEOF | |
16455 | rm -f conftest.$ac_objext | |
16456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16457 | (eval $ac_compile) 2>conftest.er1 | |
16458 | ac_status=$? | |
16459 | grep -v '^ *+' conftest.er1 >conftest.err | |
16460 | rm -f conftest.er1 | |
16461 | cat conftest.err >&5 | |
16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16463 | (exit $ac_status); } && | |
b4e70030 JB |
16464 | { ac_try='test -z "$ac_c_werror_flag" |
16465 | || test ! -s conftest.err' | |
bec39cab AC |
16466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16467 | (eval $ac_try) 2>&5 | |
16468 | ac_status=$? | |
16469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16470 | (exit $ac_status); }; } && | |
16471 | { ac_try='test -s conftest.$ac_objext' | |
16472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16473 | (eval $ac_try) 2>&5 | |
16474 | ac_status=$? | |
16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16476 | (exit $ac_status); }; }; then | |
4e8d927d | 16477 | ac_cv_type_uint64_t=yes |
c906108c | 16478 | else |
bec39cab AC |
16479 | echo "$as_me: failed program was:" >&5 |
16480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16481 | ||
b4e70030 | 16482 | ac_cv_type_uint64_t=no |
c906108c | 16483 | fi |
bec39cab | 16484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16485 | fi |
b4e70030 JB |
16486 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
16487 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
16488 | if test $ac_cv_type_uint64_t = yes; then |
16489 | : | |
a3828db0 | 16490 | else |
4e8d927d | 16491 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
16492 | fi |
16493 | ||
4e8d927d DJ |
16494 | break |
16495 | done | |
16496 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 16497 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 16498 | for i in stdint.h $inttype_headers; do |
3841debe | 16499 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
16500 | unset ac_cv_type_uint32_t |
16501 | unset ac_cv_type_uint64_t | |
16502 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
16503 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
16504 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 16505 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 16506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 16507 | else |
bec39cab AC |
16508 | cat >conftest.$ac_ext <<_ACEOF |
16509 | /* confdefs.h. */ | |
16510 | _ACEOF | |
16511 | cat confdefs.h >>conftest.$ac_ext | |
16512 | cat >>conftest.$ac_ext <<_ACEOF | |
16513 | /* end confdefs.h. */ | |
4e8d927d DJ |
16514 | #include <sys/types.h> |
16515 | #include <$i> | |
16516 | ||
a3828db0 MK |
16517 | int |
16518 | main () | |
16519 | { | |
b4e70030 | 16520 | if ((uint32_t *) 0) |
4e8d927d | 16521 | return 0; |
b4e70030 | 16522 | if (sizeof (uint32_t)) |
4e8d927d | 16523 | return 0; |
a3828db0 MK |
16524 | ; |
16525 | return 0; | |
16526 | } | |
bec39cab AC |
16527 | _ACEOF |
16528 | rm -f conftest.$ac_objext | |
16529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16530 | (eval $ac_compile) 2>conftest.er1 | |
16531 | ac_status=$? | |
16532 | grep -v '^ *+' conftest.er1 >conftest.err | |
16533 | rm -f conftest.er1 | |
16534 | cat conftest.err >&5 | |
16535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16536 | (exit $ac_status); } && | |
b4e70030 JB |
16537 | { ac_try='test -z "$ac_c_werror_flag" |
16538 | || test ! -s conftest.err' | |
bec39cab AC |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; } && | |
16544 | { ac_try='test -s conftest.$ac_objext' | |
16545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16546 | (eval $ac_try) 2>&5 | |
16547 | ac_status=$? | |
16548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16549 | (exit $ac_status); }; }; then | |
4e8d927d | 16550 | ac_cv_type_uint32_t=yes |
bce58c09 | 16551 | else |
bec39cab AC |
16552 | echo "$as_me: failed program was:" >&5 |
16553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16554 | ||
b4e70030 | 16555 | ac_cv_type_uint32_t=no |
bce58c09 | 16556 | fi |
bec39cab | 16557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 16558 | fi |
b4e70030 JB |
16559 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
16560 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
16561 | if test $ac_cv_type_uint32_t = yes; then |
16562 | acx_cv_header_stdint=$i | |
a3828db0 | 16563 | else |
4e8d927d | 16564 | continue |
e5a7de23 | 16565 | fi |
4e8d927d | 16566 | |
b4e70030 JB |
16567 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
16568 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 16569 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
16570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16571 | else | |
16572 | cat >conftest.$ac_ext <<_ACEOF | |
16573 | /* confdefs.h. */ | |
16574 | _ACEOF | |
16575 | cat confdefs.h >>conftest.$ac_ext | |
16576 | cat >>conftest.$ac_ext <<_ACEOF | |
16577 | /* end confdefs.h. */ | |
4e8d927d DJ |
16578 | #include <sys/types.h> |
16579 | #include <$i> | |
16580 | ||
e5a7de23 EZ |
16581 | int |
16582 | main () | |
16583 | { | |
b4e70030 | 16584 | if ((uint64_t *) 0) |
4e8d927d | 16585 | return 0; |
b4e70030 | 16586 | if (sizeof (uint64_t)) |
4e8d927d | 16587 | return 0; |
e5a7de23 EZ |
16588 | ; |
16589 | return 0; | |
16590 | } | |
16591 | _ACEOF | |
16592 | rm -f conftest.$ac_objext | |
16593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16594 | (eval $ac_compile) 2>conftest.er1 | |
16595 | ac_status=$? | |
16596 | grep -v '^ *+' conftest.er1 >conftest.err | |
16597 | rm -f conftest.er1 | |
16598 | cat conftest.err >&5 | |
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16600 | (exit $ac_status); } && | |
b4e70030 JB |
16601 | { ac_try='test -z "$ac_c_werror_flag" |
16602 | || test ! -s conftest.err' | |
e5a7de23 EZ |
16603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16604 | (eval $ac_try) 2>&5 | |
16605 | ac_status=$? | |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16607 | (exit $ac_status); }; } && | |
16608 | { ac_try='test -s conftest.$ac_objext' | |
16609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16610 | (eval $ac_try) 2>&5 | |
16611 | ac_status=$? | |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16613 | (exit $ac_status); }; }; then | |
4e8d927d | 16614 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
16615 | else |
16616 | echo "$as_me: failed program was:" >&5 | |
16617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16618 | ||
b4e70030 | 16619 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
16620 | fi |
16621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16622 | fi | |
b4e70030 JB |
16623 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
16624 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
16625 | |
16626 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
16627 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
16628 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
16629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16630 | else | |
16631 | cat >conftest.$ac_ext <<_ACEOF | |
16632 | /* confdefs.h. */ | |
16633 | _ACEOF | |
16634 | cat confdefs.h >>conftest.$ac_ext | |
16635 | cat >>conftest.$ac_ext <<_ACEOF | |
16636 | /* end confdefs.h. */ | |
16637 | #include <sys/types.h> | |
16638 | #include <$i> | |
16639 | ||
16640 | int | |
16641 | main () | |
16642 | { | |
16643 | if ((uintptr_t *) 0) | |
16644 | return 0; | |
16645 | if (sizeof (uintptr_t)) | |
16646 | return 0; | |
16647 | ; | |
16648 | return 0; | |
16649 | } | |
16650 | _ACEOF | |
16651 | rm -f conftest.$ac_objext | |
16652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16653 | (eval $ac_compile) 2>conftest.er1 | |
16654 | ac_status=$? | |
16655 | grep -v '^ *+' conftest.er1 >conftest.err | |
16656 | rm -f conftest.er1 | |
16657 | cat conftest.err >&5 | |
16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16659 | (exit $ac_status); } && | |
16660 | { ac_try='test -z "$ac_c_werror_flag" | |
16661 | || test ! -s conftest.err' | |
16662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16663 | (eval $ac_try) 2>&5 | |
16664 | ac_status=$? | |
16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16666 | (exit $ac_status); }; } && | |
16667 | { ac_try='test -s conftest.$ac_objext' | |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; }; then | |
16673 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 16674 | else |
3841debe DJ |
16675 | echo "$as_me: failed program was:" >&5 |
16676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16677 | ||
16678 | ac_cv_type_uintptr_t=no | |
4e8d927d | 16679 | fi |
3841debe DJ |
16680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16681 | fi | |
16682 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
16683 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 16684 | |
4e8d927d DJ |
16685 | break |
16686 | done | |
e5a7de23 | 16687 | fi |
4e8d927d DJ |
16688 | if test "$acx_cv_header_stdint" = stddef.h; then |
16689 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16690 | for i in sys/types.h $inttype_headers; do | |
16691 | unset ac_cv_type_u_int32_t | |
16692 | unset ac_cv_type_u_int64_t | |
16693 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
16694 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
16695 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 16696 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
16697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16698 | else | |
16699 | cat >conftest.$ac_ext <<_ACEOF | |
16700 | /* confdefs.h. */ | |
16701 | _ACEOF | |
16702 | cat confdefs.h >>conftest.$ac_ext | |
16703 | cat >>conftest.$ac_ext <<_ACEOF | |
16704 | /* end confdefs.h. */ | |
4e8d927d DJ |
16705 | #include <sys/types.h> |
16706 | #include <$i> | |
16707 | ||
e5a7de23 EZ |
16708 | int |
16709 | main () | |
16710 | { | |
b4e70030 | 16711 | if ((u_int32_t *) 0) |
4e8d927d | 16712 | return 0; |
b4e70030 | 16713 | if (sizeof (u_int32_t)) |
4e8d927d | 16714 | return 0; |
e5a7de23 EZ |
16715 | ; |
16716 | return 0; | |
16717 | } | |
16718 | _ACEOF | |
16719 | rm -f conftest.$ac_objext | |
16720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16721 | (eval $ac_compile) 2>conftest.er1 | |
16722 | ac_status=$? | |
16723 | grep -v '^ *+' conftest.er1 >conftest.err | |
16724 | rm -f conftest.er1 | |
16725 | cat conftest.err >&5 | |
16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16727 | (exit $ac_status); } && | |
b4e70030 JB |
16728 | { ac_try='test -z "$ac_c_werror_flag" |
16729 | || test ! -s conftest.err' | |
e5a7de23 EZ |
16730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16731 | (eval $ac_try) 2>&5 | |
16732 | ac_status=$? | |
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16734 | (exit $ac_status); }; } && | |
16735 | { ac_try='test -s conftest.$ac_objext' | |
16736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16737 | (eval $ac_try) 2>&5 | |
16738 | ac_status=$? | |
16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16740 | (exit $ac_status); }; }; then | |
4e8d927d | 16741 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
16742 | else |
16743 | echo "$as_me: failed program was:" >&5 | |
16744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16745 | ||
b4e70030 | 16746 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
16747 | fi |
16748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16749 | fi | |
b4e70030 JB |
16750 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
16751 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
16752 | if test $ac_cv_type_u_int32_t = yes; then |
16753 | acx_cv_header_stdint=$i | |
e5a7de23 | 16754 | else |
4e8d927d | 16755 | continue |
a3828db0 | 16756 | fi |
5ee754fc | 16757 | |
b4e70030 JB |
16758 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
16759 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 16760 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
16761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16762 | else | |
16763 | cat >conftest.$ac_ext <<_ACEOF | |
16764 | /* confdefs.h. */ | |
16765 | _ACEOF | |
16766 | cat confdefs.h >>conftest.$ac_ext | |
16767 | cat >>conftest.$ac_ext <<_ACEOF | |
16768 | /* end confdefs.h. */ | |
4e8d927d DJ |
16769 | #include <sys/types.h> |
16770 | #include <$i> | |
16771 | ||
bec39cab AC |
16772 | int |
16773 | main () | |
16774 | { | |
b4e70030 | 16775 | if ((u_int64_t *) 0) |
4e8d927d | 16776 | return 0; |
b4e70030 | 16777 | if (sizeof (u_int64_t)) |
4e8d927d | 16778 | return 0; |
bec39cab AC |
16779 | ; |
16780 | return 0; | |
16781 | } | |
16782 | _ACEOF | |
a3828db0 MK |
16783 | rm -f conftest.$ac_objext |
16784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16785 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16786 | ac_status=$? |
16787 | grep -v '^ *+' conftest.er1 >conftest.err | |
16788 | rm -f conftest.er1 | |
16789 | cat conftest.err >&5 | |
16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16791 | (exit $ac_status); } && | |
b4e70030 JB |
16792 | { ac_try='test -z "$ac_c_werror_flag" |
16793 | || test ! -s conftest.err' | |
bec39cab AC |
16794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16795 | (eval $ac_try) 2>&5 | |
16796 | ac_status=$? | |
16797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16798 | (exit $ac_status); }; } && | |
a3828db0 | 16799 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16801 | (eval $ac_try) 2>&5 | |
16802 | ac_status=$? | |
16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16804 | (exit $ac_status); }; }; then | |
4e8d927d | 16805 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
16806 | else |
16807 | echo "$as_me: failed program was:" >&5 | |
16808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16809 | ||
b4e70030 | 16810 | ac_cv_type_u_int64_t=no |
4e8d927d | 16811 | fi |
4e8d927d DJ |
16812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16813 | fi | |
b4e70030 JB |
16814 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
16815 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
16816 | |
16817 | break | |
16818 | done | |
16819 | fi | |
16820 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16821 | acx_cv_header_stdint_kind="(using manual detection)" | |
16822 | fi | |
16823 | ||
16824 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
16825 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16826 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16827 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16828 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
16829 | ||
16830 | # ----------------- Summarize what we found so far | |
16831 | ||
b4e70030 JB |
16832 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
16833 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 16834 | |
b4e70030 | 16835 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
16836 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
16837 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
16838 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
16839 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 16840 | echo X/gdb_stdint.h | |
b4e70030 JB |
16841 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
16842 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
16843 | /^X\/\(\/\).*/{ s//\1/; q; } | |
16844 | s/.*/./; q'` in | |
4e8d927d DJ |
16845 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
16846 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16847 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
16848 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16849 | *) ;; | |
16850 | esac | |
16851 | ||
b4e70030 JB |
16852 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16853 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
16854 | |
16855 | # ----------------- done included file, check C basic types -------- | |
16856 | ||
16857 | # Lacking an uintptr_t? Test size of void * | |
16858 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
16859 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
16860 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
16861 | if test "${ac_cv_type_void_p+set}" = set; then |
16862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16863 | else | |
16864 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 16865 | /* confdefs.h. */ |
bec39cab AC |
16866 | _ACEOF |
16867 | cat confdefs.h >>conftest.$ac_ext | |
16868 | cat >>conftest.$ac_ext <<_ACEOF | |
16869 | /* end confdefs.h. */ | |
a3828db0 | 16870 | $ac_includes_default |
bec39cab AC |
16871 | int |
16872 | main () | |
16873 | { | |
b4e70030 | 16874 | if ((void * *) 0) |
4e8d927d | 16875 | return 0; |
b4e70030 | 16876 | if (sizeof (void *)) |
4e8d927d | 16877 | return 0; |
bec39cab AC |
16878 | ; |
16879 | return 0; | |
16880 | } | |
16881 | _ACEOF | |
a3828db0 MK |
16882 | rm -f conftest.$ac_objext |
16883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16884 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16885 | ac_status=$? |
16886 | grep -v '^ *+' conftest.er1 >conftest.err | |
16887 | rm -f conftest.er1 | |
16888 | cat conftest.err >&5 | |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16890 | (exit $ac_status); } && | |
b4e70030 JB |
16891 | { ac_try='test -z "$ac_c_werror_flag" |
16892 | || test ! -s conftest.err' | |
bec39cab AC |
16893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16894 | (eval $ac_try) 2>&5 | |
16895 | ac_status=$? | |
16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16897 | (exit $ac_status); }; } && | |
a3828db0 | 16898 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16900 | (eval $ac_try) 2>&5 | |
16901 | ac_status=$? | |
16902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16903 | (exit $ac_status); }; }; then | |
4e8d927d | 16904 | ac_cv_type_void_p=yes |
46711df8 | 16905 | else |
bec39cab AC |
16906 | echo "$as_me: failed program was:" >&5 |
16907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16908 | ||
b4e70030 | 16909 | ac_cv_type_void_p=no |
a3828db0 | 16910 | fi |
4e8d927d | 16911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 16912 | fi |
b4e70030 JB |
16913 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
16914 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 16915 | |
b4e70030 JB |
16916 | echo "$as_me:$LINENO: checking size of void *" >&5 |
16917 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 16918 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
16919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16920 | else | |
4e8d927d | 16921 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 16922 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
16923 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16924 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16925 | # This bug is HP SR number 8606223364. | |
16926 | if test "$cross_compiling" = yes; then | |
16927 | # Depending upon the size, compute the lo and hi bounds. | |
16928 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
16929 | /* confdefs.h. */ |
16930 | _ACEOF | |
16931 | cat confdefs.h >>conftest.$ac_ext | |
16932 | cat >>conftest.$ac_ext <<_ACEOF | |
16933 | /* end confdefs.h. */ | |
16934 | $ac_includes_default | |
16935 | int | |
16936 | main () | |
16937 | { | |
b4e70030 | 16938 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
16939 | test_array [0] = 0 |
16940 | ||
d3ea6809 MM |
16941 | ; |
16942 | return 0; | |
16943 | } | |
16944 | _ACEOF | |
16945 | rm -f conftest.$ac_objext | |
16946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16947 | (eval $ac_compile) 2>conftest.er1 | |
16948 | ac_status=$? | |
16949 | grep -v '^ *+' conftest.er1 >conftest.err | |
16950 | rm -f conftest.er1 | |
16951 | cat conftest.err >&5 | |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16953 | (exit $ac_status); } && | |
b4e70030 JB |
16954 | { ac_try='test -z "$ac_c_werror_flag" |
16955 | || test ! -s conftest.err' | |
d3ea6809 MM |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; } && | |
16961 | { ac_try='test -s conftest.$ac_objext' | |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
16967 | ac_lo=0 ac_mid=0 |
16968 | while :; do | |
16969 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
16970 | /* confdefs.h. */ |
16971 | _ACEOF | |
16972 | cat confdefs.h >>conftest.$ac_ext | |
16973 | cat >>conftest.$ac_ext <<_ACEOF | |
16974 | /* end confdefs.h. */ | |
16975 | $ac_includes_default | |
16976 | int | |
16977 | main () | |
16978 | { | |
b4e70030 | 16979 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
16980 | test_array [0] = 0 |
16981 | ||
d3ea6809 MM |
16982 | ; |
16983 | return 0; | |
16984 | } | |
16985 | _ACEOF | |
16986 | rm -f conftest.$ac_objext | |
16987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16988 | (eval $ac_compile) 2>conftest.er1 | |
16989 | ac_status=$? | |
16990 | grep -v '^ *+' conftest.er1 >conftest.err | |
16991 | rm -f conftest.er1 | |
16992 | cat conftest.err >&5 | |
16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16994 | (exit $ac_status); } && | |
b4e70030 JB |
16995 | { ac_try='test -z "$ac_c_werror_flag" |
16996 | || test ! -s conftest.err' | |
d3ea6809 MM |
16997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16998 | (eval $ac_try) 2>&5 | |
16999 | ac_status=$? | |
17000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17001 | (exit $ac_status); }; } && | |
17002 | { ac_try='test -s conftest.$ac_objext' | |
17003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17004 | (eval $ac_try) 2>&5 | |
17005 | ac_status=$? | |
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17007 | (exit $ac_status); }; }; then | |
4e8d927d | 17008 | ac_hi=$ac_mid; break |
d3ea6809 MM |
17009 | else |
17010 | echo "$as_me: failed program was:" >&5 | |
17011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17012 | ||
b4e70030 JB |
17013 | ac_lo=`expr $ac_mid + 1` |
17014 | if test $ac_lo -le $ac_mid; then | |
17015 | ac_lo= ac_hi= | |
17016 | break | |
17017 | fi | |
17018 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 17019 | fi |
4e8d927d DJ |
17020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17021 | done | |
bec39cab | 17022 | else |
4e8d927d DJ |
17023 | echo "$as_me: failed program was:" >&5 |
17024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17025 | ||
b4e70030 | 17026 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
17027 | /* confdefs.h. */ |
17028 | _ACEOF | |
17029 | cat confdefs.h >>conftest.$ac_ext | |
17030 | cat >>conftest.$ac_ext <<_ACEOF | |
17031 | /* end confdefs.h. */ | |
4e8d927d | 17032 | $ac_includes_default |
bec39cab AC |
17033 | int |
17034 | main () | |
17035 | { | |
b4e70030 | 17036 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
17037 | test_array [0] = 0 |
17038 | ||
bec39cab AC |
17039 | ; |
17040 | return 0; | |
17041 | } | |
17042 | _ACEOF | |
a3828db0 MK |
17043 | rm -f conftest.$ac_objext |
17044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17045 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
17046 | ac_status=$? |
17047 | grep -v '^ *+' conftest.er1 >conftest.err | |
17048 | rm -f conftest.er1 | |
17049 | cat conftest.err >&5 | |
17050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17051 | (exit $ac_status); } && | |
b4e70030 JB |
17052 | { ac_try='test -z "$ac_c_werror_flag" |
17053 | || test ! -s conftest.err' | |
bec39cab AC |
17054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17055 | (eval $ac_try) 2>&5 | |
17056 | ac_status=$? | |
17057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17058 | (exit $ac_status); }; } && | |
a3828db0 | 17059 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
17060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17061 | (eval $ac_try) 2>&5 | |
17062 | ac_status=$? | |
17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17064 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
17065 | ac_hi=-1 ac_mid=-1 |
17066 | while :; do | |
17067 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
17068 | /* confdefs.h. */ |
17069 | _ACEOF | |
17070 | cat confdefs.h >>conftest.$ac_ext | |
17071 | cat >>conftest.$ac_ext <<_ACEOF | |
17072 | /* end confdefs.h. */ | |
4e8d927d | 17073 | $ac_includes_default |
f9f87d2c MK |
17074 | int |
17075 | main () | |
17076 | { | |
b4e70030 | 17077 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
17078 | test_array [0] = 0 |
17079 | ||
f9f87d2c MK |
17080 | ; |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
17084 | rm -f conftest.$ac_objext | |
17085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17086 | (eval $ac_compile) 2>conftest.er1 | |
17087 | ac_status=$? | |
17088 | grep -v '^ *+' conftest.er1 >conftest.err | |
17089 | rm -f conftest.er1 | |
17090 | cat conftest.err >&5 | |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17092 | (exit $ac_status); } && | |
b4e70030 JB |
17093 | { ac_try='test -z "$ac_c_werror_flag" |
17094 | || test ! -s conftest.err' | |
f9f87d2c MK |
17095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17096 | (eval $ac_try) 2>&5 | |
17097 | ac_status=$? | |
17098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17099 | (exit $ac_status); }; } && | |
17100 | { ac_try='test -s conftest.$ac_objext' | |
17101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17102 | (eval $ac_try) 2>&5 | |
17103 | ac_status=$? | |
17104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17105 | (exit $ac_status); }; }; then | |
4e8d927d | 17106 | ac_lo=$ac_mid; break |
f9f87d2c MK |
17107 | else |
17108 | echo "$as_me: failed program was:" >&5 | |
17109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17110 | ||
b4e70030 JB |
17111 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17112 | if test $ac_mid -le $ac_hi; then | |
17113 | ac_lo= ac_hi= | |
17114 | break | |
17115 | fi | |
17116 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 17117 | fi |
4e8d927d DJ |
17118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17119 | done | |
17120 | else | |
17121 | echo "$as_me: failed program was:" >&5 | |
17122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 17123 | |
b4e70030 | 17124 | ac_lo= ac_hi= |
4e8d927d | 17125 | fi |
4e8d927d | 17126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 17127 | fi |
4e8d927d DJ |
17128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17129 | # Binary search between lo and hi bounds. | |
17130 | while test "x$ac_lo" != "x$ac_hi"; do | |
17131 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
17132 | cat >conftest.$ac_ext <<_ACEOF |
17133 | /* confdefs.h. */ | |
17134 | _ACEOF | |
17135 | cat confdefs.h >>conftest.$ac_ext | |
17136 | cat >>conftest.$ac_ext <<_ACEOF | |
17137 | /* end confdefs.h. */ | |
4e8d927d | 17138 | $ac_includes_default |
3be60c3d MK |
17139 | int |
17140 | main () | |
17141 | { | |
b4e70030 | 17142 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
17143 | test_array [0] = 0 |
17144 | ||
3be60c3d MK |
17145 | ; |
17146 | return 0; | |
17147 | } | |
17148 | _ACEOF | |
17149 | rm -f conftest.$ac_objext | |
17150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17151 | (eval $ac_compile) 2>conftest.er1 | |
17152 | ac_status=$? | |
17153 | grep -v '^ *+' conftest.er1 >conftest.err | |
17154 | rm -f conftest.er1 | |
17155 | cat conftest.err >&5 | |
17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17157 | (exit $ac_status); } && | |
b4e70030 JB |
17158 | { ac_try='test -z "$ac_c_werror_flag" |
17159 | || test ! -s conftest.err' | |
3be60c3d MK |
17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); }; } && | |
17165 | { ac_try='test -s conftest.$ac_objext' | |
17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17167 | (eval $ac_try) 2>&5 | |
17168 | ac_status=$? | |
17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17170 | (exit $ac_status); }; }; then | |
4e8d927d | 17171 | ac_hi=$ac_mid |
3be60c3d MK |
17172 | else |
17173 | echo "$as_me: failed program was:" >&5 | |
17174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17175 | ||
b4e70030 | 17176 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 17177 | fi |
4e8d927d DJ |
17178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17179 | done | |
17180 | case $ac_lo in | |
17181 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 17182 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 17183 | See \`config.log' for more details." >&5 |
b4e70030 | 17184 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 17185 | See \`config.log' for more details." >&2;} |
b4e70030 | 17186 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 17187 | esac |
b4e70030 JB |
17188 | else |
17189 | if test "$cross_compiling" = yes; then | |
17190 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17191 | See \`config.log' for more details." >&5 | |
17192 | echo "$as_me: error: cannot run test program while cross compiling | |
17193 | See \`config.log' for more details." >&2;} | |
17194 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
17195 | else |
17196 | cat >conftest.$ac_ext <<_ACEOF | |
17197 | /* confdefs.h. */ | |
3be60c3d | 17198 | _ACEOF |
4e8d927d DJ |
17199 | cat confdefs.h >>conftest.$ac_ext |
17200 | cat >>conftest.$ac_ext <<_ACEOF | |
17201 | /* end confdefs.h. */ | |
17202 | $ac_includes_default | |
b4e70030 JB |
17203 | long longval () { return (long) (sizeof (void *)); } |
17204 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
17205 | #include <stdio.h> |
17206 | #include <stdlib.h> | |
17207 | int | |
17208 | main () | |
17209 | { | |
17210 | ||
17211 | FILE *f = fopen ("conftest.val", "w"); | |
17212 | if (! f) | |
b4e70030 JB |
17213 | exit (1); |
17214 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 17215 | { |
b4e70030 JB |
17216 | long i = longval (); |
17217 | if (i != ((long) (sizeof (void *)))) | |
17218 | exit (1); | |
4e8d927d DJ |
17219 | fprintf (f, "%ld\n", i); |
17220 | } | |
17221 | else | |
17222 | { | |
b4e70030 JB |
17223 | unsigned long i = ulongval (); |
17224 | if (i != ((long) (sizeof (void *)))) | |
17225 | exit (1); | |
4e8d927d DJ |
17226 | fprintf (f, "%lu\n", i); |
17227 | } | |
b4e70030 | 17228 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 17229 | |
4e8d927d DJ |
17230 | ; |
17231 | return 0; | |
17232 | } | |
17233 | _ACEOF | |
17234 | rm -f conftest$ac_exeext | |
17235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17236 | (eval $ac_link) 2>&5 | |
17237 | ac_status=$? | |
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17241 | (eval $ac_try) 2>&5 | |
17242 | ac_status=$? | |
17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17244 | (exit $ac_status); }; }; then | |
17245 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17246 | else | |
17247 | echo "$as_me: program exited with status $ac_status" >&5 | |
17248 | echo "$as_me: failed program was:" >&5 | |
17249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 17250 | |
4e8d927d | 17251 | ( exit $ac_status ) |
b4e70030 | 17252 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 17253 | See \`config.log' for more details." >&5 |
b4e70030 | 17254 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 17255 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
17256 | { (exit 1); exit 1; }; } |
17257 | fi | |
17258 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 17259 | fi |
4e8d927d DJ |
17260 | fi |
17261 | rm -f conftest.val | |
17262 | else | |
17263 | ac_cv_sizeof_void_p=0 | |
17264 | fi | |
17265 | fi | |
b4e70030 JB |
17266 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
17267 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
17268 | cat >>confdefs.h <<_ACEOF |
17269 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17270 | _ACEOF | |
f9f87d2c | 17271 | |
4e8d927d DJ |
17272 | ;; |
17273 | esac | |
46711df8 | 17274 | |
4e8d927d DJ |
17275 | # Lacking an uint64_t? Test size of long |
17276 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
17277 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
17278 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 17279 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 17280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 17281 | else |
bec39cab AC |
17282 | cat >conftest.$ac_ext <<_ACEOF |
17283 | /* confdefs.h. */ | |
17284 | _ACEOF | |
17285 | cat confdefs.h >>conftest.$ac_ext | |
17286 | cat >>conftest.$ac_ext <<_ACEOF | |
17287 | /* end confdefs.h. */ | |
4e8d927d | 17288 | $ac_includes_default |
bec39cab | 17289 | int |
46711df8 MK |
17290 | main () |
17291 | { | |
b4e70030 | 17292 | if ((long *) 0) |
4e8d927d | 17293 | return 0; |
b4e70030 | 17294 | if (sizeof (long)) |
4e8d927d | 17295 | return 0; |
a3828db0 MK |
17296 | ; |
17297 | return 0; | |
46711df8 | 17298 | } |
bec39cab | 17299 | _ACEOF |
a3828db0 MK |
17300 | rm -f conftest.$ac_objext |
17301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17302 | (eval $ac_compile) 2>conftest.er1 | |
17303 | ac_status=$? | |
17304 | grep -v '^ *+' conftest.er1 >conftest.err | |
17305 | rm -f conftest.er1 | |
17306 | cat conftest.err >&5 | |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17308 | (exit $ac_status); } && | |
b4e70030 JB |
17309 | { ac_try='test -z "$ac_c_werror_flag" |
17310 | || test ! -s conftest.err' | |
a3828db0 MK |
17311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17312 | (eval $ac_try) 2>&5 | |
bec39cab AC |
17313 | ac_status=$? |
17314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
17315 | (exit $ac_status); }; } && |
17316 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
17317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17318 | (eval $ac_try) 2>&5 | |
17319 | ac_status=$? | |
17320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17321 | (exit $ac_status); }; }; then | |
4e8d927d | 17322 | ac_cv_type_long=yes |
46711df8 | 17323 | else |
a3828db0 | 17324 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17325 | sed 's/^/| /' conftest.$ac_ext >&5 |
17326 | ||
b4e70030 | 17327 | ac_cv_type_long=no |
46711df8 | 17328 | fi |
4e8d927d | 17329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 17330 | fi |
b4e70030 JB |
17331 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
17332 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 17333 | |
b4e70030 JB |
17334 | echo "$as_me:$LINENO: checking size of long" >&5 |
17335 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 17336 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 17337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 17338 | else |
4e8d927d | 17339 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 17340 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
17341 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
17342 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17343 | # This bug is HP SR number 8606223364. | |
17344 | if test "$cross_compiling" = yes; then | |
17345 | # Depending upon the size, compute the lo and hi bounds. | |
17346 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17347 | /* confdefs.h. */ |
17348 | _ACEOF | |
17349 | cat confdefs.h >>conftest.$ac_ext | |
17350 | cat >>conftest.$ac_ext <<_ACEOF | |
17351 | /* end confdefs.h. */ | |
4e8d927d | 17352 | $ac_includes_default |
4e8d927d DJ |
17353 | int |
17354 | main () | |
17355 | { | |
b4e70030 | 17356 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 17357 | test_array [0] = 0 |
a3828db0 | 17358 | |
4e8d927d DJ |
17359 | ; |
17360 | return 0; | |
17361 | } | |
bec39cab AC |
17362 | _ACEOF |
17363 | rm -f conftest.$ac_objext | |
17364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17365 | (eval $ac_compile) 2>conftest.er1 | |
17366 | ac_status=$? | |
17367 | grep -v '^ *+' conftest.er1 >conftest.err | |
17368 | rm -f conftest.er1 | |
17369 | cat conftest.err >&5 | |
17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17371 | (exit $ac_status); } && | |
b4e70030 JB |
17372 | { ac_try='test -z "$ac_c_werror_flag" |
17373 | || test ! -s conftest.err' | |
bec39cab AC |
17374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17375 | (eval $ac_try) 2>&5 | |
17376 | ac_status=$? | |
17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17378 | (exit $ac_status); }; } && | |
17379 | { ac_try='test -s conftest.$ac_objext' | |
17380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17381 | (eval $ac_try) 2>&5 | |
17382 | ac_status=$? | |
17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17384 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
17385 | ac_lo=0 ac_mid=0 |
17386 | while :; do | |
17387 | cat >conftest.$ac_ext <<_ACEOF | |
17388 | /* confdefs.h. */ | |
17389 | _ACEOF | |
17390 | cat confdefs.h >>conftest.$ac_ext | |
17391 | cat >>conftest.$ac_ext <<_ACEOF | |
17392 | /* end confdefs.h. */ | |
17393 | $ac_includes_default | |
4e8d927d DJ |
17394 | int |
17395 | main () | |
17396 | { | |
b4e70030 | 17397 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
17398 | test_array [0] = 0 |
17399 | ||
17400 | ; | |
17401 | return 0; | |
17402 | } | |
17403 | _ACEOF | |
17404 | rm -f conftest.$ac_objext | |
17405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17406 | (eval $ac_compile) 2>conftest.er1 | |
17407 | ac_status=$? | |
17408 | grep -v '^ *+' conftest.er1 >conftest.err | |
17409 | rm -f conftest.er1 | |
17410 | cat conftest.err >&5 | |
17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17412 | (exit $ac_status); } && | |
b4e70030 JB |
17413 | { ac_try='test -z "$ac_c_werror_flag" |
17414 | || test ! -s conftest.err' | |
4e8d927d DJ |
17415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17416 | (eval $ac_try) 2>&5 | |
17417 | ac_status=$? | |
17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17419 | (exit $ac_status); }; } && | |
17420 | { ac_try='test -s conftest.$ac_objext' | |
17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17422 | (eval $ac_try) 2>&5 | |
17423 | ac_status=$? | |
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17425 | (exit $ac_status); }; }; then | |
17426 | ac_hi=$ac_mid; break | |
17427 | else | |
17428 | echo "$as_me: failed program was:" >&5 | |
17429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17430 | ||
b4e70030 JB |
17431 | ac_lo=`expr $ac_mid + 1` |
17432 | if test $ac_lo -le $ac_mid; then | |
17433 | ac_lo= ac_hi= | |
17434 | break | |
17435 | fi | |
17436 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 17437 | fi |
4e8d927d DJ |
17438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17439 | done | |
17440 | else | |
17441 | echo "$as_me: failed program was:" >&5 | |
17442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17443 | ||
b4e70030 | 17444 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
17445 | /* confdefs.h. */ |
17446 | _ACEOF | |
17447 | cat confdefs.h >>conftest.$ac_ext | |
17448 | cat >>conftest.$ac_ext <<_ACEOF | |
17449 | /* end confdefs.h. */ | |
17450 | $ac_includes_default | |
4e8d927d DJ |
17451 | int |
17452 | main () | |
17453 | { | |
b4e70030 | 17454 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
17455 | test_array [0] = 0 |
17456 | ||
17457 | ; | |
17458 | return 0; | |
17459 | } | |
17460 | _ACEOF | |
17461 | rm -f conftest.$ac_objext | |
17462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17463 | (eval $ac_compile) 2>conftest.er1 | |
17464 | ac_status=$? | |
17465 | grep -v '^ *+' conftest.er1 >conftest.err | |
17466 | rm -f conftest.er1 | |
17467 | cat conftest.err >&5 | |
17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17469 | (exit $ac_status); } && | |
b4e70030 JB |
17470 | { ac_try='test -z "$ac_c_werror_flag" |
17471 | || test ! -s conftest.err' | |
4e8d927d DJ |
17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17473 | (eval $ac_try) 2>&5 | |
17474 | ac_status=$? | |
17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17476 | (exit $ac_status); }; } && | |
17477 | { ac_try='test -s conftest.$ac_objext' | |
17478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17479 | (eval $ac_try) 2>&5 | |
17480 | ac_status=$? | |
17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17482 | (exit $ac_status); }; }; then | |
17483 | ac_hi=-1 ac_mid=-1 | |
17484 | while :; do | |
17485 | cat >conftest.$ac_ext <<_ACEOF | |
17486 | /* confdefs.h. */ | |
17487 | _ACEOF | |
17488 | cat confdefs.h >>conftest.$ac_ext | |
17489 | cat >>conftest.$ac_ext <<_ACEOF | |
17490 | /* end confdefs.h. */ | |
17491 | $ac_includes_default | |
4e8d927d DJ |
17492 | int |
17493 | main () | |
17494 | { | |
b4e70030 | 17495 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
17496 | test_array [0] = 0 |
17497 | ||
17498 | ; | |
17499 | return 0; | |
17500 | } | |
17501 | _ACEOF | |
17502 | rm -f conftest.$ac_objext | |
17503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17504 | (eval $ac_compile) 2>conftest.er1 | |
17505 | ac_status=$? | |
17506 | grep -v '^ *+' conftest.er1 >conftest.err | |
17507 | rm -f conftest.er1 | |
17508 | cat conftest.err >&5 | |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 | (exit $ac_status); } && | |
b4e70030 JB |
17511 | { ac_try='test -z "$ac_c_werror_flag" |
17512 | || test ! -s conftest.err' | |
4e8d927d DJ |
17513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17514 | (eval $ac_try) 2>&5 | |
17515 | ac_status=$? | |
17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17517 | (exit $ac_status); }; } && | |
17518 | { ac_try='test -s conftest.$ac_objext' | |
17519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17520 | (eval $ac_try) 2>&5 | |
17521 | ac_status=$? | |
17522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17523 | (exit $ac_status); }; }; then | |
17524 | ac_lo=$ac_mid; break | |
17525 | else | |
17526 | echo "$as_me: failed program was:" >&5 | |
17527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17528 | ||
b4e70030 JB |
17529 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17530 | if test $ac_mid -le $ac_hi; then | |
17531 | ac_lo= ac_hi= | |
17532 | break | |
17533 | fi | |
17534 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 17535 | fi |
4e8d927d DJ |
17536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17537 | done | |
17538 | else | |
17539 | echo "$as_me: failed program was:" >&5 | |
17540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17541 | ||
b4e70030 | 17542 | ac_lo= ac_hi= |
4e8d927d | 17543 | fi |
4e8d927d DJ |
17544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17545 | fi | |
4e8d927d DJ |
17546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17547 | # Binary search between lo and hi bounds. | |
17548 | while test "x$ac_lo" != "x$ac_hi"; do | |
17549 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17550 | cat >conftest.$ac_ext <<_ACEOF | |
17551 | /* confdefs.h. */ | |
17552 | _ACEOF | |
17553 | cat confdefs.h >>conftest.$ac_ext | |
17554 | cat >>conftest.$ac_ext <<_ACEOF | |
17555 | /* end confdefs.h. */ | |
17556 | $ac_includes_default | |
4e8d927d DJ |
17557 | int |
17558 | main () | |
17559 | { | |
b4e70030 | 17560 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
17561 | test_array [0] = 0 |
17562 | ||
17563 | ; | |
17564 | return 0; | |
17565 | } | |
17566 | _ACEOF | |
17567 | rm -f conftest.$ac_objext | |
17568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17569 | (eval $ac_compile) 2>conftest.er1 | |
17570 | ac_status=$? | |
17571 | grep -v '^ *+' conftest.er1 >conftest.err | |
17572 | rm -f conftest.er1 | |
17573 | cat conftest.err >&5 | |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); } && | |
b4e70030 JB |
17576 | { ac_try='test -z "$ac_c_werror_flag" |
17577 | || test ! -s conftest.err' | |
4e8d927d DJ |
17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17579 | (eval $ac_try) 2>&5 | |
17580 | ac_status=$? | |
17581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17582 | (exit $ac_status); }; } && | |
17583 | { ac_try='test -s conftest.$ac_objext' | |
17584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17585 | (eval $ac_try) 2>&5 | |
17586 | ac_status=$? | |
17587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17588 | (exit $ac_status); }; }; then | |
17589 | ac_hi=$ac_mid | |
17590 | else | |
17591 | echo "$as_me: failed program was:" >&5 | |
17592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17593 | ||
b4e70030 | 17594 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 17595 | fi |
4e8d927d DJ |
17596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17597 | done | |
17598 | case $ac_lo in | |
17599 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 17600 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 17601 | See \`config.log' for more details." >&5 |
b4e70030 | 17602 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 17603 | See \`config.log' for more details." >&2;} |
b4e70030 | 17604 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 17605 | esac |
b4e70030 JB |
17606 | else |
17607 | if test "$cross_compiling" = yes; then | |
17608 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17609 | See \`config.log' for more details." >&5 | |
17610 | echo "$as_me: error: cannot run test program while cross compiling | |
17611 | See \`config.log' for more details." >&2;} | |
17612 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
17613 | else |
17614 | cat >conftest.$ac_ext <<_ACEOF | |
17615 | /* confdefs.h. */ | |
17616 | _ACEOF | |
17617 | cat confdefs.h >>conftest.$ac_ext | |
17618 | cat >>conftest.$ac_ext <<_ACEOF | |
17619 | /* end confdefs.h. */ | |
17620 | $ac_includes_default | |
b4e70030 JB |
17621 | long longval () { return (long) (sizeof (long)); } |
17622 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
17623 | #include <stdio.h> |
17624 | #include <stdlib.h> | |
17625 | int | |
17626 | main () | |
17627 | { | |
17628 | ||
17629 | FILE *f = fopen ("conftest.val", "w"); | |
17630 | if (! f) | |
b4e70030 JB |
17631 | exit (1); |
17632 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 17633 | { |
b4e70030 JB |
17634 | long i = longval (); |
17635 | if (i != ((long) (sizeof (long)))) | |
17636 | exit (1); | |
4e8d927d DJ |
17637 | fprintf (f, "%ld\n", i); |
17638 | } | |
17639 | else | |
17640 | { | |
b4e70030 JB |
17641 | unsigned long i = ulongval (); |
17642 | if (i != ((long) (sizeof (long)))) | |
17643 | exit (1); | |
4e8d927d DJ |
17644 | fprintf (f, "%lu\n", i); |
17645 | } | |
b4e70030 | 17646 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
17647 | |
17648 | ; | |
17649 | return 0; | |
17650 | } | |
17651 | _ACEOF | |
17652 | rm -f conftest$ac_exeext | |
17653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17654 | (eval $ac_link) 2>&5 | |
17655 | ac_status=$? | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17659 | (eval $ac_try) 2>&5 | |
17660 | ac_status=$? | |
17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17662 | (exit $ac_status); }; }; then | |
17663 | ac_cv_sizeof_long=`cat conftest.val` | |
17664 | else | |
17665 | echo "$as_me: program exited with status $ac_status" >&5 | |
17666 | echo "$as_me: failed program was:" >&5 | |
17667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17668 | ||
17669 | ( exit $ac_status ) | |
b4e70030 | 17670 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 17671 | See \`config.log' for more details." >&5 |
b4e70030 | 17672 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 17673 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
17674 | { (exit 1); exit 1; }; } |
17675 | fi | |
17676 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 17677 | fi |
4e8d927d DJ |
17678 | fi |
17679 | rm -f conftest.val | |
17680 | else | |
17681 | ac_cv_sizeof_long=0 | |
17682 | fi | |
17683 | fi | |
b4e70030 JB |
17684 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
17685 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
17686 | cat >>confdefs.h <<_ACEOF |
17687 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17688 | _ACEOF | |
17689 | ||
17690 | ;; | |
17691 | esac | |
17692 | ||
17693 | if test $acx_cv_header_stdint = stddef.h; then | |
17694 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
17695 | echo "$as_me:$LINENO: checking for int" >&5 |
17696 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
17697 | if test "${ac_cv_type_int+set}" = set; then |
17698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17699 | else | |
17700 | cat >conftest.$ac_ext <<_ACEOF | |
17701 | /* confdefs.h. */ | |
17702 | _ACEOF | |
17703 | cat confdefs.h >>conftest.$ac_ext | |
17704 | cat >>conftest.$ac_ext <<_ACEOF | |
17705 | /* end confdefs.h. */ | |
17706 | $ac_includes_default | |
4e8d927d DJ |
17707 | int |
17708 | main () | |
17709 | { | |
b4e70030 | 17710 | if ((int *) 0) |
4e8d927d | 17711 | return 0; |
b4e70030 | 17712 | if (sizeof (int)) |
4e8d927d DJ |
17713 | return 0; |
17714 | ; | |
17715 | return 0; | |
17716 | } | |
17717 | _ACEOF | |
17718 | rm -f conftest.$ac_objext | |
17719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17720 | (eval $ac_compile) 2>conftest.er1 | |
17721 | ac_status=$? | |
17722 | grep -v '^ *+' conftest.er1 >conftest.err | |
17723 | rm -f conftest.er1 | |
17724 | cat conftest.err >&5 | |
17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17726 | (exit $ac_status); } && | |
b4e70030 JB |
17727 | { ac_try='test -z "$ac_c_werror_flag" |
17728 | || test ! -s conftest.err' | |
4e8d927d DJ |
17729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17730 | (eval $ac_try) 2>&5 | |
17731 | ac_status=$? | |
17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17733 | (exit $ac_status); }; } && | |
17734 | { ac_try='test -s conftest.$ac_objext' | |
17735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17736 | (eval $ac_try) 2>&5 | |
17737 | ac_status=$? | |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17739 | (exit $ac_status); }; }; then | |
17740 | ac_cv_type_int=yes | |
17741 | else | |
17742 | echo "$as_me: failed program was:" >&5 | |
17743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17744 | ||
b4e70030 | 17745 | ac_cv_type_int=no |
4e8d927d | 17746 | fi |
4e8d927d DJ |
17747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17748 | fi | |
b4e70030 JB |
17749 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
17750 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 17751 | |
b4e70030 JB |
17752 | echo "$as_me:$LINENO: checking size of int" >&5 |
17753 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
17754 | if test "${ac_cv_sizeof_int+set}" = set; then |
17755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17756 | else | |
17757 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 17758 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
17759 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
17760 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17761 | # This bug is HP SR number 8606223364. | |
17762 | if test "$cross_compiling" = yes; then | |
17763 | # Depending upon the size, compute the lo and hi bounds. | |
17764 | cat >conftest.$ac_ext <<_ACEOF | |
17765 | /* confdefs.h. */ | |
17766 | _ACEOF | |
17767 | cat confdefs.h >>conftest.$ac_ext | |
17768 | cat >>conftest.$ac_ext <<_ACEOF | |
17769 | /* end confdefs.h. */ | |
17770 | $ac_includes_default | |
4e8d927d DJ |
17771 | int |
17772 | main () | |
17773 | { | |
b4e70030 | 17774 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
17775 | test_array [0] = 0 |
17776 | ||
17777 | ; | |
17778 | return 0; | |
17779 | } | |
17780 | _ACEOF | |
17781 | rm -f conftest.$ac_objext | |
17782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17783 | (eval $ac_compile) 2>conftest.er1 | |
17784 | ac_status=$? | |
17785 | grep -v '^ *+' conftest.er1 >conftest.err | |
17786 | rm -f conftest.er1 | |
17787 | cat conftest.err >&5 | |
17788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17789 | (exit $ac_status); } && | |
b4e70030 JB |
17790 | { ac_try='test -z "$ac_c_werror_flag" |
17791 | || test ! -s conftest.err' | |
4e8d927d DJ |
17792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17793 | (eval $ac_try) 2>&5 | |
17794 | ac_status=$? | |
17795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17796 | (exit $ac_status); }; } && | |
17797 | { ac_try='test -s conftest.$ac_objext' | |
17798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17799 | (eval $ac_try) 2>&5 | |
17800 | ac_status=$? | |
17801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17802 | (exit $ac_status); }; }; then | |
17803 | ac_lo=0 ac_mid=0 | |
17804 | while :; do | |
17805 | cat >conftest.$ac_ext <<_ACEOF | |
17806 | /* confdefs.h. */ | |
17807 | _ACEOF | |
17808 | cat confdefs.h >>conftest.$ac_ext | |
17809 | cat >>conftest.$ac_ext <<_ACEOF | |
17810 | /* end confdefs.h. */ | |
17811 | $ac_includes_default | |
4e8d927d DJ |
17812 | int |
17813 | main () | |
17814 | { | |
b4e70030 | 17815 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
17816 | test_array [0] = 0 |
17817 | ||
17818 | ; | |
17819 | return 0; | |
17820 | } | |
17821 | _ACEOF | |
17822 | rm -f conftest.$ac_objext | |
17823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17824 | (eval $ac_compile) 2>conftest.er1 | |
17825 | ac_status=$? | |
17826 | grep -v '^ *+' conftest.er1 >conftest.err | |
17827 | rm -f conftest.er1 | |
17828 | cat conftest.err >&5 | |
17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17830 | (exit $ac_status); } && | |
b4e70030 JB |
17831 | { ac_try='test -z "$ac_c_werror_flag" |
17832 | || test ! -s conftest.err' | |
4e8d927d DJ |
17833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17834 | (eval $ac_try) 2>&5 | |
17835 | ac_status=$? | |
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17837 | (exit $ac_status); }; } && | |
17838 | { ac_try='test -s conftest.$ac_objext' | |
17839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17840 | (eval $ac_try) 2>&5 | |
17841 | ac_status=$? | |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17843 | (exit $ac_status); }; }; then | |
17844 | ac_hi=$ac_mid; break | |
17845 | else | |
17846 | echo "$as_me: failed program was:" >&5 | |
17847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17848 | ||
b4e70030 JB |
17849 | ac_lo=`expr $ac_mid + 1` |
17850 | if test $ac_lo -le $ac_mid; then | |
17851 | ac_lo= ac_hi= | |
17852 | break | |
17853 | fi | |
17854 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 17855 | fi |
4e8d927d DJ |
17856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17857 | done | |
17858 | else | |
17859 | echo "$as_me: failed program was:" >&5 | |
17860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17861 | ||
b4e70030 | 17862 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
17863 | /* confdefs.h. */ |
17864 | _ACEOF | |
17865 | cat confdefs.h >>conftest.$ac_ext | |
17866 | cat >>conftest.$ac_ext <<_ACEOF | |
17867 | /* end confdefs.h. */ | |
17868 | $ac_includes_default | |
4e8d927d DJ |
17869 | int |
17870 | main () | |
17871 | { | |
b4e70030 | 17872 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
17873 | test_array [0] = 0 |
17874 | ||
17875 | ; | |
17876 | return 0; | |
17877 | } | |
17878 | _ACEOF | |
17879 | rm -f conftest.$ac_objext | |
17880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17881 | (eval $ac_compile) 2>conftest.er1 | |
17882 | ac_status=$? | |
17883 | grep -v '^ *+' conftest.er1 >conftest.err | |
17884 | rm -f conftest.er1 | |
17885 | cat conftest.err >&5 | |
17886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17887 | (exit $ac_status); } && | |
b4e70030 JB |
17888 | { ac_try='test -z "$ac_c_werror_flag" |
17889 | || test ! -s conftest.err' | |
4e8d927d DJ |
17890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17891 | (eval $ac_try) 2>&5 | |
17892 | ac_status=$? | |
17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17894 | (exit $ac_status); }; } && | |
17895 | { ac_try='test -s conftest.$ac_objext' | |
17896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17897 | (eval $ac_try) 2>&5 | |
17898 | ac_status=$? | |
17899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17900 | (exit $ac_status); }; }; then | |
17901 | ac_hi=-1 ac_mid=-1 | |
17902 | while :; do | |
17903 | cat >conftest.$ac_ext <<_ACEOF | |
17904 | /* confdefs.h. */ | |
17905 | _ACEOF | |
17906 | cat confdefs.h >>conftest.$ac_ext | |
17907 | cat >>conftest.$ac_ext <<_ACEOF | |
17908 | /* end confdefs.h. */ | |
17909 | $ac_includes_default | |
4e8d927d DJ |
17910 | int |
17911 | main () | |
17912 | { | |
b4e70030 | 17913 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
17914 | test_array [0] = 0 |
17915 | ||
17916 | ; | |
17917 | return 0; | |
17918 | } | |
17919 | _ACEOF | |
17920 | rm -f conftest.$ac_objext | |
17921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17922 | (eval $ac_compile) 2>conftest.er1 | |
17923 | ac_status=$? | |
17924 | grep -v '^ *+' conftest.er1 >conftest.err | |
17925 | rm -f conftest.er1 | |
17926 | cat conftest.err >&5 | |
17927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17928 | (exit $ac_status); } && | |
b4e70030 JB |
17929 | { ac_try='test -z "$ac_c_werror_flag" |
17930 | || test ! -s conftest.err' | |
4e8d927d DJ |
17931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17932 | (eval $ac_try) 2>&5 | |
17933 | ac_status=$? | |
17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17935 | (exit $ac_status); }; } && | |
17936 | { ac_try='test -s conftest.$ac_objext' | |
17937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17938 | (eval $ac_try) 2>&5 | |
17939 | ac_status=$? | |
17940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17941 | (exit $ac_status); }; }; then | |
17942 | ac_lo=$ac_mid; break | |
17943 | else | |
17944 | echo "$as_me: failed program was:" >&5 | |
17945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17946 | ||
b4e70030 JB |
17947 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17948 | if test $ac_mid -le $ac_hi; then | |
17949 | ac_lo= ac_hi= | |
17950 | break | |
17951 | fi | |
17952 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 17953 | fi |
4e8d927d DJ |
17954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17955 | done | |
17956 | else | |
17957 | echo "$as_me: failed program was:" >&5 | |
17958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17959 | ||
b4e70030 | 17960 | ac_lo= ac_hi= |
4e8d927d | 17961 | fi |
4e8d927d DJ |
17962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17963 | fi | |
4e8d927d DJ |
17964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17965 | # Binary search between lo and hi bounds. | |
17966 | while test "x$ac_lo" != "x$ac_hi"; do | |
17967 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17968 | cat >conftest.$ac_ext <<_ACEOF | |
17969 | /* confdefs.h. */ | |
17970 | _ACEOF | |
17971 | cat confdefs.h >>conftest.$ac_ext | |
17972 | cat >>conftest.$ac_ext <<_ACEOF | |
17973 | /* end confdefs.h. */ | |
17974 | $ac_includes_default | |
4e8d927d DJ |
17975 | int |
17976 | main () | |
17977 | { | |
b4e70030 | 17978 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
17979 | test_array [0] = 0 |
17980 | ||
17981 | ; | |
17982 | return 0; | |
17983 | } | |
17984 | _ACEOF | |
17985 | rm -f conftest.$ac_objext | |
17986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17987 | (eval $ac_compile) 2>conftest.er1 | |
17988 | ac_status=$? | |
17989 | grep -v '^ *+' conftest.er1 >conftest.err | |
17990 | rm -f conftest.er1 | |
17991 | cat conftest.err >&5 | |
17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17993 | (exit $ac_status); } && | |
b4e70030 JB |
17994 | { ac_try='test -z "$ac_c_werror_flag" |
17995 | || test ! -s conftest.err' | |
4e8d927d DJ |
17996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17997 | (eval $ac_try) 2>&5 | |
17998 | ac_status=$? | |
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18000 | (exit $ac_status); }; } && | |
18001 | { ac_try='test -s conftest.$ac_objext' | |
18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18003 | (eval $ac_try) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); }; }; then | |
18007 | ac_hi=$ac_mid | |
18008 | else | |
18009 | echo "$as_me: failed program was:" >&5 | |
18010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18011 | ||
b4e70030 | 18012 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 18013 | fi |
4e8d927d DJ |
18014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18015 | done | |
18016 | case $ac_lo in | |
18017 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 18018 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 18019 | See \`config.log' for more details." >&5 |
b4e70030 | 18020 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 18021 | See \`config.log' for more details." >&2;} |
b4e70030 | 18022 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 18023 | esac |
b4e70030 JB |
18024 | else |
18025 | if test "$cross_compiling" = yes; then | |
18026 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
18027 | See \`config.log' for more details." >&5 | |
18028 | echo "$as_me: error: cannot run test program while cross compiling | |
18029 | See \`config.log' for more details." >&2;} | |
18030 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
18031 | else |
18032 | cat >conftest.$ac_ext <<_ACEOF | |
18033 | /* confdefs.h. */ | |
18034 | _ACEOF | |
18035 | cat confdefs.h >>conftest.$ac_ext | |
18036 | cat >>conftest.$ac_ext <<_ACEOF | |
18037 | /* end confdefs.h. */ | |
18038 | $ac_includes_default | |
b4e70030 JB |
18039 | long longval () { return (long) (sizeof (int)); } |
18040 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
18041 | #include <stdio.h> |
18042 | #include <stdlib.h> | |
18043 | int | |
18044 | main () | |
18045 | { | |
18046 | ||
18047 | FILE *f = fopen ("conftest.val", "w"); | |
18048 | if (! f) | |
b4e70030 JB |
18049 | exit (1); |
18050 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 18051 | { |
b4e70030 JB |
18052 | long i = longval (); |
18053 | if (i != ((long) (sizeof (int)))) | |
18054 | exit (1); | |
4e8d927d DJ |
18055 | fprintf (f, "%ld\n", i); |
18056 | } | |
18057 | else | |
18058 | { | |
b4e70030 JB |
18059 | unsigned long i = ulongval (); |
18060 | if (i != ((long) (sizeof (int)))) | |
18061 | exit (1); | |
4e8d927d DJ |
18062 | fprintf (f, "%lu\n", i); |
18063 | } | |
b4e70030 | 18064 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
18065 | |
18066 | ; | |
18067 | return 0; | |
18068 | } | |
18069 | _ACEOF | |
18070 | rm -f conftest$ac_exeext | |
18071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18072 | (eval $ac_link) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18077 | (eval $ac_try) 2>&5 | |
18078 | ac_status=$? | |
18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18080 | (exit $ac_status); }; }; then | |
18081 | ac_cv_sizeof_int=`cat conftest.val` | |
18082 | else | |
18083 | echo "$as_me: program exited with status $ac_status" >&5 | |
18084 | echo "$as_me: failed program was:" >&5 | |
18085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18086 | ||
18087 | ( exit $ac_status ) | |
b4e70030 | 18088 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 18089 | See \`config.log' for more details." >&5 |
b4e70030 | 18090 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 18091 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
18092 | { (exit 1); exit 1; }; } |
18093 | fi | |
18094 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 18095 | fi |
4e8d927d DJ |
18096 | fi |
18097 | rm -f conftest.val | |
18098 | else | |
18099 | ac_cv_sizeof_int=0 | |
18100 | fi | |
18101 | fi | |
b4e70030 JB |
18102 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
18103 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
18104 | cat >>confdefs.h <<_ACEOF |
18105 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18106 | _ACEOF | |
18107 | ||
18108 | ||
b4e70030 JB |
18109 | echo "$as_me:$LINENO: checking for short" >&5 |
18110 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
18111 | if test "${ac_cv_type_short+set}" = set; then |
18112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18113 | else | |
18114 | cat >conftest.$ac_ext <<_ACEOF | |
18115 | /* confdefs.h. */ | |
18116 | _ACEOF | |
18117 | cat confdefs.h >>conftest.$ac_ext | |
18118 | cat >>conftest.$ac_ext <<_ACEOF | |
18119 | /* end confdefs.h. */ | |
18120 | $ac_includes_default | |
4e8d927d DJ |
18121 | int |
18122 | main () | |
18123 | { | |
b4e70030 | 18124 | if ((short *) 0) |
4e8d927d | 18125 | return 0; |
b4e70030 | 18126 | if (sizeof (short)) |
4e8d927d DJ |
18127 | return 0; |
18128 | ; | |
18129 | return 0; | |
18130 | } | |
18131 | _ACEOF | |
18132 | rm -f conftest.$ac_objext | |
18133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18134 | (eval $ac_compile) 2>conftest.er1 | |
18135 | ac_status=$? | |
18136 | grep -v '^ *+' conftest.er1 >conftest.err | |
18137 | rm -f conftest.er1 | |
18138 | cat conftest.err >&5 | |
18139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18140 | (exit $ac_status); } && | |
b4e70030 JB |
18141 | { ac_try='test -z "$ac_c_werror_flag" |
18142 | || test ! -s conftest.err' | |
4e8d927d DJ |
18143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18144 | (eval $ac_try) 2>&5 | |
18145 | ac_status=$? | |
18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18147 | (exit $ac_status); }; } && | |
18148 | { ac_try='test -s conftest.$ac_objext' | |
18149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18150 | (eval $ac_try) 2>&5 | |
18151 | ac_status=$? | |
18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18153 | (exit $ac_status); }; }; then | |
18154 | ac_cv_type_short=yes | |
18155 | else | |
18156 | echo "$as_me: failed program was:" >&5 | |
18157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18158 | ||
b4e70030 | 18159 | ac_cv_type_short=no |
4e8d927d | 18160 | fi |
4e8d927d DJ |
18161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18162 | fi | |
b4e70030 JB |
18163 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
18164 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 18165 | |
b4e70030 JB |
18166 | echo "$as_me:$LINENO: checking size of short" >&5 |
18167 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
18168 | if test "${ac_cv_sizeof_short+set}" = set; then |
18169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18170 | else | |
18171 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 18172 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
18173 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
18174 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18175 | # This bug is HP SR number 8606223364. | |
18176 | if test "$cross_compiling" = yes; then | |
18177 | # Depending upon the size, compute the lo and hi bounds. | |
18178 | cat >conftest.$ac_ext <<_ACEOF | |
18179 | /* confdefs.h. */ | |
18180 | _ACEOF | |
18181 | cat confdefs.h >>conftest.$ac_ext | |
18182 | cat >>conftest.$ac_ext <<_ACEOF | |
18183 | /* end confdefs.h. */ | |
18184 | $ac_includes_default | |
4e8d927d DJ |
18185 | int |
18186 | main () | |
18187 | { | |
b4e70030 | 18188 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
18189 | test_array [0] = 0 |
18190 | ||
18191 | ; | |
18192 | return 0; | |
18193 | } | |
18194 | _ACEOF | |
18195 | rm -f conftest.$ac_objext | |
18196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18197 | (eval $ac_compile) 2>conftest.er1 | |
18198 | ac_status=$? | |
18199 | grep -v '^ *+' conftest.er1 >conftest.err | |
18200 | rm -f conftest.er1 | |
18201 | cat conftest.err >&5 | |
18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18203 | (exit $ac_status); } && | |
b4e70030 JB |
18204 | { ac_try='test -z "$ac_c_werror_flag" |
18205 | || test ! -s conftest.err' | |
4e8d927d DJ |
18206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18207 | (eval $ac_try) 2>&5 | |
18208 | ac_status=$? | |
18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18210 | (exit $ac_status); }; } && | |
18211 | { ac_try='test -s conftest.$ac_objext' | |
18212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18213 | (eval $ac_try) 2>&5 | |
18214 | ac_status=$? | |
18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18216 | (exit $ac_status); }; }; then | |
18217 | ac_lo=0 ac_mid=0 | |
18218 | while :; do | |
18219 | cat >conftest.$ac_ext <<_ACEOF | |
18220 | /* confdefs.h. */ | |
18221 | _ACEOF | |
18222 | cat confdefs.h >>conftest.$ac_ext | |
18223 | cat >>conftest.$ac_ext <<_ACEOF | |
18224 | /* end confdefs.h. */ | |
18225 | $ac_includes_default | |
4e8d927d DJ |
18226 | int |
18227 | main () | |
18228 | { | |
b4e70030 | 18229 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
18230 | test_array [0] = 0 |
18231 | ||
18232 | ; | |
18233 | return 0; | |
18234 | } | |
18235 | _ACEOF | |
18236 | rm -f conftest.$ac_objext | |
18237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18238 | (eval $ac_compile) 2>conftest.er1 | |
18239 | ac_status=$? | |
18240 | grep -v '^ *+' conftest.er1 >conftest.err | |
18241 | rm -f conftest.er1 | |
18242 | cat conftest.err >&5 | |
18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18244 | (exit $ac_status); } && | |
b4e70030 JB |
18245 | { ac_try='test -z "$ac_c_werror_flag" |
18246 | || test ! -s conftest.err' | |
4e8d927d DJ |
18247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18248 | (eval $ac_try) 2>&5 | |
18249 | ac_status=$? | |
18250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18251 | (exit $ac_status); }; } && | |
18252 | { ac_try='test -s conftest.$ac_objext' | |
18253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18254 | (eval $ac_try) 2>&5 | |
18255 | ac_status=$? | |
18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18257 | (exit $ac_status); }; }; then | |
18258 | ac_hi=$ac_mid; break | |
18259 | else | |
18260 | echo "$as_me: failed program was:" >&5 | |
18261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18262 | ||
b4e70030 JB |
18263 | ac_lo=`expr $ac_mid + 1` |
18264 | if test $ac_lo -le $ac_mid; then | |
18265 | ac_lo= ac_hi= | |
18266 | break | |
18267 | fi | |
18268 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 18269 | fi |
4e8d927d DJ |
18270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18271 | done | |
18272 | else | |
18273 | echo "$as_me: failed program was:" >&5 | |
18274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18275 | ||
b4e70030 | 18276 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
18277 | /* confdefs.h. */ |
18278 | _ACEOF | |
18279 | cat confdefs.h >>conftest.$ac_ext | |
18280 | cat >>conftest.$ac_ext <<_ACEOF | |
18281 | /* end confdefs.h. */ | |
18282 | $ac_includes_default | |
4e8d927d DJ |
18283 | int |
18284 | main () | |
18285 | { | |
b4e70030 | 18286 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
18287 | test_array [0] = 0 |
18288 | ||
18289 | ; | |
18290 | return 0; | |
18291 | } | |
18292 | _ACEOF | |
18293 | rm -f conftest.$ac_objext | |
18294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18295 | (eval $ac_compile) 2>conftest.er1 | |
18296 | ac_status=$? | |
18297 | grep -v '^ *+' conftest.er1 >conftest.err | |
18298 | rm -f conftest.er1 | |
18299 | cat conftest.err >&5 | |
18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18301 | (exit $ac_status); } && | |
b4e70030 JB |
18302 | { ac_try='test -z "$ac_c_werror_flag" |
18303 | || test ! -s conftest.err' | |
4e8d927d DJ |
18304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18305 | (eval $ac_try) 2>&5 | |
18306 | ac_status=$? | |
18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18308 | (exit $ac_status); }; } && | |
18309 | { ac_try='test -s conftest.$ac_objext' | |
18310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18311 | (eval $ac_try) 2>&5 | |
18312 | ac_status=$? | |
18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18314 | (exit $ac_status); }; }; then | |
18315 | ac_hi=-1 ac_mid=-1 | |
18316 | while :; do | |
18317 | cat >conftest.$ac_ext <<_ACEOF | |
18318 | /* confdefs.h. */ | |
18319 | _ACEOF | |
18320 | cat confdefs.h >>conftest.$ac_ext | |
18321 | cat >>conftest.$ac_ext <<_ACEOF | |
18322 | /* end confdefs.h. */ | |
18323 | $ac_includes_default | |
4e8d927d DJ |
18324 | int |
18325 | main () | |
18326 | { | |
b4e70030 | 18327 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
18328 | test_array [0] = 0 |
18329 | ||
18330 | ; | |
18331 | return 0; | |
18332 | } | |
18333 | _ACEOF | |
18334 | rm -f conftest.$ac_objext | |
18335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18336 | (eval $ac_compile) 2>conftest.er1 | |
18337 | ac_status=$? | |
18338 | grep -v '^ *+' conftest.er1 >conftest.err | |
18339 | rm -f conftest.er1 | |
18340 | cat conftest.err >&5 | |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18342 | (exit $ac_status); } && | |
b4e70030 JB |
18343 | { ac_try='test -z "$ac_c_werror_flag" |
18344 | || test ! -s conftest.err' | |
4e8d927d DJ |
18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18346 | (eval $ac_try) 2>&5 | |
18347 | ac_status=$? | |
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18349 | (exit $ac_status); }; } && | |
18350 | { ac_try='test -s conftest.$ac_objext' | |
18351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18352 | (eval $ac_try) 2>&5 | |
18353 | ac_status=$? | |
18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18355 | (exit $ac_status); }; }; then | |
18356 | ac_lo=$ac_mid; break | |
18357 | else | |
18358 | echo "$as_me: failed program was:" >&5 | |
18359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18360 | ||
b4e70030 JB |
18361 | ac_hi=`expr '(' $ac_mid ')' - 1` |
18362 | if test $ac_mid -le $ac_hi; then | |
18363 | ac_lo= ac_hi= | |
18364 | break | |
18365 | fi | |
18366 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 18367 | fi |
4e8d927d DJ |
18368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18369 | done | |
18370 | else | |
18371 | echo "$as_me: failed program was:" >&5 | |
18372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18373 | ||
b4e70030 | 18374 | ac_lo= ac_hi= |
4e8d927d | 18375 | fi |
4e8d927d DJ |
18376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18377 | fi | |
4e8d927d DJ |
18378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18379 | # Binary search between lo and hi bounds. | |
18380 | while test "x$ac_lo" != "x$ac_hi"; do | |
18381 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18382 | cat >conftest.$ac_ext <<_ACEOF | |
18383 | /* confdefs.h. */ | |
18384 | _ACEOF | |
18385 | cat confdefs.h >>conftest.$ac_ext | |
18386 | cat >>conftest.$ac_ext <<_ACEOF | |
18387 | /* end confdefs.h. */ | |
18388 | $ac_includes_default | |
4e8d927d DJ |
18389 | int |
18390 | main () | |
18391 | { | |
b4e70030 | 18392 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
18393 | test_array [0] = 0 |
18394 | ||
18395 | ; | |
18396 | return 0; | |
18397 | } | |
18398 | _ACEOF | |
18399 | rm -f conftest.$ac_objext | |
18400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18401 | (eval $ac_compile) 2>conftest.er1 | |
18402 | ac_status=$? | |
18403 | grep -v '^ *+' conftest.er1 >conftest.err | |
18404 | rm -f conftest.er1 | |
18405 | cat conftest.err >&5 | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); } && | |
b4e70030 JB |
18408 | { ac_try='test -z "$ac_c_werror_flag" |
18409 | || test ! -s conftest.err' | |
4e8d927d DJ |
18410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18411 | (eval $ac_try) 2>&5 | |
18412 | ac_status=$? | |
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18414 | (exit $ac_status); }; } && | |
18415 | { ac_try='test -s conftest.$ac_objext' | |
18416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18417 | (eval $ac_try) 2>&5 | |
18418 | ac_status=$? | |
18419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18420 | (exit $ac_status); }; }; then | |
18421 | ac_hi=$ac_mid | |
18422 | else | |
18423 | echo "$as_me: failed program was:" >&5 | |
18424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18425 | ||
b4e70030 | 18426 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 18427 | fi |
4e8d927d DJ |
18428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18429 | done | |
18430 | case $ac_lo in | |
18431 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 18432 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 18433 | See \`config.log' for more details." >&5 |
b4e70030 | 18434 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 18435 | See \`config.log' for more details." >&2;} |
b4e70030 | 18436 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 18437 | esac |
b4e70030 JB |
18438 | else |
18439 | if test "$cross_compiling" = yes; then | |
18440 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
18441 | See \`config.log' for more details." >&5 | |
18442 | echo "$as_me: error: cannot run test program while cross compiling | |
18443 | See \`config.log' for more details." >&2;} | |
18444 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
18445 | else |
18446 | cat >conftest.$ac_ext <<_ACEOF | |
18447 | /* confdefs.h. */ | |
18448 | _ACEOF | |
18449 | cat confdefs.h >>conftest.$ac_ext | |
18450 | cat >>conftest.$ac_ext <<_ACEOF | |
18451 | /* end confdefs.h. */ | |
18452 | $ac_includes_default | |
b4e70030 JB |
18453 | long longval () { return (long) (sizeof (short)); } |
18454 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
18455 | #include <stdio.h> |
18456 | #include <stdlib.h> | |
18457 | int | |
18458 | main () | |
18459 | { | |
18460 | ||
18461 | FILE *f = fopen ("conftest.val", "w"); | |
18462 | if (! f) | |
b4e70030 JB |
18463 | exit (1); |
18464 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 18465 | { |
b4e70030 JB |
18466 | long i = longval (); |
18467 | if (i != ((long) (sizeof (short)))) | |
18468 | exit (1); | |
4e8d927d DJ |
18469 | fprintf (f, "%ld\n", i); |
18470 | } | |
18471 | else | |
18472 | { | |
b4e70030 JB |
18473 | unsigned long i = ulongval (); |
18474 | if (i != ((long) (sizeof (short)))) | |
18475 | exit (1); | |
4e8d927d DJ |
18476 | fprintf (f, "%lu\n", i); |
18477 | } | |
b4e70030 | 18478 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
18479 | |
18480 | ; | |
18481 | return 0; | |
18482 | } | |
18483 | _ACEOF | |
18484 | rm -f conftest$ac_exeext | |
18485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18486 | (eval $ac_link) 2>&5 | |
18487 | ac_status=$? | |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18491 | (eval $ac_try) 2>&5 | |
18492 | ac_status=$? | |
18493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18494 | (exit $ac_status); }; }; then | |
18495 | ac_cv_sizeof_short=`cat conftest.val` | |
18496 | else | |
18497 | echo "$as_me: program exited with status $ac_status" >&5 | |
18498 | echo "$as_me: failed program was:" >&5 | |
18499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18500 | ||
18501 | ( exit $ac_status ) | |
b4e70030 | 18502 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 18503 | See \`config.log' for more details." >&5 |
b4e70030 | 18504 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 18505 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
18506 | { (exit 1); exit 1; }; } |
18507 | fi | |
18508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 18509 | fi |
4e8d927d DJ |
18510 | fi |
18511 | rm -f conftest.val | |
18512 | else | |
18513 | ac_cv_sizeof_short=0 | |
18514 | fi | |
18515 | fi | |
b4e70030 JB |
18516 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
18517 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
18518 | cat >>confdefs.h <<_ACEOF |
18519 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18520 | _ACEOF | |
18521 | ||
18522 | ||
b4e70030 JB |
18523 | echo "$as_me:$LINENO: checking for char" >&5 |
18524 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
18525 | if test "${ac_cv_type_char+set}" = set; then |
18526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18527 | else | |
18528 | cat >conftest.$ac_ext <<_ACEOF | |
18529 | /* confdefs.h. */ | |
18530 | _ACEOF | |
18531 | cat confdefs.h >>conftest.$ac_ext | |
18532 | cat >>conftest.$ac_ext <<_ACEOF | |
18533 | /* end confdefs.h. */ | |
18534 | $ac_includes_default | |
4e8d927d DJ |
18535 | int |
18536 | main () | |
18537 | { | |
b4e70030 | 18538 | if ((char *) 0) |
4e8d927d | 18539 | return 0; |
b4e70030 | 18540 | if (sizeof (char)) |
4e8d927d DJ |
18541 | return 0; |
18542 | ; | |
18543 | return 0; | |
18544 | } | |
18545 | _ACEOF | |
18546 | rm -f conftest.$ac_objext | |
18547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18548 | (eval $ac_compile) 2>conftest.er1 | |
18549 | ac_status=$? | |
18550 | grep -v '^ *+' conftest.er1 >conftest.err | |
18551 | rm -f conftest.er1 | |
18552 | cat conftest.err >&5 | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); } && | |
b4e70030 JB |
18555 | { ac_try='test -z "$ac_c_werror_flag" |
18556 | || test ! -s conftest.err' | |
4e8d927d DJ |
18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18558 | (eval $ac_try) 2>&5 | |
18559 | ac_status=$? | |
18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18561 | (exit $ac_status); }; } && | |
18562 | { ac_try='test -s conftest.$ac_objext' | |
18563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18564 | (eval $ac_try) 2>&5 | |
18565 | ac_status=$? | |
18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18567 | (exit $ac_status); }; }; then | |
18568 | ac_cv_type_char=yes | |
18569 | else | |
18570 | echo "$as_me: failed program was:" >&5 | |
18571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18572 | ||
b4e70030 | 18573 | ac_cv_type_char=no |
4e8d927d | 18574 | fi |
4e8d927d DJ |
18575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18576 | fi | |
b4e70030 JB |
18577 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
18578 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 18579 | |
b4e70030 JB |
18580 | echo "$as_me:$LINENO: checking size of char" >&5 |
18581 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
18582 | if test "${ac_cv_sizeof_char+set}" = set; then |
18583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18584 | else | |
18585 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 18586 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
18587 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
18588 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18589 | # This bug is HP SR number 8606223364. | |
18590 | if test "$cross_compiling" = yes; then | |
18591 | # Depending upon the size, compute the lo and hi bounds. | |
18592 | cat >conftest.$ac_ext <<_ACEOF | |
18593 | /* confdefs.h. */ | |
18594 | _ACEOF | |
18595 | cat confdefs.h >>conftest.$ac_ext | |
18596 | cat >>conftest.$ac_ext <<_ACEOF | |
18597 | /* end confdefs.h. */ | |
18598 | $ac_includes_default | |
4e8d927d DJ |
18599 | int |
18600 | main () | |
18601 | { | |
b4e70030 | 18602 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
18603 | test_array [0] = 0 |
18604 | ||
18605 | ; | |
18606 | return 0; | |
18607 | } | |
18608 | _ACEOF | |
18609 | rm -f conftest.$ac_objext | |
18610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18611 | (eval $ac_compile) 2>conftest.er1 | |
18612 | ac_status=$? | |
18613 | grep -v '^ *+' conftest.er1 >conftest.err | |
18614 | rm -f conftest.er1 | |
18615 | cat conftest.err >&5 | |
18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18617 | (exit $ac_status); } && | |
b4e70030 JB |
18618 | { ac_try='test -z "$ac_c_werror_flag" |
18619 | || test ! -s conftest.err' | |
4e8d927d DJ |
18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18621 | (eval $ac_try) 2>&5 | |
18622 | ac_status=$? | |
18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18624 | (exit $ac_status); }; } && | |
18625 | { ac_try='test -s conftest.$ac_objext' | |
18626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18627 | (eval $ac_try) 2>&5 | |
18628 | ac_status=$? | |
18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18630 | (exit $ac_status); }; }; then | |
18631 | ac_lo=0 ac_mid=0 | |
18632 | while :; do | |
18633 | cat >conftest.$ac_ext <<_ACEOF | |
18634 | /* confdefs.h. */ | |
18635 | _ACEOF | |
18636 | cat confdefs.h >>conftest.$ac_ext | |
18637 | cat >>conftest.$ac_ext <<_ACEOF | |
18638 | /* end confdefs.h. */ | |
18639 | $ac_includes_default | |
4e8d927d DJ |
18640 | int |
18641 | main () | |
18642 | { | |
b4e70030 | 18643 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
18644 | test_array [0] = 0 |
18645 | ||
18646 | ; | |
18647 | return 0; | |
18648 | } | |
18649 | _ACEOF | |
18650 | rm -f conftest.$ac_objext | |
18651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18652 | (eval $ac_compile) 2>conftest.er1 | |
18653 | ac_status=$? | |
18654 | grep -v '^ *+' conftest.er1 >conftest.err | |
18655 | rm -f conftest.er1 | |
18656 | cat conftest.err >&5 | |
18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18658 | (exit $ac_status); } && | |
b4e70030 JB |
18659 | { ac_try='test -z "$ac_c_werror_flag" |
18660 | || test ! -s conftest.err' | |
4e8d927d DJ |
18661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18662 | (eval $ac_try) 2>&5 | |
18663 | ac_status=$? | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); }; } && | |
18666 | { ac_try='test -s conftest.$ac_objext' | |
18667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18668 | (eval $ac_try) 2>&5 | |
18669 | ac_status=$? | |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18671 | (exit $ac_status); }; }; then | |
18672 | ac_hi=$ac_mid; break | |
18673 | else | |
18674 | echo "$as_me: failed program was:" >&5 | |
18675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18676 | ||
b4e70030 JB |
18677 | ac_lo=`expr $ac_mid + 1` |
18678 | if test $ac_lo -le $ac_mid; then | |
18679 | ac_lo= ac_hi= | |
18680 | break | |
18681 | fi | |
18682 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 18683 | fi |
4e8d927d DJ |
18684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18685 | done | |
18686 | else | |
18687 | echo "$as_me: failed program was:" >&5 | |
18688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18689 | ||
b4e70030 | 18690 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
18691 | /* confdefs.h. */ |
18692 | _ACEOF | |
18693 | cat confdefs.h >>conftest.$ac_ext | |
18694 | cat >>conftest.$ac_ext <<_ACEOF | |
18695 | /* end confdefs.h. */ | |
18696 | $ac_includes_default | |
4e8d927d DJ |
18697 | int |
18698 | main () | |
18699 | { | |
b4e70030 | 18700 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
18701 | test_array [0] = 0 |
18702 | ||
18703 | ; | |
18704 | return 0; | |
18705 | } | |
18706 | _ACEOF | |
18707 | rm -f conftest.$ac_objext | |
18708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18709 | (eval $ac_compile) 2>conftest.er1 | |
18710 | ac_status=$? | |
18711 | grep -v '^ *+' conftest.er1 >conftest.err | |
18712 | rm -f conftest.er1 | |
18713 | cat conftest.err >&5 | |
18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18715 | (exit $ac_status); } && | |
b4e70030 JB |
18716 | { ac_try='test -z "$ac_c_werror_flag" |
18717 | || test ! -s conftest.err' | |
4e8d927d DJ |
18718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18719 | (eval $ac_try) 2>&5 | |
18720 | ac_status=$? | |
18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18722 | (exit $ac_status); }; } && | |
18723 | { ac_try='test -s conftest.$ac_objext' | |
18724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18725 | (eval $ac_try) 2>&5 | |
18726 | ac_status=$? | |
18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18728 | (exit $ac_status); }; }; then | |
18729 | ac_hi=-1 ac_mid=-1 | |
18730 | while :; do | |
18731 | cat >conftest.$ac_ext <<_ACEOF | |
18732 | /* confdefs.h. */ | |
18733 | _ACEOF | |
18734 | cat confdefs.h >>conftest.$ac_ext | |
18735 | cat >>conftest.$ac_ext <<_ACEOF | |
18736 | /* end confdefs.h. */ | |
18737 | $ac_includes_default | |
4e8d927d DJ |
18738 | int |
18739 | main () | |
18740 | { | |
b4e70030 | 18741 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
18742 | test_array [0] = 0 |
18743 | ||
18744 | ; | |
18745 | return 0; | |
18746 | } | |
18747 | _ACEOF | |
18748 | rm -f conftest.$ac_objext | |
18749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18750 | (eval $ac_compile) 2>conftest.er1 | |
18751 | ac_status=$? | |
18752 | grep -v '^ *+' conftest.er1 >conftest.err | |
18753 | rm -f conftest.er1 | |
18754 | cat conftest.err >&5 | |
18755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18756 | (exit $ac_status); } && | |
b4e70030 JB |
18757 | { ac_try='test -z "$ac_c_werror_flag" |
18758 | || test ! -s conftest.err' | |
4e8d927d DJ |
18759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18760 | (eval $ac_try) 2>&5 | |
18761 | ac_status=$? | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); }; } && | |
18764 | { ac_try='test -s conftest.$ac_objext' | |
18765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18766 | (eval $ac_try) 2>&5 | |
18767 | ac_status=$? | |
18768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18769 | (exit $ac_status); }; }; then | |
18770 | ac_lo=$ac_mid; break | |
18771 | else | |
18772 | echo "$as_me: failed program was:" >&5 | |
18773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18774 | ||
b4e70030 JB |
18775 | ac_hi=`expr '(' $ac_mid ')' - 1` |
18776 | if test $ac_mid -le $ac_hi; then | |
18777 | ac_lo= ac_hi= | |
18778 | break | |
18779 | fi | |
18780 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 18781 | fi |
4e8d927d DJ |
18782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18783 | done | |
18784 | else | |
18785 | echo "$as_me: failed program was:" >&5 | |
18786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18787 | ||
b4e70030 | 18788 | ac_lo= ac_hi= |
4e8d927d | 18789 | fi |
4e8d927d DJ |
18790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18791 | fi | |
4e8d927d DJ |
18792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18793 | # Binary search between lo and hi bounds. | |
18794 | while test "x$ac_lo" != "x$ac_hi"; do | |
18795 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18796 | cat >conftest.$ac_ext <<_ACEOF | |
18797 | /* confdefs.h. */ | |
18798 | _ACEOF | |
18799 | cat confdefs.h >>conftest.$ac_ext | |
18800 | cat >>conftest.$ac_ext <<_ACEOF | |
18801 | /* end confdefs.h. */ | |
18802 | $ac_includes_default | |
4e8d927d DJ |
18803 | int |
18804 | main () | |
18805 | { | |
b4e70030 | 18806 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
18807 | test_array [0] = 0 |
18808 | ||
18809 | ; | |
18810 | return 0; | |
18811 | } | |
18812 | _ACEOF | |
18813 | rm -f conftest.$ac_objext | |
18814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18815 | (eval $ac_compile) 2>conftest.er1 | |
18816 | ac_status=$? | |
18817 | grep -v '^ *+' conftest.er1 >conftest.err | |
18818 | rm -f conftest.er1 | |
18819 | cat conftest.err >&5 | |
18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18821 | (exit $ac_status); } && | |
b4e70030 JB |
18822 | { ac_try='test -z "$ac_c_werror_flag" |
18823 | || test ! -s conftest.err' | |
4e8d927d DJ |
18824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18825 | (eval $ac_try) 2>&5 | |
18826 | ac_status=$? | |
18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18828 | (exit $ac_status); }; } && | |
18829 | { ac_try='test -s conftest.$ac_objext' | |
18830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18831 | (eval $ac_try) 2>&5 | |
18832 | ac_status=$? | |
18833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18834 | (exit $ac_status); }; }; then | |
18835 | ac_hi=$ac_mid | |
18836 | else | |
18837 | echo "$as_me: failed program was:" >&5 | |
18838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18839 | ||
b4e70030 | 18840 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 18841 | fi |
4e8d927d DJ |
18842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18843 | done | |
18844 | case $ac_lo in | |
18845 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 18846 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 18847 | See \`config.log' for more details." >&5 |
b4e70030 | 18848 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 18849 | See \`config.log' for more details." >&2;} |
b4e70030 | 18850 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 18851 | esac |
b4e70030 JB |
18852 | else |
18853 | if test "$cross_compiling" = yes; then | |
18854 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
18855 | See \`config.log' for more details." >&5 | |
18856 | echo "$as_me: error: cannot run test program while cross compiling | |
18857 | See \`config.log' for more details." >&2;} | |
18858 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
18859 | else |
18860 | cat >conftest.$ac_ext <<_ACEOF | |
18861 | /* confdefs.h. */ | |
18862 | _ACEOF | |
18863 | cat confdefs.h >>conftest.$ac_ext | |
18864 | cat >>conftest.$ac_ext <<_ACEOF | |
18865 | /* end confdefs.h. */ | |
18866 | $ac_includes_default | |
b4e70030 JB |
18867 | long longval () { return (long) (sizeof (char)); } |
18868 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
18869 | #include <stdio.h> |
18870 | #include <stdlib.h> | |
18871 | int | |
18872 | main () | |
18873 | { | |
18874 | ||
18875 | FILE *f = fopen ("conftest.val", "w"); | |
18876 | if (! f) | |
b4e70030 JB |
18877 | exit (1); |
18878 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 18879 | { |
b4e70030 JB |
18880 | long i = longval (); |
18881 | if (i != ((long) (sizeof (char)))) | |
18882 | exit (1); | |
4e8d927d DJ |
18883 | fprintf (f, "%ld\n", i); |
18884 | } | |
18885 | else | |
18886 | { | |
b4e70030 JB |
18887 | unsigned long i = ulongval (); |
18888 | if (i != ((long) (sizeof (char)))) | |
18889 | exit (1); | |
4e8d927d DJ |
18890 | fprintf (f, "%lu\n", i); |
18891 | } | |
b4e70030 | 18892 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
18893 | |
18894 | ; | |
18895 | return 0; | |
18896 | } | |
18897 | _ACEOF | |
18898 | rm -f conftest$ac_exeext | |
18899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18900 | (eval $ac_link) 2>&5 | |
18901 | ac_status=$? | |
18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18905 | (eval $ac_try) 2>&5 | |
18906 | ac_status=$? | |
18907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18908 | (exit $ac_status); }; }; then | |
18909 | ac_cv_sizeof_char=`cat conftest.val` | |
18910 | else | |
18911 | echo "$as_me: program exited with status $ac_status" >&5 | |
18912 | echo "$as_me: failed program was:" >&5 | |
18913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18914 | ||
18915 | ( exit $ac_status ) | |
b4e70030 | 18916 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 18917 | See \`config.log' for more details." >&5 |
b4e70030 | 18918 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 18919 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
18920 | { (exit 1); exit 1; }; } |
18921 | fi | |
18922 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 18923 | fi |
4e8d927d DJ |
18924 | fi |
18925 | rm -f conftest.val | |
18926 | else | |
18927 | ac_cv_sizeof_char=0 | |
18928 | fi | |
18929 | fi | |
b4e70030 JB |
18930 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
18931 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
18932 | cat >>confdefs.h <<_ACEOF |
18933 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
18934 | _ACEOF | |
18935 | ||
18936 | ||
18937 | ||
b4e70030 JB |
18938 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
18939 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
18940 | case "$ac_cv_sizeof_char" in |
18941 | 1) acx_cv_type_int8_t=char ;; | |
18942 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
18943 | echo "$as_me: error: no 8-bit type" >&2;} | |
18944 | { (exit please report a bug); exit please report a bug; }; } | |
18945 | esac | |
b4e70030 JB |
18946 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
18947 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 18948 | |
b4e70030 JB |
18949 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
18950 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
18951 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
18952 | 2:*) acx_cv_type_int16_t=int ;; | |
18953 | *:2) acx_cv_type_int16_t=short ;; | |
18954 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
18955 | echo "$as_me: error: no 16-bit type" >&2;} | |
18956 | { (exit please report a bug); exit please report a bug; }; } | |
18957 | esac | |
b4e70030 JB |
18958 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
18959 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 18960 | |
b4e70030 JB |
18961 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
18962 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
18963 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
18964 | 4:*) acx_cv_type_int32_t=int ;; | |
18965 | *:4) acx_cv_type_int32_t=long ;; | |
18966 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
18967 | echo "$as_me: error: no 32-bit type" >&2;} | |
18968 | { (exit please report a bug); exit please report a bug; }; } | |
18969 | esac | |
b4e70030 JB |
18970 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
18971 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
18972 | fi |
18973 | ||
18974 | # These tests are here to make the output prettier | |
18975 | ||
18976 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
18977 | case "$ac_cv_sizeof_long" in | |
18978 | 8) acx_cv_type_int64_t=long ;; | |
18979 | esac | |
b4e70030 JB |
18980 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
18981 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
18982 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
18983 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
18984 | fi |
18985 | ||
18986 | # Now we can use the above types | |
18987 | ||
18988 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
18989 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
18990 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
18991 | case $ac_cv_sizeof_void_p in |
18992 | 2) acx_cv_type_intptr_t=int16_t ;; | |
18993 | 4) acx_cv_type_intptr_t=int32_t ;; | |
18994 | 8) acx_cv_type_intptr_t=int64_t ;; | |
18995 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
18996 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
18997 | { (exit please report a bug); exit please report a bug; }; } | |
18998 | esac | |
b4e70030 JB |
18999 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
19000 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
19001 | fi |
19002 | ||
19003 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 19004 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
19005 | |
19006 | ||
19007 | ||
19008 | ||
19009 | # ------------------------- # | |
19010 | # Checks for declarations. # | |
19011 | # ------------------------- # | |
19012 | ||
b4e70030 JB |
19013 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
19014 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19015 | if test "${ac_cv_have_decl_free+set}" = set; then |
19016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19017 | else | |
19018 | cat >conftest.$ac_ext <<_ACEOF | |
19019 | /* confdefs.h. */ | |
19020 | _ACEOF | |
19021 | cat confdefs.h >>conftest.$ac_ext | |
19022 | cat >>conftest.$ac_ext <<_ACEOF | |
19023 | /* end confdefs.h. */ | |
19024 | $ac_includes_default | |
19025 | int | |
19026 | main () | |
19027 | { | |
19028 | #ifndef free | |
19029 | char *p = (char *) free; | |
4e8d927d DJ |
19030 | #endif |
19031 | ||
19032 | ; | |
19033 | return 0; | |
19034 | } | |
19035 | _ACEOF | |
19036 | rm -f conftest.$ac_objext | |
19037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19038 | (eval $ac_compile) 2>conftest.er1 | |
19039 | ac_status=$? | |
19040 | grep -v '^ *+' conftest.er1 >conftest.err | |
19041 | rm -f conftest.er1 | |
19042 | cat conftest.err >&5 | |
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19044 | (exit $ac_status); } && | |
b4e70030 JB |
19045 | { ac_try='test -z "$ac_c_werror_flag" |
19046 | || test ! -s conftest.err' | |
4e8d927d DJ |
19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19048 | (eval $ac_try) 2>&5 | |
19049 | ac_status=$? | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); }; } && | |
19052 | { ac_try='test -s conftest.$ac_objext' | |
19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19054 | (eval $ac_try) 2>&5 | |
19055 | ac_status=$? | |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; }; then | |
19058 | ac_cv_have_decl_free=yes | |
19059 | else | |
19060 | echo "$as_me: failed program was:" >&5 | |
19061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19062 | ||
b4e70030 | 19063 | ac_cv_have_decl_free=no |
4e8d927d | 19064 | fi |
4e8d927d DJ |
19065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19066 | fi | |
b4e70030 JB |
19067 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
19068 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
19069 | if test $ac_cv_have_decl_free = yes; then |
19070 | ||
19071 | cat >>confdefs.h <<_ACEOF | |
19072 | #define HAVE_DECL_FREE 1 | |
19073 | _ACEOF | |
19074 | ||
19075 | ||
19076 | else | |
19077 | cat >>confdefs.h <<_ACEOF | |
19078 | #define HAVE_DECL_FREE 0 | |
19079 | _ACEOF | |
19080 | ||
19081 | ||
19082 | fi | |
b4e70030 JB |
19083 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
19084 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19085 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
19086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19087 | else | |
19088 | cat >conftest.$ac_ext <<_ACEOF | |
19089 | /* confdefs.h. */ | |
19090 | _ACEOF | |
19091 | cat confdefs.h >>conftest.$ac_ext | |
19092 | cat >>conftest.$ac_ext <<_ACEOF | |
19093 | /* end confdefs.h. */ | |
19094 | $ac_includes_default | |
19095 | int | |
19096 | main () | |
19097 | { | |
19098 | #ifndef malloc | |
19099 | char *p = (char *) malloc; | |
4e8d927d DJ |
19100 | #endif |
19101 | ||
19102 | ; | |
19103 | return 0; | |
19104 | } | |
19105 | _ACEOF | |
19106 | rm -f conftest.$ac_objext | |
19107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19108 | (eval $ac_compile) 2>conftest.er1 | |
19109 | ac_status=$? | |
19110 | grep -v '^ *+' conftest.er1 >conftest.err | |
19111 | rm -f conftest.er1 | |
19112 | cat conftest.err >&5 | |
19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19114 | (exit $ac_status); } && | |
b4e70030 JB |
19115 | { ac_try='test -z "$ac_c_werror_flag" |
19116 | || test ! -s conftest.err' | |
4e8d927d DJ |
19117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19118 | (eval $ac_try) 2>&5 | |
19119 | ac_status=$? | |
19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19121 | (exit $ac_status); }; } && | |
19122 | { ac_try='test -s conftest.$ac_objext' | |
19123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19124 | (eval $ac_try) 2>&5 | |
19125 | ac_status=$? | |
19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19127 | (exit $ac_status); }; }; then | |
19128 | ac_cv_have_decl_malloc=yes | |
19129 | else | |
19130 | echo "$as_me: failed program was:" >&5 | |
19131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19132 | ||
b4e70030 | 19133 | ac_cv_have_decl_malloc=no |
4e8d927d | 19134 | fi |
4e8d927d DJ |
19135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19136 | fi | |
b4e70030 JB |
19137 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
19138 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
19139 | if test $ac_cv_have_decl_malloc = yes; then |
19140 | ||
19141 | cat >>confdefs.h <<_ACEOF | |
19142 | #define HAVE_DECL_MALLOC 1 | |
19143 | _ACEOF | |
19144 | ||
19145 | ||
19146 | else | |
19147 | cat >>confdefs.h <<_ACEOF | |
19148 | #define HAVE_DECL_MALLOC 0 | |
19149 | _ACEOF | |
19150 | ||
19151 | ||
19152 | fi | |
b4e70030 JB |
19153 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
19154 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19155 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
19156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19157 | else | |
19158 | cat >conftest.$ac_ext <<_ACEOF | |
19159 | /* confdefs.h. */ | |
19160 | _ACEOF | |
19161 | cat confdefs.h >>conftest.$ac_ext | |
19162 | cat >>conftest.$ac_ext <<_ACEOF | |
19163 | /* end confdefs.h. */ | |
19164 | $ac_includes_default | |
19165 | int | |
19166 | main () | |
19167 | { | |
19168 | #ifndef realloc | |
19169 | char *p = (char *) realloc; | |
4e8d927d DJ |
19170 | #endif |
19171 | ||
19172 | ; | |
19173 | return 0; | |
19174 | } | |
19175 | _ACEOF | |
19176 | rm -f conftest.$ac_objext | |
19177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19178 | (eval $ac_compile) 2>conftest.er1 | |
19179 | ac_status=$? | |
19180 | grep -v '^ *+' conftest.er1 >conftest.err | |
19181 | rm -f conftest.er1 | |
19182 | cat conftest.err >&5 | |
19183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19184 | (exit $ac_status); } && | |
b4e70030 JB |
19185 | { ac_try='test -z "$ac_c_werror_flag" |
19186 | || test ! -s conftest.err' | |
4e8d927d DJ |
19187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19188 | (eval $ac_try) 2>&5 | |
19189 | ac_status=$? | |
19190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19191 | (exit $ac_status); }; } && | |
19192 | { ac_try='test -s conftest.$ac_objext' | |
19193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19194 | (eval $ac_try) 2>&5 | |
19195 | ac_status=$? | |
19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19197 | (exit $ac_status); }; }; then | |
19198 | ac_cv_have_decl_realloc=yes | |
19199 | else | |
19200 | echo "$as_me: failed program was:" >&5 | |
19201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19202 | ||
b4e70030 | 19203 | ac_cv_have_decl_realloc=no |
4e8d927d | 19204 | fi |
4e8d927d DJ |
19205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19206 | fi | |
b4e70030 JB |
19207 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
19208 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
19209 | if test $ac_cv_have_decl_realloc = yes; then |
19210 | ||
19211 | cat >>confdefs.h <<_ACEOF | |
19212 | #define HAVE_DECL_REALLOC 1 | |
19213 | _ACEOF | |
19214 | ||
19215 | ||
19216 | else | |
19217 | cat >>confdefs.h <<_ACEOF | |
19218 | #define HAVE_DECL_REALLOC 0 | |
19219 | _ACEOF | |
19220 | ||
19221 | ||
19222 | fi | |
19223 | ||
19224 | ||
b4e70030 JB |
19225 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
19226 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19227 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
19228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19229 | else | |
19230 | cat >conftest.$ac_ext <<_ACEOF | |
19231 | /* confdefs.h. */ | |
19232 | _ACEOF | |
19233 | cat confdefs.h >>conftest.$ac_ext | |
19234 | cat >>conftest.$ac_ext <<_ACEOF | |
19235 | /* end confdefs.h. */ | |
19236 | $ac_includes_default | |
19237 | int | |
19238 | main () | |
19239 | { | |
19240 | #ifndef strerror | |
19241 | char *p = (char *) strerror; | |
4e8d927d DJ |
19242 | #endif |
19243 | ||
19244 | ; | |
19245 | return 0; | |
19246 | } | |
19247 | _ACEOF | |
19248 | rm -f conftest.$ac_objext | |
19249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19250 | (eval $ac_compile) 2>conftest.er1 | |
19251 | ac_status=$? | |
19252 | grep -v '^ *+' conftest.er1 >conftest.err | |
19253 | rm -f conftest.er1 | |
19254 | cat conftest.err >&5 | |
19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19256 | (exit $ac_status); } && | |
b4e70030 JB |
19257 | { ac_try='test -z "$ac_c_werror_flag" |
19258 | || test ! -s conftest.err' | |
4e8d927d DJ |
19259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19260 | (eval $ac_try) 2>&5 | |
19261 | ac_status=$? | |
19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19263 | (exit $ac_status); }; } && | |
19264 | { ac_try='test -s conftest.$ac_objext' | |
19265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19266 | (eval $ac_try) 2>&5 | |
19267 | ac_status=$? | |
19268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19269 | (exit $ac_status); }; }; then | |
19270 | ac_cv_have_decl_strerror=yes | |
19271 | else | |
19272 | echo "$as_me: failed program was:" >&5 | |
19273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19274 | ||
b4e70030 | 19275 | ac_cv_have_decl_strerror=no |
4e8d927d | 19276 | fi |
4e8d927d DJ |
19277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19278 | fi | |
b4e70030 JB |
19279 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
19280 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
19281 | if test $ac_cv_have_decl_strerror = yes; then |
19282 | ||
19283 | cat >>confdefs.h <<_ACEOF | |
19284 | #define HAVE_DECL_STRERROR 1 | |
19285 | _ACEOF | |
19286 | ||
19287 | ||
19288 | else | |
19289 | cat >>confdefs.h <<_ACEOF | |
19290 | #define HAVE_DECL_STRERROR 0 | |
19291 | _ACEOF | |
19292 | ||
19293 | ||
19294 | fi | |
b4e70030 JB |
19295 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
19296 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19297 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
19298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19299 | else | |
19300 | cat >conftest.$ac_ext <<_ACEOF | |
19301 | /* confdefs.h. */ | |
19302 | _ACEOF | |
19303 | cat confdefs.h >>conftest.$ac_ext | |
19304 | cat >>conftest.$ac_ext <<_ACEOF | |
19305 | /* end confdefs.h. */ | |
19306 | $ac_includes_default | |
19307 | int | |
19308 | main () | |
19309 | { | |
19310 | #ifndef strstr | |
19311 | char *p = (char *) strstr; | |
4e8d927d DJ |
19312 | #endif |
19313 | ||
19314 | ; | |
19315 | return 0; | |
19316 | } | |
19317 | _ACEOF | |
19318 | rm -f conftest.$ac_objext | |
19319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19320 | (eval $ac_compile) 2>conftest.er1 | |
19321 | ac_status=$? | |
19322 | grep -v '^ *+' conftest.er1 >conftest.err | |
19323 | rm -f conftest.er1 | |
19324 | cat conftest.err >&5 | |
19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19326 | (exit $ac_status); } && | |
b4e70030 JB |
19327 | { ac_try='test -z "$ac_c_werror_flag" |
19328 | || test ! -s conftest.err' | |
4e8d927d DJ |
19329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19330 | (eval $ac_try) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); }; } && | |
19334 | { ac_try='test -s conftest.$ac_objext' | |
19335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19336 | (eval $ac_try) 2>&5 | |
19337 | ac_status=$? | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); }; }; then | |
19340 | ac_cv_have_decl_strstr=yes | |
19341 | else | |
19342 | echo "$as_me: failed program was:" >&5 | |
19343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19344 | ||
b4e70030 | 19345 | ac_cv_have_decl_strstr=no |
4e8d927d | 19346 | fi |
4e8d927d DJ |
19347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19348 | fi | |
b4e70030 JB |
19349 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
19350 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
19351 | if test $ac_cv_have_decl_strstr = yes; then |
19352 | ||
19353 | cat >>confdefs.h <<_ACEOF | |
19354 | #define HAVE_DECL_STRSTR 1 | |
19355 | _ACEOF | |
19356 | ||
19357 | ||
19358 | else | |
19359 | cat >>confdefs.h <<_ACEOF | |
19360 | #define HAVE_DECL_STRSTR 0 | |
19361 | _ACEOF | |
19362 | ||
19363 | ||
19364 | fi | |
19365 | ||
19366 | ||
b4e70030 JB |
19367 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
19368 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19369 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
19370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19371 | else | |
19372 | cat >conftest.$ac_ext <<_ACEOF | |
19373 | /* confdefs.h. */ | |
19374 | _ACEOF | |
19375 | cat confdefs.h >>conftest.$ac_ext | |
19376 | cat >>conftest.$ac_ext <<_ACEOF | |
19377 | /* end confdefs.h. */ | |
19378 | $ac_includes_default | |
19379 | int | |
19380 | main () | |
19381 | { | |
19382 | #ifndef getopt | |
19383 | char *p = (char *) getopt; | |
4e8d927d DJ |
19384 | #endif |
19385 | ||
19386 | ; | |
19387 | return 0; | |
19388 | } | |
19389 | _ACEOF | |
19390 | rm -f conftest.$ac_objext | |
19391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19392 | (eval $ac_compile) 2>conftest.er1 | |
19393 | ac_status=$? | |
19394 | grep -v '^ *+' conftest.er1 >conftest.err | |
19395 | rm -f conftest.er1 | |
19396 | cat conftest.err >&5 | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); } && | |
b4e70030 JB |
19399 | { ac_try='test -z "$ac_c_werror_flag" |
19400 | || test ! -s conftest.err' | |
4e8d927d DJ |
19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19402 | (eval $ac_try) 2>&5 | |
19403 | ac_status=$? | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); }; } && | |
19406 | { ac_try='test -s conftest.$ac_objext' | |
19407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19408 | (eval $ac_try) 2>&5 | |
19409 | ac_status=$? | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); }; }; then | |
19412 | ac_cv_have_decl_getopt=yes | |
19413 | else | |
19414 | echo "$as_me: failed program was:" >&5 | |
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19416 | ||
b4e70030 | 19417 | ac_cv_have_decl_getopt=no |
4e8d927d | 19418 | fi |
4e8d927d DJ |
19419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19420 | fi | |
b4e70030 JB |
19421 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
19422 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
19423 | if test $ac_cv_have_decl_getopt = yes; then |
19424 | ||
19425 | cat >>confdefs.h <<_ACEOF | |
19426 | #define HAVE_DECL_GETOPT 1 | |
19427 | _ACEOF | |
19428 | ||
19429 | ||
19430 | else | |
19431 | cat >>confdefs.h <<_ACEOF | |
19432 | #define HAVE_DECL_GETOPT 0 | |
19433 | _ACEOF | |
19434 | ||
19435 | ||
19436 | fi | |
b4e70030 JB |
19437 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
19438 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19439 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
19440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19441 | else | |
19442 | cat >conftest.$ac_ext <<_ACEOF | |
19443 | /* confdefs.h. */ | |
19444 | _ACEOF | |
19445 | cat confdefs.h >>conftest.$ac_ext | |
19446 | cat >>conftest.$ac_ext <<_ACEOF | |
19447 | /* end confdefs.h. */ | |
19448 | $ac_includes_default | |
19449 | int | |
19450 | main () | |
19451 | { | |
19452 | #ifndef snprintf | |
19453 | char *p = (char *) snprintf; | |
4e8d927d DJ |
19454 | #endif |
19455 | ||
19456 | ; | |
19457 | return 0; | |
19458 | } | |
19459 | _ACEOF | |
19460 | rm -f conftest.$ac_objext | |
19461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19462 | (eval $ac_compile) 2>conftest.er1 | |
19463 | ac_status=$? | |
19464 | grep -v '^ *+' conftest.er1 >conftest.err | |
19465 | rm -f conftest.er1 | |
19466 | cat conftest.err >&5 | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); } && | |
b4e70030 JB |
19469 | { ac_try='test -z "$ac_c_werror_flag" |
19470 | || test ! -s conftest.err' | |
4e8d927d DJ |
19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19472 | (eval $ac_try) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); }; } && | |
19476 | { ac_try='test -s conftest.$ac_objext' | |
19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; }; then | |
19482 | ac_cv_have_decl_snprintf=yes | |
19483 | else | |
19484 | echo "$as_me: failed program was:" >&5 | |
19485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19486 | ||
b4e70030 | 19487 | ac_cv_have_decl_snprintf=no |
4e8d927d | 19488 | fi |
4e8d927d DJ |
19489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19490 | fi | |
b4e70030 JB |
19491 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
19492 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
19493 | if test $ac_cv_have_decl_snprintf = yes; then |
19494 | ||
19495 | cat >>confdefs.h <<_ACEOF | |
19496 | #define HAVE_DECL_SNPRINTF 1 | |
19497 | _ACEOF | |
19498 | ||
19499 | ||
19500 | else | |
19501 | cat >>confdefs.h <<_ACEOF | |
19502 | #define HAVE_DECL_SNPRINTF 0 | |
19503 | _ACEOF | |
19504 | ||
19505 | ||
19506 | fi | |
b4e70030 JB |
19507 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
19508 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
19509 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
19510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19511 | else | |
19512 | cat >conftest.$ac_ext <<_ACEOF | |
19513 | /* confdefs.h. */ | |
19514 | _ACEOF | |
19515 | cat confdefs.h >>conftest.$ac_ext | |
19516 | cat >>conftest.$ac_ext <<_ACEOF | |
19517 | /* end confdefs.h. */ | |
19518 | $ac_includes_default | |
19519 | int | |
19520 | main () | |
19521 | { | |
19522 | #ifndef vsnprintf | |
19523 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
19524 | #endif |
19525 | ||
19526 | ; | |
19527 | return 0; | |
19528 | } | |
19529 | _ACEOF | |
19530 | rm -f conftest.$ac_objext | |
19531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19532 | (eval $ac_compile) 2>conftest.er1 | |
19533 | ac_status=$? | |
19534 | grep -v '^ *+' conftest.er1 >conftest.err | |
19535 | rm -f conftest.er1 | |
19536 | cat conftest.err >&5 | |
19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19538 | (exit $ac_status); } && | |
b4e70030 JB |
19539 | { ac_try='test -z "$ac_c_werror_flag" |
19540 | || test ! -s conftest.err' | |
4e8d927d DJ |
19541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19542 | (eval $ac_try) 2>&5 | |
19543 | ac_status=$? | |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19545 | (exit $ac_status); }; } && | |
19546 | { ac_try='test -s conftest.$ac_objext' | |
19547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19548 | (eval $ac_try) 2>&5 | |
19549 | ac_status=$? | |
19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19551 | (exit $ac_status); }; }; then | |
19552 | ac_cv_have_decl_vsnprintf=yes | |
19553 | else | |
19554 | echo "$as_me: failed program was:" >&5 | |
19555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19556 | ||
b4e70030 | 19557 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 19558 | fi |
4e8d927d DJ |
19559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19560 | fi | |
b4e70030 JB |
19561 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
19562 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
19563 | if test $ac_cv_have_decl_vsnprintf = yes; then |
19564 | ||
19565 | cat >>confdefs.h <<_ACEOF | |
19566 | #define HAVE_DECL_VSNPRINTF 1 | |
19567 | _ACEOF | |
19568 | ||
19569 | ||
19570 | else | |
19571 | cat >>confdefs.h <<_ACEOF | |
19572 | #define HAVE_DECL_VSNPRINTF 0 | |
19573 | _ACEOF | |
19574 | ||
19575 | ||
19576 | fi | |
19577 | ||
19578 | ||
19579 | ||
19580 | # ----------------------- # | |
19581 | # Checks for structures. # | |
19582 | # ----------------------- # | |
19583 | ||
b4e70030 JB |
19584 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
19585 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
19586 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
19587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19588 | else | |
19589 | cat >conftest.$ac_ext <<_ACEOF | |
19590 | /* confdefs.h. */ | |
19591 | _ACEOF | |
19592 | cat confdefs.h >>conftest.$ac_ext | |
19593 | cat >>conftest.$ac_ext <<_ACEOF | |
19594 | /* end confdefs.h. */ | |
19595 | $ac_includes_default | |
19596 | int | |
19597 | main () | |
19598 | { | |
19599 | static struct stat ac_aggr; | |
19600 | if (ac_aggr.st_blocks) | |
19601 | return 0; | |
19602 | ; | |
19603 | return 0; | |
19604 | } | |
19605 | _ACEOF | |
19606 | rm -f conftest.$ac_objext | |
19607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19608 | (eval $ac_compile) 2>conftest.er1 | |
19609 | ac_status=$? | |
19610 | grep -v '^ *+' conftest.er1 >conftest.err | |
19611 | rm -f conftest.er1 | |
19612 | cat conftest.err >&5 | |
19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19614 | (exit $ac_status); } && | |
b4e70030 JB |
19615 | { ac_try='test -z "$ac_c_werror_flag" |
19616 | || test ! -s conftest.err' | |
4e8d927d DJ |
19617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19618 | (eval $ac_try) 2>&5 | |
19619 | ac_status=$? | |
19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); }; } && | |
19622 | { ac_try='test -s conftest.$ac_objext' | |
19623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19624 | (eval $ac_try) 2>&5 | |
19625 | ac_status=$? | |
19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19627 | (exit $ac_status); }; }; then | |
19628 | ac_cv_member_struct_stat_st_blocks=yes | |
19629 | else | |
19630 | echo "$as_me: failed program was:" >&5 | |
19631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19632 | ||
b4e70030 | 19633 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
19634 | /* confdefs.h. */ |
19635 | _ACEOF | |
19636 | cat confdefs.h >>conftest.$ac_ext | |
19637 | cat >>conftest.$ac_ext <<_ACEOF | |
19638 | /* end confdefs.h. */ | |
19639 | $ac_includes_default | |
19640 | int | |
19641 | main () | |
19642 | { | |
19643 | static struct stat ac_aggr; | |
19644 | if (sizeof ac_aggr.st_blocks) | |
19645 | return 0; | |
19646 | ; | |
19647 | return 0; | |
19648 | } | |
19649 | _ACEOF | |
19650 | rm -f conftest.$ac_objext | |
19651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19652 | (eval $ac_compile) 2>conftest.er1 | |
19653 | ac_status=$? | |
19654 | grep -v '^ *+' conftest.er1 >conftest.err | |
19655 | rm -f conftest.er1 | |
19656 | cat conftest.err >&5 | |
19657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19658 | (exit $ac_status); } && | |
b4e70030 JB |
19659 | { ac_try='test -z "$ac_c_werror_flag" |
19660 | || test ! -s conftest.err' | |
4e8d927d DJ |
19661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19662 | (eval $ac_try) 2>&5 | |
19663 | ac_status=$? | |
19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19665 | (exit $ac_status); }; } && | |
19666 | { ac_try='test -s conftest.$ac_objext' | |
19667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19668 | (eval $ac_try) 2>&5 | |
19669 | ac_status=$? | |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19671 | (exit $ac_status); }; }; then | |
19672 | ac_cv_member_struct_stat_st_blocks=yes | |
19673 | else | |
19674 | echo "$as_me: failed program was:" >&5 | |
19675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19676 | ||
b4e70030 | 19677 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 19678 | fi |
4e8d927d DJ |
19679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19680 | fi | |
4e8d927d DJ |
19681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19682 | fi | |
b4e70030 JB |
19683 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
19684 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
19685 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
19686 | ||
19687 | cat >>confdefs.h <<_ACEOF | |
19688 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
19689 | _ACEOF | |
19690 | ||
19691 | ||
19692 | fi | |
19693 | ||
b4e70030 JB |
19694 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
19695 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
19696 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
19697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19698 | else | |
19699 | cat >conftest.$ac_ext <<_ACEOF | |
19700 | /* confdefs.h. */ | |
19701 | _ACEOF | |
19702 | cat confdefs.h >>conftest.$ac_ext | |
19703 | cat >>conftest.$ac_ext <<_ACEOF | |
19704 | /* end confdefs.h. */ | |
19705 | $ac_includes_default | |
19706 | int | |
19707 | main () | |
19708 | { | |
19709 | static struct stat ac_aggr; | |
19710 | if (ac_aggr.st_blksize) | |
19711 | return 0; | |
19712 | ; | |
19713 | return 0; | |
19714 | } | |
19715 | _ACEOF | |
19716 | rm -f conftest.$ac_objext | |
19717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19718 | (eval $ac_compile) 2>conftest.er1 | |
19719 | ac_status=$? | |
19720 | grep -v '^ *+' conftest.er1 >conftest.err | |
19721 | rm -f conftest.er1 | |
19722 | cat conftest.err >&5 | |
19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19724 | (exit $ac_status); } && | |
b4e70030 JB |
19725 | { ac_try='test -z "$ac_c_werror_flag" |
19726 | || test ! -s conftest.err' | |
4e8d927d DJ |
19727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19728 | (eval $ac_try) 2>&5 | |
19729 | ac_status=$? | |
19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19731 | (exit $ac_status); }; } && | |
19732 | { ac_try='test -s conftest.$ac_objext' | |
19733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19734 | (eval $ac_try) 2>&5 | |
19735 | ac_status=$? | |
19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19737 | (exit $ac_status); }; }; then | |
19738 | ac_cv_member_struct_stat_st_blksize=yes | |
19739 | else | |
19740 | echo "$as_me: failed program was:" >&5 | |
19741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19742 | ||
b4e70030 | 19743 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
19744 | /* confdefs.h. */ |
19745 | _ACEOF | |
19746 | cat confdefs.h >>conftest.$ac_ext | |
19747 | cat >>conftest.$ac_ext <<_ACEOF | |
19748 | /* end confdefs.h. */ | |
19749 | $ac_includes_default | |
19750 | int | |
19751 | main () | |
19752 | { | |
19753 | static struct stat ac_aggr; | |
19754 | if (sizeof ac_aggr.st_blksize) | |
19755 | return 0; | |
19756 | ; | |
19757 | return 0; | |
19758 | } | |
19759 | _ACEOF | |
19760 | rm -f conftest.$ac_objext | |
19761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19762 | (eval $ac_compile) 2>conftest.er1 | |
19763 | ac_status=$? | |
19764 | grep -v '^ *+' conftest.er1 >conftest.err | |
19765 | rm -f conftest.er1 | |
19766 | cat conftest.err >&5 | |
19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19768 | (exit $ac_status); } && | |
b4e70030 JB |
19769 | { ac_try='test -z "$ac_c_werror_flag" |
19770 | || test ! -s conftest.err' | |
4e8d927d DJ |
19771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19772 | (eval $ac_try) 2>&5 | |
19773 | ac_status=$? | |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19775 | (exit $ac_status); }; } && | |
19776 | { ac_try='test -s conftest.$ac_objext' | |
19777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19778 | (eval $ac_try) 2>&5 | |
19779 | ac_status=$? | |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19781 | (exit $ac_status); }; }; then | |
19782 | ac_cv_member_struct_stat_st_blksize=yes | |
19783 | else | |
19784 | echo "$as_me: failed program was:" >&5 | |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19786 | ||
b4e70030 | 19787 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 19788 | fi |
4e8d927d DJ |
19789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19790 | fi | |
4e8d927d DJ |
19791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19792 | fi | |
b4e70030 JB |
19793 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
19794 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
19795 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
19796 | ||
19797 | cat >>confdefs.h <<_ACEOF | |
19798 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
19799 | _ACEOF | |
19800 | ||
19801 | ||
19802 | fi | |
19803 | ||
19804 | ||
19805 | # ------------------ # | |
19806 | # Checks for types. # | |
19807 | # ------------------ # | |
19808 | ||
b4e70030 JB |
19809 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
19810 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
19811 | if test "${ac_cv_type_signal+set}" = set; then |
19812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19813 | else | |
19814 | cat >conftest.$ac_ext <<_ACEOF | |
19815 | /* confdefs.h. */ | |
19816 | _ACEOF | |
19817 | cat confdefs.h >>conftest.$ac_ext | |
19818 | cat >>conftest.$ac_ext <<_ACEOF | |
19819 | /* end confdefs.h. */ | |
19820 | #include <sys/types.h> | |
19821 | #include <signal.h> | |
b4e70030 JB |
19822 | #ifdef signal |
19823 | # undef signal | |
19824 | #endif | |
19825 | #ifdef __cplusplus | |
19826 | extern "C" void (*signal (int, void (*)(int)))(int); | |
19827 | #else | |
19828 | void (*signal ()) (); | |
19829 | #endif | |
4e8d927d DJ |
19830 | |
19831 | int | |
19832 | main () | |
19833 | { | |
b4e70030 | 19834 | int i; |
4e8d927d DJ |
19835 | ; |
19836 | return 0; | |
19837 | } | |
19838 | _ACEOF | |
19839 | rm -f conftest.$ac_objext | |
19840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19841 | (eval $ac_compile) 2>conftest.er1 | |
19842 | ac_status=$? | |
19843 | grep -v '^ *+' conftest.er1 >conftest.err | |
19844 | rm -f conftest.er1 | |
19845 | cat conftest.err >&5 | |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19847 | (exit $ac_status); } && | |
b4e70030 JB |
19848 | { ac_try='test -z "$ac_c_werror_flag" |
19849 | || test ! -s conftest.err' | |
4e8d927d DJ |
19850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19851 | (eval $ac_try) 2>&5 | |
19852 | ac_status=$? | |
19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19854 | (exit $ac_status); }; } && | |
19855 | { ac_try='test -s conftest.$ac_objext' | |
19856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19857 | (eval $ac_try) 2>&5 | |
19858 | ac_status=$? | |
19859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19860 | (exit $ac_status); }; }; then | |
b4e70030 | 19861 | ac_cv_type_signal=void |
4e8d927d DJ |
19862 | else |
19863 | echo "$as_me: failed program was:" >&5 | |
19864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19865 | ||
b4e70030 | 19866 | ac_cv_type_signal=int |
4e8d927d | 19867 | fi |
4e8d927d DJ |
19868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19869 | fi | |
b4e70030 JB |
19870 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
19871 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
19872 | |
19873 | cat >>confdefs.h <<_ACEOF | |
19874 | #define RETSIGTYPE $ac_cv_type_signal | |
19875 | _ACEOF | |
19876 | ||
19877 | ||
b4e70030 JB |
19878 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
19879 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
19880 | if test "${ac_cv_type_socklen_t+set}" = set; then |
19881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19882 | else | |
19883 | cat >conftest.$ac_ext <<_ACEOF | |
19884 | /* confdefs.h. */ | |
19885 | _ACEOF | |
19886 | cat confdefs.h >>conftest.$ac_ext | |
19887 | cat >>conftest.$ac_ext <<_ACEOF | |
19888 | /* end confdefs.h. */ | |
19889 | #include <sys/types.h> | |
19890 | #include <sys/socket.h> | |
19891 | ||
19892 | ||
4e8d927d DJ |
19893 | int |
19894 | main () | |
19895 | { | |
b4e70030 | 19896 | if ((socklen_t *) 0) |
4e8d927d | 19897 | return 0; |
b4e70030 | 19898 | if (sizeof (socklen_t)) |
4e8d927d DJ |
19899 | return 0; |
19900 | ; | |
19901 | return 0; | |
19902 | } | |
19903 | _ACEOF | |
19904 | rm -f conftest.$ac_objext | |
19905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19906 | (eval $ac_compile) 2>conftest.er1 | |
19907 | ac_status=$? | |
19908 | grep -v '^ *+' conftest.er1 >conftest.err | |
19909 | rm -f conftest.er1 | |
19910 | cat conftest.err >&5 | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); } && | |
b4e70030 JB |
19913 | { ac_try='test -z "$ac_c_werror_flag" |
19914 | || test ! -s conftest.err' | |
4e8d927d DJ |
19915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19916 | (eval $ac_try) 2>&5 | |
19917 | ac_status=$? | |
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19919 | (exit $ac_status); }; } && | |
19920 | { ac_try='test -s conftest.$ac_objext' | |
19921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19922 | (eval $ac_try) 2>&5 | |
19923 | ac_status=$? | |
19924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19925 | (exit $ac_status); }; }; then | |
19926 | ac_cv_type_socklen_t=yes | |
19927 | else | |
19928 | echo "$as_me: failed program was:" >&5 | |
19929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19930 | ||
b4e70030 | 19931 | ac_cv_type_socklen_t=no |
4e8d927d | 19932 | fi |
4e8d927d DJ |
19933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19934 | fi | |
b4e70030 JB |
19935 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
19936 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
19937 | if test $ac_cv_type_socklen_t = yes; then |
19938 | ||
19939 | cat >>confdefs.h <<_ACEOF | |
19940 | #define HAVE_SOCKLEN_T 1 | |
19941 | _ACEOF | |
19942 | ||
19943 | ||
19944 | fi | |
19945 | ||
b4e70030 JB |
19946 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
19947 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
19948 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
19949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19950 | else | |
19951 | cat >conftest.$ac_ext <<_ACEOF | |
19952 | /* confdefs.h. */ | |
19953 | _ACEOF | |
19954 | cat confdefs.h >>conftest.$ac_ext | |
19955 | cat >>conftest.$ac_ext <<_ACEOF | |
19956 | /* end confdefs.h. */ | |
19957 | #include <stdint.h> | |
19958 | ||
4e8d927d DJ |
19959 | int |
19960 | main () | |
19961 | { | |
b4e70030 | 19962 | if ((uintptr_t *) 0) |
4e8d927d | 19963 | return 0; |
b4e70030 | 19964 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
19965 | return 0; |
19966 | ; | |
19967 | return 0; | |
19968 | } | |
19969 | _ACEOF | |
19970 | rm -f conftest.$ac_objext | |
19971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19972 | (eval $ac_compile) 2>conftest.er1 | |
19973 | ac_status=$? | |
19974 | grep -v '^ *+' conftest.er1 >conftest.err | |
19975 | rm -f conftest.er1 | |
19976 | cat conftest.err >&5 | |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19978 | (exit $ac_status); } && | |
b4e70030 JB |
19979 | { ac_try='test -z "$ac_c_werror_flag" |
19980 | || test ! -s conftest.err' | |
4e8d927d DJ |
19981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19982 | (eval $ac_try) 2>&5 | |
19983 | ac_status=$? | |
19984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19985 | (exit $ac_status); }; } && | |
19986 | { ac_try='test -s conftest.$ac_objext' | |
19987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19988 | (eval $ac_try) 2>&5 | |
19989 | ac_status=$? | |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19991 | (exit $ac_status); }; }; then | |
19992 | ac_cv_type_uintptr_t=yes | |
19993 | else | |
19994 | echo "$as_me: failed program was:" >&5 | |
19995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19996 | ||
b4e70030 | 19997 | ac_cv_type_uintptr_t=no |
4e8d927d | 19998 | fi |
4e8d927d DJ |
19999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20000 | fi | |
b4e70030 JB |
20001 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
20002 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
20003 | if test $ac_cv_type_uintptr_t = yes; then |
20004 | ||
20005 | cat >>confdefs.h <<_ACEOF | |
20006 | #define HAVE_UINTPTR_T 1 | |
20007 | _ACEOF | |
20008 | ||
20009 | ||
20010 | fi | |
20011 | ||
20012 | ||
20013 | # ------------------------------------- # | |
20014 | # Checks for compiler characteristics. # | |
20015 | # ------------------------------------- # | |
20016 | ||
b4e70030 JB |
20017 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
20018 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
20019 | if test "${ac_cv_c_const+set}" = set; then |
20020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20021 | else | |
20022 | cat >conftest.$ac_ext <<_ACEOF | |
20023 | /* confdefs.h. */ | |
20024 | _ACEOF | |
20025 | cat confdefs.h >>conftest.$ac_ext | |
20026 | cat >>conftest.$ac_ext <<_ACEOF | |
20027 | /* end confdefs.h. */ | |
20028 | ||
20029 | int | |
20030 | main () | |
20031 | { | |
20032 | /* FIXME: Include the comments suggested by Paul. */ | |
20033 | #ifndef __cplusplus | |
20034 | /* Ultrix mips cc rejects this. */ | |
20035 | typedef int charset[2]; | |
20036 | const charset x; | |
20037 | /* SunOS 4.1.1 cc rejects this. */ | |
20038 | char const *const *ccp; | |
20039 | char **p; | |
20040 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
20041 | struct point {int x, y;}; | |
20042 | static struct point const zero = {0,0}; | |
20043 | /* AIX XL C 1.02.0.0 rejects this. | |
20044 | It does not let you subtract one const X* pointer from another in | |
20045 | an arm of an if-expression whose if-part is not a constant | |
20046 | expression */ | |
20047 | const char *g = "string"; | |
20048 | ccp = &g + (g ? g-g : 0); | |
20049 | /* HPUX 7.0 cc rejects these. */ | |
20050 | ++ccp; | |
20051 | p = (char**) ccp; | |
20052 | ccp = (char const *const *) p; | |
20053 | { /* SCO 3.2v4 cc rejects this. */ | |
20054 | char *t; | |
20055 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
20056 | ||
20057 | *t++ = 0; | |
4e8d927d DJ |
20058 | } |
20059 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
20060 | int x[] = {25, 17}; | |
20061 | const int *foo = &x[0]; | |
20062 | ++foo; | |
20063 | } | |
20064 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
20065 | typedef const int *iptr; | |
20066 | iptr p = 0; | |
20067 | ++p; | |
20068 | } | |
20069 | { /* AIX XL C 1.02.0.0 rejects this saying | |
20070 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
20071 | struct s { int j; const int *ap[3]; }; | |
20072 | struct s *b; b->j = 5; | |
20073 | } | |
20074 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
20075 | const int foo = 10; | |
4e8d927d | 20076 | } |
4e8d927d DJ |
20077 | #endif |
20078 | ||
20079 | ; | |
20080 | return 0; | |
20081 | } | |
20082 | _ACEOF | |
20083 | rm -f conftest.$ac_objext | |
20084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20085 | (eval $ac_compile) 2>conftest.er1 | |
20086 | ac_status=$? | |
20087 | grep -v '^ *+' conftest.er1 >conftest.err | |
20088 | rm -f conftest.er1 | |
20089 | cat conftest.err >&5 | |
20090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20091 | (exit $ac_status); } && | |
b4e70030 JB |
20092 | { ac_try='test -z "$ac_c_werror_flag" |
20093 | || test ! -s conftest.err' | |
4e8d927d DJ |
20094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20095 | (eval $ac_try) 2>&5 | |
20096 | ac_status=$? | |
20097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20098 | (exit $ac_status); }; } && | |
20099 | { ac_try='test -s conftest.$ac_objext' | |
20100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20101 | (eval $ac_try) 2>&5 | |
20102 | ac_status=$? | |
20103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20104 | (exit $ac_status); }; }; then | |
20105 | ac_cv_c_const=yes | |
20106 | else | |
20107 | echo "$as_me: failed program was:" >&5 | |
20108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20109 | ||
b4e70030 | 20110 | ac_cv_c_const=no |
4e8d927d | 20111 | fi |
4e8d927d DJ |
20112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20113 | fi | |
b4e70030 JB |
20114 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
20115 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
20116 | if test $ac_cv_c_const = no; then |
20117 | ||
20118 | cat >>confdefs.h <<\_ACEOF | |
20119 | #define const | |
20120 | _ACEOF | |
20121 | ||
20122 | fi | |
20123 | ||
b4e70030 JB |
20124 | echo "$as_me:$LINENO: checking for inline" >&5 |
20125 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
20126 | if test "${ac_cv_c_inline+set}" = set; then |
20127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20128 | else | |
20129 | ac_cv_c_inline=no | |
20130 | for ac_kw in inline __inline__ __inline; do | |
20131 | cat >conftest.$ac_ext <<_ACEOF | |
20132 | /* confdefs.h. */ | |
20133 | _ACEOF | |
20134 | cat confdefs.h >>conftest.$ac_ext | |
20135 | cat >>conftest.$ac_ext <<_ACEOF | |
20136 | /* end confdefs.h. */ | |
20137 | #ifndef __cplusplus | |
20138 | typedef int foo_t; | |
20139 | static $ac_kw foo_t static_foo () {return 0; } | |
20140 | $ac_kw foo_t foo () {return 0; } | |
20141 | #endif | |
20142 | ||
20143 | _ACEOF | |
20144 | rm -f conftest.$ac_objext | |
20145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20146 | (eval $ac_compile) 2>conftest.er1 | |
20147 | ac_status=$? | |
20148 | grep -v '^ *+' conftest.er1 >conftest.err | |
20149 | rm -f conftest.er1 | |
20150 | cat conftest.err >&5 | |
20151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20152 | (exit $ac_status); } && | |
b4e70030 JB |
20153 | { ac_try='test -z "$ac_c_werror_flag" |
20154 | || test ! -s conftest.err' | |
4e8d927d DJ |
20155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20156 | (eval $ac_try) 2>&5 | |
20157 | ac_status=$? | |
20158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20159 | (exit $ac_status); }; } && | |
20160 | { ac_try='test -s conftest.$ac_objext' | |
20161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20162 | (eval $ac_try) 2>&5 | |
20163 | ac_status=$? | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); }; }; then | |
b4e70030 | 20166 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
20167 | else |
20168 | echo "$as_me: failed program was:" >&5 | |
20169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20170 | ||
4e8d927d | 20171 | fi |
4e8d927d | 20172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
20173 | done |
20174 | ||
20175 | fi | |
b4e70030 JB |
20176 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
20177 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 20178 | |
bec39cab | 20179 | |
a3828db0 MK |
20180 | case $ac_cv_c_inline in |
20181 | inline | yes) ;; | |
20182 | *) | |
20183 | case $ac_cv_c_inline in | |
20184 | no) ac_val=;; | |
20185 | *) ac_val=$ac_cv_c_inline;; | |
20186 | esac | |
20187 | cat >>confdefs.h <<_ACEOF | |
20188 | #ifndef __cplusplus | |
20189 | #define inline $ac_val | |
20190 | #endif | |
20191 | _ACEOF | |
bec39cab AC |
20192 | ;; |
20193 | esac | |
bec39cab | 20194 | |
9b913628 TJB |
20195 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
20196 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20197 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20199 | else | |
20200 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20201 | cat >conftest.$ac_ext <<_ACEOF | |
20202 | /* confdefs.h. */ | |
20203 | _ACEOF | |
20204 | cat confdefs.h >>conftest.$ac_ext | |
20205 | cat >>conftest.$ac_ext <<_ACEOF | |
20206 | /* end confdefs.h. */ | |
20207 | #include <sys/types.h> | |
20208 | #include <sys/param.h> | |
20209 | ||
20210 | int | |
20211 | main () | |
20212 | { | |
20213 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20214 | bogus endian macros | |
20215 | #endif | |
20216 | ||
20217 | ; | |
20218 | return 0; | |
20219 | } | |
20220 | _ACEOF | |
20221 | rm -f conftest.$ac_objext | |
20222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20223 | (eval $ac_compile) 2>conftest.er1 | |
20224 | ac_status=$? | |
20225 | grep -v '^ *+' conftest.er1 >conftest.err | |
20226 | rm -f conftest.er1 | |
20227 | cat conftest.err >&5 | |
20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20229 | (exit $ac_status); } && | |
20230 | { ac_try='test -z "$ac_c_werror_flag" | |
20231 | || test ! -s conftest.err' | |
20232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20233 | (eval $ac_try) 2>&5 | |
20234 | ac_status=$? | |
20235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20236 | (exit $ac_status); }; } && | |
20237 | { ac_try='test -s conftest.$ac_objext' | |
20238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20239 | (eval $ac_try) 2>&5 | |
20240 | ac_status=$? | |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20242 | (exit $ac_status); }; }; then | |
20243 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20244 | cat >conftest.$ac_ext <<_ACEOF | |
20245 | /* confdefs.h. */ | |
20246 | _ACEOF | |
20247 | cat confdefs.h >>conftest.$ac_ext | |
20248 | cat >>conftest.$ac_ext <<_ACEOF | |
20249 | /* end confdefs.h. */ | |
20250 | #include <sys/types.h> | |
20251 | #include <sys/param.h> | |
20252 | ||
20253 | int | |
20254 | main () | |
20255 | { | |
20256 | #if BYTE_ORDER != BIG_ENDIAN | |
20257 | not big endian | |
20258 | #endif | |
20259 | ||
20260 | ; | |
20261 | return 0; | |
20262 | } | |
20263 | _ACEOF | |
20264 | rm -f conftest.$ac_objext | |
20265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20266 | (eval $ac_compile) 2>conftest.er1 | |
20267 | ac_status=$? | |
20268 | grep -v '^ *+' conftest.er1 >conftest.err | |
20269 | rm -f conftest.er1 | |
20270 | cat conftest.err >&5 | |
20271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20272 | (exit $ac_status); } && | |
20273 | { ac_try='test -z "$ac_c_werror_flag" | |
20274 | || test ! -s conftest.err' | |
20275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20276 | (eval $ac_try) 2>&5 | |
20277 | ac_status=$? | |
20278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20279 | (exit $ac_status); }; } && | |
20280 | { ac_try='test -s conftest.$ac_objext' | |
20281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20282 | (eval $ac_try) 2>&5 | |
20283 | ac_status=$? | |
20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20285 | (exit $ac_status); }; }; then | |
20286 | ac_cv_c_bigendian=yes | |
20287 | else | |
20288 | echo "$as_me: failed program was:" >&5 | |
20289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20290 | ||
20291 | ac_cv_c_bigendian=no | |
20292 | fi | |
20293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20294 | else | |
20295 | echo "$as_me: failed program was:" >&5 | |
20296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20297 | ||
20298 | # It does not; compile a test program. | |
20299 | if test "$cross_compiling" = yes; then | |
20300 | # try to guess the endianness by grepping values into an object file | |
20301 | ac_cv_c_bigendian=unknown | |
20302 | cat >conftest.$ac_ext <<_ACEOF | |
20303 | /* confdefs.h. */ | |
20304 | _ACEOF | |
20305 | cat confdefs.h >>conftest.$ac_ext | |
20306 | cat >>conftest.$ac_ext <<_ACEOF | |
20307 | /* end confdefs.h. */ | |
20308 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
20309 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
20310 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
20311 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
20312 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
20313 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
20314 | int | |
20315 | main () | |
20316 | { | |
20317 | _ascii (); _ebcdic (); | |
20318 | ; | |
20319 | return 0; | |
20320 | } | |
20321 | _ACEOF | |
20322 | rm -f conftest.$ac_objext | |
20323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20324 | (eval $ac_compile) 2>conftest.er1 | |
20325 | ac_status=$? | |
20326 | grep -v '^ *+' conftest.er1 >conftest.err | |
20327 | rm -f conftest.er1 | |
20328 | cat conftest.err >&5 | |
20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20330 | (exit $ac_status); } && | |
20331 | { ac_try='test -z "$ac_c_werror_flag" | |
20332 | || test ! -s conftest.err' | |
20333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20334 | (eval $ac_try) 2>&5 | |
20335 | ac_status=$? | |
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20337 | (exit $ac_status); }; } && | |
20338 | { ac_try='test -s conftest.$ac_objext' | |
20339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20340 | (eval $ac_try) 2>&5 | |
20341 | ac_status=$? | |
20342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20343 | (exit $ac_status); }; }; then | |
20344 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
20345 | ac_cv_c_bigendian=yes | |
20346 | fi | |
20347 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
20348 | if test "$ac_cv_c_bigendian" = unknown; then | |
20349 | ac_cv_c_bigendian=no | |
20350 | else | |
20351 | # finding both strings is unlikely to happen, but who knows? | |
20352 | ac_cv_c_bigendian=unknown | |
20353 | fi | |
20354 | fi | |
20355 | else | |
20356 | echo "$as_me: failed program was:" >&5 | |
20357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20358 | ||
20359 | fi | |
20360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20361 | else | |
20362 | cat >conftest.$ac_ext <<_ACEOF | |
20363 | /* confdefs.h. */ | |
20364 | _ACEOF | |
20365 | cat confdefs.h >>conftest.$ac_ext | |
20366 | cat >>conftest.$ac_ext <<_ACEOF | |
20367 | /* end confdefs.h. */ | |
20368 | int | |
20369 | main () | |
20370 | { | |
20371 | /* Are we little or big endian? From Harbison&Steele. */ | |
20372 | union | |
20373 | { | |
20374 | long l; | |
20375 | char c[sizeof (long)]; | |
20376 | } u; | |
20377 | u.l = 1; | |
20378 | exit (u.c[sizeof (long) - 1] == 1); | |
20379 | } | |
20380 | _ACEOF | |
20381 | rm -f conftest$ac_exeext | |
20382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20383 | (eval $ac_link) 2>&5 | |
20384 | ac_status=$? | |
20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20388 | (eval $ac_try) 2>&5 | |
20389 | ac_status=$? | |
20390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20391 | (exit $ac_status); }; }; then | |
20392 | ac_cv_c_bigendian=no | |
20393 | else | |
20394 | echo "$as_me: program exited with status $ac_status" >&5 | |
20395 | echo "$as_me: failed program was:" >&5 | |
20396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20397 | ||
20398 | ( exit $ac_status ) | |
20399 | ac_cv_c_bigendian=yes | |
20400 | fi | |
20401 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20402 | fi | |
20403 | fi | |
20404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20405 | fi | |
20406 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20407 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20408 | case $ac_cv_c_bigendian in | |
20409 | yes) | |
20410 | ||
20411 | cat >>confdefs.h <<\_ACEOF | |
20412 | #define WORDS_BIGENDIAN 1 | |
20413 | _ACEOF | |
20414 | ;; | |
20415 | no) | |
20416 | ;; | |
20417 | *) | |
20418 | { { echo "$as_me:$LINENO: error: unknown endianness | |
20419 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
20420 | echo "$as_me: error: unknown endianness | |
20421 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
20422 | { (exit 1); exit 1; }; } ;; | |
20423 | esac | |
20424 | ||
74c1b268 | 20425 | |
a3828db0 MK |
20426 | # ------------------------------ # |
20427 | # Checks for library functions. # | |
20428 | # ------------------------------ # | |
bec39cab | 20429 | |
a3828db0 MK |
20430 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
20431 | # for constant arguments. Useless! | |
b4e70030 JB |
20432 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
20433 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 20434 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
20435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20436 | else | |
20437 | cat >conftest.$ac_ext <<_ACEOF | |
20438 | /* confdefs.h. */ | |
20439 | _ACEOF | |
20440 | cat confdefs.h >>conftest.$ac_ext | |
20441 | cat >>conftest.$ac_ext <<_ACEOF | |
20442 | /* end confdefs.h. */ | |
a3828db0 | 20443 | #include <alloca.h> |
bec39cab AC |
20444 | int |
20445 | main () | |
20446 | { | |
a3828db0 | 20447 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
20448 | ; |
20449 | return 0; | |
20450 | } | |
20451 | _ACEOF | |
20452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20454 | (eval $ac_link) 2>conftest.er1 | |
20455 | ac_status=$? | |
20456 | grep -v '^ *+' conftest.er1 >conftest.err | |
20457 | rm -f conftest.er1 | |
20458 | cat conftest.err >&5 | |
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20460 | (exit $ac_status); } && | |
b4e70030 JB |
20461 | { ac_try='test -z "$ac_c_werror_flag" |
20462 | || test ! -s conftest.err' | |
bec39cab AC |
20463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20464 | (eval $ac_try) 2>&5 | |
20465 | ac_status=$? | |
20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20467 | (exit $ac_status); }; } && | |
20468 | { ac_try='test -s conftest$ac_exeext' | |
20469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20470 | (eval $ac_try) 2>&5 | |
20471 | ac_status=$? | |
20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20473 | (exit $ac_status); }; }; then | |
a3828db0 | 20474 | ac_cv_working_alloca_h=yes |
bec39cab AC |
20475 | else |
20476 | echo "$as_me: failed program was:" >&5 | |
20477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20478 | ||
b4e70030 | 20479 | ac_cv_working_alloca_h=no |
bec39cab AC |
20480 | fi |
20481 | rm -f conftest.err conftest.$ac_objext \ | |
20482 | conftest$ac_exeext conftest.$ac_ext | |
20483 | fi | |
b4e70030 JB |
20484 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
20485 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
20486 | if test $ac_cv_working_alloca_h = yes; then |
20487 | ||
20488 | cat >>confdefs.h <<\_ACEOF | |
20489 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 20490 | _ACEOF |
74c1b268 | 20491 | |
74c1b268 AC |
20492 | fi |
20493 | ||
b4e70030 JB |
20494 | echo "$as_me:$LINENO: checking for alloca" >&5 |
20495 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 20496 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 20497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 20498 | else |
bec39cab AC |
20499 | cat >conftest.$ac_ext <<_ACEOF |
20500 | /* confdefs.h. */ | |
20501 | _ACEOF | |
20502 | cat confdefs.h >>conftest.$ac_ext | |
20503 | cat >>conftest.$ac_ext <<_ACEOF | |
20504 | /* end confdefs.h. */ | |
a3828db0 MK |
20505 | #ifdef __GNUC__ |
20506 | # define alloca __builtin_alloca | |
20507 | #else | |
20508 | # ifdef _MSC_VER | |
20509 | # include <malloc.h> | |
20510 | # define alloca _alloca | |
20511 | # else | |
20512 | # if HAVE_ALLOCA_H | |
20513 | # include <alloca.h> | |
20514 | # else | |
20515 | # ifdef _AIX | |
20516 | #pragma alloca | |
20517 | # else | |
20518 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
20519 | char *alloca (); | |
20520 | # endif | |
20521 | # endif | |
20522 | # endif | |
97bf5e38 | 20523 | # endif |
a3828db0 | 20524 | #endif |
97bf5e38 | 20525 | |
bec39cab AC |
20526 | int |
20527 | main () | |
20528 | { | |
a3828db0 | 20529 | char *p = (char *) alloca (1); |
bec39cab AC |
20530 | ; |
20531 | return 0; | |
20532 | } | |
20533 | _ACEOF | |
a3828db0 MK |
20534 | rm -f conftest.$ac_objext conftest$ac_exeext |
20535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20536 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
20537 | ac_status=$? |
20538 | grep -v '^ *+' conftest.er1 >conftest.err | |
20539 | rm -f conftest.er1 | |
20540 | cat conftest.err >&5 | |
20541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20542 | (exit $ac_status); } && | |
b4e70030 JB |
20543 | { ac_try='test -z "$ac_c_werror_flag" |
20544 | || test ! -s conftest.err' | |
bec39cab AC |
20545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20546 | (eval $ac_try) 2>&5 | |
20547 | ac_status=$? | |
20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20549 | (exit $ac_status); }; } && | |
a3828db0 | 20550 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
20551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20552 | (eval $ac_try) 2>&5 | |
20553 | ac_status=$? | |
20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20555 | (exit $ac_status); }; }; then | |
a3828db0 | 20556 | ac_cv_func_alloca_works=yes |
0200359f | 20557 | else |
bec39cab AC |
20558 | echo "$as_me: failed program was:" >&5 |
20559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 20560 | |
b4e70030 | 20561 | ac_cv_func_alloca_works=no |
0200359f | 20562 | fi |
a3828db0 MK |
20563 | rm -f conftest.err conftest.$ac_objext \ |
20564 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 20565 | fi |
b4e70030 JB |
20566 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
20567 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 20568 | |
a3828db0 MK |
20569 | if test $ac_cv_func_alloca_works = yes; then |
20570 | ||
20571 | cat >>confdefs.h <<\_ACEOF | |
20572 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
20573 | _ACEOF |
20574 | ||
a3828db0 MK |
20575 | else |
20576 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
20577 | # that cause trouble. Some versions do not even contain alloca or | |
20578 | # contain a buggy version. If you still want to use their alloca, | |
20579 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 20580 | |
b4e70030 | 20581 | ALLOCA=alloca.$ac_objext |
bec39cab | 20582 | |
a3828db0 MK |
20583 | cat >>confdefs.h <<\_ACEOF |
20584 | #define C_ALLOCA 1 | |
20585 | _ACEOF | |
bec39cab | 20586 | |
a3828db0 | 20587 | |
b4e70030 JB |
20588 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
20589 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 20590 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 20591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 20592 | else |
a3828db0 | 20593 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
20594 | /* confdefs.h. */ |
20595 | _ACEOF | |
20596 | cat confdefs.h >>conftest.$ac_ext | |
20597 | cat >>conftest.$ac_ext <<_ACEOF | |
20598 | /* end confdefs.h. */ | |
b4e70030 | 20599 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
20600 | webecray |
20601 | #else | |
20602 | wenotbecray | |
20603 | #endif | |
20604 | ||
20605 | _ACEOF | |
20606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
20607 | $EGREP "webecray" >/dev/null 2>&1; then | |
20608 | ac_cv_os_cray=yes | |
20609 | else | |
20610 | ac_cv_os_cray=no | |
20611 | fi | |
20612 | rm -f conftest* | |
20613 | ||
20614 | fi | |
b4e70030 JB |
20615 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
20616 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
20617 | if test $ac_cv_os_cray = yes; then |
20618 | for ac_func in _getb67 GETB67 getb67; do | |
20619 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
20620 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20621 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20622 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
20623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20624 | else | |
20625 | cat >conftest.$ac_ext <<_ACEOF | |
20626 | /* confdefs.h. */ | |
20627 | _ACEOF | |
20628 | cat confdefs.h >>conftest.$ac_ext | |
20629 | cat >>conftest.$ac_ext <<_ACEOF | |
20630 | /* end confdefs.h. */ | |
20631 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20632 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20633 | #define $ac_func innocuous_$ac_func | |
20634 | ||
20635 | /* System header to define __stub macros and hopefully few prototypes, | |
20636 | which can conflict with char $ac_func (); below. | |
20637 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20638 | <limits.h> exists even on freestanding compilers. */ | |
20639 | ||
20640 | #ifdef __STDC__ | |
20641 | # include <limits.h> | |
20642 | #else | |
20643 | # include <assert.h> | |
20644 | #endif | |
20645 | ||
20646 | #undef $ac_func | |
20647 | ||
b4e70030 | 20648 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
20649 | #ifdef __cplusplus |
20650 | extern "C" | |
b4e70030 | 20651 | { |
a3828db0 | 20652 | #endif |
b4e70030 JB |
20653 | /* We use char because int might match the return type of a gcc2 |
20654 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
20655 | char $ac_func (); |
20656 | /* The GNU C library defines this for functions which it implements | |
20657 | to always fail with ENOSYS. Some functions are actually named | |
20658 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 20659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 20660 | choke me |
b4e70030 JB |
20661 | #else |
20662 | char (*f) () = $ac_func; | |
20663 | #endif | |
20664 | #ifdef __cplusplus | |
20665 | } | |
a3828db0 MK |
20666 | #endif |
20667 | ||
20668 | int | |
20669 | main () | |
20670 | { | |
b4e70030 | 20671 | return f != $ac_func; |
a3828db0 MK |
20672 | ; |
20673 | return 0; | |
20674 | } | |
20675 | _ACEOF | |
20676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20678 | (eval $ac_link) 2>conftest.er1 | |
20679 | ac_status=$? | |
20680 | grep -v '^ *+' conftest.er1 >conftest.err | |
20681 | rm -f conftest.er1 | |
20682 | cat conftest.err >&5 | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); } && | |
b4e70030 JB |
20685 | { ac_try='test -z "$ac_c_werror_flag" |
20686 | || test ! -s conftest.err' | |
a3828db0 MK |
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20688 | (eval $ac_try) 2>&5 | |
20689 | ac_status=$? | |
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 | (exit $ac_status); }; } && | |
20692 | { ac_try='test -s conftest$ac_exeext' | |
20693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20694 | (eval $ac_try) 2>&5 | |
20695 | ac_status=$? | |
20696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20697 | (exit $ac_status); }; }; then | |
20698 | eval "$as_ac_var=yes" | |
20699 | else | |
20700 | echo "$as_me: failed program was:" >&5 | |
20701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20702 | ||
b4e70030 | 20703 | eval "$as_ac_var=no" |
a3828db0 MK |
20704 | fi |
20705 | rm -f conftest.err conftest.$ac_objext \ | |
20706 | conftest$ac_exeext conftest.$ac_ext | |
20707 | fi | |
b4e70030 JB |
20708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
20709 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
20710 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20711 | ||
20712 | cat >>confdefs.h <<_ACEOF | |
20713 | #define CRAY_STACKSEG_END $ac_func | |
20714 | _ACEOF | |
20715 | ||
20716 | break | |
20717 | fi | |
20718 | ||
20719 | done | |
20720 | fi | |
20721 | ||
b4e70030 JB |
20722 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
20723 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
20724 | if test "${ac_cv_c_stack_direction+set}" = set; then |
20725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20726 | else | |
20727 | if test "$cross_compiling" = yes; then | |
20728 | ac_cv_c_stack_direction=0 | |
20729 | else | |
20730 | cat >conftest.$ac_ext <<_ACEOF | |
20731 | /* confdefs.h. */ | |
20732 | _ACEOF | |
20733 | cat confdefs.h >>conftest.$ac_ext | |
20734 | cat >>conftest.$ac_ext <<_ACEOF | |
20735 | /* end confdefs.h. */ | |
20736 | int | |
20737 | find_stack_direction () | |
20738 | { | |
20739 | static char *addr = 0; | |
20740 | auto char dummy; | |
20741 | if (addr == 0) | |
20742 | { | |
20743 | addr = &dummy; | |
20744 | return find_stack_direction (); | |
20745 | } | |
20746 | else | |
20747 | return (&dummy > addr) ? 1 : -1; | |
20748 | } | |
20749 | ||
20750 | int | |
20751 | main () | |
20752 | { | |
b4e70030 | 20753 | exit (find_stack_direction () < 0); |
a3828db0 MK |
20754 | } |
20755 | _ACEOF | |
20756 | rm -f conftest$ac_exeext | |
20757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20758 | (eval $ac_link) 2>&5 | |
20759 | ac_status=$? | |
20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20763 | (eval $ac_try) 2>&5 | |
20764 | ac_status=$? | |
20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20766 | (exit $ac_status); }; }; then | |
20767 | ac_cv_c_stack_direction=1 | |
20768 | else | |
20769 | echo "$as_me: program exited with status $ac_status" >&5 | |
20770 | echo "$as_me: failed program was:" >&5 | |
20771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20772 | ||
20773 | ( exit $ac_status ) | |
20774 | ac_cv_c_stack_direction=-1 | |
20775 | fi | |
b4e70030 | 20776 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
20777 | fi |
20778 | fi | |
b4e70030 JB |
20779 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
20780 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
20781 | |
20782 | cat >>confdefs.h <<_ACEOF | |
20783 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
20784 | _ACEOF | |
20785 | ||
20786 | ||
20787 | fi | |
20788 | ||
20789 | ||
20790 | ||
20791 | for ac_header in stdlib.h unistd.h | |
20792 | do | |
20793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
20794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
20798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20799 | fi | |
b4e70030 JB |
20800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20801 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
20802 | else |
20803 | # Is the header compilable? | |
b4e70030 JB |
20804 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20805 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
20806 | cat >conftest.$ac_ext <<_ACEOF |
20807 | /* confdefs.h. */ | |
20808 | _ACEOF | |
20809 | cat confdefs.h >>conftest.$ac_ext | |
20810 | cat >>conftest.$ac_ext <<_ACEOF | |
20811 | /* end confdefs.h. */ | |
20812 | $ac_includes_default | |
20813 | #include <$ac_header> | |
20814 | _ACEOF | |
20815 | rm -f conftest.$ac_objext | |
20816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20817 | (eval $ac_compile) 2>conftest.er1 | |
20818 | ac_status=$? | |
bec39cab AC |
20819 | grep -v '^ *+' conftest.er1 >conftest.err |
20820 | rm -f conftest.er1 | |
20821 | cat conftest.err >&5 | |
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20823 | (exit $ac_status); } && | |
b4e70030 JB |
20824 | { ac_try='test -z "$ac_c_werror_flag" |
20825 | || test ! -s conftest.err' | |
bec39cab AC |
20826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20827 | (eval $ac_try) 2>&5 | |
20828 | ac_status=$? | |
20829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20830 | (exit $ac_status); }; } && | |
20831 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
20837 | ac_header_compiler=yes | |
20838 | else | |
20839 | echo "$as_me: failed program was:" >&5 | |
20840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20841 | ||
b4e70030 | 20842 | ac_header_compiler=no |
bec39cab AC |
20843 | fi |
20844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
20845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20846 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
20847 | |
20848 | # Is the header present? | |
b4e70030 JB |
20849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
20851 | cat >conftest.$ac_ext <<_ACEOF |
20852 | /* confdefs.h. */ | |
20853 | _ACEOF | |
20854 | cat confdefs.h >>conftest.$ac_ext | |
20855 | cat >>conftest.$ac_ext <<_ACEOF | |
20856 | /* end confdefs.h. */ | |
20857 | #include <$ac_header> | |
20858 | _ACEOF | |
20859 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20860 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20861 | ac_status=$? | |
20862 | grep -v '^ *+' conftest.er1 >conftest.err | |
20863 | rm -f conftest.er1 | |
20864 | cat conftest.err >&5 | |
20865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20866 | (exit $ac_status); } >/dev/null; then | |
20867 | if test -s conftest.err; then | |
20868 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20869 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20870 | else | |
20871 | ac_cpp_err= | |
20872 | fi | |
20873 | else | |
20874 | ac_cpp_err=yes | |
20875 | fi | |
20876 | if test -z "$ac_cpp_err"; then | |
20877 | ac_header_preproc=yes | |
97bf5e38 | 20878 | else |
bec39cab AC |
20879 | echo "$as_me: failed program was:" >&5 |
20880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20881 | ||
20882 | ac_header_preproc=no | |
72473524 | 20883 | fi |
bec39cab | 20884 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
20885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20886 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 20887 | |
bec39cab AC |
20888 | # So? What about this header? |
20889 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20890 | yes:no: ) | |
20891 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20892 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20894 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20895 | ac_header_preproc=yes | |
20896 | ;; | |
20897 | no:yes:* ) | |
20898 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20899 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20900 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20901 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20902 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20903 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20904 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20905 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20907 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20908 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20909 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
20910 | ( |
20911 | cat <<\_ASBOX | |
20912 | ## ------------------------------------------ ## | |
20913 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20914 | ## ------------------------------------------ ## | |
20915 | _ASBOX | |
20916 | ) | | |
20917 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
20918 | ;; |
20919 | esac | |
b4e70030 JB |
20920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 20923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20924 | else |
bec39cab AC |
20925 | eval "$as_ac_Header=\$ac_header_preproc" |
20926 | fi | |
b4e70030 JB |
20927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
20929 | |
20930 | fi | |
20931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20932 | cat >>confdefs.h <<_ACEOF | |
20933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20934 | _ACEOF | |
20935 | ||
20936 | fi | |
20937 | ||
20938 | done | |
20939 | ||
20940 | ||
a3828db0 | 20941 | for ac_func in getpagesize |
bec39cab AC |
20942 | do |
20943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
20944 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20946 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
20947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20948 | else | |
20949 | cat >conftest.$ac_ext <<_ACEOF | |
20950 | /* confdefs.h. */ | |
20951 | _ACEOF | |
20952 | cat confdefs.h >>conftest.$ac_ext | |
20953 | cat >>conftest.$ac_ext <<_ACEOF | |
20954 | /* end confdefs.h. */ | |
20955 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20957 | #define $ac_func innocuous_$ac_func | |
20958 | ||
97bf5e38 | 20959 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
20960 | which can conflict with char $ac_func (); below. |
20961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20962 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 20963 | |
bec39cab AC |
20964 | #ifdef __STDC__ |
20965 | # include <limits.h> | |
20966 | #else | |
20967 | # include <assert.h> | |
20968 | #endif | |
97bf5e38 | 20969 | |
bec39cab AC |
20970 | #undef $ac_func |
20971 | ||
b4e70030 | 20972 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
20973 | #ifdef __cplusplus |
20974 | extern "C" | |
b4e70030 | 20975 | { |
bec39cab | 20976 | #endif |
b4e70030 JB |
20977 | /* We use char because int might match the return type of a gcc2 |
20978 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 20979 | char $ac_func (); |
97bf5e38 MK |
20980 | /* The GNU C library defines this for functions which it implements |
20981 | to always fail with ENOSYS. Some functions are actually named | |
20982 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 20983 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 20984 | choke me |
b4e70030 JB |
20985 | #else |
20986 | char (*f) () = $ac_func; | |
20987 | #endif | |
20988 | #ifdef __cplusplus | |
20989 | } | |
97bf5e38 MK |
20990 | #endif |
20991 | ||
bec39cab AC |
20992 | int |
20993 | main () | |
20994 | { | |
b4e70030 | 20995 | return f != $ac_func; |
bec39cab AC |
20996 | ; |
20997 | return 0; | |
20998 | } | |
20999 | _ACEOF | |
21000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21002 | (eval $ac_link) 2>conftest.er1 | |
21003 | ac_status=$? | |
21004 | grep -v '^ *+' conftest.er1 >conftest.err | |
21005 | rm -f conftest.er1 | |
21006 | cat conftest.err >&5 | |
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21008 | (exit $ac_status); } && | |
b4e70030 JB |
21009 | { ac_try='test -z "$ac_c_werror_flag" |
21010 | || test ! -s conftest.err' | |
bec39cab AC |
21011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21012 | (eval $ac_try) 2>&5 | |
21013 | ac_status=$? | |
21014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21015 | (exit $ac_status); }; } && | |
21016 | { ac_try='test -s conftest$ac_exeext' | |
21017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21018 | (eval $ac_try) 2>&5 | |
21019 | ac_status=$? | |
21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21021 | (exit $ac_status); }; }; then | |
21022 | eval "$as_ac_var=yes" | |
21023 | else | |
21024 | echo "$as_me: failed program was:" >&5 | |
21025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21026 | ||
b4e70030 | 21027 | eval "$as_ac_var=no" |
bec39cab AC |
21028 | fi |
21029 | rm -f conftest.err conftest.$ac_objext \ | |
21030 | conftest$ac_exeext conftest.$ac_ext | |
21031 | fi | |
b4e70030 JB |
21032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
21033 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
21034 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21035 | cat >>confdefs.h <<_ACEOF | |
21036 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21037 | _ACEOF | |
21038 | ||
2b2d558c | 21039 | fi |
bec39cab | 21040 | done |
2b2d558c | 21041 | |
b4e70030 JB |
21042 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
21043 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 21044 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 21045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 21046 | else |
bec39cab | 21047 | if test "$cross_compiling" = yes; then |
a3828db0 | 21048 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
21049 | else |
21050 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 21051 | /* confdefs.h. */ |
bec39cab AC |
21052 | _ACEOF |
21053 | cat confdefs.h >>conftest.$ac_ext | |
21054 | cat >>conftest.$ac_ext <<_ACEOF | |
21055 | /* end confdefs.h. */ | |
a3828db0 MK |
21056 | $ac_includes_default |
21057 | /* malloc might have been renamed as rpl_malloc. */ | |
21058 | #undef malloc | |
bec39cab | 21059 | |
a3828db0 MK |
21060 | /* Thanks to Mike Haertel and Jim Avera for this test. |
21061 | Here is a matrix of mmap possibilities: | |
21062 | mmap private not fixed | |
21063 | mmap private fixed at somewhere currently unmapped | |
21064 | mmap private fixed at somewhere already mapped | |
21065 | mmap shared not fixed | |
21066 | mmap shared fixed at somewhere currently unmapped | |
21067 | mmap shared fixed at somewhere already mapped | |
21068 | For private mappings, we should verify that changes cannot be read() | |
21069 | back from the file, nor mmap's back from the file at a different | |
21070 | address. (There have been systems where private was not correctly | |
21071 | implemented like the infamous i386 svr4.0, and systems where the | |
21072 | VM page cache was not coherent with the file system buffer cache | |
21073 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
21074 | For shared mappings, we should conversely verify that changes get | |
21075 | propagated back to all the places they're supposed to be. | |
7dfa765c | 21076 | |
a3828db0 MK |
21077 | Grep wants private fixed already mapped. |
21078 | The main things grep needs to know about mmap are: | |
21079 | * does it exist and is it safe to write into the mmap'd area | |
21080 | * how to use it (BSD variants) */ | |
7dfa765c | 21081 | |
a3828db0 MK |
21082 | #include <fcntl.h> |
21083 | #include <sys/mman.h> | |
7dfa765c | 21084 | |
a3828db0 MK |
21085 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
21086 | char *malloc (); | |
21087 | #endif | |
7dfa765c | 21088 | |
a3828db0 MK |
21089 | /* This mess was copied from the GNU getpagesize.h. */ |
21090 | #if !HAVE_GETPAGESIZE | |
21091 | /* Assume that all systems that can run configure have sys/param.h. */ | |
21092 | # if !HAVE_SYS_PARAM_H | |
21093 | # define HAVE_SYS_PARAM_H 1 | |
21094 | # endif | |
64bb1671 | 21095 | |
a3828db0 MK |
21096 | # ifdef _SC_PAGESIZE |
21097 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
21098 | # else /* no _SC_PAGESIZE */ | |
21099 | # if HAVE_SYS_PARAM_H | |
21100 | # include <sys/param.h> | |
21101 | # ifdef EXEC_PAGESIZE | |
21102 | # define getpagesize() EXEC_PAGESIZE | |
21103 | # else /* no EXEC_PAGESIZE */ | |
21104 | # ifdef NBPG | |
21105 | # define getpagesize() NBPG * CLSIZE | |
21106 | # ifndef CLSIZE | |
21107 | # define CLSIZE 1 | |
21108 | # endif /* no CLSIZE */ | |
21109 | # else /* no NBPG */ | |
21110 | # ifdef NBPC | |
21111 | # define getpagesize() NBPC | |
21112 | # else /* no NBPC */ | |
21113 | # ifdef PAGESIZE | |
21114 | # define getpagesize() PAGESIZE | |
21115 | # endif /* PAGESIZE */ | |
21116 | # endif /* no NBPC */ | |
21117 | # endif /* no NBPG */ | |
21118 | # endif /* no EXEC_PAGESIZE */ | |
21119 | # else /* no HAVE_SYS_PARAM_H */ | |
21120 | # define getpagesize() 8192 /* punt totally */ | |
21121 | # endif /* no HAVE_SYS_PARAM_H */ | |
21122 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 21123 | |
a3828db0 | 21124 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 21125 | |
a3828db0 MK |
21126 | int |
21127 | main () | |
21128 | { | |
21129 | char *data, *data2, *data3; | |
21130 | int i, pagesize; | |
21131 | int fd; | |
97bf5e38 | 21132 | |
a3828db0 MK |
21133 | pagesize = getpagesize (); |
21134 | ||
21135 | /* First, make a file with some known garbage in it. */ | |
21136 | data = (char *) malloc (pagesize); | |
21137 | if (!data) | |
b4e70030 | 21138 | exit (1); |
a3828db0 MK |
21139 | for (i = 0; i < pagesize; ++i) |
21140 | *(data + i) = rand (); | |
21141 | umask (0); | |
21142 | fd = creat ("conftest.mmap", 0600); | |
21143 | if (fd < 0) | |
b4e70030 | 21144 | exit (1); |
a3828db0 | 21145 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 21146 | exit (1); |
a3828db0 MK |
21147 | close (fd); |
21148 | ||
21149 | /* Next, try to mmap the file at a fixed address which already has | |
21150 | something else allocated at it. If we can, also make sure that | |
21151 | we see the same garbage. */ | |
21152 | fd = open ("conftest.mmap", O_RDWR); | |
21153 | if (fd < 0) | |
b4e70030 | 21154 | exit (1); |
a3828db0 MK |
21155 | data2 = (char *) malloc (2 * pagesize); |
21156 | if (!data2) | |
b4e70030 JB |
21157 | exit (1); |
21158 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
21159 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
21160 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 21161 | exit (1); |
a3828db0 MK |
21162 | for (i = 0; i < pagesize; ++i) |
21163 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 21164 | exit (1); |
a3828db0 MK |
21165 | |
21166 | /* Finally, make sure that changes to the mapped area do not | |
21167 | percolate back to the file as seen by read(). (This is a bug on | |
21168 | some variants of i386 svr4.0.) */ | |
21169 | for (i = 0; i < pagesize; ++i) | |
21170 | *(data2 + i) = *(data2 + i) + 1; | |
21171 | data3 = (char *) malloc (pagesize); | |
21172 | if (!data3) | |
b4e70030 | 21173 | exit (1); |
a3828db0 | 21174 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 21175 | exit (1); |
a3828db0 MK |
21176 | for (i = 0; i < pagesize; ++i) |
21177 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 21178 | exit (1); |
a3828db0 | 21179 | close (fd); |
b4e70030 | 21180 | exit (0); |
97bf5e38 | 21181 | } |
bec39cab AC |
21182 | _ACEOF |
21183 | rm -f conftest$ac_exeext | |
21184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21185 | (eval $ac_link) 2>&5 | |
21186 | ac_status=$? | |
21187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 21195 | else |
bec39cab AC |
21196 | echo "$as_me: program exited with status $ac_status" >&5 |
21197 | echo "$as_me: failed program was:" >&5 | |
21198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21199 | ||
21200 | ( exit $ac_status ) | |
a3828db0 | 21201 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 21202 | fi |
b4e70030 | 21203 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 21204 | fi |
a3828db0 | 21205 | fi |
b4e70030 JB |
21206 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
21207 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 21208 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
21209 | |
21210 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 21211 | #define HAVE_MMAP 1 |
bec39cab | 21212 | _ACEOF |
0afdd437 MK |
21213 | |
21214 | fi | |
a3828db0 | 21215 | rm -f conftest.mmap |
0afdd437 | 21216 | |
b4e70030 JB |
21217 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
21218 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 21219 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
21220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21221 | else | |
21222 | cat >conftest.$ac_ext <<_ACEOF | |
21223 | /* confdefs.h. */ | |
21224 | _ACEOF | |
21225 | cat confdefs.h >>conftest.$ac_ext | |
21226 | cat >>conftest.$ac_ext <<_ACEOF | |
21227 | /* end confdefs.h. */ | |
a3828db0 | 21228 | $ac_includes_default |
bec39cab AC |
21229 | int |
21230 | main () | |
21231 | { | |
b4e70030 | 21232 | if ((pid_t *) 0) |
a3828db0 | 21233 | return 0; |
b4e70030 | 21234 | if (sizeof (pid_t)) |
a3828db0 | 21235 | return 0; |
bec39cab AC |
21236 | ; |
21237 | return 0; | |
21238 | } | |
21239 | _ACEOF | |
a3828db0 MK |
21240 | rm -f conftest.$ac_objext |
21241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21242 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
21243 | ac_status=$? |
21244 | grep -v '^ *+' conftest.er1 >conftest.err | |
21245 | rm -f conftest.er1 | |
21246 | cat conftest.err >&5 | |
21247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21248 | (exit $ac_status); } && | |
b4e70030 JB |
21249 | { ac_try='test -z "$ac_c_werror_flag" |
21250 | || test ! -s conftest.err' | |
bec39cab AC |
21251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21252 | (eval $ac_try) 2>&5 | |
21253 | ac_status=$? | |
21254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21255 | (exit $ac_status); }; } && | |
a3828db0 | 21256 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
21257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21258 | (eval $ac_try) 2>&5 | |
21259 | ac_status=$? | |
21260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21261 | (exit $ac_status); }; }; then | |
a3828db0 | 21262 | ac_cv_type_pid_t=yes |
bec39cab AC |
21263 | else |
21264 | echo "$as_me: failed program was:" >&5 | |
21265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21266 | ||
b4e70030 | 21267 | ac_cv_type_pid_t=no |
bec39cab | 21268 | fi |
a3828db0 | 21269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 21270 | fi |
b4e70030 JB |
21271 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
21272 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
21273 | if test $ac_cv_type_pid_t = yes; then |
21274 | : | |
21275 | else | |
21276 | ||
21277 | cat >>confdefs.h <<_ACEOF | |
21278 | #define pid_t int | |
bec39cab | 21279 | _ACEOF |
7e89e357 | 21280 | |
7e89e357 JT |
21281 | fi |
21282 | ||
bec39cab | 21283 | |
b4e70030 JB |
21284 | |
21285 | for ac_header in unistd.h vfork.h | |
7be570e7 | 21286 | do |
a3828db0 | 21287 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
21288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 21292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 21293 | fi |
b4e70030 JB |
21294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 21296 | else |
a3828db0 | 21297 | # Is the header compilable? |
b4e70030 JB |
21298 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21299 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 21300 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
21301 | /* confdefs.h. */ |
21302 | _ACEOF | |
21303 | cat confdefs.h >>conftest.$ac_ext | |
21304 | cat >>conftest.$ac_ext <<_ACEOF | |
21305 | /* end confdefs.h. */ | |
a3828db0 MK |
21306 | $ac_includes_default |
21307 | #include <$ac_header> | |
bec39cab | 21308 | _ACEOF |
a3828db0 MK |
21309 | rm -f conftest.$ac_objext |
21310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21311 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
21312 | ac_status=$? |
21313 | grep -v '^ *+' conftest.er1 >conftest.err | |
21314 | rm -f conftest.er1 | |
21315 | cat conftest.err >&5 | |
21316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21317 | (exit $ac_status); } && | |
b4e70030 JB |
21318 | { ac_try='test -z "$ac_c_werror_flag" |
21319 | || test ! -s conftest.err' | |
bec39cab AC |
21320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21321 | (eval $ac_try) 2>&5 | |
21322 | ac_status=$? | |
21323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21324 | (exit $ac_status); }; } && | |
a3828db0 | 21325 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
21326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21327 | (eval $ac_try) 2>&5 | |
21328 | ac_status=$? | |
21329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21330 | (exit $ac_status); }; }; then | |
a3828db0 | 21331 | ac_header_compiler=yes |
bec39cab AC |
21332 | else |
21333 | echo "$as_me: failed program was:" >&5 | |
21334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21335 | ||
b4e70030 | 21336 | ac_header_compiler=no |
bec39cab | 21337 | fi |
a3828db0 | 21338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
21339 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21340 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
21341 | |
21342 | # Is the header present? | |
b4e70030 JB |
21343 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21344 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
21345 | cat >conftest.$ac_ext <<_ACEOF |
21346 | /* confdefs.h. */ | |
21347 | _ACEOF | |
21348 | cat confdefs.h >>conftest.$ac_ext | |
21349 | cat >>conftest.$ac_ext <<_ACEOF | |
21350 | /* end confdefs.h. */ | |
21351 | #include <$ac_header> | |
21352 | _ACEOF | |
21353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21355 | ac_status=$? | |
21356 | grep -v '^ *+' conftest.er1 >conftest.err | |
21357 | rm -f conftest.er1 | |
21358 | cat conftest.err >&5 | |
21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21360 | (exit $ac_status); } >/dev/null; then | |
21361 | if test -s conftest.err; then | |
21362 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21364 | else | |
21365 | ac_cpp_err= | |
21366 | fi | |
21367 | else | |
21368 | ac_cpp_err=yes | |
21369 | fi | |
21370 | if test -z "$ac_cpp_err"; then | |
21371 | ac_header_preproc=yes | |
21372 | else | |
21373 | echo "$as_me: failed program was:" >&5 | |
21374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21375 | ||
21376 | ac_header_preproc=no | |
21377 | fi | |
21378 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
21379 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21380 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
21381 | |
21382 | # So? What about this header? | |
21383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21384 | yes:no: ) | |
21385 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21386 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
21388 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21389 | ac_header_preproc=yes | |
21390 | ;; | |
21391 | no:yes:* ) | |
21392 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
21393 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
21394 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
21395 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21396 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21397 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21398 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21399 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
21400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
21401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
21402 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
21403 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
21404 | ( |
21405 | cat <<\_ASBOX | |
21406 | ## ------------------------------------------ ## | |
21407 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
21408 | ## ------------------------------------------ ## | |
21409 | _ASBOX | |
21410 | ) | | |
21411 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
21412 | ;; |
21413 | esac | |
b4e70030 JB |
21414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
21417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21418 | else | |
21419 | eval "$as_ac_Header=\$ac_header_preproc" | |
21420 | fi | |
b4e70030 JB |
21421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 21423 | |
bec39cab | 21424 | fi |
a3828db0 | 21425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 21426 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 21427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 21428 | _ACEOF |
14abd0fb | 21429 | |
14abd0fb | 21430 | fi |
a3828db0 | 21431 | |
14abd0fb MK |
21432 | done |
21433 | ||
bec39cab | 21434 | |
a3828db0 MK |
21435 | |
21436 | for ac_func in fork vfork | |
14abd0fb | 21437 | do |
bec39cab | 21438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
21439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21441 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
21442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21443 | else | |
21444 | cat >conftest.$ac_ext <<_ACEOF | |
21445 | /* confdefs.h. */ | |
21446 | _ACEOF | |
21447 | cat confdefs.h >>conftest.$ac_ext | |
21448 | cat >>conftest.$ac_ext <<_ACEOF | |
21449 | /* end confdefs.h. */ | |
21450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21452 | #define $ac_func innocuous_$ac_func | |
21453 | ||
14abd0fb | 21454 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
21455 | which can conflict with char $ac_func (); below. |
21456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21457 | <limits.h> exists even on freestanding compilers. */ | |
21458 | ||
21459 | #ifdef __STDC__ | |
21460 | # include <limits.h> | |
21461 | #else | |
21462 | # include <assert.h> | |
21463 | #endif | |
14abd0fb | 21464 | |
bec39cab | 21465 | #undef $ac_func |
14abd0fb | 21466 | |
b4e70030 | 21467 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
21468 | #ifdef __cplusplus |
21469 | extern "C" | |
b4e70030 | 21470 | { |
bec39cab | 21471 | #endif |
b4e70030 JB |
21472 | /* We use char because int might match the return type of a gcc2 |
21473 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 21474 | char $ac_func (); |
14abd0fb MK |
21475 | /* The GNU C library defines this for functions which it implements |
21476 | to always fail with ENOSYS. Some functions are actually named | |
21477 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 21478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 21479 | choke me |
b4e70030 JB |
21480 | #else |
21481 | char (*f) () = $ac_func; | |
21482 | #endif | |
21483 | #ifdef __cplusplus | |
21484 | } | |
14abd0fb MK |
21485 | #endif |
21486 | ||
bec39cab AC |
21487 | int |
21488 | main () | |
21489 | { | |
b4e70030 | 21490 | return f != $ac_func; |
bec39cab AC |
21491 | ; |
21492 | return 0; | |
21493 | } | |
21494 | _ACEOF | |
21495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21497 | (eval $ac_link) 2>conftest.er1 | |
21498 | ac_status=$? | |
21499 | grep -v '^ *+' conftest.er1 >conftest.err | |
21500 | rm -f conftest.er1 | |
21501 | cat conftest.err >&5 | |
21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21503 | (exit $ac_status); } && | |
b4e70030 JB |
21504 | { ac_try='test -z "$ac_c_werror_flag" |
21505 | || test ! -s conftest.err' | |
bec39cab AC |
21506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21507 | (eval $ac_try) 2>&5 | |
21508 | ac_status=$? | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); }; } && | |
21511 | { ac_try='test -s conftest$ac_exeext' | |
21512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21513 | (eval $ac_try) 2>&5 | |
21514 | ac_status=$? | |
21515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21516 | (exit $ac_status); }; }; then | |
21517 | eval "$as_ac_var=yes" | |
21518 | else | |
21519 | echo "$as_me: failed program was:" >&5 | |
21520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21521 | ||
b4e70030 | 21522 | eval "$as_ac_var=no" |
bec39cab AC |
21523 | fi |
21524 | rm -f conftest.err conftest.$ac_objext \ | |
21525 | conftest$ac_exeext conftest.$ac_ext | |
21526 | fi | |
b4e70030 JB |
21527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
21528 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
21529 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21530 | cat >>confdefs.h <<_ACEOF | |
21531 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21532 | _ACEOF | |
7be570e7 | 21533 | |
7be570e7 JM |
21534 | fi |
21535 | done | |
21536 | ||
a3828db0 | 21537 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
21538 | echo "$as_me:$LINENO: checking for working fork" >&5 |
21539 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
21540 | if test "${ac_cv_func_fork_works+set}" = set; then |
21541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21542 | else | |
21543 | if test "$cross_compiling" = yes; then | |
21544 | ac_cv_func_fork_works=cross | |
21545 | else | |
21546 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
21547 | /* By Ruediger Kuhlmann. */ |
21548 | #include <sys/types.h> | |
21549 | #if HAVE_UNISTD_H | |
21550 | # include <unistd.h> | |
21551 | #endif | |
21552 | /* Some systems only have a dummy stub for fork() */ | |
21553 | int main () | |
21554 | { | |
21555 | if (fork() < 0) | |
21556 | exit (1); | |
21557 | exit (0); | |
21558 | } | |
a3828db0 MK |
21559 | _ACEOF |
21560 | rm -f conftest$ac_exeext | |
21561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21562 | (eval $ac_link) 2>&5 | |
21563 | ac_status=$? | |
21564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21567 | (eval $ac_try) 2>&5 | |
21568 | ac_status=$? | |
21569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21570 | (exit $ac_status); }; }; then | |
21571 | ac_cv_func_fork_works=yes | |
21572 | else | |
21573 | echo "$as_me: program exited with status $ac_status" >&5 | |
21574 | echo "$as_me: failed program was:" >&5 | |
21575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 21576 | |
a3828db0 MK |
21577 | ( exit $ac_status ) |
21578 | ac_cv_func_fork_works=no | |
21579 | fi | |
b4e70030 | 21580 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
21581 | fi |
21582 | fi | |
b4e70030 JB |
21583 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
21584 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
21585 | |
21586 | else | |
21587 | ac_cv_func_fork_works=$ac_cv_func_fork | |
21588 | fi | |
21589 | if test "x$ac_cv_func_fork_works" = xcross; then | |
21590 | case $host in | |
21591 | *-*-amigaos* | *-*-msdosdjgpp*) | |
21592 | # Override, as these systems have only a dummy fork() stub | |
21593 | ac_cv_func_fork_works=no | |
21594 | ;; | |
21595 | *) | |
21596 | ac_cv_func_fork_works=yes | |
21597 | ;; | |
21598 | esac | |
21599 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
21600 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
21601 | fi | |
21602 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
21603 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
21604 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
21605 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 21606 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 21607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
21608 | else |
21609 | if test "$cross_compiling" = yes; then | |
21610 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
21611 | else |
21612 | cat >conftest.$ac_ext <<_ACEOF | |
21613 | /* confdefs.h. */ | |
21614 | _ACEOF | |
21615 | cat confdefs.h >>conftest.$ac_ext | |
21616 | cat >>conftest.$ac_ext <<_ACEOF | |
21617 | /* end confdefs.h. */ | |
a3828db0 | 21618 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
21619 | #include <stdio.h> |
21620 | #include <stdlib.h> | |
21621 | #include <sys/types.h> | |
21622 | #include <sys/stat.h> | |
a3828db0 | 21623 | #include <sys/wait.h> |
b4e70030 JB |
21624 | #if HAVE_UNISTD_H |
21625 | # include <unistd.h> | |
21626 | #endif | |
a3828db0 MK |
21627 | #if HAVE_VFORK_H |
21628 | # include <vfork.h> | |
bec39cab | 21629 | #endif |
a3828db0 MK |
21630 | /* On some sparc systems, changes by the child to local and incoming |
21631 | argument registers are propagated back to the parent. The compiler | |
21632 | is told about this with #include <vfork.h>, but some compilers | |
21633 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
21634 | static variable whose address is put into a register that is | |
21635 | clobbered by the vfork. */ | |
21636 | static void | |
bec39cab | 21637 | #ifdef __cplusplus |
a3828db0 MK |
21638 | sparc_address_test (int arg) |
21639 | # else | |
21640 | sparc_address_test (arg) int arg; | |
c906108c | 21641 | #endif |
a3828db0 MK |
21642 | { |
21643 | static pid_t child; | |
21644 | if (!child) { | |
21645 | child = vfork (); | |
21646 | if (child < 0) { | |
21647 | perror ("vfork"); | |
21648 | _exit(2); | |
21649 | } | |
21650 | if (!child) { | |
21651 | arg = getpid(); | |
21652 | write(-1, "", 0); | |
21653 | _exit (arg); | |
21654 | } | |
21655 | } | |
21656 | } | |
97bf5e38 | 21657 | |
bec39cab AC |
21658 | int |
21659 | main () | |
21660 | { | |
a3828db0 MK |
21661 | pid_t parent = getpid (); |
21662 | pid_t child; | |
21663 | ||
21664 | sparc_address_test (0); | |
21665 | ||
21666 | child = vfork (); | |
21667 | ||
21668 | if (child == 0) { | |
21669 | /* Here is another test for sparc vfork register problems. This | |
21670 | test uses lots of local variables, at least as many local | |
21671 | variables as main has allocated so far including compiler | |
21672 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
21673 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
21674 | reuse the register of parent for one of the local variables, | |
21675 | since it will think that parent can't possibly be used any more | |
21676 | in this routine. Assigning to the local variable will thus | |
21677 | munge parent in the parent process. */ | |
21678 | pid_t | |
21679 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
21680 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
21681 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
21682 | use the same hardware register for all 8 local variables. */ | |
21683 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
21684 | || p != p5 || p != p6 || p != p7) | |
21685 | _exit(1); | |
21686 | ||
21687 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
21688 | from child file descriptors. If the child closes a descriptor | |
21689 | before it execs or exits, this munges the parent's descriptor | |
21690 | as well. Test for this by closing stdout in the child. */ | |
21691 | _exit(close(fileno(stdout)) != 0); | |
21692 | } else { | |
21693 | int status; | |
21694 | struct stat st; | |
21695 | ||
21696 | while (wait(&status) != child) | |
21697 | ; | |
b4e70030 | 21698 | exit( |
a3828db0 MK |
21699 | /* Was there some problem with vforking? */ |
21700 | child < 0 | |
21701 | ||
21702 | /* Did the child fail? (This shouldn't happen.) */ | |
21703 | || status | |
21704 | ||
21705 | /* Did the vfork/compiler bug occur? */ | |
21706 | || parent != getpid() | |
21707 | ||
21708 | /* Did the file descriptor bug occur? */ | |
21709 | || fstat(fileno(stdout), &st) != 0 | |
21710 | ); | |
21711 | } | |
bec39cab AC |
21712 | } |
21713 | _ACEOF | |
a3828db0 | 21714 | rm -f conftest$ac_exeext |
bec39cab | 21715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 21716 | (eval $ac_link) 2>&5 |
bec39cab AC |
21717 | ac_status=$? |
21718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 21719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
21720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21721 | (eval $ac_try) 2>&5 | |
21722 | ac_status=$? | |
21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21724 | (exit $ac_status); }; }; then | |
a3828db0 MK |
21725 | ac_cv_func_vfork_works=yes |
21726 | else | |
21727 | echo "$as_me: program exited with status $ac_status" >&5 | |
21728 | echo "$as_me: failed program was:" >&5 | |
21729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21730 | ||
21731 | ( exit $ac_status ) | |
21732 | ac_cv_func_vfork_works=no | |
21733 | fi | |
b4e70030 | 21734 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
21735 | fi |
21736 | fi | |
b4e70030 JB |
21737 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
21738 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
21739 | |
21740 | fi; | |
21741 | if test "x$ac_cv_func_fork_works" = xcross; then | |
21742 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
21743 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
21744 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
21745 | fi | |
21746 | ||
21747 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
21748 | ||
21749 | cat >>confdefs.h <<\_ACEOF | |
21750 | #define HAVE_WORKING_VFORK 1 | |
21751 | _ACEOF | |
21752 | ||
bec39cab | 21753 | else |
bec39cab | 21754 | |
a3828db0 MK |
21755 | cat >>confdefs.h <<\_ACEOF |
21756 | #define vfork fork | |
21757 | _ACEOF | |
21758 | ||
bec39cab | 21759 | fi |
a3828db0 MK |
21760 | if test "x$ac_cv_func_fork_works" = xyes; then |
21761 | ||
21762 | cat >>confdefs.h <<\_ACEOF | |
21763 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 21764 | _ACEOF |
c906108c | 21765 | |
c906108c SS |
21766 | fi |
21767 | ||
bec39cab AC |
21768 | |
21769 | ||
a3828db0 | 21770 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 21771 | do |
bec39cab | 21772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 21773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
21774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
21775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21777 | else | |
21778 | cat >conftest.$ac_ext <<_ACEOF | |
21779 | /* confdefs.h. */ | |
21780 | _ACEOF | |
21781 | cat confdefs.h >>conftest.$ac_ext | |
21782 | cat >>conftest.$ac_ext <<_ACEOF | |
21783 | /* end confdefs.h. */ | |
21784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21786 | #define $ac_func innocuous_$ac_func | |
21787 | ||
21788 | /* System header to define __stub macros and hopefully few prototypes, | |
21789 | which can conflict with char $ac_func (); below. | |
21790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21791 | <limits.h> exists even on freestanding compilers. */ | |
21792 | ||
21793 | #ifdef __STDC__ | |
21794 | # include <limits.h> | |
21795 | #else | |
21796 | # include <assert.h> | |
21797 | #endif | |
21798 | ||
21799 | #undef $ac_func | |
21800 | ||
21801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21802 | #ifdef __cplusplus | |
21803 | extern "C" | |
21804 | { | |
21805 | #endif | |
21806 | /* We use char because int might match the return type of a gcc2 | |
21807 | builtin and then its argument prototype would still apply. */ | |
21808 | char $ac_func (); | |
21809 | /* The GNU C library defines this for functions which it implements | |
21810 | to always fail with ENOSYS. Some functions are actually named | |
21811 | something starting with __ and the normal name is an alias. */ | |
21812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21813 | choke me | |
21814 | #else | |
21815 | char (*f) () = $ac_func; | |
21816 | #endif | |
21817 | #ifdef __cplusplus | |
21818 | } | |
21819 | #endif | |
21820 | ||
21821 | int | |
21822 | main () | |
21823 | { | |
21824 | return f != $ac_func; | |
21825 | ; | |
21826 | return 0; | |
21827 | } | |
21828 | _ACEOF | |
21829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21831 | (eval $ac_link) 2>conftest.er1 | |
21832 | ac_status=$? | |
21833 | grep -v '^ *+' conftest.er1 >conftest.err | |
21834 | rm -f conftest.er1 | |
21835 | cat conftest.err >&5 | |
21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21837 | (exit $ac_status); } && | |
21838 | { ac_try='test -z "$ac_c_werror_flag" | |
21839 | || test ! -s conftest.err' | |
21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21841 | (eval $ac_try) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); }; } && | |
21845 | { ac_try='test -s conftest$ac_exeext' | |
21846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21847 | (eval $ac_try) 2>&5 | |
21848 | ac_status=$? | |
21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21850 | (exit $ac_status); }; }; then | |
21851 | eval "$as_ac_var=yes" | |
21852 | else | |
21853 | echo "$as_me: failed program was:" >&5 | |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21855 | ||
21856 | eval "$as_ac_var=no" | |
21857 | fi | |
21858 | rm -f conftest.err conftest.$ac_objext \ | |
21859 | conftest$ac_exeext conftest.$ac_ext | |
21860 | fi | |
21861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21862 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21863 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21864 | cat >>confdefs.h <<_ACEOF | |
21865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21866 | _ACEOF | |
21867 | ||
21868 | fi | |
21869 | done | |
21870 | ||
21871 | ||
21872 | for ac_func in getrusage | |
21873 | do | |
21874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
21876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
21877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
21878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21879 | else | |
21880 | cat >conftest.$ac_ext <<_ACEOF | |
21881 | /* confdefs.h. */ | |
21882 | _ACEOF | |
21883 | cat confdefs.h >>conftest.$ac_ext | |
21884 | cat >>conftest.$ac_ext <<_ACEOF | |
21885 | /* end confdefs.h. */ | |
21886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21888 | #define $ac_func innocuous_$ac_func | |
21889 | ||
d3ea6809 MM |
21890 | /* System header to define __stub macros and hopefully few prototypes, |
21891 | which can conflict with char $ac_func (); below. | |
21892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21893 | <limits.h> exists even on freestanding compilers. */ | |
21894 | ||
21895 | #ifdef __STDC__ | |
21896 | # include <limits.h> | |
21897 | #else | |
21898 | # include <assert.h> | |
21899 | #endif | |
21900 | ||
21901 | #undef $ac_func | |
21902 | ||
b4e70030 | 21903 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
21904 | #ifdef __cplusplus |
21905 | extern "C" | |
b4e70030 | 21906 | { |
d3ea6809 | 21907 | #endif |
b4e70030 JB |
21908 | /* We use char because int might match the return type of a gcc2 |
21909 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
21910 | char $ac_func (); |
21911 | /* The GNU C library defines this for functions which it implements | |
21912 | to always fail with ENOSYS. Some functions are actually named | |
21913 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 21914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 21915 | choke me |
b4e70030 JB |
21916 | #else |
21917 | char (*f) () = $ac_func; | |
21918 | #endif | |
21919 | #ifdef __cplusplus | |
21920 | } | |
d3ea6809 MM |
21921 | #endif |
21922 | ||
21923 | int | |
21924 | main () | |
21925 | { | |
b4e70030 | 21926 | return f != $ac_func; |
d3ea6809 MM |
21927 | ; |
21928 | return 0; | |
21929 | } | |
21930 | _ACEOF | |
21931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21933 | (eval $ac_link) 2>conftest.er1 | |
21934 | ac_status=$? | |
21935 | grep -v '^ *+' conftest.er1 >conftest.err | |
21936 | rm -f conftest.er1 | |
21937 | cat conftest.err >&5 | |
21938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21939 | (exit $ac_status); } && | |
b4e70030 JB |
21940 | { ac_try='test -z "$ac_c_werror_flag" |
21941 | || test ! -s conftest.err' | |
d3ea6809 MM |
21942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21943 | (eval $ac_try) 2>&5 | |
21944 | ac_status=$? | |
21945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21946 | (exit $ac_status); }; } && | |
21947 | { ac_try='test -s conftest$ac_exeext' | |
21948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21949 | (eval $ac_try) 2>&5 | |
21950 | ac_status=$? | |
21951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21952 | (exit $ac_status); }; }; then | |
21953 | eval "$as_ac_var=yes" | |
21954 | else | |
21955 | echo "$as_me: failed program was:" >&5 | |
21956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21957 | ||
b4e70030 | 21958 | eval "$as_ac_var=no" |
d3ea6809 MM |
21959 | fi |
21960 | rm -f conftest.err conftest.$ac_objext \ | |
21961 | conftest$ac_exeext conftest.$ac_ext | |
21962 | fi | |
b4e70030 JB |
21963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
21964 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
21965 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21966 | cat >>confdefs.h <<_ACEOF | |
21967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21968 | _ACEOF | |
21969 | ||
21970 | fi | |
21971 | done | |
21972 | ||
21973 | ||
21974 | ||
21975 | for ac_func in getuid getgid | |
21976 | do | |
21977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
21978 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21980 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
21981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21982 | else | |
21983 | cat >conftest.$ac_ext <<_ACEOF | |
21984 | /* confdefs.h. */ | |
21985 | _ACEOF | |
21986 | cat confdefs.h >>conftest.$ac_ext | |
21987 | cat >>conftest.$ac_ext <<_ACEOF | |
21988 | /* end confdefs.h. */ | |
21989 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21991 | #define $ac_func innocuous_$ac_func | |
21992 | ||
97bf5e38 | 21993 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
21994 | which can conflict with char $ac_func (); below. |
21995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21996 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 21997 | |
bec39cab AC |
21998 | #ifdef __STDC__ |
21999 | # include <limits.h> | |
22000 | #else | |
22001 | # include <assert.h> | |
22002 | #endif | |
97bf5e38 | 22003 | |
bec39cab AC |
22004 | #undef $ac_func |
22005 | ||
b4e70030 | 22006 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
22007 | #ifdef __cplusplus |
22008 | extern "C" | |
b4e70030 | 22009 | { |
bec39cab | 22010 | #endif |
b4e70030 JB |
22011 | /* We use char because int might match the return type of a gcc2 |
22012 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 22013 | char $ac_func (); |
97bf5e38 MK |
22014 | /* The GNU C library defines this for functions which it implements |
22015 | to always fail with ENOSYS. Some functions are actually named | |
22016 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22017 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 22018 | choke me |
b4e70030 JB |
22019 | #else |
22020 | char (*f) () = $ac_func; | |
22021 | #endif | |
22022 | #ifdef __cplusplus | |
22023 | } | |
c906108c | 22024 | #endif |
97bf5e38 | 22025 | |
bec39cab AC |
22026 | int |
22027 | main () | |
22028 | { | |
b4e70030 | 22029 | return f != $ac_func; |
bec39cab AC |
22030 | ; |
22031 | return 0; | |
22032 | } | |
22033 | _ACEOF | |
22034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22036 | (eval $ac_link) 2>conftest.er1 | |
22037 | ac_status=$? | |
22038 | grep -v '^ *+' conftest.er1 >conftest.err | |
22039 | rm -f conftest.er1 | |
22040 | cat conftest.err >&5 | |
22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22042 | (exit $ac_status); } && | |
b4e70030 JB |
22043 | { ac_try='test -z "$ac_c_werror_flag" |
22044 | || test ! -s conftest.err' | |
bec39cab AC |
22045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22046 | (eval $ac_try) 2>&5 | |
22047 | ac_status=$? | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); }; } && | |
22050 | { ac_try='test -s conftest$ac_exeext' | |
22051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22052 | (eval $ac_try) 2>&5 | |
22053 | ac_status=$? | |
22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22055 | (exit $ac_status); }; }; then | |
22056 | eval "$as_ac_var=yes" | |
22057 | else | |
22058 | echo "$as_me: failed program was:" >&5 | |
22059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22060 | ||
b4e70030 | 22061 | eval "$as_ac_var=no" |
bec39cab AC |
22062 | fi |
22063 | rm -f conftest.err conftest.$ac_objext \ | |
22064 | conftest$ac_exeext conftest.$ac_ext | |
22065 | fi | |
b4e70030 JB |
22066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22067 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
22068 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22069 | cat >>confdefs.h <<_ACEOF | |
22070 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22071 | _ACEOF | |
c906108c | 22072 | |
c906108c | 22073 | fi |
97bf5e38 | 22074 | done |
c906108c | 22075 | |
bec39cab | 22076 | |
a3828db0 | 22077 | for ac_func in poll |
97bf5e38 | 22078 | do |
bec39cab | 22079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
22080 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22082 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22084 | else | |
22085 | cat >conftest.$ac_ext <<_ACEOF | |
22086 | /* confdefs.h. */ | |
22087 | _ACEOF | |
22088 | cat confdefs.h >>conftest.$ac_ext | |
22089 | cat >>conftest.$ac_ext <<_ACEOF | |
22090 | /* end confdefs.h. */ | |
22091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22093 | #define $ac_func innocuous_$ac_func | |
22094 | ||
97bf5e38 | 22095 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
22096 | which can conflict with char $ac_func (); below. |
22097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22098 | <limits.h> exists even on freestanding compilers. */ | |
22099 | ||
22100 | #ifdef __STDC__ | |
22101 | # include <limits.h> | |
22102 | #else | |
22103 | # include <assert.h> | |
22104 | #endif | |
c906108c | 22105 | |
bec39cab | 22106 | #undef $ac_func |
97bf5e38 | 22107 | |
b4e70030 | 22108 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
22109 | #ifdef __cplusplus |
22110 | extern "C" | |
b4e70030 | 22111 | { |
bec39cab | 22112 | #endif |
b4e70030 JB |
22113 | /* We use char because int might match the return type of a gcc2 |
22114 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 22115 | char $ac_func (); |
97bf5e38 MK |
22116 | /* The GNU C library defines this for functions which it implements |
22117 | to always fail with ENOSYS. Some functions are actually named | |
22118 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 22120 | choke me |
b4e70030 JB |
22121 | #else |
22122 | char (*f) () = $ac_func; | |
22123 | #endif | |
22124 | #ifdef __cplusplus | |
22125 | } | |
c906108c | 22126 | #endif |
97bf5e38 | 22127 | |
bec39cab AC |
22128 | int |
22129 | main () | |
22130 | { | |
b4e70030 | 22131 | return f != $ac_func; |
bec39cab AC |
22132 | ; |
22133 | return 0; | |
22134 | } | |
22135 | _ACEOF | |
22136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22138 | (eval $ac_link) 2>conftest.er1 | |
22139 | ac_status=$? | |
22140 | grep -v '^ *+' conftest.er1 >conftest.err | |
22141 | rm -f conftest.er1 | |
22142 | cat conftest.err >&5 | |
22143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22144 | (exit $ac_status); } && | |
b4e70030 JB |
22145 | { ac_try='test -z "$ac_c_werror_flag" |
22146 | || test ! -s conftest.err' | |
bec39cab AC |
22147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22148 | (eval $ac_try) 2>&5 | |
22149 | ac_status=$? | |
22150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22151 | (exit $ac_status); }; } && | |
22152 | { ac_try='test -s conftest$ac_exeext' | |
22153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22154 | (eval $ac_try) 2>&5 | |
22155 | ac_status=$? | |
22156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22157 | (exit $ac_status); }; }; then | |
22158 | eval "$as_ac_var=yes" | |
22159 | else | |
22160 | echo "$as_me: failed program was:" >&5 | |
22161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22162 | ||
b4e70030 | 22163 | eval "$as_ac_var=no" |
bec39cab AC |
22164 | fi |
22165 | rm -f conftest.err conftest.$ac_objext \ | |
22166 | conftest$ac_exeext conftest.$ac_ext | |
22167 | fi | |
b4e70030 JB |
22168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
22170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22171 | cat >>confdefs.h <<_ACEOF | |
22172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22173 | _ACEOF | |
c906108c | 22174 | |
c906108c | 22175 | fi |
97bf5e38 | 22176 | done |
c906108c | 22177 | |
bec39cab | 22178 | |
a3828db0 | 22179 | for ac_func in pread64 |
97bf5e38 | 22180 | do |
bec39cab | 22181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
22182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22184 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22186 | else | |
22187 | cat >conftest.$ac_ext <<_ACEOF | |
22188 | /* confdefs.h. */ | |
22189 | _ACEOF | |
22190 | cat confdefs.h >>conftest.$ac_ext | |
22191 | cat >>conftest.$ac_ext <<_ACEOF | |
22192 | /* end confdefs.h. */ | |
22193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22195 | #define $ac_func innocuous_$ac_func | |
22196 | ||
97bf5e38 | 22197 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
22198 | which can conflict with char $ac_func (); below. |
22199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22200 | <limits.h> exists even on freestanding compilers. */ | |
22201 | ||
22202 | #ifdef __STDC__ | |
22203 | # include <limits.h> | |
22204 | #else | |
22205 | # include <assert.h> | |
22206 | #endif | |
c906108c | 22207 | |
bec39cab | 22208 | #undef $ac_func |
97bf5e38 | 22209 | |
b4e70030 | 22210 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
22211 | #ifdef __cplusplus |
22212 | extern "C" | |
b4e70030 | 22213 | { |
bec39cab | 22214 | #endif |
b4e70030 JB |
22215 | /* We use char because int might match the return type of a gcc2 |
22216 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 22217 | char $ac_func (); |
97bf5e38 MK |
22218 | /* The GNU C library defines this for functions which it implements |
22219 | to always fail with ENOSYS. Some functions are actually named | |
22220 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 22222 | choke me |
b4e70030 JB |
22223 | #else |
22224 | char (*f) () = $ac_func; | |
22225 | #endif | |
22226 | #ifdef __cplusplus | |
22227 | } | |
c906108c | 22228 | #endif |
97bf5e38 | 22229 | |
bec39cab AC |
22230 | int |
22231 | main () | |
22232 | { | |
b4e70030 | 22233 | return f != $ac_func; |
bec39cab AC |
22234 | ; |
22235 | return 0; | |
22236 | } | |
22237 | _ACEOF | |
22238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22240 | (eval $ac_link) 2>conftest.er1 | |
22241 | ac_status=$? | |
22242 | grep -v '^ *+' conftest.er1 >conftest.err | |
22243 | rm -f conftest.er1 | |
22244 | cat conftest.err >&5 | |
22245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22246 | (exit $ac_status); } && | |
b4e70030 JB |
22247 | { ac_try='test -z "$ac_c_werror_flag" |
22248 | || test ! -s conftest.err' | |
bec39cab AC |
22249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22250 | (eval $ac_try) 2>&5 | |
22251 | ac_status=$? | |
22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22253 | (exit $ac_status); }; } && | |
22254 | { ac_try='test -s conftest$ac_exeext' | |
22255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22256 | (eval $ac_try) 2>&5 | |
22257 | ac_status=$? | |
22258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22259 | (exit $ac_status); }; }; then | |
22260 | eval "$as_ac_var=yes" | |
22261 | else | |
22262 | echo "$as_me: failed program was:" >&5 | |
22263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22264 | ||
b4e70030 | 22265 | eval "$as_ac_var=no" |
bec39cab AC |
22266 | fi |
22267 | rm -f conftest.err conftest.$ac_objext \ | |
22268 | conftest$ac_exeext conftest.$ac_ext | |
22269 | fi | |
b4e70030 JB |
22270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22271 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
22272 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22273 | cat >>confdefs.h <<_ACEOF | |
22274 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22275 | _ACEOF | |
c906108c | 22276 | |
c906108c | 22277 | fi |
97bf5e38 | 22278 | done |
c906108c | 22279 | |
bec39cab | 22280 | |
a3828db0 | 22281 | for ac_func in sbrk |
b757528f | 22282 | do |
bec39cab | 22283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
22284 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22286 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22288 | else | |
22289 | cat >conftest.$ac_ext <<_ACEOF | |
22290 | /* confdefs.h. */ | |
22291 | _ACEOF | |
22292 | cat confdefs.h >>conftest.$ac_ext | |
22293 | cat >>conftest.$ac_ext <<_ACEOF | |
22294 | /* end confdefs.h. */ | |
22295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22297 | #define $ac_func innocuous_$ac_func | |
22298 | ||
b757528f | 22299 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
22300 | which can conflict with char $ac_func (); below. |
22301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22302 | <limits.h> exists even on freestanding compilers. */ | |
22303 | ||
22304 | #ifdef __STDC__ | |
22305 | # include <limits.h> | |
22306 | #else | |
22307 | # include <assert.h> | |
22308 | #endif | |
b757528f | 22309 | |
bec39cab | 22310 | #undef $ac_func |
b757528f | 22311 | |
b4e70030 | 22312 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
22313 | #ifdef __cplusplus |
22314 | extern "C" | |
b4e70030 | 22315 | { |
bec39cab | 22316 | #endif |
b4e70030 JB |
22317 | /* We use char because int might match the return type of a gcc2 |
22318 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 22319 | char $ac_func (); |
b757528f JJ |
22320 | /* The GNU C library defines this for functions which it implements |
22321 | to always fail with ENOSYS. Some functions are actually named | |
22322 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 22324 | choke me |
b4e70030 JB |
22325 | #else |
22326 | char (*f) () = $ac_func; | |
22327 | #endif | |
22328 | #ifdef __cplusplus | |
22329 | } | |
b757528f JJ |
22330 | #endif |
22331 | ||
bec39cab AC |
22332 | int |
22333 | main () | |
22334 | { | |
b4e70030 | 22335 | return f != $ac_func; |
bec39cab AC |
22336 | ; |
22337 | return 0; | |
22338 | } | |
22339 | _ACEOF | |
22340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22342 | (eval $ac_link) 2>conftest.er1 | |
22343 | ac_status=$? | |
22344 | grep -v '^ *+' conftest.er1 >conftest.err | |
22345 | rm -f conftest.er1 | |
22346 | cat conftest.err >&5 | |
22347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22348 | (exit $ac_status); } && | |
b4e70030 JB |
22349 | { ac_try='test -z "$ac_c_werror_flag" |
22350 | || test ! -s conftest.err' | |
bec39cab AC |
22351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22352 | (eval $ac_try) 2>&5 | |
22353 | ac_status=$? | |
22354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22355 | (exit $ac_status); }; } && | |
22356 | { ac_try='test -s conftest$ac_exeext' | |
22357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22358 | (eval $ac_try) 2>&5 | |
22359 | ac_status=$? | |
22360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22361 | (exit $ac_status); }; }; then | |
22362 | eval "$as_ac_var=yes" | |
22363 | else | |
22364 | echo "$as_me: failed program was:" >&5 | |
22365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22366 | ||
b4e70030 | 22367 | eval "$as_ac_var=no" |
bec39cab AC |
22368 | fi |
22369 | rm -f conftest.err conftest.$ac_objext \ | |
22370 | conftest$ac_exeext conftest.$ac_ext | |
22371 | fi | |
b4e70030 JB |
22372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
22374 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22375 | cat >>confdefs.h <<_ACEOF | |
22376 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22377 | _ACEOF | |
b757528f | 22378 | |
b757528f JJ |
22379 | fi |
22380 | done | |
22381 | ||
bec39cab | 22382 | |
a3828db0 | 22383 | |
83116857 TJB |
22384 | |
22385 | for ac_func in setpgid setpgrp setsid | |
bcb3dc3d | 22386 | do |
bec39cab | 22387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
22388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22390 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22392 | else | |
22393 | cat >conftest.$ac_ext <<_ACEOF | |
22394 | /* confdefs.h. */ | |
22395 | _ACEOF | |
22396 | cat confdefs.h >>conftest.$ac_ext | |
22397 | cat >>conftest.$ac_ext <<_ACEOF | |
22398 | /* end confdefs.h. */ | |
22399 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22401 | #define $ac_func innocuous_$ac_func | |
22402 | ||
bcb3dc3d | 22403 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
22404 | which can conflict with char $ac_func (); below. |
22405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22406 | <limits.h> exists even on freestanding compilers. */ | |
22407 | ||
22408 | #ifdef __STDC__ | |
22409 | # include <limits.h> | |
22410 | #else | |
22411 | # include <assert.h> | |
22412 | #endif | |
bcb3dc3d | 22413 | |
bec39cab | 22414 | #undef $ac_func |
bcb3dc3d | 22415 | |
b4e70030 | 22416 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
22417 | #ifdef __cplusplus |
22418 | extern "C" | |
b4e70030 | 22419 | { |
bec39cab | 22420 | #endif |
b4e70030 JB |
22421 | /* We use char because int might match the return type of a gcc2 |
22422 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 22423 | char $ac_func (); |
bcb3dc3d MK |
22424 | /* The GNU C library defines this for functions which it implements |
22425 | to always fail with ENOSYS. Some functions are actually named | |
22426 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 22428 | choke me |
b4e70030 JB |
22429 | #else |
22430 | char (*f) () = $ac_func; | |
22431 | #endif | |
22432 | #ifdef __cplusplus | |
22433 | } | |
bcb3dc3d MK |
22434 | #endif |
22435 | ||
bec39cab AC |
22436 | int |
22437 | main () | |
22438 | { | |
b4e70030 | 22439 | return f != $ac_func; |
bec39cab AC |
22440 | ; |
22441 | return 0; | |
22442 | } | |
22443 | _ACEOF | |
22444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22446 | (eval $ac_link) 2>conftest.er1 | |
22447 | ac_status=$? | |
22448 | grep -v '^ *+' conftest.er1 >conftest.err | |
22449 | rm -f conftest.er1 | |
22450 | cat conftest.err >&5 | |
22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22452 | (exit $ac_status); } && | |
b4e70030 JB |
22453 | { ac_try='test -z "$ac_c_werror_flag" |
22454 | || test ! -s conftest.err' | |
bec39cab AC |
22455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22456 | (eval $ac_try) 2>&5 | |
22457 | ac_status=$? | |
22458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22459 | (exit $ac_status); }; } && | |
22460 | { ac_try='test -s conftest$ac_exeext' | |
22461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22462 | (eval $ac_try) 2>&5 | |
22463 | ac_status=$? | |
22464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22465 | (exit $ac_status); }; }; then | |
22466 | eval "$as_ac_var=yes" | |
22467 | else | |
22468 | echo "$as_me: failed program was:" >&5 | |
22469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22470 | ||
b4e70030 | 22471 | eval "$as_ac_var=no" |
bec39cab AC |
22472 | fi |
22473 | rm -f conftest.err conftest.$ac_objext \ | |
22474 | conftest$ac_exeext conftest.$ac_ext | |
22475 | fi | |
b4e70030 JB |
22476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
22478 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22479 | cat >>confdefs.h <<_ACEOF | |
22480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22481 | _ACEOF | |
bcb3dc3d | 22482 | |
bcb3dc3d MK |
22483 | fi |
22484 | done | |
22485 | ||
bec39cab | 22486 | |
a3828db0 MK |
22487 | |
22488 | ||
22489 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 22490 | do |
bec39cab | 22491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
22492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22496 | else | |
22497 | cat >conftest.$ac_ext <<_ACEOF | |
22498 | /* confdefs.h. */ | |
22499 | _ACEOF | |
22500 | cat confdefs.h >>conftest.$ac_ext | |
22501 | cat >>conftest.$ac_ext <<_ACEOF | |
22502 | /* end confdefs.h. */ | |
22503 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22504 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22505 | #define $ac_func innocuous_$ac_func | |
22506 | ||
8b9cf735 | 22507 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
22508 | which can conflict with char $ac_func (); below. |
22509 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22510 | <limits.h> exists even on freestanding compilers. */ | |
22511 | ||
22512 | #ifdef __STDC__ | |
22513 | # include <limits.h> | |
22514 | #else | |
22515 | # include <assert.h> | |
22516 | #endif | |
8b9cf735 | 22517 | |
bec39cab | 22518 | #undef $ac_func |
8b9cf735 | 22519 | |
b4e70030 | 22520 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
22521 | #ifdef __cplusplus |
22522 | extern "C" | |
b4e70030 | 22523 | { |
a3828db0 | 22524 | #endif |
b4e70030 JB |
22525 | /* We use char because int might match the return type of a gcc2 |
22526 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
22527 | char $ac_func (); |
22528 | /* The GNU C library defines this for functions which it implements | |
22529 | to always fail with ENOSYS. Some functions are actually named | |
22530 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22531 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 22532 | choke me |
b4e70030 JB |
22533 | #else |
22534 | char (*f) () = $ac_func; | |
22535 | #endif | |
22536 | #ifdef __cplusplus | |
22537 | } | |
a3828db0 MK |
22538 | #endif |
22539 | ||
bec39cab AC |
22540 | int |
22541 | main () | |
22542 | { | |
b4e70030 | 22543 | return f != $ac_func; |
bec39cab AC |
22544 | ; |
22545 | return 0; | |
22546 | } | |
22547 | _ACEOF | |
a3828db0 MK |
22548 | rm -f conftest.$ac_objext conftest$ac_exeext |
22549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22550 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
22551 | ac_status=$? |
22552 | grep -v '^ *+' conftest.er1 >conftest.err | |
22553 | rm -f conftest.er1 | |
22554 | cat conftest.err >&5 | |
22555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22556 | (exit $ac_status); } && | |
b4e70030 JB |
22557 | { ac_try='test -z "$ac_c_werror_flag" |
22558 | || test ! -s conftest.err' | |
bec39cab AC |
22559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22560 | (eval $ac_try) 2>&5 | |
22561 | ac_status=$? | |
22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22563 | (exit $ac_status); }; } && | |
a3828db0 | 22564 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
22565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22566 | (eval $ac_try) 2>&5 | |
22567 | ac_status=$? | |
22568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22569 | (exit $ac_status); }; }; then | |
a3828db0 | 22570 | eval "$as_ac_var=yes" |
086ec9eb | 22571 | else |
bec39cab AC |
22572 | echo "$as_me: failed program was:" >&5 |
22573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22574 | ||
b4e70030 | 22575 | eval "$as_ac_var=no" |
a3828db0 MK |
22576 | fi |
22577 | rm -f conftest.err conftest.$ac_objext \ | |
22578 | conftest$ac_exeext conftest.$ac_ext | |
22579 | fi | |
b4e70030 JB |
22580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22581 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
22582 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22583 | cat >>confdefs.h <<_ACEOF | |
22584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22585 | _ACEOF | |
22586 | ||
086ec9eb | 22587 | fi |
a3828db0 MK |
22588 | done |
22589 | ||
22590 | ||
22591 | for ac_func in socketpair | |
22592 | do | |
22593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
22594 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22596 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
22597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22598 | else | |
22599 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
22600 | /* confdefs.h. */ |
22601 | _ACEOF | |
22602 | cat confdefs.h >>conftest.$ac_ext | |
22603 | cat >>conftest.$ac_ext <<_ACEOF | |
22604 | /* end confdefs.h. */ | |
a3828db0 MK |
22605 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22607 | #define $ac_func innocuous_$ac_func | |
22608 | ||
22609 | /* System header to define __stub macros and hopefully few prototypes, | |
22610 | which can conflict with char $ac_func (); below. | |
22611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22612 | <limits.h> exists even on freestanding compilers. */ | |
22613 | ||
22614 | #ifdef __STDC__ | |
22615 | # include <limits.h> | |
22616 | #else | |
22617 | # include <assert.h> | |
22618 | #endif | |
22619 | ||
22620 | #undef $ac_func | |
22621 | ||
b4e70030 | 22622 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
22623 | #ifdef __cplusplus |
22624 | extern "C" | |
b4e70030 | 22625 | { |
a3828db0 | 22626 | #endif |
b4e70030 JB |
22627 | /* We use char because int might match the return type of a gcc2 |
22628 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
22629 | char $ac_func (); |
22630 | /* The GNU C library defines this for functions which it implements | |
22631 | to always fail with ENOSYS. Some functions are actually named | |
22632 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22633 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 22634 | choke me |
b4e70030 JB |
22635 | #else |
22636 | char (*f) () = $ac_func; | |
22637 | #endif | |
22638 | #ifdef __cplusplus | |
22639 | } | |
a3828db0 MK |
22640 | #endif |
22641 | ||
bec39cab AC |
22642 | int |
22643 | main () | |
22644 | { | |
b4e70030 | 22645 | return f != $ac_func; |
bec39cab AC |
22646 | ; |
22647 | return 0; | |
22648 | } | |
22649 | _ACEOF | |
a3828db0 MK |
22650 | rm -f conftest.$ac_objext conftest$ac_exeext |
22651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22652 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
22653 | ac_status=$? |
22654 | grep -v '^ *+' conftest.er1 >conftest.err | |
22655 | rm -f conftest.er1 | |
22656 | cat conftest.err >&5 | |
22657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22658 | (exit $ac_status); } && | |
b4e70030 JB |
22659 | { ac_try='test -z "$ac_c_werror_flag" |
22660 | || test ! -s conftest.err' | |
bec39cab AC |
22661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22662 | (eval $ac_try) 2>&5 | |
22663 | ac_status=$? | |
22664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22665 | (exit $ac_status); }; } && | |
a3828db0 | 22666 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
22667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22668 | (eval $ac_try) 2>&5 | |
22669 | ac_status=$? | |
22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22671 | (exit $ac_status); }; }; then | |
a3828db0 | 22672 | eval "$as_ac_var=yes" |
086ec9eb | 22673 | else |
bec39cab AC |
22674 | echo "$as_me: failed program was:" >&5 |
22675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22676 | ||
b4e70030 | 22677 | eval "$as_ac_var=no" |
086ec9eb | 22678 | fi |
a3828db0 MK |
22679 | rm -f conftest.err conftest.$ac_objext \ |
22680 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 22681 | fi |
b4e70030 JB |
22682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22683 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
22684 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22685 | cat >>confdefs.h <<_ACEOF | |
22686 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 22687 | _ACEOF |
086ec9eb MK |
22688 | |
22689 | fi | |
a3828db0 | 22690 | done |
086ec9eb | 22691 | |
a3828db0 MK |
22692 | |
22693 | for ac_func in syscall | |
22694 | do | |
22695 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
22696 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22697 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22698 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 22699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
22700 | else |
22701 | cat >conftest.$ac_ext <<_ACEOF | |
22702 | /* confdefs.h. */ | |
22703 | _ACEOF | |
22704 | cat confdefs.h >>conftest.$ac_ext | |
22705 | cat >>conftest.$ac_ext <<_ACEOF | |
22706 | /* end confdefs.h. */ | |
a3828db0 MK |
22707 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22708 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22709 | #define $ac_func innocuous_$ac_func | |
22710 | ||
22711 | /* System header to define __stub macros and hopefully few prototypes, | |
22712 | which can conflict with char $ac_func (); below. | |
22713 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22714 | <limits.h> exists even on freestanding compilers. */ | |
22715 | ||
22716 | #ifdef __STDC__ | |
22717 | # include <limits.h> | |
22718 | #else | |
22719 | # include <assert.h> | |
22720 | #endif | |
22721 | ||
22722 | #undef $ac_func | |
22723 | ||
b4e70030 | 22724 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
22725 | #ifdef __cplusplus |
22726 | extern "C" | |
b4e70030 | 22727 | { |
a3828db0 | 22728 | #endif |
b4e70030 JB |
22729 | /* We use char because int might match the return type of a gcc2 |
22730 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
22731 | char $ac_func (); |
22732 | /* The GNU C library defines this for functions which it implements | |
22733 | to always fail with ENOSYS. Some functions are actually named | |
22734 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22735 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 22736 | choke me |
b4e70030 JB |
22737 | #else |
22738 | char (*f) () = $ac_func; | |
22739 | #endif | |
22740 | #ifdef __cplusplus | |
22741 | } | |
c906108c | 22742 | #endif |
97bf5e38 | 22743 | |
bec39cab AC |
22744 | int |
22745 | main () | |
97bf5e38 | 22746 | { |
b4e70030 | 22747 | return f != $ac_func; |
bec39cab AC |
22748 | ; |
22749 | return 0; | |
97bf5e38 | 22750 | } |
bec39cab | 22751 | _ACEOF |
a3828db0 | 22752 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 22753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 22754 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 22755 | ac_status=$? |
a3828db0 MK |
22756 | grep -v '^ *+' conftest.er1 >conftest.err |
22757 | rm -f conftest.er1 | |
22758 | cat conftest.err >&5 | |
bec39cab | 22759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 22760 | (exit $ac_status); } && |
b4e70030 JB |
22761 | { ac_try='test -z "$ac_c_werror_flag" |
22762 | || test ! -s conftest.err' | |
a3828db0 MK |
22763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22764 | (eval $ac_try) 2>&5 | |
22765 | ac_status=$? | |
22766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22767 | (exit $ac_status); }; } && | |
22768 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
22769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22770 | (eval $ac_try) 2>&5 | |
22771 | ac_status=$? | |
22772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22773 | (exit $ac_status); }; }; then | |
a3828db0 | 22774 | eval "$as_ac_var=yes" |
c906108c | 22775 | else |
a3828db0 | 22776 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
22777 | sed 's/^/| /' conftest.$ac_ext >&5 |
22778 | ||
b4e70030 | 22779 | eval "$as_ac_var=no" |
97bf5e38 | 22780 | fi |
a3828db0 MK |
22781 | rm -f conftest.err conftest.$ac_objext \ |
22782 | conftest$ac_exeext conftest.$ac_ext | |
22783 | fi | |
b4e70030 JB |
22784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22785 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
22786 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22787 | cat >>confdefs.h <<_ACEOF | |
22788 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 22789 | _ACEOF |
c906108c SS |
22790 | |
22791 | fi | |
a3828db0 | 22792 | done |
c906108c | 22793 | |
a3828db0 MK |
22794 | |
22795 | for ac_func in ttrace | |
22796 | do | |
22797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
22798 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22800 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 22801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 22802 | else |
bec39cab AC |
22803 | cat >conftest.$ac_ext <<_ACEOF |
22804 | /* confdefs.h. */ | |
22805 | _ACEOF | |
22806 | cat confdefs.h >>conftest.$ac_ext | |
22807 | cat >>conftest.$ac_ext <<_ACEOF | |
22808 | /* end confdefs.h. */ | |
a3828db0 MK |
22809 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22810 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22811 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 22812 | |
a3828db0 MK |
22813 | /* System header to define __stub macros and hopefully few prototypes, |
22814 | which can conflict with char $ac_func (); below. | |
22815 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22816 | <limits.h> exists even on freestanding compilers. */ | |
22817 | ||
22818 | #ifdef __STDC__ | |
22819 | # include <limits.h> | |
22820 | #else | |
22821 | # include <assert.h> | |
22822 | #endif | |
22823 | ||
22824 | #undef $ac_func | |
22825 | ||
b4e70030 | 22826 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
22827 | #ifdef __cplusplus |
22828 | extern "C" | |
b4e70030 | 22829 | { |
a3828db0 | 22830 | #endif |
b4e70030 JB |
22831 | /* We use char because int might match the return type of a gcc2 |
22832 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
22833 | char $ac_func (); |
22834 | /* The GNU C library defines this for functions which it implements | |
22835 | to always fail with ENOSYS. Some functions are actually named | |
22836 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 22838 | choke me |
b4e70030 JB |
22839 | #else |
22840 | char (*f) () = $ac_func; | |
22841 | #endif | |
22842 | #ifdef __cplusplus | |
22843 | } | |
a3828db0 | 22844 | #endif |
97bf5e38 | 22845 | |
bec39cab AC |
22846 | int |
22847 | main () | |
22848 | { | |
b4e70030 | 22849 | return f != $ac_func; |
bec39cab AC |
22850 | ; |
22851 | return 0; | |
22852 | } | |
22853 | _ACEOF | |
a3828db0 MK |
22854 | rm -f conftest.$ac_objext conftest$ac_exeext |
22855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22856 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
22857 | ac_status=$? |
22858 | grep -v '^ *+' conftest.er1 >conftest.err | |
22859 | rm -f conftest.er1 | |
22860 | cat conftest.err >&5 | |
22861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22862 | (exit $ac_status); } && | |
b4e70030 JB |
22863 | { ac_try='test -z "$ac_c_werror_flag" |
22864 | || test ! -s conftest.err' | |
bec39cab AC |
22865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22866 | (eval $ac_try) 2>&5 | |
22867 | ac_status=$? | |
22868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22869 | (exit $ac_status); }; } && | |
a3828db0 | 22870 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
22871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22872 | (eval $ac_try) 2>&5 | |
22873 | ac_status=$? | |
22874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22875 | (exit $ac_status); }; }; then | |
a3828db0 | 22876 | eval "$as_ac_var=yes" |
b83266a0 | 22877 | else |
bec39cab AC |
22878 | echo "$as_me: failed program was:" >&5 |
22879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22880 | ||
b4e70030 | 22881 | eval "$as_ac_var=no" |
b83266a0 | 22882 | fi |
a3828db0 MK |
22883 | rm -f conftest.err conftest.$ac_objext \ |
22884 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 22885 | fi |
b4e70030 JB |
22886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22887 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
22888 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22889 | cat >>confdefs.h <<_ACEOF | |
22890 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 22891 | _ACEOF |
b83266a0 | 22892 | |
97bf5e38 | 22893 | fi |
a3828db0 | 22894 | done |
b83266a0 | 22895 | |
a3828db0 MK |
22896 | |
22897 | for ac_func in wborder | |
22898 | do | |
22899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
22900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22902 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
22903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22904 | else | |
22905 | cat >conftest.$ac_ext <<_ACEOF | |
22906 | /* confdefs.h. */ | |
22907 | _ACEOF | |
22908 | cat confdefs.h >>conftest.$ac_ext | |
22909 | cat >>conftest.$ac_ext <<_ACEOF | |
22910 | /* end confdefs.h. */ | |
a3828db0 MK |
22911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22913 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 22914 | |
a3828db0 MK |
22915 | /* System header to define __stub macros and hopefully few prototypes, |
22916 | which can conflict with char $ac_func (); below. | |
22917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22918 | <limits.h> exists even on freestanding compilers. */ | |
22919 | ||
22920 | #ifdef __STDC__ | |
22921 | # include <limits.h> | |
22922 | #else | |
22923 | # include <assert.h> | |
22924 | #endif | |
22925 | ||
22926 | #undef $ac_func | |
22927 | ||
b4e70030 | 22928 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
22929 | #ifdef __cplusplus |
22930 | extern "C" | |
b4e70030 | 22931 | { |
a3828db0 | 22932 | #endif |
b4e70030 JB |
22933 | /* We use char because int might match the return type of a gcc2 |
22934 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
22935 | char $ac_func (); |
22936 | /* The GNU C library defines this for functions which it implements | |
22937 | to always fail with ENOSYS. Some functions are actually named | |
22938 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 22939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 22940 | choke me |
b4e70030 JB |
22941 | #else |
22942 | char (*f) () = $ac_func; | |
22943 | #endif | |
22944 | #ifdef __cplusplus | |
22945 | } | |
a3828db0 | 22946 | #endif |
97bf5e38 | 22947 | |
bec39cab AC |
22948 | int |
22949 | main () | |
22950 | { | |
b4e70030 | 22951 | return f != $ac_func; |
bec39cab AC |
22952 | ; |
22953 | return 0; | |
22954 | } | |
22955 | _ACEOF | |
a3828db0 MK |
22956 | rm -f conftest.$ac_objext conftest$ac_exeext |
22957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22958 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
22959 | ac_status=$? |
22960 | grep -v '^ *+' conftest.er1 >conftest.err | |
22961 | rm -f conftest.er1 | |
22962 | cat conftest.err >&5 | |
22963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22964 | (exit $ac_status); } && | |
b4e70030 JB |
22965 | { ac_try='test -z "$ac_c_werror_flag" |
22966 | || test ! -s conftest.err' | |
bec39cab AC |
22967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22968 | (eval $ac_try) 2>&5 | |
22969 | ac_status=$? | |
22970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22971 | (exit $ac_status); }; } && | |
a3828db0 | 22972 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
22973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22974 | (eval $ac_try) 2>&5 | |
22975 | ac_status=$? | |
22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22977 | (exit $ac_status); }; }; then | |
a3828db0 | 22978 | eval "$as_ac_var=yes" |
a4db0f07 | 22979 | else |
bec39cab AC |
22980 | echo "$as_me: failed program was:" >&5 |
22981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22982 | ||
b4e70030 | 22983 | eval "$as_ac_var=no" |
a4db0f07 | 22984 | fi |
a3828db0 MK |
22985 | rm -f conftest.err conftest.$ac_objext \ |
22986 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 22987 | fi |
b4e70030 JB |
22988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
22990 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22991 | cat >>confdefs.h <<_ACEOF | |
22992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 22993 | _ACEOF |
a4db0f07 RH |
22994 | |
22995 | fi | |
a3828db0 | 22996 | done |
c906108c | 22997 | |
06825bd1 | 22998 | |
a3828db0 MK |
22999 | # Check the return and argument types of ptrace. No canned test for |
23000 | # this, so roll our own. | |
23001 | gdb_ptrace_headers=' | |
23002 | #if HAVE_SYS_TYPES_H | |
23003 | # include <sys/types.h> | |
23004 | #endif | |
23005 | #if HAVE_SYS_PTRACE_H | |
23006 | # include <sys/ptrace.h> | |
23007 | #endif | |
23008 | #if HAVE_UNISTD_H | |
23009 | # include <unistd.h> | |
23010 | #endif | |
23011 | ' | |
23012 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
23013 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
23014 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 23015 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
23016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23017 | else | |
23018 | cat >conftest.$ac_ext <<_ACEOF | |
23019 | /* confdefs.h. */ | |
23020 | _ACEOF | |
23021 | cat confdefs.h >>conftest.$ac_ext | |
23022 | cat >>conftest.$ac_ext <<_ACEOF | |
23023 | /* end confdefs.h. */ | |
a3828db0 MK |
23024 | $gdb_ptrace_headers |
23025 | ||
bec39cab AC |
23026 | int |
23027 | main () | |
23028 | { | |
a3828db0 MK |
23029 | #ifndef ptrace |
23030 | char *p = (char *) ptrace; | |
06825bd1 | 23031 | #endif |
a3828db0 | 23032 | |
bec39cab AC |
23033 | ; |
23034 | return 0; | |
23035 | } | |
23036 | _ACEOF | |
23037 | rm -f conftest.$ac_objext | |
23038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23039 | (eval $ac_compile) 2>conftest.er1 | |
23040 | ac_status=$? | |
23041 | grep -v '^ *+' conftest.er1 >conftest.err | |
23042 | rm -f conftest.er1 | |
23043 | cat conftest.err >&5 | |
23044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23045 | (exit $ac_status); } && | |
b4e70030 JB |
23046 | { ac_try='test -z "$ac_c_werror_flag" |
23047 | || test ! -s conftest.err' | |
bec39cab AC |
23048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23049 | (eval $ac_try) 2>&5 | |
23050 | ac_status=$? | |
23051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23052 | (exit $ac_status); }; } && | |
23053 | { ac_try='test -s conftest.$ac_objext' | |
23054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23055 | (eval $ac_try) 2>&5 | |
23056 | ac_status=$? | |
23057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23058 | (exit $ac_status); }; }; then | |
a3828db0 | 23059 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 23060 | else |
bec39cab AC |
23061 | echo "$as_me: failed program was:" >&5 |
23062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23063 | ||
b4e70030 | 23064 | ac_cv_have_decl_ptrace=no |
06825bd1 | 23065 | fi |
bec39cab | 23066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 23067 | fi |
b4e70030 JB |
23068 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
23069 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 23070 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 23071 | |
a3828db0 MK |
23072 | cat >>confdefs.h <<_ACEOF |
23073 | #define HAVE_DECL_PTRACE 1 | |
23074 | _ACEOF | |
bec39cab | 23075 | |
bec39cab | 23076 | |
a3828db0 MK |
23077 | else |
23078 | cat >>confdefs.h <<_ACEOF | |
23079 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 23080 | _ACEOF |
06825bd1 | 23081 | |
a3828db0 MK |
23082 | |
23083 | : ${gdb_cv_func_ptrace_ret='int'} | |
23084 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
23085 | ||
06825bd1 MK |
23086 | fi |
23087 | ||
a3828db0 MK |
23088 | |
23089 | # Check return type. | |
b4e70030 JB |
23090 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
23091 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 23092 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
23093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23094 | else | |
23095 | cat >conftest.$ac_ext <<_ACEOF | |
23096 | /* confdefs.h. */ | |
23097 | _ACEOF | |
23098 | cat confdefs.h >>conftest.$ac_ext | |
23099 | cat >>conftest.$ac_ext <<_ACEOF | |
23100 | /* end confdefs.h. */ | |
a3828db0 | 23101 | $gdb_ptrace_headers |
bec39cab AC |
23102 | int |
23103 | main () | |
23104 | { | |
a3828db0 | 23105 | extern int ptrace (); |
bec39cab AC |
23106 | ; |
23107 | return 0; | |
23108 | } | |
23109 | _ACEOF | |
23110 | rm -f conftest.$ac_objext | |
23111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23112 | (eval $ac_compile) 2>conftest.er1 | |
23113 | ac_status=$? | |
23114 | grep -v '^ *+' conftest.er1 >conftest.err | |
23115 | rm -f conftest.er1 | |
23116 | cat conftest.err >&5 | |
23117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23118 | (exit $ac_status); } && | |
b4e70030 JB |
23119 | { ac_try='test -z "$ac_c_werror_flag" |
23120 | || test ! -s conftest.err' | |
bec39cab AC |
23121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23122 | (eval $ac_try) 2>&5 | |
23123 | ac_status=$? | |
23124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23125 | (exit $ac_status); }; } && | |
23126 | { ac_try='test -s conftest.$ac_objext' | |
23127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23128 | (eval $ac_try) 2>&5 | |
23129 | ac_status=$? | |
23130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23131 | (exit $ac_status); }; }; then | |
a3828db0 | 23132 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 23133 | else |
bec39cab AC |
23134 | echo "$as_me: failed program was:" >&5 |
23135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23136 | ||
b4e70030 | 23137 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 23138 | fi |
bec39cab | 23139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 23140 | fi |
b4e70030 JB |
23141 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
23142 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 23143 | |
a3828db0 MK |
23144 | cat >>confdefs.h <<_ACEOF |
23145 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 23146 | _ACEOF |
70f9f479 | 23147 | |
a3828db0 | 23148 | # Check argument types. |
b4e70030 JB |
23149 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
23150 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 23151 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
23152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23153 | else | |
a3828db0 MK |
23154 | |
23155 | for gdb_arg1 in 'int' 'long'; do | |
23156 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
5ed10e6e | 23157 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
a3828db0 MK |
23158 | for gdb_arg4 in 'int' 'long'; do |
23159 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
23160 | /* confdefs.h. */ |
23161 | _ACEOF | |
23162 | cat confdefs.h >>conftest.$ac_ext | |
23163 | cat >>conftest.$ac_ext <<_ACEOF | |
23164 | /* end confdefs.h. */ | |
a3828db0 | 23165 | $gdb_ptrace_headers |
bec39cab AC |
23166 | int |
23167 | main () | |
23168 | { | |
a3828db0 MK |
23169 | |
23170 | extern $gdb_cv_func_ptrace_ret | |
23171 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
23172 | ||
bec39cab AC |
23173 | ; |
23174 | return 0; | |
23175 | } | |
23176 | _ACEOF | |
23177 | rm -f conftest.$ac_objext | |
23178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23179 | (eval $ac_compile) 2>conftest.er1 | |
23180 | ac_status=$? | |
23181 | grep -v '^ *+' conftest.er1 >conftest.err | |
23182 | rm -f conftest.er1 | |
23183 | cat conftest.err >&5 | |
23184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23185 | (exit $ac_status); } && | |
b4e70030 JB |
23186 | { ac_try='test -z "$ac_c_werror_flag" |
23187 | || test ! -s conftest.err' | |
bec39cab AC |
23188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23189 | (eval $ac_try) 2>&5 | |
23190 | ac_status=$? | |
23191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23192 | (exit $ac_status); }; } && | |
23193 | { ac_try='test -s conftest.$ac_objext' | |
23194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23195 | (eval $ac_try) 2>&5 | |
23196 | ac_status=$? | |
23197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23198 | (exit $ac_status); }; }; then | |
a3828db0 MK |
23199 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
23200 | break 4; | |
5c7f2947 | 23201 | else |
bec39cab AC |
23202 | echo "$as_me: failed program was:" >&5 |
23203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23204 | ||
5c7f2947 | 23205 | fi |
bec39cab | 23206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
23207 | for gdb_arg5 in 'int *' 'int' 'long'; do |
23208 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
23209 | /* confdefs.h. */ |
23210 | _ACEOF | |
23211 | cat confdefs.h >>conftest.$ac_ext | |
23212 | cat >>conftest.$ac_ext <<_ACEOF | |
23213 | /* end confdefs.h. */ | |
a3828db0 | 23214 | $gdb_ptrace_headers |
bec39cab AC |
23215 | int |
23216 | main () | |
23217 | { | |
a3828db0 MK |
23218 | |
23219 | extern $gdb_cv_func_ptrace_ret | |
23220 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
23221 | ||
bec39cab AC |
23222 | ; |
23223 | return 0; | |
23224 | } | |
23225 | _ACEOF | |
23226 | rm -f conftest.$ac_objext | |
23227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23228 | (eval $ac_compile) 2>conftest.er1 | |
23229 | ac_status=$? | |
23230 | grep -v '^ *+' conftest.er1 >conftest.err | |
23231 | rm -f conftest.er1 | |
23232 | cat conftest.err >&5 | |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23234 | (exit $ac_status); } && | |
b4e70030 JB |
23235 | { ac_try='test -z "$ac_c_werror_flag" |
23236 | || test ! -s conftest.err' | |
bec39cab AC |
23237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23238 | (eval $ac_try) 2>&5 | |
23239 | ac_status=$? | |
23240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23241 | (exit $ac_status); }; } && | |
23242 | { ac_try='test -s conftest.$ac_objext' | |
23243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23244 | (eval $ac_try) 2>&5 | |
23245 | ac_status=$? | |
23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23247 | (exit $ac_status); }; }; then | |
a3828db0 MK |
23248 | |
23249 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
23250 | break 5; | |
78434e59 | 23251 | else |
bec39cab AC |
23252 | echo "$as_me: failed program was:" >&5 |
23253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23254 | ||
78434e59 | 23255 | fi |
bec39cab | 23256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
23257 | done |
23258 | done | |
23259 | done | |
23260 | done | |
23261 | done | |
23262 | # Provide a safe default value. | |
23263 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
23264 | ||
78434e59 | 23265 | fi |
b4e70030 JB |
23266 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
23267 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
23268 | ac_save_IFS=$IFS; IFS=',' |
23269 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
23270 | IFS=$ac_save_IFS | |
23271 | shift | |
bec39cab | 23272 | |
a3828db0 MK |
23273 | cat >>confdefs.h <<_ACEOF |
23274 | #define PTRACE_TYPE_ARG3 $3 | |
23275 | _ACEOF | |
23276 | ||
23277 | if test -n "$5"; then | |
23278 | ||
23279 | cat >>confdefs.h <<_ACEOF | |
23280 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 23281 | _ACEOF |
78434e59 MK |
23282 | |
23283 | fi | |
23284 | ||
a3828db0 | 23285 | if test "$cross_compiling" = no; then |
b4e70030 JB |
23286 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
23287 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 23288 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 23289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
23290 | else |
23291 | if test "$cross_compiling" = yes; then | |
23292 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
23293 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
23294 | { (exit 1); exit 1; }; } | |
bec39cab AC |
23295 | else |
23296 | cat >conftest.$ac_ext <<_ACEOF | |
23297 | /* confdefs.h. */ | |
23298 | _ACEOF | |
23299 | cat confdefs.h >>conftest.$ac_ext | |
23300 | cat >>conftest.$ac_ext <<_ACEOF | |
23301 | /* end confdefs.h. */ | |
b4e70030 JB |
23302 | #if HAVE_UNISTD_H |
23303 | # include <unistd.h> | |
23304 | #endif | |
23305 | ||
bec39cab AC |
23306 | int |
23307 | main () | |
23308 | { | |
a3828db0 MK |
23309 | /* If this system has a BSD-style setpgrp which takes arguments, |
23310 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
23311 | exit successfully. */ | |
b4e70030 | 23312 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
23313 | ; |
23314 | return 0; | |
23315 | } | |
23316 | _ACEOF | |
a3828db0 MK |
23317 | rm -f conftest$ac_exeext |
23318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23319 | (eval $ac_link) 2>&5 | |
bec39cab AC |
23320 | ac_status=$? |
23321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 23322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
23323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23324 | (eval $ac_try) 2>&5 | |
23325 | ac_status=$? | |
23326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23327 | (exit $ac_status); }; }; then | |
a3828db0 | 23328 | ac_cv_func_setpgrp_void=no |
c906108c | 23329 | else |
a3828db0 MK |
23330 | echo "$as_me: program exited with status $ac_status" >&5 |
23331 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
23332 | sed 's/^/| /' conftest.$ac_ext >&5 |
23333 | ||
a3828db0 MK |
23334 | ( exit $ac_status ) |
23335 | ac_cv_func_setpgrp_void=yes | |
c906108c | 23336 | fi |
b4e70030 | 23337 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 23338 | fi |
a3828db0 | 23339 | fi |
b4e70030 JB |
23340 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
23341 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
23342 | if test $ac_cv_func_setpgrp_void = yes; then |
23343 | ||
23344 | cat >>confdefs.h <<\_ACEOF | |
23345 | #define SETPGRP_VOID 1 | |
bec39cab | 23346 | _ACEOF |
97bf5e38 MK |
23347 | |
23348 | fi | |
a3828db0 MK |
23349 | |
23350 | else | |
b4e70030 JB |
23351 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
23352 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 23353 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 23354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 23355 | else |
bec39cab AC |
23356 | cat >conftest.$ac_ext <<_ACEOF |
23357 | /* confdefs.h. */ | |
23358 | _ACEOF | |
23359 | cat confdefs.h >>conftest.$ac_ext | |
23360 | cat >>conftest.$ac_ext <<_ACEOF | |
23361 | /* end confdefs.h. */ | |
a3828db0 MK |
23362 | |
23363 | #include <unistd.h> | |
23364 | ||
bec39cab AC |
23365 | int |
23366 | main () | |
23367 | { | |
a3828db0 MK |
23368 | |
23369 | if (setpgrp(1,1) == -1) | |
23370 | exit (0); | |
23371 | else | |
23372 | exit (1); | |
23373 | ||
bec39cab AC |
23374 | ; |
23375 | return 0; | |
23376 | } | |
23377 | _ACEOF | |
23378 | rm -f conftest.$ac_objext | |
23379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23380 | (eval $ac_compile) 2>conftest.er1 | |
23381 | ac_status=$? | |
23382 | grep -v '^ *+' conftest.er1 >conftest.err | |
23383 | rm -f conftest.er1 | |
23384 | cat conftest.err >&5 | |
23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23386 | (exit $ac_status); } && | |
b4e70030 JB |
23387 | { ac_try='test -z "$ac_c_werror_flag" |
23388 | || test ! -s conftest.err' | |
bec39cab AC |
23389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23390 | (eval $ac_try) 2>&5 | |
23391 | ac_status=$? | |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23393 | (exit $ac_status); }; } && | |
23394 | { ac_try='test -s conftest.$ac_objext' | |
23395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23396 | (eval $ac_try) 2>&5 | |
23397 | ac_status=$? | |
23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23399 | (exit $ac_status); }; }; then | |
a3828db0 | 23400 | ac_cv_func_setpgrp_void=no |
c906108c | 23401 | else |
bec39cab AC |
23402 | echo "$as_me: failed program was:" >&5 |
23403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23404 | ||
b4e70030 | 23405 | ac_cv_func_setpgrp_void=yes |
c906108c | 23406 | fi |
bec39cab | 23407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 23408 | fi |
b4e70030 JB |
23409 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
23410 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 23411 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 23412 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 23413 | #define SETPGRP_VOID 1 |
bec39cab | 23414 | _ACEOF |
c3f6f71d | 23415 | |
a3828db0 | 23416 | fi |
c906108c SS |
23417 | fi |
23418 | ||
a3828db0 MK |
23419 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
23420 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
23421 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
23422 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 23423 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
23424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23425 | else | |
23426 | cat >conftest.$ac_ext <<_ACEOF | |
23427 | /* confdefs.h. */ | |
23428 | _ACEOF | |
23429 | cat confdefs.h >>conftest.$ac_ext | |
23430 | cat >>conftest.$ac_ext <<_ACEOF | |
23431 | /* end confdefs.h. */ | |
a3828db0 MK |
23432 | |
23433 | #include <setjmp.h> | |
23434 | ||
bec39cab AC |
23435 | int |
23436 | main () | |
23437 | { | |
a3828db0 | 23438 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
23439 | ; |
23440 | return 0; | |
23441 | } | |
23442 | _ACEOF | |
23443 | rm -f conftest.$ac_objext | |
23444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23445 | (eval $ac_compile) 2>conftest.er1 | |
23446 | ac_status=$? | |
23447 | grep -v '^ *+' conftest.er1 >conftest.err | |
23448 | rm -f conftest.er1 | |
23449 | cat conftest.err >&5 | |
23450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23451 | (exit $ac_status); } && | |
b4e70030 JB |
23452 | { ac_try='test -z "$ac_c_werror_flag" |
23453 | || test ! -s conftest.err' | |
bec39cab AC |
23454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23455 | (eval $ac_try) 2>&5 | |
23456 | ac_status=$? | |
23457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23458 | (exit $ac_status); }; } && | |
23459 | { ac_try='test -s conftest.$ac_objext' | |
23460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23461 | (eval $ac_try) 2>&5 | |
23462 | ac_status=$? | |
23463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23464 | (exit $ac_status); }; }; then | |
a3828db0 | 23465 | gdb_cv_func_sigsetjmp=yes |
c906108c | 23466 | else |
bec39cab AC |
23467 | echo "$as_me: failed program was:" >&5 |
23468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23469 | ||
b4e70030 | 23470 | gdb_cv_func_sigsetjmp=no |
c906108c | 23471 | fi |
bec39cab | 23472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 23473 | fi |
b4e70030 JB |
23474 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
23475 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 23476 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 23477 | |
a3828db0 MK |
23478 | cat >>confdefs.h <<\_ACEOF |
23479 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 23480 | _ACEOF |
c906108c | 23481 | |
97bf5e38 | 23482 | fi |
c906108c | 23483 | |
a3828db0 MK |
23484 | # Assume we'll default to using the included libiberty regex. |
23485 | gdb_use_included_regex=yes | |
23486 | ||
23487 | # However, if the system regex is GNU regex, then default to *not* | |
23488 | # using the included regex. | |
b4e70030 JB |
23489 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
23490 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 23491 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
23492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23493 | else | |
23494 | cat >conftest.$ac_ext <<_ACEOF | |
23495 | /* confdefs.h. */ | |
23496 | _ACEOF | |
23497 | cat confdefs.h >>conftest.$ac_ext | |
23498 | cat >>conftest.$ac_ext <<_ACEOF | |
23499 | /* end confdefs.h. */ | |
a3828db0 | 23500 | #include <gnu-versions.h> |
bec39cab AC |
23501 | int |
23502 | main () | |
23503 | { | |
a3828db0 MK |
23504 | #define REGEX_INTERFACE_VERSION 1 |
23505 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
23506 | # error "Version mismatch" | |
23507 | #endif | |
bec39cab AC |
23508 | ; |
23509 | return 0; | |
23510 | } | |
23511 | _ACEOF | |
23512 | rm -f conftest.$ac_objext | |
23513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23514 | (eval $ac_compile) 2>conftest.er1 | |
23515 | ac_status=$? | |
23516 | grep -v '^ *+' conftest.er1 >conftest.err | |
23517 | rm -f conftest.er1 | |
23518 | cat conftest.err >&5 | |
23519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23520 | (exit $ac_status); } && | |
b4e70030 JB |
23521 | { ac_try='test -z "$ac_c_werror_flag" |
23522 | || test ! -s conftest.err' | |
bec39cab AC |
23523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23524 | (eval $ac_try) 2>&5 | |
23525 | ac_status=$? | |
23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23527 | (exit $ac_status); }; } && | |
23528 | { ac_try='test -s conftest.$ac_objext' | |
23529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23530 | (eval $ac_try) 2>&5 | |
23531 | ac_status=$? | |
23532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23533 | (exit $ac_status); }; }; then | |
a3828db0 | 23534 | gdb_cv_have_gnu_regex=yes |
c906108c | 23535 | else |
bec39cab AC |
23536 | echo "$as_me: failed program was:" >&5 |
23537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23538 | ||
b4e70030 | 23539 | gdb_cv_have_gnu_regex=no |
c906108c | 23540 | fi |
bec39cab | 23541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 23542 | fi |
b4e70030 JB |
23543 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
23544 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
23545 | if test $gdb_cv_have_gnu_regex = yes; then |
23546 | gdb_use_included_regex=no | |
23547 | fi | |
c906108c | 23548 | |
a3828db0 | 23549 | |
b4e70030 | 23550 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 23551 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
23552 | withval="$with_included_regex" |
23553 | gdb_with_regex=$withval | |
a3828db0 MK |
23554 | else |
23555 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 23556 | fi; |
a3828db0 MK |
23557 | if test "$gdb_with_regex" = yes; then |
23558 | ||
23559 | cat >>confdefs.h <<\_ACEOF | |
23560 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 23561 | _ACEOF |
c906108c | 23562 | |
97bf5e38 | 23563 | fi |
c906108c | 23564 | |
5c45e068 | 23565 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
23566 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
23567 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 23568 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
23569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23570 | else | |
23571 | cat >conftest.$ac_ext <<_ACEOF | |
23572 | /* confdefs.h. */ | |
23573 | _ACEOF | |
23574 | cat confdefs.h >>conftest.$ac_ext | |
23575 | cat >>conftest.$ac_ext <<_ACEOF | |
23576 | /* end confdefs.h. */ | |
a3828db0 MK |
23577 | #include <sys/param.h> |
23578 | #include <sys/proc.h> | |
5c45e068 MK |
23579 | |
23580 | ||
bec39cab AC |
23581 | int |
23582 | main () | |
23583 | { | |
5c45e068 MK |
23584 | static struct thread ac_aggr; |
23585 | if (ac_aggr.td_pcb) | |
23586 | return 0; | |
bec39cab AC |
23587 | ; |
23588 | return 0; | |
23589 | } | |
23590 | _ACEOF | |
23591 | rm -f conftest.$ac_objext | |
23592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23593 | (eval $ac_compile) 2>conftest.er1 | |
23594 | ac_status=$? | |
23595 | grep -v '^ *+' conftest.er1 >conftest.err | |
23596 | rm -f conftest.er1 | |
23597 | cat conftest.err >&5 | |
23598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23599 | (exit $ac_status); } && | |
b4e70030 JB |
23600 | { ac_try='test -z "$ac_c_werror_flag" |
23601 | || test ! -s conftest.err' | |
bec39cab AC |
23602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23603 | (eval $ac_try) 2>&5 | |
23604 | ac_status=$? | |
23605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23606 | (exit $ac_status); }; } && | |
23607 | { ac_try='test -s conftest.$ac_objext' | |
23608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23609 | (eval $ac_try) 2>&5 | |
23610 | ac_status=$? | |
23611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23612 | (exit $ac_status); }; }; then | |
5c45e068 | 23613 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 23614 | else |
bec39cab AC |
23615 | echo "$as_me: failed program was:" >&5 |
23616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23617 | ||
b4e70030 | 23618 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
23619 | /* confdefs.h. */ |
23620 | _ACEOF | |
23621 | cat confdefs.h >>conftest.$ac_ext | |
23622 | cat >>conftest.$ac_ext <<_ACEOF | |
23623 | /* end confdefs.h. */ | |
23624 | #include <sys/param.h> | |
23625 | #include <sys/proc.h> | |
23626 | ||
23627 | ||
23628 | int | |
23629 | main () | |
23630 | { | |
23631 | static struct thread ac_aggr; | |
23632 | if (sizeof ac_aggr.td_pcb) | |
23633 | return 0; | |
23634 | ; | |
23635 | return 0; | |
23636 | } | |
23637 | _ACEOF | |
23638 | rm -f conftest.$ac_objext | |
23639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23640 | (eval $ac_compile) 2>conftest.er1 | |
23641 | ac_status=$? | |
23642 | grep -v '^ *+' conftest.er1 >conftest.err | |
23643 | rm -f conftest.er1 | |
23644 | cat conftest.err >&5 | |
23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23646 | (exit $ac_status); } && | |
b4e70030 JB |
23647 | { ac_try='test -z "$ac_c_werror_flag" |
23648 | || test ! -s conftest.err' | |
5c45e068 MK |
23649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23650 | (eval $ac_try) 2>&5 | |
23651 | ac_status=$? | |
23652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23653 | (exit $ac_status); }; } && | |
23654 | { ac_try='test -s conftest.$ac_objext' | |
23655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23656 | (eval $ac_try) 2>&5 | |
23657 | ac_status=$? | |
23658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23659 | (exit $ac_status); }; }; then | |
23660 | ac_cv_member_struct_thread_td_pcb=yes | |
23661 | else | |
23662 | echo "$as_me: failed program was:" >&5 | |
23663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23664 | ||
b4e70030 | 23665 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
23666 | fi |
23667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 23668 | fi |
bec39cab | 23669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 23670 | fi |
b4e70030 JB |
23671 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
23672 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 23673 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 23674 | |
5c45e068 | 23675 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 23676 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 23677 | _ACEOF |
c906108c | 23678 | |
5c45e068 | 23679 | |
97bf5e38 | 23680 | fi |
c906108c | 23681 | |
5c45e068 | 23682 | |
a3828db0 | 23683 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
23684 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
23685 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 23686 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
23687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23688 | else | |
23689 | cat >conftest.$ac_ext <<_ACEOF | |
23690 | /* confdefs.h. */ | |
23691 | _ACEOF | |
23692 | cat confdefs.h >>conftest.$ac_ext | |
23693 | cat >>conftest.$ac_ext <<_ACEOF | |
23694 | /* end confdefs.h. */ | |
a3828db0 MK |
23695 | #include <sys/param.h> |
23696 | #include <sys/lwp.h> | |
bec39cab AC |
23697 | int |
23698 | main () | |
23699 | { | |
a3828db0 | 23700 | struct lwp l; |
bec39cab AC |
23701 | ; |
23702 | return 0; | |
23703 | } | |
23704 | _ACEOF | |
23705 | rm -f conftest.$ac_objext | |
23706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23707 | (eval $ac_compile) 2>conftest.er1 | |
23708 | ac_status=$? | |
23709 | grep -v '^ *+' conftest.er1 >conftest.err | |
23710 | rm -f conftest.er1 | |
23711 | cat conftest.err >&5 | |
23712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23713 | (exit $ac_status); } && | |
b4e70030 JB |
23714 | { ac_try='test -z "$ac_c_werror_flag" |
23715 | || test ! -s conftest.err' | |
bec39cab AC |
23716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23717 | (eval $ac_try) 2>&5 | |
23718 | ac_status=$? | |
23719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23720 | (exit $ac_status); }; } && | |
23721 | { ac_try='test -s conftest.$ac_objext' | |
23722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23723 | (eval $ac_try) 2>&5 | |
23724 | ac_status=$? | |
23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23726 | (exit $ac_status); }; }; then | |
a3828db0 | 23727 | gdb_cv_struct_lwp=yes |
c906108c | 23728 | else |
bec39cab AC |
23729 | echo "$as_me: failed program was:" >&5 |
23730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23731 | ||
b4e70030 | 23732 | gdb_cv_struct_lwp=no |
c906108c | 23733 | fi |
bec39cab | 23734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 23735 | fi |
b4e70030 JB |
23736 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
23737 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 23738 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 23739 | |
a3828db0 MK |
23740 | cat >>confdefs.h <<\_ACEOF |
23741 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 23742 | _ACEOF |
c906108c | 23743 | |
97bf5e38 | 23744 | fi |
c906108c | 23745 | |
a3828db0 | 23746 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
23747 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
23748 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 23749 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
23750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23751 | else | |
23752 | cat >conftest.$ac_ext <<_ACEOF | |
23753 | /* confdefs.h. */ | |
23754 | _ACEOF | |
23755 | cat confdefs.h >>conftest.$ac_ext | |
23756 | cat >>conftest.$ac_ext <<_ACEOF | |
23757 | /* end confdefs.h. */ | |
a3828db0 MK |
23758 | #include <sys/types.h> |
23759 | #include <machine/reg.h> | |
bec39cab AC |
23760 | int |
23761 | main () | |
23762 | { | |
a3828db0 | 23763 | struct reg r; |
bec39cab AC |
23764 | ; |
23765 | return 0; | |
23766 | } | |
23767 | _ACEOF | |
23768 | rm -f conftest.$ac_objext | |
23769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23770 | (eval $ac_compile) 2>conftest.er1 | |
23771 | ac_status=$? | |
23772 | grep -v '^ *+' conftest.er1 >conftest.err | |
23773 | rm -f conftest.er1 | |
23774 | cat conftest.err >&5 | |
23775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23776 | (exit $ac_status); } && | |
b4e70030 JB |
23777 | { ac_try='test -z "$ac_c_werror_flag" |
23778 | || test ! -s conftest.err' | |
bec39cab AC |
23779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23780 | (eval $ac_try) 2>&5 | |
23781 | ac_status=$? | |
23782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23783 | (exit $ac_status); }; } && | |
23784 | { ac_try='test -s conftest.$ac_objext' | |
23785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23786 | (eval $ac_try) 2>&5 | |
23787 | ac_status=$? | |
23788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23789 | (exit $ac_status); }; }; then | |
a3828db0 | 23790 | gdb_cv_struct_reg=yes |
27ca5dad | 23791 | else |
bec39cab AC |
23792 | echo "$as_me: failed program was:" >&5 |
23793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23794 | ||
b4e70030 | 23795 | gdb_cv_struct_reg=no |
27ca5dad | 23796 | fi |
bec39cab | 23797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 23798 | fi |
b4e70030 JB |
23799 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
23800 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 23801 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
23802 | |
23803 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 23804 | #define HAVE_STRUCT_REG 1 |
bec39cab | 23805 | _ACEOF |
27ca5dad MC |
23806 | |
23807 | fi | |
97bf5e38 | 23808 | |
a3828db0 MK |
23809 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
23810 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
23811 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
23812 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 23813 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 23814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 23815 | else |
bec39cab AC |
23816 | cat >conftest.$ac_ext <<_ACEOF |
23817 | /* confdefs.h. */ | |
23818 | _ACEOF | |
23819 | cat confdefs.h >>conftest.$ac_ext | |
23820 | cat >>conftest.$ac_ext <<_ACEOF | |
23821 | /* end confdefs.h. */ | |
a3828db0 | 23822 | #include <machine/reg.h> |
5c45e068 MK |
23823 | |
23824 | int | |
23825 | main () | |
23826 | { | |
23827 | static struct reg ac_aggr; | |
23828 | if (ac_aggr.r_fs) | |
23829 | return 0; | |
23830 | ; | |
23831 | return 0; | |
23832 | } | |
23833 | _ACEOF | |
23834 | rm -f conftest.$ac_objext | |
23835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23836 | (eval $ac_compile) 2>conftest.er1 | |
23837 | ac_status=$? | |
23838 | grep -v '^ *+' conftest.er1 >conftest.err | |
23839 | rm -f conftest.er1 | |
23840 | cat conftest.err >&5 | |
23841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23842 | (exit $ac_status); } && | |
b4e70030 JB |
23843 | { ac_try='test -z "$ac_c_werror_flag" |
23844 | || test ! -s conftest.err' | |
5c45e068 MK |
23845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23846 | (eval $ac_try) 2>&5 | |
23847 | ac_status=$? | |
23848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23849 | (exit $ac_status); }; } && | |
23850 | { ac_try='test -s conftest.$ac_objext' | |
23851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23852 | (eval $ac_try) 2>&5 | |
23853 | ac_status=$? | |
23854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23855 | (exit $ac_status); }; }; then | |
23856 | ac_cv_member_struct_reg_r_fs=yes | |
23857 | else | |
23858 | echo "$as_me: failed program was:" >&5 | |
23859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23860 | ||
b4e70030 | 23861 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
23862 | /* confdefs.h. */ |
23863 | _ACEOF | |
23864 | cat confdefs.h >>conftest.$ac_ext | |
23865 | cat >>conftest.$ac_ext <<_ACEOF | |
23866 | /* end confdefs.h. */ | |
23867 | #include <machine/reg.h> | |
23868 | ||
bec39cab AC |
23869 | int |
23870 | main () | |
23871 | { | |
5c45e068 MK |
23872 | static struct reg ac_aggr; |
23873 | if (sizeof ac_aggr.r_fs) | |
23874 | return 0; | |
bec39cab AC |
23875 | ; |
23876 | return 0; | |
23877 | } | |
23878 | _ACEOF | |
23879 | rm -f conftest.$ac_objext | |
23880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23881 | (eval $ac_compile) 2>conftest.er1 | |
23882 | ac_status=$? | |
23883 | grep -v '^ *+' conftest.er1 >conftest.err | |
23884 | rm -f conftest.er1 | |
23885 | cat conftest.err >&5 | |
23886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23887 | (exit $ac_status); } && | |
b4e70030 JB |
23888 | { ac_try='test -z "$ac_c_werror_flag" |
23889 | || test ! -s conftest.err' | |
bec39cab AC |
23890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23891 | (eval $ac_try) 2>&5 | |
23892 | ac_status=$? | |
23893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23894 | (exit $ac_status); }; } && | |
23895 | { ac_try='test -s conftest.$ac_objext' | |
23896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23897 | (eval $ac_try) 2>&5 | |
23898 | ac_status=$? | |
23899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23900 | (exit $ac_status); }; }; then | |
5c45e068 | 23901 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 23902 | else |
bec39cab AC |
23903 | echo "$as_me: failed program was:" >&5 |
23904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23905 | ||
b4e70030 | 23906 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 23907 | fi |
bec39cab | 23908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 23909 | fi |
5c45e068 MK |
23910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23911 | fi | |
b4e70030 JB |
23912 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
23913 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
23914 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
23915 | ||
23916 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 23917 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 23918 | _ACEOF |
3862412b | 23919 | |
5c45e068 | 23920 | |
97bf5e38 | 23921 | fi |
b4e70030 JB |
23922 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
23923 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 23924 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 23925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 23926 | else |
bec39cab AC |
23927 | cat >conftest.$ac_ext <<_ACEOF |
23928 | /* confdefs.h. */ | |
23929 | _ACEOF | |
23930 | cat confdefs.h >>conftest.$ac_ext | |
23931 | cat >>conftest.$ac_ext <<_ACEOF | |
23932 | /* end confdefs.h. */ | |
a3828db0 | 23933 | #include <machine/reg.h> |
5c45e068 | 23934 | |
bec39cab AC |
23935 | int |
23936 | main () | |
23937 | { | |
5c45e068 MK |
23938 | static struct reg ac_aggr; |
23939 | if (ac_aggr.r_gs) | |
23940 | return 0; | |
bec39cab AC |
23941 | ; |
23942 | return 0; | |
23943 | } | |
23944 | _ACEOF | |
23945 | rm -f conftest.$ac_objext | |
23946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23947 | (eval $ac_compile) 2>conftest.er1 | |
23948 | ac_status=$? | |
23949 | grep -v '^ *+' conftest.er1 >conftest.err | |
23950 | rm -f conftest.er1 | |
23951 | cat conftest.err >&5 | |
23952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23953 | (exit $ac_status); } && | |
b4e70030 JB |
23954 | { ac_try='test -z "$ac_c_werror_flag" |
23955 | || test ! -s conftest.err' | |
bec39cab AC |
23956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23957 | (eval $ac_try) 2>&5 | |
23958 | ac_status=$? | |
23959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23960 | (exit $ac_status); }; } && | |
23961 | { ac_try='test -s conftest.$ac_objext' | |
23962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23963 | (eval $ac_try) 2>&5 | |
23964 | ac_status=$? | |
23965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23966 | (exit $ac_status); }; }; then | |
5c45e068 | 23967 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 23968 | else |
bec39cab AC |
23969 | echo "$as_me: failed program was:" >&5 |
23970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23971 | ||
b4e70030 | 23972 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
23973 | /* confdefs.h. */ |
23974 | _ACEOF | |
23975 | cat confdefs.h >>conftest.$ac_ext | |
23976 | cat >>conftest.$ac_ext <<_ACEOF | |
23977 | /* end confdefs.h. */ | |
23978 | #include <machine/reg.h> | |
23979 | ||
23980 | int | |
23981 | main () | |
23982 | { | |
23983 | static struct reg ac_aggr; | |
23984 | if (sizeof ac_aggr.r_gs) | |
23985 | return 0; | |
23986 | ; | |
23987 | return 0; | |
23988 | } | |
23989 | _ACEOF | |
23990 | rm -f conftest.$ac_objext | |
23991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23992 | (eval $ac_compile) 2>conftest.er1 | |
23993 | ac_status=$? | |
23994 | grep -v '^ *+' conftest.er1 >conftest.err | |
23995 | rm -f conftest.er1 | |
23996 | cat conftest.err >&5 | |
23997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23998 | (exit $ac_status); } && | |
b4e70030 JB |
23999 | { ac_try='test -z "$ac_c_werror_flag" |
24000 | || test ! -s conftest.err' | |
5c45e068 MK |
24001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24002 | (eval $ac_try) 2>&5 | |
24003 | ac_status=$? | |
24004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24005 | (exit $ac_status); }; } && | |
24006 | { ac_try='test -s conftest.$ac_objext' | |
24007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24008 | (eval $ac_try) 2>&5 | |
24009 | ac_status=$? | |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24011 | (exit $ac_status); }; }; then | |
24012 | ac_cv_member_struct_reg_r_gs=yes | |
24013 | else | |
24014 | echo "$as_me: failed program was:" >&5 | |
24015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24016 | ||
b4e70030 | 24017 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 24018 | fi |
bec39cab | 24019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 24020 | fi |
5c45e068 MK |
24021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24022 | fi | |
b4e70030 JB |
24023 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
24024 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
24025 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
24026 | ||
24027 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 24028 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 24029 | _ACEOF |
3862412b | 24030 | |
5c45e068 | 24031 | |
97bf5e38 | 24032 | fi |
3862412b | 24033 | |
5c45e068 | 24034 | |
a3828db0 | 24035 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
24036 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
24037 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 24038 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 24039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 24040 | else |
bec39cab AC |
24041 | cat >conftest.$ac_ext <<_ACEOF |
24042 | /* confdefs.h. */ | |
24043 | _ACEOF | |
24044 | cat confdefs.h >>conftest.$ac_ext | |
24045 | cat >>conftest.$ac_ext <<_ACEOF | |
24046 | /* end confdefs.h. */ | |
a3828db0 | 24047 | #include <sys/ptrace.h> |
bec39cab AC |
24048 | int |
24049 | main () | |
24050 | { | |
a3828db0 | 24051 | PTRACE_GETREGS; |
bec39cab AC |
24052 | ; |
24053 | return 0; | |
24054 | } | |
24055 | _ACEOF | |
24056 | rm -f conftest.$ac_objext | |
24057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24058 | (eval $ac_compile) 2>conftest.er1 | |
24059 | ac_status=$? | |
24060 | grep -v '^ *+' conftest.er1 >conftest.err | |
24061 | rm -f conftest.er1 | |
24062 | cat conftest.err >&5 | |
24063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24064 | (exit $ac_status); } && | |
b4e70030 JB |
24065 | { ac_try='test -z "$ac_c_werror_flag" |
24066 | || test ! -s conftest.err' | |
bec39cab AC |
24067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24068 | (eval $ac_try) 2>&5 | |
24069 | ac_status=$? | |
24070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24071 | (exit $ac_status); }; } && | |
24072 | { ac_try='test -s conftest.$ac_objext' | |
24073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24074 | (eval $ac_try) 2>&5 | |
24075 | ac_status=$? | |
24076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24077 | (exit $ac_status); }; }; then | |
a3828db0 | 24078 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 24079 | else |
bec39cab AC |
24080 | echo "$as_me: failed program was:" >&5 |
24081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24082 | ||
b4e70030 | 24083 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 24084 | fi |
bec39cab | 24085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
24086 | fi |
24087 | ||
b4e70030 JB |
24088 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
24089 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 24090 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
24091 | |
24092 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 24093 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 24094 | _ACEOF |
451928c5 | 24095 | |
97bf5e38 | 24096 | fi |
451928c5 | 24097 | |
a3828db0 | 24098 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
24099 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
24100 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 24101 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 24102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 24103 | else |
bec39cab AC |
24104 | cat >conftest.$ac_ext <<_ACEOF |
24105 | /* confdefs.h. */ | |
24106 | _ACEOF | |
24107 | cat confdefs.h >>conftest.$ac_ext | |
24108 | cat >>conftest.$ac_ext <<_ACEOF | |
24109 | /* end confdefs.h. */ | |
a3828db0 | 24110 | #include <sys/ptrace.h> |
bec39cab AC |
24111 | int |
24112 | main () | |
24113 | { | |
a3828db0 | 24114 | PTRACE_GETFPXREGS; |
bec39cab AC |
24115 | ; |
24116 | return 0; | |
24117 | } | |
24118 | _ACEOF | |
24119 | rm -f conftest.$ac_objext | |
24120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24121 | (eval $ac_compile) 2>conftest.er1 | |
24122 | ac_status=$? | |
24123 | grep -v '^ *+' conftest.er1 >conftest.err | |
24124 | rm -f conftest.er1 | |
24125 | cat conftest.err >&5 | |
24126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24127 | (exit $ac_status); } && | |
b4e70030 JB |
24128 | { ac_try='test -z "$ac_c_werror_flag" |
24129 | || test ! -s conftest.err' | |
bec39cab AC |
24130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24131 | (eval $ac_try) 2>&5 | |
24132 | ac_status=$? | |
24133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24134 | (exit $ac_status); }; } && | |
24135 | { ac_try='test -s conftest.$ac_objext' | |
24136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24137 | (eval $ac_try) 2>&5 | |
24138 | ac_status=$? | |
24139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24140 | (exit $ac_status); }; }; then | |
a3828db0 | 24141 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 24142 | else |
bec39cab AC |
24143 | echo "$as_me: failed program was:" >&5 |
24144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24145 | ||
b4e70030 | 24146 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 24147 | fi |
bec39cab | 24148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
24149 | fi |
24150 | ||
b4e70030 JB |
24151 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
24152 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 24153 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
24154 | |
24155 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 24156 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 24157 | _ACEOF |
451928c5 | 24158 | |
97bf5e38 | 24159 | fi |
451928c5 | 24160 | |
a3828db0 | 24161 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
24162 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
24163 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 24164 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 24165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 24166 | else |
bec39cab AC |
24167 | cat >conftest.$ac_ext <<_ACEOF |
24168 | /* confdefs.h. */ | |
24169 | _ACEOF | |
24170 | cat confdefs.h >>conftest.$ac_ext | |
24171 | cat >>conftest.$ac_ext <<_ACEOF | |
24172 | /* end confdefs.h. */ | |
a3828db0 MK |
24173 | #include <sys/types.h> |
24174 | #include <sys/ptrace.h> | |
bec39cab AC |
24175 | int |
24176 | main () | |
24177 | { | |
a3828db0 | 24178 | PT_GETDBREGS; |
bec39cab AC |
24179 | ; |
24180 | return 0; | |
24181 | } | |
24182 | _ACEOF | |
24183 | rm -f conftest.$ac_objext | |
24184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24185 | (eval $ac_compile) 2>conftest.er1 | |
24186 | ac_status=$? | |
24187 | grep -v '^ *+' conftest.er1 >conftest.err | |
24188 | rm -f conftest.er1 | |
24189 | cat conftest.err >&5 | |
24190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24191 | (exit $ac_status); } && | |
b4e70030 JB |
24192 | { ac_try='test -z "$ac_c_werror_flag" |
24193 | || test ! -s conftest.err' | |
bec39cab AC |
24194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24195 | (eval $ac_try) 2>&5 | |
24196 | ac_status=$? | |
24197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24198 | (exit $ac_status); }; } && | |
24199 | { ac_try='test -s conftest.$ac_objext' | |
24200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24201 | (eval $ac_try) 2>&5 | |
24202 | ac_status=$? | |
24203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24204 | (exit $ac_status); }; }; then | |
a3828db0 | 24205 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 24206 | else |
bec39cab AC |
24207 | echo "$as_me: failed program was:" >&5 |
24208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24209 | ||
b4e70030 | 24210 | gdb_cv_have_pt_getdbregs=no |
3862412b | 24211 | fi |
bec39cab | 24212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
24213 | fi |
24214 | ||
b4e70030 JB |
24215 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
24216 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 24217 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
24218 | |
24219 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 24220 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 24221 | _ACEOF |
3862412b | 24222 | |
97bf5e38 | 24223 | fi |
3862412b | 24224 | |
a3828db0 | 24225 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
24226 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
24227 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 24228 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 24229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 24230 | else |
bec39cab AC |
24231 | cat >conftest.$ac_ext <<_ACEOF |
24232 | /* confdefs.h. */ | |
24233 | _ACEOF | |
24234 | cat confdefs.h >>conftest.$ac_ext | |
24235 | cat >>conftest.$ac_ext <<_ACEOF | |
24236 | /* end confdefs.h. */ | |
a3828db0 MK |
24237 | #include <sys/types.h> |
24238 | #include <sys/ptrace.h> | |
bec39cab AC |
24239 | int |
24240 | main () | |
24241 | { | |
a3828db0 | 24242 | PT_GETXMMREGS; |
bec39cab AC |
24243 | ; |
24244 | return 0; | |
24245 | } | |
24246 | _ACEOF | |
24247 | rm -f conftest.$ac_objext | |
24248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24249 | (eval $ac_compile) 2>conftest.er1 | |
24250 | ac_status=$? | |
24251 | grep -v '^ *+' conftest.er1 >conftest.err | |
24252 | rm -f conftest.er1 | |
24253 | cat conftest.err >&5 | |
24254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24255 | (exit $ac_status); } && | |
b4e70030 JB |
24256 | { ac_try='test -z "$ac_c_werror_flag" |
24257 | || test ! -s conftest.err' | |
bec39cab AC |
24258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24259 | (eval $ac_try) 2>&5 | |
24260 | ac_status=$? | |
24261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24262 | (exit $ac_status); }; } && | |
24263 | { ac_try='test -s conftest.$ac_objext' | |
24264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24265 | (eval $ac_try) 2>&5 | |
24266 | ac_status=$? | |
24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24268 | (exit $ac_status); }; }; then | |
a3828db0 | 24269 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 24270 | else |
bec39cab AC |
24271 | echo "$as_me: failed program was:" >&5 |
24272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24273 | ||
b4e70030 | 24274 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 24275 | fi |
bec39cab | 24276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
24277 | fi |
24278 | ||
b4e70030 JB |
24279 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
24280 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 24281 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
24282 | |
24283 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 24284 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 24285 | _ACEOF |
3862412b | 24286 | |
97bf5e38 | 24287 | fi |
3862412b | 24288 | |
eb368090 | 24289 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
24290 | |
24291 | if test "${target}" = "${host}"; then | |
24292 | case "${host}" in | |
97bf5e38 | 24293 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
24294 | |
24295 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24296 | #define NEW_PROC_API 1 |
bec39cab | 24297 | _ACEOF |
97bf5e38 MK |
24298 | |
24299 | ;; | |
c162e8c9 | 24300 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
60ca704f SE |
24301 | |
24302 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24303 | #define NEW_PROC_API 1 |
bec39cab | 24304 | _ACEOF |
c960c18f AC |
24305 | |
24306 | ;; | |
24307 | mips-sgi-irix5*) | |
24308 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
24309 | |
24310 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 24311 | #define _KMEMUSER 1 |
bec39cab | 24312 | _ACEOF |
97bf5e38 MK |
24313 | |
24314 | ;; | |
24315 | esac | |
24316 | fi | |
24317 | ||
24318 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
24319 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
24320 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24321 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
24322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24323 | else | |
24324 | cat >conftest.$ac_ext <<_ACEOF | |
24325 | /* confdefs.h. */ | |
24326 | _ACEOF | |
24327 | cat confdefs.h >>conftest.$ac_ext | |
24328 | cat >>conftest.$ac_ext <<_ACEOF | |
24329 | /* end confdefs.h. */ | |
596c9d4b KB |
24330 | |
24331 | #define _SYSCALL32 | |
24332 | #include <sys/procfs.h> | |
bec39cab AC |
24333 | int |
24334 | main () | |
24335 | { | |
97bf5e38 | 24336 | pstatus_t avar |
bec39cab AC |
24337 | ; |
24338 | return 0; | |
24339 | } | |
24340 | _ACEOF | |
24341 | rm -f conftest.$ac_objext | |
24342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24343 | (eval $ac_compile) 2>conftest.er1 | |
24344 | ac_status=$? | |
24345 | grep -v '^ *+' conftest.er1 >conftest.err | |
24346 | rm -f conftest.er1 | |
24347 | cat conftest.err >&5 | |
24348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24349 | (exit $ac_status); } && | |
b4e70030 JB |
24350 | { ac_try='test -z "$ac_c_werror_flag" |
24351 | || test ! -s conftest.err' | |
bec39cab AC |
24352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24353 | (eval $ac_try) 2>&5 | |
24354 | ac_status=$? | |
24355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24356 | (exit $ac_status); }; } && | |
24357 | { ac_try='test -s conftest.$ac_objext' | |
24358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24359 | (eval $ac_try) 2>&5 | |
24360 | ac_status=$? | |
24361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24362 | (exit $ac_status); }; }; then | |
97bf5e38 | 24363 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 24364 | else |
bec39cab AC |
24365 | echo "$as_me: failed program was:" >&5 |
24366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24367 | ||
b4e70030 | 24368 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 24369 | |
596c9d4b | 24370 | fi |
bec39cab | 24371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
24372 | fi |
24373 | ||
97bf5e38 | 24374 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
24375 | |
24376 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24377 | #define HAVE_PSTATUS_T 1 |
bec39cab | 24378 | _ACEOF |
596c9d4b KB |
24379 | |
24380 | fi | |
b4e70030 JB |
24381 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
24382 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 24383 | |
b4e70030 JB |
24384 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
24385 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24386 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
24387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 24388 | else |
bec39cab AC |
24389 | cat >conftest.$ac_ext <<_ACEOF |
24390 | /* confdefs.h. */ | |
24391 | _ACEOF | |
24392 | cat confdefs.h >>conftest.$ac_ext | |
24393 | cat >>conftest.$ac_ext <<_ACEOF | |
24394 | /* end confdefs.h. */ | |
596c9d4b KB |
24395 | |
24396 | #define _SYSCALL32 | |
24397 | #include <sys/procfs.h> | |
bec39cab AC |
24398 | int |
24399 | main () | |
24400 | { | |
97bf5e38 | 24401 | prrun_t avar |
bec39cab AC |
24402 | ; |
24403 | return 0; | |
24404 | } | |
24405 | _ACEOF | |
24406 | rm -f conftest.$ac_objext | |
24407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24408 | (eval $ac_compile) 2>conftest.er1 | |
24409 | ac_status=$? | |
24410 | grep -v '^ *+' conftest.er1 >conftest.err | |
24411 | rm -f conftest.er1 | |
24412 | cat conftest.err >&5 | |
24413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24414 | (exit $ac_status); } && | |
b4e70030 JB |
24415 | { ac_try='test -z "$ac_c_werror_flag" |
24416 | || test ! -s conftest.err' | |
bec39cab AC |
24417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24418 | (eval $ac_try) 2>&5 | |
24419 | ac_status=$? | |
24420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24421 | (exit $ac_status); }; } && | |
24422 | { ac_try='test -s conftest.$ac_objext' | |
24423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24424 | (eval $ac_try) 2>&5 | |
24425 | ac_status=$? | |
24426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24427 | (exit $ac_status); }; }; then | |
97bf5e38 | 24428 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 24429 | else |
bec39cab AC |
24430 | echo "$as_me: failed program was:" >&5 |
24431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24432 | ||
b4e70030 | 24433 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 24434 | |
596c9d4b | 24435 | fi |
bec39cab | 24436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
24437 | fi |
24438 | ||
97bf5e38 | 24439 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
24440 | |
24441 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24442 | #define HAVE_PRRUN_T 1 |
bec39cab | 24443 | _ACEOF |
596c9d4b KB |
24444 | |
24445 | fi | |
b4e70030 JB |
24446 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
24447 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 24448 | |
b4e70030 JB |
24449 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
24450 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24451 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
24452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 24453 | else |
bec39cab AC |
24454 | cat >conftest.$ac_ext <<_ACEOF |
24455 | /* confdefs.h. */ | |
24456 | _ACEOF | |
24457 | cat confdefs.h >>conftest.$ac_ext | |
24458 | cat >>conftest.$ac_ext <<_ACEOF | |
24459 | /* end confdefs.h. */ | |
596c9d4b KB |
24460 | |
24461 | #define _SYSCALL32 | |
24462 | #include <sys/procfs.h> | |
bec39cab AC |
24463 | int |
24464 | main () | |
24465 | { | |
97bf5e38 | 24466 | gregset_t avar |
bec39cab AC |
24467 | ; |
24468 | return 0; | |
24469 | } | |
24470 | _ACEOF | |
24471 | rm -f conftest.$ac_objext | |
24472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24473 | (eval $ac_compile) 2>conftest.er1 | |
24474 | ac_status=$? | |
24475 | grep -v '^ *+' conftest.er1 >conftest.err | |
24476 | rm -f conftest.er1 | |
24477 | cat conftest.err >&5 | |
24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24479 | (exit $ac_status); } && | |
b4e70030 JB |
24480 | { ac_try='test -z "$ac_c_werror_flag" |
24481 | || test ! -s conftest.err' | |
bec39cab AC |
24482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24483 | (eval $ac_try) 2>&5 | |
24484 | ac_status=$? | |
24485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24486 | (exit $ac_status); }; } && | |
24487 | { ac_try='test -s conftest.$ac_objext' | |
24488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24489 | (eval $ac_try) 2>&5 | |
24490 | ac_status=$? | |
24491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24492 | (exit $ac_status); }; }; then | |
97bf5e38 | 24493 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 24494 | else |
bec39cab AC |
24495 | echo "$as_me: failed program was:" >&5 |
24496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24497 | ||
b4e70030 | 24498 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 24499 | |
596c9d4b | 24500 | fi |
bec39cab | 24501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
24502 | fi |
24503 | ||
97bf5e38 | 24504 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
24505 | |
24506 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24507 | #define HAVE_GREGSET_T 1 |
bec39cab | 24508 | _ACEOF |
596c9d4b KB |
24509 | |
24510 | fi | |
b4e70030 JB |
24511 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
24512 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 24513 | |
b4e70030 JB |
24514 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
24515 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24516 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
24517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 24518 | else |
bec39cab AC |
24519 | cat >conftest.$ac_ext <<_ACEOF |
24520 | /* confdefs.h. */ | |
24521 | _ACEOF | |
24522 | cat confdefs.h >>conftest.$ac_ext | |
24523 | cat >>conftest.$ac_ext <<_ACEOF | |
24524 | /* end confdefs.h. */ | |
97bf5e38 MK |
24525 | |
24526 | #define _SYSCALL32 | |
d84dd0c5 | 24527 | #include <sys/procfs.h> |
bec39cab AC |
24528 | int |
24529 | main () | |
24530 | { | |
97bf5e38 | 24531 | fpregset_t avar |
bec39cab AC |
24532 | ; |
24533 | return 0; | |
24534 | } | |
24535 | _ACEOF | |
24536 | rm -f conftest.$ac_objext | |
24537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24538 | (eval $ac_compile) 2>conftest.er1 | |
24539 | ac_status=$? | |
24540 | grep -v '^ *+' conftest.er1 >conftest.err | |
24541 | rm -f conftest.er1 | |
24542 | cat conftest.err >&5 | |
24543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24544 | (exit $ac_status); } && | |
b4e70030 JB |
24545 | { ac_try='test -z "$ac_c_werror_flag" |
24546 | || test ! -s conftest.err' | |
bec39cab AC |
24547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24548 | (eval $ac_try) 2>&5 | |
24549 | ac_status=$? | |
24550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24551 | (exit $ac_status); }; } && | |
24552 | { ac_try='test -s conftest.$ac_objext' | |
24553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24554 | (eval $ac_try) 2>&5 | |
24555 | ac_status=$? | |
24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24557 | (exit $ac_status); }; }; then | |
97bf5e38 | 24558 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 24559 | else |
bec39cab AC |
24560 | echo "$as_me: failed program was:" >&5 |
24561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24562 | ||
b4e70030 | 24563 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 24564 | |
d84dd0c5 | 24565 | fi |
bec39cab | 24566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
24567 | fi |
24568 | ||
97bf5e38 | 24569 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
24570 | |
24571 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24572 | #define HAVE_FPREGSET_T 1 |
bec39cab | 24573 | _ACEOF |
d84dd0c5 | 24574 | |
97bf5e38 | 24575 | fi |
b4e70030 JB |
24576 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
24577 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 24578 | |
b4e70030 JB |
24579 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
24580 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24581 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
24582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 24583 | else |
bec39cab AC |
24584 | cat >conftest.$ac_ext <<_ACEOF |
24585 | /* confdefs.h. */ | |
24586 | _ACEOF | |
24587 | cat confdefs.h >>conftest.$ac_ext | |
24588 | cat >>conftest.$ac_ext <<_ACEOF | |
24589 | /* end confdefs.h. */ | |
c906108c | 24590 | |
97bf5e38 MK |
24591 | #define _SYSCALL32 |
24592 | #include <sys/procfs.h> | |
bec39cab AC |
24593 | int |
24594 | main () | |
24595 | { | |
97bf5e38 | 24596 | prgregset_t avar |
bec39cab AC |
24597 | ; |
24598 | return 0; | |
24599 | } | |
24600 | _ACEOF | |
24601 | rm -f conftest.$ac_objext | |
24602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24603 | (eval $ac_compile) 2>conftest.er1 | |
24604 | ac_status=$? | |
24605 | grep -v '^ *+' conftest.er1 >conftest.err | |
24606 | rm -f conftest.er1 | |
24607 | cat conftest.err >&5 | |
24608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24609 | (exit $ac_status); } && | |
b4e70030 JB |
24610 | { ac_try='test -z "$ac_c_werror_flag" |
24611 | || test ! -s conftest.err' | |
bec39cab AC |
24612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24613 | (eval $ac_try) 2>&5 | |
24614 | ac_status=$? | |
24615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24616 | (exit $ac_status); }; } && | |
24617 | { ac_try='test -s conftest.$ac_objext' | |
24618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24619 | (eval $ac_try) 2>&5 | |
24620 | ac_status=$? | |
24621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24622 | (exit $ac_status); }; }; then | |
97bf5e38 | 24623 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 24624 | else |
bec39cab AC |
24625 | echo "$as_me: failed program was:" >&5 |
24626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24627 | ||
b4e70030 | 24628 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 24629 | |
c906108c | 24630 | fi |
bec39cab | 24631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
24632 | fi |
24633 | ||
97bf5e38 | 24634 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
24635 | |
24636 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24637 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 24638 | _ACEOF |
c906108c | 24639 | |
97bf5e38 | 24640 | fi |
b4e70030 JB |
24641 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
24642 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 24643 | |
b4e70030 JB |
24644 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
24645 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24646 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
24647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 24648 | else |
bec39cab AC |
24649 | cat >conftest.$ac_ext <<_ACEOF |
24650 | /* confdefs.h. */ | |
24651 | _ACEOF | |
24652 | cat confdefs.h >>conftest.$ac_ext | |
24653 | cat >>conftest.$ac_ext <<_ACEOF | |
24654 | /* end confdefs.h. */ | |
97bf5e38 MK |
24655 | |
24656 | #define _SYSCALL32 | |
24657 | #include <sys/procfs.h> | |
bec39cab AC |
24658 | int |
24659 | main () | |
24660 | { | |
97bf5e38 | 24661 | prfpregset_t avar |
bec39cab AC |
24662 | ; |
24663 | return 0; | |
24664 | } | |
24665 | _ACEOF | |
24666 | rm -f conftest.$ac_objext | |
24667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24668 | (eval $ac_compile) 2>conftest.er1 | |
24669 | ac_status=$? | |
24670 | grep -v '^ *+' conftest.er1 >conftest.err | |
24671 | rm -f conftest.er1 | |
24672 | cat conftest.err >&5 | |
24673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24674 | (exit $ac_status); } && | |
b4e70030 JB |
24675 | { ac_try='test -z "$ac_c_werror_flag" |
24676 | || test ! -s conftest.err' | |
bec39cab AC |
24677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24678 | (eval $ac_try) 2>&5 | |
24679 | ac_status=$? | |
24680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24681 | (exit $ac_status); }; } && | |
24682 | { ac_try='test -s conftest.$ac_objext' | |
24683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24684 | (eval $ac_try) 2>&5 | |
24685 | ac_status=$? | |
24686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24687 | (exit $ac_status); }; }; then | |
97bf5e38 | 24688 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 24689 | else |
bec39cab AC |
24690 | echo "$as_me: failed program was:" >&5 |
24691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24692 | ||
b4e70030 | 24693 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 24694 | |
d45fe813 | 24695 | fi |
bec39cab | 24696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
24697 | fi |
24698 | ||
97bf5e38 | 24699 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
24700 | |
24701 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24702 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 24703 | _ACEOF |
d45fe813 | 24704 | |
97bf5e38 | 24705 | fi |
b4e70030 JB |
24706 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
24707 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 24708 | |
b4e70030 JB |
24709 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
24710 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24711 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
24712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 24713 | else |
bec39cab AC |
24714 | cat >conftest.$ac_ext <<_ACEOF |
24715 | /* confdefs.h. */ | |
24716 | _ACEOF | |
24717 | cat confdefs.h >>conftest.$ac_ext | |
24718 | cat >>conftest.$ac_ext <<_ACEOF | |
24719 | /* end confdefs.h. */ | |
97bf5e38 MK |
24720 | |
24721 | #define _SYSCALL32 | |
24722 | #include <sys/procfs.h> | |
bec39cab AC |
24723 | int |
24724 | main () | |
24725 | { | |
97bf5e38 | 24726 | prgregset32_t avar |
bec39cab AC |
24727 | ; |
24728 | return 0; | |
24729 | } | |
24730 | _ACEOF | |
24731 | rm -f conftest.$ac_objext | |
24732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24733 | (eval $ac_compile) 2>conftest.er1 | |
24734 | ac_status=$? | |
24735 | grep -v '^ *+' conftest.er1 >conftest.err | |
24736 | rm -f conftest.er1 | |
24737 | cat conftest.err >&5 | |
24738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24739 | (exit $ac_status); } && | |
b4e70030 JB |
24740 | { ac_try='test -z "$ac_c_werror_flag" |
24741 | || test ! -s conftest.err' | |
bec39cab AC |
24742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24743 | (eval $ac_try) 2>&5 | |
24744 | ac_status=$? | |
24745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24746 | (exit $ac_status); }; } && | |
24747 | { ac_try='test -s conftest.$ac_objext' | |
24748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24749 | (eval $ac_try) 2>&5 | |
24750 | ac_status=$? | |
24751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24752 | (exit $ac_status); }; }; then | |
97bf5e38 | 24753 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 24754 | else |
bec39cab AC |
24755 | echo "$as_me: failed program was:" >&5 |
24756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24757 | ||
b4e70030 | 24758 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 24759 | |
d45fe813 | 24760 | fi |
bec39cab | 24761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
24762 | fi |
24763 | ||
97bf5e38 | 24764 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
24765 | |
24766 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24767 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 24768 | _ACEOF |
d45fe813 | 24769 | |
97bf5e38 | 24770 | fi |
b4e70030 JB |
24771 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
24772 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 24773 | |
b4e70030 JB |
24774 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
24775 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24776 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
24777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 24778 | else |
bec39cab AC |
24779 | cat >conftest.$ac_ext <<_ACEOF |
24780 | /* confdefs.h. */ | |
24781 | _ACEOF | |
24782 | cat confdefs.h >>conftest.$ac_ext | |
24783 | cat >>conftest.$ac_ext <<_ACEOF | |
24784 | /* end confdefs.h. */ | |
97bf5e38 MK |
24785 | |
24786 | #define _SYSCALL32 | |
24787 | #include <sys/procfs.h> | |
bec39cab AC |
24788 | int |
24789 | main () | |
24790 | { | |
97bf5e38 | 24791 | prfpregset32_t avar |
bec39cab AC |
24792 | ; |
24793 | return 0; | |
24794 | } | |
24795 | _ACEOF | |
24796 | rm -f conftest.$ac_objext | |
24797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24798 | (eval $ac_compile) 2>conftest.er1 | |
24799 | ac_status=$? | |
24800 | grep -v '^ *+' conftest.er1 >conftest.err | |
24801 | rm -f conftest.er1 | |
24802 | cat conftest.err >&5 | |
24803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24804 | (exit $ac_status); } && | |
b4e70030 JB |
24805 | { ac_try='test -z "$ac_c_werror_flag" |
24806 | || test ! -s conftest.err' | |
bec39cab AC |
24807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24808 | (eval $ac_try) 2>&5 | |
24809 | ac_status=$? | |
24810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24811 | (exit $ac_status); }; } && | |
24812 | { ac_try='test -s conftest.$ac_objext' | |
24813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24814 | (eval $ac_try) 2>&5 | |
24815 | ac_status=$? | |
24816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24817 | (exit $ac_status); }; }; then | |
97bf5e38 | 24818 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 24819 | else |
bec39cab AC |
24820 | echo "$as_me: failed program was:" >&5 |
24821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24822 | ||
b4e70030 | 24823 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 24824 | |
d45fe813 | 24825 | fi |
bec39cab | 24826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
24827 | fi |
24828 | ||
97bf5e38 | 24829 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
24830 | |
24831 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24832 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 24833 | _ACEOF |
d45fe813 | 24834 | |
97bf5e38 | 24835 | fi |
b4e70030 JB |
24836 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
24837 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 24838 | |
b4e70030 JB |
24839 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
24840 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24841 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
24842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 24843 | else |
bec39cab AC |
24844 | cat >conftest.$ac_ext <<_ACEOF |
24845 | /* confdefs.h. */ | |
24846 | _ACEOF | |
24847 | cat confdefs.h >>conftest.$ac_ext | |
24848 | cat >>conftest.$ac_ext <<_ACEOF | |
24849 | /* end confdefs.h. */ | |
97bf5e38 | 24850 | |
d45fe813 | 24851 | #define _SYSCALL32 |
97bf5e38 | 24852 | #include <sys/procfs.h> |
bec39cab AC |
24853 | int |
24854 | main () | |
24855 | { | |
97bf5e38 | 24856 | lwpid_t avar |
bec39cab AC |
24857 | ; |
24858 | return 0; | |
24859 | } | |
24860 | _ACEOF | |
24861 | rm -f conftest.$ac_objext | |
24862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24863 | (eval $ac_compile) 2>conftest.er1 | |
24864 | ac_status=$? | |
24865 | grep -v '^ *+' conftest.er1 >conftest.err | |
24866 | rm -f conftest.er1 | |
24867 | cat conftest.err >&5 | |
24868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24869 | (exit $ac_status); } && | |
b4e70030 JB |
24870 | { ac_try='test -z "$ac_c_werror_flag" |
24871 | || test ! -s conftest.err' | |
bec39cab AC |
24872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24873 | (eval $ac_try) 2>&5 | |
24874 | ac_status=$? | |
24875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24876 | (exit $ac_status); }; } && | |
24877 | { ac_try='test -s conftest.$ac_objext' | |
24878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24879 | (eval $ac_try) 2>&5 | |
24880 | ac_status=$? | |
24881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24882 | (exit $ac_status); }; }; then | |
97bf5e38 | 24883 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 24884 | else |
bec39cab AC |
24885 | echo "$as_me: failed program was:" >&5 |
24886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24887 | ||
b4e70030 | 24888 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 24889 | |
d45fe813 | 24890 | fi |
bec39cab | 24891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
24892 | fi |
24893 | ||
97bf5e38 | 24894 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
24895 | |
24896 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24897 | #define HAVE_LWPID_T 1 |
bec39cab | 24898 | _ACEOF |
d45fe813 | 24899 | |
97bf5e38 | 24900 | fi |
b4e70030 JB |
24901 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
24902 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 24903 | |
b4e70030 JB |
24904 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
24905 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24906 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
24907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 24908 | else |
bec39cab AC |
24909 | cat >conftest.$ac_ext <<_ACEOF |
24910 | /* confdefs.h. */ | |
24911 | _ACEOF | |
24912 | cat confdefs.h >>conftest.$ac_ext | |
24913 | cat >>conftest.$ac_ext <<_ACEOF | |
24914 | /* end confdefs.h. */ | |
c906108c | 24915 | |
97bf5e38 MK |
24916 | #define _SYSCALL32 |
24917 | #include <sys/procfs.h> | |
bec39cab AC |
24918 | int |
24919 | main () | |
24920 | { | |
97bf5e38 | 24921 | psaddr_t avar |
bec39cab AC |
24922 | ; |
24923 | return 0; | |
24924 | } | |
24925 | _ACEOF | |
24926 | rm -f conftest.$ac_objext | |
24927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24928 | (eval $ac_compile) 2>conftest.er1 | |
24929 | ac_status=$? | |
24930 | grep -v '^ *+' conftest.er1 >conftest.err | |
24931 | rm -f conftest.er1 | |
24932 | cat conftest.err >&5 | |
24933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24934 | (exit $ac_status); } && | |
b4e70030 JB |
24935 | { ac_try='test -z "$ac_c_werror_flag" |
24936 | || test ! -s conftest.err' | |
bec39cab AC |
24937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24938 | (eval $ac_try) 2>&5 | |
24939 | ac_status=$? | |
24940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24941 | (exit $ac_status); }; } && | |
24942 | { ac_try='test -s conftest.$ac_objext' | |
24943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24944 | (eval $ac_try) 2>&5 | |
24945 | ac_status=$? | |
24946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24947 | (exit $ac_status); }; }; then | |
97bf5e38 | 24948 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 24949 | else |
bec39cab AC |
24950 | echo "$as_me: failed program was:" >&5 |
24951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24952 | ||
b4e70030 | 24953 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 24954 | |
c906108c | 24955 | fi |
bec39cab | 24956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
24957 | fi |
24958 | ||
97bf5e38 | 24959 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
24960 | |
24961 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 24962 | #define HAVE_PSADDR_T 1 |
bec39cab | 24963 | _ACEOF |
c906108c | 24964 | |
97bf5e38 | 24965 | fi |
b4e70030 JB |
24966 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
24967 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 24968 | |
b4e70030 JB |
24969 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
24970 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
24971 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
24972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 24973 | else |
bec39cab AC |
24974 | cat >conftest.$ac_ext <<_ACEOF |
24975 | /* confdefs.h. */ | |
24976 | _ACEOF | |
24977 | cat confdefs.h >>conftest.$ac_ext | |
24978 | cat >>conftest.$ac_ext <<_ACEOF | |
24979 | /* end confdefs.h. */ | |
c906108c | 24980 | |
97bf5e38 MK |
24981 | #define _SYSCALL32 |
24982 | #include <sys/procfs.h> | |
bec39cab AC |
24983 | int |
24984 | main () | |
24985 | { | |
97bf5e38 | 24986 | prsysent_t avar |
bec39cab AC |
24987 | ; |
24988 | return 0; | |
24989 | } | |
24990 | _ACEOF | |
24991 | rm -f conftest.$ac_objext | |
24992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24993 | (eval $ac_compile) 2>conftest.er1 | |
24994 | ac_status=$? | |
24995 | grep -v '^ *+' conftest.er1 >conftest.err | |
24996 | rm -f conftest.er1 | |
24997 | cat conftest.err >&5 | |
24998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24999 | (exit $ac_status); } && | |
b4e70030 JB |
25000 | { ac_try='test -z "$ac_c_werror_flag" |
25001 | || test ! -s conftest.err' | |
bec39cab AC |
25002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25003 | (eval $ac_try) 2>&5 | |
25004 | ac_status=$? | |
25005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25006 | (exit $ac_status); }; } && | |
25007 | { ac_try='test -s conftest.$ac_objext' | |
25008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25009 | (eval $ac_try) 2>&5 | |
25010 | ac_status=$? | |
25011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25012 | (exit $ac_status); }; }; then | |
97bf5e38 | 25013 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 25014 | else |
bec39cab AC |
25015 | echo "$as_me: failed program was:" >&5 |
25016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25017 | ||
b4e70030 | 25018 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 25019 | |
c906108c | 25020 | fi |
bec39cab | 25021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
25022 | fi |
25023 | ||
97bf5e38 | 25024 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
25025 | |
25026 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25027 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 25028 | _ACEOF |
c906108c | 25029 | |
97bf5e38 | 25030 | fi |
b4e70030 JB |
25031 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
25032 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 25033 | |
b4e70030 JB |
25034 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
25035 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
25036 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
25037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 25038 | else |
bec39cab AC |
25039 | cat >conftest.$ac_ext <<_ACEOF |
25040 | /* confdefs.h. */ | |
25041 | _ACEOF | |
25042 | cat confdefs.h >>conftest.$ac_ext | |
25043 | cat >>conftest.$ac_ext <<_ACEOF | |
25044 | /* end confdefs.h. */ | |
c906108c | 25045 | |
97bf5e38 MK |
25046 | #define _SYSCALL32 |
25047 | #include <sys/procfs.h> | |
bec39cab AC |
25048 | int |
25049 | main () | |
25050 | { | |
97bf5e38 | 25051 | pr_sigset_t avar |
bec39cab AC |
25052 | ; |
25053 | return 0; | |
25054 | } | |
25055 | _ACEOF | |
25056 | rm -f conftest.$ac_objext | |
25057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25058 | (eval $ac_compile) 2>conftest.er1 | |
25059 | ac_status=$? | |
25060 | grep -v '^ *+' conftest.er1 >conftest.err | |
25061 | rm -f conftest.er1 | |
25062 | cat conftest.err >&5 | |
25063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25064 | (exit $ac_status); } && | |
b4e70030 JB |
25065 | { ac_try='test -z "$ac_c_werror_flag" |
25066 | || test ! -s conftest.err' | |
bec39cab AC |
25067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25068 | (eval $ac_try) 2>&5 | |
25069 | ac_status=$? | |
25070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25071 | (exit $ac_status); }; } && | |
25072 | { ac_try='test -s conftest.$ac_objext' | |
25073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25074 | (eval $ac_try) 2>&5 | |
25075 | ac_status=$? | |
25076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25077 | (exit $ac_status); }; }; then | |
97bf5e38 | 25078 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 25079 | else |
bec39cab AC |
25080 | echo "$as_me: failed program was:" >&5 |
25081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25082 | ||
b4e70030 | 25083 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 25084 | |
c906108c | 25085 | fi |
bec39cab | 25086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
25087 | fi |
25088 | ||
97bf5e38 | 25089 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
25090 | |
25091 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25092 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 25093 | _ACEOF |
c906108c | 25094 | |
97bf5e38 | 25095 | fi |
b4e70030 JB |
25096 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
25097 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 25098 | |
b4e70030 JB |
25099 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
25100 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
25101 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
25102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 25103 | else |
bec39cab AC |
25104 | cat >conftest.$ac_ext <<_ACEOF |
25105 | /* confdefs.h. */ | |
25106 | _ACEOF | |
25107 | cat confdefs.h >>conftest.$ac_ext | |
25108 | cat >>conftest.$ac_ext <<_ACEOF | |
25109 | /* end confdefs.h. */ | |
c906108c | 25110 | |
97bf5e38 MK |
25111 | #define _SYSCALL32 |
25112 | #include <sys/procfs.h> | |
bec39cab AC |
25113 | int |
25114 | main () | |
25115 | { | |
97bf5e38 | 25116 | pr_sigaction64_t avar |
bec39cab AC |
25117 | ; |
25118 | return 0; | |
25119 | } | |
25120 | _ACEOF | |
25121 | rm -f conftest.$ac_objext | |
25122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25123 | (eval $ac_compile) 2>conftest.er1 | |
25124 | ac_status=$? | |
25125 | grep -v '^ *+' conftest.er1 >conftest.err | |
25126 | rm -f conftest.er1 | |
25127 | cat conftest.err >&5 | |
25128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25129 | (exit $ac_status); } && | |
b4e70030 JB |
25130 | { ac_try='test -z "$ac_c_werror_flag" |
25131 | || test ! -s conftest.err' | |
bec39cab AC |
25132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25133 | (eval $ac_try) 2>&5 | |
25134 | ac_status=$? | |
25135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25136 | (exit $ac_status); }; } && | |
25137 | { ac_try='test -s conftest.$ac_objext' | |
25138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25139 | (eval $ac_try) 2>&5 | |
25140 | ac_status=$? | |
25141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25142 | (exit $ac_status); }; }; then | |
97bf5e38 | 25143 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 25144 | else |
bec39cab AC |
25145 | echo "$as_me: failed program was:" >&5 |
25146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25147 | ||
b4e70030 | 25148 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 25149 | |
c906108c | 25150 | fi |
bec39cab | 25151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
25152 | fi |
25153 | ||
97bf5e38 | 25154 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
25155 | |
25156 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25157 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 25158 | _ACEOF |
c906108c | 25159 | |
97bf5e38 | 25160 | fi |
b4e70030 JB |
25161 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
25162 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 25163 | |
b4e70030 JB |
25164 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
25165 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
25166 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
25167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 25168 | else |
bec39cab AC |
25169 | cat >conftest.$ac_ext <<_ACEOF |
25170 | /* confdefs.h. */ | |
25171 | _ACEOF | |
25172 | cat confdefs.h >>conftest.$ac_ext | |
25173 | cat >>conftest.$ac_ext <<_ACEOF | |
25174 | /* end confdefs.h. */ | |
97bf5e38 MK |
25175 | |
25176 | #define _SYSCALL32 | |
25177 | #include <sys/procfs.h> | |
bec39cab AC |
25178 | int |
25179 | main () | |
25180 | { | |
97bf5e38 | 25181 | pr_siginfo64_t avar |
bec39cab AC |
25182 | ; |
25183 | return 0; | |
25184 | } | |
25185 | _ACEOF | |
25186 | rm -f conftest.$ac_objext | |
25187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25188 | (eval $ac_compile) 2>conftest.er1 | |
25189 | ac_status=$? | |
25190 | grep -v '^ *+' conftest.er1 >conftest.err | |
25191 | rm -f conftest.er1 | |
25192 | cat conftest.err >&5 | |
25193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25194 | (exit $ac_status); } && | |
b4e70030 JB |
25195 | { ac_try='test -z "$ac_c_werror_flag" |
25196 | || test ! -s conftest.err' | |
bec39cab AC |
25197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25198 | (eval $ac_try) 2>&5 | |
25199 | ac_status=$? | |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25201 | (exit $ac_status); }; } && | |
25202 | { ac_try='test -s conftest.$ac_objext' | |
25203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25204 | (eval $ac_try) 2>&5 | |
25205 | ac_status=$? | |
25206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25207 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25208 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
25209 | else | |
bec39cab AC |
25210 | echo "$as_me: failed program was:" >&5 |
25211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25212 | ||
b4e70030 | 25213 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 25214 | |
97bf5e38 | 25215 | fi |
bec39cab | 25216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 25217 | fi |
c906108c | 25218 | |
97bf5e38 | 25219 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
25220 | |
25221 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25222 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 25223 | _ACEOF |
c906108c | 25224 | |
97bf5e38 | 25225 | fi |
b4e70030 JB |
25226 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
25227 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
25228 | |
25229 | ||
97bf5e38 MK |
25230 | |
25231 | ||
25232 | ||
97bf5e38 | 25233 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
25234 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
25235 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
25236 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
25237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
25238 | else |
25239 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 25240 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 25241 | else |
bec39cab AC |
25242 | cat >conftest.$ac_ext <<_ACEOF |
25243 | /* confdefs.h. */ | |
25244 | _ACEOF | |
25245 | cat confdefs.h >>conftest.$ac_ext | |
25246 | cat >>conftest.$ac_ext <<_ACEOF | |
25247 | /* end confdefs.h. */ | |
97bf5e38 MK |
25248 | #include <sys/procfs.h> |
25249 | int main () | |
25250 | { | |
25251 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
25252 | return 1; | |
25253 | return 0; | |
25254 | } | |
bec39cab AC |
25255 | _ACEOF |
25256 | rm -f conftest$ac_exeext | |
25257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25258 | (eval $ac_link) 2>&5 | |
25259 | ac_status=$? | |
25260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25263 | (eval $ac_try) 2>&5 | |
25264 | ac_status=$? | |
25265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25266 | (exit $ac_status); }; }; then | |
97bf5e38 | 25267 | gdb_cv_prfpregset_t_broken=no |
c906108c | 25268 | else |
bec39cab AC |
25269 | echo "$as_me: program exited with status $ac_status" >&5 |
25270 | echo "$as_me: failed program was:" >&5 | |
25271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25272 | ||
25273 | ( exit $ac_status ) | |
25274 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 25275 | fi |
b4e70030 | 25276 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 25277 | fi |
c906108c SS |
25278 | fi |
25279 | ||
b4e70030 JB |
25280 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
25281 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 25282 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
25283 | |
25284 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25285 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 25286 | _ACEOF |
c906108c | 25287 | |
97bf5e38 MK |
25288 | fi |
25289 | fi | |
c906108c | 25290 | |
bec39cab | 25291 | |
b4e70030 JB |
25292 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
25293 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
25294 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
25295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 25296 | else |
bec39cab AC |
25297 | cat >conftest.$ac_ext <<_ACEOF |
25298 | /* confdefs.h. */ | |
25299 | _ACEOF | |
25300 | cat confdefs.h >>conftest.$ac_ext | |
25301 | cat >>conftest.$ac_ext <<_ACEOF | |
25302 | /* end confdefs.h. */ | |
97bf5e38 MK |
25303 | #include <unistd.h> |
25304 | #include <sys/types.h> | |
25305 | #include <sys/procfs.h> | |
25306 | ||
bec39cab AC |
25307 | int |
25308 | main () | |
25309 | { | |
97bf5e38 MK |
25310 | |
25311 | int dummy;; | |
25312 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
25313 | |
25314 | ; | |
25315 | return 0; | |
25316 | } | |
25317 | _ACEOF | |
25318 | rm -f conftest.$ac_objext | |
25319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25320 | (eval $ac_compile) 2>conftest.er1 | |
25321 | ac_status=$? | |
25322 | grep -v '^ *+' conftest.er1 >conftest.err | |
25323 | rm -f conftest.er1 | |
25324 | cat conftest.err >&5 | |
25325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25326 | (exit $ac_status); } && | |
b4e70030 JB |
25327 | { ac_try='test -z "$ac_c_werror_flag" |
25328 | || test ! -s conftest.err' | |
bec39cab AC |
25329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25330 | (eval $ac_try) 2>&5 | |
25331 | ac_status=$? | |
25332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25333 | (exit $ac_status); }; } && | |
25334 | { ac_try='test -s conftest.$ac_objext' | |
25335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25336 | (eval $ac_try) 2>&5 | |
25337 | ac_status=$? | |
25338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25339 | (exit $ac_status); }; }; then | |
97bf5e38 | 25340 | gdb_cv_have_procfs_piocset=yes |
c906108c | 25341 | else |
bec39cab AC |
25342 | echo "$as_me: failed program was:" >&5 |
25343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25344 | ||
b4e70030 | 25345 | gdb_cv_have_procfs_piocset=no |
c906108c | 25346 | fi |
bec39cab | 25347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 25348 | fi |
97bf5e38 | 25349 | |
b4e70030 JB |
25350 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
25351 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 25352 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
25353 | |
25354 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25355 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 25356 | _ACEOF |
97bf5e38 MK |
25357 | |
25358 | fi | |
c906108c | 25359 | fi |
c906108c | 25360 | |
97bf5e38 | 25361 | if test ${host} = ${target} ; then |
bec39cab | 25362 | |
b4e70030 JB |
25363 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
25364 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
25365 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
25366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25367 | else | |
25368 | cat >conftest.$ac_ext <<_ACEOF | |
25369 | /* confdefs.h. */ | |
25370 | _ACEOF | |
25371 | cat confdefs.h >>conftest.$ac_ext | |
25372 | cat >>conftest.$ac_ext <<_ACEOF | |
25373 | /* end confdefs.h. */ | |
97bf5e38 | 25374 | #include <link.h> |
bec39cab AC |
25375 | int |
25376 | main () | |
25377 | { | |
97bf5e38 | 25378 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
25379 | ; |
25380 | return 0; | |
25381 | } | |
25382 | _ACEOF | |
25383 | rm -f conftest.$ac_objext | |
25384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25385 | (eval $ac_compile) 2>conftest.er1 | |
25386 | ac_status=$? | |
25387 | grep -v '^ *+' conftest.er1 >conftest.err | |
25388 | rm -f conftest.er1 | |
25389 | cat conftest.err >&5 | |
25390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25391 | (exit $ac_status); } && | |
b4e70030 JB |
25392 | { ac_try='test -z "$ac_c_werror_flag" |
25393 | || test ! -s conftest.err' | |
bec39cab AC |
25394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25395 | (eval $ac_try) 2>&5 | |
25396 | ac_status=$? | |
25397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25398 | (exit $ac_status); }; } && | |
25399 | { ac_try='test -s conftest.$ac_objext' | |
25400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25401 | (eval $ac_try) 2>&5 | |
25402 | ac_status=$? | |
25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25404 | (exit $ac_status); }; }; then | |
97bf5e38 | 25405 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 25406 | else |
bec39cab AC |
25407 | echo "$as_me: failed program was:" >&5 |
25408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25409 | ||
b4e70030 | 25410 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 25411 | fi |
bec39cab | 25412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
25413 | fi |
25414 | ||
b4e70030 JB |
25415 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
25416 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 25417 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
25418 | |
25419 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25420 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 25421 | _ACEOF |
97bf5e38 MK |
25422 | |
25423 | fi | |
25424 | ||
bec39cab | 25425 | |
b4e70030 JB |
25426 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
25427 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
25428 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
25429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 25430 | else |
bec39cab AC |
25431 | cat >conftest.$ac_ext <<_ACEOF |
25432 | /* confdefs.h. */ | |
25433 | _ACEOF | |
25434 | cat confdefs.h >>conftest.$ac_ext | |
25435 | cat >>conftest.$ac_ext <<_ACEOF | |
25436 | /* end confdefs.h. */ | |
97bf5e38 MK |
25437 | #include <sys/types.h> |
25438 | #include <link.h> | |
bec39cab AC |
25439 | int |
25440 | main () | |
25441 | { | |
97bf5e38 | 25442 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
25443 | ; |
25444 | return 0; | |
25445 | } | |
25446 | _ACEOF | |
25447 | rm -f conftest.$ac_objext | |
25448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25449 | (eval $ac_compile) 2>conftest.er1 | |
25450 | ac_status=$? | |
25451 | grep -v '^ *+' conftest.er1 >conftest.err | |
25452 | rm -f conftest.er1 | |
25453 | cat conftest.err >&5 | |
25454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25455 | (exit $ac_status); } && | |
b4e70030 JB |
25456 | { ac_try='test -z "$ac_c_werror_flag" |
25457 | || test ! -s conftest.err' | |
bec39cab AC |
25458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25459 | (eval $ac_try) 2>&5 | |
25460 | ac_status=$? | |
25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25462 | (exit $ac_status); }; } && | |
25463 | { ac_try='test -s conftest.$ac_objext' | |
25464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25465 | (eval $ac_try) 2>&5 | |
25466 | ac_status=$? | |
25467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25468 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25469 | gdb_cv_have_struct_link_map_with_lm_members=yes |
25470 | else | |
bec39cab AC |
25471 | echo "$as_me: failed program was:" >&5 |
25472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25473 | ||
b4e70030 | 25474 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 25475 | fi |
bec39cab | 25476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 25477 | fi |
c906108c | 25478 | |
b4e70030 JB |
25479 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
25480 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 25481 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
25482 | |
25483 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25484 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 25485 | _ACEOF |
97bf5e38 MK |
25486 | |
25487 | fi | |
25488 | ||
bec39cab | 25489 | |
b4e70030 JB |
25490 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
25491 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
25492 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
25493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 25494 | else |
bec39cab AC |
25495 | cat >conftest.$ac_ext <<_ACEOF |
25496 | /* confdefs.h. */ | |
25497 | _ACEOF | |
25498 | cat confdefs.h >>conftest.$ac_ext | |
25499 | cat >>conftest.$ac_ext <<_ACEOF | |
25500 | /* end confdefs.h. */ | |
97bf5e38 MK |
25501 | #include <sys/types.h> |
25502 | #ifdef HAVE_NLIST_H | |
25503 | #include <nlist.h> | |
25504 | #endif | |
25505 | #include <link.h> | |
bec39cab AC |
25506 | int |
25507 | main () | |
25508 | { | |
97bf5e38 | 25509 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
25510 | ; |
25511 | return 0; | |
25512 | } | |
25513 | _ACEOF | |
25514 | rm -f conftest.$ac_objext | |
25515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25516 | (eval $ac_compile) 2>conftest.er1 | |
25517 | ac_status=$? | |
25518 | grep -v '^ *+' conftest.er1 >conftest.err | |
25519 | rm -f conftest.er1 | |
25520 | cat conftest.err >&5 | |
25521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25522 | (exit $ac_status); } && | |
b4e70030 JB |
25523 | { ac_try='test -z "$ac_c_werror_flag" |
25524 | || test ! -s conftest.err' | |
bec39cab AC |
25525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25526 | (eval $ac_try) 2>&5 | |
25527 | ac_status=$? | |
25528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25529 | (exit $ac_status); }; } && | |
25530 | { ac_try='test -s conftest.$ac_objext' | |
25531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25532 | (eval $ac_try) 2>&5 | |
25533 | ac_status=$? | |
25534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25535 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25536 | gdb_cv_have_struct_so_map_with_som_members=yes |
25537 | else | |
bec39cab AC |
25538 | echo "$as_me: failed program was:" >&5 |
25539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25540 | ||
b4e70030 | 25541 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 25542 | fi |
bec39cab | 25543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25544 | fi |
c906108c | 25545 | |
b4e70030 JB |
25546 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
25547 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 25548 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
25549 | |
25550 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25551 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 25552 | _ACEOF |
c906108c | 25553 | |
97bf5e38 | 25554 | fi |
c906108c | 25555 | |
bec39cab | 25556 | |
b4e70030 JB |
25557 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
25558 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
25559 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
25560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 25561 | else |
bec39cab AC |
25562 | cat >conftest.$ac_ext <<_ACEOF |
25563 | /* confdefs.h. */ | |
25564 | _ACEOF | |
25565 | cat confdefs.h >>conftest.$ac_ext | |
25566 | cat >>conftest.$ac_ext <<_ACEOF | |
25567 | /* end confdefs.h. */ | |
97bf5e38 MK |
25568 | #define _SYSCALL32 |
25569 | #include <sys/link.h> | |
bec39cab AC |
25570 | int |
25571 | main () | |
25572 | { | |
97bf5e38 | 25573 | struct link_map32 l; |
bec39cab AC |
25574 | ; |
25575 | return 0; | |
25576 | } | |
25577 | _ACEOF | |
25578 | rm -f conftest.$ac_objext | |
25579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25580 | (eval $ac_compile) 2>conftest.er1 | |
25581 | ac_status=$? | |
25582 | grep -v '^ *+' conftest.er1 >conftest.err | |
25583 | rm -f conftest.er1 | |
25584 | cat conftest.err >&5 | |
25585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25586 | (exit $ac_status); } && | |
b4e70030 JB |
25587 | { ac_try='test -z "$ac_c_werror_flag" |
25588 | || test ! -s conftest.err' | |
bec39cab AC |
25589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25590 | (eval $ac_try) 2>&5 | |
25591 | ac_status=$? | |
25592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25593 | (exit $ac_status); }; } && | |
25594 | { ac_try='test -s conftest.$ac_objext' | |
25595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25596 | (eval $ac_try) 2>&5 | |
25597 | ac_status=$? | |
25598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25599 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25600 | gdb_cv_have_struct_link_map32=yes |
25601 | else | |
bec39cab AC |
25602 | echo "$as_me: failed program was:" >&5 |
25603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25604 | ||
b4e70030 | 25605 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 25606 | fi |
bec39cab | 25607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25608 | fi |
c906108c | 25609 | |
b4e70030 JB |
25610 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
25611 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 25612 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
25613 | |
25614 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25615 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 25616 | _ACEOF |
c906108c | 25617 | |
60ca704f SE |
25618 | |
25619 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25620 | #define _SYSCALL32 1 |
bec39cab | 25621 | _ACEOF |
c906108c | 25622 | |
97bf5e38 MK |
25623 | fi |
25624 | fi | |
c906108c | 25625 | |
bc8bcb4b | 25626 | # Check if the compiler supports the `long long' type. |
c906108c | 25627 | |
b4e70030 JB |
25628 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
25629 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
25630 | if test "${gdb_cv_c_long_long+set}" = set; then |
25631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 25632 | else |
bec39cab AC |
25633 | cat >conftest.$ac_ext <<_ACEOF |
25634 | /* confdefs.h. */ | |
25635 | _ACEOF | |
25636 | cat confdefs.h >>conftest.$ac_ext | |
25637 | cat >>conftest.$ac_ext <<_ACEOF | |
25638 | /* end confdefs.h. */ | |
bc8bcb4b | 25639 | extern long long foo; |
bec39cab AC |
25640 | int |
25641 | main () | |
25642 | { | |
bc8bcb4b | 25643 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
25644 | ; |
25645 | return 0; | |
25646 | } | |
25647 | _ACEOF | |
25648 | rm -f conftest.$ac_objext | |
25649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25650 | (eval $ac_compile) 2>conftest.er1 | |
25651 | ac_status=$? | |
25652 | grep -v '^ *+' conftest.er1 >conftest.err | |
25653 | rm -f conftest.er1 | |
25654 | cat conftest.err >&5 | |
25655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25656 | (exit $ac_status); } && | |
b4e70030 JB |
25657 | { ac_try='test -z "$ac_c_werror_flag" |
25658 | || test ! -s conftest.err' | |
bec39cab AC |
25659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25660 | (eval $ac_try) 2>&5 | |
25661 | ac_status=$? | |
25662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25663 | (exit $ac_status); }; } && | |
25664 | { ac_try='test -s conftest.$ac_objext' | |
25665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25666 | (eval $ac_try) 2>&5 | |
25667 | ac_status=$? | |
25668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25669 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25670 | gdb_cv_c_long_long=yes |
25671 | else | |
bec39cab AC |
25672 | echo "$as_me: failed program was:" >&5 |
25673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25674 | ||
b4e70030 | 25675 | gdb_cv_c_long_long=no |
97bf5e38 | 25676 | fi |
bec39cab | 25677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25678 | fi |
b4e70030 JB |
25679 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
25680 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 25681 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
25682 | |
25683 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25684 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 25685 | _ACEOF |
97bf5e38 MK |
25686 | |
25687 | fi | |
25688 | ||
bc8bcb4b | 25689 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 25690 | |
b4e70030 JB |
25691 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
25692 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
25693 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
25694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
25695 | else |
25696 | if test "$cross_compiling" = yes; then | |
25697 | gdb_cv_printf_has_long_long=no | |
25698 | else | |
bec39cab AC |
25699 | cat >conftest.$ac_ext <<_ACEOF |
25700 | /* confdefs.h. */ | |
25701 | _ACEOF | |
25702 | cat confdefs.h >>conftest.$ac_ext | |
25703 | cat >>conftest.$ac_ext <<_ACEOF | |
25704 | /* end confdefs.h. */ | |
bc8bcb4b MK |
25705 | $ac_includes_default |
25706 | int | |
25707 | main () | |
25708 | { | |
25709 | char buf[32]; | |
97bf5e38 MK |
25710 | long long l = 0; |
25711 | l = (l << 16) + 0x0123; | |
25712 | l = (l << 16) + 0x4567; | |
25713 | l = (l << 16) + 0x89ab; | |
25714 | l = (l << 16) + 0xcdef; | |
25715 | sprintf (buf, "0x%016llx", l); | |
25716 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
25717 | ; |
25718 | return 0; | |
c906108c | 25719 | } |
bec39cab AC |
25720 | _ACEOF |
25721 | rm -f conftest$ac_exeext | |
25722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25723 | (eval $ac_link) 2>&5 | |
25724 | ac_status=$? | |
25725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25728 | (eval $ac_try) 2>&5 | |
25729 | ac_status=$? | |
25730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25731 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25732 | gdb_cv_printf_has_long_long=yes |
25733 | else | |
bec39cab AC |
25734 | echo "$as_me: program exited with status $ac_status" >&5 |
25735 | echo "$as_me: failed program was:" >&5 | |
25736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25737 | ||
25738 | ( exit $ac_status ) | |
25739 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 25740 | fi |
b4e70030 | 25741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25742 | fi |
97bf5e38 | 25743 | fi |
b4e70030 JB |
25744 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
25745 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 25746 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
25747 | |
25748 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25749 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 25750 | _ACEOF |
97bf5e38 MK |
25751 | |
25752 | fi | |
97bf5e38 | 25753 | |
1a619819 LM |
25754 | # Check if the compiler and runtime support printing decfloats. |
25755 | ||
25756 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 | |
25757 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 | |
25758 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then | |
25759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25760 | else | |
25761 | if test "$cross_compiling" = yes; then | |
25762 | gdb_cv_printf_has_decfloat=no | |
25763 | else | |
25764 | cat >conftest.$ac_ext <<_ACEOF | |
25765 | /* confdefs.h. */ | |
25766 | _ACEOF | |
25767 | cat confdefs.h >>conftest.$ac_ext | |
25768 | cat >>conftest.$ac_ext <<_ACEOF | |
25769 | /* end confdefs.h. */ | |
25770 | $ac_includes_default | |
25771 | int | |
25772 | main () | |
25773 | { | |
25774 | char buf[64]; | |
25775 | _Decimal32 d32 = 1.2345df; | |
25776 | _Decimal64 d64 = 1.2345dd; | |
25777 | _Decimal128 d128 = 1.2345dl; | |
25778 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); | |
25779 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); | |
25780 | ; | |
25781 | return 0; | |
25782 | } | |
25783 | _ACEOF | |
25784 | rm -f conftest$ac_exeext | |
25785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25786 | (eval $ac_link) 2>&5 | |
25787 | ac_status=$? | |
25788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25791 | (eval $ac_try) 2>&5 | |
25792 | ac_status=$? | |
25793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25794 | (exit $ac_status); }; }; then | |
25795 | gdb_cv_printf_has_decfloat=yes | |
25796 | else | |
25797 | echo "$as_me: program exited with status $ac_status" >&5 | |
25798 | echo "$as_me: failed program was:" >&5 | |
25799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25800 | ||
25801 | ( exit $ac_status ) | |
25802 | gdb_cv_printf_has_decfloat=no | |
25803 | fi | |
25804 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
25805 | fi | |
25806 | fi | |
25807 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 | |
25808 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 | |
25809 | if test $gdb_cv_printf_has_decfloat = yes; then | |
25810 | ||
25811 | cat >>confdefs.h <<\_ACEOF | |
25812 | #define PRINTF_HAS_DECFLOAT 1 | |
25813 | _ACEOF | |
25814 | ||
25815 | fi | |
25816 | ||
bc8bcb4b MK |
25817 | # Check if the compiler supports the `long double' type. We can't use |
25818 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
25819 | # constants defined in <float.h> that fail on some systems, | |
25820 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 25821 | |
b4e70030 JB |
25822 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
25823 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 25824 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 25825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 25826 | else |
bec39cab AC |
25827 | cat >conftest.$ac_ext <<_ACEOF |
25828 | /* confdefs.h. */ | |
25829 | _ACEOF | |
25830 | cat confdefs.h >>conftest.$ac_ext | |
25831 | cat >>conftest.$ac_ext <<_ACEOF | |
25832 | /* end confdefs.h. */ | |
97bf5e38 | 25833 | long double foo; |
bec39cab AC |
25834 | _ACEOF |
25835 | rm -f conftest.$ac_objext | |
25836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25837 | (eval $ac_compile) 2>conftest.er1 | |
25838 | ac_status=$? | |
25839 | grep -v '^ *+' conftest.er1 >conftest.err | |
25840 | rm -f conftest.er1 | |
25841 | cat conftest.err >&5 | |
25842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25843 | (exit $ac_status); } && | |
b4e70030 JB |
25844 | { ac_try='test -z "$ac_c_werror_flag" |
25845 | || test ! -s conftest.err' | |
bec39cab AC |
25846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25847 | (eval $ac_try) 2>&5 | |
25848 | ac_status=$? | |
25849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25850 | (exit $ac_status); }; } && | |
25851 | { ac_try='test -s conftest.$ac_objext' | |
25852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25853 | (eval $ac_try) 2>&5 | |
25854 | ac_status=$? | |
25855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25856 | (exit $ac_status); }; }; then | |
bc8bcb4b | 25857 | gdb_cv_c_long_double=yes |
97bf5e38 | 25858 | else |
bec39cab AC |
25859 | echo "$as_me: failed program was:" >&5 |
25860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25861 | ||
b4e70030 | 25862 | gdb_cv_c_long_double=no |
97bf5e38 | 25863 | fi |
bec39cab | 25864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25865 | fi |
b4e70030 JB |
25866 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
25867 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 25868 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 25869 | |
bc8bcb4b | 25870 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 25871 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 25872 | _ACEOF |
97bf5e38 MK |
25873 | |
25874 | fi | |
25875 | ||
bc8bcb4b | 25876 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 25877 | |
b4e70030 JB |
25878 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
25879 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
25880 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
25881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
25882 | else |
25883 | if test "$cross_compiling" = yes; then | |
25884 | gdb_cv_printf_has_long_double=no | |
25885 | else | |
bec39cab AC |
25886 | cat >conftest.$ac_ext <<_ACEOF |
25887 | /* confdefs.h. */ | |
25888 | _ACEOF | |
25889 | cat confdefs.h >>conftest.$ac_ext | |
25890 | cat >>conftest.$ac_ext <<_ACEOF | |
25891 | /* end confdefs.h. */ | |
bc8bcb4b MK |
25892 | $ac_includes_default |
25893 | int | |
25894 | main () | |
25895 | { | |
25896 | char buf[16]; | |
97bf5e38 MK |
25897 | long double f = 3.141592653; |
25898 | sprintf (buf, "%Lg", f); | |
25899 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
25900 | ; |
25901 | return 0; | |
97bf5e38 | 25902 | } |
bec39cab AC |
25903 | _ACEOF |
25904 | rm -f conftest$ac_exeext | |
25905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25906 | (eval $ac_link) 2>&5 | |
25907 | ac_status=$? | |
25908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25911 | (eval $ac_try) 2>&5 | |
25912 | ac_status=$? | |
25913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25914 | (exit $ac_status); }; }; then | |
97bf5e38 | 25915 | gdb_cv_printf_has_long_double=yes |
c906108c | 25916 | else |
bec39cab AC |
25917 | echo "$as_me: program exited with status $ac_status" >&5 |
25918 | echo "$as_me: failed program was:" >&5 | |
25919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25920 | ||
25921 | ( exit $ac_status ) | |
25922 | gdb_cv_printf_has_long_double=no | |
c906108c | 25923 | fi |
b4e70030 | 25924 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 25925 | fi |
c906108c | 25926 | fi |
b4e70030 JB |
25927 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
25928 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 25929 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
25930 | |
25931 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25932 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 25933 | _ACEOF |
97bf5e38 MK |
25934 | |
25935 | fi | |
97bf5e38 | 25936 | |
bc8bcb4b | 25937 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 25938 | |
b4e70030 JB |
25939 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
25940 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
25941 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
25942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
25943 | else |
25944 | if test "$cross_compiling" = yes; then | |
25945 | gdb_cv_scanf_has_long_double=no | |
25946 | else | |
bec39cab AC |
25947 | cat >conftest.$ac_ext <<_ACEOF |
25948 | /* confdefs.h. */ | |
25949 | _ACEOF | |
25950 | cat confdefs.h >>conftest.$ac_ext | |
25951 | cat >>conftest.$ac_ext <<_ACEOF | |
25952 | /* end confdefs.h. */ | |
bc8bcb4b MK |
25953 | #include <stdio.h> |
25954 | int | |
25955 | main () | |
25956 | { | |
25957 | char *buf = "3.141592653"; | |
97bf5e38 MK |
25958 | long double f = 0; |
25959 | sscanf (buf, "%Lg", &f); | |
25960 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
25961 | ; |
25962 | return 0; | |
97bf5e38 | 25963 | } |
bec39cab AC |
25964 | _ACEOF |
25965 | rm -f conftest$ac_exeext | |
25966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25967 | (eval $ac_link) 2>&5 | |
25968 | ac_status=$? | |
25969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25970 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25972 | (eval $ac_try) 2>&5 | |
25973 | ac_status=$? | |
25974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25975 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
25976 | gdb_cv_scanf_has_long_double=yes |
25977 | else | |
bec39cab AC |
25978 | echo "$as_me: program exited with status $ac_status" >&5 |
25979 | echo "$as_me: failed program was:" >&5 | |
25980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25981 | ||
25982 | ( exit $ac_status ) | |
25983 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 25984 | fi |
b4e70030 | 25985 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 25986 | fi |
c906108c | 25987 | fi |
b4e70030 JB |
25988 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
25989 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 25990 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
25991 | |
25992 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 25993 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 25994 | _ACEOF |
97bf5e38 MK |
25995 | |
25996 | fi | |
c906108c | 25997 | |
438013df AO |
25998 | case ${host_os} in |
25999 | aix*) | |
b4e70030 JB |
26000 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
26001 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
26002 | if test "${gdb_cv_bigtoc+set}" = set; then |
26003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 26004 | else |
bec39cab | 26005 | |
438013df AO |
26006 | SAVE_LDFLAGS=$LDFLAGS |
26007 | ||
26008 | case $GCC in | |
26009 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
26010 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
26011 | esac | |
26012 | ||
26013 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
26014 | cat >conftest.$ac_ext <<_ACEOF |
26015 | /* confdefs.h. */ | |
26016 | _ACEOF | |
26017 | cat confdefs.h >>conftest.$ac_ext | |
26018 | cat >>conftest.$ac_ext <<_ACEOF | |
26019 | /* end confdefs.h. */ | |
438013df | 26020 | |
bec39cab AC |
26021 | int |
26022 | main () | |
26023 | { | |
438013df | 26024 | int i; |
bec39cab AC |
26025 | ; |
26026 | return 0; | |
26027 | } | |
26028 | _ACEOF | |
26029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26031 | (eval $ac_link) 2>conftest.er1 | |
26032 | ac_status=$? | |
26033 | grep -v '^ *+' conftest.er1 >conftest.err | |
26034 | rm -f conftest.er1 | |
26035 | cat conftest.err >&5 | |
26036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26037 | (exit $ac_status); } && | |
b4e70030 JB |
26038 | { ac_try='test -z "$ac_c_werror_flag" |
26039 | || test ! -s conftest.err' | |
bec39cab AC |
26040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26041 | (eval $ac_try) 2>&5 | |
26042 | ac_status=$? | |
26043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26044 | (exit $ac_status); }; } && | |
26045 | { ac_try='test -s conftest$ac_exeext' | |
26046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26047 | (eval $ac_try) 2>&5 | |
26048 | ac_status=$? | |
26049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26050 | (exit $ac_status); }; }; then | |
438013df AO |
26051 | : |
26052 | else | |
bec39cab AC |
26053 | echo "$as_me: failed program was:" >&5 |
26054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26055 | ||
b4e70030 | 26056 | gdb_cv_bigtoc= |
438013df | 26057 | fi |
bec39cab AC |
26058 | rm -f conftest.err conftest.$ac_objext \ |
26059 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 26060 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 26061 | |
bec39cab | 26062 | fi |
b4e70030 JB |
26063 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
26064 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
26065 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
26066 | ;; | |
26067 | esac | |
26068 | ||
c906108c SS |
26069 | |
26070 | ||
26071 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
26072 | case ${host_os} in | |
26073 | hpux*) | |
b4e70030 JB |
26074 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
26075 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
26076 | if test -f /usr/include/dce/cma_config.h ; then |
26077 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
26078 | echo "$as_me:$LINENO: result: yes" >&5 |
26079 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
26080 | |
26081 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 26082 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 26083 | _ACEOF |
c906108c | 26084 | |
3483b318 | 26085 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
26086 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
26087 | else | |
b4e70030 JB |
26088 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
26089 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
26090 | fi |
26091 | else | |
b4e70030 JB |
26092 | echo "$as_me:$LINENO: result: no" >&5 |
26093 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
26094 | fi |
26095 | ;; | |
26096 | solaris*) | |
d92419e5 JB |
26097 | # See if thread_db library is around for Solaris thread debugging. |
26098 | # Note that we must explicitly test for version 1 of the library | |
26099 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
26100 | # the same API. | |
b4e70030 JB |
26101 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
26102 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 26103 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
26104 | echo "$as_me:$LINENO: result: yes" >&5 |
26105 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
26106 | |
26107 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 26108 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 26109 | _ACEOF |
c906108c | 26110 | |
3483b318 | 26111 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 26112 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 26113 | |
b4e70030 JB |
26114 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
26115 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
26116 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
26117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 26118 | else |
bec39cab | 26119 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 26120 | LIBS="-ldl $LIBS" |
bec39cab AC |
26121 | cat >conftest.$ac_ext <<_ACEOF |
26122 | /* confdefs.h. */ | |
26123 | _ACEOF | |
26124 | cat confdefs.h >>conftest.$ac_ext | |
26125 | cat >>conftest.$ac_ext <<_ACEOF | |
26126 | /* end confdefs.h. */ | |
26127 | ||
b4e70030 | 26128 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
26129 | #ifdef __cplusplus |
26130 | extern "C" | |
26131 | #endif | |
b4e70030 JB |
26132 | /* We use char because int might match the return type of a gcc2 |
26133 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
26134 | char dlopen (); |
26135 | int | |
26136 | main () | |
26137 | { | |
b4e70030 | 26138 | dlopen (); |
bec39cab AC |
26139 | ; |
26140 | return 0; | |
26141 | } | |
26142 | _ACEOF | |
26143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26145 | (eval $ac_link) 2>conftest.er1 | |
26146 | ac_status=$? | |
26147 | grep -v '^ *+' conftest.er1 >conftest.err | |
26148 | rm -f conftest.er1 | |
26149 | cat conftest.err >&5 | |
26150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26151 | (exit $ac_status); } && | |
b4e70030 JB |
26152 | { ac_try='test -z "$ac_c_werror_flag" |
26153 | || test ! -s conftest.err' | |
bec39cab AC |
26154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26155 | (eval $ac_try) 2>&5 | |
26156 | ac_status=$? | |
26157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26158 | (exit $ac_status); }; } && | |
26159 | { ac_try='test -s conftest$ac_exeext' | |
26160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26161 | (eval $ac_try) 2>&5 | |
26162 | ac_status=$? | |
26163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26164 | (exit $ac_status); }; }; then | |
26165 | ac_cv_lib_dl_dlopen=yes | |
26166 | else | |
26167 | echo "$as_me: failed program was:" >&5 | |
26168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26169 | ||
b4e70030 | 26170 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
26171 | fi |
26172 | rm -f conftest.err conftest.$ac_objext \ | |
26173 | conftest$ac_exeext conftest.$ac_ext | |
26174 | LIBS=$ac_check_lib_save_LIBS | |
26175 | fi | |
b4e70030 JB |
26176 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
26177 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
26178 | if test $ac_cv_lib_dl_dlopen = yes; then |
26179 | cat >>confdefs.h <<_ACEOF | |
26180 | #define HAVE_LIBDL 1 | |
26181 | _ACEOF | |
c906108c SS |
26182 | |
26183 | LIBS="-ldl $LIBS" | |
26184 | ||
c906108c SS |
26185 | fi |
26186 | ||
26187 | if test "$GCC" = "yes" ; then | |
26188 | # The GNU linker requires the -export-dynamic option to make | |
26189 | # all symbols visible in the dynamic symbol table. | |
26190 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
26191 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
26192 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 26193 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
26194 | cat >conftest.$ac_ext <<_ACEOF |
26195 | /* confdefs.h. */ | |
26196 | _ACEOF | |
26197 | cat confdefs.h >>conftest.$ac_ext | |
26198 | cat >>conftest.$ac_ext <<_ACEOF | |
26199 | /* end confdefs.h. */ | |
c906108c | 26200 | |
bec39cab AC |
26201 | int |
26202 | main () | |
26203 | { | |
c906108c | 26204 | int i; |
bec39cab AC |
26205 | ; |
26206 | return 0; | |
26207 | } | |
26208 | _ACEOF | |
26209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26211 | (eval $ac_link) 2>conftest.er1 | |
26212 | ac_status=$? | |
26213 | grep -v '^ *+' conftest.er1 >conftest.err | |
26214 | rm -f conftest.er1 | |
26215 | cat conftest.err >&5 | |
26216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26217 | (exit $ac_status); } && | |
b4e70030 JB |
26218 | { ac_try='test -z "$ac_c_werror_flag" |
26219 | || test ! -s conftest.err' | |
bec39cab AC |
26220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26221 | (eval $ac_try) 2>&5 | |
26222 | ac_status=$? | |
26223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26224 | (exit $ac_status); }; } && | |
26225 | { ac_try='test -s conftest$ac_exeext' | |
26226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26227 | (eval $ac_try) 2>&5 | |
26228 | ac_status=$? | |
26229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26230 | (exit $ac_status); }; }; then | |
c906108c SS |
26231 | found=yes |
26232 | else | |
bec39cab AC |
26233 | echo "$as_me: failed program was:" >&5 |
26234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26235 | ||
b4e70030 | 26236 | found=no |
c906108c | 26237 | fi |
bec39cab AC |
26238 | rm -f conftest.err conftest.$ac_objext \ |
26239 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 26240 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
26241 | echo "$as_me:$LINENO: result: $found" >&5 |
26242 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
26243 | if test $found = yes; then |
26244 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
26245 | fi | |
26246 | fi | |
26247 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
26248 | # at one point. | |
b4e70030 JB |
26249 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
26250 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
26251 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
26252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 26253 | else |
bec39cab AC |
26254 | |
26255 | cat >conftest.$ac_ext <<_ACEOF | |
26256 | /* confdefs.h. */ | |
26257 | _ACEOF | |
26258 | cat confdefs.h >>conftest.$ac_ext | |
26259 | cat >>conftest.$ac_ext <<_ACEOF | |
26260 | /* end confdefs.h. */ | |
c906108c SS |
26261 | |
26262 | #include <proc_service.h> | |
26263 | ps_err_e ps_pdwrite | |
26264 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 26265 | |
bec39cab AC |
26266 | int |
26267 | main () | |
26268 | { | |
26269 | ||
26270 | ; | |
26271 | return 0; | |
26272 | } | |
26273 | _ACEOF | |
26274 | rm -f conftest.$ac_objext | |
26275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26276 | (eval $ac_compile) 2>conftest.er1 | |
26277 | ac_status=$? | |
26278 | grep -v '^ *+' conftest.er1 >conftest.err | |
26279 | rm -f conftest.er1 | |
26280 | cat conftest.err >&5 | |
26281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26282 | (exit $ac_status); } && | |
b4e70030 JB |
26283 | { ac_try='test -z "$ac_c_werror_flag" |
26284 | || test ! -s conftest.err' | |
bec39cab AC |
26285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26286 | (eval $ac_try) 2>&5 | |
26287 | ac_status=$? | |
26288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26289 | (exit $ac_status); }; } && | |
26290 | { ac_try='test -s conftest.$ac_objext' | |
26291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26292 | (eval $ac_try) 2>&5 | |
26293 | ac_status=$? | |
26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26295 | (exit $ac_status); }; }; then | |
c906108c SS |
26296 | gdb_cv_proc_service_is_old=no |
26297 | else | |
bec39cab AC |
26298 | echo "$as_me: failed program was:" >&5 |
26299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26300 | ||
b4e70030 | 26301 | gdb_cv_proc_service_is_old=yes |
c906108c | 26302 | fi |
bec39cab AC |
26303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26304 | ||
c906108c SS |
26305 | fi |
26306 | ||
b4e70030 JB |
26307 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
26308 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 26309 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
26310 | |
26311 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 26312 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 26313 | _ACEOF |
c906108c SS |
26314 | |
26315 | fi | |
26316 | else | |
b4e70030 JB |
26317 | echo "$as_me:$LINENO: result: no" >&5 |
26318 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
26319 | fi |
26320 | ;; | |
d92419e5 | 26321 | aix*) |
b4e70030 JB |
26322 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
26323 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
26324 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
26325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26326 | else | |
26327 | cat >conftest.$ac_ext <<_ACEOF | |
26328 | /* confdefs.h. */ | |
26329 | _ACEOF | |
26330 | cat confdefs.h >>conftest.$ac_ext | |
26331 | cat >>conftest.$ac_ext <<_ACEOF | |
26332 | /* end confdefs.h. */ | |
d92419e5 | 26333 | #include <sys/pthdebug.h> |
bec39cab AC |
26334 | int |
26335 | main () | |
26336 | { | |
d92419e5 JB |
26337 | #ifndef PTHDB_VERSION_3 |
26338 | #error | |
26339 | #endif | |
bec39cab AC |
26340 | ; |
26341 | return 0; | |
26342 | } | |
26343 | _ACEOF | |
26344 | rm -f conftest.$ac_objext | |
26345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26346 | (eval $ac_compile) 2>conftest.er1 | |
26347 | ac_status=$? | |
26348 | grep -v '^ *+' conftest.er1 >conftest.err | |
26349 | rm -f conftest.er1 | |
26350 | cat conftest.err >&5 | |
26351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26352 | (exit $ac_status); } && | |
b4e70030 JB |
26353 | { ac_try='test -z "$ac_c_werror_flag" |
26354 | || test ! -s conftest.err' | |
bec39cab AC |
26355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26356 | (eval $ac_try) 2>&5 | |
26357 | ac_status=$? | |
26358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26359 | (exit $ac_status); }; } && | |
26360 | { ac_try='test -s conftest.$ac_objext' | |
26361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26362 | (eval $ac_try) 2>&5 | |
26363 | ac_status=$? | |
26364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26365 | (exit $ac_status); }; }; then | |
d92419e5 JB |
26366 | gdb_cv_have_aix_thread_debug=yes |
26367 | else | |
bec39cab AC |
26368 | echo "$as_me: failed program was:" >&5 |
26369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26370 | ||
b4e70030 | 26371 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 26372 | fi |
bec39cab | 26373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
26374 | fi |
26375 | ||
b4e70030 JB |
26376 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
26377 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
26378 | if test $gdb_cv_have_aix_thread_debug = yes; then |
26379 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 26380 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
26381 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
26382 | fi | |
26383 | ;; | |
c906108c | 26384 | esac |
bec39cab | 26385 | |
c906108c SS |
26386 | fi |
26387 | ||
3f47be5c | 26388 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
26389 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
26390 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
26391 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
26392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26393 | else | |
26394 | cat >conftest.$ac_ext <<_ACEOF | |
26395 | /* confdefs.h. */ | |
26396 | _ACEOF | |
26397 | cat confdefs.h >>conftest.$ac_ext | |
26398 | cat >>conftest.$ac_ext <<_ACEOF | |
26399 | /* end confdefs.h. */ | |
3f47be5c | 26400 | #include <thread_db.h> |
bec39cab AC |
26401 | int |
26402 | main () | |
26403 | { | |
3f47be5c | 26404 | int i = TD_NOTALLOC; |
bec39cab AC |
26405 | ; |
26406 | return 0; | |
26407 | } | |
26408 | _ACEOF | |
26409 | rm -f conftest.$ac_objext | |
26410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26411 | (eval $ac_compile) 2>conftest.er1 | |
26412 | ac_status=$? | |
26413 | grep -v '^ *+' conftest.er1 >conftest.err | |
26414 | rm -f conftest.er1 | |
26415 | cat conftest.err >&5 | |
26416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26417 | (exit $ac_status); } && | |
b4e70030 JB |
26418 | { ac_try='test -z "$ac_c_werror_flag" |
26419 | || test ! -s conftest.err' | |
bec39cab AC |
26420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26421 | (eval $ac_try) 2>&5 | |
26422 | ac_status=$? | |
26423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26424 | (exit $ac_status); }; } && | |
26425 | { ac_try='test -s conftest.$ac_objext' | |
26426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26427 | (eval $ac_try) 2>&5 | |
26428 | ac_status=$? | |
26429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26430 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
26431 | gdb_cv_thread_db_h_has_td_notalloc=yes |
26432 | else | |
bec39cab AC |
26433 | echo "$as_me: failed program was:" >&5 |
26434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26435 | ||
b4e70030 | 26436 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 26437 | |
3f47be5c | 26438 | fi |
bec39cab | 26439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 26440 | |
bec39cab | 26441 | fi |
b4e70030 JB |
26442 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
26443 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
26444 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
26445 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
26446 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
26447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26448 | else | |
26449 | cat >conftest.$ac_ext <<_ACEOF | |
26450 | /* confdefs.h. */ | |
26451 | _ACEOF | |
26452 | cat confdefs.h >>conftest.$ac_ext | |
26453 | cat >>conftest.$ac_ext <<_ACEOF | |
26454 | /* end confdefs.h. */ | |
26455 | #include <thread_db.h> | |
26456 | int | |
26457 | main () | |
26458 | { | |
26459 | int i = TD_VERSION; | |
26460 | ; | |
26461 | return 0; | |
26462 | } | |
26463 | _ACEOF | |
26464 | rm -f conftest.$ac_objext | |
26465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26466 | (eval $ac_compile) 2>conftest.er1 | |
26467 | ac_status=$? | |
26468 | grep -v '^ *+' conftest.er1 >conftest.err | |
26469 | rm -f conftest.er1 | |
26470 | cat conftest.err >&5 | |
26471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26472 | (exit $ac_status); } && | |
26473 | { ac_try='test -z "$ac_c_werror_flag" | |
26474 | || test ! -s conftest.err' | |
26475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26476 | (eval $ac_try) 2>&5 | |
26477 | ac_status=$? | |
26478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26479 | (exit $ac_status); }; } && | |
26480 | { ac_try='test -s conftest.$ac_objext' | |
26481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26482 | (eval $ac_try) 2>&5 | |
26483 | ac_status=$? | |
26484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26485 | (exit $ac_status); }; }; then | |
26486 | gdb_cv_thread_db_h_has_td_version=yes | |
26487 | else | |
26488 | echo "$as_me: failed program was:" >&5 | |
26489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26490 | ||
26491 | gdb_cv_thread_db_h_has_td_version=no | |
26492 | ||
26493 | fi | |
26494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26495 | ||
26496 | fi | |
26497 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
26498 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
26499 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
26500 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
26501 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
26502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26503 | else | |
26504 | cat >conftest.$ac_ext <<_ACEOF | |
26505 | /* confdefs.h. */ | |
26506 | _ACEOF | |
26507 | cat confdefs.h >>conftest.$ac_ext | |
26508 | cat >>conftest.$ac_ext <<_ACEOF | |
26509 | /* end confdefs.h. */ | |
26510 | #include <thread_db.h> | |
26511 | int | |
26512 | main () | |
26513 | { | |
26514 | int i = TD_NOTLS; | |
26515 | ; | |
26516 | return 0; | |
26517 | } | |
26518 | _ACEOF | |
26519 | rm -f conftest.$ac_objext | |
26520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26521 | (eval $ac_compile) 2>conftest.er1 | |
26522 | ac_status=$? | |
26523 | grep -v '^ *+' conftest.er1 >conftest.err | |
26524 | rm -f conftest.er1 | |
26525 | cat conftest.err >&5 | |
26526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26527 | (exit $ac_status); } && | |
26528 | { ac_try='test -z "$ac_c_werror_flag" | |
26529 | || test ! -s conftest.err' | |
26530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26531 | (eval $ac_try) 2>&5 | |
26532 | ac_status=$? | |
26533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26534 | (exit $ac_status); }; } && | |
26535 | { ac_try='test -s conftest.$ac_objext' | |
26536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26537 | (eval $ac_try) 2>&5 | |
26538 | ac_status=$? | |
26539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26540 | (exit $ac_status); }; }; then | |
26541 | gdb_cv_thread_db_h_has_td_notls=yes | |
26542 | else | |
26543 | echo "$as_me: failed program was:" >&5 | |
26544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26545 | ||
26546 | gdb_cv_thread_db_h_has_td_notls=no | |
26547 | ||
26548 | fi | |
26549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26550 | ||
26551 | fi | |
26552 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
26553 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
26554 | fi |
26555 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
26556 | |
26557 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 26558 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 26559 | _ACEOF |
3f47be5c | 26560 | |
59f80f10 DJ |
26561 | fi |
26562 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
26563 | ||
26564 | cat >>confdefs.h <<\_ACEOF | |
26565 | #define THREAD_DB_HAS_TD_VERSION 1 | |
26566 | _ACEOF | |
26567 | ||
26568 | fi | |
26569 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
26570 | ||
26571 | cat >>confdefs.h <<\_ACEOF | |
26572 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
26573 | _ACEOF | |
26574 | ||
3f47be5c EZ |
26575 | fi |
26576 | ||
b757528f | 26577 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
26578 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
26579 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
26580 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
26581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26582 | else | |
26583 | cat >conftest.$ac_ext <<_ACEOF | |
26584 | /* confdefs.h. */ | |
26585 | _ACEOF | |
26586 | cat confdefs.h >>conftest.$ac_ext | |
26587 | cat >>conftest.$ac_ext <<_ACEOF | |
26588 | /* end confdefs.h. */ | |
b757528f | 26589 | #include <sys/syscall.h> |
bec39cab AC |
26590 | int |
26591 | main () | |
26592 | { | |
b757528f | 26593 | int i = __NR_tkill; |
bec39cab AC |
26594 | ; |
26595 | return 0; | |
26596 | } | |
26597 | _ACEOF | |
26598 | rm -f conftest.$ac_objext | |
26599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26600 | (eval $ac_compile) 2>conftest.er1 | |
26601 | ac_status=$? | |
26602 | grep -v '^ *+' conftest.er1 >conftest.err | |
26603 | rm -f conftest.er1 | |
26604 | cat conftest.err >&5 | |
26605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26606 | (exit $ac_status); } && | |
b4e70030 JB |
26607 | { ac_try='test -z "$ac_c_werror_flag" |
26608 | || test ! -s conftest.err' | |
bec39cab AC |
26609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26610 | (eval $ac_try) 2>&5 | |
26611 | ac_status=$? | |
26612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26613 | (exit $ac_status); }; } && | |
26614 | { ac_try='test -s conftest.$ac_objext' | |
26615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26616 | (eval $ac_try) 2>&5 | |
26617 | ac_status=$? | |
26618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26619 | (exit $ac_status); }; }; then | |
b757528f JJ |
26620 | gdb_cv_sys_syscall_h_has_tkill=yes |
26621 | else | |
bec39cab AC |
26622 | echo "$as_me: failed program was:" >&5 |
26623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26624 | ||
b4e70030 | 26625 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 26626 | |
b757528f | 26627 | fi |
bec39cab | 26628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 26629 | |
bec39cab | 26630 | fi |
b4e70030 JB |
26631 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
26632 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
26633 | fi |
26634 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
26635 | |
26636 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 26637 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 26638 | _ACEOF |
b757528f JJ |
26639 | |
26640 | fi | |
26641 | ||
fb40c209 | 26642 | |
bec39cab | 26643 | |
b4e70030 | 26644 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 26645 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
26646 | withval="$with_sysroot" |
26647 | ||
030292b7 | 26648 | case ${with_sysroot} in |
715d1656 | 26649 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
26650 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
26651 | esac | |
26652 | ||
26653 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
26654 | ||
07abfebf RS |
26655 | if test "x$prefix" = xNONE; then |
26656 | test_prefix=/usr/local | |
26657 | else | |
26658 | test_prefix=$prefix | |
26659 | fi | |
aa28a74e | 26660 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 26661 | test_exec_prefix=$test_prefix |
030292b7 | 26662 | else |
07abfebf | 26663 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
26664 | fi |
26665 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 26666 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
26667 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
26668 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 26669 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
26670 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
26671 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
26672 | ;; | |
26673 | esac | |
26674 | ||
26675 | else | |
bec39cab | 26676 | |
030292b7 DJ |
26677 | TARGET_SYSTEM_ROOT= |
26678 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
26679 | ||
b4e70030 | 26680 | fi; |
030292b7 DJ |
26681 | |
26682 | ||
26683 | ||
b4e70030 | 26684 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 26685 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
26686 | enableval="$enable_werror" |
26687 | case "${enableval}" in | |
094a342e MK |
26688 | yes | y) ERROR_ON_WARNING="yes" ;; |
26689 | no | n) ERROR_ON_WARNING="no" ;; | |
26690 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
26691 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
26692 | { (exit 1); exit 1; }; } ;; | |
26693 | esac | |
b4e70030 | 26694 | fi; |
094a342e MK |
26695 | |
26696 | # Enable -Werror by default when using gcc | |
26697 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
26698 | ERROR_ON_WARNING=yes | |
26699 | fi | |
26700 | ||
26701 | WERROR_CFLAGS="" | |
26702 | if test "${ERROR_ON_WARNING}" = yes ; then | |
26703 | WERROR_CFLAGS="-Werror" | |
26704 | fi | |
26705 | ||
aa79a185 DJ |
26706 | # The entries after -Wno-pointer-sign are disabled warnings which may |
26707 | # be enabled in the future, which can not currently be used to build | |
26708 | # GDB. | |
26709 | # NOTE: If you change this list, remember to update | |
3b851bce | 26710 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
26711 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
26712 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 26713 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 26714 | |
b4e70030 | 26715 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 26716 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
26717 | enableval="$enable_build_warnings" |
26718 | case "${enableval}" in | |
c906108c SS |
26719 | yes) ;; |
26720 | no) build_warnings="-w";; | |
26721 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
26722 | build_warnings="${build_warnings} ${t}";; | |
26723 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
26724 | build_warnings="${t} ${build_warnings}";; | |
26725 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
26726 | esac | |
d4f3574e | 26727 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 26728 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 26729 | fi |
b4e70030 | 26730 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 26731 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
26732 | enableval="$enable_gdb_build_warnings" |
26733 | case "${enableval}" in | |
3b851bce AC |
26734 | yes) ;; |
26735 | no) build_warnings="-w";; | |
26736 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
26737 | build_warnings="${build_warnings} ${t}";; | |
26738 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
26739 | build_warnings="${t} ${build_warnings}";; | |
26740 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
26741 | esac | |
26742 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
26743 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
26744 | fi | |
b4e70030 | 26745 | fi; WARN_CFLAGS="" |
c906108c SS |
26746 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
26747 | then | |
b4e70030 JB |
26748 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
26749 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
26750 | # Separate out the -Werror flag as some files just cannot be |
26751 | # compiled with it enabled. | |
26752 | for w in ${build_warnings}; do | |
26753 | case $w in | |
26754 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
26755 | *) # Check that GCC accepts it | |
4536bbc6 AC |
26756 | saved_CFLAGS="$CFLAGS" |
26757 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
26758 | cat >conftest.$ac_ext <<_ACEOF |
26759 | /* confdefs.h. */ | |
26760 | _ACEOF | |
26761 | cat confdefs.h >>conftest.$ac_ext | |
26762 | cat >>conftest.$ac_ext <<_ACEOF | |
26763 | /* end confdefs.h. */ | |
4536bbc6 | 26764 | |
bec39cab AC |
26765 | int |
26766 | main () | |
26767 | { | |
4536bbc6 | 26768 | |
bec39cab AC |
26769 | ; |
26770 | return 0; | |
26771 | } | |
26772 | _ACEOF | |
26773 | rm -f conftest.$ac_objext | |
26774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26775 | (eval $ac_compile) 2>conftest.er1 | |
26776 | ac_status=$? | |
26777 | grep -v '^ *+' conftest.er1 >conftest.err | |
26778 | rm -f conftest.er1 | |
26779 | cat conftest.err >&5 | |
26780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26781 | (exit $ac_status); } && | |
b4e70030 JB |
26782 | { ac_try='test -z "$ac_c_werror_flag" |
26783 | || test ! -s conftest.err' | |
bec39cab AC |
26784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26785 | (eval $ac_try) 2>&5 | |
26786 | ac_status=$? | |
26787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26788 | (exit $ac_status); }; } && | |
26789 | { ac_try='test -s conftest.$ac_objext' | |
26790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26791 | (eval $ac_try) 2>&5 | |
26792 | ac_status=$? | |
26793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26794 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
26795 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
26796 | else | |
bec39cab AC |
26797 | echo "$as_me: failed program was:" >&5 |
26798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26799 | ||
4536bbc6 | 26800 | fi |
bec39cab | 26801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 26802 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
26803 | esac |
26804 | done | |
aa79a185 DJ |
26805 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
26806 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
26807 | fi |
26808 | ||
26809 | ||
104c1213 | 26810 | |
7a292a7a | 26811 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
26812 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
26813 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
26814 | if test "${gdb_cv_os_cygwin+set}" = set; then |
26815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26816 | else | |
26817 | cat >conftest.$ac_ext <<_ACEOF | |
26818 | /* confdefs.h. */ | |
26819 | _ACEOF | |
26820 | cat confdefs.h >>conftest.$ac_ext | |
26821 | cat >>conftest.$ac_ext <<_ACEOF | |
26822 | /* end confdefs.h. */ | |
7a292a7a SS |
26823 | |
26824 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
26825 | lose | |
26826 | #endif | |
bec39cab | 26827 | _ACEOF |
7a292a7a | 26828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 26829 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
26830 | gdb_cv_os_cygwin=yes |
26831 | else | |
7a292a7a SS |
26832 | gdb_cv_os_cygwin=no |
26833 | fi | |
26834 | rm -f conftest* | |
26835 | ||
26836 | fi | |
b4e70030 JB |
26837 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
26838 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 26839 | |
aff38e61 | 26840 | |
3eb25fda | 26841 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 26842 | case ${host} in |
95cbc983 AC |
26843 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
26844 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 26845 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
26846 | esac |
26847 | ||
26848 | ||
cd0fc7c3 SS |
26849 | # libreadline needs libuser32.a in a cygwin environment |
26850 | WIN32LIBS= | |
26851 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
26852 | WIN32LIBS="-luser32" |
26853 | case "${target}" in | |
26854 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
26855 | ;; | |
26856 | esac | |
cd0fc7c3 | 26857 | fi |
c906108c | 26858 | |
b4505029 MM |
26859 | # The ser-tcp.c module requires sockets. |
26860 | case ${host} in | |
26861 | *mingw32*) | |
26862 | ||
26863 | cat >>confdefs.h <<\_ACEOF | |
26864 | #define USE_WIN32API 1 | |
26865 | _ACEOF | |
26866 | ||
26867 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
26868 | ;; | |
26869 | esac | |
26870 | ||
7a292a7a | 26871 | |
31d99776 DJ |
26872 | # Add ELF support to GDB, but only if BFD includes ELF support. |
26873 | OLD_CFLAGS=$CFLAGS | |
26874 | OLD_LDFLAGS=$LDFLAGS | |
26875 | OLD_LIBS=$LIBS | |
cab58a69 | 26876 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 | 26877 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
7b3200f9 DJ |
26878 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
26879 | LIBS="$LIBS -lbfd -liberty $intl" | |
31d99776 DJ |
26880 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
26881 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
26882 | if test "${gdb_cv_var_elf+set}" = set; then | |
26883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26884 | else | |
26885 | cat >conftest.$ac_ext <<_ACEOF | |
26886 | /* confdefs.h. */ | |
26887 | _ACEOF | |
26888 | cat confdefs.h >>conftest.$ac_ext | |
26889 | cat >>conftest.$ac_ext <<_ACEOF | |
26890 | /* end confdefs.h. */ | |
26891 | #include <stdlib.h> | |
26892 | #include "bfd.h" | |
26893 | #include "elf-bfd.h" | |
26894 | ||
26895 | int | |
26896 | main () | |
26897 | { | |
26898 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
26899 | ; | |
26900 | return 0; | |
26901 | } | |
26902 | _ACEOF | |
26903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26905 | (eval $ac_link) 2>conftest.er1 | |
26906 | ac_status=$? | |
26907 | grep -v '^ *+' conftest.er1 >conftest.err | |
26908 | rm -f conftest.er1 | |
26909 | cat conftest.err >&5 | |
26910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26911 | (exit $ac_status); } && | |
26912 | { ac_try='test -z "$ac_c_werror_flag" | |
26913 | || test ! -s conftest.err' | |
26914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26915 | (eval $ac_try) 2>&5 | |
26916 | ac_status=$? | |
26917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26918 | (exit $ac_status); }; } && | |
26919 | { ac_try='test -s conftest$ac_exeext' | |
26920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26921 | (eval $ac_try) 2>&5 | |
26922 | ac_status=$? | |
26923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26924 | (exit $ac_status); }; }; then | |
26925 | gdb_cv_var_elf=yes | |
26926 | else | |
26927 | echo "$as_me: failed program was:" >&5 | |
26928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26929 | ||
26930 | gdb_cv_var_elf=no | |
26931 | fi | |
26932 | rm -f conftest.err conftest.$ac_objext \ | |
26933 | conftest$ac_exeext conftest.$ac_ext | |
26934 | fi | |
26935 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
26936 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
26937 | if test $gdb_cv_var_elf = yes; then | |
26938 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
26939 | ||
26940 | cat >>confdefs.h <<\_ACEOF | |
26941 | #define HAVE_ELF 1 | |
26942 | _ACEOF | |
26943 | ||
26944 | fi | |
26945 | CFLAGS=$OLD_CFLAGS | |
26946 | LDFLAGS=$OLD_LDFLAGS | |
26947 | LIBS=$OLD_LIBS | |
26948 | ||
121ce6e5 DJ |
26949 | # Add any host-specific objects to GDB. |
26950 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
26951 | ||
3fc11d3e JM |
26952 | LIBGUI="../libgui/src/libgui.a" |
26953 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
26954 | ||
26955 | ||
7a292a7a | 26956 | |
3fc11d3e JM |
26957 | WIN32LDAPP= |
26958 | ||
26959 | ||
26960 | ||
d91670b9 | 26961 | case "${host}" in |
686a5eed | 26962 | *-*-cygwin* | *-*-mingw* ) |
d91670b9 CV |
26963 | configdir="win" |
26964 | ;; | |
26965 | *) | |
26966 | configdir="unix" | |
26967 | ;; | |
26968 | esac | |
3fc11d3e JM |
26969 | |
26970 | GDBTKLIBS= | |
26971 | if test "${enable_gdbtk}" = "yes"; then | |
26972 | ||
d1c3b63a KS |
26973 | # Gdbtk must have an absolute path to srcdir in order to run |
26974 | # properly when not installed. | |
26975 | here=`pwd` | |
26976 | cd ${srcdir} | |
26977 | GDBTK_SRC_DIR=`pwd` | |
26978 | cd $here | |
26979 | ||
bec39cab | 26980 | |
3fc11d3e JM |
26981 | # |
26982 | # Ok, lets find the tcl configuration | |
bec39cab | 26983 | # First, look for one uninstalled. |
3fc11d3e JM |
26984 | # the alternative search directory is invoked by --with-tclconfig |
26985 | # | |
26986 | ||
26987 | if test x"${no_tcl}" = x ; then | |
26988 | # we reset no_tcl in case something fails here | |
26989 | no_tcl=true | |
bec39cab | 26990 | |
b4e70030 | 26991 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 26992 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
26993 | withval="$with_tclconfig" |
26994 | with_tclconfig=${withval} | |
26995 | fi; | |
26996 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
26997 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
26998 | if test "${ac_cv_c_tclconfig+set}" = set; then |
26999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27000 | else |
bec39cab | 27001 | |
3fc11d3e JM |
27002 | |
27003 | # First check to see if --with-tclconfig was specified. | |
27004 | if test x"${with_tclconfig}" != x ; then | |
27005 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
27006 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
27007 | else | |
bec39cab AC |
27008 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
27009 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
27010 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27011 | fi |
27012 | fi | |
27013 | ||
27014 | # then check for a private Tcl installation | |
27015 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
27016 | for i in \ | |
27017 | ../tcl \ | |
27018 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
27019 | ../../tcl \ | |
27020 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
27021 | ../../../tcl \ | |
27022 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
27023 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
27024 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
27025 | break | |
27026 | fi | |
27027 | done | |
27028 | fi | |
27029 | # check in a few common install locations | |
27030 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
27031 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
27032 | if test -f "$i/tclConfig.sh" ; then | |
27033 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
27034 | break | |
27035 | fi | |
27036 | done | |
27037 | fi | |
27038 | # check in a few other private locations | |
27039 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
27040 | for i in \ | |
27041 | ${srcdir}/../tcl \ | |
27042 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
27043 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
27044 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
27045 | break | |
27046 | fi | |
27047 | done | |
27048 | fi | |
bec39cab | 27049 | |
3fc11d3e JM |
27050 | fi |
27051 | ||
27052 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
27053 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
27054 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
27055 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
27056 | else |
27057 | no_tcl= | |
27058 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
27059 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
27060 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
27061 | fi |
27062 | fi | |
27063 | ||
27064 | if test -z "${no_tcl}"; then | |
bec39cab | 27065 | |
3fc11d3e JM |
27066 | . $TCLCONFIG |
27067 | ||
3fc11d3e JM |
27068 | |
27069 | ||
27070 | ||
27071 | ||
3fc11d3e JM |
27072 | |
27073 | ||
27074 | ||
bec39cab AC |
27075 | |
27076 | ||
27077 | ||
27078 | ||
27079 | ||
27080 | ||
27081 | ||
27082 | ||
27083 | ||
27084 | ||
27085 | ||
27086 | ||
27087 | ||
27088 | ||
27089 | ||
27090 | ||
27091 | ||
27092 | ||
27093 | ||
3fc11d3e JM |
27094 | # |
27095 | # Ok, lets find the tk configuration | |
bec39cab | 27096 | # First, look for one uninstalled. |
3fc11d3e JM |
27097 | # the alternative search directory is invoked by --with-tkconfig |
27098 | # | |
27099 | ||
27100 | if test x"${no_tk}" = x ; then | |
27101 | # we reset no_tk in case something fails here | |
27102 | no_tk=true | |
bec39cab | 27103 | |
b4e70030 | 27104 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 27105 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
27106 | withval="$with_tkconfig" |
27107 | with_tkconfig=${withval} | |
27108 | fi; | |
27109 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
27110 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
27111 | if test "${ac_cv_c_tkconfig+set}" = set; then |
27112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27113 | else |
bec39cab | 27114 | |
3fc11d3e JM |
27115 | |
27116 | # First check to see if --with-tkconfig was specified. | |
27117 | if test x"${with_tkconfig}" != x ; then | |
27118 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
27119 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
27120 | else | |
bec39cab AC |
27121 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
27122 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
27123 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27124 | fi |
27125 | fi | |
27126 | ||
27127 | # then check for a private Tk library | |
27128 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
27129 | for i in \ | |
27130 | ../tk \ | |
27131 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
27132 | ../../tk \ | |
27133 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
27134 | ../../../tk \ | |
27135 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
27136 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
27137 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
27138 | break | |
27139 | fi | |
27140 | done | |
27141 | fi | |
27142 | # check in a few common install locations | |
27143 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
27144 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
27145 | if test -f "$i/tkConfig.sh" ; then | |
27146 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
27147 | break | |
27148 | fi | |
27149 | done | |
27150 | fi | |
27151 | # check in a few other private locations | |
27152 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
27153 | for i in \ | |
27154 | ${srcdir}/../tk \ | |
27155 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
27156 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
27157 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
27158 | break | |
27159 | fi | |
27160 | done | |
27161 | fi | |
bec39cab | 27162 | |
3fc11d3e JM |
27163 | fi |
27164 | ||
27165 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
27166 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
27167 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
27168 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
27169 | else |
27170 | no_tk= | |
27171 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
27172 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
27173 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
27174 | fi |
27175 | fi | |
27176 | ||
27177 | ||
27178 | ||
dd2504ab JM |
27179 | # now look for Tcl library stuff |
27180 | ||
d91670b9 | 27181 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
27182 | |
27183 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
27184 | ||
3fc11d3e JM |
27185 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
27186 | # point to doing Tcl. | |
27187 | if test -z "${no_tk}"; then | |
bec39cab | 27188 | |
3fc11d3e JM |
27189 | if test -f "$TKCONFIG" ; then |
27190 | . $TKCONFIG | |
27191 | fi | |
27192 | ||
3fc11d3e | 27193 | |
3fc11d3e JM |
27194 | |
27195 | ||
3fc11d3e | 27196 | |
bec39cab AC |
27197 | |
27198 | ||
27199 | ||
27200 | ||
27201 | ||
27202 | ||
27203 | ||
27204 | ||
27205 | ||
3fc11d3e JM |
27206 | # |
27207 | # Ok, lets find the tcl source trees so we can use the headers | |
27208 | # Warning: transition of version 9 to 10 will break this algorithm | |
27209 | # because 10 sorts before 9. We also look for just tcl. We have to | |
27210 | # be careful that we don't match stuff like tclX by accident. | |
27211 | # the alternative search directory is involked by --with-tclinclude | |
27212 | # | |
27213 | ||
27214 | no_tcl=true | |
b4e70030 JB |
27215 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
27216 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 27217 | |
b4e70030 | 27218 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 27219 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
27220 | withval="$with_tclinclude" |
27221 | with_tclinclude=${withval} | |
27222 | fi; | |
bec39cab AC |
27223 | if test "${ac_cv_c_tclh+set}" = set; then |
27224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27225 | else |
bec39cab | 27226 | |
3fc11d3e JM |
27227 | # first check to see if --with-tclinclude was specified |
27228 | if test x"${with_tclinclude}" != x ; then | |
27229 | if test -f ${with_tclinclude}/tclInt.h ; then | |
27230 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
27231 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
27232 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
27233 | else | |
bec39cab AC |
27234 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
27235 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
27236 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27237 | fi |
27238 | fi | |
27239 | ||
27240 | # next check if it came with Tcl configuration file | |
27241 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
27242 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
27243 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
27244 | fi | |
27245 | fi | |
27246 | ||
27247 | # next check in private source directory | |
27248 | # | |
27249 | # since ls returns lowest version numbers first, reverse its output | |
27250 | if test x"${ac_cv_c_tclh}" = x ; then | |
27251 | for i in \ | |
27252 | ${srcdir}/../tcl \ | |
27253 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
27254 | ${srcdir}/../../tcl \ | |
27255 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
27256 | ${srcdir}/../../../tcl \ | |
27257 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
27258 | if test -f $i/generic/tclInt.h ; then | |
27259 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
27260 | break | |
27261 | fi | |
27262 | done | |
27263 | fi | |
27264 | # finally check in a few common install locations | |
27265 | # | |
27266 | # since ls returns lowest version numbers first, reverse its output | |
27267 | if test x"${ac_cv_c_tclh}" = x ; then | |
27268 | for i in \ | |
27269 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
27270 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
27271 | /usr/local/src/tcl \ | |
27272 | /usr/local/lib/tcl \ | |
27273 | ${prefix}/include ; do | |
27274 | if test -f $i/generic/tclInt.h ; then | |
27275 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
27276 | break | |
27277 | fi | |
27278 | done | |
27279 | fi | |
27280 | # see if one is installed | |
27281 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 27282 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
27283 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
27284 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
27285 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
27286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27287 | fi | |
b4e70030 JB |
27288 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
27289 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
27290 | else |
27291 | # Is the header compilable? | |
b4e70030 JB |
27292 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
27293 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
27294 | cat >conftest.$ac_ext <<_ACEOF |
27295 | /* confdefs.h. */ | |
27296 | _ACEOF | |
27297 | cat confdefs.h >>conftest.$ac_ext | |
27298 | cat >>conftest.$ac_ext <<_ACEOF | |
27299 | /* end confdefs.h. */ | |
27300 | $ac_includes_default | |
27301 | #include <tclInt.h> | |
27302 | _ACEOF | |
27303 | rm -f conftest.$ac_objext | |
27304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27305 | (eval $ac_compile) 2>conftest.er1 | |
27306 | ac_status=$? | |
27307 | grep -v '^ *+' conftest.er1 >conftest.err | |
27308 | rm -f conftest.er1 | |
27309 | cat conftest.err >&5 | |
27310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27311 | (exit $ac_status); } && | |
b4e70030 JB |
27312 | { ac_try='test -z "$ac_c_werror_flag" |
27313 | || test ! -s conftest.err' | |
bec39cab AC |
27314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27315 | (eval $ac_try) 2>&5 | |
27316 | ac_status=$? | |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27318 | (exit $ac_status); }; } && | |
27319 | { ac_try='test -s conftest.$ac_objext' | |
27320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27321 | (eval $ac_try) 2>&5 | |
27322 | ac_status=$? | |
27323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27324 | (exit $ac_status); }; }; then | |
27325 | ac_header_compiler=yes | |
27326 | else | |
27327 | echo "$as_me: failed program was:" >&5 | |
27328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27329 | ||
b4e70030 | 27330 | ac_header_compiler=no |
bec39cab AC |
27331 | fi |
27332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
27333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
27335 | |
27336 | # Is the header present? | |
b4e70030 JB |
27337 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
27338 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
27339 | cat >conftest.$ac_ext <<_ACEOF |
27340 | /* confdefs.h. */ | |
27341 | _ACEOF | |
27342 | cat confdefs.h >>conftest.$ac_ext | |
27343 | cat >>conftest.$ac_ext <<_ACEOF | |
27344 | /* end confdefs.h. */ | |
3fc11d3e | 27345 | #include <tclInt.h> |
bec39cab AC |
27346 | _ACEOF |
27347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27349 | ac_status=$? | |
27350 | grep -v '^ *+' conftest.er1 >conftest.err | |
27351 | rm -f conftest.er1 | |
27352 | cat conftest.err >&5 | |
27353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27354 | (exit $ac_status); } >/dev/null; then | |
27355 | if test -s conftest.err; then | |
27356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
27357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
27358 | else | |
27359 | ac_cpp_err= | |
27360 | fi | |
27361 | else | |
27362 | ac_cpp_err=yes | |
3fc11d3e | 27363 | fi |
bec39cab AC |
27364 | if test -z "$ac_cpp_err"; then |
27365 | ac_header_preproc=yes | |
27366 | else | |
27367 | echo "$as_me: failed program was:" >&5 | |
27368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27369 | ||
27370 | ac_header_preproc=no | |
3fc11d3e | 27371 | fi |
bec39cab | 27372 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
27373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
27374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
27375 | |
27376 | # So? What about this header? | |
27377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
27378 | yes:no: ) | |
27379 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27380 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27381 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
27382 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
27383 | ac_header_preproc=yes | |
27384 | ;; | |
27385 | no:yes:* ) | |
27386 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
27387 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
27388 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
27389 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
27390 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
27391 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
27392 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27393 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
27394 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
27395 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
27396 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
27397 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
27398 | ( |
27399 | cat <<\_ASBOX | |
27400 | ## ------------------------------------------ ## | |
27401 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
27402 | ## ------------------------------------------ ## | |
27403 | _ASBOX | |
27404 | ) | | |
27405 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
27406 | ;; |
27407 | esac | |
b4e70030 JB |
27408 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
27409 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
27410 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
27411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27412 | else | |
27413 | ac_cv_header_tclInt_h=$ac_header_preproc | |
27414 | fi | |
b4e70030 JB |
27415 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
27416 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
27417 | |
27418 | fi | |
27419 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
27420 | ac_cv_c_tclh=installed |
27421 | else | |
bec39cab | 27422 | ac_cv_c_tclh="" |
3fc11d3e JM |
27423 | fi |
27424 | ||
bec39cab | 27425 | |
3fc11d3e JM |
27426 | fi |
27427 | ||
27428 | fi | |
27429 | ||
27430 | if test x"${ac_cv_c_tclh}" = x ; then | |
27431 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
27432 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
27433 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
27434 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27435 | fi |
27436 | if test x"${ac_cv_c_tclh}" != x ; then | |
27437 | no_tcl="" | |
27438 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
27439 | echo "$as_me:$LINENO: result: is installed" >&5 |
27440 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
27441 | TCLHDIR="" |
27442 | else | |
b4e70030 JB |
27443 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
27444 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
27445 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
27446 | TCLHDIR="-I${ac_cv_c_tclh}" | |
27447 | fi | |
27448 | fi | |
27449 | ||
27450 | ||
27451 | ||
bec39cab | 27452 | |
3fc11d3e JM |
27453 | # |
27454 | # Ok, lets find the tk source trees so we can use the headers | |
27455 | # If the directory (presumably symlink) named "tk" exists, use that one | |
27456 | # in preference to any others. Same logic is used when choosing library | |
27457 | # and again with Tcl. The search order is the best place to look first, then in | |
27458 | # decreasing significance. The loop breaks if the trigger file is found. | |
27459 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
27460 | # directory. This converts the path from a relative to an absolute, so | |
27461 | # recursive cache variables for the path will work right. We check all | |
27462 | # the possible paths in one loop rather than many seperate loops to speed | |
27463 | # things up. | |
27464 | # the alternative search directory is involked by --with-tkinclude | |
27465 | # | |
27466 | no_tk=true | |
b4e70030 JB |
27467 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
27468 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 27469 | |
b4e70030 | 27470 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 27471 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
27472 | withval="$with_tkinclude" |
27473 | with_tkinclude=${withval} | |
27474 | fi; | |
bec39cab AC |
27475 | if test "${ac_cv_c_tkh+set}" = set; then |
27476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27477 | else |
bec39cab | 27478 | |
3fc11d3e JM |
27479 | # first check to see if --with-tkinclude was specified |
27480 | if test x"${with_tkinclude}" != x ; then | |
27481 | if test -f ${with_tkinclude}/tk.h ; then | |
27482 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
27483 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
27484 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
27485 | else | |
bec39cab AC |
27486 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
27487 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
27488 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27489 | fi |
27490 | fi | |
27491 | ||
27492 | # next check if it came with Tk configuration file | |
27493 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
27494 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
27495 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
27496 | fi | |
27497 | fi | |
27498 | ||
27499 | # next check in private source directory | |
27500 | # | |
27501 | # since ls returns lowest version numbers first, reverse its output | |
27502 | if test x"${ac_cv_c_tkh}" = x ; then | |
27503 | for i in \ | |
27504 | ${srcdir}/../tk \ | |
27505 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
27506 | ${srcdir}/../../tk \ | |
27507 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
27508 | ${srcdir}/../../../tk \ | |
27509 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
27510 | if test -f $i/generic/tk.h ; then | |
27511 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
27512 | break | |
27513 | fi | |
27514 | done | |
27515 | fi | |
27516 | # finally check in a few common install locations | |
27517 | # | |
27518 | # since ls returns lowest version numbers first, reverse its output | |
27519 | if test x"${ac_cv_c_tkh}" = x ; then | |
27520 | for i in \ | |
27521 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
27522 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
27523 | /usr/local/src/tk \ | |
27524 | /usr/local/lib/tk \ | |
27525 | ${prefix}/include ; do | |
27526 | if test -f $i/generic/tk.h ; then | |
27527 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
27528 | break | |
27529 | fi | |
27530 | done | |
27531 | fi | |
27532 | # see if one is installed | |
27533 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 27534 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
27535 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
27536 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
27537 | if test "${ac_cv_header_tk_h+set}" = set; then |
27538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27539 | fi | |
b4e70030 JB |
27540 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
27541 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
27542 | else |
27543 | # Is the header compilable? | |
b4e70030 JB |
27544 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
27545 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
27546 | cat >conftest.$ac_ext <<_ACEOF |
27547 | /* confdefs.h. */ | |
27548 | _ACEOF | |
27549 | cat confdefs.h >>conftest.$ac_ext | |
27550 | cat >>conftest.$ac_ext <<_ACEOF | |
27551 | /* end confdefs.h. */ | |
27552 | $ac_includes_default | |
3fc11d3e | 27553 | #include <tk.h> |
bec39cab AC |
27554 | _ACEOF |
27555 | rm -f conftest.$ac_objext | |
27556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27557 | (eval $ac_compile) 2>conftest.er1 | |
27558 | ac_status=$? | |
27559 | grep -v '^ *+' conftest.er1 >conftest.err | |
27560 | rm -f conftest.er1 | |
27561 | cat conftest.err >&5 | |
27562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27563 | (exit $ac_status); } && | |
b4e70030 JB |
27564 | { ac_try='test -z "$ac_c_werror_flag" |
27565 | || test ! -s conftest.err' | |
bec39cab AC |
27566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27567 | (eval $ac_try) 2>&5 | |
27568 | ac_status=$? | |
27569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27570 | (exit $ac_status); }; } && | |
27571 | { ac_try='test -s conftest.$ac_objext' | |
27572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27573 | (eval $ac_try) 2>&5 | |
27574 | ac_status=$? | |
27575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27576 | (exit $ac_status); }; }; then | |
27577 | ac_header_compiler=yes | |
27578 | else | |
27579 | echo "$as_me: failed program was:" >&5 | |
27580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27581 | ||
b4e70030 | 27582 | ac_header_compiler=no |
bec39cab AC |
27583 | fi |
27584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
27585 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27586 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
27587 | |
27588 | # Is the header present? | |
b4e70030 JB |
27589 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
27590 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
27591 | cat >conftest.$ac_ext <<_ACEOF |
27592 | /* confdefs.h. */ | |
27593 | _ACEOF | |
27594 | cat confdefs.h >>conftest.$ac_ext | |
27595 | cat >>conftest.$ac_ext <<_ACEOF | |
27596 | /* end confdefs.h. */ | |
27597 | #include <tk.h> | |
27598 | _ACEOF | |
27599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27601 | ac_status=$? | |
27602 | grep -v '^ *+' conftest.er1 >conftest.err | |
27603 | rm -f conftest.er1 | |
27604 | cat conftest.err >&5 | |
27605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27606 | (exit $ac_status); } >/dev/null; then | |
27607 | if test -s conftest.err; then | |
27608 | ac_cpp_err=$ac_c_preproc_warn_flag | |
27609 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
27610 | else | |
27611 | ac_cpp_err= | |
27612 | fi | |
27613 | else | |
27614 | ac_cpp_err=yes | |
3fc11d3e | 27615 | fi |
bec39cab AC |
27616 | if test -z "$ac_cpp_err"; then |
27617 | ac_header_preproc=yes | |
27618 | else | |
27619 | echo "$as_me: failed program was:" >&5 | |
27620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27621 | ||
27622 | ac_header_preproc=no | |
27623 | fi | |
27624 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
27625 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
27626 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
27627 | |
27628 | # So? What about this header? | |
27629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
27630 | yes:no: ) | |
27631 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27632 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27633 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
27634 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
27635 | ac_header_preproc=yes | |
27636 | ;; | |
27637 | no:yes:* ) | |
27638 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
27639 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
27640 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
27641 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
27642 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
27643 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
27644 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27645 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
27646 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
27647 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
27648 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
27649 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
27650 | ( |
27651 | cat <<\_ASBOX | |
27652 | ## ------------------------------------------ ## | |
27653 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
27654 | ## ------------------------------------------ ## | |
27655 | _ASBOX | |
27656 | ) | | |
27657 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
27658 | ;; |
27659 | esac | |
b4e70030 JB |
27660 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
27661 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
27662 | if test "${ac_cv_header_tk_h+set}" = set; then |
27663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27664 | else | |
27665 | ac_cv_header_tk_h=$ac_header_preproc | |
27666 | fi | |
b4e70030 JB |
27667 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
27668 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 27669 | |
3fc11d3e | 27670 | fi |
bec39cab | 27671 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
27672 | ac_cv_c_tkh=installed |
27673 | else | |
bec39cab | 27674 | ac_cv_c_tkh="" |
3fc11d3e JM |
27675 | fi |
27676 | ||
bec39cab | 27677 | |
3fc11d3e JM |
27678 | fi |
27679 | ||
27680 | fi | |
27681 | ||
27682 | if test x"${ac_cv_c_tkh}" != x ; then | |
27683 | no_tk="" | |
27684 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
27685 | echo "$as_me:$LINENO: result: is installed" >&5 |
27686 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
27687 | TKHDIR="" |
27688 | else | |
b4e70030 JB |
27689 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
27690 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
27691 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
27692 | TKHDIR="-I${ac_cv_c_tkh}" | |
27693 | fi | |
27694 | else | |
27695 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
27696 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
27697 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
27698 | no_tk=true |
27699 | fi | |
27700 | ||
27701 | ||
27702 | ||
bec39cab | 27703 | |
b4e70030 JB |
27704 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
27705 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
27706 | if test x"${ac_cv_c_itclh}" = x ; then |
27707 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
27708 | if test -f $i/generic/itcl.h ; then | |
27709 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
27710 | break | |
27711 | fi | |
27712 | done | |
27713 | fi | |
27714 | if test x"${ac_cv_c_itclh}" = x ; then | |
27715 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
27716 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
27717 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
27718 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27719 | fi |
27720 | if test x"${ac_cv_c_itclh}" != x ; then | |
27721 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
27722 | fi | |
27723 | # should always be here | |
27724 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
27725 | ||
27726 | #AC_SUBST(ITCLLIB) | |
27727 | ||
bec39cab | 27728 | |
b4e70030 JB |
27729 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
27730 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
27731 | if test x"${ac_cv_c_itkh}" = x ; then |
27732 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
27733 | if test -f $i/generic/itk.h ; then | |
27734 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
27735 | break | |
27736 | fi | |
27737 | done | |
27738 | fi | |
27739 | if test x"${ac_cv_c_itkh}" = x ; then | |
27740 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
27741 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
27742 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
27743 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27744 | fi |
27745 | if test x"${ac_cv_c_itkh}" != x ; then | |
27746 | ITKHDIR="-I${ac_cv_c_itkh}" | |
27747 | fi | |
27748 | # should always be here | |
27749 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
27750 | ||
27751 | #AC_SUBST(ITKLIB) | |
27752 | ||
3fc11d3e | 27753 | |
dd2504ab JM |
27754 | |
27755 | # now look for Tk library stuff | |
27756 | ||
d91670b9 | 27757 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
27758 | |
27759 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
27760 | ||
3fc11d3e JM |
27761 | # now look for Itcl library stuff |
27762 | ||
bec39cab | 27763 | |
3fc11d3e JM |
27764 | # |
27765 | # Ok, lets find the itcl configuration | |
bec39cab | 27766 | # First, look for one uninstalled. |
3fc11d3e JM |
27767 | # the alternative search directory is invoked by --with-itclconfig |
27768 | # | |
27769 | ||
27770 | if test x"${no_itcl}" = x ; then | |
27771 | # we reset no_itcl in case something fails here | |
27772 | no_itcl=true | |
bec39cab | 27773 | |
b4e70030 | 27774 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 27775 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
27776 | withval="$with_itclconfig" |
27777 | with_itclconfig=${withval} | |
27778 | fi; | |
27779 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
27780 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
27781 | if test "${ac_cv_c_itclconfig+set}" = set; then |
27782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27783 | else |
bec39cab | 27784 | |
3fc11d3e JM |
27785 | |
27786 | # First check to see if --with-itclconfig was specified. | |
27787 | if test x"${with_itclconfig}" != x ; then | |
27788 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
27789 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
27790 | else | |
bec39cab AC |
27791 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
27792 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
27793 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27794 | fi |
27795 | fi | |
27796 | ||
27797 | # then check for a private Itcl library | |
27798 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
27799 | for i in \ | |
27800 | ../itcl/itcl \ | |
27801 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
27802 | ../../itcl \ | |
27803 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
27804 | ../../../itcl \ | |
27805 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
27806 | if test -f "$i/itclConfig.sh" ; then | |
27807 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
27808 | break | |
27809 | fi | |
27810 | done | |
27811 | fi | |
27812 | # check in a few common install locations | |
27813 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
27814 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
27815 | if test -f "$i/itclConfig.sh" ; then | |
27816 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
27817 | break | |
27818 | fi | |
27819 | done | |
27820 | fi | |
27821 | # check in a few other private locations | |
27822 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
27823 | for i in \ | |
27824 | ${srcdir}/../itcl/itcl \ | |
27825 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
27826 | if test -f "$i/itclConfig.sh" ; then | |
27827 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
27828 | break | |
27829 | fi | |
27830 | done | |
27831 | fi | |
bec39cab | 27832 | |
3fc11d3e JM |
27833 | fi |
27834 | ||
27835 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
27836 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
27837 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
27838 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
27839 | else |
27840 | no_itcl= | |
27841 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
27842 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
27843 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
27844 | fi |
27845 | fi | |
27846 | ||
27847 | if test -z "${no_itcl}"; then | |
bec39cab | 27848 | |
3fc11d3e JM |
27849 | if test -f "$ITCLCONFIG" ; then |
27850 | . $ITCLCONFIG | |
27851 | fi | |
27852 | ||
3fc11d3e | 27853 | |
3fc11d3e JM |
27854 | |
27855 | ||
bec39cab AC |
27856 | |
27857 | ||
27858 | ||
27859 | ||
27860 | ||
27861 | ||
27862 | ||
3fc11d3e JM |
27863 | |
27864 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 27865 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
27866 | fi |
27867 | ||
bec39cab | 27868 | |
3fc11d3e | 27869 | # now look for Itk library stuff |
bec39cab | 27870 | |
3fc11d3e JM |
27871 | # |
27872 | # Ok, lets find the itk configuration | |
bec39cab | 27873 | # First, look for one uninstalled. |
3fc11d3e JM |
27874 | # the alternative search directory is invoked by --with-itkconfig |
27875 | # | |
27876 | ||
27877 | if test x"${no_itk}" = x ; then | |
27878 | # we reset no_itk in case something fails here | |
27879 | no_itk=true | |
bec39cab | 27880 | |
b4e70030 | 27881 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 27882 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
27883 | withval="$with_itkconfig" |
27884 | with_itkconfig=${withval} | |
27885 | fi; | |
27886 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
27887 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
27888 | if test "${ac_cv_c_itkconfig+set}" = set; then |
27889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 27890 | else |
bec39cab | 27891 | |
3fc11d3e JM |
27892 | |
27893 | # First check to see if --with-itkconfig was specified. | |
27894 | if test x"${with_itkconfig}" != x ; then | |
27895 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
27896 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
27897 | else | |
bec39cab AC |
27898 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
27899 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
27900 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
27901 | fi |
27902 | fi | |
27903 | ||
27904 | # then check for a private Itk library | |
27905 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
27906 | for i in \ | |
27907 | ../itcl/itk \ | |
27908 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
27909 | ../../itk \ | |
27910 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
27911 | ../../../itk \ | |
27912 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
27913 | if test -f "$i/itkConfig.sh" ; then | |
27914 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
27915 | break | |
27916 | fi | |
27917 | done | |
27918 | fi | |
27919 | # check in a few common install locations | |
27920 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
27921 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
27922 | if test -f "$i/itkConfig.sh" ; then | |
27923 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
27924 | break | |
27925 | fi | |
27926 | done | |
27927 | fi | |
27928 | # check in a few other private locations | |
27929 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
27930 | for i in \ | |
27931 | ${srcdir}/../itcl/itk \ | |
27932 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
27933 | if test -f "$i/itkConfig.sh" ; then | |
27934 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
27935 | break | |
27936 | fi | |
27937 | done | |
27938 | fi | |
bec39cab | 27939 | |
3fc11d3e JM |
27940 | fi |
27941 | ||
27942 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
27943 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
27944 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
27945 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
27946 | else |
27947 | no_itk= | |
27948 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
27949 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
27950 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
27951 | fi |
27952 | fi | |
27953 | ||
27954 | ||
bec39cab AC |
27955 | if test -z "${no_itcl}"; then |
27956 | ||
27957 | if test -f "$ITKCONFIG" ; then | |
27958 | . $ITKCONFIG | |
27959 | fi | |
27960 | ||
27961 | ||
27962 | ||
27963 | ||
27964 | ||
27965 | ||
3fc11d3e | 27966 | |
3fc11d3e | 27967 | |
3fc11d3e JM |
27968 | |
27969 | ||
3fc11d3e JM |
27970 | |
27971 | ||
3fc11d3e | 27972 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 27973 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
27974 | fi |
27975 | ||
4226a5a5 | 27976 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
27977 | |
27978 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 27979 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
27980 | # Yes, the ordering seems wrong here. But it isn't. |
27981 | # TK_LIBS is the list of libraries that need to be linked | |
27982 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
27983 | # were in LIBS then any link tests after this point would | |
27984 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
27985 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
27986 | |
27987 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
27988 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
27989 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
27990 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
27991 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
27992 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
27993 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
27994 | |
27995 | if test x$gdb_cv_os_cygwin = xyes; then | |
27996 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
27997 | WIN32LDAPP="-Wl,--subsystem,console" | |
27998 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
27999 | fi | |
28000 | fi | |
28001 | fi | |
ffc6a242 | 28002 | |
b4e70030 JB |
28003 | |
28004 | ||
28005 | subdirs="$subdirs gdbtk" | |
3ace7edb | 28006 | |
3fc11d3e JM |
28007 | fi |
28008 | ||
28009 | ||
28010 | ||
28011 | ||
28012 | ||
28013 | ||
28014 | ||
28015 | ||
28016 | ||
28017 | ||
28018 | ||
28019 | ||
28020 | ||
dd2504ab | 28021 | |
b4e70030 JB |
28022 | echo "$as_me:$LINENO: checking for X" >&5 |
28023 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 28024 | |
c906108c | 28025 | |
b4e70030 | 28026 | # Check whether --with-x or --without-x was given. |
c906108c | 28027 | if test "${with_x+set}" = set; then |
b4e70030 | 28028 | withval="$with_x" |
c906108c | 28029 | |
b4e70030 | 28030 | fi; |
c906108c SS |
28031 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
28032 | if test "x$with_x" = xno; then | |
28033 | # The user explicitly disabled X. | |
28034 | have_x=disabled | |
28035 | else | |
28036 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28037 | # Both variables are already set. | |
28038 | have_x=yes | |
28039 | else | |
bec39cab AC |
28040 | if test "${ac_cv_have_x+set}" = set; then |
28041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
28042 | else |
28043 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 28044 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 28045 | rm -fr conftest.dir |
bec39cab AC |
28046 | if mkdir conftest.dir; then |
28047 | cd conftest.dir | |
c906108c | 28048 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 28049 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
28050 | acfindx: |
28051 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 28052 | _ACEOF |
b4e70030 | 28053 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
28054 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
28055 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28056 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28057 | for ac_extension in a so sl; do | |
28058 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
28059 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28060 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
28061 | fi |
28062 | done | |
28063 | # Screen out bogus values from the imake configuration. They are | |
28064 | # bogus both because they are the default anyway, and because | |
28065 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 28066 | case $ac_im_incroot in |
b4e70030 | 28067 | /usr/include) ;; |
bec39cab | 28068 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 28069 | esac |
bec39cab | 28070 | case $ac_im_usrlibdir in |
c906108c | 28071 | /usr/lib | /lib) ;; |
bec39cab | 28072 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
28073 | esac |
28074 | fi | |
28075 | cd .. | |
b4e70030 | 28076 | rm -fr conftest.dir |
c906108c SS |
28077 | fi |
28078 | ||
bec39cab AC |
28079 | # Standard set of common directories for X headers. |
28080 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28081 | ac_x_header_dirs=' | |
28082 | /usr/X11/include | |
28083 | /usr/X11R6/include | |
28084 | /usr/X11R5/include | |
28085 | /usr/X11R4/include | |
28086 | ||
28087 | /usr/include/X11 | |
28088 | /usr/include/X11R6 | |
28089 | /usr/include/X11R5 | |
28090 | /usr/include/X11R4 | |
28091 | ||
28092 | /usr/local/X11/include | |
28093 | /usr/local/X11R6/include | |
28094 | /usr/local/X11R5/include | |
28095 | /usr/local/X11R4/include | |
28096 | ||
28097 | /usr/local/include/X11 | |
28098 | /usr/local/include/X11R6 | |
28099 | /usr/local/include/X11R5 | |
28100 | /usr/local/include/X11R4 | |
28101 | ||
28102 | /usr/X386/include | |
28103 | /usr/x386/include | |
28104 | /usr/XFree86/include/X11 | |
28105 | ||
28106 | /usr/include | |
28107 | /usr/local/include | |
28108 | /usr/unsupported/include | |
28109 | /usr/athena/include | |
28110 | /usr/local/x11r5/include | |
28111 | /usr/lpp/Xamples/include | |
28112 | ||
28113 | /usr/openwin/include | |
28114 | /usr/openwin/share/include' | |
28115 | ||
28116 | if test "$ac_x_includes" = no; then | |
59f80f10 | 28117 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 28118 | # First, try using that file with no special directory specified. |
bec39cab AC |
28119 | cat >conftest.$ac_ext <<_ACEOF |
28120 | /* confdefs.h. */ | |
28121 | _ACEOF | |
28122 | cat confdefs.h >>conftest.$ac_ext | |
28123 | cat >>conftest.$ac_ext <<_ACEOF | |
28124 | /* end confdefs.h. */ | |
59f80f10 | 28125 | #include <X11/Intrinsic.h> |
bec39cab AC |
28126 | _ACEOF |
28127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28129 | ac_status=$? | |
28130 | grep -v '^ *+' conftest.er1 >conftest.err | |
28131 | rm -f conftest.er1 | |
28132 | cat conftest.err >&5 | |
28133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28134 | (exit $ac_status); } >/dev/null; then | |
28135 | if test -s conftest.err; then | |
28136 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
28138 | else | |
28139 | ac_cpp_err= | |
28140 | fi | |
28141 | else | |
28142 | ac_cpp_err=yes | |
28143 | fi | |
28144 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
28145 | # We can compile using X headers with no special include directory. |
28146 | ac_x_includes= | |
28147 | else | |
bec39cab AC |
28148 | echo "$as_me: failed program was:" >&5 |
28149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28150 | ||
28151 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 28152 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
28153 | ac_x_includes=$ac_dir |
28154 | break | |
28155 | fi | |
28156 | done | |
c906108c | 28157 | fi |
bec39cab AC |
28158 | rm -f conftest.err conftest.$ac_ext |
28159 | fi # $ac_x_includes = no | |
c906108c | 28160 | |
bec39cab | 28161 | if test "$ac_x_libraries" = no; then |
c906108c | 28162 | # Check for the libraries. |
c906108c SS |
28163 | # See if we find them without any special options. |
28164 | # Don't add to $LIBS permanently. | |
bec39cab | 28165 | ac_save_LIBS=$LIBS |
4e8d927d | 28166 | LIBS="-lXt $LIBS" |
bec39cab AC |
28167 | cat >conftest.$ac_ext <<_ACEOF |
28168 | /* confdefs.h. */ | |
28169 | _ACEOF | |
28170 | cat confdefs.h >>conftest.$ac_ext | |
28171 | cat >>conftest.$ac_ext <<_ACEOF | |
28172 | /* end confdefs.h. */ | |
59f80f10 | 28173 | #include <X11/Intrinsic.h> |
bec39cab AC |
28174 | int |
28175 | main () | |
28176 | { | |
59f80f10 | 28177 | XtMalloc (0) |
bec39cab AC |
28178 | ; |
28179 | return 0; | |
28180 | } | |
28181 | _ACEOF | |
28182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28184 | (eval $ac_link) 2>conftest.er1 | |
28185 | ac_status=$? | |
28186 | grep -v '^ *+' conftest.er1 >conftest.err | |
28187 | rm -f conftest.er1 | |
28188 | cat conftest.err >&5 | |
28189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28190 | (exit $ac_status); } && | |
b4e70030 JB |
28191 | { ac_try='test -z "$ac_c_werror_flag" |
28192 | || test ! -s conftest.err' | |
bec39cab AC |
28193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28194 | (eval $ac_try) 2>&5 | |
28195 | ac_status=$? | |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28197 | (exit $ac_status); }; } && | |
28198 | { ac_try='test -s conftest$ac_exeext' | |
28199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28200 | (eval $ac_try) 2>&5 | |
28201 | ac_status=$? | |
28202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28203 | (exit $ac_status); }; }; then | |
28204 | LIBS=$ac_save_LIBS | |
c906108c SS |
28205 | # We can link X programs with no special library path. |
28206 | ac_x_libraries= | |
28207 | else | |
bec39cab AC |
28208 | echo "$as_me: failed program was:" >&5 |
28209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28210 | ||
b4e70030 | 28211 | LIBS=$ac_save_LIBS |
bec39cab | 28212 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 28213 | do |
bec39cab | 28214 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 28215 | for ac_extension in a so sl; do |
b4e70030 | 28216 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
28217 | ac_x_libraries=$ac_dir |
28218 | break 2 | |
28219 | fi | |
28220 | done | |
28221 | done | |
28222 | fi | |
bec39cab AC |
28223 | rm -f conftest.err conftest.$ac_objext \ |
28224 | conftest$ac_exeext conftest.$ac_ext | |
28225 | fi # $ac_x_libraries = no | |
c906108c | 28226 | |
bec39cab | 28227 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
28228 | # Didn't find X anywhere. Cache the known absence of X. |
28229 | ac_cv_have_x="have_x=no" | |
28230 | else | |
28231 | # Record where we found X for the cache. | |
28232 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 28233 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
28234 | fi |
28235 | fi | |
bec39cab | 28236 | |
c906108c SS |
28237 | fi |
28238 | eval "$ac_cv_have_x" | |
28239 | fi # $with_x != no | |
28240 | ||
28241 | if test "$have_x" != yes; then | |
b4e70030 JB |
28242 | echo "$as_me:$LINENO: result: $have_x" >&5 |
28243 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
28244 | no_x=yes |
28245 | else | |
28246 | # If each of the values was on the command line, it overrides each guess. | |
28247 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28248 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28249 | # Update the cache value to reflect the command line values. | |
28250 | ac_cv_have_x="have_x=yes \ | |
28251 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
28252 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
28253 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
28254 | fi |
28255 | ||
28256 | ||
9cc52bde MK |
28257 | # Check whether we should enable the TUI, but only do so if we really |
28258 | # can. | |
28259 | if test x"$enable_tui" = xyes; then | |
28260 | if test -d $srcdir/tui; then | |
28261 | if test "$ac_cv_search_waddstr" != no; then | |
28262 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
28263 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
28264 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
28265 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
28266 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
28267 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
28268 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
28269 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
28270 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
28271 | else | |
bec39cab AC |
28272 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
28273 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
28274 | fi |
28275 | fi | |
28276 | fi | |
28277 | ||
bec39cab | 28278 | # Unlike the sim directory, whether a simulator is linked is controlled by |
9b624dbe | 28279 | # presence of a gdb_sim definition in the target configure.tgt entry. |
7a292a7a SS |
28280 | # This code just checks for a few cases where we'd like to ignore those |
28281 | # definitions, even when they're present in the '.mt' file. These cases | |
28282 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 28283 | # not part of the source tree. |
7a292a7a | 28284 | # |
b4e70030 | 28285 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 28286 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
28287 | enableval="$enable_sim" |
28288 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
28289 | echo "enableval = ${enableval}"; |
28290 | case "${enableval}" in | |
28291 | yes) ignore_sim=false ;; | |
28292 | no) ignore_sim=true ;; | |
28293 | *) ignore_sim=false ;; | |
28294 | esac | |
28295 | else | |
28296 | ignore_sim=false | |
b4e70030 | 28297 | fi; |
7a292a7a SS |
28298 | |
28299 | if test ! -d "${srcdir}/../sim"; then | |
28300 | ignore_sim=true | |
28301 | fi | |
28302 | ||
9b624dbe UW |
28303 | SIM= |
28304 | SIM_OBS= | |
28305 | if test "${ignore_sim}" = "false"; then | |
28306 | if test x"${gdb_sim}" != x ; then | |
28307 | SIM="${gdb_sim}" | |
28308 | SIM_OBS="remote-sim.o" | |
60ca704f SE |
28309 | |
28310 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 28311 | #define WITH_SIM 1 |
bec39cab | 28312 | _ACEOF |
7a292a7a | 28313 | |
9b624dbe | 28314 | fi |
7a292a7a SS |
28315 | fi |
28316 | ||
28317 | ||
28318 | ||
c906108c SS |
28319 | |
28320 | ||
28321 | ||
28322 | ||
28323 | ||
28324 | ||
dfcd3bfb | 28325 | |
e56ac5c3 AC |
28326 | |
28327 | ||
b3a90332 AC |
28328 | |
28329 | ||
c35f4ffc | 28330 | # List of host floatformats. |
bec39cab AC |
28331 | |
28332 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 28333 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 28334 | _ACEOF |
c35f4ffc | 28335 | |
bec39cab AC |
28336 | |
28337 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 28338 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
28339 | _ACEOF |
28340 | ||
c35f4ffc | 28341 | |
bec39cab | 28342 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 28343 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 28344 | _ACEOF |
c35f4ffc AC |
28345 | |
28346 | ||
c906108c SS |
28347 | # target_subdir is used by the testsuite to find the target libraries. |
28348 | target_subdir= | |
28349 | if test "${host}" != "${target}"; then | |
28350 | target_subdir="${target_alias}/" | |
28351 | fi | |
28352 | ||
28353 | ||
28354 | frags= | |
771b4502 | 28355 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
28356 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
28357 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
28358 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
28359 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
28360 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
28361 | fi |
28362 | frags="$frags $host_makefile_frag" | |
28363 | else | |
28364 | host_makefile_frag=/dev/null | |
c906108c | 28365 | fi |
c906108c | 28366 | |
c906108c SS |
28367 | |
28368 | ||
28369 | ||
771b4502 | 28370 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
28371 | # We pick this up from the host configuration file (.mh) because we |
28372 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
28373 | nativefile=`sed -n ' |
28374 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
28375 | ' ${host_makefile_frag}` | |
c906108c SS |
28376 | fi |
28377 | ||
28378 | ||
b00a8037 | 28379 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
28380 | |
28381 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 28382 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 28383 | _ACEOF |
b00a8037 DJ |
28384 | |
28385 | fi | |
28386 | ||
8dcde887 | 28387 | # Enable multi-ice-gdb-server. |
b4e70030 | 28388 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 28389 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
28390 | enableval="$enable_multi_ice" |
28391 | case $enableval in | |
8dcde887 MK |
28392 | yes | no) |
28393 | ;; | |
bec39cab AC |
28394 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
28395 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
28396 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 28397 | esac |
b4e70030 | 28398 | fi; |
4e8d927d | 28399 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
28400 | |
28401 | ||
28402 | subdirs="$subdirs multi-ice" | |
3ace7edb | 28403 | |
a85f51e7 DJ |
28404 | fi |
28405 | ||
a13e2c95 UW |
28406 | # We only build gdbserver automatically in a native configuration. |
28407 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
28408 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
28409 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 28410 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
28411 | echo "$as_me:$LINENO: result: yes" >&5 |
28412 | echo "${ECHO_T}yes" >&6 | |
28413 | ||
28414 | ||
28415 | subdirs="$subdirs gdbserver" | |
3ace7edb | 28416 | |
8dcde887 | 28417 | else |
b4e70030 JB |
28418 | echo "$as_me:$LINENO: result: no" >&5 |
28419 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
28420 | fi |
28421 | fi | |
28422 | ||
db985757 | 28423 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
2c0fc042 | 28424 | # to an empty version. |
c906108c SS |
28425 | |
28426 | files= | |
28427 | links= | |
5a2402b8 | 28428 | |
c906108c | 28429 | rm -f nm.h |
5a2402b8 | 28430 | nm_h="" |
c906108c | 28431 | if test "${nativefile}" != ""; then |
5a2402b8 | 28432 | nm_h=nm.h |
0f475e27 AC |
28433 | case "${nativefile}" in |
28434 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
28435 | * ) GDB_NM_FILE="${nativefile}" | |
28436 | esac | |
5a2402b8 AC |
28437 | files="${files} ${GDB_NM_FILE}" |
28438 | links="${links} nm.h" | |
60ca704f SE |
28439 | |
28440 | cat >>confdefs.h <<_ACEOF | |
b78960be | 28441 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 28442 | _ACEOF |
5a2402b8 | 28443 | |
c906108c | 28444 | fi |
5a2402b8 AC |
28445 | |
28446 | ||
bec39cab AC |
28447 | ac_sources="$files" |
28448 | ac_dests="$links" | |
28449 | while test -n "$ac_sources"; do | |
28450 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
28451 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
28452 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
28453 | done | |
b4e70030 | 28454 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
28455 | |
28456 | ||
c906108c SS |
28457 | |
28458 | ||
c906108c | 28459 | |
c906108c | 28460 | |
bec39cab AC |
28461 | cat >>confdefs.h <<\_ACEOF |
28462 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
28463 | _ACEOF | |
c906108c | 28464 | |
234b45d4 | 28465 | |
234b45d4 KB |
28466 | |
28467 | ||
28468 | ||
b4e70030 | 28469 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 28470 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
28471 | withval="$with_libiconv_prefix" |
28472 | ||
234b45d4 KB |
28473 | for dir in `echo "$withval" | tr : ' '`; do |
28474 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
28475 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
28476 | done | |
234b45d4 | 28477 | |
b4e70030 | 28478 | fi; |
234b45d4 | 28479 | |
b4e70030 JB |
28480 | echo "$as_me:$LINENO: checking for iconv" >&5 |
28481 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
28482 | if test "${am_cv_func_iconv+set}" = set; then |
28483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 28484 | else |
bec39cab | 28485 | |
234b45d4 KB |
28486 | am_cv_func_iconv="no, consider installing GNU libiconv" |
28487 | am_cv_lib_iconv=no | |
bec39cab AC |
28488 | cat >conftest.$ac_ext <<_ACEOF |
28489 | /* confdefs.h. */ | |
28490 | _ACEOF | |
28491 | cat confdefs.h >>conftest.$ac_ext | |
28492 | cat >>conftest.$ac_ext <<_ACEOF | |
28493 | /* end confdefs.h. */ | |
234b45d4 KB |
28494 | #include <stdlib.h> |
28495 | #include <iconv.h> | |
bec39cab AC |
28496 | int |
28497 | main () | |
28498 | { | |
234b45d4 KB |
28499 | iconv_t cd = iconv_open("",""); |
28500 | iconv(cd,NULL,NULL,NULL,NULL); | |
28501 | iconv_close(cd); | |
bec39cab AC |
28502 | ; |
28503 | return 0; | |
28504 | } | |
28505 | _ACEOF | |
28506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28508 | (eval $ac_link) 2>conftest.er1 | |
28509 | ac_status=$? | |
28510 | grep -v '^ *+' conftest.er1 >conftest.err | |
28511 | rm -f conftest.er1 | |
28512 | cat conftest.err >&5 | |
28513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28514 | (exit $ac_status); } && | |
b4e70030 JB |
28515 | { ac_try='test -z "$ac_c_werror_flag" |
28516 | || test ! -s conftest.err' | |
bec39cab AC |
28517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28518 | (eval $ac_try) 2>&5 | |
28519 | ac_status=$? | |
28520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28521 | (exit $ac_status); }; } && | |
28522 | { ac_try='test -s conftest$ac_exeext' | |
28523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28524 | (eval $ac_try) 2>&5 | |
28525 | ac_status=$? | |
28526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28527 | (exit $ac_status); }; }; then | |
234b45d4 KB |
28528 | am_cv_func_iconv=yes |
28529 | else | |
bec39cab AC |
28530 | echo "$as_me: failed program was:" >&5 |
28531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28532 | ||
234b45d4 | 28533 | fi |
bec39cab AC |
28534 | rm -f conftest.err conftest.$ac_objext \ |
28535 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
28536 | if test "$am_cv_func_iconv" != yes; then |
28537 | am_save_LIBS="$LIBS" | |
28538 | LIBS="$LIBS -liconv" | |
bec39cab AC |
28539 | cat >conftest.$ac_ext <<_ACEOF |
28540 | /* confdefs.h. */ | |
28541 | _ACEOF | |
28542 | cat confdefs.h >>conftest.$ac_ext | |
28543 | cat >>conftest.$ac_ext <<_ACEOF | |
28544 | /* end confdefs.h. */ | |
234b45d4 KB |
28545 | #include <stdlib.h> |
28546 | #include <iconv.h> | |
bec39cab AC |
28547 | int |
28548 | main () | |
28549 | { | |
234b45d4 KB |
28550 | iconv_t cd = iconv_open("",""); |
28551 | iconv(cd,NULL,NULL,NULL,NULL); | |
28552 | iconv_close(cd); | |
bec39cab AC |
28553 | ; |
28554 | return 0; | |
28555 | } | |
28556 | _ACEOF | |
28557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28559 | (eval $ac_link) 2>conftest.er1 | |
28560 | ac_status=$? | |
28561 | grep -v '^ *+' conftest.er1 >conftest.err | |
28562 | rm -f conftest.er1 | |
28563 | cat conftest.err >&5 | |
28564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28565 | (exit $ac_status); } && | |
b4e70030 JB |
28566 | { ac_try='test -z "$ac_c_werror_flag" |
28567 | || test ! -s conftest.err' | |
bec39cab AC |
28568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28569 | (eval $ac_try) 2>&5 | |
28570 | ac_status=$? | |
28571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28572 | (exit $ac_status); }; } && | |
28573 | { ac_try='test -s conftest$ac_exeext' | |
28574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28575 | (eval $ac_try) 2>&5 | |
28576 | ac_status=$? | |
28577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28578 | (exit $ac_status); }; }; then | |
234b45d4 KB |
28579 | am_cv_lib_iconv=yes |
28580 | am_cv_func_iconv=yes | |
28581 | else | |
bec39cab AC |
28582 | echo "$as_me: failed program was:" >&5 |
28583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28584 | ||
234b45d4 | 28585 | fi |
bec39cab AC |
28586 | rm -f conftest.err conftest.$ac_objext \ |
28587 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
28588 | LIBS="$am_save_LIBS" |
28589 | fi | |
bec39cab AC |
28590 | |
28591 | fi | |
b4e70030 JB |
28592 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
28593 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
28594 | if test "$am_cv_func_iconv" = yes; then |
28595 | ||
28596 | cat >>confdefs.h <<\_ACEOF | |
28597 | #define HAVE_ICONV 1 | |
28598 | _ACEOF | |
28599 | ||
b4e70030 JB |
28600 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
28601 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
28602 | if test "${am_cv_proto_iconv+set}" = set; then |
28603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28604 | else | |
28605 | ||
28606 | cat >conftest.$ac_ext <<_ACEOF | |
28607 | /* confdefs.h. */ | |
28608 | _ACEOF | |
28609 | cat confdefs.h >>conftest.$ac_ext | |
28610 | cat >>conftest.$ac_ext <<_ACEOF | |
28611 | /* end confdefs.h. */ | |
28612 | ||
28613 | #include <stdlib.h> | |
28614 | #include <iconv.h> | |
28615 | extern | |
28616 | #ifdef __cplusplus | |
28617 | "C" | |
28618 | #endif | |
28619 | #if defined(__STDC__) || defined(__cplusplus) | |
28620 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
28621 | #else | |
28622 | size_t iconv(); | |
28623 | #endif | |
28624 | ||
28625 | int | |
28626 | main () | |
28627 | { | |
28628 | ||
28629 | ; | |
28630 | return 0; | |
28631 | } | |
28632 | _ACEOF | |
28633 | rm -f conftest.$ac_objext | |
28634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28635 | (eval $ac_compile) 2>conftest.er1 | |
28636 | ac_status=$? | |
28637 | grep -v '^ *+' conftest.er1 >conftest.err | |
28638 | rm -f conftest.er1 | |
28639 | cat conftest.err >&5 | |
28640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28641 | (exit $ac_status); } && | |
b4e70030 JB |
28642 | { ac_try='test -z "$ac_c_werror_flag" |
28643 | || test ! -s conftest.err' | |
bec39cab AC |
28644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28645 | (eval $ac_try) 2>&5 | |
28646 | ac_status=$? | |
28647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28648 | (exit $ac_status); }; } && | |
28649 | { ac_try='test -s conftest.$ac_objext' | |
28650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28651 | (eval $ac_try) 2>&5 | |
28652 | ac_status=$? | |
28653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28654 | (exit $ac_status); }; }; then | |
28655 | am_cv_proto_iconv_arg1="" | |
28656 | else | |
28657 | echo "$as_me: failed program was:" >&5 | |
28658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28659 | ||
b4e70030 | 28660 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
28661 | fi |
28662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28663 | 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);" | |
28664 | fi | |
28665 | ||
28666 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 28667 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
28668 | }$am_cv_proto_iconv" >&5 |
28669 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 28670 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
28671 | |
28672 | cat >>confdefs.h <<_ACEOF | |
28673 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
28674 | _ACEOF | |
28675 | ||
28676 | fi | |
28677 | LIBICONV= | |
28678 | if test "$am_cv_lib_iconv" = yes; then | |
28679 | LIBICONV="-liconv" | |
28680 | fi | |
28681 | ||
28682 | ||
28683 | ||
e28b3332 | 28684 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile" |
b4e70030 | 28685 | ac_config_commands="$ac_config_commands default" |
bec39cab AC |
28686 | cat >confcache <<\_ACEOF |
28687 | # This file is a shell script that caches the results of configure | |
28688 | # tests run on this system so they can be shared between configure | |
28689 | # scripts and configure runs, see configure's option --config-cache. | |
28690 | # It is not useful on other systems. If it contains results you don't | |
28691 | # want to keep, you may remove or edit it. | |
28692 | # | |
28693 | # config.status only pays attention to the cache file if you give it | |
28694 | # the --recheck option to rerun configure. | |
28695 | # | |
28696 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
28697 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28698 | # following values. | |
28699 | ||
28700 | _ACEOF | |
28701 | ||
28702 | # The following way of writing the cache mishandles newlines in values, | |
28703 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 28704 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
28705 | # Ultrix sh set writes to stderr and can't be redirected directly, |
28706 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 28707 | { |
bec39cab | 28708 | (set) 2>&1 | |
b4e70030 JB |
28709 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
28710 | *ac_space=\ *) | |
bec39cab AC |
28711 | # `set' does not quote correctly, so add quotes (double-quote |
28712 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28713 | sed -n \ | |
28714 | "s/'/'\\\\''/g; | |
28715 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 28716 | ;; |
bec39cab AC |
28717 | *) |
28718 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
28719 | sed -n \ |
28720 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 28721 | ;; |
b4e70030 JB |
28722 | esac; |
28723 | } | | |
bec39cab AC |
28724 | sed ' |
28725 | t clear | |
b4e70030 | 28726 | : clear |
bec39cab AC |
28727 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
28728 | t end | |
b4e70030 JB |
28729 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
28730 | : end' >>confcache | |
bec39cab AC |
28731 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
28732 | if test -w $cache_file; then | |
b4e70030 | 28733 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
28734 | cat confcache >$cache_file |
28735 | else | |
b4e70030 | 28736 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
28737 | fi |
28738 | fi | |
28739 | rm -f confcache | |
28740 | ||
28741 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
28742 | # Let make expand exec_prefix. | |
28743 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
28744 | ||
b4e70030 JB |
28745 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
28746 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
28747 | # trailing colons and then remove the whole line if VPATH becomes empty | |
28748 | # (actually we leave an empty line to preserve line numbers). | |
28749 | if test "x$srcdir" = x.; then | |
28750 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
28751 | s/:*\$(srcdir):*/:/; | |
28752 | s/:*\${srcdir}:*/:/; | |
28753 | s/:*@srcdir@:*/:/; | |
28754 | s/^\([^=]*=[ ]*\):*/\1/; | |
28755 | s/:*$//; | |
28756 | s/^[^=]*=[ ]*$//; | |
28757 | }' | |
28758 | fi | |
28759 | ||
bec39cab AC |
28760 | DEFS=-DHAVE_CONFIG_H |
28761 | ||
28762 | ac_libobjs= | |
28763 | ac_ltlibobjs= | |
28764 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
28765 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
28766 | ac_i=`echo "$ac_i" | |
28767 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
28768 | # 2. Add them. | |
28769 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
28770 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
28771 | done |
28772 | LIBOBJS=$ac_libobjs | |
28773 | ||
28774 | LTLIBOBJS=$ac_ltlibobjs | |
28775 | ||
28776 | ||
85981d60 AC |
28777 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
28778 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
28779 | Usually this means the macro was only invoked conditionally." >&5 | |
28780 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
28781 | Usually this means the macro was only invoked conditionally." >&2;} | |
28782 | { (exit 1); exit 1; }; } | |
28783 | fi | |
783e057b DJ |
28784 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
28785 | { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
28786 | Usually this means the macro was only invoked conditionally." >&5 | |
28787 | echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
28788 | Usually this means the macro was only invoked conditionally." >&2;} | |
28789 | { (exit 1); exit 1; }; } | |
28790 | fi | |
28791 | ||
28792 | gl_libobjs= | |
28793 | gl_ltlibobjs= | |
28794 | if test -n "$gl_LIBOBJS"; then | |
28795 | # Remove the extension. | |
28796 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
28797 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
28798 | gl_libobjs="$gl_libobjs $i.$ac_objext" | |
28799 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
28800 | done | |
28801 | fi | |
28802 | gl_LIBOBJS=$gl_libobjs | |
28803 | ||
28804 | gl_LTLIBOBJS=$gl_ltlibobjs | |
28805 | ||
28806 | ||
28807 | ||
28808 | gltests_libobjs= | |
28809 | gltests_ltlibobjs= | |
28810 | if test -n "$gltests_LIBOBJS"; then | |
28811 | # Remove the extension. | |
28812 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
28813 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
28814 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
28815 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
28816 | done | |
28817 | fi | |
28818 | gltests_LIBOBJS=$gltests_libobjs | |
28819 | ||
28820 | gltests_LTLIBOBJS=$gltests_ltlibobjs | |
28821 | ||
28822 | ||
e28b3332 DJ |
28823 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
28824 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
28825 | Usually this means the macro was only invoked conditionally." >&5 | |
28826 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
28827 | Usually this means the macro was only invoked conditionally." >&2;} | |
28828 | { (exit 1); exit 1; }; } | |
28829 | fi | |
28830 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
28831 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
28832 | Usually this means the macro was only invoked conditionally." >&5 | |
28833 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
28834 | Usually this means the macro was only invoked conditionally." >&2;} | |
28835 | { (exit 1); exit 1; }; } | |
28836 | fi | |
bec39cab AC |
28837 | |
28838 | : ${CONFIG_STATUS=./config.status} | |
28839 | ac_clean_files_save=$ac_clean_files | |
28840 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
28841 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
28842 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
28843 | cat >$CONFIG_STATUS <<_ACEOF | |
28844 | #! $SHELL | |
28845 | # Generated by $as_me. | |
28846 | # Run this file to recreate the current configuration. | |
28847 | # Compiler output produced by configure, useful for debugging | |
28848 | # configure, is in config.log if it exists. | |
28849 | ||
28850 | debug=false | |
28851 | ac_cs_recheck=false | |
28852 | ac_cs_silent=false | |
28853 | SHELL=\${CONFIG_SHELL-$SHELL} | |
28854 | _ACEOF | |
28855 | ||
28856 | cat >>$CONFIG_STATUS <<\_ACEOF | |
28857 | ## --------------------- ## | |
28858 | ## M4sh Initialization. ## | |
28859 | ## --------------------- ## | |
28860 | ||
28861 | # Be Bourne compatible | |
28862 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
28863 | emulate sh | |
28864 | NULLCMD=: | |
28865 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
28866 | # is contrary to our usage. Disable this feature. | |
28867 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
28868 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
28869 | set -o posix | |
bec39cab AC |
28870 | fi |
28871 | DUALCASE=1; export DUALCASE # for MKS sh | |
28872 | ||
28873 | # Support unset when possible. | |
28874 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
28875 | as_unset=unset | |
28876 | else | |
28877 | as_unset=false | |
28878 | fi | |
28879 | ||
28880 | ||
28881 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 28882 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
28883 | PS1='$ ' |
28884 | PS2='> ' | |
28885 | PS4='+ ' | |
28886 | ||
28887 | # NLS nuisances. | |
28888 | for as_var in \ | |
28889 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
28890 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
28891 | LC_TELEPHONE LC_TIME | |
28892 | do | |
28893 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
28894 | eval $as_var=C; export $as_var | |
28895 | else | |
b4e70030 | 28896 | $as_unset $as_var |
bec39cab AC |
28897 | fi |
28898 | done | |
28899 | ||
28900 | # Required to use basename. | |
b4e70030 | 28901 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
28902 | as_expr=expr |
28903 | else | |
28904 | as_expr=false | |
28905 | fi | |
28906 | ||
b4e70030 | 28907 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
28908 | as_basename=basename |
28909 | else | |
28910 | as_basename=false | |
28911 | fi | |
28912 | ||
28913 | ||
28914 | # Name of the executable. | |
b4e70030 | 28915 | as_me=`$as_basename "$0" || |
bec39cab AC |
28916 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
28917 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
28918 | X"$0" : 'X\(/\)$' \| \ |
28919 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 28920 | echo X/"$0" | |
b4e70030 JB |
28921 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
28922 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
28923 | /^X\/\(\/\).*/{ s//\1/; q; } | |
28924 | s/.*/./; q'` | |
bec39cab | 28925 | |
b4e70030 JB |
28926 | |
28927 | # PATH needs CR, and LINENO needs CR and PATH. | |
28928 | # Avoid depending upon Character Ranges. | |
28929 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
28930 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
28931 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
28932 | as_cr_digits='0123456789' | |
28933 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
28934 | ||
28935 | # The user is always right. | |
28936 | if test "${PATH_SEPARATOR+set}" != set; then | |
28937 | echo "#! /bin/sh" >conf$$.sh | |
28938 | echo "exit 0" >>conf$$.sh | |
28939 | chmod +x conf$$.sh | |
28940 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
28941 | PATH_SEPARATOR=';' | |
28942 | else | |
28943 | PATH_SEPARATOR=: | |
28944 | fi | |
28945 | rm -f conf$$.sh | |
28946 | fi | |
bec39cab AC |
28947 | |
28948 | ||
b4e70030 JB |
28949 | as_lineno_1=$LINENO |
28950 | as_lineno_2=$LINENO | |
28951 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
28952 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
28953 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
28954 | # Find who we are. Look in the path if we contain no path at all | |
28955 | # relative or not. | |
28956 | case $0 in | |
28957 | *[\\/]* ) as_myself=$0 ;; | |
28958 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28959 | for as_dir in $PATH | |
28960 | do | |
28961 | IFS=$as_save_IFS | |
28962 | test -z "$as_dir" && as_dir=. | |
28963 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
28964 | done | |
bec39cab | 28965 | |
b4e70030 JB |
28966 | ;; |
28967 | esac | |
28968 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
28969 | # in which case we are not to be found in the path. | |
28970 | if test "x$as_myself" = x; then | |
28971 | as_myself=$0 | |
28972 | fi | |
28973 | if test ! -f "$as_myself"; then | |
28974 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
28975 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
28976 | { (exit 1); exit 1; }; } | |
28977 | fi | |
28978 | case $CONFIG_SHELL in | |
28979 | '') | |
28980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28981 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
28982 | do | |
28983 | IFS=$as_save_IFS | |
28984 | test -z "$as_dir" && as_dir=. | |
28985 | for as_base in sh bash ksh sh5; do | |
28986 | case $as_dir in | |
28987 | /*) | |
28988 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
28989 | as_lineno_1=$LINENO |
28990 | as_lineno_2=$LINENO | |
b4e70030 | 28991 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 28992 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
28993 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
28994 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
28995 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
28996 | CONFIG_SHELL=$as_dir/$as_base | |
28997 | export CONFIG_SHELL | |
28998 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
28999 | fi;; | |
29000 | esac | |
29001 | done | |
29002 | done | |
29003 | ;; | |
29004 | esac | |
bec39cab AC |
29005 | |
29006 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
29007 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
29008 | # line-number line before each line; the second 'sed' does the real |
29009 | # work. The second script uses 'N' to pair each line-number line | |
29010 | # with the numbered line, and appends trailing '-' during | |
29011 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 29012 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
29013 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
29014 | sed '=' <$as_myself | | |
bec39cab AC |
29015 | sed ' |
29016 | N | |
b4e70030 JB |
29017 | s,$,-, |
29018 | : loop | |
29019 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 29020 | t loop |
b4e70030 JB |
29021 | s,-$,, |
29022 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 29023 | ' >$as_me.lineno && |
b4e70030 JB |
29024 | chmod +x $as_me.lineno || |
29025 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
29026 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
29027 | { (exit 1); exit 1; }; } |
29028 | ||
29029 | # Don't try to exec as it changes $[0], causing all sort of problems | |
29030 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
29031 | # original and so on. Autoconf is especially sensible to this). |
29032 | . ./$as_me.lineno | |
bec39cab AC |
29033 | # Exit status is that of the last command. |
29034 | exit | |
29035 | } | |
29036 | ||
29037 | ||
b4e70030 JB |
29038 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
29039 | *c*,-n*) ECHO_N= ECHO_C=' | |
29040 | ' ECHO_T=' ' ;; | |
29041 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
29042 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
29043 | esac |
29044 | ||
b4e70030 | 29045 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
29046 | as_expr=expr |
29047 | else | |
29048 | as_expr=false | |
29049 | fi | |
29050 | ||
29051 | rm -f conf$$ conf$$.exe conf$$.file | |
29052 | echo >conf$$.file | |
29053 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
29054 | # We could just check for DJGPP; but this test a) works b) is more generic |
29055 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
29056 | if test -f conf$$.exe; then | |
29057 | # Don't use ln at all; we don't have any links | |
bec39cab | 29058 | as_ln_s='cp -p' |
b4e70030 JB |
29059 | else |
29060 | as_ln_s='ln -s' | |
29061 | fi | |
bec39cab AC |
29062 | elif ln conf$$.file conf$$ 2>/dev/null; then |
29063 | as_ln_s=ln | |
29064 | else | |
29065 | as_ln_s='cp -p' | |
29066 | fi | |
b4e70030 | 29067 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
29068 | |
29069 | if mkdir -p . 2>/dev/null; then | |
29070 | as_mkdir_p=: | |
29071 | else | |
29072 | test -d ./-p && rmdir ./-p | |
29073 | as_mkdir_p=false | |
29074 | fi | |
29075 | ||
b4e70030 | 29076 | as_executable_p="test -f" |
bec39cab AC |
29077 | |
29078 | # Sed expression to map a string onto a valid CPP name. | |
29079 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
29080 | ||
29081 | # Sed expression to map a string onto a valid variable name. | |
29082 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
29083 | ||
29084 | ||
b4e70030 JB |
29085 | # IFS |
29086 | # We need space, tab and new line, in precisely that order. | |
29087 | as_nl=' | |
29088 | ' | |
29089 | IFS=" $as_nl" | |
29090 | ||
29091 | # CDPATH. | |
29092 | $as_unset CDPATH | |
29093 | ||
bec39cab AC |
29094 | exec 6>&1 |
29095 | ||
b4e70030 | 29096 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 29097 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
29098 | # values after options handling. Logging --version etc. is OK. |
29099 | exec 5>>config.log | |
29100 | { | |
29101 | echo | |
29102 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
29103 | ## Running $as_me. ## | |
29104 | _ASBOX | |
29105 | } >&5 | |
29106 | cat >&5 <<_CSEOF | |
29107 | ||
bec39cab | 29108 | This file was extended by $as_me, which was |
b4e70030 | 29109 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
29110 | |
29111 | CONFIG_FILES = $CONFIG_FILES | |
29112 | CONFIG_HEADERS = $CONFIG_HEADERS | |
29113 | CONFIG_LINKS = $CONFIG_LINKS | |
29114 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
29115 | $ $0 $@ | |
29116 | ||
b4e70030 JB |
29117 | _CSEOF |
29118 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
29119 | echo >&5 | |
bec39cab AC |
29120 | _ACEOF |
29121 | ||
29122 | # Files that config.status was made for. | |
b4e70030 JB |
29123 | if test -n "$ac_config_files"; then |
29124 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
29125 | fi | |
234b45d4 | 29126 | |
b4e70030 JB |
29127 | if test -n "$ac_config_headers"; then |
29128 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
29129 | fi | |
29130 | ||
29131 | if test -n "$ac_config_links"; then | |
29132 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
29133 | fi | |
29134 | ||
29135 | if test -n "$ac_config_commands"; then | |
29136 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
29137 | fi | |
234b45d4 | 29138 | |
bec39cab | 29139 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 29140 | |
bec39cab AC |
29141 | ac_cs_usage="\ |
29142 | \`$as_me' instantiates files from templates according to the | |
29143 | current configuration. | |
234b45d4 | 29144 | |
bec39cab | 29145 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 29146 | |
bec39cab AC |
29147 | -h, --help print this help, then exit |
29148 | -V, --version print version number, then exit | |
29149 | -q, --quiet do not print progress messages | |
29150 | -d, --debug don't remove temporary files | |
29151 | --recheck update $as_me by reconfiguring in the same conditions | |
29152 | --file=FILE[:TEMPLATE] | |
29153 | instantiate the configuration file FILE | |
29154 | --header=FILE[:TEMPLATE] | |
29155 | instantiate the configuration header FILE | |
234b45d4 | 29156 | |
bec39cab AC |
29157 | Configuration files: |
29158 | $config_files | |
234b45d4 | 29159 | |
bec39cab AC |
29160 | Configuration headers: |
29161 | $config_headers | |
234b45d4 | 29162 | |
bec39cab AC |
29163 | Configuration links: |
29164 | $config_links | |
234b45d4 | 29165 | |
bec39cab AC |
29166 | Configuration commands: |
29167 | $config_commands | |
29168 | ||
29169 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 29170 | _ACEOF |
b4e70030 | 29171 | |
bec39cab AC |
29172 | cat >>$CONFIG_STATUS <<_ACEOF |
29173 | ac_cs_version="\\ | |
29174 | config.status | |
b4e70030 | 29175 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
29176 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
29177 | ||
b4e70030 | 29178 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
29179 | This config.status script is free software; the Free Software Foundation |
29180 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
29181 | srcdir=$srcdir |
29182 | INSTALL="$INSTALL" | |
bec39cab AC |
29183 | _ACEOF |
29184 | ||
29185 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29186 | # If no file are specified by the user, then we need to provide default | |
29187 | # value. By we need to know if files were specified by the user. | |
29188 | ac_need_defaults=: | |
29189 | while test $# != 0 | |
29190 | do | |
29191 | case $1 in | |
29192 | --*=*) | |
b4e70030 JB |
29193 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
29194 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 29195 | ac_shift=: |
c906108c | 29196 | ;; |
b4e70030 | 29197 | -*) |
bec39cab AC |
29198 | ac_option=$1 |
29199 | ac_optarg=$2 | |
29200 | ac_shift=shift | |
c906108c | 29201 | ;; |
b4e70030 JB |
29202 | *) # This is not an option, so the user has probably given explicit |
29203 | # arguments. | |
29204 | ac_option=$1 | |
29205 | ac_need_defaults=false;; | |
bec39cab | 29206 | esac |
c906108c | 29207 | |
bec39cab AC |
29208 | case $ac_option in |
29209 | # Handling of the options. | |
b4e70030 JB |
29210 | _ACEOF |
29211 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
29212 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
29213 | ac_cs_recheck=: ;; | |
b4e70030 JB |
29214 | --version | --vers* | -V ) |
29215 | echo "$ac_cs_version"; exit 0 ;; | |
29216 | --he | --h) | |
29217 | # Conflict between --help and --header | |
29218 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
29219 | Try \`$0 --help' for more information." >&5 | |
29220 | echo "$as_me: error: ambiguous option: $1 | |
29221 | Try \`$0 --help' for more information." >&2;} | |
29222 | { (exit 1); exit 1; }; };; | |
29223 | --help | --hel | -h ) | |
29224 | echo "$ac_cs_usage"; exit 0 ;; | |
29225 | --debug | --d* | -d ) | |
bec39cab AC |
29226 | debug=: ;; |
29227 | --file | --fil | --fi | --f ) | |
29228 | $ac_shift | |
29229 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
29230 | ac_need_defaults=false;; | |
29231 | --header | --heade | --head | --hea ) | |
29232 | $ac_shift | |
29233 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
29234 | ac_need_defaults=false;; | |
29235 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
29236 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
29237 | ac_cs_silent=: ;; | |
c906108c | 29238 | |
bec39cab | 29239 | # This is an error. |
b4e70030 JB |
29240 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
29241 | Try \`$0 --help' for more information." >&5 | |
29242 | echo "$as_me: error: unrecognized option: $1 | |
29243 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 29244 | { (exit 1); exit 1; }; } ;; |
c906108c | 29245 | |
b4e70030 | 29246 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 29247 | |
bec39cab AC |
29248 | esac |
29249 | shift | |
29250 | done | |
c906108c | 29251 | |
bec39cab | 29252 | ac_configure_extra_args= |
c906108c | 29253 | |
bec39cab AC |
29254 | if $ac_cs_silent; then |
29255 | exec 6>/dev/null | |
29256 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
29257 | fi | |
c906108c | 29258 | |
bec39cab AC |
29259 | _ACEOF |
29260 | cat >>$CONFIG_STATUS <<_ACEOF | |
29261 | if \$ac_cs_recheck; then | |
b4e70030 JB |
29262 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
29263 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
29264 | fi |
29265 | ||
29266 | _ACEOF | |
29267 | ||
29268 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 29269 | # |
b4e70030 | 29270 | # INIT-COMMANDS section. |
c906108c | 29271 | # |
c906108c | 29272 | |
e28b3332 | 29273 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
b4e70030 | 29274 | |
4e8d927d DJ |
29275 | GCC="$GCC" |
29276 | CC="$CC" | |
29277 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
29278 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
29279 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
29280 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
29281 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
29282 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
29283 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
29284 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
29285 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
29286 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
29287 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
29288 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
29289 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
29290 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
29291 | ||
bec39cab AC |
29292 | |
29293 | gdb_host_cpu=$gdb_host_cpu | |
bec39cab AC |
29294 | nativefile=$nativefile |
29295 | ||
29296 | ||
29297 | _ACEOF | |
29298 | ||
4e8d927d | 29299 | |
b4e70030 JB |
29300 | |
29301 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 29302 | for ac_config_target in $ac_config_targets |
c906108c | 29303 | do |
b4e70030 JB |
29304 | case "$ac_config_target" in |
29305 | # Handling of arguments. | |
29306 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
29307 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
e28b3332 | 29308 | "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; |
b4e70030 | 29309 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
e28b3332 | 29310 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
b4e70030 JB |
29311 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; |
29312 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
29313 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
29314 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
29315 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
29316 | { (exit 1); exit 1; }; };; | |
c906108c SS |
29317 | esac |
29318 | done | |
29319 | ||
bec39cab AC |
29320 | # If the user did not use the arguments to specify the items to instantiate, |
29321 | # then the envvar interface is used. Set only those that are not. | |
29322 | # We use the long form for the default assignment because of an extremely | |
29323 | # bizarre bug on SunOS 4.1.3. | |
29324 | if $ac_need_defaults; then | |
29325 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
29326 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
29327 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
29328 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
29329 | fi | |
29330 | ||
b4e70030 JB |
29331 | # Have a temporary directory for convenience. Make it in the build tree |
29332 | # simply because there is no reason to put it here, and in addition, | |
29333 | # creating and moving files from /tmp can sometimes cause problems. | |
29334 | # Create a temporary directory, and hook for its removal unless debugging. | |
29335 | $debug || | |
29336 | { | |
29337 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
29338 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
29339 | } | |
4e8d927d | 29340 | |
b4e70030 | 29341 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 29342 | |
b4e70030 JB |
29343 | { |
29344 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
29345 | test -n "$tmp" && test -d "$tmp" | |
29346 | } || | |
29347 | { | |
29348 | tmp=./confstat$$-$RANDOM | |
29349 | (umask 077 && mkdir $tmp) | |
29350 | } || | |
29351 | { | |
29352 | echo "$me: cannot create a temporary directory in ." >&2 | |
29353 | { (exit 1); exit 1; } | |
29354 | } | |
4e8d927d | 29355 | |
b4e70030 | 29356 | _ACEOF |
4e8d927d | 29357 | |
b4e70030 | 29358 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 29359 | |
b4e70030 JB |
29360 | # |
29361 | # CONFIG_FILES section. | |
29362 | # | |
4e8d927d | 29363 | |
b4e70030 JB |
29364 | # No need to generate the scripts if there are no CONFIG_FILES. |
29365 | # This happens for instance when ./config.status config.h | |
29366 | if test -n "\$CONFIG_FILES"; then | |
29367 | # Protect against being on the right side of a sed subst in config.status. | |
29368 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
29369 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
29370 | s,@SHELL@,$SHELL,;t t | |
29371 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
29372 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
29373 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
29374 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
29375 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
29376 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
29377 | s,@exec_prefix@,$exec_prefix,;t t | |
29378 | s,@prefix@,$prefix,;t t | |
29379 | s,@program_transform_name@,$program_transform_name,;t t | |
29380 | s,@bindir@,$bindir,;t t | |
29381 | s,@sbindir@,$sbindir,;t t | |
29382 | s,@libexecdir@,$libexecdir,;t t | |
29383 | s,@datadir@,$datadir,;t t | |
29384 | s,@sysconfdir@,$sysconfdir,;t t | |
29385 | s,@sharedstatedir@,$sharedstatedir,;t t | |
29386 | s,@localstatedir@,$localstatedir,;t t | |
29387 | s,@libdir@,$libdir,;t t | |
29388 | s,@includedir@,$includedir,;t t | |
29389 | s,@oldincludedir@,$oldincludedir,;t t | |
29390 | s,@infodir@,$infodir,;t t | |
29391 | s,@mandir@,$mandir,;t t | |
29392 | s,@build_alias@,$build_alias,;t t | |
29393 | s,@host_alias@,$host_alias,;t t | |
29394 | s,@target_alias@,$target_alias,;t t | |
29395 | s,@DEFS@,$DEFS,;t t | |
29396 | s,@ECHO_C@,$ECHO_C,;t t | |
29397 | s,@ECHO_N@,$ECHO_N,;t t | |
29398 | s,@ECHO_T@,$ECHO_T,;t t | |
29399 | s,@LIBS@,$LIBS,;t t | |
29400 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
29401 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
29402 | s,@MAINT@,$MAINT,;t t | |
29403 | s,@CC@,$CC,;t t | |
29404 | s,@CFLAGS@,$CFLAGS,;t t | |
29405 | s,@LDFLAGS@,$LDFLAGS,;t t | |
29406 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
29407 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
29408 | s,@EXEEXT@,$EXEEXT,;t t | |
29409 | s,@OBJEXT@,$OBJEXT,;t t | |
29410 | s,@CPP@,$CPP,;t t | |
29411 | s,@EGREP@,$EGREP,;t t | |
783e057b DJ |
29412 | s,@RANLIB@,$RANLIB,;t t |
29413 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
29414 | s,@build@,$build,;t t |
29415 | s,@build_cpu@,$build_cpu,;t t | |
29416 | s,@build_vendor@,$build_vendor,;t t | |
29417 | s,@build_os@,$build_os,;t t | |
29418 | s,@host@,$host,;t t | |
29419 | s,@host_cpu@,$host_cpu,;t t | |
29420 | s,@host_vendor@,$host_vendor,;t t | |
29421 | s,@host_os@,$host_os,;t t | |
29422 | s,@target@,$target,;t t | |
29423 | s,@target_cpu@,$target_cpu,;t t | |
29424 | s,@target_vendor@,$target_vendor,;t t | |
29425 | s,@target_os@,$target_os,;t t | |
b4e70030 | 29426 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
29427 | s,@LIBINTL@,$LIBINTL,;t t |
29428 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
29429 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 29430 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
29431 | s,@GMSGFMT@,$GMSGFMT,;t t |
29432 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 29433 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 29434 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 29435 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
29436 | s,@GENCAT@,$GENCAT,;t t |
29437 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 | 29438 | s,@localedir@,$localedir,;t t |
783e057b DJ |
29439 | s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t |
29440 | s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t | |
29441 | s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t | |
29442 | s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t | |
29443 | s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t | |
29444 | s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t | |
29445 | s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t | |
29446 | s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t | |
29447 | s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t | |
29448 | s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t | |
29449 | s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t | |
29450 | s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t | |
29451 | s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t | |
29452 | s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t | |
29453 | s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t | |
29454 | s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t | |
29455 | s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t | |
29456 | s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t | |
29457 | s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t | |
29458 | s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t | |
29459 | s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t | |
29460 | s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t | |
29461 | s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t | |
29462 | s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t | |
29463 | s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t | |
29464 | s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t | |
29465 | s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t | |
29466 | s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t | |
29467 | s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t | |
29468 | s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t | |
29469 | s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t | |
29470 | s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t | |
29471 | s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t | |
29472 | s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t | |
29473 | s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t | |
29474 | s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t | |
29475 | s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t | |
29476 | s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t | |
29477 | s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t | |
29478 | s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t | |
29479 | s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t | |
29480 | s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t | |
29481 | s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t | |
29482 | s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t | |
29483 | s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t | |
29484 | s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t | |
29485 | s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t | |
29486 | s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t | |
29487 | s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t | |
29488 | s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t | |
29489 | s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t | |
29490 | s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t | |
29491 | s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t | |
29492 | s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t | |
29493 | s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t | |
29494 | s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t | |
29495 | s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t | |
29496 | s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t | |
29497 | s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t | |
29498 | s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t | |
29499 | s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t | |
29500 | s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t | |
29501 | s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t | |
29502 | s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t | |
29503 | s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t | |
29504 | s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t | |
29505 | s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t | |
29506 | s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t | |
29507 | s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t | |
29508 | s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t | |
29509 | s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t | |
29510 | s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t | |
29511 | s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t | |
29512 | s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t | |
29513 | s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t | |
29514 | s,@STDINT_H@,$STDINT_H,;t t | |
29515 | s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t | |
29516 | s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t | |
29517 | s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t | |
29518 | s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t | |
29519 | s,@WCHAR_H@,$WCHAR_H,;t t | |
29520 | s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t | |
29521 | s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t | |
29522 | s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t | |
29523 | s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t | |
b4e70030 | 29524 | s,@PACKAGE@,$PACKAGE,;t t |
b4e70030 JB |
29525 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
29526 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
29527 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
e28b3332 DJ |
29528 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
29529 | s,@VERSION@,$VERSION,;t t | |
29530 | s,@ACLOCAL@,$ACLOCAL,;t t | |
29531 | s,@AUTOCONF@,$AUTOCONF,;t t | |
29532 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
29533 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
29534 | s,@MAKEINFO@,$MAKEINFO,;t t | |
29535 | s,@install_sh@,$install_sh,;t t | |
29536 | s,@STRIP@,$STRIP,;t t | |
29537 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
29538 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
29539 | s,@mkdir_p@,$mkdir_p,;t t | |
29540 | s,@AWK@,$AWK,;t t | |
29541 | s,@SET_MAKE@,$SET_MAKE,;t t | |
29542 | s,@am__leading_dot@,$am__leading_dot,;t t | |
29543 | s,@AMTAR@,$AMTAR,;t t | |
29544 | s,@am__tar@,$am__tar,;t t | |
29545 | s,@am__untar@,$am__untar,;t t | |
29546 | s,@DEPDIR@,$DEPDIR,;t t | |
29547 | s,@am__include@,$am__include,;t t | |
29548 | s,@am__quote@,$am__quote,;t t | |
29549 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
29550 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
29551 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
29552 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
29553 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
29554 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
29555 | s,@subdirs@,$subdirs,;t t | |
29556 | s,@TARGET_OBS@,$TARGET_OBS,;t t | |
b4e70030 JB |
29557 | s,@LN_S@,$LN_S,;t t |
29558 | s,@YACC@,$YACC,;t t | |
29559 | s,@AR@,$AR,;t t | |
29560 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
29561 | s,@DLLTOOL@,$DLLTOOL,;t t | |
29562 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
29563 | s,@WINDRES@,$WINDRES,;t t | |
29564 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
29565 | s,@MIG@,$MIG,;t t | |
29566 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
29567 | s,@READLINE@,$READLINE,;t t |
29568 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
29569 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
29570 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
29571 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
29572 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 29573 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
29574 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
29575 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
29576 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
29577 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
29578 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
29579 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
29580 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
29581 | s,@LIBGUI@,$LIBGUI,;t t | |
29582 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
29583 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
29584 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
29585 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
29586 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
29587 | s,@TCL_CC@,$TCL_CC,;t t | |
29588 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
29589 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
29590 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
29591 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
29592 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
29593 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
29594 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
29595 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
29596 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
29597 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
29598 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
29599 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
29600 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
29601 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
29602 | s,@TK_VERSION@,$TK_VERSION,;t t | |
29603 | s,@TK_DEFS@,$TK_DEFS,;t t | |
29604 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
29605 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
29606 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
29607 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
29608 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
29609 | s,@TCLHDIR@,$TCLHDIR,;t t | |
29610 | s,@TKHDIR@,$TKHDIR,;t t | |
29611 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
29612 | s,@ITKHDIR@,$ITKHDIR,;t t | |
29613 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
29614 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
29615 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
29616 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
29617 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
29618 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
29619 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
29620 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
29621 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
29622 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
29623 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
29624 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
29625 | s,@X_LIBS@,$X_LIBS,;t t | |
29626 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
29627 | s,@TK_DEPS@,$TK_DEPS,;t t | |
29628 | s,@ITCLLIB@,$ITCLLIB,;t t | |
29629 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
29630 | s,@ITKLIB@,$ITKLIB,;t t | |
29631 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
29632 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
29633 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
29634 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
9b624dbe UW |
29635 | s,@SIM@,$SIM,;t t |
29636 | s,@SIM_OBS@,$SIM_OBS,;t t | |
b4e70030 JB |
29637 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
29638 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
29639 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
29640 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
29641 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
29642 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
29643 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
29644 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
29645 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
29646 | s,@target_subdir@,$target_subdir,;t t | |
29647 | s,@frags@,$frags,;t t | |
b4e70030 JB |
29648 | s,@nm_h@,$nm_h,;t t |
29649 | s,@LIBICONV@,$LIBICONV,;t t | |
29650 | s,@LIBOBJS@,$LIBOBJS,;t t | |
29651 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
783e057b DJ |
29652 | s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t |
29653 | s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t | |
29654 | s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t | |
29655 | s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t | |
b4e70030 JB |
29656 | /@host_makefile_frag@/r $host_makefile_frag |
29657 | s,@host_makefile_frag@,,;t t | |
b4e70030 JB |
29658 | CEOF |
29659 | ||
29660 | _ACEOF | |
29661 | ||
29662 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29663 | # Split the substitutions into bite-sized pieces for seds with | |
29664 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
29665 | ac_max_sed_lines=48 | |
29666 | ac_sed_frag=1 # Number of current file. | |
29667 | ac_beg=1 # First line for current file. | |
29668 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
29669 | ac_more_lines=: | |
29670 | ac_sed_cmds= | |
29671 | while $ac_more_lines; do | |
29672 | if test $ac_beg -gt 1; then | |
29673 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
29674 | else | |
29675 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 29676 | fi |
b4e70030 JB |
29677 | if test ! -s $tmp/subs.frag; then |
29678 | ac_more_lines=false | |
29679 | else | |
29680 | # The purpose of the label and of the branching condition is to | |
29681 | # speed up the sed processing (if there are no `@' at all, there | |
29682 | # is no need to browse any of the substitutions). | |
29683 | # These are the two extra sed commands mentioned above. | |
29684 | (echo ':t | |
29685 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
29686 | if test -z "$ac_sed_cmds"; then | |
29687 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
29688 | else | |
29689 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
29690 | fi | |
29691 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
29692 | ac_beg=$ac_end | |
29693 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
29694 | fi | |
29695 | done | |
29696 | if test -z "$ac_sed_cmds"; then | |
29697 | ac_sed_cmds=cat | |
29698 | fi | |
29699 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 29700 | |
b4e70030 JB |
29701 | _ACEOF |
29702 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29703 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
29704 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
29705 | case $ac_file in | |
29706 | - | *:- | *:-:* ) # input from stdin | |
29707 | cat >$tmp/stdin | |
29708 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
29709 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
29710 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
29711 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
29712 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
29713 | esac |
29714 | ||
b4e70030 JB |
29715 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
29716 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
29717 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29718 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
29719 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
29720 | X"$ac_file" : 'X\(/\)' \| \ |
29721 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 29722 | echo X"$ac_file" | |
b4e70030 JB |
29723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
29724 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
29725 | /^X\(\/\/\)$/{ s//\1/; q; } | |
29726 | /^X\(\/\).*/{ s//\1/; q; } | |
29727 | s/.*/./; q'` | |
29728 | { if $as_mkdir_p; then | |
29729 | mkdir -p "$ac_dir" | |
29730 | else | |
29731 | as_dir="$ac_dir" | |
bec39cab | 29732 | as_dirs= |
b4e70030 JB |
29733 | while test ! -d "$as_dir"; do |
29734 | as_dirs="$as_dir $as_dirs" | |
29735 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
29736 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29737 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
29738 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
29739 | X"$as_dir" : 'X\(/\)' \| \ |
29740 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 29741 | echo X"$as_dir" | |
b4e70030 JB |
29742 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
29743 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
29744 | /^X\(\/\/\)$/{ s//\1/; q; } | |
29745 | /^X\(\/\).*/{ s//\1/; q; } | |
29746 | s/.*/./; q'` | |
bec39cab | 29747 | done |
b4e70030 JB |
29748 | test ! -n "$as_dirs" || mkdir $as_dirs |
29749 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
29750 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 29751 | { (exit 1); exit 1; }; }; } |
b4e70030 | 29752 | |
bec39cab AC |
29753 | ac_builddir=. |
29754 | ||
b4e70030 | 29755 | if test "$ac_dir" != .; then |
bec39cab | 29756 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
29757 | # A "../" for each directory in $ac_dir_suffix. |
29758 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
29759 | else | |
29760 | ac_dir_suffix= ac_top_builddir= | |
29761 | fi | |
bec39cab AC |
29762 | |
29763 | case $srcdir in | |
b4e70030 | 29764 | .) # No --srcdir option. We are building in place. |
bec39cab | 29765 | ac_srcdir=. |
b4e70030 JB |
29766 | if test -z "$ac_top_builddir"; then |
29767 | ac_top_srcdir=. | |
29768 | else | |
29769 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
29770 | fi ;; | |
29771 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 29772 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
29773 | ac_top_srcdir=$srcdir ;; |
29774 | *) # Relative path. | |
29775 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
29776 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
29777 | esac |
29778 | ||
b4e70030 JB |
29779 | # Do not use `cd foo && pwd` to compute absolute paths, because |
29780 | # the directories may not exist. | |
29781 | case `pwd` in | |
29782 | .) ac_abs_builddir="$ac_dir";; | |
29783 | *) | |
29784 | case "$ac_dir" in | |
29785 | .) ac_abs_builddir=`pwd`;; | |
29786 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
29787 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
29788 | esac;; | |
29789 | esac | |
29790 | case $ac_abs_builddir in | |
29791 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
29792 | *) | |
29793 | case ${ac_top_builddir}. in | |
29794 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
29795 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
29796 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
29797 | esac;; | |
29798 | esac | |
29799 | case $ac_abs_builddir in | |
29800 | .) ac_abs_srcdir=$ac_srcdir;; | |
29801 | *) | |
29802 | case $ac_srcdir in | |
29803 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
29804 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
29805 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
29806 | esac;; | |
29807 | esac | |
29808 | case $ac_abs_builddir in | |
29809 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
29810 | *) | |
29811 | case $ac_top_srcdir in | |
29812 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
29813 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
29814 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
29815 | esac;; | |
29816 | esac | |
c906108c | 29817 | |
c906108c | 29818 | |
bec39cab AC |
29819 | case $INSTALL in |
29820 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 29821 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 29822 | esac |
121ce6e5 | 29823 | |
b4e70030 JB |
29824 | if test x"$ac_file" != x-; then |
29825 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
29826 | echo "$as_me: creating $ac_file" >&6;} | |
29827 | rm -f "$ac_file" | |
29828 | fi | |
29829 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
29830 | # use $as_me), people would be surprised to read: | |
29831 | # /* config.h. Generated by config.status. */ | |
29832 | if test x"$ac_file" = x-; then | |
29833 | configure_input= | |
29834 | else | |
29835 | configure_input="$ac_file. " | |
29836 | fi | |
29837 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
29838 | sed 's,.*/,,'` by configure." | |
29839 | ||
29840 | # First look for the input files in the build tree, otherwise in the | |
29841 | # src tree. | |
29842 | ac_file_inputs=`IFS=: | |
29843 | for f in $ac_file_in; do | |
29844 | case $f in | |
29845 | -) echo $tmp/stdin ;; | |
29846 | [\\/$]*) | |
29847 | # Absolute (can't be DOS-style, as IFS=:) | |
29848 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
29849 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
29850 | { (exit 1); exit 1; }; } | |
29851 | echo "$f";; | |
29852 | *) # Relative | |
29853 | if test -f "$f"; then | |
29854 | # Build tree | |
29855 | echo "$f" | |
29856 | elif test -f "$srcdir/$f"; then | |
29857 | # Source tree | |
29858 | echo "$srcdir/$f" | |
29859 | else | |
29860 | # /dev/null tree | |
29861 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
29862 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
29863 | { (exit 1); exit 1; }; } | |
29864 | fi;; | |
29865 | esac | |
29866 | done` || { (exit 1); exit 1; } | |
4e8d927d | 29867 | _ACEOF |
bec39cab AC |
29868 | cat >>$CONFIG_STATUS <<_ACEOF |
29869 | sed "$ac_vpsub | |
29870 | $extrasub | |
29871 | _ACEOF | |
29872 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29873 | :t | |
29874 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
29875 | s,@configure_input@,$configure_input,;t t |
29876 | s,@srcdir@,$ac_srcdir,;t t | |
29877 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
29878 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
29879 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
29880 | s,@builddir@,$ac_builddir,;t t | |
29881 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
29882 | s,@top_builddir@,$ac_top_builddir,;t t | |
29883 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
29884 | s,@INSTALL@,$ac_INSTALL,;t t | |
29885 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
29886 | rm -f $tmp/stdin | |
29887 | if test x"$ac_file" != x-; then | |
29888 | mv $tmp/out $ac_file | |
29889 | else | |
29890 | cat $tmp/out | |
29891 | rm -f $tmp/out | |
29892 | fi | |
29893 | ||
29894 | done | |
29895 | _ACEOF | |
29896 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29897 | ||
29898 | # | |
29899 | # CONFIG_HEADER section. | |
29900 | # | |
29901 | ||
29902 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
29903 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
29904 | # | |
29905 | # ac_d sets the value in "#define NAME VALUE" lines. | |
29906 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
29907 | ac_dB='[ ].*$,\1#\2' | |
29908 | ac_dC=' ' | |
29909 | ac_dD=',;t' | |
29910 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
29911 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
29912 | ac_uB='$,\1#\2define\3' | |
29913 | ac_uC=' ' | |
29914 | ac_uD=',;t' | |
29915 | ||
29916 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
29917 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 29918 | case $ac_file in |
b4e70030 JB |
29919 | - | *:- | *:-:* ) # input from stdin |
29920 | cat >$tmp/stdin | |
29921 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
29922 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
29923 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
29924 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
29925 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 29926 | esac |
b4e70030 JB |
29927 | |
29928 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
29929 | echo "$as_me: creating $ac_file" >&6;} | |
29930 | ||
29931 | # First look for the input files in the build tree, otherwise in the | |
29932 | # src tree. | |
29933 | ac_file_inputs=`IFS=: | |
29934 | for f in $ac_file_in; do | |
29935 | case $f in | |
29936 | -) echo $tmp/stdin ;; | |
29937 | [\\/$]*) | |
29938 | # Absolute (can't be DOS-style, as IFS=:) | |
29939 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
29940 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
29941 | { (exit 1); exit 1; }; } | |
29942 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
29943 | echo "$f";; | |
29944 | *) # Relative | |
29945 | if test -f "$f"; then | |
29946 | # Build tree | |
29947 | echo "$f" | |
29948 | elif test -f "$srcdir/$f"; then | |
29949 | # Source tree | |
29950 | echo "$srcdir/$f" | |
29951 | else | |
29952 | # /dev/null tree | |
29953 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
29954 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
29955 | { (exit 1); exit 1; }; } | |
29956 | fi;; | |
29957 | esac | |
29958 | done` || { (exit 1); exit 1; } | |
29959 | # Remove the trailing spaces. | |
29960 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
29961 | ||
29962 | _ACEOF | |
29963 | ||
29964 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
29965 | # `conftest.undefs', that substitutes the proper values into | |
29966 | # config.h.in to produce config.h. The first handles `#define' | |
29967 | # templates, and the second `#undef' templates. | |
29968 | # And first: Protect against being on the right side of a sed subst in | |
29969 | # config.status. Protect against being in an unquoted here document | |
29970 | # in config.status. | |
29971 | rm -f conftest.defines conftest.undefs | |
29972 | # Using a here document instead of a string reduces the quoting nightmare. | |
29973 | # Putting comments in sed scripts is not portable. | |
29974 | # | |
29975 | # `end' is used to avoid that the second main sed command (meant for | |
29976 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
29977 | # See the Autoconf documentation for `clear'. | |
29978 | cat >confdef2sed.sed <<\_ACEOF | |
29979 | s/[\\&,]/\\&/g | |
29980 | s,[\\$`],\\&,g | |
29981 | t clear | |
29982 | : clear | |
29983 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
29984 | t end | |
29985 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
29986 | : end | |
29987 | _ACEOF | |
29988 | # If some macros were called several times there might be several times | |
29989 | # the same #defines, which is useless. Nevertheless, we may not want to | |
29990 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
29991 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
29992 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
29993 | rm -f confdef2sed.sed | |
29994 | ||
29995 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
29996 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
29997 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
29998 | cat >>conftest.undefs <<\_ACEOF |
29999 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
30000 | _ACEOF | |
30001 | ||
30002 | # Break up conftest.defines because some shells have a limit on the size | |
30003 | # of here documents, and old seds have small limits too (100 cmds). | |
30004 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
30005 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
30006 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
30007 | echo ' :' >>$CONFIG_STATUS | |
30008 | rm -f conftest.tail | |
30009 | while grep . conftest.defines >/dev/null | |
bec39cab | 30010 | do |
b4e70030 JB |
30011 | # Write a limited-size here document to $tmp/defines.sed. |
30012 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
30013 | # Speed up: don't consider the non `#define' lines. | |
30014 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
30015 | # Work around the forget-to-reset-the-flag bug. | |
30016 | echo 't clr' >>$CONFIG_STATUS | |
30017 | echo ': clr' >>$CONFIG_STATUS | |
30018 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 30019 | echo 'CEOF |
b4e70030 JB |
30020 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
30021 | rm -f $tmp/in | |
30022 | mv $tmp/out $tmp/in | |
30023 | ' >>$CONFIG_STATUS | |
30024 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
30025 | rm -f conftest.defines |
30026 | mv conftest.tail conftest.defines | |
30027 | done | |
b4e70030 JB |
30028 | rm -f conftest.defines |
30029 | echo ' fi # grep' >>$CONFIG_STATUS | |
30030 | echo >>$CONFIG_STATUS | |
30031 | ||
30032 | # Break up conftest.undefs because some shells have a limit on the size | |
30033 | # of here documents, and old seds have small limits too (100 cmds). | |
30034 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
30035 | rm -f conftest.tail | |
30036 | while grep . conftest.undefs >/dev/null | |
30037 | do | |
30038 | # Write a limited-size here document to $tmp/undefs.sed. | |
30039 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
30040 | # Speed up: don't consider the non `#undef' | |
30041 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
30042 | # Work around the forget-to-reset-the-flag bug. | |
30043 | echo 't clr' >>$CONFIG_STATUS | |
30044 | echo ': clr' >>$CONFIG_STATUS | |
30045 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
30046 | echo 'CEOF | |
30047 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
30048 | rm -f $tmp/in | |
30049 | mv $tmp/out $tmp/in | |
30050 | ' >>$CONFIG_STATUS | |
30051 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
30052 | rm -f conftest.undefs | |
30053 | mv conftest.tail conftest.undefs | |
30054 | done | |
30055 | rm -f conftest.undefs | |
bec39cab AC |
30056 | |
30057 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
30058 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
30059 | # use $as_me), people would be surprised to read: | |
30060 | # /* config.h. Generated by config.status. */ | |
30061 | if test x"$ac_file" = x-; then | |
30062 | echo "/* Generated by configure. */" >$tmp/config.h | |
30063 | else | |
30064 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
30065 | fi | |
30066 | cat $tmp/in >>$tmp/config.h | |
30067 | rm -f $tmp/in | |
bec39cab | 30068 | if test x"$ac_file" != x-; then |
b4e70030 | 30069 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
30070 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
30071 | echo "$as_me: $ac_file is unchanged" >&6;} | |
30072 | else | |
b4e70030 JB |
30073 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
30074 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30075 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
30076 | X"$ac_file" : 'X\(//\)$' \| \ | |
30077 | X"$ac_file" : 'X\(/\)' \| \ | |
30078 | . : '\(.\)' 2>/dev/null || | |
30079 | echo X"$ac_file" | | |
30080 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30081 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30082 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30083 | /^X\(\/\).*/{ s//\1/; q; } | |
30084 | s/.*/./; q'` | |
30085 | { if $as_mkdir_p; then | |
30086 | mkdir -p "$ac_dir" | |
30087 | else | |
30088 | as_dir="$ac_dir" | |
30089 | as_dirs= | |
30090 | while test ! -d "$as_dir"; do | |
30091 | as_dirs="$as_dir $as_dirs" | |
30092 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
30093 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30094 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30095 | X"$as_dir" : 'X\(//\)$' \| \ | |
30096 | X"$as_dir" : 'X\(/\)' \| \ | |
30097 | . : '\(.\)' 2>/dev/null || | |
30098 | echo X"$as_dir" | | |
30099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30100 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30101 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30102 | /^X\(\/\).*/{ s//\1/; q; } | |
30103 | s/.*/./; q'` | |
30104 | done | |
30105 | test ! -n "$as_dirs" || mkdir $as_dirs | |
30106 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
30107 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
30108 | { (exit 1); exit 1; }; }; } | |
30109 | ||
bec39cab | 30110 | rm -f $ac_file |
b4e70030 | 30111 | mv $tmp/config.h $ac_file |
bec39cab AC |
30112 | fi |
30113 | else | |
b4e70030 JB |
30114 | cat $tmp/config.h |
30115 | rm -f $tmp/config.h | |
bec39cab | 30116 | fi |
e28b3332 DJ |
30117 | # Compute $ac_file's index in $config_headers. |
30118 | _am_stamp_count=1 | |
30119 | for _am_header in $config_headers :; do | |
30120 | case $_am_header in | |
30121 | $ac_file | $ac_file:* ) | |
30122 | break ;; | |
30123 | * ) | |
30124 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
30125 | esac | |
30126 | done | |
30127 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
30128 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30129 | X$ac_file : 'X\(//\)[^/]' \| \ | |
30130 | X$ac_file : 'X\(//\)$' \| \ | |
30131 | X$ac_file : 'X\(/\)' \| \ | |
30132 | . : '\(.\)' 2>/dev/null || | |
30133 | echo X$ac_file | | |
30134 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30135 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30136 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30137 | /^X\(\/\).*/{ s//\1/; q; } | |
30138 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
b4e70030 JB |
30139 | done |
30140 | _ACEOF | |
30141 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30142 | ||
30143 | # | |
30144 | # CONFIG_LINKS section. | |
30145 | # | |
30146 | ||
30147 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
30148 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
30149 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 30150 | |
b4e70030 JB |
30151 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
30152 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
30153 | |
30154 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
30155 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
30156 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
30157 | { (exit 1); exit 1; }; } | |
c906108c | 30158 | fi |
b4e70030 JB |
30159 | rm -f $ac_dest |
30160 | ||
30161 | # Make relative symlinks. | |
30162 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
30163 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30164 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
30165 | X"$ac_dest" : 'X\(//\)$' \| \ | |
30166 | X"$ac_dest" : 'X\(/\)' \| \ | |
30167 | . : '\(.\)' 2>/dev/null || | |
30168 | echo X"$ac_dest" | | |
30169 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30170 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30171 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30172 | /^X\(\/\).*/{ s//\1/; q; } | |
30173 | s/.*/./; q'` | |
30174 | { if $as_mkdir_p; then | |
30175 | mkdir -p "$ac_dest_dir" | |
30176 | else | |
30177 | as_dir="$ac_dest_dir" | |
30178 | as_dirs= | |
30179 | while test ! -d "$as_dir"; do | |
30180 | as_dirs="$as_dir $as_dirs" | |
30181 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
30182 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30183 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30184 | X"$as_dir" : 'X\(//\)$' \| \ | |
30185 | X"$as_dir" : 'X\(/\)' \| \ | |
30186 | . : '\(.\)' 2>/dev/null || | |
30187 | echo X"$as_dir" | | |
30188 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30189 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30190 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30191 | /^X\(\/\).*/{ s//\1/; q; } | |
30192 | s/.*/./; q'` | |
30193 | done | |
30194 | test ! -n "$as_dirs" || mkdir $as_dirs | |
30195 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
30196 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
30197 | { (exit 1); exit 1; }; }; } | |
30198 | ||
30199 | ac_builddir=. | |
30200 | ||
30201 | if test "$ac_dest_dir" != .; then | |
30202 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
30203 | # A "../" for each directory in $ac_dir_suffix. | |
30204 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
30205 | else | |
30206 | ac_dir_suffix= ac_top_builddir= | |
30207 | fi | |
30208 | ||
30209 | case $srcdir in | |
30210 | .) # No --srcdir option. We are building in place. | |
30211 | ac_srcdir=. | |
30212 | if test -z "$ac_top_builddir"; then | |
30213 | ac_top_srcdir=. | |
30214 | else | |
30215 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
30216 | fi ;; | |
30217 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
30218 | ac_srcdir=$srcdir$ac_dir_suffix; | |
30219 | ac_top_srcdir=$srcdir ;; | |
30220 | *) # Relative path. | |
30221 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
30222 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
30223 | esac | |
30224 | ||
30225 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
30226 | # the directories may not exist. | |
30227 | case `pwd` in | |
30228 | .) ac_abs_builddir="$ac_dest_dir";; | |
30229 | *) | |
30230 | case "$ac_dest_dir" in | |
30231 | .) ac_abs_builddir=`pwd`;; | |
30232 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
30233 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
30234 | esac;; | |
30235 | esac | |
30236 | case $ac_abs_builddir in | |
30237 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30238 | *) | |
30239 | case ${ac_top_builddir}. in | |
30240 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
30241 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30242 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
30243 | esac;; | |
30244 | esac | |
30245 | case $ac_abs_builddir in | |
30246 | .) ac_abs_srcdir=$ac_srcdir;; | |
30247 | *) | |
30248 | case $ac_srcdir in | |
30249 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
30250 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
30251 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
30252 | esac;; | |
30253 | esac | |
30254 | case $ac_abs_builddir in | |
30255 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30256 | *) | |
30257 | case $ac_top_srcdir in | |
30258 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
30259 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30260 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
30261 | esac;; | |
30262 | esac | |
30263 | ||
bec39cab AC |
30264 | |
30265 | case $srcdir in | |
30266 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 30267 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 30268 | esac |
b4e70030 JB |
30269 | |
30270 | # Try a symlink, then a hard link, then a copy. | |
30271 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
30272 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
30273 | cp -p $srcdir/$ac_source $ac_dest || | |
30274 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
30275 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 30276 | { (exit 1); exit 1; }; } |
b4e70030 JB |
30277 | done |
30278 | _ACEOF | |
30279 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30280 | ||
30281 | # | |
30282 | # CONFIG_COMMANDS section. | |
30283 | # | |
30284 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
30285 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
30286 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30287 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
30288 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30289 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
30290 | X"$ac_dest" : 'X\(//\)$' \| \ | |
30291 | X"$ac_dest" : 'X\(/\)' \| \ | |
30292 | . : '\(.\)' 2>/dev/null || | |
30293 | echo X"$ac_dest" | | |
30294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30295 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30296 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30297 | /^X\(\/\).*/{ s//\1/; q; } | |
30298 | s/.*/./; q'` | |
30299 | { if $as_mkdir_p; then | |
30300 | mkdir -p "$ac_dir" | |
30301 | else | |
30302 | as_dir="$ac_dir" | |
30303 | as_dirs= | |
30304 | while test ! -d "$as_dir"; do | |
30305 | as_dirs="$as_dir $as_dirs" | |
30306 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
30307 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30308 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30309 | X"$as_dir" : 'X\(//\)$' \| \ | |
30310 | X"$as_dir" : 'X\(/\)' \| \ | |
30311 | . : '\(.\)' 2>/dev/null || | |
30312 | echo X"$as_dir" | | |
30313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30314 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30315 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30316 | /^X\(\/\).*/{ s//\1/; q; } | |
30317 | s/.*/./; q'` | |
30318 | done | |
30319 | test ! -n "$as_dirs" || mkdir $as_dirs | |
30320 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
30321 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
30322 | { (exit 1); exit 1; }; }; } | |
30323 | ||
30324 | ac_builddir=. | |
30325 | ||
30326 | if test "$ac_dir" != .; then | |
30327 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
30328 | # A "../" for each directory in $ac_dir_suffix. | |
30329 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
30330 | else | |
30331 | ac_dir_suffix= ac_top_builddir= | |
30332 | fi | |
30333 | ||
30334 | case $srcdir in | |
30335 | .) # No --srcdir option. We are building in place. | |
30336 | ac_srcdir=. | |
30337 | if test -z "$ac_top_builddir"; then | |
30338 | ac_top_srcdir=. | |
30339 | else | |
30340 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
30341 | fi ;; | |
30342 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
30343 | ac_srcdir=$srcdir$ac_dir_suffix; | |
30344 | ac_top_srcdir=$srcdir ;; | |
30345 | *) # Relative path. | |
30346 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
30347 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
30348 | esac | |
30349 | ||
30350 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
30351 | # the directories may not exist. | |
30352 | case `pwd` in | |
30353 | .) ac_abs_builddir="$ac_dir";; | |
30354 | *) | |
30355 | case "$ac_dir" in | |
30356 | .) ac_abs_builddir=`pwd`;; | |
30357 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
30358 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
30359 | esac;; | |
30360 | esac | |
30361 | case $ac_abs_builddir in | |
30362 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30363 | *) | |
30364 | case ${ac_top_builddir}. in | |
30365 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
30366 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30367 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
30368 | esac;; | |
30369 | esac | |
30370 | case $ac_abs_builddir in | |
30371 | .) ac_abs_srcdir=$ac_srcdir;; | |
30372 | *) | |
30373 | case $ac_srcdir in | |
30374 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
30375 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
30376 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
30377 | esac;; | |
30378 | esac | |
30379 | case $ac_abs_builddir in | |
30380 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30381 | *) | |
30382 | case $ac_top_srcdir in | |
30383 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
30384 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30385 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
30386 | esac;; | |
30387 | esac | |
bec39cab | 30388 | |
bec39cab | 30389 | |
b4e70030 JB |
30390 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
30391 | echo "$as_me: executing $ac_dest commands" >&6;} | |
30392 | case $ac_dest in | |
e28b3332 DJ |
30393 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
30394 | # Strip MF so we end up with the name of the file. | |
30395 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
30396 | # Check whether this is an Automake generated Makefile or not. | |
30397 | # We used to match only the files named `Makefile.in', but | |
30398 | # some people rename them; so instead we look at the file content. | |
30399 | # Grep'ing the first line is not enough: some people post-process | |
30400 | # each Makefile.in and add a new line on top of each file to say so. | |
30401 | # So let's grep whole file. | |
30402 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
30403 | dirpart=`(dirname "$mf") 2>/dev/null || | |
30404 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30405 | X"$mf" : 'X\(//\)[^/]' \| \ | |
30406 | X"$mf" : 'X\(//\)$' \| \ | |
30407 | X"$mf" : 'X\(/\)' \| \ | |
30408 | . : '\(.\)' 2>/dev/null || | |
30409 | echo X"$mf" | | |
30410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30412 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30413 | /^X\(\/\).*/{ s//\1/; q; } | |
30414 | s/.*/./; q'` | |
30415 | else | |
30416 | continue | |
30417 | fi | |
30418 | # Extract the definition of DEPDIR, am__include, and am__quote | |
30419 | # from the Makefile without running `make'. | |
30420 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
30421 | test -z "$DEPDIR" && continue | |
30422 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
30423 | test -z "am__include" && continue | |
30424 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
30425 | # When using ansi2knr, U may be empty or an underscore; expand it | |
30426 | U=`sed -n 's/^U = //p' < "$mf"` | |
30427 | # Find all dependency output files, they are included files with | |
30428 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
30429 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
30430 | # expansion. | |
30431 | for file in `sed -n " | |
30432 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
30433 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
30434 | # Make sure the directory exists. | |
30435 | test -f "$dirpart/$file" && continue | |
30436 | fdir=`(dirname "$file") 2>/dev/null || | |
30437 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30438 | X"$file" : 'X\(//\)[^/]' \| \ | |
30439 | X"$file" : 'X\(//\)$' \| \ | |
30440 | X"$file" : 'X\(/\)' \| \ | |
30441 | . : '\(.\)' 2>/dev/null || | |
30442 | echo X"$file" | | |
30443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30445 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30446 | /^X\(\/\).*/{ s//\1/; q; } | |
30447 | s/.*/./; q'` | |
30448 | { if $as_mkdir_p; then | |
30449 | mkdir -p $dirpart/$fdir | |
30450 | else | |
30451 | as_dir=$dirpart/$fdir | |
30452 | as_dirs= | |
30453 | while test ! -d "$as_dir"; do | |
30454 | as_dirs="$as_dir $as_dirs" | |
30455 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
30456 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30457 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30458 | X"$as_dir" : 'X\(//\)$' \| \ | |
30459 | X"$as_dir" : 'X\(/\)' \| \ | |
30460 | . : '\(.\)' 2>/dev/null || | |
30461 | echo X"$as_dir" | | |
30462 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30463 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30464 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30465 | /^X\(\/\).*/{ s//\1/; q; } | |
30466 | s/.*/./; q'` | |
30467 | done | |
30468 | test ! -n "$as_dirs" || mkdir $as_dirs | |
30469 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
30470 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
30471 | { (exit 1); exit 1; }; }; } | |
30472 | ||
30473 | # echo "creating $dirpart/$file" | |
30474 | echo '# dummy' > "$dirpart/$file" | |
30475 | done | |
30476 | done | |
30477 | ;; | |
b4e70030 | 30478 | gdb_stdint.h ) |
4e8d927d DJ |
30479 | if test "$GCC" = yes; then |
30480 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
30481 | else | |
30482 | echo "/* generated for $CC */" > tmp-stdint.h | |
30483 | fi | |
30484 | ||
30485 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30486 | ||
30487 | #ifndef GCC_GENERATED_STDINT_H | |
30488 | #define GCC_GENERATED_STDINT_H 1 | |
30489 | ||
30490 | #include <sys/types.h> | |
30491 | EOF | |
30492 | ||
30493 | if test "$acx_cv_header_stdint" != stdint.h; then | |
30494 | echo "#include <stddef.h>" >> tmp-stdint.h | |
30495 | fi | |
30496 | if test "$acx_cv_header_stdint" != stddef.h; then | |
30497 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
30498 | fi | |
30499 | ||
30500 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30501 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
30502 | #ifdef __int8_t_defined | |
30503 | #define _INT8_T | |
30504 | #define _INT16_T | |
30505 | #define _INT32_T | |
30506 | #endif | |
30507 | #ifdef __uint32_t_defined | |
30508 | #define _UINT32_T | |
30509 | #endif | |
30510 | ||
30511 | EOF | |
30512 | ||
30513 | # ----------------- done header, emit basic int types ------------- | |
30514 | if test "$acx_cv_header_stdint" = stddef.h; then | |
30515 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30516 | ||
30517 | #ifndef _UINT8_T | |
30518 | #define _UINT8_T | |
07abfebf RS |
30519 | #ifndef __uint8_t_defined |
30520 | #define __uint8_t_defined | |
4e8d927d DJ |
30521 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
30522 | #endif | |
07abfebf | 30523 | #endif |
4e8d927d DJ |
30524 | |
30525 | #ifndef _UINT16_T | |
30526 | #define _UINT16_T | |
07abfebf RS |
30527 | #ifndef __uint16_t_defined |
30528 | #define __uint16_t_defined | |
4e8d927d DJ |
30529 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
30530 | #endif | |
07abfebf | 30531 | #endif |
4e8d927d DJ |
30532 | |
30533 | #ifndef _UINT32_T | |
30534 | #define _UINT32_T | |
07abfebf RS |
30535 | #ifndef __uint32_t_defined |
30536 | #define __uint32_t_defined | |
4e8d927d DJ |
30537 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
30538 | #endif | |
07abfebf | 30539 | #endif |
4e8d927d DJ |
30540 | |
30541 | #ifndef _INT8_T | |
30542 | #define _INT8_T | |
07abfebf RS |
30543 | #ifndef __int8_t_defined |
30544 | #define __int8_t_defined | |
4e8d927d DJ |
30545 | typedef $acx_cv_type_int8_t int8_t; |
30546 | #endif | |
07abfebf | 30547 | #endif |
4e8d927d DJ |
30548 | |
30549 | #ifndef _INT16_T | |
30550 | #define _INT16_T | |
07abfebf RS |
30551 | #ifndef __int16_t_defined |
30552 | #define __int16_t_defined | |
4e8d927d DJ |
30553 | typedef $acx_cv_type_int16_t int16_t; |
30554 | #endif | |
07abfebf | 30555 | #endif |
4e8d927d DJ |
30556 | |
30557 | #ifndef _INT32_T | |
30558 | #define _INT32_T | |
07abfebf RS |
30559 | #ifndef __int32_t_defined |
30560 | #define __int32_t_defined | |
4e8d927d DJ |
30561 | typedef $acx_cv_type_int32_t int32_t; |
30562 | #endif | |
07abfebf | 30563 | #endif |
4e8d927d DJ |
30564 | EOF |
30565 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
30566 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30567 | ||
30568 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
30569 | #ifndef _INT8_T | |
30570 | #define _INT8_T | |
30571 | #endif | |
30572 | #ifndef _INT16_T | |
30573 | #define _INT16_T | |
30574 | #endif | |
30575 | #ifndef _INT32_T | |
30576 | #define _INT32_T | |
30577 | #endif | |
30578 | ||
30579 | #ifndef _UINT8_T | |
30580 | #define _UINT8_T | |
07abfebf RS |
30581 | #ifndef __uint8_t_defined |
30582 | #define __uint8_t_defined | |
4e8d927d DJ |
30583 | typedef u_int8_t uint8_t; |
30584 | #endif | |
07abfebf | 30585 | #endif |
4e8d927d DJ |
30586 | |
30587 | #ifndef _UINT16_T | |
30588 | #define _UINT16_T | |
07abfebf RS |
30589 | #ifndef __uint16_t_defined |
30590 | #define __uint16_t_defined | |
4e8d927d DJ |
30591 | typedef u_int16_t uint16_t; |
30592 | #endif | |
07abfebf | 30593 | #endif |
4e8d927d DJ |
30594 | |
30595 | #ifndef _UINT32_T | |
30596 | #define _UINT32_T | |
07abfebf RS |
30597 | #ifndef __uint32_t_defined |
30598 | #define __uint32_t_defined | |
4e8d927d DJ |
30599 | typedef u_int32_t uint32_t; |
30600 | #endif | |
07abfebf | 30601 | #endif |
4e8d927d DJ |
30602 | EOF |
30603 | else | |
30604 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30605 | ||
30606 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
30607 | #ifndef _INT8_T | |
30608 | #define _INT8_T | |
30609 | #endif | |
30610 | #ifndef _INT16_T | |
30611 | #define _INT16_T | |
30612 | #endif | |
30613 | #ifndef _INT32_T | |
30614 | #define _INT32_T | |
30615 | #endif | |
30616 | #ifndef _UINT8_T | |
30617 | #define _UINT8_T | |
30618 | #endif | |
30619 | #ifndef _UINT16_T | |
30620 | #define _UINT16_T | |
30621 | #endif | |
30622 | #ifndef _UINT32_T | |
30623 | #define _UINT32_T | |
30624 | #endif | |
30625 | EOF | |
30626 | fi | |
30627 | ||
30628 | # ------------- done basic int types, emit int64_t types ------------ | |
30629 | if test "$ac_cv_type_uint64_t" = yes; then | |
30630 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30631 | ||
30632 | /* system headers have good uint64_t and int64_t */ | |
30633 | #ifndef _INT64_T | |
30634 | #define _INT64_T | |
30635 | #endif | |
30636 | #ifndef _UINT64_T | |
30637 | #define _UINT64_T | |
30638 | #endif | |
30639 | EOF | |
30640 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
30641 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30642 | ||
30643 | /* system headers have an u_int64_t (and int64_t) */ | |
30644 | #ifndef _INT64_T | |
30645 | #define _INT64_T | |
30646 | #endif | |
30647 | #ifndef _UINT64_T | |
30648 | #define _UINT64_T | |
07abfebf RS |
30649 | #ifndef __uint64_t_defined |
30650 | #define __uint64_t_defined | |
4e8d927d DJ |
30651 | typedef u_int64_t uint64_t; |
30652 | #endif | |
07abfebf | 30653 | #endif |
4e8d927d DJ |
30654 | EOF |
30655 | elif test -n "$acx_cv_type_int64_t"; then | |
30656 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30657 | ||
30658 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
30659 | #ifndef _INT64_T | |
30660 | #define _INT64_T | |
30661 | typedef $acx_cv_type_int64_t int64_t; | |
30662 | #endif | |
30663 | #ifndef _UINT64_T | |
30664 | #define _UINT64_T | |
07abfebf RS |
30665 | #ifndef __uint64_t_defined |
30666 | #define __uint64_t_defined | |
4e8d927d DJ |
30667 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
30668 | #endif | |
07abfebf | 30669 | #endif |
4e8d927d DJ |
30670 | EOF |
30671 | else | |
30672 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30673 | ||
30674 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
30675 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
30676 | #ifndef _INT64_T | |
30677 | #define _INT64_T | |
07abfebf | 30678 | #ifndef __int64_t_defined |
4e8d927d DJ |
30679 | typedef long long int64_t; |
30680 | #endif | |
07abfebf | 30681 | #endif |
4e8d927d DJ |
30682 | #ifndef _UINT64_T |
30683 | #define _UINT64_T | |
30684 | typedef unsigned long long uint64_t; | |
30685 | #endif | |
30686 | ||
30687 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
30688 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
30689 | does not implement __extension__. But that compiler doesn't define | |
30690 | __GNUC_MINOR__. */ | |
30691 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
30692 | # define __extension__ | |
30693 | # endif | |
30694 | ||
30695 | # ifndef _INT64_T | |
30696 | # define _INT64_T | |
30697 | __extension__ typedef long long int64_t; | |
30698 | # endif | |
30699 | # ifndef _UINT64_T | |
30700 | # define _UINT64_T | |
30701 | __extension__ typedef unsigned long long uint64_t; | |
30702 | # endif | |
30703 | ||
30704 | #elif !defined __STRICT_ANSI__ | |
30705 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
30706 | ||
30707 | # ifndef _INT64_T | |
30708 | # define _INT64_T | |
30709 | typedef __int64 int64_t; | |
30710 | # endif | |
30711 | # ifndef _UINT64_T | |
30712 | # define _UINT64_T | |
30713 | typedef unsigned __int64 uint64_t; | |
30714 | # endif | |
30715 | # endif /* compiler */ | |
30716 | ||
30717 | #endif /* ANSI version */ | |
30718 | EOF | |
30719 | fi | |
30720 | ||
30721 | # ------------- done int64_t types, emit intptr types ------------ | |
30722 | if test "$ac_cv_type_uintptr_t" != yes; then | |
30723 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30724 | ||
30725 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
07abfebf | 30726 | #ifndef __uintptr_t_defined |
4e8d927d | 30727 | typedef u$acx_cv_type_intptr_t uintptr_t; |
07abfebf RS |
30728 | #endif |
30729 | #ifndef __intptr_t_defined | |
4e8d927d | 30730 | typedef $acx_cv_type_intptr_t intptr_t; |
07abfebf | 30731 | #endif |
4e8d927d DJ |
30732 | EOF |
30733 | fi | |
30734 | ||
30735 | # ------------- done intptr types, emit int_least types ------------ | |
30736 | if test "$ac_cv_type_int_least32_t" != yes; then | |
30737 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30738 | ||
30739 | /* Define int_least types */ | |
30740 | typedef int8_t int_least8_t; | |
30741 | typedef int16_t int_least16_t; | |
30742 | typedef int32_t int_least32_t; | |
30743 | #ifdef _INT64_T | |
30744 | typedef int64_t int_least64_t; | |
30745 | #endif | |
30746 | ||
30747 | typedef uint8_t uint_least8_t; | |
30748 | typedef uint16_t uint_least16_t; | |
30749 | typedef uint32_t uint_least32_t; | |
30750 | #ifdef _UINT64_T | |
30751 | typedef uint64_t uint_least64_t; | |
30752 | #endif | |
30753 | EOF | |
30754 | fi | |
30755 | ||
30756 | # ------------- done intptr types, emit int_fast types ------------ | |
30757 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
30758 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30759 | ||
30760 | /* Define int_fast types. short is often slow */ | |
30761 | typedef int8_t int_fast8_t; | |
30762 | typedef int int_fast16_t; | |
30763 | typedef int32_t int_fast32_t; | |
30764 | #ifdef _INT64_T | |
30765 | typedef int64_t int_fast64_t; | |
30766 | #endif | |
30767 | ||
30768 | typedef uint8_t uint_fast8_t; | |
30769 | typedef unsigned int uint_fast16_t; | |
30770 | typedef uint32_t uint_fast32_t; | |
30771 | #ifdef _UINT64_T | |
30772 | typedef uint64_t uint_fast64_t; | |
30773 | #endif | |
30774 | EOF | |
30775 | fi | |
30776 | ||
30777 | if test "$ac_cv_type_uintmax_t" != yes; then | |
30778 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30779 | ||
30780 | /* Define intmax based on what we found */ | |
30781 | #ifdef _INT64_T | |
30782 | typedef int64_t intmax_t; | |
30783 | #else | |
30784 | typedef long intmax_t; | |
30785 | #endif | |
30786 | #ifdef _UINT64_T | |
30787 | typedef uint64_t uintmax_t; | |
30788 | #else | |
30789 | typedef unsigned long uintmax_t; | |
30790 | #endif | |
30791 | EOF | |
30792 | fi | |
30793 | ||
30794 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30795 | ||
30796 | #endif /* GCC_GENERATED_STDINT_H */ | |
30797 | EOF | |
30798 | ||
30799 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
30800 | rm -f tmp-stdint.h | |
30801 | else | |
30802 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
30803 | fi |
30804 | ||
4e8d927d | 30805 | ;; |
b4e70030 | 30806 | default ) |
c906108c | 30807 | |
db985757 | 30808 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
c906108c SS |
30809 | mv -f Makefile.tmp Makefile |
30810 | ||
2acceee2 | 30811 | |
c906108c SS |
30812 | case x$CONFIG_HEADERS in |
30813 | xconfig.h:config.in) | |
30814 | echo > stamp-h ;; | |
30815 | esac | |
bec39cab AC |
30816 | ;; |
30817 | esac | |
b4e70030 JB |
30818 | done |
30819 | _ACEOF | |
c906108c | 30820 | |
b4e70030 | 30821 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
30822 | |
30823 | { (exit 0); exit 0; } | |
30824 | _ACEOF | |
c906108c | 30825 | chmod +x $CONFIG_STATUS |
bec39cab AC |
30826 | ac_clean_files=$ac_clean_files_save |
30827 | ||
30828 | ||
30829 | # configure is writing to config.log, and then calls config.status. | |
30830 | # config.status does its own redirection, appending to config.log. | |
30831 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
30832 | # by configure, so config.status won't be able to write to it; its | |
30833 | # output is simply discarded. So we exec the FD to /dev/null, | |
30834 | # effectively closing config.log, so it can be properly (re)opened and | |
30835 | # appended to by config.status. When coming back to configure, we | |
30836 | # need to make the FD available again. | |
30837 | if test "$no_create" != yes; then | |
30838 | ac_cs_success=: | |
30839 | ac_config_status_args= | |
30840 | test "$silent" = yes && | |
30841 | ac_config_status_args="$ac_config_status_args --quiet" | |
30842 | exec 5>/dev/null | |
30843 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
30844 | exec 5>>config.log | |
30845 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
30846 | # would make configure fail if this is the last instruction. | |
30847 | $ac_cs_success || { (exit 1); exit 1; } | |
30848 | fi | |
c906108c | 30849 | |
bec39cab | 30850 | # |
fdc59709 | 30851 | # CONFIG_SUBDIRS section, as fixed in confsubdir.m4. |
bec39cab | 30852 | # |
c906108c SS |
30853 | if test "$no_recursion" != yes; then |
30854 | ||
30855 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
30856 | ac_sub_configure_args= | |
30857 | ac_prev= | |
fdc59709 PB |
30858 | eval "set x $ac_configure_args" |
30859 | shift | |
30860 | for ac_arg | |
30861 | do | |
c906108c SS |
30862 | if test -n "$ac_prev"; then |
30863 | ac_prev= | |
30864 | continue | |
30865 | fi | |
bec39cab | 30866 | case $ac_arg in |
c906108c SS |
30867 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
30868 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
30869 | ac_prev=cache_file ;; | |
30870 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
30871 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
30872 | | --c=*) | |
30873 | ;; | |
30874 | --config-cache | -C) | |
c906108c SS |
30875 | ;; |
30876 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
30877 | ac_prev=srcdir ;; | |
30878 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
30879 | ;; | |
bec39cab AC |
30880 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
30881 | ac_prev=prefix ;; | |
30882 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
30883 | ;; | |
fdc59709 PB |
30884 | *) |
30885 | case $ac_arg in | |
30886 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30887 | esac | |
30888 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
c906108c SS |
30889 | esac |
30890 | done | |
30891 | ||
bec39cab AC |
30892 | # Always prepend --prefix to ensure using the same prefix |
30893 | # in subdir configurations. | |
fdc59709 PB |
30894 | ac_arg="--prefix=$prefix" |
30895 | case $ac_arg in | |
30896 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30897 | esac | |
30898 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | |
bec39cab | 30899 | |
b4e70030 | 30900 | ac_popdir=`pwd` |
bec39cab | 30901 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
30902 | |
30903 | # Do not complain, so a configure script can configure whichever | |
30904 | # parts of a large source tree are present. | |
fdc59709 | 30905 | test -d "$srcdir/$ac_dir" || continue |
c906108c | 30906 | |
b4e70030 JB |
30907 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
30908 | echo "$as_me: configuring in $ac_dir" >&6;} | |
30909 | { if $as_mkdir_p; then | |
30910 | mkdir -p "$ac_dir" | |
30911 | else | |
30912 | as_dir="$ac_dir" | |
bec39cab | 30913 | as_dirs= |
b4e70030 JB |
30914 | while test ! -d "$as_dir"; do |
30915 | as_dirs="$as_dir $as_dirs" | |
30916 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
30917 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
30918 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30919 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
30920 | X"$as_dir" : 'X\(/\)' \| \ |
30921 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 30922 | echo X"$as_dir" | |
b4e70030 JB |
30923 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
30924 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30925 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30926 | /^X\(\/\).*/{ s//\1/; q; } | |
30927 | s/.*/./; q'` | |
bec39cab | 30928 | done |
b4e70030 JB |
30929 | test ! -n "$as_dirs" || mkdir $as_dirs |
30930 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
30931 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 30932 | { (exit 1); exit 1; }; }; } |
b4e70030 | 30933 | |
bec39cab AC |
30934 | ac_builddir=. |
30935 | ||
b4e70030 | 30936 | if test "$ac_dir" != .; then |
bec39cab | 30937 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
30938 | # A "../" for each directory in $ac_dir_suffix. |
30939 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
30940 | else | |
30941 | ac_dir_suffix= ac_top_builddir= | |
30942 | fi | |
bec39cab AC |
30943 | |
30944 | case $srcdir in | |
b4e70030 | 30945 | .) # No --srcdir option. We are building in place. |
bec39cab | 30946 | ac_srcdir=. |
b4e70030 JB |
30947 | if test -z "$ac_top_builddir"; then |
30948 | ac_top_srcdir=. | |
30949 | else | |
30950 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
30951 | fi ;; | |
30952 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 30953 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
30954 | ac_top_srcdir=$srcdir ;; |
30955 | *) # Relative path. | |
30956 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
30957 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
30958 | esac | |
30959 | ||
30960 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
30961 | # the directories may not exist. | |
30962 | case `pwd` in | |
30963 | .) ac_abs_builddir="$ac_dir";; | |
30964 | *) | |
30965 | case "$ac_dir" in | |
30966 | .) ac_abs_builddir=`pwd`;; | |
30967 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
30968 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
30969 | esac;; | |
30970 | esac | |
30971 | case $ac_abs_builddir in | |
30972 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30973 | *) | |
30974 | case ${ac_top_builddir}. in | |
30975 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
30976 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
30977 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
30978 | esac;; | |
30979 | esac | |
30980 | case $ac_abs_builddir in | |
30981 | .) ac_abs_srcdir=$ac_srcdir;; | |
30982 | *) | |
30983 | case $ac_srcdir in | |
30984 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
30985 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
30986 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
30987 | esac;; | |
30988 | esac | |
30989 | case $ac_abs_builddir in | |
30990 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30991 | *) | |
30992 | case $ac_top_srcdir in | |
30993 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
30994 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
30995 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
30996 | esac;; | |
bec39cab | 30997 | esac |
c906108c | 30998 | |
c906108c | 30999 | |
fdc59709 | 31000 | cd "$ac_dir" |
c906108c SS |
31001 | |
31002 | # Check for guested configure; otherwise get Cygnus style configure. | |
fdc59709 PB |
31003 | if test -f "$ac_srcdir/configure.gnu"; then |
31004 | ac_sub_configure=$ac_srcdir/configure.gnu | |
31005 | elif test -f "$ac_srcdir/configure"; then | |
31006 | ac_sub_configure=$ac_srcdir/configure | |
31007 | elif test -f "$ac_srcdir/configure.in"; then | |
31008 | # This should be Cygnus configure. | |
31009 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 31010 | else |
bec39cab AC |
31011 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
31012 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
31013 | ac_sub_configure= |
31014 | fi | |
31015 | ||
31016 | # The recursion is here. | |
31017 | if test -n "$ac_sub_configure"; then | |
c906108c | 31018 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
31019 | case $cache_file in |
31020 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
31021 | *) # Relative path. |
31022 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 31023 | esac |
c906108c | 31024 | |
fdc59709 PB |
31025 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
31026 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 31027 | # The eval makes quoting arguments work. |
fdc59709 PB |
31028 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
31029 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
bec39cab AC |
31030 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
31031 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
31032 | { (exit 1); exit 1; }; } | |
c906108c SS |
31033 | fi |
31034 | ||
fdc59709 | 31035 | cd "$ac_popdir" |
c906108c SS |
31036 | done |
31037 | fi | |
31038 | ||
31039 | ||
31040 | exit 0 |